@equinor/fusion-framework-cli 7.0.1 → 7.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,12 +35,12 @@ function qS(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&
35
35
  `),o=n.stack.split(`
36
36
  `),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var c=`
37
37
  `+i[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=s);break}}}finally{cm=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?B2(t):""}function vV(t){switch(t.tag){case 5:return B2(t.type);case 16:return B2("Lazy");case 13:return B2("Suspense");case 19:return B2("SuspenseList");case 0:case 2:case 15:return t=lm(t.type,!1),t;case 11:return t=lm(t.type.render,!1),t;case 1:return t=lm(t.type,!0),t;default:return""}}function Pg(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case nl:return"Fragment";case rl:return"Portal";case Ag:return"Profiler";case S9:return"StrictMode";case Mg:return"Suspense";case $g:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case iA:return(t.displayName||"Context")+".Consumer";case nA:return(t._context.displayName||"Context")+".Provider";case A9:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case M9:return e=t.displayName||null,e!==null?e:Pg(t.type)||"Memo";case vs:e=t._payload,t=t._init;try{return Pg(t(e))}catch{}}return null}function mV(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pg(e);case 8:return e===S9?"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 qs(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function aA(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function gV(t){var e=aA(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function q0(t){t._valueTracker||(t._valueTracker=gV(t))}function sA(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=aA(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function q4(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Ig(t,e){var r=e.checked;return or({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function G_(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=qs(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function cA(t,e){e=e.checked,e!=null&&E9(t,"checked",e,!1)}function Hg(t,e){cA(t,e);var r=qs(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Tg(t,e.type,r):e.hasOwnProperty("defaultValue")&&Tg(t,e.type,qs(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function K_(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Tg(t,e,r){(e!=="number"||q4(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var U2=Array.isArray;function El(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i<r.length;i++)e["$"+r[i]]=!0;for(r=0;r<t.length;r++)i=e.hasOwnProperty("$"+t[r].value),t[r].selected!==i&&(t[r].selected=i),i&&n&&(t[r].defaultSelected=!0)}else{for(r=""+qs(r),e=null,i=0;i<t.length;i++){if(t[i].value===r){t[i].selected=!0,n&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function Rg(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(oe(91));return or({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Y_(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(oe(92));if(U2(r)){if(1<r.length)throw Error(oe(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:qs(r)}}function lA(t,e){var r=qs(e.value),n=qs(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function X_(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function dA(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Dg(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?dA(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var W0,hA=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,i){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(W0=W0||document.createElement("div"),W0.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=W0.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Kh(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var uh={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},yV=["Webkit","ms","Moz","O"];Object.keys(uh).forEach(function(t){yV.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),uh[e]=uh[t]})});function uA(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||uh.hasOwnProperty(t)&&uh[t]?(""+e).trim():e+"px"}function fA(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=uA(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var _V=or({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 Vg(t,e){if(e){if(_V[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(oe(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(oe(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(oe(61))}if(e.style!=null&&typeof e.style!="object")throw Error(oe(62))}}function Lg(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Og=null;function $9(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ng=null,Sl=null,Al=null;function Q_(t){if(t=Qu(t)){if(typeof Ng!="function")throw Error(oe(280));var e=t.stateNode;e&&(e=Ov(e),Ng(t.stateNode,t.type,e))}}function pA(t){Sl?Al?Al.push(t):Al=[t]:Sl=t}function vA(){if(Sl){var t=Sl,e=Al;if(Al=Sl=null,Q_(t),e)for(t=0;t<e.length;t++)Q_(e[t])}}function mA(t,e){return t(e)}function gA(){}var dm=!1;function yA(t,e,r){if(dm)return t(e,r);dm=!0;try{return mA(t,e,r)}finally{dm=!1,(Sl!==null||Al!==null)&&(gA(),vA())}}function Yh(t,e){var r=t.stateNode;if(r===null)return null;var n=Ov(r);if(n===null)return null;r=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(oe(231,e,typeof r));return r}var Fg=!1;if(Ba)try{var u2={};Object.defineProperty(u2,"passive",{get:function(){Fg=!0}}),window.addEventListener("test",u2,u2),window.removeEventListener("test",u2,u2)}catch{Fg=!1}function bV(t,e,r,n,i,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{e.apply(r,l)}catch(d){this.onError(d)}}var fh=!1,W4=null,G4=!1,Bg=null,wV={onError:function(t){fh=!0,W4=t}};function xV(t,e,r,n,i,o,a,s,c){fh=!1,W4=null,bV.apply(wV,arguments)}function zV(t,e,r,n,i,o,a,s,c){if(xV.apply(this,arguments),fh){if(fh){var l=W4;fh=!1,W4=null}else throw Error(oe(198));G4||(G4=!0,Bg=l)}}function b1(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function _A(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function J_(t){if(b1(t)!==t)throw Error(oe(188))}function CV(t){var e=t.alternate;if(!e){if(e=b1(t),e===null)throw Error(oe(188));return e!==t?null:t}for(var r=t,n=e;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return J_(i),t;if(o===n)return J_(i),e;o=o.sibling}throw Error(oe(188))}if(r.return!==n.return)r=i,n=o;else{for(var a=!1,s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a)throw Error(oe(189))}}if(r.alternate!==n)throw Error(oe(190))}if(r.tag!==3)throw Error(oe(188));return r.stateNode.current===r?t:e}function bA(t){return t=CV(t),t!==null?wA(t):null}function wA(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=wA(t);if(e!==null)return e;t=t.sibling}return null}var xA=ki.unstable_scheduleCallback,Z_=ki.unstable_cancelCallback,kV=ki.unstable_shouldYield,EV=ki.unstable_requestPaint,mr=ki.unstable_now,SV=ki.unstable_getCurrentPriorityLevel,P9=ki.unstable_ImmediatePriority,zA=ki.unstable_UserBlockingPriority,K4=ki.unstable_NormalPriority,AV=ki.unstable_LowPriority,CA=ki.unstable_IdlePriority,Rv=null,ra=null;function MV(t){if(ra&&typeof ra.onCommitFiberRoot=="function")try{ra.onCommitFiberRoot(Rv,t,void 0,(t.current.flags&128)===128)}catch{}}var yo=Math.clz32?Math.clz32:IV,$V=Math.log,PV=Math.LN2;function IV(t){return t>>>=0,t===0?32:31-($V(t)/PV|0)|0}var G0=64,K0=4194304;function j2(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Y4(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,o=t.pingedLanes,a=r&268435455;if(a!==0){var s=a&~i;s!==0?n=j2(s):(o&=a,o!==0&&(n=j2(o)))}else a=r&~i,a!==0?n=j2(a):o!==0&&(n=j2(o));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,o=e&-e,i>=o||i===16&&(o&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-yo(e),i=1<<r,n|=t[r],e&=~i;return n}function HV(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function TV(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes;0<o;){var a=31-yo(o),s=1<<a,c=i[a];c===-1?(!(s&r)||s&n)&&(i[a]=HV(s,e)):c<=e&&(t.expiredLanes|=s),o&=~s}}function Ug(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function kA(){var t=G0;return G0<<=1,!(G0&4194240)&&(G0=64),t}function hm(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function Yu(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-yo(e),t[e]=r}function RV(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var i=31-yo(r),o=1<<i;e[i]=0,n[i]=-1,t[i]=-1,r&=~o}}function I9(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-yo(r),i=1<<n;i&e|t[n]&e&&(t[n]|=e),r&=~i}}var At=0;function EA(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var SA,H9,AA,MA,$A,jg=!1,Y0=[],$s=null,Ps=null,Is=null,Xh=new Map,Qh=new Map,_s=[],DV="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 eb(t,e){switch(t){case"focusin":case"focusout":$s=null;break;case"dragenter":case"dragleave":Ps=null;break;case"mouseover":case"mouseout":Is=null;break;case"pointerover":case"pointerout":Xh.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qh.delete(e.pointerId)}}function f2(t,e,r,n,i,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},e!==null&&(e=Qu(e),e!==null&&H9(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function VV(t,e,r,n,i){switch(e){case"focusin":return $s=f2($s,t,e,r,n,i),!0;case"dragenter":return Ps=f2(Ps,t,e,r,n,i),!0;case"mouseover":return Is=f2(Is,t,e,r,n,i),!0;case"pointerover":var o=i.pointerId;return Xh.set(o,f2(Xh.get(o)||null,t,e,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Qh.set(o,f2(Qh.get(o)||null,t,e,r,n,i)),!0}return!1}function PA(t){var e=Uc(t.target);if(e!==null){var r=b1(e);if(r!==null){if(e=r.tag,e===13){if(e=_A(r),e!==null){t.blockedOn=e,$A(t.priority,function(){AA(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function e4(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=qg(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);Og=n,r.target.dispatchEvent(n),Og=null}else return e=Qu(r),e!==null&&H9(e),t.blockedOn=r,!1;e.shift()}return!0}function tb(t,e,r){e4(t)&&r.delete(e)}function LV(){jg=!1,$s!==null&&e4($s)&&($s=null),Ps!==null&&e4(Ps)&&(Ps=null),Is!==null&&e4(Is)&&(Is=null),Xh.forEach(tb),Qh.forEach(tb)}function p2(t,e){t.blockedOn===e&&(t.blockedOn=null,jg||(jg=!0,ki.unstable_scheduleCallback(ki.unstable_NormalPriority,LV)))}function Jh(t){function e(i){return p2(i,t)}if(0<Y0.length){p2(Y0[0],t);for(var r=1;r<Y0.length;r++){var n=Y0[r];n.blockedOn===t&&(n.blockedOn=null)}}for($s!==null&&p2($s,t),Ps!==null&&p2(Ps,t),Is!==null&&p2(Is,t),Xh.forEach(e),Qh.forEach(e),r=0;r<_s.length;r++)n=_s[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<_s.length&&(r=_s[0],r.blockedOn===null);)PA(r),r.blockedOn===null&&_s.shift()}var Ml=Ya.ReactCurrentBatchConfig,X4=!0;function OV(t,e,r,n){var i=At,o=Ml.transition;Ml.transition=null;try{At=1,T9(t,e,r,n)}finally{At=i,Ml.transition=o}}function NV(t,e,r,n){var i=At,o=Ml.transition;Ml.transition=null;try{At=4,T9(t,e,r,n)}finally{At=i,Ml.transition=o}}function T9(t,e,r,n){if(X4){var i=qg(t,e,r,n);if(i===null)wm(t,e,n,Q4,r),eb(t,n);else if(VV(i,t,e,r,n))n.stopPropagation();else if(eb(t,n),e&4&&-1<DV.indexOf(t)){for(;i!==null;){var o=Qu(i);if(o!==null&&SA(o),o=qg(t,e,r,n),o===null&&wm(t,e,n,Q4,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else wm(t,e,n,null,r)}}var Q4=null;function qg(t,e,r,n){if(Q4=null,t=$9(n),t=Uc(t),t!==null)if(e=b1(t),e===null)t=null;else if(r=e.tag,r===13){if(t=_A(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Q4=t,null}function IA(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(SV()){case P9:return 1;case zA:return 4;case K4:case AV:return 16;case CA:return 536870912;default:return 16}default:return 16}}var Ss=null,R9=null,t4=null;function HA(){if(t4)return t4;var t,e=R9,r=e.length,n,i="value"in Ss?Ss.value:Ss.textContent,o=i.length;for(t=0;t<r&&e[t]===i[t];t++);var a=r-t;for(n=1;n<=a&&e[r-n]===i[o-n];n++);return t4=i.slice(t,1<n?1-n:void 0)}function r4(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function X0(){return!0}function rb(){return!1}function Pi(t){function e(r,n,i,o,a){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(r=t[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?X0:rb,this.isPropagationStopped=rb,this}return or(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=X0)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=X0)},persist:function(){},isPersistent:X0}),e}var Bd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},D9=Pi(Bd),Xu=or({},Bd,{view:0,detail:0}),FV=Pi(Xu),um,fm,v2,Dv=or({},Xu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:V9,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==v2&&(v2&&t.type==="mousemove"?(um=t.screenX-v2.screenX,fm=t.screenY-v2.screenY):fm=um=0,v2=t),um)},movementY:function(t){return"movementY"in t?t.movementY:fm}}),nb=Pi(Dv),BV=or({},Dv,{dataTransfer:0}),UV=Pi(BV),jV=or({},Xu,{relatedTarget:0}),pm=Pi(jV),qV=or({},Bd,{animationName:0,elapsedTime:0,pseudoElement:0}),WV=Pi(qV),GV=or({},Bd,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),KV=Pi(GV),YV=or({},Bd,{data:0}),ib=Pi(YV),XV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QV={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"},JV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZV(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=JV[t])?!!e[t]:!1}function V9(){return ZV}var eL=or({},Xu,{key:function(t){if(t.key){var e=XV[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=r4(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?QV[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:V9,charCode:function(t){return t.type==="keypress"?r4(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?r4(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),tL=Pi(eL),rL=or({},Dv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ob=Pi(rL),nL=or({},Xu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:V9}),iL=Pi(nL),oL=or({},Bd,{propertyName:0,elapsedTime:0,pseudoElement:0}),aL=Pi(oL),sL=or({},Dv,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),cL=Pi(sL),lL=[9,13,27,32],L9=Ba&&"CompositionEvent"in window,ph=null;Ba&&"documentMode"in document&&(ph=document.documentMode);var dL=Ba&&"TextEvent"in window&&!ph,TA=Ba&&(!L9||ph&&8<ph&&11>=ph),ab=String.fromCharCode(32),sb=!1;function RA(t,e){switch(t){case"keyup":return lL.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DA(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var il=!1;function hL(t,e){switch(t){case"compositionend":return DA(e);case"keypress":return e.which!==32?null:(sb=!0,ab);case"textInput":return t=e.data,t===ab&&sb?null:t;default:return null}}function uL(t,e){if(il)return t==="compositionend"||!L9&&RA(t,e)?(t=HA(),t4=R9=Ss=null,il=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return TA&&e.locale!=="ko"?null:e.data;default:return null}}var fL={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 cb(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!fL[t.type]:e==="textarea"}function VA(t,e,r,n){pA(n),e=J4(e,"onChange"),0<e.length&&(r=new D9("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var vh=null,Zh=null;function pL(t){KA(t,0)}function Vv(t){var e=sl(t);if(sA(e))return t}function vL(t,e){if(t==="change")return e}var LA=!1;if(Ba){var vm;if(Ba){var mm="oninput"in document;if(!mm){var lb=document.createElement("div");lb.setAttribute("oninput","return;"),mm=typeof lb.oninput=="function"}vm=mm}else vm=!1;LA=vm&&(!document.documentMode||9<document.documentMode)}function db(){vh&&(vh.detachEvent("onpropertychange",OA),Zh=vh=null)}function OA(t){if(t.propertyName==="value"&&Vv(Zh)){var e=[];VA(e,Zh,t,$9(t)),yA(pL,e)}}function mL(t,e,r){t==="focusin"?(db(),vh=e,Zh=r,vh.attachEvent("onpropertychange",OA)):t==="focusout"&&db()}function gL(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Vv(Zh)}function yL(t,e){if(t==="click")return Vv(e)}function _L(t,e){if(t==="input"||t==="change")return Vv(e)}function bL(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ko=typeof Object.is=="function"?Object.is:bL;function eu(t,e){if(ko(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Sg.call(e,i)||!ko(t[i],e[i]))return!1}return!0}function hb(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ub(t,e){var r=hb(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hb(r)}}function NA(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?NA(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function FA(){for(var t=window,e=q4();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=q4(t.document)}return e}function O9(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function wL(t){var e=FA(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&NA(r.ownerDocument.documentElement,r)){if(n!==null&&O9(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!t.extend&&o>n&&(i=n,n=o,o=i),i=ub(r,o);var a=ub(r,n);i&&a&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),o>n?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var xL=Ba&&"documentMode"in document&&11>=document.documentMode,ol=null,Wg=null,mh=null,Gg=!1;function fb(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Gg||ol==null||ol!==q4(n)||(n=ol,"selectionStart"in n&&O9(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),mh&&eu(mh,n)||(mh=n,n=J4(Wg,"onSelect"),0<n.length&&(e=new D9("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=ol)))}function Q0(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var al={animationend:Q0("Animation","AnimationEnd"),animationiteration:Q0("Animation","AnimationIteration"),animationstart:Q0("Animation","AnimationStart"),transitionend:Q0("Transition","TransitionEnd")},gm={},BA={};Ba&&(BA=document.createElement("div").style,"AnimationEvent"in window||(delete al.animationend.animation,delete al.animationiteration.animation,delete al.animationstart.animation),"TransitionEvent"in window||delete al.transitionend.transition);function Lv(t){if(gm[t])return gm[t];if(!al[t])return t;var e=al[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in BA)return gm[t]=e[r];return t}var UA=Lv("animationend"),jA=Lv("animationiteration"),qA=Lv("animationstart"),WA=Lv("transitionend"),GA=new Map,pb="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 oc(t,e){GA.set(t,e),_1(e,[t])}for(var ym=0;ym<pb.length;ym++){var _m=pb[ym],zL=_m.toLowerCase(),CL=_m[0].toUpperCase()+_m.slice(1);oc(zL,"on"+CL)}oc(UA,"onAnimationEnd");oc(jA,"onAnimationIteration");oc(qA,"onAnimationStart");oc("dblclick","onDoubleClick");oc("focusin","onFocus");oc("focusout","onBlur");oc(WA,"onTransitionEnd");Gl("onMouseEnter",["mouseout","mouseover"]);Gl("onMouseLeave",["mouseout","mouseover"]);Gl("onPointerEnter",["pointerout","pointerover"]);Gl("onPointerLeave",["pointerout","pointerover"]);_1("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_1("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_1("onBeforeInput",["compositionend","keypress","textInput","paste"]);_1("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_1("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_1("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var q2="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(" "),kL=new Set("cancel close invalid load scroll toggle".split(" ").concat(q2));function vb(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,zV(n,e,void 0,t),t.currentTarget=null}function KA(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],i=n.event;n=n.listeners;e:{var o=void 0;if(e)for(var a=n.length-1;0<=a;a--){var s=n[a],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==o&&i.isPropagationStopped())break e;vb(i,s,l),o=c}else for(a=0;a<n.length;a++){if(s=n[a],c=s.instance,l=s.currentTarget,s=s.listener,c!==o&&i.isPropagationStopped())break e;vb(i,s,l),o=c}}}if(G4)throw t=Bg,G4=!1,Bg=null,t}function Bt(t,e){var r=e[Jg];r===void 0&&(r=e[Jg]=new Set);var n=t+"__bubble";r.has(n)||(YA(e,t,2,!1),r.add(n))}function bm(t,e,r){var n=0;e&&(n|=4),YA(r,t,n,e)}var J0="_reactListening"+Math.random().toString(36).slice(2);function tu(t){if(!t[J0]){t[J0]=!0,rA.forEach(function(r){r!=="selectionchange"&&(kL.has(r)||bm(r,!1,t),bm(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[J0]||(e[J0]=!0,bm("selectionchange",!1,e))}}function YA(t,e,r,n){switch(IA(e)){case 1:var i=OV;break;case 4:i=NV;break;default:i=T9}r=i.bind(null,e,r,t),i=void 0,!Fg||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),n?i!==void 0?t.addEventListener(e,r,{capture:!0,passive:i}):t.addEventListener(e,r,!0):i!==void 0?t.addEventListener(e,r,{passive:i}):t.addEventListener(e,r,!1)}function wm(t,e,r,n,i){var o=n;if(!(e&1)&&!(e&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Uc(s),a===null)return;if(c=a.tag,c===5||c===6){n=o=a;continue e}s=s.parentNode}}n=n.return}yA(function(){var l=o,d=$9(r),h=[];e:{var u=GA.get(t);if(u!==void 0){var f=D9,v=t;switch(t){case"keypress":if(r4(r)===0)break e;case"keydown":case"keyup":f=tL;break;case"focusin":v="focus",f=pm;break;case"focusout":v="blur",f=pm;break;case"beforeblur":case"afterblur":f=pm;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=nb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=UV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=iL;break;case UA:case jA:case qA:f=WV;break;case WA:f=aL;break;case"scroll":f=FV;break;case"wheel":f=cL;break;case"copy":case"cut":case"paste":f=KV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=ob}var p=(e&4)!==0,_=!p&&t==="scroll",m=p?u!==null?u+"Capture":null:u;p=[];for(var g=l,b;g!==null;){b=g;var w=b.stateNode;if(b.tag===5&&w!==null&&(b=w,m!==null&&(w=Yh(g,m),w!=null&&p.push(ru(g,w,b)))),_)break;g=g.return}0<p.length&&(u=new f(u,v,null,r,d),h.push({event:u,listeners:p}))}}if(!(e&7)){e:{if(u=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",u&&r!==Og&&(v=r.relatedTarget||r.fromElement)&&(Uc(v)||v[Ua]))break e;if((f||u)&&(u=d.window===d?d:(u=d.ownerDocument)?u.defaultView||u.parentWindow:window,f?(v=r.relatedTarget||r.toElement,f=l,v=v?Uc(v):null,v!==null&&(_=b1(v),v!==_||v.tag!==5&&v.tag!==6)&&(v=null)):(f=null,v=l),f!==v)){if(p=nb,w="onMouseLeave",m="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&(p=ob,w="onPointerLeave",m="onPointerEnter",g="pointer"),_=f==null?u:sl(f),b=v==null?u:sl(v),u=new p(w,g+"leave",f,r,d),u.target=_,u.relatedTarget=b,w=null,Uc(d)===l&&(p=new p(m,g+"enter",v,r,d),p.target=b,p.relatedTarget=_,w=p),_=w,f&&v)t:{for(p=f,m=v,g=0,b=p;b;b=$1(b))g++;for(b=0,w=m;w;w=$1(w))b++;for(;0<g-b;)p=$1(p),g--;for(;0<b-g;)m=$1(m),b--;for(;g--;){if(p===m||m!==null&&p===m.alternate)break t;p=$1(p),m=$1(m)}p=null}else p=null;f!==null&&mb(h,u,f,p,!1),v!==null&&_!==null&&mb(h,_,v,p,!0)}}e:{if(u=l?sl(l):window,f=u.nodeName&&u.nodeName.toLowerCase(),f==="select"||f==="input"&&u.type==="file")var x=vL;else if(cb(u))if(LA)x=_L;else{x=gL;var C=mL}else(f=u.nodeName)&&f.toLowerCase()==="input"&&(u.type==="checkbox"||u.type==="radio")&&(x=yL);if(x&&(x=x(t,l))){VA(h,x,r,d);break e}C&&C(t,u,l),t==="focusout"&&(C=u._wrapperState)&&C.controlled&&u.type==="number"&&Tg(u,"number",u.value)}switch(C=l?sl(l):window,t){case"focusin":(cb(C)||C.contentEditable==="true")&&(ol=C,Wg=l,mh=null);break;case"focusout":mh=Wg=ol=null;break;case"mousedown":Gg=!0;break;case"contextmenu":case"mouseup":case"dragend":Gg=!1,fb(h,r,d);break;case"selectionchange":if(xL)break;case"keydown":case"keyup":fb(h,r,d)}var S;if(L9)e:{switch(t){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else il?RA(t,r)&&(M="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(M="onCompositionStart");M&&(TA&&r.locale!=="ko"&&(il||M!=="onCompositionStart"?M==="onCompositionEnd"&&il&&(S=HA()):(Ss=d,R9="value"in Ss?Ss.value:Ss.textContent,il=!0)),C=J4(l,M),0<C.length&&(M=new ib(M,t,null,r,d),h.push({event:M,listeners:C}),S?M.data=S:(S=DA(r),S!==null&&(M.data=S)))),(S=dL?hL(t,r):uL(t,r))&&(l=J4(l,"onBeforeInput"),0<l.length&&(d=new ib("onBeforeInput","beforeinput",null,r,d),h.push({event:d,listeners:l}),d.data=S))}KA(h,e)})}function ru(t,e,r){return{instance:t,listener:e,currentTarget:r}}function J4(t,e){for(var r=e+"Capture",n=[];t!==null;){var i=t,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Yh(t,r),o!=null&&n.unshift(ru(t,o,i)),o=Yh(t,e),o!=null&&n.push(ru(t,o,i))),t=t.return}return n}function $1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function mb(t,e,r,n,i){for(var o=e._reactName,a=[];r!==null&&r!==n;){var s=r,c=s.alternate,l=s.stateNode;if(c!==null&&c===n)break;s.tag===5&&l!==null&&(s=l,i?(c=Yh(r,o),c!=null&&a.unshift(ru(r,c,s))):i||(c=Yh(r,o),c!=null&&a.push(ru(r,c,s)))),r=r.return}a.length!==0&&t.push({event:e,listeners:a})}var EL=/\r\n?/g,SL=/\u0000|\uFFFD/g;function gb(t){return(typeof t=="string"?t:""+t).replace(EL,`
38
- `).replace(SL,"")}function Z0(t,e,r){if(e=gb(e),gb(t)!==e&&r)throw Error(oe(425))}function Z4(){}var Kg=null,Yg=null;function Xg(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Qg=typeof setTimeout=="function"?setTimeout:void 0,AL=typeof clearTimeout=="function"?clearTimeout:void 0,yb=typeof Promise=="function"?Promise:void 0,ML=typeof queueMicrotask=="function"?queueMicrotask:typeof yb<"u"?function(t){return yb.resolve(null).then(t).catch($L)}:Qg;function $L(t){setTimeout(function(){throw t})}function xm(t,e){var r=e,n=0;do{var i=r.nextSibling;if(t.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){t.removeChild(i),Jh(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Jh(e)}function Hs(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function _b(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Ud=Math.random().toString(36).slice(2),Ko="__reactFiber$"+Ud,nu="__reactProps$"+Ud,Ua="__reactContainer$"+Ud,Jg="__reactEvents$"+Ud,PL="__reactListeners$"+Ud,IL="__reactHandles$"+Ud;function Uc(t){var e=t[Ko];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Ua]||r[Ko]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=_b(t);t!==null;){if(r=t[Ko])return r;t=_b(t)}return e}t=r,r=t.parentNode}return null}function Qu(t){return t=t[Ko]||t[Ua],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function sl(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(oe(33))}function Ov(t){return t[nu]||null}var Zg=[],cl=-1;function ac(t){return{current:t}}function Gt(t){0>cl||(t.current=Zg[cl],Zg[cl]=null,cl--)}function Lt(t,e){cl++,Zg[cl]=t.current,t.current=e}var Ws={},Pn=ac(Ws),ai=ac(!1),i1=Ws;function Kl(t,e){var r=t.type.contextTypes;if(!r)return Ws;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=e[o];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function si(t){return t=t.childContextTypes,t!=null}function ep(){Gt(ai),Gt(Pn)}function bb(t,e,r){if(Pn.current!==Ws)throw Error(oe(168));Lt(Pn,e),Lt(ai,r)}function XA(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(oe(108,mV(t)||"Unknown",i));return or({},r,n)}function tp(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ws,i1=Pn.current,Lt(Pn,t),Lt(ai,ai.current),!0}function wb(t,e,r){var n=t.stateNode;if(!n)throw Error(oe(169));r?(t=XA(t,e,i1),n.__reactInternalMemoizedMergedChildContext=t,Gt(ai),Gt(Pn),Lt(Pn,t)):Gt(ai),Lt(ai,r)}var za=null,Nv=!1,zm=!1;function QA(t){za===null?za=[t]:za.push(t)}function HL(t){Nv=!0,QA(t)}function sc(){if(!zm&&za!==null){zm=!0;var t=0,e=At;try{var r=za;for(At=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}za=null,Nv=!1}catch(i){throw za!==null&&(za=za.slice(t+1)),xA(P9,sc),i}finally{At=e,zm=!1}}return null}var ll=[],dl=0,rp=null,np=0,Oi=[],Ni=0,o1=null,Aa=1,Ma="";function Mc(t,e){ll[dl++]=np,ll[dl++]=rp,rp=t,np=e}function JA(t,e,r){Oi[Ni++]=Aa,Oi[Ni++]=Ma,Oi[Ni++]=o1,o1=t;var n=Aa;t=Ma;var i=32-yo(n)-1;n&=~(1<<i),r+=1;var o=32-yo(e)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Aa=1<<32-yo(e)+i|r<<i|n,Ma=o+t}else Aa=1<<o|r<<i|n,Ma=t}function N9(t){t.return!==null&&(Mc(t,1),JA(t,1,0))}function F9(t){for(;t===rp;)rp=ll[--dl],ll[dl]=null,np=ll[--dl],ll[dl]=null;for(;t===o1;)o1=Oi[--Ni],Oi[Ni]=null,Ma=Oi[--Ni],Oi[Ni]=null,Aa=Oi[--Ni],Oi[Ni]=null}var bi=null,gi=null,Qt=!1,uo=null;function ZA(t,e){var r=ji(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function xb(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,bi=t,gi=Hs(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,bi=t,gi=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=o1!==null?{id:Aa,overflow:Ma}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=ji(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,bi=t,gi=null,!0):!1;default:return!1}}function e6(t){return(t.mode&1)!==0&&(t.flags&128)===0}function t6(t){if(Qt){var e=gi;if(e){var r=e;if(!xb(t,e)){if(e6(t))throw Error(oe(418));e=Hs(r.nextSibling);var n=bi;e&&xb(t,e)?ZA(n,r):(t.flags=t.flags&-4097|2,Qt=!1,bi=t)}}else{if(e6(t))throw Error(oe(418));t.flags=t.flags&-4097|2,Qt=!1,bi=t}}}function zb(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;bi=t}function ef(t){if(t!==bi)return!1;if(!Qt)return zb(t),Qt=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Xg(t.type,t.memoizedProps)),e&&(e=gi)){if(e6(t))throw eM(),Error(oe(418));for(;e;)ZA(t,e),e=Hs(e.nextSibling)}if(zb(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(oe(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){gi=Hs(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}gi=null}}else gi=bi?Hs(t.stateNode.nextSibling):null;return!0}function eM(){for(var t=gi;t;)t=Hs(t.nextSibling)}function Yl(){gi=bi=null,Qt=!1}function B9(t){uo===null?uo=[t]:uo.push(t)}var TL=Ya.ReactCurrentBatchConfig;function co(t,e){if(t&&t.defaultProps){e=or({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}var ip=ac(null),op=null,hl=null,U9=null;function j9(){U9=hl=op=null}function q9(t){var e=ip.current;Gt(ip),t._currentValue=e}function r6(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function $l(t,e){op=t,U9=hl=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(ni=!0),t.firstContext=null)}function Xi(t){var e=t._currentValue;if(U9!==t)if(t={context:t,memoizedValue:e,next:null},hl===null){if(op===null)throw Error(oe(308));hl=t,op.dependencies={lanes:0,firstContext:t}}else hl=hl.next=t;return e}var jc=null;function W9(t){jc===null?jc=[t]:jc.push(t)}function tM(t,e,r,n){var i=e.interleaved;return i===null?(r.next=r,W9(e)):(r.next=i.next,i.next=r),e.interleaved=r,ja(t,n)}function ja(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var ms=!1;function G9(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rM(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Da(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Ts(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,ft&2){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,ja(t,r)}return i=n.interleaved,i===null?(e.next=e,W9(n)):(e.next=i.next,i.next=e),n.interleaved=e,ja(t,r)}function n4(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,I9(t,r)}}function Cb(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=a:o=o.next=a,r=r.next}while(r!==null);o===null?i=o=e:o=o.next=e}else i=o=e;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function ap(t,e,r,n){var i=t.updateQueue;ms=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,a===null?o=l:a.next=l,a=c;var d=t.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=l:s.next=l,d.lastBaseUpdate=c))}if(o!==null){var h=i.baseState;a=0,d=l=c=null,s=o;do{var u=s.lane,f=s.eventTime;if((n&u)===u){d!==null&&(d=d.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=t,p=s;switch(u=e,f=r,p.tag){case 1:if(v=p.payload,typeof v=="function"){h=v.call(f,h,u);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,u=typeof v=="function"?v.call(f,h,u):v,u==null)break e;h=or({},h,u);break e;case 2:ms=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,u=i.effects,u===null?i.effects=[s]:u.push(s))}else f={eventTime:f,lane:u,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(l=d=f,c=h):d=d.next=f,a|=u;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;u=s,s=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}while(1);if(d===null&&(c=h),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=d,e=i.shared.interleaved,e!==null){i=e;do a|=i.lane,i=i.next;while(i!==e)}else o===null&&(i.shared.lanes=0);s1|=a,t.lanes=a,t.memoizedState=h}}function kb(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(oe(191,i));i.call(n)}}}var nM=new tA.Component().refs;function n6(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:or({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var Fv={isMounted:function(t){return(t=t._reactInternals)?b1(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=Ln(),i=Ds(t),o=Da(n,i);o.payload=e,r!=null&&(o.callback=r),e=Ts(t,o,i),e!==null&&(_o(e,t,i,n),n4(e,t,i))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=Ln(),i=Ds(t),o=Da(n,i);o.tag=1,o.payload=e,r!=null&&(o.callback=r),e=Ts(t,o,i),e!==null&&(_o(e,t,i,n),n4(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=Ln(),n=Ds(t),i=Da(r,n);i.tag=2,e!=null&&(i.callback=e),e=Ts(t,i,n),e!==null&&(_o(e,t,n,r),n4(e,t,n))}};function Eb(t,e,r,n,i,o,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,o,a):e.prototype&&e.prototype.isPureReactComponent?!eu(r,n)||!eu(i,o):!0}function iM(t,e,r){var n=!1,i=Ws,o=e.contextType;return typeof o=="object"&&o!==null?o=Xi(o):(i=si(e)?i1:Pn.current,n=e.contextTypes,o=(n=n!=null)?Kl(t,i):Ws),e=new e(r,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Fv,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function Sb(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&Fv.enqueueReplaceState(e,e.state,null)}function i6(t,e,r,n){var i=t.stateNode;i.props=r,i.state=t.memoizedState,i.refs=nM,G9(t);var o=e.contextType;typeof o=="object"&&o!==null?i.context=Xi(o):(o=si(e)?i1:Pn.current,i.context=Kl(t,o)),i.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(n6(t,e,o,r),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&Fv.enqueueReplaceState(i,i.state,null),ap(t,r,i,n),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function m2(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(oe(309));var n=r.stateNode}if(!n)throw Error(oe(147,t));var i=n,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(a){var s=i.refs;s===nM&&(s=i.refs={}),a===null?delete s[o]:s[o]=a},e._stringRef=o,e)}if(typeof t!="string")throw Error(oe(284));if(!r._owner)throw Error(oe(290,t))}return t}function tf(t,e){throw t=Object.prototype.toString.call(e),Error(oe(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Ab(t){var e=t._init;return e(t._payload)}function oM(t){function e(m,g){if(t){var b=m.deletions;b===null?(m.deletions=[g],m.flags|=16):b.push(g)}}function r(m,g){if(!t)return null;for(;g!==null;)e(m,g),g=g.sibling;return null}function n(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function i(m,g){return m=Vs(m,g),m.index=0,m.sibling=null,m}function o(m,g,b){return m.index=b,t?(b=m.alternate,b!==null?(b=b.index,b<g?(m.flags|=2,g):b):(m.flags|=2,g)):(m.flags|=1048576,g)}function a(m){return t&&m.alternate===null&&(m.flags|=2),m}function s(m,g,b,w){return g===null||g.tag!==6?(g=$m(b,m.mode,w),g.return=m,g):(g=i(g,b),g.return=m,g)}function c(m,g,b,w){var x=b.type;return x===nl?d(m,g,b.props.children,w,b.key):g!==null&&(g.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===vs&&Ab(x)===g.type)?(w=i(g,b.props),w.ref=m2(m,g,b),w.return=m,w):(w=l4(b.type,b.key,b.props,null,m.mode,w),w.ref=m2(m,g,b),w.return=m,w)}function l(m,g,b,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=Pm(b,m.mode,w),g.return=m,g):(g=i(g,b.children||[]),g.return=m,g)}function d(m,g,b,w,x){return g===null||g.tag!==7?(g=Zc(b,m.mode,w,x),g.return=m,g):(g=i(g,b),g.return=m,g)}function h(m,g,b){if(typeof g=="string"&&g!==""||typeof g=="number")return g=$m(""+g,m.mode,b),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case j0:return b=l4(g.type,g.key,g.props,null,m.mode,b),b.ref=m2(m,null,g),b.return=m,b;case rl:return g=Pm(g,m.mode,b),g.return=m,g;case vs:var w=g._init;return h(m,w(g._payload),b)}if(U2(g)||h2(g))return g=Zc(g,m.mode,b,null),g.return=m,g;tf(m,g)}return null}function u(m,g,b,w){var x=g!==null?g.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return x!==null?null:s(m,g,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case j0:return b.key===x?c(m,g,b,w):null;case rl:return b.key===x?l(m,g,b,w):null;case vs:return x=b._init,u(m,g,x(b._payload),w)}if(U2(b)||h2(b))return x!==null?null:d(m,g,b,w,null);tf(m,b)}return null}function f(m,g,b,w,x){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(b)||null,s(g,m,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case j0:return m=m.get(w.key===null?b:w.key)||null,c(g,m,w,x);case rl:return m=m.get(w.key===null?b:w.key)||null,l(g,m,w,x);case vs:var C=w._init;return f(m,g,b,C(w._payload),x)}if(U2(w)||h2(w))return m=m.get(b)||null,d(g,m,w,x,null);tf(g,w)}return null}function v(m,g,b,w){for(var x=null,C=null,S=g,M=g=0,T=null;S!==null&&M<b.length;M++){S.index>M?(T=S,S=null):T=S.sibling;var I=u(m,S,b[M],w);if(I===null){S===null&&(S=T);break}t&&S&&I.alternate===null&&e(m,S),g=o(I,g,M),C===null?x=I:C.sibling=I,C=I,S=T}if(M===b.length)return r(m,S),Qt&&Mc(m,M),x;if(S===null){for(;M<b.length;M++)S=h(m,b[M],w),S!==null&&(g=o(S,g,M),C===null?x=S:C.sibling=S,C=S);return Qt&&Mc(m,M),x}for(S=n(m,S);M<b.length;M++)T=f(S,m,M,b[M],w),T!==null&&(t&&T.alternate!==null&&S.delete(T.key===null?M:T.key),g=o(T,g,M),C===null?x=T:C.sibling=T,C=T);return t&&S.forEach(function(N){return e(m,N)}),Qt&&Mc(m,M),x}function p(m,g,b,w){var x=h2(b);if(typeof x!="function")throw Error(oe(150));if(b=x.call(b),b==null)throw Error(oe(151));for(var C=x=null,S=g,M=g=0,T=null,I=b.next();S!==null&&!I.done;M++,I=b.next()){S.index>M?(T=S,S=null):T=S.sibling;var N=u(m,S,I.value,w);if(N===null){S===null&&(S=T);break}t&&S&&N.alternate===null&&e(m,S),g=o(N,g,M),C===null?x=N:C.sibling=N,C=N,S=T}if(I.done)return r(m,S),Qt&&Mc(m,M),x;if(S===null){for(;!I.done;M++,I=b.next())I=h(m,I.value,w),I!==null&&(g=o(I,g,M),C===null?x=I:C.sibling=I,C=I);return Qt&&Mc(m,M),x}for(S=n(m,S);!I.done;M++,I=b.next())I=f(S,m,M,I.value,w),I!==null&&(t&&I.alternate!==null&&S.delete(I.key===null?M:I.key),g=o(I,g,M),C===null?x=I:C.sibling=I,C=I);return t&&S.forEach(function(U){return e(m,U)}),Qt&&Mc(m,M),x}function _(m,g,b,w){if(typeof b=="object"&&b!==null&&b.type===nl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case j0:e:{for(var x=b.key,C=g;C!==null;){if(C.key===x){if(x=b.type,x===nl){if(C.tag===7){r(m,C.sibling),g=i(C,b.props.children),g.return=m,m=g;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===vs&&Ab(x)===C.type){r(m,C.sibling),g=i(C,b.props),g.ref=m2(m,C,b),g.return=m,m=g;break e}r(m,C);break}else e(m,C);C=C.sibling}b.type===nl?(g=Zc(b.props.children,m.mode,w,b.key),g.return=m,m=g):(w=l4(b.type,b.key,b.props,null,m.mode,w),w.ref=m2(m,g,b),w.return=m,m=w)}return a(m);case rl:e:{for(C=b.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){r(m,g.sibling),g=i(g,b.children||[]),g.return=m,m=g;break e}else{r(m,g);break}else e(m,g);g=g.sibling}g=Pm(b,m.mode,w),g.return=m,m=g}return a(m);case vs:return C=b._init,_(m,g,C(b._payload),w)}if(U2(b))return v(m,g,b,w);if(h2(b))return p(m,g,b,w);tf(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(r(m,g.sibling),g=i(g,b),g.return=m,m=g):(r(m,g),g=$m(b,m.mode,w),g.return=m,m=g),a(m)):r(m,g)}return _}var Xl=oM(!0),aM=oM(!1),Ju={},na=ac(Ju),iu=ac(Ju),ou=ac(Ju);function qc(t){if(t===Ju)throw Error(oe(174));return t}function K9(t,e){switch(Lt(ou,e),Lt(iu,t),Lt(na,Ju),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Dg(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Dg(e,t)}Gt(na),Lt(na,e)}function Ql(){Gt(na),Gt(iu),Gt(ou)}function sM(t){qc(ou.current);var e=qc(na.current),r=Dg(e,t.type);e!==r&&(Lt(iu,t),Lt(na,r))}function Y9(t){iu.current===t&&(Gt(na),Gt(iu))}var rr=ac(0);function sp(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Cm=[];function X9(){for(var t=0;t<Cm.length;t++)Cm[t]._workInProgressVersionPrimary=null;Cm.length=0}var i4=Ya.ReactCurrentDispatcher,km=Ya.ReactCurrentBatchConfig,a1=0,nr=null,Hr=null,qr=null,cp=!1,gh=!1,au=0,RL=0;function yn(){throw Error(oe(321))}function Q9(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!ko(t[r],e[r]))return!1;return!0}function J9(t,e,r,n,i,o){if(a1=o,nr=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,i4.current=t===null||t.memoizedState===null?OL:NL,t=r(n,i),gh){o=0;do{if(gh=!1,au=0,25<=o)throw Error(oe(301));o+=1,qr=Hr=null,e.updateQueue=null,i4.current=FL,t=r(n,i)}while(gh)}if(i4.current=lp,e=Hr!==null&&Hr.next!==null,a1=0,qr=Hr=nr=null,cp=!1,e)throw Error(oe(300));return t}function Z9(){var t=au!==0;return au=0,t}function No(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qr===null?nr.memoizedState=qr=t:qr=qr.next=t,qr}function Qi(){if(Hr===null){var t=nr.alternate;t=t!==null?t.memoizedState:null}else t=Hr.next;var e=qr===null?nr.memoizedState:qr.next;if(e!==null)qr=e,Hr=t;else{if(t===null)throw Error(oe(310));Hr=t,t={memoizedState:Hr.memoizedState,baseState:Hr.baseState,baseQueue:Hr.baseQueue,queue:Hr.queue,next:null},qr===null?nr.memoizedState=qr=t:qr=qr.next=t}return qr}function su(t,e){return typeof e=="function"?e(t):e}function Em(t){var e=Qi(),r=e.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=t;var n=Hr,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var s=a=null,c=null,l=o;do{var d=l.lane;if((a1&d)===d)c!==null&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:t(n,l.action);else{var h={lane:d,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(s=c=h,a=n):c=c.next=h,nr.lanes|=d,s1|=d}l=l.next}while(l!==null&&l!==o);c===null?a=n:c.next=s,ko(n,e.memoizedState)||(ni=!0),e.memoizedState=n,e.baseState=a,e.baseQueue=c,r.lastRenderedState=n}if(t=r.interleaved,t!==null){i=t;do o=i.lane,nr.lanes|=o,s1|=o,i=i.next;while(i!==t)}else i===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Sm(t){var e=Qi(),r=e.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=t;var n=r.dispatch,i=r.pending,o=e.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=t(o,a.action),a=a.next;while(a!==i);ko(o,e.memoizedState)||(ni=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),r.lastRenderedState=o}return[o,n]}function cM(){}function lM(t,e){var r=nr,n=Qi(),i=e(),o=!ko(n.memoizedState,i);if(o&&(n.memoizedState=i,ni=!0),n=n.queue,e7(uM.bind(null,r,n,t),[t]),n.getSnapshot!==e||o||qr!==null&&qr.memoizedState.tag&1){if(r.flags|=2048,cu(9,hM.bind(null,r,n,i,e),void 0,null),Kr===null)throw Error(oe(349));a1&30||dM(r,e,i)}return i}function dM(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=nr.updateQueue,e===null?(e={lastEffect:null,stores:null},nr.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function hM(t,e,r,n){e.value=r,e.getSnapshot=n,fM(e)&&pM(t)}function uM(t,e,r){return r(function(){fM(e)&&pM(t)})}function fM(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!ko(t,r)}catch{return!0}}function pM(t){var e=ja(t,1);e!==null&&_o(e,t,1,-1)}function Mb(t){var e=No();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:su,lastRenderedState:t},e.queue=t,t=t.dispatch=LL.bind(null,nr,t),[e.memoizedState,t]}function cu(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=nr.updateQueue,e===null?(e={lastEffect:null,stores:null},nr.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function vM(){return Qi().memoizedState}function o4(t,e,r,n){var i=No();nr.flags|=t,i.memoizedState=cu(1|e,r,void 0,n===void 0?null:n)}function Bv(t,e,r,n){var i=Qi();n=n===void 0?null:n;var o=void 0;if(Hr!==null){var a=Hr.memoizedState;if(o=a.destroy,n!==null&&Q9(n,a.deps)){i.memoizedState=cu(e,r,o,n);return}}nr.flags|=t,i.memoizedState=cu(1|e,r,o,n)}function $b(t,e){return o4(8390656,8,t,e)}function e7(t,e){return Bv(2048,8,t,e)}function mM(t,e){return Bv(4,2,t,e)}function gM(t,e){return Bv(4,4,t,e)}function yM(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function _M(t,e,r){return r=r!=null?r.concat([t]):null,Bv(4,4,yM.bind(null,e,t),r)}function t7(){}function bM(t,e){var r=Qi();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Q9(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function wM(t,e){var r=Qi();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Q9(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function xM(t,e,r){return a1&21?(ko(r,e)||(r=kA(),nr.lanes|=r,s1|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,ni=!0),t.memoizedState=r)}function DL(t,e){var r=At;At=r!==0&&4>r?r:4,t(!0);var n=km.transition;km.transition={};try{t(!1),e()}finally{At=r,km.transition=n}}function zM(){return Qi().memoizedState}function VL(t,e,r){var n=Ds(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},CM(t))kM(e,r);else if(r=tM(t,e,r,n),r!==null){var i=Ln();_o(r,t,n,i),EM(r,e,n)}}function LL(t,e,r){var n=Ds(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(CM(t))kM(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var a=e.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,ko(s,a)){var c=e.interleaved;c===null?(i.next=i,W9(e)):(i.next=c.next,c.next=i),e.interleaved=i;return}}catch{}finally{}r=tM(t,e,i,n),r!==null&&(i=Ln(),_o(r,t,n,i),EM(r,e,n))}}function CM(t){var e=t.alternate;return t===nr||e!==null&&e===nr}function kM(t,e){gh=cp=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function EM(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,I9(t,r)}}var lp={readContext:Xi,useCallback:yn,useContext:yn,useEffect:yn,useImperativeHandle:yn,useInsertionEffect:yn,useLayoutEffect:yn,useMemo:yn,useReducer:yn,useRef:yn,useState:yn,useDebugValue:yn,useDeferredValue:yn,useTransition:yn,useMutableSource:yn,useSyncExternalStore:yn,useId:yn,unstable_isNewReconciler:!1},OL={readContext:Xi,useCallback:function(t,e){return No().memoizedState=[t,e===void 0?null:e],t},useContext:Xi,useEffect:$b,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,o4(4194308,4,yM.bind(null,e,t),r)},useLayoutEffect:function(t,e){return o4(4194308,4,t,e)},useInsertionEffect:function(t,e){return o4(4,2,t,e)},useMemo:function(t,e){var r=No();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=No();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=VL.bind(null,nr,t),[n.memoizedState,t]},useRef:function(t){var e=No();return t={current:t},e.memoizedState=t},useState:Mb,useDebugValue:t7,useDeferredValue:function(t){return No().memoizedState=t},useTransition:function(){var t=Mb(!1),e=t[0];return t=DL.bind(null,t[1]),No().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=nr,i=No();if(Qt){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=e(),Kr===null)throw Error(oe(349));a1&30||dM(n,e,r)}i.memoizedState=r;var o={value:r,getSnapshot:e};return i.queue=o,$b(uM.bind(null,n,o,t),[t]),n.flags|=2048,cu(9,hM.bind(null,n,o,r,e),void 0,null),r},useId:function(){var t=No(),e=Kr.identifierPrefix;if(Qt){var r=Ma,n=Aa;r=(n&~(1<<32-yo(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=au++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=RL++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},NL={readContext:Xi,useCallback:bM,useContext:Xi,useEffect:e7,useImperativeHandle:_M,useInsertionEffect:mM,useLayoutEffect:gM,useMemo:wM,useReducer:Em,useRef:vM,useState:function(){return Em(su)},useDebugValue:t7,useDeferredValue:function(t){var e=Qi();return xM(e,Hr.memoizedState,t)},useTransition:function(){var t=Em(su)[0],e=Qi().memoizedState;return[t,e]},useMutableSource:cM,useSyncExternalStore:lM,useId:zM,unstable_isNewReconciler:!1},FL={readContext:Xi,useCallback:bM,useContext:Xi,useEffect:e7,useImperativeHandle:_M,useInsertionEffect:mM,useLayoutEffect:gM,useMemo:wM,useReducer:Sm,useRef:vM,useState:function(){return Sm(su)},useDebugValue:t7,useDeferredValue:function(t){var e=Qi();return Hr===null?e.memoizedState=t:xM(e,Hr.memoizedState,t)},useTransition:function(){var t=Sm(su)[0],e=Qi().memoizedState;return[t,e]},useMutableSource:cM,useSyncExternalStore:lM,useId:zM,unstable_isNewReconciler:!1};function Jl(t,e){try{var r="",n=e;do r+=vV(n),n=n.return;while(n);var i=r}catch(o){i=`
38
+ `).replace(SL,"")}function Z0(t,e,r){if(e=gb(e),gb(t)!==e&&r)throw Error(oe(425))}function Z4(){}var Kg=null,Yg=null;function Xg(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Qg=typeof setTimeout=="function"?setTimeout:void 0,AL=typeof clearTimeout=="function"?clearTimeout:void 0,yb=typeof Promise=="function"?Promise:void 0,ML=typeof queueMicrotask=="function"?queueMicrotask:typeof yb<"u"?function(t){return yb.resolve(null).then(t).catch($L)}:Qg;function $L(t){setTimeout(function(){throw t})}function xm(t,e){var r=e,n=0;do{var i=r.nextSibling;if(t.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){t.removeChild(i),Jh(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Jh(e)}function Hs(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function _b(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Ud=Math.random().toString(36).slice(2),Ko="__reactFiber$"+Ud,nu="__reactProps$"+Ud,Ua="__reactContainer$"+Ud,Jg="__reactEvents$"+Ud,PL="__reactListeners$"+Ud,IL="__reactHandles$"+Ud;function Uc(t){var e=t[Ko];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Ua]||r[Ko]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=_b(t);t!==null;){if(r=t[Ko])return r;t=_b(t)}return e}t=r,r=t.parentNode}return null}function Qu(t){return t=t[Ko]||t[Ua],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function sl(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(oe(33))}function Ov(t){return t[nu]||null}var Zg=[],cl=-1;function ac(t){return{current:t}}function Gt(t){0>cl||(t.current=Zg[cl],Zg[cl]=null,cl--)}function Lt(t,e){cl++,Zg[cl]=t.current,t.current=e}var Ws={},Pn=ac(Ws),ai=ac(!1),i1=Ws;function Kl(t,e){var r=t.type.contextTypes;if(!r)return Ws;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=e[o];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function si(t){return t=t.childContextTypes,t!=null}function ep(){Gt(ai),Gt(Pn)}function bb(t,e,r){if(Pn.current!==Ws)throw Error(oe(168));Lt(Pn,e),Lt(ai,r)}function XA(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(oe(108,mV(t)||"Unknown",i));return or({},r,n)}function tp(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ws,i1=Pn.current,Lt(Pn,t),Lt(ai,ai.current),!0}function wb(t,e,r){var n=t.stateNode;if(!n)throw Error(oe(169));r?(t=XA(t,e,i1),n.__reactInternalMemoizedMergedChildContext=t,Gt(ai),Gt(Pn),Lt(Pn,t)):Gt(ai),Lt(ai,r)}var za=null,Nv=!1,zm=!1;function QA(t){za===null?za=[t]:za.push(t)}function HL(t){Nv=!0,QA(t)}function sc(){if(!zm&&za!==null){zm=!0;var t=0,e=At;try{var r=za;for(At=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}za=null,Nv=!1}catch(i){throw za!==null&&(za=za.slice(t+1)),xA(P9,sc),i}finally{At=e,zm=!1}}return null}var ll=[],dl=0,rp=null,np=0,Oi=[],Ni=0,o1=null,Aa=1,Ma="";function Mc(t,e){ll[dl++]=np,ll[dl++]=rp,rp=t,np=e}function JA(t,e,r){Oi[Ni++]=Aa,Oi[Ni++]=Ma,Oi[Ni++]=o1,o1=t;var n=Aa;t=Ma;var i=32-yo(n)-1;n&=~(1<<i),r+=1;var o=32-yo(e)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Aa=1<<32-yo(e)+i|r<<i|n,Ma=o+t}else Aa=1<<o|r<<i|n,Ma=t}function N9(t){t.return!==null&&(Mc(t,1),JA(t,1,0))}function F9(t){for(;t===rp;)rp=ll[--dl],ll[dl]=null,np=ll[--dl],ll[dl]=null;for(;t===o1;)o1=Oi[--Ni],Oi[Ni]=null,Ma=Oi[--Ni],Oi[Ni]=null,Aa=Oi[--Ni],Oi[Ni]=null}var bi=null,gi=null,Qt=!1,uo=null;function ZA(t,e){var r=ji(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function xb(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,bi=t,gi=Hs(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,bi=t,gi=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=o1!==null?{id:Aa,overflow:Ma}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=ji(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,bi=t,gi=null,!0):!1;default:return!1}}function e6(t){return(t.mode&1)!==0&&(t.flags&128)===0}function t6(t){if(Qt){var e=gi;if(e){var r=e;if(!xb(t,e)){if(e6(t))throw Error(oe(418));e=Hs(r.nextSibling);var n=bi;e&&xb(t,e)?ZA(n,r):(t.flags=t.flags&-4097|2,Qt=!1,bi=t)}}else{if(e6(t))throw Error(oe(418));t.flags=t.flags&-4097|2,Qt=!1,bi=t}}}function zb(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;bi=t}function ef(t){if(t!==bi)return!1;if(!Qt)return zb(t),Qt=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Xg(t.type,t.memoizedProps)),e&&(e=gi)){if(e6(t))throw eM(),Error(oe(418));for(;e;)ZA(t,e),e=Hs(e.nextSibling)}if(zb(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(oe(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){gi=Hs(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}gi=null}}else gi=bi?Hs(t.stateNode.nextSibling):null;return!0}function eM(){for(var t=gi;t;)t=Hs(t.nextSibling)}function Yl(){gi=bi=null,Qt=!1}function B9(t){uo===null?uo=[t]:uo.push(t)}var TL=Ya.ReactCurrentBatchConfig;function co(t,e){if(t&&t.defaultProps){e=or({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}var ip=ac(null),op=null,hl=null,U9=null;function j9(){U9=hl=op=null}function q9(t){var e=ip.current;Gt(ip),t._currentValue=e}function r6(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function $l(t,e){op=t,U9=hl=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(ni=!0),t.firstContext=null)}function Xi(t){var e=t._currentValue;if(U9!==t)if(t={context:t,memoizedValue:e,next:null},hl===null){if(op===null)throw Error(oe(308));hl=t,op.dependencies={lanes:0,firstContext:t}}else hl=hl.next=t;return e}var jc=null;function W9(t){jc===null?jc=[t]:jc.push(t)}function tM(t,e,r,n){var i=e.interleaved;return i===null?(r.next=r,W9(e)):(r.next=i.next,i.next=r),e.interleaved=r,ja(t,n)}function ja(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var ms=!1;function G9(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rM(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Da(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Ts(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,ft&2){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,ja(t,r)}return i=n.interleaved,i===null?(e.next=e,W9(n)):(e.next=i.next,i.next=e),n.interleaved=e,ja(t,r)}function n4(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,I9(t,r)}}function Cb(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=a:o=o.next=a,r=r.next}while(r!==null);o===null?i=o=e:o=o.next=e}else i=o=e;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function ap(t,e,r,n){var i=t.updateQueue;ms=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,a===null?o=l:a.next=l,a=c;var d=t.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=l:s.next=l,d.lastBaseUpdate=c))}if(o!==null){var h=i.baseState;a=0,d=l=c=null,s=o;do{var u=s.lane,f=s.eventTime;if((n&u)===u){d!==null&&(d=d.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=t,p=s;switch(u=e,f=r,p.tag){case 1:if(v=p.payload,typeof v=="function"){h=v.call(f,h,u);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,u=typeof v=="function"?v.call(f,h,u):v,u==null)break e;h=or({},h,u);break e;case 2:ms=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,u=i.effects,u===null?i.effects=[s]:u.push(s))}else f={eventTime:f,lane:u,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(l=d=f,c=h):d=d.next=f,a|=u;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;u=s,s=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}while(1);if(d===null&&(c=h),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=d,e=i.shared.interleaved,e!==null){i=e;do a|=i.lane,i=i.next;while(i!==e)}else o===null&&(i.shared.lanes=0);s1|=a,t.lanes=a,t.memoizedState=h}}function kb(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(oe(191,i));i.call(n)}}}var nM=new tA.Component().refs;function n6(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:or({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var Fv={isMounted:function(t){return(t=t._reactInternals)?b1(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=Ln(),i=Ds(t),o=Da(n,i);o.payload=e,r!=null&&(o.callback=r),e=Ts(t,o,i),e!==null&&(_o(e,t,i,n),n4(e,t,i))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=Ln(),i=Ds(t),o=Da(n,i);o.tag=1,o.payload=e,r!=null&&(o.callback=r),e=Ts(t,o,i),e!==null&&(_o(e,t,i,n),n4(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=Ln(),n=Ds(t),i=Da(r,n);i.tag=2,e!=null&&(i.callback=e),e=Ts(t,i,n),e!==null&&(_o(e,t,n,r),n4(e,t,n))}};function Eb(t,e,r,n,i,o,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,o,a):e.prototype&&e.prototype.isPureReactComponent?!eu(r,n)||!eu(i,o):!0}function iM(t,e,r){var n=!1,i=Ws,o=e.contextType;return typeof o=="object"&&o!==null?o=Xi(o):(i=si(e)?i1:Pn.current,n=e.contextTypes,o=(n=n!=null)?Kl(t,i):Ws),e=new e(r,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Fv,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function Sb(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&Fv.enqueueReplaceState(e,e.state,null)}function i6(t,e,r,n){var i=t.stateNode;i.props=r,i.state=t.memoizedState,i.refs=nM,G9(t);var o=e.contextType;typeof o=="object"&&o!==null?i.context=Xi(o):(o=si(e)?i1:Pn.current,i.context=Kl(t,o)),i.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(n6(t,e,o,r),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&Fv.enqueueReplaceState(i,i.state,null),ap(t,r,i,n),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function m2(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(oe(309));var n=r.stateNode}if(!n)throw Error(oe(147,t));var i=n,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(a){var s=i.refs;s===nM&&(s=i.refs={}),a===null?delete s[o]:s[o]=a},e._stringRef=o,e)}if(typeof t!="string")throw Error(oe(284));if(!r._owner)throw Error(oe(290,t))}return t}function tf(t,e){throw t=Object.prototype.toString.call(e),Error(oe(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Ab(t){var e=t._init;return e(t._payload)}function oM(t){function e(m,g){if(t){var b=m.deletions;b===null?(m.deletions=[g],m.flags|=16):b.push(g)}}function r(m,g){if(!t)return null;for(;g!==null;)e(m,g),g=g.sibling;return null}function n(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function i(m,g){return m=Vs(m,g),m.index=0,m.sibling=null,m}function o(m,g,b){return m.index=b,t?(b=m.alternate,b!==null?(b=b.index,b<g?(m.flags|=2,g):b):(m.flags|=2,g)):(m.flags|=1048576,g)}function a(m){return t&&m.alternate===null&&(m.flags|=2),m}function s(m,g,b,w){return g===null||g.tag!==6?(g=$m(b,m.mode,w),g.return=m,g):(g=i(g,b),g.return=m,g)}function c(m,g,b,w){var x=b.type;return x===nl?d(m,g,b.props.children,w,b.key):g!==null&&(g.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===vs&&Ab(x)===g.type)?(w=i(g,b.props),w.ref=m2(m,g,b),w.return=m,w):(w=l4(b.type,b.key,b.props,null,m.mode,w),w.ref=m2(m,g,b),w.return=m,w)}function l(m,g,b,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=Pm(b,m.mode,w),g.return=m,g):(g=i(g,b.children||[]),g.return=m,g)}function d(m,g,b,w,x){return g===null||g.tag!==7?(g=Zc(b,m.mode,w,x),g.return=m,g):(g=i(g,b),g.return=m,g)}function h(m,g,b){if(typeof g=="string"&&g!==""||typeof g=="number")return g=$m(""+g,m.mode,b),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case j0:return b=l4(g.type,g.key,g.props,null,m.mode,b),b.ref=m2(m,null,g),b.return=m,b;case rl:return g=Pm(g,m.mode,b),g.return=m,g;case vs:var w=g._init;return h(m,w(g._payload),b)}if(U2(g)||h2(g))return g=Zc(g,m.mode,b,null),g.return=m,g;tf(m,g)}return null}function u(m,g,b,w){var x=g!==null?g.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return x!==null?null:s(m,g,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case j0:return b.key===x?c(m,g,b,w):null;case rl:return b.key===x?l(m,g,b,w):null;case vs:return x=b._init,u(m,g,x(b._payload),w)}if(U2(b)||h2(b))return x!==null?null:d(m,g,b,w,null);tf(m,b)}return null}function f(m,g,b,w,x){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(b)||null,s(g,m,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case j0:return m=m.get(w.key===null?b:w.key)||null,c(g,m,w,x);case rl:return m=m.get(w.key===null?b:w.key)||null,l(g,m,w,x);case vs:var C=w._init;return f(m,g,b,C(w._payload),x)}if(U2(w)||h2(w))return m=m.get(b)||null,d(g,m,w,x,null);tf(g,w)}return null}function v(m,g,b,w){for(var x=null,C=null,S=g,M=g=0,T=null;S!==null&&M<b.length;M++){S.index>M?(T=S,S=null):T=S.sibling;var I=u(m,S,b[M],w);if(I===null){S===null&&(S=T);break}t&&S&&I.alternate===null&&e(m,S),g=o(I,g,M),C===null?x=I:C.sibling=I,C=I,S=T}if(M===b.length)return r(m,S),Qt&&Mc(m,M),x;if(S===null){for(;M<b.length;M++)S=h(m,b[M],w),S!==null&&(g=o(S,g,M),C===null?x=S:C.sibling=S,C=S);return Qt&&Mc(m,M),x}for(S=n(m,S);M<b.length;M++)T=f(S,m,M,b[M],w),T!==null&&(t&&T.alternate!==null&&S.delete(T.key===null?M:T.key),g=o(T,g,M),C===null?x=T:C.sibling=T,C=T);return t&&S.forEach(function(N){return e(m,N)}),Qt&&Mc(m,M),x}function p(m,g,b,w){var x=h2(b);if(typeof x!="function")throw Error(oe(150));if(b=x.call(b),b==null)throw Error(oe(151));for(var C=x=null,S=g,M=g=0,T=null,I=b.next();S!==null&&!I.done;M++,I=b.next()){S.index>M?(T=S,S=null):T=S.sibling;var N=u(m,S,I.value,w);if(N===null){S===null&&(S=T);break}t&&S&&N.alternate===null&&e(m,S),g=o(N,g,M),C===null?x=N:C.sibling=N,C=N,S=T}if(I.done)return r(m,S),Qt&&Mc(m,M),x;if(S===null){for(;!I.done;M++,I=b.next())I=h(m,I.value,w),I!==null&&(g=o(I,g,M),C===null?x=I:C.sibling=I,C=I);return Qt&&Mc(m,M),x}for(S=n(m,S);!I.done;M++,I=b.next())I=f(S,m,M,I.value,w),I!==null&&(t&&I.alternate!==null&&S.delete(I.key===null?M:I.key),g=o(I,g,M),C===null?x=I:C.sibling=I,C=I);return t&&S.forEach(function(U){return e(m,U)}),Qt&&Mc(m,M),x}function _(m,g,b,w){if(typeof b=="object"&&b!==null&&b.type===nl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case j0:e:{for(var x=b.key,C=g;C!==null;){if(C.key===x){if(x=b.type,x===nl){if(C.tag===7){r(m,C.sibling),g=i(C,b.props.children),g.return=m,m=g;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===vs&&Ab(x)===C.type){r(m,C.sibling),g=i(C,b.props),g.ref=m2(m,C,b),g.return=m,m=g;break e}r(m,C);break}else e(m,C);C=C.sibling}b.type===nl?(g=Zc(b.props.children,m.mode,w,b.key),g.return=m,m=g):(w=l4(b.type,b.key,b.props,null,m.mode,w),w.ref=m2(m,g,b),w.return=m,m=w)}return a(m);case rl:e:{for(C=b.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){r(m,g.sibling),g=i(g,b.children||[]),g.return=m,m=g;break e}else{r(m,g);break}else e(m,g);g=g.sibling}g=Pm(b,m.mode,w),g.return=m,m=g}return a(m);case vs:return C=b._init,_(m,g,C(b._payload),w)}if(U2(b))return v(m,g,b,w);if(h2(b))return p(m,g,b,w);tf(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(r(m,g.sibling),g=i(g,b),g.return=m,m=g):(r(m,g),g=$m(b,m.mode,w),g.return=m,m=g),a(m)):r(m,g)}return _}var Xl=oM(!0),aM=oM(!1),Ju={},na=ac(Ju),iu=ac(Ju),ou=ac(Ju);function qc(t){if(t===Ju)throw Error(oe(174));return t}function K9(t,e){switch(Lt(ou,e),Lt(iu,t),Lt(na,Ju),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Dg(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Dg(e,t)}Gt(na),Lt(na,e)}function Ql(){Gt(na),Gt(iu),Gt(ou)}function sM(t){qc(ou.current);var e=qc(na.current),r=Dg(e,t.type);e!==r&&(Lt(iu,t),Lt(na,r))}function Y9(t){iu.current===t&&(Gt(na),Gt(iu))}var nr=ac(0);function sp(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Cm=[];function X9(){for(var t=0;t<Cm.length;t++)Cm[t]._workInProgressVersionPrimary=null;Cm.length=0}var i4=Ya.ReactCurrentDispatcher,km=Ya.ReactCurrentBatchConfig,a1=0,ir=null,Hr=null,qr=null,cp=!1,gh=!1,au=0,RL=0;function yn(){throw Error(oe(321))}function Q9(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!ko(t[r],e[r]))return!1;return!0}function J9(t,e,r,n,i,o){if(a1=o,ir=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,i4.current=t===null||t.memoizedState===null?OL:NL,t=r(n,i),gh){o=0;do{if(gh=!1,au=0,25<=o)throw Error(oe(301));o+=1,qr=Hr=null,e.updateQueue=null,i4.current=FL,t=r(n,i)}while(gh)}if(i4.current=lp,e=Hr!==null&&Hr.next!==null,a1=0,qr=Hr=ir=null,cp=!1,e)throw Error(oe(300));return t}function Z9(){var t=au!==0;return au=0,t}function No(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qr===null?ir.memoizedState=qr=t:qr=qr.next=t,qr}function Qi(){if(Hr===null){var t=ir.alternate;t=t!==null?t.memoizedState:null}else t=Hr.next;var e=qr===null?ir.memoizedState:qr.next;if(e!==null)qr=e,Hr=t;else{if(t===null)throw Error(oe(310));Hr=t,t={memoizedState:Hr.memoizedState,baseState:Hr.baseState,baseQueue:Hr.baseQueue,queue:Hr.queue,next:null},qr===null?ir.memoizedState=qr=t:qr=qr.next=t}return qr}function su(t,e){return typeof e=="function"?e(t):e}function Em(t){var e=Qi(),r=e.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=t;var n=Hr,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var s=a=null,c=null,l=o;do{var d=l.lane;if((a1&d)===d)c!==null&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:t(n,l.action);else{var h={lane:d,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(s=c=h,a=n):c=c.next=h,ir.lanes|=d,s1|=d}l=l.next}while(l!==null&&l!==o);c===null?a=n:c.next=s,ko(n,e.memoizedState)||(ni=!0),e.memoizedState=n,e.baseState=a,e.baseQueue=c,r.lastRenderedState=n}if(t=r.interleaved,t!==null){i=t;do o=i.lane,ir.lanes|=o,s1|=o,i=i.next;while(i!==t)}else i===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Sm(t){var e=Qi(),r=e.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=t;var n=r.dispatch,i=r.pending,o=e.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=t(o,a.action),a=a.next;while(a!==i);ko(o,e.memoizedState)||(ni=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),r.lastRenderedState=o}return[o,n]}function cM(){}function lM(t,e){var r=ir,n=Qi(),i=e(),o=!ko(n.memoizedState,i);if(o&&(n.memoizedState=i,ni=!0),n=n.queue,e7(uM.bind(null,r,n,t),[t]),n.getSnapshot!==e||o||qr!==null&&qr.memoizedState.tag&1){if(r.flags|=2048,cu(9,hM.bind(null,r,n,i,e),void 0,null),Kr===null)throw Error(oe(349));a1&30||dM(r,e,i)}return i}function dM(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=ir.updateQueue,e===null?(e={lastEffect:null,stores:null},ir.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function hM(t,e,r,n){e.value=r,e.getSnapshot=n,fM(e)&&pM(t)}function uM(t,e,r){return r(function(){fM(e)&&pM(t)})}function fM(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!ko(t,r)}catch{return!0}}function pM(t){var e=ja(t,1);e!==null&&_o(e,t,1,-1)}function Mb(t){var e=No();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:su,lastRenderedState:t},e.queue=t,t=t.dispatch=LL.bind(null,ir,t),[e.memoizedState,t]}function cu(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=ir.updateQueue,e===null?(e={lastEffect:null,stores:null},ir.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function vM(){return Qi().memoizedState}function o4(t,e,r,n){var i=No();ir.flags|=t,i.memoizedState=cu(1|e,r,void 0,n===void 0?null:n)}function Bv(t,e,r,n){var i=Qi();n=n===void 0?null:n;var o=void 0;if(Hr!==null){var a=Hr.memoizedState;if(o=a.destroy,n!==null&&Q9(n,a.deps)){i.memoizedState=cu(e,r,o,n);return}}ir.flags|=t,i.memoizedState=cu(1|e,r,o,n)}function $b(t,e){return o4(8390656,8,t,e)}function e7(t,e){return Bv(2048,8,t,e)}function mM(t,e){return Bv(4,2,t,e)}function gM(t,e){return Bv(4,4,t,e)}function yM(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function _M(t,e,r){return r=r!=null?r.concat([t]):null,Bv(4,4,yM.bind(null,e,t),r)}function t7(){}function bM(t,e){var r=Qi();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Q9(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function wM(t,e){var r=Qi();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Q9(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function xM(t,e,r){return a1&21?(ko(r,e)||(r=kA(),ir.lanes|=r,s1|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,ni=!0),t.memoizedState=r)}function DL(t,e){var r=At;At=r!==0&&4>r?r:4,t(!0);var n=km.transition;km.transition={};try{t(!1),e()}finally{At=r,km.transition=n}}function zM(){return Qi().memoizedState}function VL(t,e,r){var n=Ds(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},CM(t))kM(e,r);else if(r=tM(t,e,r,n),r!==null){var i=Ln();_o(r,t,n,i),EM(r,e,n)}}function LL(t,e,r){var n=Ds(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(CM(t))kM(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var a=e.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,ko(s,a)){var c=e.interleaved;c===null?(i.next=i,W9(e)):(i.next=c.next,c.next=i),e.interleaved=i;return}}catch{}finally{}r=tM(t,e,i,n),r!==null&&(i=Ln(),_o(r,t,n,i),EM(r,e,n))}}function CM(t){var e=t.alternate;return t===ir||e!==null&&e===ir}function kM(t,e){gh=cp=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function EM(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,I9(t,r)}}var lp={readContext:Xi,useCallback:yn,useContext:yn,useEffect:yn,useImperativeHandle:yn,useInsertionEffect:yn,useLayoutEffect:yn,useMemo:yn,useReducer:yn,useRef:yn,useState:yn,useDebugValue:yn,useDeferredValue:yn,useTransition:yn,useMutableSource:yn,useSyncExternalStore:yn,useId:yn,unstable_isNewReconciler:!1},OL={readContext:Xi,useCallback:function(t,e){return No().memoizedState=[t,e===void 0?null:e],t},useContext:Xi,useEffect:$b,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,o4(4194308,4,yM.bind(null,e,t),r)},useLayoutEffect:function(t,e){return o4(4194308,4,t,e)},useInsertionEffect:function(t,e){return o4(4,2,t,e)},useMemo:function(t,e){var r=No();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=No();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=VL.bind(null,ir,t),[n.memoizedState,t]},useRef:function(t){var e=No();return t={current:t},e.memoizedState=t},useState:Mb,useDebugValue:t7,useDeferredValue:function(t){return No().memoizedState=t},useTransition:function(){var t=Mb(!1),e=t[0];return t=DL.bind(null,t[1]),No().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=ir,i=No();if(Qt){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=e(),Kr===null)throw Error(oe(349));a1&30||dM(n,e,r)}i.memoizedState=r;var o={value:r,getSnapshot:e};return i.queue=o,$b(uM.bind(null,n,o,t),[t]),n.flags|=2048,cu(9,hM.bind(null,n,o,r,e),void 0,null),r},useId:function(){var t=No(),e=Kr.identifierPrefix;if(Qt){var r=Ma,n=Aa;r=(n&~(1<<32-yo(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=au++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=RL++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},NL={readContext:Xi,useCallback:bM,useContext:Xi,useEffect:e7,useImperativeHandle:_M,useInsertionEffect:mM,useLayoutEffect:gM,useMemo:wM,useReducer:Em,useRef:vM,useState:function(){return Em(su)},useDebugValue:t7,useDeferredValue:function(t){var e=Qi();return xM(e,Hr.memoizedState,t)},useTransition:function(){var t=Em(su)[0],e=Qi().memoizedState;return[t,e]},useMutableSource:cM,useSyncExternalStore:lM,useId:zM,unstable_isNewReconciler:!1},FL={readContext:Xi,useCallback:bM,useContext:Xi,useEffect:e7,useImperativeHandle:_M,useInsertionEffect:mM,useLayoutEffect:gM,useMemo:wM,useReducer:Sm,useRef:vM,useState:function(){return Sm(su)},useDebugValue:t7,useDeferredValue:function(t){var e=Qi();return Hr===null?e.memoizedState=t:xM(e,Hr.memoizedState,t)},useTransition:function(){var t=Sm(su)[0],e=Qi().memoizedState;return[t,e]},useMutableSource:cM,useSyncExternalStore:lM,useId:zM,unstable_isNewReconciler:!1};function Jl(t,e){try{var r="",n=e;do r+=vV(n),n=n.return;while(n);var i=r}catch(o){i=`
39
39
  Error generating stack: `+o.message+`
40
- `+o.stack}return{value:t,source:e,stack:i,digest:null}}function Am(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function o6(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var BL=typeof WeakMap=="function"?WeakMap:Map;function SM(t,e,r){r=Da(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){hp||(hp=!0,v6=n),o6(t,e)},r}function AM(t,e,r){r=Da(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=e.value;r.payload=function(){return n(i)},r.callback=function(){o6(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){o6(t,e),typeof n!="function"&&(Rs===null?Rs=new Set([this]):Rs.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function Pb(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new BL;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(r)||(i.add(r),t=rO.bind(null,t,e,r),e.then(t,t))}function Ib(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Hb(t,e,r,n,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=Da(-1,1),e.tag=2,Ts(r,e,1))),r.lanes|=1),t)}var UL=Ya.ReactCurrentOwner,ni=!1;function Tn(t,e,r,n){e.child=t===null?aM(e,null,r,n):Xl(e,t.child,r,n)}function Tb(t,e,r,n,i){r=r.render;var o=e.ref;return $l(e,i),n=J9(t,e,r,n,o,i),r=Z9(),t!==null&&!ni?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,qa(t,e,i)):(Qt&&r&&N9(e),e.flags|=1,Tn(t,e,n,i),e.child)}function Rb(t,e,r,n,i){if(t===null){var o=r.type;return typeof o=="function"&&!l7(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=o,MM(t,e,o,n,i)):(t=l4(r.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&i)){var a=o.memoizedProps;if(r=r.compare,r=r!==null?r:eu,r(a,n)&&t.ref===e.ref)return qa(t,e,i)}return e.flags|=1,t=Vs(o,n),t.ref=e.ref,t.return=e,e.child=t}function MM(t,e,r,n,i){if(t!==null){var o=t.memoizedProps;if(eu(o,n)&&t.ref===e.ref)if(ni=!1,e.pendingProps=n=o,(t.lanes&i)!==0)t.flags&131072&&(ni=!0);else return e.lanes=t.lanes,qa(t,e,i)}return a6(t,e,r,n,i)}function $M(t,e,r){var n=e.pendingProps,i=n.children,o=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lt(fl,vi),vi|=r;else{if(!(r&1073741824))return t=o!==null?o.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Lt(fl,vi),vi|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Lt(fl,vi),vi|=n}else o!==null?(n=o.baseLanes|r,e.memoizedState=null):n=r,Lt(fl,vi),vi|=n;return Tn(t,e,i,r),e.child}function PM(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function a6(t,e,r,n,i){var o=si(r)?i1:Pn.current;return o=Kl(e,o),$l(e,i),r=J9(t,e,r,n,o,i),n=Z9(),t!==null&&!ni?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,qa(t,e,i)):(Qt&&n&&N9(e),e.flags|=1,Tn(t,e,r,i),e.child)}function Db(t,e,r,n,i){if(si(r)){var o=!0;tp(e)}else o=!1;if($l(e,i),e.stateNode===null)a4(t,e),iM(e,r,n),i6(e,r,n,i),n=!0;else if(t===null){var a=e.stateNode,s=e.memoizedProps;a.props=s;var c=a.context,l=r.contextType;typeof l=="object"&&l!==null?l=Xi(l):(l=si(r)?i1:Pn.current,l=Kl(e,l));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||c!==l)&&Sb(e,a,n,l),ms=!1;var u=e.memoizedState;a.state=u,ap(e,n,a,i),c=e.memoizedState,s!==n||u!==c||ai.current||ms?(typeof d=="function"&&(n6(e,r,d,n),c=e.memoizedState),(s=ms||Eb(e,r,s,n,u,c,l))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=c),a.props=n,a.state=c,a.context=l,n=s):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{a=e.stateNode,rM(t,e),s=e.memoizedProps,l=e.type===e.elementType?s:co(e.type,s),a.props=l,h=e.pendingProps,u=a.context,c=r.contextType,typeof c=="object"&&c!==null?c=Xi(c):(c=si(r)?i1:Pn.current,c=Kl(e,c));var f=r.getDerivedStateFromProps;(d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==h||u!==c)&&Sb(e,a,n,c),ms=!1,u=e.memoizedState,a.state=u,ap(e,n,a,i);var v=e.memoizedState;s!==h||u!==v||ai.current||ms?(typeof f=="function"&&(n6(e,r,f,n),v=e.memoizedState),(l=ms||Eb(e,r,l,n,u,v,c)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,v,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,v,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&u===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&u===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=v),a.props=n,a.state=v,a.context=c,n=l):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&u===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&u===t.memoizedState||(e.flags|=1024),n=!1)}return s6(t,e,r,n,o,i)}function s6(t,e,r,n,i,o){PM(t,e);var a=(e.flags&128)!==0;if(!n&&!a)return i&&wb(e,r,!1),qa(t,e,o);n=e.stateNode,UL.current=e;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&a?(e.child=Xl(e,t.child,null,o),e.child=Xl(e,null,s,o)):Tn(t,e,s,o),e.memoizedState=n.state,i&&wb(e,r,!0),e.child}function IM(t){var e=t.stateNode;e.pendingContext?bb(t,e.pendingContext,e.pendingContext!==e.context):e.context&&bb(t,e.context,!1),K9(t,e.containerInfo)}function Vb(t,e,r,n,i){return Yl(),B9(i),e.flags|=256,Tn(t,e,r,n),e.child}var c6={dehydrated:null,treeContext:null,retryLane:0};function l6(t){return{baseLanes:t,cachePool:null,transitions:null}}function HM(t,e,r){var n=e.pendingProps,i=rr.current,o=!1,a=(e.flags&128)!==0,s;if((s=a)||(s=t!==null&&t.memoizedState===null?!1:(i&2)!==0),s?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Lt(rr,i&1),t===null)return t6(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=n.children,t=n.fallback,o?(n=e.mode,o=e.child,a={mode:"hidden",children:a},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=qv(a,n,0,null),t=Zc(t,n,r,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=l6(r),e.memoizedState=c6,t):r7(e,a));if(i=t.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return jL(t,e,a,n,s,i,r);if(o){o=n.fallback,a=e.mode,i=t.child,s=i.sibling;var c={mode:"hidden",children:n.children};return!(a&1)&&e.child!==i?(n=e.child,n.childLanes=0,n.pendingProps=c,e.deletions=null):(n=Vs(i,c),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Vs(s,o):(o=Zc(o,a,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,n=o,o=e.child,a=t.child.memoizedState,a=a===null?l6(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=t.childLanes&~r,e.memoizedState=c6,n}return o=t.child,t=o.sibling,n=Vs(o,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function r7(t,e){return e=qv({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function rf(t,e,r,n){return n!==null&&B9(n),Xl(e,t.child,null,r),t=r7(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function jL(t,e,r,n,i,o,a){if(r)return e.flags&256?(e.flags&=-257,n=Am(Error(oe(422))),rf(t,e,a,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=n.fallback,i=e.mode,n=qv({mode:"visible",children:n.children},i,0,null),o=Zc(o,i,a,null),o.flags|=2,n.return=e,o.return=e,n.sibling=o,e.child=n,e.mode&1&&Xl(e,t.child,null,a),e.child.memoizedState=l6(a),e.memoizedState=c6,o);if(!(e.mode&1))return rf(t,e,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(oe(419)),n=Am(o,n,void 0),rf(t,e,a,n)}if(s=(a&t.childLanes)!==0,ni||s){if(n=Kr,n!==null){switch(a&-a){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,ja(t,i),_o(n,t,i,-1))}return c7(),n=Am(Error(oe(421))),rf(t,e,a,n)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=nO.bind(null,t),i._reactRetry=e,null):(t=o.treeContext,gi=Hs(i.nextSibling),bi=e,Qt=!0,uo=null,t!==null&&(Oi[Ni++]=Aa,Oi[Ni++]=Ma,Oi[Ni++]=o1,Aa=t.id,Ma=t.overflow,o1=e),e=r7(e,n.children),e.flags|=4096,e)}function Lb(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),r6(t.return,e,r)}function Mm(t,e,r,n,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function TM(t,e,r){var n=e.pendingProps,i=n.revealOrder,o=n.tail;if(Tn(t,e,n.children,r),n=rr.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Lb(t,r,e);else if(t.tag===19)Lb(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(Lt(rr,n),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(r=e.child,i=null;r!==null;)t=r.alternate,t!==null&&sp(t)===null&&(i=r),r=r.sibling;r=i,r===null?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),Mm(e,!1,i,r,o);break;case"backwards":for(r=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&sp(t)===null){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}Mm(e,!0,r,null,o);break;case"together":Mm(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function a4(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function qa(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),s1|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(oe(153));if(e.child!==null){for(t=e.child,r=Vs(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Vs(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function qL(t,e,r){switch(e.tag){case 3:IM(e),Yl();break;case 5:sM(e);break;case 1:si(e.type)&&tp(e);break;case 4:K9(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,i=e.memoizedProps.value;Lt(ip,n._currentValue),n._currentValue=i;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(Lt(rr,rr.current&1),e.flags|=128,null):r&e.child.childLanes?HM(t,e,r):(Lt(rr,rr.current&1),t=qa(t,e,r),t!==null?t.sibling:null);Lt(rr,rr.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return TM(t,e,r);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Lt(rr,rr.current),n)break;return null;case 22:case 23:return e.lanes=0,$M(t,e,r)}return qa(t,e,r)}var RM,d6,DM,VM;RM=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};d6=function(){};DM=function(t,e,r,n){var i=t.memoizedProps;if(i!==n){t=e.stateNode,qc(na.current);var o=null;switch(r){case"input":i=Ig(t,i),n=Ig(t,n),o=[];break;case"select":i=or({},i,{value:void 0}),n=or({},n,{value:void 0}),o=[];break;case"textarea":i=Rg(t,i),n=Rg(t,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=Z4)}Vg(r,n);var a;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Gh.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in n){var c=n[l];if(s=i!=null?i[l]:void 0,n.hasOwnProperty(l)&&c!==s&&(c!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(o||(o=[]),o.push(l,r)),r=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(o=o||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Gh.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&Bt("scroll",t),o||s===c||(o=[])):(o=o||[]).push(l,c))}r&&(o=o||[]).push("style",r);var l=o;(e.updateQueue=l)&&(e.flags|=4)}};VM=function(t,e,r,n){r!==n&&(e.flags|=4)};function g2(t,e){if(!Qt)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function _n(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function WL(t,e,r){var n=e.pendingProps;switch(F9(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _n(e),null;case 1:return si(e.type)&&ep(),_n(e),null;case 3:return n=e.stateNode,Ql(),Gt(ai),Gt(Pn),X9(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ef(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,uo!==null&&(y6(uo),uo=null))),d6(t,e),_n(e),null;case 5:Y9(e);var i=qc(ou.current);if(r=e.type,t!==null&&e.stateNode!=null)DM(t,e,r,n,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(oe(166));return _n(e),null}if(t=qc(na.current),ef(e)){n=e.stateNode,r=e.type;var o=e.memoizedProps;switch(n[Ko]=e,n[nu]=o,t=(e.mode&1)!==0,r){case"dialog":Bt("cancel",n),Bt("close",n);break;case"iframe":case"object":case"embed":Bt("load",n);break;case"video":case"audio":for(i=0;i<q2.length;i++)Bt(q2[i],n);break;case"source":Bt("error",n);break;case"img":case"image":case"link":Bt("error",n),Bt("load",n);break;case"details":Bt("toggle",n);break;case"input":G_(n,o),Bt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Bt("invalid",n);break;case"textarea":Y_(n,o),Bt("invalid",n)}Vg(r,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?n.textContent!==s&&(o.suppressHydrationWarning!==!0&&Z0(n.textContent,s,t),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Z0(n.textContent,s,t),i=["children",""+s]):Gh.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Bt("scroll",n)}switch(r){case"input":q0(n),K_(n,o,!0);break;case"textarea":q0(n),X_(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Z4)}n=i,e.updateQueue=n,n!==null&&(e.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=dA(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=a.createElement(r,{is:n.is}):(t=a.createElement(r),r==="select"&&(a=t,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):t=a.createElementNS(t,r),t[Ko]=e,t[nu]=n,RM(t,e,!1,!1),e.stateNode=t;e:{switch(a=Lg(r,n),r){case"dialog":Bt("cancel",t),Bt("close",t),i=n;break;case"iframe":case"object":case"embed":Bt("load",t),i=n;break;case"video":case"audio":for(i=0;i<q2.length;i++)Bt(q2[i],t);i=n;break;case"source":Bt("error",t),i=n;break;case"img":case"image":case"link":Bt("error",t),Bt("load",t),i=n;break;case"details":Bt("toggle",t),i=n;break;case"input":G_(t,n),i=Ig(t,n),Bt("invalid",t);break;case"option":i=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},i=or({},n,{value:void 0}),Bt("invalid",t);break;case"textarea":Y_(t,n),i=Rg(t,n),Bt("invalid",t);break;default:i=n}Vg(r,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var c=s[o];o==="style"?fA(t,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&hA(t,c)):o==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Kh(t,c):typeof c=="number"&&Kh(t,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Gh.hasOwnProperty(o)?c!=null&&o==="onScroll"&&Bt("scroll",t):c!=null&&E9(t,o,c,a))}switch(r){case"input":q0(t),K_(t,n,!1);break;case"textarea":q0(t),X_(t);break;case"option":n.value!=null&&t.setAttribute("value",""+qs(n.value));break;case"select":t.multiple=!!n.multiple,o=n.value,o!=null?El(t,!!n.multiple,o,!1):n.defaultValue!=null&&El(t,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=Z4)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return _n(e),null;case 6:if(t&&e.stateNode!=null)VM(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(oe(166));if(r=qc(ou.current),qc(na.current),ef(e)){if(n=e.stateNode,r=e.memoizedProps,n[Ko]=e,(o=n.nodeValue!==r)&&(t=bi,t!==null))switch(t.tag){case 3:Z0(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Z0(n.nodeValue,r,(t.mode&1)!==0)}o&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ko]=e,e.stateNode=n}return _n(e),null;case 13:if(Gt(rr),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Qt&&gi!==null&&e.mode&1&&!(e.flags&128))eM(),Yl(),e.flags|=98560,o=!1;else if(o=ef(e),n!==null&&n.dehydrated!==null){if(t===null){if(!o)throw Error(oe(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(oe(317));o[Ko]=e}else Yl(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;_n(e),o=!1}else uo!==null&&(y6(uo),uo=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||rr.current&1?Or===0&&(Or=3):c7())),e.updateQueue!==null&&(e.flags|=4),_n(e),null);case 4:return Ql(),d6(t,e),t===null&&tu(e.stateNode.containerInfo),_n(e),null;case 10:return q9(e.type._context),_n(e),null;case 17:return si(e.type)&&ep(),_n(e),null;case 19:if(Gt(rr),o=e.memoizedState,o===null)return _n(e),null;if(n=(e.flags&128)!==0,a=o.rendering,a===null)if(n)g2(o,!1);else{if(Or!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=sp(t),a!==null){for(e.flags|=128,g2(o,!1),n=a.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)o=r,t=n,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,t=a.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return Lt(rr,rr.current&1|2),e.child}t=t.sibling}o.tail!==null&&mr()>Zl&&(e.flags|=128,n=!0,g2(o,!1),e.lanes=4194304)}else{if(!n)if(t=sp(a),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),g2(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Qt)return _n(e),null}else 2*mr()-o.renderingStartTime>Zl&&r!==1073741824&&(e.flags|=128,n=!0,g2(o,!1),e.lanes=4194304);o.isBackwards?(a.sibling=e.child,e.child=a):(r=o.last,r!==null?r.sibling=a:e.child=a,o.last=a)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=mr(),e.sibling=null,r=rr.current,Lt(rr,n?r&1|2:r&1),e):(_n(e),null);case 22:case 23:return s7(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?vi&1073741824&&(_n(e),e.subtreeFlags&6&&(e.flags|=8192)):_n(e),null;case 24:return null;case 25:return null}throw Error(oe(156,e.tag))}function GL(t,e){switch(F9(e),e.tag){case 1:return si(e.type)&&ep(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ql(),Gt(ai),Gt(Pn),X9(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Y9(e),null;case 13:if(Gt(rr),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(oe(340));Yl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Gt(rr),null;case 4:return Ql(),null;case 10:return q9(e.type._context),null;case 22:case 23:return s7(),null;case 24:return null;default:return null}}var nf=!1,kn=!1,KL=typeof WeakSet=="function"?WeakSet:Set,ye=null;function ul(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){dr(t,e,n)}else r.current=null}function h6(t,e,r){try{r()}catch(n){dr(t,e,n)}}var Ob=!1;function YL(t,e){if(Kg=X4,t=FA(),O9(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,c=-1,l=0,d=0,h=t,u=null;t:for(;;){for(var f;h!==r||i!==0&&h.nodeType!==3||(s=a+i),h!==o||n!==0&&h.nodeType!==3||(c=a+n),h.nodeType===3&&(a+=h.nodeValue.length),(f=h.firstChild)!==null;)u=h,h=f;for(;;){if(h===t)break t;if(u===r&&++l===i&&(s=a),u===o&&++d===n&&(c=a),(f=h.nextSibling)!==null)break;h=u,u=h.parentNode}h=f}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Yg={focusedElem:t,selectionRange:r},X4=!1,ye=e;ye!==null;)if(e=ye,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ye=t;else for(;ye!==null;){e=ye;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,_=v.memoizedState,m=e.stateNode,g=m.getSnapshotBeforeUpdate(e.elementType===e.type?p:co(e.type,p),_);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(w){dr(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,ye=t;break}ye=e.return}return v=Ob,Ob=!1,v}function yh(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,o!==void 0&&h6(e,r,o)}i=i.next}while(i!==n)}}function Uv(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function u6(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function LM(t){var e=t.alternate;e!==null&&(t.alternate=null,LM(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Ko],delete e[nu],delete e[Jg],delete e[PL],delete e[IL])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function OM(t){return t.tag===5||t.tag===3||t.tag===4}function Nb(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||OM(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function f6(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Z4));else if(n!==4&&(t=t.child,t!==null))for(f6(t,e,r),t=t.sibling;t!==null;)f6(t,e,r),t=t.sibling}function p6(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(p6(t,e,r),t=t.sibling;t!==null;)p6(t,e,r),t=t.sibling}var an=null,ho=!1;function is(t,e,r){for(r=r.child;r!==null;)NM(t,e,r),r=r.sibling}function NM(t,e,r){if(ra&&typeof ra.onCommitFiberUnmount=="function")try{ra.onCommitFiberUnmount(Rv,r)}catch{}switch(r.tag){case 5:kn||ul(r,e);case 6:var n=an,i=ho;an=null,is(t,e,r),an=n,ho=i,an!==null&&(ho?(t=an,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):an.removeChild(r.stateNode));break;case 18:an!==null&&(ho?(t=an,r=r.stateNode,t.nodeType===8?xm(t.parentNode,r):t.nodeType===1&&xm(t,r),Jh(t)):xm(an,r.stateNode));break;case 4:n=an,i=ho,an=r.stateNode.containerInfo,ho=!0,is(t,e,r),an=n,ho=i;break;case 0:case 11:case 14:case 15:if(!kn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&h6(r,e,a),i=i.next}while(i!==n)}is(t,e,r);break;case 1:if(!kn&&(ul(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){dr(r,e,s)}is(t,e,r);break;case 21:is(t,e,r);break;case 22:r.mode&1?(kn=(n=kn)||r.memoizedState!==null,is(t,e,r),kn=n):is(t,e,r);break;default:is(t,e,r)}}function Fb(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new KL),e.forEach(function(n){var i=iO.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function eo(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var o=t,a=e,s=a;e:for(;s!==null;){switch(s.tag){case 5:an=s.stateNode,ho=!1;break e;case 3:an=s.stateNode.containerInfo,ho=!0;break e;case 4:an=s.stateNode.containerInfo,ho=!0;break e}s=s.return}if(an===null)throw Error(oe(160));NM(o,a,i),an=null,ho=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(l){dr(i,e,l)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)FM(e,t),e=e.sibling}function FM(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(eo(e,t),Ro(t),n&4){try{yh(3,t,t.return),Uv(3,t)}catch(p){dr(t,t.return,p)}try{yh(5,t,t.return)}catch(p){dr(t,t.return,p)}}break;case 1:eo(e,t),Ro(t),n&512&&r!==null&&ul(r,r.return);break;case 5:if(eo(e,t),Ro(t),n&512&&r!==null&&ul(r,r.return),t.flags&32){var i=t.stateNode;try{Kh(i,"")}catch(p){dr(t,t.return,p)}}if(n&4&&(i=t.stateNode,i!=null)){var o=t.memoizedProps,a=r!==null?r.memoizedProps:o,s=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&cA(i,o),Lg(s,a);var l=Lg(s,o);for(a=0;a<c.length;a+=2){var d=c[a],h=c[a+1];d==="style"?fA(i,h):d==="dangerouslySetInnerHTML"?hA(i,h):d==="children"?Kh(i,h):E9(i,d,h,l)}switch(s){case"input":Hg(i,o);break;case"textarea":lA(i,o);break;case"select":var u=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?El(i,!!o.multiple,f,!1):u!==!!o.multiple&&(o.defaultValue!=null?El(i,!!o.multiple,o.defaultValue,!0):El(i,!!o.multiple,o.multiple?[]:"",!1))}i[nu]=o}catch(p){dr(t,t.return,p)}}break;case 6:if(eo(e,t),Ro(t),n&4){if(t.stateNode===null)throw Error(oe(162));i=t.stateNode,o=t.memoizedProps;try{i.nodeValue=o}catch(p){dr(t,t.return,p)}}break;case 3:if(eo(e,t),Ro(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Jh(e.containerInfo)}catch(p){dr(t,t.return,p)}break;case 4:eo(e,t),Ro(t);break;case 13:eo(e,t),Ro(t),i=t.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(o7=mr())),n&4&&Fb(t);break;case 22:if(d=r!==null&&r.memoizedState!==null,t.mode&1?(kn=(l=kn)||d,eo(e,t),kn=l):eo(e,t),Ro(t),n&8192){if(l=t.memoizedState!==null,(t.stateNode.isHidden=l)&&!d&&t.mode&1)for(ye=t,d=t.child;d!==null;){for(h=ye=d;ye!==null;){switch(u=ye,f=u.child,u.tag){case 0:case 11:case 14:case 15:yh(4,u,u.return);break;case 1:ul(u,u.return);var v=u.stateNode;if(typeof v.componentWillUnmount=="function"){n=u,r=u.return;try{e=n,v.props=e.memoizedProps,v.state=e.memoizedState,v.componentWillUnmount()}catch(p){dr(n,r,p)}}break;case 5:ul(u,u.return);break;case 22:if(u.memoizedState!==null){Ub(h);continue}}f!==null?(f.return=u,ye=f):Ub(h)}d=d.sibling}e:for(d=null,h=t;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=h.stateNode,c=h.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=uA("display",a))}catch(p){dr(t,t.return,p)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=l?"":h.memoizedProps}catch(p){dr(t,t.return,p)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:eo(e,t),Ro(t),n&4&&Fb(t);break;case 21:break;default:eo(e,t),Ro(t)}}function Ro(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(OM(r)){var n=r;break e}r=r.return}throw Error(oe(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Kh(i,""),n.flags&=-33);var o=Nb(t);p6(t,o,i);break;case 3:case 4:var a=n.stateNode.containerInfo,s=Nb(t);f6(t,s,a);break;default:throw Error(oe(161))}}catch(c){dr(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function XL(t,e,r){ye=t,BM(t)}function BM(t,e,r){for(var n=(t.mode&1)!==0;ye!==null;){var i=ye,o=i.child;if(i.tag===22&&n){var a=i.memoizedState!==null||nf;if(!a){var s=i.alternate,c=s!==null&&s.memoizedState!==null||kn;s=nf;var l=kn;if(nf=a,(kn=c)&&!l)for(ye=i;ye!==null;)a=ye,c=a.child,a.tag===22&&a.memoizedState!==null?jb(i):c!==null?(c.return=a,ye=c):jb(i);for(;o!==null;)ye=o,BM(o),o=o.sibling;ye=i,nf=s,kn=l}Bb(t)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ye=o):Bb(t)}}function Bb(t){for(;ye!==null;){var e=ye;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:kn||Uv(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!kn)if(r===null)n.componentDidMount();else{var i=e.elementType===e.type?r.memoizedProps:co(e.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&kb(e,o,n);break;case 3:var a=e.updateQueue;if(a!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}kb(e,a,r)}break;case 5:var s=e.stateNode;if(r===null&&e.flags&4){r=s;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var l=e.alternate;if(l!==null){var d=l.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Jh(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(oe(163))}kn||e.flags&512&&u6(e)}catch(u){dr(e,e.return,u)}}if(e===t){ye=null;break}if(r=e.sibling,r!==null){r.return=e.return,ye=r;break}ye=e.return}}function Ub(t){for(;ye!==null;){var e=ye;if(e===t){ye=null;break}var r=e.sibling;if(r!==null){r.return=e.return,ye=r;break}ye=e.return}}function jb(t){for(;ye!==null;){var e=ye;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{Uv(4,e)}catch(c){dr(e,r,c)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var i=e.return;try{n.componentDidMount()}catch(c){dr(e,i,c)}}var o=e.return;try{u6(e)}catch(c){dr(e,o,c)}break;case 5:var a=e.return;try{u6(e)}catch(c){dr(e,a,c)}}}catch(c){dr(e,e.return,c)}if(e===t){ye=null;break}var s=e.sibling;if(s!==null){s.return=e.return,ye=s;break}ye=e.return}}var QL=Math.ceil,dp=Ya.ReactCurrentDispatcher,n7=Ya.ReactCurrentOwner,Gi=Ya.ReactCurrentBatchConfig,ft=0,Kr=null,Er=null,hn=0,vi=0,fl=ac(0),Or=0,lu=null,s1=0,jv=0,i7=0,_h=null,ti=null,o7=0,Zl=1/0,_a=null,hp=!1,v6=null,Rs=null,of=!1,As=null,up=0,bh=0,m6=null,s4=-1,c4=0;function Ln(){return ft&6?mr():s4!==-1?s4:s4=mr()}function Ds(t){return t.mode&1?ft&2&&hn!==0?hn&-hn:TL.transition!==null?(c4===0&&(c4=kA()),c4):(t=At,t!==0||(t=window.event,t=t===void 0?16:IA(t.type)),t):1}function _o(t,e,r,n){if(50<bh)throw bh=0,m6=null,Error(oe(185));Yu(t,r,n),(!(ft&2)||t!==Kr)&&(t===Kr&&(!(ft&2)&&(jv|=r),Or===4&&bs(t,hn)),ci(t,n),r===1&&ft===0&&!(e.mode&1)&&(Zl=mr()+500,Nv&&sc()))}function ci(t,e){var r=t.callbackNode;TV(t,e);var n=Y4(t,t===Kr?hn:0);if(n===0)r!==null&&Z_(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&Z_(r),e===1)t.tag===0?HL(qb.bind(null,t)):QA(qb.bind(null,t)),ML(function(){!(ft&6)&&sc()}),r=null;else{switch(EA(n)){case 1:r=P9;break;case 4:r=zA;break;case 16:r=K4;break;case 536870912:r=CA;break;default:r=K4}r=XM(r,UM.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function UM(t,e){if(s4=-1,c4=0,ft&6)throw Error(oe(327));var r=t.callbackNode;if(Pl()&&t.callbackNode!==r)return null;var n=Y4(t,t===Kr?hn:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=fp(t,n);else{e=n;var i=ft;ft|=2;var o=qM();(Kr!==t||hn!==e)&&(_a=null,Zl=mr()+500,Jc(t,e));do try{eO();break}catch(s){jM(t,s)}while(1);j9(),dp.current=o,ft=i,Er!==null?e=0:(Kr=null,hn=0,e=Or)}if(e!==0){if(e===2&&(i=Ug(t),i!==0&&(n=i,e=g6(t,i))),e===1)throw r=lu,Jc(t,0),bs(t,n),ci(t,mr()),r;if(e===6)bs(t,n);else{if(i=t.current.alternate,!(n&30)&&!JL(i)&&(e=fp(t,n),e===2&&(o=Ug(t),o!==0&&(n=o,e=g6(t,o))),e===1))throw r=lu,Jc(t,0),bs(t,n),ci(t,mr()),r;switch(t.finishedWork=i,t.finishedLanes=n,e){case 0:case 1:throw Error(oe(345));case 2:$c(t,ti,_a);break;case 3:if(bs(t,n),(n&130023424)===n&&(e=o7+500-mr(),10<e)){if(Y4(t,0)!==0)break;if(i=t.suspendedLanes,(i&n)!==n){Ln(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Qg($c.bind(null,t,ti,_a),e);break}$c(t,ti,_a);break;case 4:if(bs(t,n),(n&4194240)===n)break;for(e=t.eventTimes,i=-1;0<n;){var a=31-yo(n);o=1<<a,a=e[a],a>i&&(i=a),n&=~o}if(n=i,n=mr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*QL(n/1960))-n,10<n){t.timeoutHandle=Qg($c.bind(null,t,ti,_a),n);break}$c(t,ti,_a);break;case 5:$c(t,ti,_a);break;default:throw Error(oe(329))}}}return ci(t,mr()),t.callbackNode===r?UM.bind(null,t):null}function g6(t,e){var r=_h;return t.current.memoizedState.isDehydrated&&(Jc(t,e).flags|=256),t=fp(t,e),t!==2&&(e=ti,ti=r,e!==null&&y6(e)),t}function y6(t){ti===null?ti=t:ti.push.apply(ti,t)}function JL(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!ko(o(),i))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function bs(t,e){for(e&=~i7,e&=~jv,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-yo(e),n=1<<r;t[r]=-1,e&=~n}}function qb(t){if(ft&6)throw Error(oe(327));Pl();var e=Y4(t,0);if(!(e&1))return ci(t,mr()),null;var r=fp(t,e);if(t.tag!==0&&r===2){var n=Ug(t);n!==0&&(e=n,r=g6(t,n))}if(r===1)throw r=lu,Jc(t,0),bs(t,e),ci(t,mr()),r;if(r===6)throw Error(oe(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,$c(t,ti,_a),ci(t,mr()),null}function a7(t,e){var r=ft;ft|=1;try{return t(e)}finally{ft=r,ft===0&&(Zl=mr()+500,Nv&&sc())}}function c1(t){As!==null&&As.tag===0&&!(ft&6)&&Pl();var e=ft;ft|=1;var r=Gi.transition,n=At;try{if(Gi.transition=null,At=1,t)return t()}finally{At=n,Gi.transition=r,ft=e,!(ft&6)&&sc()}}function s7(){vi=fl.current,Gt(fl)}function Jc(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,AL(r)),Er!==null)for(r=Er.return;r!==null;){var n=r;switch(F9(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&ep();break;case 3:Ql(),Gt(ai),Gt(Pn),X9();break;case 5:Y9(n);break;case 4:Ql();break;case 13:Gt(rr);break;case 19:Gt(rr);break;case 10:q9(n.type._context);break;case 22:case 23:s7()}r=r.return}if(Kr=t,Er=t=Vs(t.current,null),hn=vi=e,Or=0,lu=null,i7=jv=s1=0,ti=_h=null,jc!==null){for(e=0;e<jc.length;e++)if(r=jc[e],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var a=o.next;o.next=i,n.next=a}r.pending=n}jc=null}return t}function jM(t,e){do{var r=Er;try{if(j9(),i4.current=lp,cp){for(var n=nr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}cp=!1}if(a1=0,qr=Hr=nr=null,gh=!1,au=0,n7.current=null,r===null||r.return===null){Or=1,lu=e,Er=null;break}e:{var o=t,a=r.return,s=r,c=e;if(e=hn,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,d=s,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var u=d.alternate;u?(d.updateQueue=u.updateQueue,d.memoizedState=u.memoizedState,d.lanes=u.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=Ib(a);if(f!==null){f.flags&=-257,Hb(f,a,s,o,e),f.mode&1&&Pb(o,l,e),e=f,c=l;var v=e.updateQueue;if(v===null){var p=new Set;p.add(c),e.updateQueue=p}else v.add(c);break e}else{if(!(e&1)){Pb(o,l,e),c7();break e}c=Error(oe(426))}}else if(Qt&&s.mode&1){var _=Ib(a);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Hb(_,a,s,o,e),B9(Jl(c,s));break e}}o=c=Jl(c,s),Or!==4&&(Or=2),_h===null?_h=[o]:_h.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var m=SM(o,c,e);Cb(o,m);break e;case 1:s=c;var g=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Rs===null||!Rs.has(b)))){o.flags|=65536,e&=-e,o.lanes|=e;var w=AM(o,s,e);Cb(o,w);break e}}o=o.return}while(o!==null)}GM(r)}catch(x){e=x,Er===r&&r!==null&&(Er=r=r.return);continue}break}while(1)}function qM(){var t=dp.current;return dp.current=lp,t===null?lp:t}function c7(){(Or===0||Or===3||Or===2)&&(Or=4),Kr===null||!(s1&268435455)&&!(jv&268435455)||bs(Kr,hn)}function fp(t,e){var r=ft;ft|=2;var n=qM();(Kr!==t||hn!==e)&&(_a=null,Jc(t,e));do try{ZL();break}catch(i){jM(t,i)}while(1);if(j9(),ft=r,dp.current=n,Er!==null)throw Error(oe(261));return Kr=null,hn=0,Or}function ZL(){for(;Er!==null;)WM(Er)}function eO(){for(;Er!==null&&!kV();)WM(Er)}function WM(t){var e=YM(t.alternate,t,vi);t.memoizedProps=t.pendingProps,e===null?GM(t):Er=e,n7.current=null}function GM(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=GL(r,e),r!==null){r.flags&=32767,Er=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Or=6,Er=null;return}}else if(r=WL(r,e,vi),r!==null){Er=r;return}if(e=e.sibling,e!==null){Er=e;return}Er=e=t}while(e!==null);Or===0&&(Or=5)}function $c(t,e,r){var n=At,i=Gi.transition;try{Gi.transition=null,At=1,tO(t,e,r,n)}finally{Gi.transition=i,At=n}return null}function tO(t,e,r,n){do Pl();while(As!==null);if(ft&6)throw Error(oe(327));r=t.finishedWork;var i=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(oe(177));t.callbackNode=null,t.callbackPriority=0;var o=r.lanes|r.childLanes;if(RV(t,o),t===Kr&&(Er=Kr=null,hn=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||of||(of=!0,XM(K4,function(){return Pl(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=Gi.transition,Gi.transition=null;var a=At;At=1;var s=ft;ft|=4,n7.current=null,YL(t,r),FM(r,t),wL(Yg),X4=!!Kg,Yg=Kg=null,t.current=r,XL(r),EV(),ft=s,At=a,Gi.transition=o}else t.current=r;if(of&&(of=!1,As=t,up=i),o=t.pendingLanes,o===0&&(Rs=null),MV(r.stateNode),ci(t,mr()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)i=e[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(hp)throw hp=!1,t=v6,v6=null,t;return up&1&&t.tag!==0&&Pl(),o=t.pendingLanes,o&1?t===m6?bh++:(bh=0,m6=t):bh=0,sc(),null}function Pl(){if(As!==null){var t=EA(up),e=Gi.transition,r=At;try{if(Gi.transition=null,At=16>t?16:t,As===null)var n=!1;else{if(t=As,As=null,up=0,ft&6)throw Error(oe(331));var i=ft;for(ft|=4,ye=t.current;ye!==null;){var o=ye,a=o.child;if(ye.flags&16){var s=o.deletions;if(s!==null){for(var c=0;c<s.length;c++){var l=s[c];for(ye=l;ye!==null;){var d=ye;switch(d.tag){case 0:case 11:case 15:yh(8,d,o)}var h=d.child;if(h!==null)h.return=d,ye=h;else for(;ye!==null;){d=ye;var u=d.sibling,f=d.return;if(LM(d),d===l){ye=null;break}if(u!==null){u.return=f,ye=u;break}ye=f}}}var v=o.alternate;if(v!==null){var p=v.child;if(p!==null){v.child=null;do{var _=p.sibling;p.sibling=null,p=_}while(p!==null)}}ye=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,ye=a;else e:for(;ye!==null;){if(o=ye,o.flags&2048)switch(o.tag){case 0:case 11:case 15:yh(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,ye=m;break e}ye=o.return}}var g=t.current;for(ye=g;ye!==null;){a=ye;var b=a.child;if(a.subtreeFlags&2064&&b!==null)b.return=a,ye=b;else e:for(a=g;ye!==null;){if(s=ye,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Uv(9,s)}}catch(x){dr(s,s.return,x)}if(s===a){ye=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,ye=w;break e}ye=s.return}}if(ft=i,sc(),ra&&typeof ra.onPostCommitFiberRoot=="function")try{ra.onPostCommitFiberRoot(Rv,t)}catch{}n=!0}return n}finally{At=r,Gi.transition=e}}return!1}function Wb(t,e,r){e=Jl(r,e),e=SM(t,e,1),t=Ts(t,e,1),e=Ln(),t!==null&&(Yu(t,1,e),ci(t,e))}function dr(t,e,r){if(t.tag===3)Wb(t,t,r);else for(;e!==null;){if(e.tag===3){Wb(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Rs===null||!Rs.has(n))){t=Jl(r,t),t=AM(e,t,1),e=Ts(e,t,1),t=Ln(),e!==null&&(Yu(e,1,t),ci(e,t));break}}e=e.return}}function rO(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=Ln(),t.pingedLanes|=t.suspendedLanes&r,Kr===t&&(hn&r)===r&&(Or===4||Or===3&&(hn&130023424)===hn&&500>mr()-o7?Jc(t,0):i7|=r),ci(t,e)}function KM(t,e){e===0&&(t.mode&1?(e=K0,K0<<=1,!(K0&130023424)&&(K0=4194304)):e=1);var r=Ln();t=ja(t,e),t!==null&&(Yu(t,e,r),ci(t,r))}function nO(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),KM(t,r)}function iO(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(oe(314))}n!==null&&n.delete(e),KM(t,r)}var YM;YM=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||ai.current)ni=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return ni=!1,qL(t,e,r);ni=!!(t.flags&131072)}else ni=!1,Qt&&e.flags&1048576&&JA(e,np,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;a4(t,e),t=e.pendingProps;var i=Kl(e,Pn.current);$l(e,r),i=J9(null,e,n,t,i,r);var o=Z9();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(n)?(o=!0,tp(e)):o=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,G9(e),i.updater=Fv,e.stateNode=i,i._reactInternals=e,i6(e,n,t,r),e=s6(null,e,n,!0,o,r)):(e.tag=0,Qt&&o&&N9(e),Tn(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(a4(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=aO(n),t=co(n,t),i){case 0:e=a6(null,e,n,t,r);break e;case 1:e=Db(null,e,n,t,r);break e;case 11:e=Tb(null,e,n,t,r);break e;case 14:e=Rb(null,e,n,co(n.type,t),r);break e}throw Error(oe(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:co(n,i),a6(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:co(n,i),Db(t,e,n,i,r);case 3:e:{if(IM(e),t===null)throw Error(oe(387));n=e.pendingProps,o=e.memoizedState,i=o.element,rM(t,e),ap(e,n,null,r);var a=e.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){i=Jl(Error(oe(423)),e),e=Vb(t,e,n,r,i);break e}else if(n!==i){i=Jl(Error(oe(424)),e),e=Vb(t,e,n,r,i);break e}else for(gi=Hs(e.stateNode.containerInfo.firstChild),bi=e,Qt=!0,uo=null,r=aM(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Yl(),n===i){e=qa(t,e,r);break e}Tn(t,e,n,r)}e=e.child}return e;case 5:return sM(e),t===null&&t6(e),n=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,a=i.children,Xg(n,i)?a=null:o!==null&&Xg(n,o)&&(e.flags|=32),PM(t,e),Tn(t,e,a,r),e.child;case 6:return t===null&&t6(e),null;case 13:return HM(t,e,r);case 4:return K9(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Xl(e,null,n,r):Tn(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:co(n,i),Tb(t,e,n,i,r);case 7:return Tn(t,e,e.pendingProps,r),e.child;case 8:return Tn(t,e,e.pendingProps.children,r),e.child;case 12:return Tn(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,o=e.memoizedProps,a=i.value,Lt(ip,n._currentValue),n._currentValue=a,o!==null)if(ko(o.value,a)){if(o.children===i.children&&!ai.current){e=qa(t,e,r);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var c=s.firstContext;c!==null;){if(c.context===n){if(o.tag===1){c=Da(-1,r&-r),c.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var d=l.pending;d===null?c.next=c:(c.next=d.next,d.next=c),l.pending=c}}o.lanes|=r,c=o.alternate,c!==null&&(c.lanes|=r),r6(o.return,r,e),s.lanes|=r;break}c=c.next}}else if(o.tag===10)a=o.type===e.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(oe(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),r6(a,r,e),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===e){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Tn(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,$l(e,r),i=Xi(i),n=n(i),e.flags|=1,Tn(t,e,n,r),e.child;case 14:return n=e.type,i=co(n,e.pendingProps),i=co(n.type,i),Rb(t,e,n,i,r);case 15:return MM(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:co(n,i),a4(t,e),e.tag=1,si(n)?(t=!0,tp(e)):t=!1,$l(e,r),iM(e,n,i),i6(e,n,i,r),s6(null,e,n,!0,t,r);case 19:return TM(t,e,r);case 22:return $M(t,e,r)}throw Error(oe(156,e.tag))};function XM(t,e){return xA(t,e)}function oO(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ji(t,e,r,n){return new oO(t,e,r,n)}function l7(t){return t=t.prototype,!(!t||!t.isReactComponent)}function aO(t){if(typeof t=="function")return l7(t)?1:0;if(t!=null){if(t=t.$$typeof,t===A9)return 11;if(t===M9)return 14}return 2}function Vs(t,e){var r=t.alternate;return r===null?(r=ji(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function l4(t,e,r,n,i,o){var a=2;if(n=t,typeof t=="function")l7(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case nl:return Zc(r.children,i,o,e);case S9:a=8,i|=8;break;case Ag:return t=ji(12,r,e,i|2),t.elementType=Ag,t.lanes=o,t;case Mg:return t=ji(13,r,e,i),t.elementType=Mg,t.lanes=o,t;case $g:return t=ji(19,r,e,i),t.elementType=$g,t.lanes=o,t;case oA:return qv(r,i,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case nA:a=10;break e;case iA:a=9;break e;case A9:a=11;break e;case M9:a=14;break e;case vs:a=16,n=null;break e}throw Error(oe(130,t==null?t:typeof t,""))}return e=ji(a,r,e,i),e.elementType=t,e.type=n,e.lanes=o,e}function Zc(t,e,r,n){return t=ji(7,t,n,e),t.lanes=r,t}function qv(t,e,r,n){return t=ji(22,t,n,e),t.elementType=oA,t.lanes=r,t.stateNode={isHidden:!1},t}function $m(t,e,r){return t=ji(6,t,null,e),t.lanes=r,t}function Pm(t,e,r){return e=ji(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function sO(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hm(0),this.expirationTimes=hm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hm(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function d7(t,e,r,n,i,o,a,s,c){return t=new sO(t,e,r,s,c),e===1?(e=1,o===!0&&(e|=8)):e=0,o=ji(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},G9(o),t}function cO(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:rl,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function QM(t){if(!t)return Ws;t=t._reactInternals;e:{if(b1(t)!==t||t.tag!==1)throw Error(oe(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(si(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(oe(171))}if(t.tag===1){var r=t.type;if(si(r))return XA(t,r,e)}return e}function JM(t,e,r,n,i,o,a,s,c){return t=d7(r,n,!0,t,i,o,a,s,c),t.context=QM(null),r=t.current,n=Ln(),i=Ds(r),o=Da(n,i),o.callback=e??null,Ts(r,o,i),t.current.lanes=i,Yu(t,i,n),ci(t,n),t}function Wv(t,e,r,n){var i=e.current,o=Ln(),a=Ds(i);return r=QM(r),e.context===null?e.context=r:e.pendingContext=r,e=Da(o,a),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=Ts(i,e,a),t!==null&&(_o(t,i,a,o),n4(t,i,a)),a}function pp(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Gb(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function h7(t,e){Gb(t,e),(t=t.alternate)&&Gb(t,e)}function lO(){return null}var ZM=typeof reportError=="function"?reportError:function(t){console.error(t)};function u7(t){this._internalRoot=t}Gv.prototype.render=u7.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(oe(409));Wv(t,e,null,null)};Gv.prototype.unmount=u7.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;c1(function(){Wv(null,t,null,null)}),e[Ua]=null}};function Gv(t){this._internalRoot=t}Gv.prototype.unstable_scheduleHydration=function(t){if(t){var e=MA();t={blockedOn:null,target:t,priority:e};for(var r=0;r<_s.length&&e!==0&&e<_s[r].priority;r++);_s.splice(r,0,t),r===0&&PA(t)}};function f7(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Kv(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Kb(){}function dO(t,e,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var l=pp(a);o.call(l)}}var a=JM(e,n,t,0,null,!1,!1,"",Kb);return t._reactRootContainer=a,t[Ua]=a.current,tu(t.nodeType===8?t.parentNode:t),c1(),a}for(;i=t.lastChild;)t.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var l=pp(c);s.call(l)}}var c=d7(t,0,!1,null,null,!1,!1,"",Kb);return t._reactRootContainer=c,t[Ua]=c.current,tu(t.nodeType===8?t.parentNode:t),c1(function(){Wv(e,c,r,n)}),c}function Yv(t,e,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var c=pp(a);s.call(c)}}Wv(e,a,t,i)}else a=dO(r,e,t,i,n);return pp(a)}SA=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=j2(e.pendingLanes);r!==0&&(I9(e,r|1),ci(e,mr()),!(ft&6)&&(Zl=mr()+500,sc()))}break;case 13:c1(function(){var n=ja(t,1);if(n!==null){var i=Ln();_o(n,t,1,i)}}),h7(t,1)}};H9=function(t){if(t.tag===13){var e=ja(t,134217728);if(e!==null){var r=Ln();_o(e,t,134217728,r)}h7(t,134217728)}};AA=function(t){if(t.tag===13){var e=Ds(t),r=ja(t,e);if(r!==null){var n=Ln();_o(r,t,e,n)}h7(t,e)}};MA=function(){return At};$A=function(t,e){var r=At;try{return At=t,e()}finally{At=r}};Ng=function(t,e,r){switch(e){case"input":if(Hg(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var i=Ov(n);if(!i)throw Error(oe(90));sA(n),Hg(n,i)}}}break;case"textarea":lA(t,r);break;case"select":e=r.value,e!=null&&El(t,!!r.multiple,e,!1)}};mA=a7;gA=c1;var hO={usingClientEntryPoint:!1,Events:[Qu,sl,Ov,pA,vA,a7]},y2={findFiberByHostInstance:Uc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},uO={bundleType:y2.bundleType,version:y2.version,rendererPackageName:y2.rendererPackageName,rendererConfig:y2.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ya.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=bA(t),t===null?null:t.stateNode},findFiberByHostInstance:y2.findFiberByHostInstance||lO,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 af=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!af.isDisabled&&af.supportsFiber)try{Rv=af.inject(uO),ra=af}catch{}}$i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hO;$i.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f7(e))throw Error(oe(200));return cO(t,e,null,r)};$i.createRoot=function(t,e){if(!f7(t))throw Error(oe(299));var r=!1,n="",i=ZM;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=d7(t,1,!1,null,null,r,!1,n,i),t[Ua]=e.current,tu(t.nodeType===8?t.parentNode:t),new u7(e)};$i.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(oe(188)):(t=Object.keys(t).join(","),Error(oe(268,t)));return t=bA(e),t=t===null?null:t.stateNode,t};$i.flushSync=function(t){return c1(t)};$i.hydrate=function(t,e,r){if(!Kv(e))throw Error(oe(200));return Yv(null,t,e,!0,r)};$i.hydrateRoot=function(t,e,r){if(!f7(t))throw Error(oe(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",a=ZM;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),e=JM(e,null,t,1,r??null,i,!1,o,a),t[Ua]=e.current,tu(t),n)for(t=0;t<n.length;t++)r=n[t],i=r._getVersion,i=i(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,i]:e.mutableSourceEagerHydrationData.push(r,i);return new Gv(e)};$i.render=function(t,e,r){if(!Kv(e))throw Error(oe(200));return Yv(null,t,e,!1,r)};$i.unmountComponentAtNode=function(t){if(!Kv(t))throw Error(oe(40));return t._reactRootContainer?(c1(function(){Yv(null,null,t,!1,function(){t._reactRootContainer=null,t[Ua]=null})}),!0):!1};$i.unstable_batchedUpdates=a7;$i.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Kv(r))throw Error(oe(200));if(t==null||t._reactInternals===void 0)throw Error(oe(38));return Yv(t,e,r,!1,n)};$i.version="18.2.0-next-9e3b772b8-20220608";(function(t){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}e(),t.exports=$i})(lV);var Yb=Co;kg.createRoot=Yb.createRoot,kg.hydrateRoot=Yb.hydrateRoot;let fO=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((r,n)=>[...r,n,`
40
+ `+o.stack}return{value:t,source:e,stack:i,digest:null}}function Am(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function o6(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var BL=typeof WeakMap=="function"?WeakMap:Map;function SM(t,e,r){r=Da(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){hp||(hp=!0,v6=n),o6(t,e)},r}function AM(t,e,r){r=Da(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=e.value;r.payload=function(){return n(i)},r.callback=function(){o6(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){o6(t,e),typeof n!="function"&&(Rs===null?Rs=new Set([this]):Rs.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function Pb(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new BL;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(r)||(i.add(r),t=rO.bind(null,t,e,r),e.then(t,t))}function Ib(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Hb(t,e,r,n,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=Da(-1,1),e.tag=2,Ts(r,e,1))),r.lanes|=1),t)}var UL=Ya.ReactCurrentOwner,ni=!1;function Tn(t,e,r,n){e.child=t===null?aM(e,null,r,n):Xl(e,t.child,r,n)}function Tb(t,e,r,n,i){r=r.render;var o=e.ref;return $l(e,i),n=J9(t,e,r,n,o,i),r=Z9(),t!==null&&!ni?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,qa(t,e,i)):(Qt&&r&&N9(e),e.flags|=1,Tn(t,e,n,i),e.child)}function Rb(t,e,r,n,i){if(t===null){var o=r.type;return typeof o=="function"&&!l7(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=o,MM(t,e,o,n,i)):(t=l4(r.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&i)){var a=o.memoizedProps;if(r=r.compare,r=r!==null?r:eu,r(a,n)&&t.ref===e.ref)return qa(t,e,i)}return e.flags|=1,t=Vs(o,n),t.ref=e.ref,t.return=e,e.child=t}function MM(t,e,r,n,i){if(t!==null){var o=t.memoizedProps;if(eu(o,n)&&t.ref===e.ref)if(ni=!1,e.pendingProps=n=o,(t.lanes&i)!==0)t.flags&131072&&(ni=!0);else return e.lanes=t.lanes,qa(t,e,i)}return a6(t,e,r,n,i)}function $M(t,e,r){var n=e.pendingProps,i=n.children,o=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lt(fl,vi),vi|=r;else{if(!(r&1073741824))return t=o!==null?o.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Lt(fl,vi),vi|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Lt(fl,vi),vi|=n}else o!==null?(n=o.baseLanes|r,e.memoizedState=null):n=r,Lt(fl,vi),vi|=n;return Tn(t,e,i,r),e.child}function PM(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function a6(t,e,r,n,i){var o=si(r)?i1:Pn.current;return o=Kl(e,o),$l(e,i),r=J9(t,e,r,n,o,i),n=Z9(),t!==null&&!ni?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,qa(t,e,i)):(Qt&&n&&N9(e),e.flags|=1,Tn(t,e,r,i),e.child)}function Db(t,e,r,n,i){if(si(r)){var o=!0;tp(e)}else o=!1;if($l(e,i),e.stateNode===null)a4(t,e),iM(e,r,n),i6(e,r,n,i),n=!0;else if(t===null){var a=e.stateNode,s=e.memoizedProps;a.props=s;var c=a.context,l=r.contextType;typeof l=="object"&&l!==null?l=Xi(l):(l=si(r)?i1:Pn.current,l=Kl(e,l));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||c!==l)&&Sb(e,a,n,l),ms=!1;var u=e.memoizedState;a.state=u,ap(e,n,a,i),c=e.memoizedState,s!==n||u!==c||ai.current||ms?(typeof d=="function"&&(n6(e,r,d,n),c=e.memoizedState),(s=ms||Eb(e,r,s,n,u,c,l))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=c),a.props=n,a.state=c,a.context=l,n=s):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{a=e.stateNode,rM(t,e),s=e.memoizedProps,l=e.type===e.elementType?s:co(e.type,s),a.props=l,h=e.pendingProps,u=a.context,c=r.contextType,typeof c=="object"&&c!==null?c=Xi(c):(c=si(r)?i1:Pn.current,c=Kl(e,c));var f=r.getDerivedStateFromProps;(d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==h||u!==c)&&Sb(e,a,n,c),ms=!1,u=e.memoizedState,a.state=u,ap(e,n,a,i);var v=e.memoizedState;s!==h||u!==v||ai.current||ms?(typeof f=="function"&&(n6(e,r,f,n),v=e.memoizedState),(l=ms||Eb(e,r,l,n,u,v,c)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,v,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,v,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&u===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&u===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=v),a.props=n,a.state=v,a.context=c,n=l):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&u===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&u===t.memoizedState||(e.flags|=1024),n=!1)}return s6(t,e,r,n,o,i)}function s6(t,e,r,n,i,o){PM(t,e);var a=(e.flags&128)!==0;if(!n&&!a)return i&&wb(e,r,!1),qa(t,e,o);n=e.stateNode,UL.current=e;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&a?(e.child=Xl(e,t.child,null,o),e.child=Xl(e,null,s,o)):Tn(t,e,s,o),e.memoizedState=n.state,i&&wb(e,r,!0),e.child}function IM(t){var e=t.stateNode;e.pendingContext?bb(t,e.pendingContext,e.pendingContext!==e.context):e.context&&bb(t,e.context,!1),K9(t,e.containerInfo)}function Vb(t,e,r,n,i){return Yl(),B9(i),e.flags|=256,Tn(t,e,r,n),e.child}var c6={dehydrated:null,treeContext:null,retryLane:0};function l6(t){return{baseLanes:t,cachePool:null,transitions:null}}function HM(t,e,r){var n=e.pendingProps,i=nr.current,o=!1,a=(e.flags&128)!==0,s;if((s=a)||(s=t!==null&&t.memoizedState===null?!1:(i&2)!==0),s?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Lt(nr,i&1),t===null)return t6(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=n.children,t=n.fallback,o?(n=e.mode,o=e.child,a={mode:"hidden",children:a},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=qv(a,n,0,null),t=Zc(t,n,r,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=l6(r),e.memoizedState=c6,t):r7(e,a));if(i=t.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return jL(t,e,a,n,s,i,r);if(o){o=n.fallback,a=e.mode,i=t.child,s=i.sibling;var c={mode:"hidden",children:n.children};return!(a&1)&&e.child!==i?(n=e.child,n.childLanes=0,n.pendingProps=c,e.deletions=null):(n=Vs(i,c),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Vs(s,o):(o=Zc(o,a,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,n=o,o=e.child,a=t.child.memoizedState,a=a===null?l6(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=t.childLanes&~r,e.memoizedState=c6,n}return o=t.child,t=o.sibling,n=Vs(o,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function r7(t,e){return e=qv({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function rf(t,e,r,n){return n!==null&&B9(n),Xl(e,t.child,null,r),t=r7(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function jL(t,e,r,n,i,o,a){if(r)return e.flags&256?(e.flags&=-257,n=Am(Error(oe(422))),rf(t,e,a,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=n.fallback,i=e.mode,n=qv({mode:"visible",children:n.children},i,0,null),o=Zc(o,i,a,null),o.flags|=2,n.return=e,o.return=e,n.sibling=o,e.child=n,e.mode&1&&Xl(e,t.child,null,a),e.child.memoizedState=l6(a),e.memoizedState=c6,o);if(!(e.mode&1))return rf(t,e,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(oe(419)),n=Am(o,n,void 0),rf(t,e,a,n)}if(s=(a&t.childLanes)!==0,ni||s){if(n=Kr,n!==null){switch(a&-a){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,ja(t,i),_o(n,t,i,-1))}return c7(),n=Am(Error(oe(421))),rf(t,e,a,n)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=nO.bind(null,t),i._reactRetry=e,null):(t=o.treeContext,gi=Hs(i.nextSibling),bi=e,Qt=!0,uo=null,t!==null&&(Oi[Ni++]=Aa,Oi[Ni++]=Ma,Oi[Ni++]=o1,Aa=t.id,Ma=t.overflow,o1=e),e=r7(e,n.children),e.flags|=4096,e)}function Lb(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),r6(t.return,e,r)}function Mm(t,e,r,n,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function TM(t,e,r){var n=e.pendingProps,i=n.revealOrder,o=n.tail;if(Tn(t,e,n.children,r),n=nr.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Lb(t,r,e);else if(t.tag===19)Lb(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(Lt(nr,n),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(r=e.child,i=null;r!==null;)t=r.alternate,t!==null&&sp(t)===null&&(i=r),r=r.sibling;r=i,r===null?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),Mm(e,!1,i,r,o);break;case"backwards":for(r=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&sp(t)===null){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}Mm(e,!0,r,null,o);break;case"together":Mm(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function a4(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function qa(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),s1|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(oe(153));if(e.child!==null){for(t=e.child,r=Vs(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Vs(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function qL(t,e,r){switch(e.tag){case 3:IM(e),Yl();break;case 5:sM(e);break;case 1:si(e.type)&&tp(e);break;case 4:K9(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,i=e.memoizedProps.value;Lt(ip,n._currentValue),n._currentValue=i;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(Lt(nr,nr.current&1),e.flags|=128,null):r&e.child.childLanes?HM(t,e,r):(Lt(nr,nr.current&1),t=qa(t,e,r),t!==null?t.sibling:null);Lt(nr,nr.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return TM(t,e,r);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Lt(nr,nr.current),n)break;return null;case 22:case 23:return e.lanes=0,$M(t,e,r)}return qa(t,e,r)}var RM,d6,DM,VM;RM=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};d6=function(){};DM=function(t,e,r,n){var i=t.memoizedProps;if(i!==n){t=e.stateNode,qc(na.current);var o=null;switch(r){case"input":i=Ig(t,i),n=Ig(t,n),o=[];break;case"select":i=or({},i,{value:void 0}),n=or({},n,{value:void 0}),o=[];break;case"textarea":i=Rg(t,i),n=Rg(t,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=Z4)}Vg(r,n);var a;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Gh.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in n){var c=n[l];if(s=i!=null?i[l]:void 0,n.hasOwnProperty(l)&&c!==s&&(c!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(o||(o=[]),o.push(l,r)),r=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(o=o||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Gh.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&Bt("scroll",t),o||s===c||(o=[])):(o=o||[]).push(l,c))}r&&(o=o||[]).push("style",r);var l=o;(e.updateQueue=l)&&(e.flags|=4)}};VM=function(t,e,r,n){r!==n&&(e.flags|=4)};function g2(t,e){if(!Qt)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function _n(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function WL(t,e,r){var n=e.pendingProps;switch(F9(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _n(e),null;case 1:return si(e.type)&&ep(),_n(e),null;case 3:return n=e.stateNode,Ql(),Gt(ai),Gt(Pn),X9(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ef(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,uo!==null&&(y6(uo),uo=null))),d6(t,e),_n(e),null;case 5:Y9(e);var i=qc(ou.current);if(r=e.type,t!==null&&e.stateNode!=null)DM(t,e,r,n,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(oe(166));return _n(e),null}if(t=qc(na.current),ef(e)){n=e.stateNode,r=e.type;var o=e.memoizedProps;switch(n[Ko]=e,n[nu]=o,t=(e.mode&1)!==0,r){case"dialog":Bt("cancel",n),Bt("close",n);break;case"iframe":case"object":case"embed":Bt("load",n);break;case"video":case"audio":for(i=0;i<q2.length;i++)Bt(q2[i],n);break;case"source":Bt("error",n);break;case"img":case"image":case"link":Bt("error",n),Bt("load",n);break;case"details":Bt("toggle",n);break;case"input":G_(n,o),Bt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Bt("invalid",n);break;case"textarea":Y_(n,o),Bt("invalid",n)}Vg(r,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?n.textContent!==s&&(o.suppressHydrationWarning!==!0&&Z0(n.textContent,s,t),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Z0(n.textContent,s,t),i=["children",""+s]):Gh.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Bt("scroll",n)}switch(r){case"input":q0(n),K_(n,o,!0);break;case"textarea":q0(n),X_(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Z4)}n=i,e.updateQueue=n,n!==null&&(e.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=dA(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=a.createElement(r,{is:n.is}):(t=a.createElement(r),r==="select"&&(a=t,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):t=a.createElementNS(t,r),t[Ko]=e,t[nu]=n,RM(t,e,!1,!1),e.stateNode=t;e:{switch(a=Lg(r,n),r){case"dialog":Bt("cancel",t),Bt("close",t),i=n;break;case"iframe":case"object":case"embed":Bt("load",t),i=n;break;case"video":case"audio":for(i=0;i<q2.length;i++)Bt(q2[i],t);i=n;break;case"source":Bt("error",t),i=n;break;case"img":case"image":case"link":Bt("error",t),Bt("load",t),i=n;break;case"details":Bt("toggle",t),i=n;break;case"input":G_(t,n),i=Ig(t,n),Bt("invalid",t);break;case"option":i=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},i=or({},n,{value:void 0}),Bt("invalid",t);break;case"textarea":Y_(t,n),i=Rg(t,n),Bt("invalid",t);break;default:i=n}Vg(r,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var c=s[o];o==="style"?fA(t,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&hA(t,c)):o==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Kh(t,c):typeof c=="number"&&Kh(t,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Gh.hasOwnProperty(o)?c!=null&&o==="onScroll"&&Bt("scroll",t):c!=null&&E9(t,o,c,a))}switch(r){case"input":q0(t),K_(t,n,!1);break;case"textarea":q0(t),X_(t);break;case"option":n.value!=null&&t.setAttribute("value",""+qs(n.value));break;case"select":t.multiple=!!n.multiple,o=n.value,o!=null?El(t,!!n.multiple,o,!1):n.defaultValue!=null&&El(t,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=Z4)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return _n(e),null;case 6:if(t&&e.stateNode!=null)VM(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(oe(166));if(r=qc(ou.current),qc(na.current),ef(e)){if(n=e.stateNode,r=e.memoizedProps,n[Ko]=e,(o=n.nodeValue!==r)&&(t=bi,t!==null))switch(t.tag){case 3:Z0(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Z0(n.nodeValue,r,(t.mode&1)!==0)}o&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ko]=e,e.stateNode=n}return _n(e),null;case 13:if(Gt(nr),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Qt&&gi!==null&&e.mode&1&&!(e.flags&128))eM(),Yl(),e.flags|=98560,o=!1;else if(o=ef(e),n!==null&&n.dehydrated!==null){if(t===null){if(!o)throw Error(oe(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(oe(317));o[Ko]=e}else Yl(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;_n(e),o=!1}else uo!==null&&(y6(uo),uo=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||nr.current&1?Or===0&&(Or=3):c7())),e.updateQueue!==null&&(e.flags|=4),_n(e),null);case 4:return Ql(),d6(t,e),t===null&&tu(e.stateNode.containerInfo),_n(e),null;case 10:return q9(e.type._context),_n(e),null;case 17:return si(e.type)&&ep(),_n(e),null;case 19:if(Gt(nr),o=e.memoizedState,o===null)return _n(e),null;if(n=(e.flags&128)!==0,a=o.rendering,a===null)if(n)g2(o,!1);else{if(Or!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=sp(t),a!==null){for(e.flags|=128,g2(o,!1),n=a.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)o=r,t=n,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,t=a.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return Lt(nr,nr.current&1|2),e.child}t=t.sibling}o.tail!==null&&mr()>Zl&&(e.flags|=128,n=!0,g2(o,!1),e.lanes=4194304)}else{if(!n)if(t=sp(a),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),g2(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Qt)return _n(e),null}else 2*mr()-o.renderingStartTime>Zl&&r!==1073741824&&(e.flags|=128,n=!0,g2(o,!1),e.lanes=4194304);o.isBackwards?(a.sibling=e.child,e.child=a):(r=o.last,r!==null?r.sibling=a:e.child=a,o.last=a)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=mr(),e.sibling=null,r=nr.current,Lt(nr,n?r&1|2:r&1),e):(_n(e),null);case 22:case 23:return s7(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?vi&1073741824&&(_n(e),e.subtreeFlags&6&&(e.flags|=8192)):_n(e),null;case 24:return null;case 25:return null}throw Error(oe(156,e.tag))}function GL(t,e){switch(F9(e),e.tag){case 1:return si(e.type)&&ep(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ql(),Gt(ai),Gt(Pn),X9(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Y9(e),null;case 13:if(Gt(nr),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(oe(340));Yl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Gt(nr),null;case 4:return Ql(),null;case 10:return q9(e.type._context),null;case 22:case 23:return s7(),null;case 24:return null;default:return null}}var nf=!1,kn=!1,KL=typeof WeakSet=="function"?WeakSet:Set,ye=null;function ul(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){dr(t,e,n)}else r.current=null}function h6(t,e,r){try{r()}catch(n){dr(t,e,n)}}var Ob=!1;function YL(t,e){if(Kg=X4,t=FA(),O9(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,c=-1,l=0,d=0,h=t,u=null;t:for(;;){for(var f;h!==r||i!==0&&h.nodeType!==3||(s=a+i),h!==o||n!==0&&h.nodeType!==3||(c=a+n),h.nodeType===3&&(a+=h.nodeValue.length),(f=h.firstChild)!==null;)u=h,h=f;for(;;){if(h===t)break t;if(u===r&&++l===i&&(s=a),u===o&&++d===n&&(c=a),(f=h.nextSibling)!==null)break;h=u,u=h.parentNode}h=f}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Yg={focusedElem:t,selectionRange:r},X4=!1,ye=e;ye!==null;)if(e=ye,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ye=t;else for(;ye!==null;){e=ye;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,_=v.memoizedState,m=e.stateNode,g=m.getSnapshotBeforeUpdate(e.elementType===e.type?p:co(e.type,p),_);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(w){dr(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,ye=t;break}ye=e.return}return v=Ob,Ob=!1,v}function yh(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,o!==void 0&&h6(e,r,o)}i=i.next}while(i!==n)}}function Uv(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function u6(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function LM(t){var e=t.alternate;e!==null&&(t.alternate=null,LM(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Ko],delete e[nu],delete e[Jg],delete e[PL],delete e[IL])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function OM(t){return t.tag===5||t.tag===3||t.tag===4}function Nb(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||OM(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function f6(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Z4));else if(n!==4&&(t=t.child,t!==null))for(f6(t,e,r),t=t.sibling;t!==null;)f6(t,e,r),t=t.sibling}function p6(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(p6(t,e,r),t=t.sibling;t!==null;)p6(t,e,r),t=t.sibling}var an=null,ho=!1;function is(t,e,r){for(r=r.child;r!==null;)NM(t,e,r),r=r.sibling}function NM(t,e,r){if(ra&&typeof ra.onCommitFiberUnmount=="function")try{ra.onCommitFiberUnmount(Rv,r)}catch{}switch(r.tag){case 5:kn||ul(r,e);case 6:var n=an,i=ho;an=null,is(t,e,r),an=n,ho=i,an!==null&&(ho?(t=an,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):an.removeChild(r.stateNode));break;case 18:an!==null&&(ho?(t=an,r=r.stateNode,t.nodeType===8?xm(t.parentNode,r):t.nodeType===1&&xm(t,r),Jh(t)):xm(an,r.stateNode));break;case 4:n=an,i=ho,an=r.stateNode.containerInfo,ho=!0,is(t,e,r),an=n,ho=i;break;case 0:case 11:case 14:case 15:if(!kn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&h6(r,e,a),i=i.next}while(i!==n)}is(t,e,r);break;case 1:if(!kn&&(ul(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){dr(r,e,s)}is(t,e,r);break;case 21:is(t,e,r);break;case 22:r.mode&1?(kn=(n=kn)||r.memoizedState!==null,is(t,e,r),kn=n):is(t,e,r);break;default:is(t,e,r)}}function Fb(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new KL),e.forEach(function(n){var i=iO.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function eo(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var o=t,a=e,s=a;e:for(;s!==null;){switch(s.tag){case 5:an=s.stateNode,ho=!1;break e;case 3:an=s.stateNode.containerInfo,ho=!0;break e;case 4:an=s.stateNode.containerInfo,ho=!0;break e}s=s.return}if(an===null)throw Error(oe(160));NM(o,a,i),an=null,ho=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(l){dr(i,e,l)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)FM(e,t),e=e.sibling}function FM(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(eo(e,t),Ro(t),n&4){try{yh(3,t,t.return),Uv(3,t)}catch(p){dr(t,t.return,p)}try{yh(5,t,t.return)}catch(p){dr(t,t.return,p)}}break;case 1:eo(e,t),Ro(t),n&512&&r!==null&&ul(r,r.return);break;case 5:if(eo(e,t),Ro(t),n&512&&r!==null&&ul(r,r.return),t.flags&32){var i=t.stateNode;try{Kh(i,"")}catch(p){dr(t,t.return,p)}}if(n&4&&(i=t.stateNode,i!=null)){var o=t.memoizedProps,a=r!==null?r.memoizedProps:o,s=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&cA(i,o),Lg(s,a);var l=Lg(s,o);for(a=0;a<c.length;a+=2){var d=c[a],h=c[a+1];d==="style"?fA(i,h):d==="dangerouslySetInnerHTML"?hA(i,h):d==="children"?Kh(i,h):E9(i,d,h,l)}switch(s){case"input":Hg(i,o);break;case"textarea":lA(i,o);break;case"select":var u=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?El(i,!!o.multiple,f,!1):u!==!!o.multiple&&(o.defaultValue!=null?El(i,!!o.multiple,o.defaultValue,!0):El(i,!!o.multiple,o.multiple?[]:"",!1))}i[nu]=o}catch(p){dr(t,t.return,p)}}break;case 6:if(eo(e,t),Ro(t),n&4){if(t.stateNode===null)throw Error(oe(162));i=t.stateNode,o=t.memoizedProps;try{i.nodeValue=o}catch(p){dr(t,t.return,p)}}break;case 3:if(eo(e,t),Ro(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Jh(e.containerInfo)}catch(p){dr(t,t.return,p)}break;case 4:eo(e,t),Ro(t);break;case 13:eo(e,t),Ro(t),i=t.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(o7=mr())),n&4&&Fb(t);break;case 22:if(d=r!==null&&r.memoizedState!==null,t.mode&1?(kn=(l=kn)||d,eo(e,t),kn=l):eo(e,t),Ro(t),n&8192){if(l=t.memoizedState!==null,(t.stateNode.isHidden=l)&&!d&&t.mode&1)for(ye=t,d=t.child;d!==null;){for(h=ye=d;ye!==null;){switch(u=ye,f=u.child,u.tag){case 0:case 11:case 14:case 15:yh(4,u,u.return);break;case 1:ul(u,u.return);var v=u.stateNode;if(typeof v.componentWillUnmount=="function"){n=u,r=u.return;try{e=n,v.props=e.memoizedProps,v.state=e.memoizedState,v.componentWillUnmount()}catch(p){dr(n,r,p)}}break;case 5:ul(u,u.return);break;case 22:if(u.memoizedState!==null){Ub(h);continue}}f!==null?(f.return=u,ye=f):Ub(h)}d=d.sibling}e:for(d=null,h=t;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=h.stateNode,c=h.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=uA("display",a))}catch(p){dr(t,t.return,p)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=l?"":h.memoizedProps}catch(p){dr(t,t.return,p)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:eo(e,t),Ro(t),n&4&&Fb(t);break;case 21:break;default:eo(e,t),Ro(t)}}function Ro(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(OM(r)){var n=r;break e}r=r.return}throw Error(oe(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Kh(i,""),n.flags&=-33);var o=Nb(t);p6(t,o,i);break;case 3:case 4:var a=n.stateNode.containerInfo,s=Nb(t);f6(t,s,a);break;default:throw Error(oe(161))}}catch(c){dr(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function XL(t,e,r){ye=t,BM(t)}function BM(t,e,r){for(var n=(t.mode&1)!==0;ye!==null;){var i=ye,o=i.child;if(i.tag===22&&n){var a=i.memoizedState!==null||nf;if(!a){var s=i.alternate,c=s!==null&&s.memoizedState!==null||kn;s=nf;var l=kn;if(nf=a,(kn=c)&&!l)for(ye=i;ye!==null;)a=ye,c=a.child,a.tag===22&&a.memoizedState!==null?jb(i):c!==null?(c.return=a,ye=c):jb(i);for(;o!==null;)ye=o,BM(o),o=o.sibling;ye=i,nf=s,kn=l}Bb(t)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ye=o):Bb(t)}}function Bb(t){for(;ye!==null;){var e=ye;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:kn||Uv(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!kn)if(r===null)n.componentDidMount();else{var i=e.elementType===e.type?r.memoizedProps:co(e.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&kb(e,o,n);break;case 3:var a=e.updateQueue;if(a!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}kb(e,a,r)}break;case 5:var s=e.stateNode;if(r===null&&e.flags&4){r=s;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var l=e.alternate;if(l!==null){var d=l.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Jh(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(oe(163))}kn||e.flags&512&&u6(e)}catch(u){dr(e,e.return,u)}}if(e===t){ye=null;break}if(r=e.sibling,r!==null){r.return=e.return,ye=r;break}ye=e.return}}function Ub(t){for(;ye!==null;){var e=ye;if(e===t){ye=null;break}var r=e.sibling;if(r!==null){r.return=e.return,ye=r;break}ye=e.return}}function jb(t){for(;ye!==null;){var e=ye;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{Uv(4,e)}catch(c){dr(e,r,c)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var i=e.return;try{n.componentDidMount()}catch(c){dr(e,i,c)}}var o=e.return;try{u6(e)}catch(c){dr(e,o,c)}break;case 5:var a=e.return;try{u6(e)}catch(c){dr(e,a,c)}}}catch(c){dr(e,e.return,c)}if(e===t){ye=null;break}var s=e.sibling;if(s!==null){s.return=e.return,ye=s;break}ye=e.return}}var QL=Math.ceil,dp=Ya.ReactCurrentDispatcher,n7=Ya.ReactCurrentOwner,Gi=Ya.ReactCurrentBatchConfig,ft=0,Kr=null,Er=null,hn=0,vi=0,fl=ac(0),Or=0,lu=null,s1=0,jv=0,i7=0,_h=null,ti=null,o7=0,Zl=1/0,_a=null,hp=!1,v6=null,Rs=null,of=!1,As=null,up=0,bh=0,m6=null,s4=-1,c4=0;function Ln(){return ft&6?mr():s4!==-1?s4:s4=mr()}function Ds(t){return t.mode&1?ft&2&&hn!==0?hn&-hn:TL.transition!==null?(c4===0&&(c4=kA()),c4):(t=At,t!==0||(t=window.event,t=t===void 0?16:IA(t.type)),t):1}function _o(t,e,r,n){if(50<bh)throw bh=0,m6=null,Error(oe(185));Yu(t,r,n),(!(ft&2)||t!==Kr)&&(t===Kr&&(!(ft&2)&&(jv|=r),Or===4&&bs(t,hn)),ci(t,n),r===1&&ft===0&&!(e.mode&1)&&(Zl=mr()+500,Nv&&sc()))}function ci(t,e){var r=t.callbackNode;TV(t,e);var n=Y4(t,t===Kr?hn:0);if(n===0)r!==null&&Z_(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&Z_(r),e===1)t.tag===0?HL(qb.bind(null,t)):QA(qb.bind(null,t)),ML(function(){!(ft&6)&&sc()}),r=null;else{switch(EA(n)){case 1:r=P9;break;case 4:r=zA;break;case 16:r=K4;break;case 536870912:r=CA;break;default:r=K4}r=XM(r,UM.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function UM(t,e){if(s4=-1,c4=0,ft&6)throw Error(oe(327));var r=t.callbackNode;if(Pl()&&t.callbackNode!==r)return null;var n=Y4(t,t===Kr?hn:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=fp(t,n);else{e=n;var i=ft;ft|=2;var o=qM();(Kr!==t||hn!==e)&&(_a=null,Zl=mr()+500,Jc(t,e));do try{eO();break}catch(s){jM(t,s)}while(1);j9(),dp.current=o,ft=i,Er!==null?e=0:(Kr=null,hn=0,e=Or)}if(e!==0){if(e===2&&(i=Ug(t),i!==0&&(n=i,e=g6(t,i))),e===1)throw r=lu,Jc(t,0),bs(t,n),ci(t,mr()),r;if(e===6)bs(t,n);else{if(i=t.current.alternate,!(n&30)&&!JL(i)&&(e=fp(t,n),e===2&&(o=Ug(t),o!==0&&(n=o,e=g6(t,o))),e===1))throw r=lu,Jc(t,0),bs(t,n),ci(t,mr()),r;switch(t.finishedWork=i,t.finishedLanes=n,e){case 0:case 1:throw Error(oe(345));case 2:$c(t,ti,_a);break;case 3:if(bs(t,n),(n&130023424)===n&&(e=o7+500-mr(),10<e)){if(Y4(t,0)!==0)break;if(i=t.suspendedLanes,(i&n)!==n){Ln(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Qg($c.bind(null,t,ti,_a),e);break}$c(t,ti,_a);break;case 4:if(bs(t,n),(n&4194240)===n)break;for(e=t.eventTimes,i=-1;0<n;){var a=31-yo(n);o=1<<a,a=e[a],a>i&&(i=a),n&=~o}if(n=i,n=mr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*QL(n/1960))-n,10<n){t.timeoutHandle=Qg($c.bind(null,t,ti,_a),n);break}$c(t,ti,_a);break;case 5:$c(t,ti,_a);break;default:throw Error(oe(329))}}}return ci(t,mr()),t.callbackNode===r?UM.bind(null,t):null}function g6(t,e){var r=_h;return t.current.memoizedState.isDehydrated&&(Jc(t,e).flags|=256),t=fp(t,e),t!==2&&(e=ti,ti=r,e!==null&&y6(e)),t}function y6(t){ti===null?ti=t:ti.push.apply(ti,t)}function JL(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!ko(o(),i))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function bs(t,e){for(e&=~i7,e&=~jv,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-yo(e),n=1<<r;t[r]=-1,e&=~n}}function qb(t){if(ft&6)throw Error(oe(327));Pl();var e=Y4(t,0);if(!(e&1))return ci(t,mr()),null;var r=fp(t,e);if(t.tag!==0&&r===2){var n=Ug(t);n!==0&&(e=n,r=g6(t,n))}if(r===1)throw r=lu,Jc(t,0),bs(t,e),ci(t,mr()),r;if(r===6)throw Error(oe(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,$c(t,ti,_a),ci(t,mr()),null}function a7(t,e){var r=ft;ft|=1;try{return t(e)}finally{ft=r,ft===0&&(Zl=mr()+500,Nv&&sc())}}function c1(t){As!==null&&As.tag===0&&!(ft&6)&&Pl();var e=ft;ft|=1;var r=Gi.transition,n=At;try{if(Gi.transition=null,At=1,t)return t()}finally{At=n,Gi.transition=r,ft=e,!(ft&6)&&sc()}}function s7(){vi=fl.current,Gt(fl)}function Jc(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,AL(r)),Er!==null)for(r=Er.return;r!==null;){var n=r;switch(F9(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&ep();break;case 3:Ql(),Gt(ai),Gt(Pn),X9();break;case 5:Y9(n);break;case 4:Ql();break;case 13:Gt(nr);break;case 19:Gt(nr);break;case 10:q9(n.type._context);break;case 22:case 23:s7()}r=r.return}if(Kr=t,Er=t=Vs(t.current,null),hn=vi=e,Or=0,lu=null,i7=jv=s1=0,ti=_h=null,jc!==null){for(e=0;e<jc.length;e++)if(r=jc[e],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var a=o.next;o.next=i,n.next=a}r.pending=n}jc=null}return t}function jM(t,e){do{var r=Er;try{if(j9(),i4.current=lp,cp){for(var n=ir.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}cp=!1}if(a1=0,qr=Hr=ir=null,gh=!1,au=0,n7.current=null,r===null||r.return===null){Or=1,lu=e,Er=null;break}e:{var o=t,a=r.return,s=r,c=e;if(e=hn,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,d=s,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var u=d.alternate;u?(d.updateQueue=u.updateQueue,d.memoizedState=u.memoizedState,d.lanes=u.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=Ib(a);if(f!==null){f.flags&=-257,Hb(f,a,s,o,e),f.mode&1&&Pb(o,l,e),e=f,c=l;var v=e.updateQueue;if(v===null){var p=new Set;p.add(c),e.updateQueue=p}else v.add(c);break e}else{if(!(e&1)){Pb(o,l,e),c7();break e}c=Error(oe(426))}}else if(Qt&&s.mode&1){var _=Ib(a);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Hb(_,a,s,o,e),B9(Jl(c,s));break e}}o=c=Jl(c,s),Or!==4&&(Or=2),_h===null?_h=[o]:_h.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var m=SM(o,c,e);Cb(o,m);break e;case 1:s=c;var g=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Rs===null||!Rs.has(b)))){o.flags|=65536,e&=-e,o.lanes|=e;var w=AM(o,s,e);Cb(o,w);break e}}o=o.return}while(o!==null)}GM(r)}catch(x){e=x,Er===r&&r!==null&&(Er=r=r.return);continue}break}while(1)}function qM(){var t=dp.current;return dp.current=lp,t===null?lp:t}function c7(){(Or===0||Or===3||Or===2)&&(Or=4),Kr===null||!(s1&268435455)&&!(jv&268435455)||bs(Kr,hn)}function fp(t,e){var r=ft;ft|=2;var n=qM();(Kr!==t||hn!==e)&&(_a=null,Jc(t,e));do try{ZL();break}catch(i){jM(t,i)}while(1);if(j9(),ft=r,dp.current=n,Er!==null)throw Error(oe(261));return Kr=null,hn=0,Or}function ZL(){for(;Er!==null;)WM(Er)}function eO(){for(;Er!==null&&!kV();)WM(Er)}function WM(t){var e=YM(t.alternate,t,vi);t.memoizedProps=t.pendingProps,e===null?GM(t):Er=e,n7.current=null}function GM(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=GL(r,e),r!==null){r.flags&=32767,Er=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Or=6,Er=null;return}}else if(r=WL(r,e,vi),r!==null){Er=r;return}if(e=e.sibling,e!==null){Er=e;return}Er=e=t}while(e!==null);Or===0&&(Or=5)}function $c(t,e,r){var n=At,i=Gi.transition;try{Gi.transition=null,At=1,tO(t,e,r,n)}finally{Gi.transition=i,At=n}return null}function tO(t,e,r,n){do Pl();while(As!==null);if(ft&6)throw Error(oe(327));r=t.finishedWork;var i=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(oe(177));t.callbackNode=null,t.callbackPriority=0;var o=r.lanes|r.childLanes;if(RV(t,o),t===Kr&&(Er=Kr=null,hn=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||of||(of=!0,XM(K4,function(){return Pl(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=Gi.transition,Gi.transition=null;var a=At;At=1;var s=ft;ft|=4,n7.current=null,YL(t,r),FM(r,t),wL(Yg),X4=!!Kg,Yg=Kg=null,t.current=r,XL(r),EV(),ft=s,At=a,Gi.transition=o}else t.current=r;if(of&&(of=!1,As=t,up=i),o=t.pendingLanes,o===0&&(Rs=null),MV(r.stateNode),ci(t,mr()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)i=e[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(hp)throw hp=!1,t=v6,v6=null,t;return up&1&&t.tag!==0&&Pl(),o=t.pendingLanes,o&1?t===m6?bh++:(bh=0,m6=t):bh=0,sc(),null}function Pl(){if(As!==null){var t=EA(up),e=Gi.transition,r=At;try{if(Gi.transition=null,At=16>t?16:t,As===null)var n=!1;else{if(t=As,As=null,up=0,ft&6)throw Error(oe(331));var i=ft;for(ft|=4,ye=t.current;ye!==null;){var o=ye,a=o.child;if(ye.flags&16){var s=o.deletions;if(s!==null){for(var c=0;c<s.length;c++){var l=s[c];for(ye=l;ye!==null;){var d=ye;switch(d.tag){case 0:case 11:case 15:yh(8,d,o)}var h=d.child;if(h!==null)h.return=d,ye=h;else for(;ye!==null;){d=ye;var u=d.sibling,f=d.return;if(LM(d),d===l){ye=null;break}if(u!==null){u.return=f,ye=u;break}ye=f}}}var v=o.alternate;if(v!==null){var p=v.child;if(p!==null){v.child=null;do{var _=p.sibling;p.sibling=null,p=_}while(p!==null)}}ye=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,ye=a;else e:for(;ye!==null;){if(o=ye,o.flags&2048)switch(o.tag){case 0:case 11:case 15:yh(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,ye=m;break e}ye=o.return}}var g=t.current;for(ye=g;ye!==null;){a=ye;var b=a.child;if(a.subtreeFlags&2064&&b!==null)b.return=a,ye=b;else e:for(a=g;ye!==null;){if(s=ye,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Uv(9,s)}}catch(x){dr(s,s.return,x)}if(s===a){ye=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,ye=w;break e}ye=s.return}}if(ft=i,sc(),ra&&typeof ra.onPostCommitFiberRoot=="function")try{ra.onPostCommitFiberRoot(Rv,t)}catch{}n=!0}return n}finally{At=r,Gi.transition=e}}return!1}function Wb(t,e,r){e=Jl(r,e),e=SM(t,e,1),t=Ts(t,e,1),e=Ln(),t!==null&&(Yu(t,1,e),ci(t,e))}function dr(t,e,r){if(t.tag===3)Wb(t,t,r);else for(;e!==null;){if(e.tag===3){Wb(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Rs===null||!Rs.has(n))){t=Jl(r,t),t=AM(e,t,1),e=Ts(e,t,1),t=Ln(),e!==null&&(Yu(e,1,t),ci(e,t));break}}e=e.return}}function rO(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=Ln(),t.pingedLanes|=t.suspendedLanes&r,Kr===t&&(hn&r)===r&&(Or===4||Or===3&&(hn&130023424)===hn&&500>mr()-o7?Jc(t,0):i7|=r),ci(t,e)}function KM(t,e){e===0&&(t.mode&1?(e=K0,K0<<=1,!(K0&130023424)&&(K0=4194304)):e=1);var r=Ln();t=ja(t,e),t!==null&&(Yu(t,e,r),ci(t,r))}function nO(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),KM(t,r)}function iO(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(oe(314))}n!==null&&n.delete(e),KM(t,r)}var YM;YM=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||ai.current)ni=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return ni=!1,qL(t,e,r);ni=!!(t.flags&131072)}else ni=!1,Qt&&e.flags&1048576&&JA(e,np,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;a4(t,e),t=e.pendingProps;var i=Kl(e,Pn.current);$l(e,r),i=J9(null,e,n,t,i,r);var o=Z9();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(n)?(o=!0,tp(e)):o=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,G9(e),i.updater=Fv,e.stateNode=i,i._reactInternals=e,i6(e,n,t,r),e=s6(null,e,n,!0,o,r)):(e.tag=0,Qt&&o&&N9(e),Tn(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(a4(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=aO(n),t=co(n,t),i){case 0:e=a6(null,e,n,t,r);break e;case 1:e=Db(null,e,n,t,r);break e;case 11:e=Tb(null,e,n,t,r);break e;case 14:e=Rb(null,e,n,co(n.type,t),r);break e}throw Error(oe(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:co(n,i),a6(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:co(n,i),Db(t,e,n,i,r);case 3:e:{if(IM(e),t===null)throw Error(oe(387));n=e.pendingProps,o=e.memoizedState,i=o.element,rM(t,e),ap(e,n,null,r);var a=e.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){i=Jl(Error(oe(423)),e),e=Vb(t,e,n,r,i);break e}else if(n!==i){i=Jl(Error(oe(424)),e),e=Vb(t,e,n,r,i);break e}else for(gi=Hs(e.stateNode.containerInfo.firstChild),bi=e,Qt=!0,uo=null,r=aM(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Yl(),n===i){e=qa(t,e,r);break e}Tn(t,e,n,r)}e=e.child}return e;case 5:return sM(e),t===null&&t6(e),n=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,a=i.children,Xg(n,i)?a=null:o!==null&&Xg(n,o)&&(e.flags|=32),PM(t,e),Tn(t,e,a,r),e.child;case 6:return t===null&&t6(e),null;case 13:return HM(t,e,r);case 4:return K9(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Xl(e,null,n,r):Tn(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:co(n,i),Tb(t,e,n,i,r);case 7:return Tn(t,e,e.pendingProps,r),e.child;case 8:return Tn(t,e,e.pendingProps.children,r),e.child;case 12:return Tn(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,o=e.memoizedProps,a=i.value,Lt(ip,n._currentValue),n._currentValue=a,o!==null)if(ko(o.value,a)){if(o.children===i.children&&!ai.current){e=qa(t,e,r);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var c=s.firstContext;c!==null;){if(c.context===n){if(o.tag===1){c=Da(-1,r&-r),c.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var d=l.pending;d===null?c.next=c:(c.next=d.next,d.next=c),l.pending=c}}o.lanes|=r,c=o.alternate,c!==null&&(c.lanes|=r),r6(o.return,r,e),s.lanes|=r;break}c=c.next}}else if(o.tag===10)a=o.type===e.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(oe(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),r6(a,r,e),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===e){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Tn(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,$l(e,r),i=Xi(i),n=n(i),e.flags|=1,Tn(t,e,n,r),e.child;case 14:return n=e.type,i=co(n,e.pendingProps),i=co(n.type,i),Rb(t,e,n,i,r);case 15:return MM(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:co(n,i),a4(t,e),e.tag=1,si(n)?(t=!0,tp(e)):t=!1,$l(e,r),iM(e,n,i),i6(e,n,i,r),s6(null,e,n,!0,t,r);case 19:return TM(t,e,r);case 22:return $M(t,e,r)}throw Error(oe(156,e.tag))};function XM(t,e){return xA(t,e)}function oO(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ji(t,e,r,n){return new oO(t,e,r,n)}function l7(t){return t=t.prototype,!(!t||!t.isReactComponent)}function aO(t){if(typeof t=="function")return l7(t)?1:0;if(t!=null){if(t=t.$$typeof,t===A9)return 11;if(t===M9)return 14}return 2}function Vs(t,e){var r=t.alternate;return r===null?(r=ji(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function l4(t,e,r,n,i,o){var a=2;if(n=t,typeof t=="function")l7(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case nl:return Zc(r.children,i,o,e);case S9:a=8,i|=8;break;case Ag:return t=ji(12,r,e,i|2),t.elementType=Ag,t.lanes=o,t;case Mg:return t=ji(13,r,e,i),t.elementType=Mg,t.lanes=o,t;case $g:return t=ji(19,r,e,i),t.elementType=$g,t.lanes=o,t;case oA:return qv(r,i,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case nA:a=10;break e;case iA:a=9;break e;case A9:a=11;break e;case M9:a=14;break e;case vs:a=16,n=null;break e}throw Error(oe(130,t==null?t:typeof t,""))}return e=ji(a,r,e,i),e.elementType=t,e.type=n,e.lanes=o,e}function Zc(t,e,r,n){return t=ji(7,t,n,e),t.lanes=r,t}function qv(t,e,r,n){return t=ji(22,t,n,e),t.elementType=oA,t.lanes=r,t.stateNode={isHidden:!1},t}function $m(t,e,r){return t=ji(6,t,null,e),t.lanes=r,t}function Pm(t,e,r){return e=ji(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function sO(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hm(0),this.expirationTimes=hm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hm(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function d7(t,e,r,n,i,o,a,s,c){return t=new sO(t,e,r,s,c),e===1?(e=1,o===!0&&(e|=8)):e=0,o=ji(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},G9(o),t}function cO(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:rl,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function QM(t){if(!t)return Ws;t=t._reactInternals;e:{if(b1(t)!==t||t.tag!==1)throw Error(oe(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(si(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(oe(171))}if(t.tag===1){var r=t.type;if(si(r))return XA(t,r,e)}return e}function JM(t,e,r,n,i,o,a,s,c){return t=d7(r,n,!0,t,i,o,a,s,c),t.context=QM(null),r=t.current,n=Ln(),i=Ds(r),o=Da(n,i),o.callback=e??null,Ts(r,o,i),t.current.lanes=i,Yu(t,i,n),ci(t,n),t}function Wv(t,e,r,n){var i=e.current,o=Ln(),a=Ds(i);return r=QM(r),e.context===null?e.context=r:e.pendingContext=r,e=Da(o,a),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=Ts(i,e,a),t!==null&&(_o(t,i,a,o),n4(t,i,a)),a}function pp(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Gb(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function h7(t,e){Gb(t,e),(t=t.alternate)&&Gb(t,e)}function lO(){return null}var ZM=typeof reportError=="function"?reportError:function(t){console.error(t)};function u7(t){this._internalRoot=t}Gv.prototype.render=u7.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(oe(409));Wv(t,e,null,null)};Gv.prototype.unmount=u7.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;c1(function(){Wv(null,t,null,null)}),e[Ua]=null}};function Gv(t){this._internalRoot=t}Gv.prototype.unstable_scheduleHydration=function(t){if(t){var e=MA();t={blockedOn:null,target:t,priority:e};for(var r=0;r<_s.length&&e!==0&&e<_s[r].priority;r++);_s.splice(r,0,t),r===0&&PA(t)}};function f7(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Kv(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Kb(){}function dO(t,e,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var l=pp(a);o.call(l)}}var a=JM(e,n,t,0,null,!1,!1,"",Kb);return t._reactRootContainer=a,t[Ua]=a.current,tu(t.nodeType===8?t.parentNode:t),c1(),a}for(;i=t.lastChild;)t.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var l=pp(c);s.call(l)}}var c=d7(t,0,!1,null,null,!1,!1,"",Kb);return t._reactRootContainer=c,t[Ua]=c.current,tu(t.nodeType===8?t.parentNode:t),c1(function(){Wv(e,c,r,n)}),c}function Yv(t,e,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var c=pp(a);s.call(c)}}Wv(e,a,t,i)}else a=dO(r,e,t,i,n);return pp(a)}SA=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=j2(e.pendingLanes);r!==0&&(I9(e,r|1),ci(e,mr()),!(ft&6)&&(Zl=mr()+500,sc()))}break;case 13:c1(function(){var n=ja(t,1);if(n!==null){var i=Ln();_o(n,t,1,i)}}),h7(t,1)}};H9=function(t){if(t.tag===13){var e=ja(t,134217728);if(e!==null){var r=Ln();_o(e,t,134217728,r)}h7(t,134217728)}};AA=function(t){if(t.tag===13){var e=Ds(t),r=ja(t,e);if(r!==null){var n=Ln();_o(r,t,e,n)}h7(t,e)}};MA=function(){return At};$A=function(t,e){var r=At;try{return At=t,e()}finally{At=r}};Ng=function(t,e,r){switch(e){case"input":if(Hg(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var i=Ov(n);if(!i)throw Error(oe(90));sA(n),Hg(n,i)}}}break;case"textarea":lA(t,r);break;case"select":e=r.value,e!=null&&El(t,!!r.multiple,e,!1)}};mA=a7;gA=c1;var hO={usingClientEntryPoint:!1,Events:[Qu,sl,Ov,pA,vA,a7]},y2={findFiberByHostInstance:Uc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},uO={bundleType:y2.bundleType,version:y2.version,rendererPackageName:y2.rendererPackageName,rendererConfig:y2.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ya.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=bA(t),t===null?null:t.stateNode},findFiberByHostInstance:y2.findFiberByHostInstance||lO,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 af=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!af.isDisabled&&af.supportsFiber)try{Rv=af.inject(uO),ra=af}catch{}}$i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hO;$i.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f7(e))throw Error(oe(200));return cO(t,e,null,r)};$i.createRoot=function(t,e){if(!f7(t))throw Error(oe(299));var r=!1,n="",i=ZM;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=d7(t,1,!1,null,null,r,!1,n,i),t[Ua]=e.current,tu(t.nodeType===8?t.parentNode:t),new u7(e)};$i.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(oe(188)):(t=Object.keys(t).join(","),Error(oe(268,t)));return t=bA(e),t=t===null?null:t.stateNode,t};$i.flushSync=function(t){return c1(t)};$i.hydrate=function(t,e,r){if(!Kv(e))throw Error(oe(200));return Yv(null,t,e,!0,r)};$i.hydrateRoot=function(t,e,r){if(!f7(t))throw Error(oe(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",a=ZM;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),e=JM(e,null,t,1,r??null,i,!1,o,a),t[Ua]=e.current,tu(t),n)for(t=0;t<n.length;t++)r=n[t],i=r._getVersion,i=i(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,i]:e.mutableSourceEagerHydrationData.push(r,i);return new Gv(e)};$i.render=function(t,e,r){if(!Kv(e))throw Error(oe(200));return Yv(null,t,e,!1,r)};$i.unmountComponentAtNode=function(t){if(!Kv(t))throw Error(oe(40));return t._reactRootContainer?(c1(function(){Yv(null,null,t,!1,function(){t._reactRootContainer=null,t[Ua]=null})}),!0):!1};$i.unstable_batchedUpdates=a7;$i.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Kv(r))throw Error(oe(200));if(t==null||t._reactInternals===void 0)throw Error(oe(38));return Yv(t,e,r,!1,n)};$i.version="18.2.0-next-9e3b772b8-20220608";(function(t){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}e(),t.exports=$i})(lV);var Yb=Co;kg.createRoot=Yb.createRoot,kg.hydrateRoot=Yb.hydrateRoot;let fO=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((r,n)=>[...r,n,`
41
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 e$ extends fO{formatModuleName(e){return`📦\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}var _6=function(t,e){return _6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},_6(t,e)};function In(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");_6(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var fr=function(){return fr=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},fr.apply(this,arguments)};function t$(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function k(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(o=(i<3?a(o):i>3?a(e,r,o):a(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function Xv(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function r$(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(d){return c([l,d])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(d){l=[6,d],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Vn(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ca(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Wa(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}function Il(t){return this instanceof Il?(this.v=t,this):new Il(t)}function pO(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(u){n[u]&&(i[u]=function(f){return new Promise(function(v,p){o.push([u,f,v,p])>1||s(u,f)})})}function s(u,f){try{c(n[u](f))}catch(v){h(o[0][3],v)}}function c(u){u.value instanceof Il?Promise.resolve(u.value.v).then(l,d):h(o[0][2],u)}function l(u){s("next",u)}function d(u){s("throw",u)}function h(u,f){u(f),o.shift(),o.length&&s(o[0][0],o[0][1])}}function vO(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Vn=="function"?Vn(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(a){return new Promise(function(s,c){a=t[o](a),i(s,c,a.done,a.value)})}}function i(o,a,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},a)}}function et(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function K1(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}function zt(t){return typeof t=="function"}function Qv(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Im=Qv(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
42
42
  `+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
43
- `):"",this.name="UnsubscriptionError",this.errors=r}});function vp(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Un=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,n,i,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Vn(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(p){e={error:p}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}else a.remove(this);var d=this.initialTeardown;if(zt(d))try{d()}catch(p){o=p instanceof Im?p.errors:[p]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var u=Vn(h),f=u.next();!f.done;f=u.next()){var v=f.value;try{Xb(v)}catch(p){o=o??[],p instanceof Im?o=Wa(Wa([],ca(o)),ca(p.errors)):o.push(p)}}}catch(p){n={error:p}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}if(o)throw new Im(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Xb(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&vp(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&vp(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),n$=Un.EMPTY;function i$(t){return t instanceof Un||t&&"closed"in t&&zt(t.remove)&&zt(t.add)&&zt(t.unsubscribe)}function Xb(t){zt(t)?t():t.unsubscribe()}var o$={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},b6={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=b6.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,Wa([t,e],ca(r))):setTimeout.apply(void 0,Wa([t,e],ca(r)))},clearTimeout:function(t){var e=b6.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function a$(t){b6.setTimeout(function(){throw t})}function mp(){}function d4(t){t()}var p7=function(t){In(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,i$(r)&&r.add(n)):n.destination=_O,n}return e.create=function(r,n,i){return new gp(r,n,i)},e.prototype.next=function(r){this.isStopped||this._next(r)},e.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Un),mO=Function.prototype.bind;function Hm(t,e){return mO.call(t,e)}var gO=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){sf(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){sf(n)}else sf(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){sf(r)}},t}(),gp=function(t){In(e,t);function e(r,n,i){var o=t.call(this)||this,a;if(zt(r)||!r)a={next:r??void 0,error:n??void 0,complete:i??void 0};else{var s;o&&o$.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return o.unsubscribe()},a={next:r.next&&Hm(r.next,s),error:r.error&&Hm(r.error,s),complete:r.complete&&Hm(r.complete,s)}):a=r}return o.destination=new gO(a),o}return e}(p7);function sf(t){a$(t)}function yO(t){throw t}var _O={closed:!0,next:mp,error:yO,complete:mp},v7=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Xa(t){return t}function bO(t){return t.length===0?Xa:t.length===1?t[0]:function(r){return t.reduce(function(n,i){return i(n)},r)}}var it=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var i=this,o=xO(e)?e:new gp(e,r,n);return d4(function(){var a=i,s=a.operator,c=a.source;o.add(s?s.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=Qb(r),new r(function(i,o){var a=new gp({next:function(s){try{e(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:i});n.subscribe(a)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[v7]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return bO(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Qb(e),new e(function(n,i){var o;r.subscribe(function(a){return o=a},function(a){return i(a)},function(){return n(o)})})},t.create=function(e){return new t(e)},t}();function Qb(t){var e;return(e=t??o$.Promise)!==null&&e!==void 0?e:Promise}function wO(t){return t&&zt(t.next)&&zt(t.error)&&zt(t.complete)}function xO(t){return t&&t instanceof p7||wO(t)&&i$(t)}function zO(t){return zt(t==null?void 0:t.lift)}function Sr(t){return function(e){if(zO(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function ar(t,e,r,n,i){return new CO(t,e,r,n,i)}var CO=function(t){In(e,t);function e(r,n,i,o,a,s){var c=t.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=n?function(l){try{n(l)}catch(d){r.error(d)}}:t.prototype._next,c._error=o?function(l){try{o(l)}catch(d){r.error(d)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=i?function(){try{i()}catch(l){r.error(l)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(p7),kO=Qv(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Va=function(t){In(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var n=new Jb(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new kO},e.prototype.next=function(r){var n=this;d4(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=Vn(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(l){i={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},e.prototype.error=function(r){var n=this;d4(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},e.prototype.complete=function(){var r=this;d4(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,a=i.isStopped,s=i.observers;return o||a?n$:(this.currentObservers=null,s.push(r),new Un(function(){n.currentObservers=null,vp(s,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,a=n.isStopped;i?r.error(o):a&&r.complete()},e.prototype.asObservable=function(){var r=new it;return r.source=this,r},e.create=function(r,n){return new Jb(r,n)},e}(it),Jb=function(t){In(e,t);function e(r,n){var i=t.call(this)||this;return i.destination=r,i.source=n,i}return e.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},e.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:n$},e}(Va),jd=function(t){In(e,t);function e(r){var n=t.call(this)||this;return n._value=r,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var n=t.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},e.prototype.getValue=function(){var r=this,n=r.hasError,i=r.thrownError,o=r._value;if(n)throw i;return this._throwIfClosed(),o},e.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},e}(Va),m7={now:function(){return(m7.delegate||Date).now()},delegate:void 0},s$=function(t){In(e,t);function e(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=m7);var o=t.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return e.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;i||(o.push(r),!a&&o.push(s.now()+c)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,a=i._buffer,s=a.slice(),c=0;c<s.length&&!r.closed;c+=o?1:2)r.next(s[c]);return this._checkFinalizedStatuses(r),n},e.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,a=r._infiniteTimeWindow,s=(a?1:2)*n;if(n<1/0&&s<o.length&&o.splice(0,o.length-s),!a){for(var c=i.now(),l=0,d=1;d<o.length&&o[d]<=c;d+=2)l=d;l&&o.splice(0,l+1)}},e}(Va),EO=function(t){In(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return this},e}(Un),yp={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=yp.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,Wa([t,e],ca(r))):setInterval.apply(void 0,Wa([t,e],ca(r)))},clearInterval:function(t){var e=yp.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},SO=function(t){In(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return e.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,a=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(a,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(a,this.id,n),this},e.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),yp.setInterval(r.flush.bind(r,this),i)},e.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&yp.clearInterval(n)},e.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(a){i=!0,o=a||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,vp(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(EO),Zb=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=m7.now,t}(),AO=function(t){In(e,t);function e(r,n){n===void 0&&(n=Zb.now);var i=t.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},e}(Zb),_p=new AO(SO),MO=_p,Fr=new it(function(t){return t.complete()});function c$(t){return t&&zt(t.schedule)}function g7(t){return t[t.length-1]}function l$(t){return zt(g7(t))?t.pop():void 0}function Jv(t){return c$(g7(t))?t.pop():void 0}function $O(t,e){return typeof g7(t)=="number"?t.pop():e}var y7=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function d$(t){return zt(t==null?void 0:t.then)}function h$(t){return zt(t[v7])}function u$(t){return Symbol.asyncIterator&&zt(t==null?void 0:t[Symbol.asyncIterator])}function f$(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function PO(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var p$=PO();function v$(t){return zt(t==null?void 0:t[p$])}function m$(t){return pO(this,arguments,function(){var r,n,i,o;return r$(this,function(a){switch(a.label){case 0:r=t.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Il(r.read())];case 3:return n=a.sent(),i=n.value,o=n.done,o?[4,Il(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Il(i)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function g$(t){return zt(t==null?void 0:t.getReader)}function Ii(t){if(t instanceof it)return t;if(t!=null){if(h$(t))return IO(t);if(y7(t))return HO(t);if(d$(t))return TO(t);if(u$(t))return y$(t);if(v$(t))return RO(t);if(g$(t))return DO(t)}throw f$(t)}function IO(t){return new it(function(e){var r=t[v7]();if(zt(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function HO(t){return new it(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function TO(t){return new it(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,a$)})}function RO(t){return new it(function(e){var r,n;try{for(var i=Vn(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}e.complete()})}function y$(t){return new it(function(e){VO(t,e).catch(function(r){return e.error(r)})})}function DO(t){return y$(m$(t))}function VO(t,e){var r,n,i,o;return Xv(this,void 0,void 0,function(){var a,s;return r$(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=vO(t),c.label=1;case 1:return[4,r.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(a=n.value,e.next(a),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),i={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function ia(t,e,r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function bp(t,e){return e===void 0&&(e=0),Sr(function(r,n){r.subscribe(ar(n,function(i){return ia(n,t,function(){return n.next(i)},e)},function(){return ia(n,t,function(){return n.complete()},e)},function(i){return ia(n,t,function(){return n.error(i)},e)}))})}function _$(t,e){return e===void 0&&(e=0),Sr(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function LO(t,e){return Ii(t).pipe(_$(e),bp(e))}function OO(t,e){return Ii(t).pipe(_$(e),bp(e))}function NO(t,e){return new it(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function FO(t,e){return new it(function(r){var n;return ia(r,e,function(){n=t[p$](),ia(r,e,function(){var i,o,a;try{i=n.next(),o=i.value,a=i.done}catch(s){r.error(s);return}a?r.complete():r.next(o)},0,!0)}),function(){return zt(n==null?void 0:n.return)&&n.return()}})}function b$(t,e){if(!t)throw new Error("Iterable cannot be null");return new it(function(r){ia(r,e,function(){var n=t[Symbol.asyncIterator]();ia(r,e,function(){n.next().then(function(i){i.done?r.complete():r.next(i.value)})},0,!0)})})}function BO(t,e){return b$(m$(t),e)}function UO(t,e){if(t!=null){if(h$(t))return LO(t,e);if(y7(t))return NO(t,e);if(d$(t))return OO(t,e);if(u$(t))return b$(t,e);if(v$(t))return FO(t,e);if(g$(t))return BO(t,e)}throw f$(t)}function Lr(t,e){return e?UO(t,e):Ii(t)}function Eo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Jv(t);return Lr(t,r)}function w$(t,e){var r=zt(t)?t:function(){return t},n=function(i){return i.error(r())};return new it(e?function(i){return e.schedule(n,0,i)}:n)}var Zu=Qv(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function An(t,e){var r=typeof e=="object";return new Promise(function(n,i){var o=!1,a;t.subscribe({next:function(s){a=s,o=!0},error:i,complete:function(){o?n(a):r?n(e.defaultValue):i(new Zu)}})})}function ri(t,e){var r=typeof e=="object";return new Promise(function(n,i){var o=new gp({next:function(a){n(a),o.unsubscribe()},error:i,complete:function(){r?n(e.defaultValue):i(new Zu)}});t.subscribe(o)})}function x$(t){return t instanceof Date&&!isNaN(t)}var jO=Qv(function(t){return function(r){r===void 0&&(r=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r}});function qO(t,e){var r=x$(t)?{first:t}:typeof t=="number"?{each:t}:t,n=r.first,i=r.each,o=r.with,a=o===void 0?WO:o,s=r.scheduler,c=s===void 0?e??_p:s,l=r.meta,d=l===void 0?null:l;if(n==null&&i==null)throw new TypeError("No timeout provided.");return Sr(function(h,u){var f,v,p=null,_=0,m=function(g){v=ia(u,c,function(){try{f.unsubscribe(),Ii(a({meta:d,lastValue:p,seen:_})).subscribe(u)}catch(b){u.error(b)}},g)};f=h.subscribe(ar(u,function(g){v==null||v.unsubscribe(),_++,u.next(p=g),i>0&&m(i)},void 0,void 0,function(){v!=null&&v.closed||v==null||v.unsubscribe(),p=null})),!_&&m(n!=null?typeof n=="number"?n:+n-c.now():i)})}function WO(t){throw new jO(t)}function xt(t,e){return Sr(function(r,n){var i=0;r.subscribe(ar(n,function(o){n.next(t.call(e,o,i++))}))})}var GO=Array.isArray;function KO(t,e){return GO(e)?t.apply(void 0,Wa([],ca(e))):t(e)}function z$(t){return xt(function(e){return KO(t,e)})}var YO=Array.isArray,XO=Object.getPrototypeOf,QO=Object.prototype,JO=Object.keys;function ZO(t){if(t.length===1){var e=t[0];if(YO(e))return{args:e,keys:null};if(eN(e)){var r=JO(e);return{args:r.map(function(n){return e[n]}),keys:r}}}return{args:t,keys:null}}function eN(t){return t&&typeof t=="object"&&XO(t)===QO}function tN(t,e){return t.reduce(function(r,n,i){return r[n]=e[i],r},{})}function rN(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Jv(t),n=l$(t),i=ZO(t),o=i.args,a=i.keys;if(o.length===0)return Lr([],r);var s=new it(nN(o,r,a?function(c){return tN(a,c)}:Xa));return n?s.pipe(z$(n)):s}function nN(t,e,r){return r===void 0&&(r=Xa),function(n){ew(e,function(){for(var i=t.length,o=new Array(i),a=i,s=i,c=function(d){ew(e,function(){var h=Lr(t[d],e),u=!1;h.subscribe(ar(n,function(f){o[d]=f,u||(u=!0,s--),s||n.next(r(o.slice()))},function(){--a||n.complete()}))},n)},l=0;l<i;l++)c(l)},n)}}function ew(t,e,r){t?ia(r,t,e):e()}function C$(t,e,r,n,i,o,a,s){var c=[],l=0,d=0,h=!1,u=function(){h&&!c.length&&!l&&e.complete()},f=function(p){return l<n?v(p):c.push(p)},v=function(p){o&&e.next(p),l++;var _=!1;Ii(r(p,d++)).subscribe(ar(e,function(m){i==null||i(m),o?f(m):e.next(m)},function(){_=!0},void 0,function(){if(_)try{l--;for(var m=function(){var g=c.shift();a?ia(e,a,function(){return v(g)}):v(g)};c.length&&l<n;)m();u()}catch(g){e.error(g)}}))};return t.subscribe(ar(e,f,function(){h=!0,u()})),function(){s==null||s()}}function bo(t,e,r){return r===void 0&&(r=1/0),zt(e)?bo(function(n,i){return xt(function(o,a){return e(n,o,i,a)})(Ii(t(n,i)))},r):(typeof e=="number"&&(r=e),Sr(function(n,i){return C$(n,i,t,r)}))}function k$(t){return t===void 0&&(t=1/0),bo(Xa,t)}function iN(){return k$(1)}function oN(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return iN()(Lr(t,Jv(t)))}var aN=["addListener","removeListener"],sN=["addEventListener","removeEventListener"],cN=["on","off"];function w6(t,e,r,n){if(zt(r)&&(n=r,r=void 0),n)return w6(t,e,r).pipe(z$(n));var i=ca(hN(t)?sN.map(function(s){return function(c){return t[s](e,c,r)}}):lN(t)?aN.map(tw(t,e)):dN(t)?cN.map(tw(t,e)):[],2),o=i[0],a=i[1];if(!o&&y7(t))return bo(function(s){return w6(s,e,r)})(Ii(t));if(!o)throw new TypeError("Invalid event target");return new it(function(s){var c=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return s.next(1<l.length?l:l[0])};return o(c),function(){return a(c)}})}function tw(t,e){return function(r){return function(n){return t[r](e,n)}}}function lN(t){return zt(t.addListener)&&zt(t.removeListener)}function dN(t){return zt(t.on)&&zt(t.off)}function hN(t){return zt(t.addEventListener)&&zt(t.removeEventListener)}function uN(t,e,r){t===void 0&&(t=0),r===void 0&&(r=MO);var n=-1;return e!=null&&(c$(e)?r=e:n=e),new it(function(i){var o=x$(t)?+t-r.now():t;o<0&&(o=0);var a=0;return r.schedule(function(){i.closed||(i.next(a++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function E$(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Jv(t),n=$O(t,1/0),i=t;return i.length?i.length===1?Ii(i[0]):k$(n)(Lr(i,r)):Fr}function ir(t,e){return Sr(function(r,n){var i=0;r.subscribe(ar(n,function(o){return t.call(e,o,i++)&&n.next(o)}))})}function Br(t){return Sr(function(e,r){var n=null,i=!1,o;n=e.subscribe(ar(r,void 0,void 0,function(a){o=Ii(t(a,Br(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function fN(t,e,r,n,i){return function(o,a){var s=r,c=e,l=0;o.subscribe(ar(a,function(d){var h=l++;c=s?t(c,d,h):(s=!0,d),n&&a.next(c)},i&&function(){s&&a.next(c),a.complete()}))}}function pN(t,e){return zt(e)?bo(t,e,1):bo(t,1)}function S$(t){return Sr(function(e,r){var n=!1;e.subscribe(ar(r,function(i){n=!0,r.next(i)},function(){n||r.next(t),r.complete()}))})}function vN(t){return t<=0?function(){return Fr}:Sr(function(e,r){var n=0;e.subscribe(ar(r,function(i){++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function A$(t,e){return e===void 0&&(e=Xa),t=t??mN,Sr(function(r,n){var i,o=!0;r.subscribe(ar(n,function(a){var s=e(a);(o||!t(i,s))&&(o=!1,i=s,n.next(a))}))})}function mN(t,e){return t===e}function M$(t){return t===void 0&&(t=gN),Sr(function(e,r){var n=!1;e.subscribe(ar(r,function(i){n=!0,r.next(i)},function(){return n?r.complete():r.error(t())}))})}function gN(){return new Zu}function yN(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?ir(function(i,o){return t(i,o,n)}):Xa,vN(1),r?S$(e):M$(function(){return new Zu}))}}function _N(t){return t<=0?function(){return Fr}:Sr(function(e,r){var n=[];e.subscribe(ar(r,function(i){n.push(i),t<n.length&&n.shift()},function(){var i,o;try{for(var a=Vn(n),s=a.next();!s.done;s=a.next()){var c=s.value;r.next(c)}}catch(l){i={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}r.complete()},void 0,function(){n=null}))})}function Zv(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?ir(function(i,o){return t(i,o,n)}):Xa,_N(1),r?S$(e):M$(function(){return new Zu}))}}function bN(t,e,r){return r===void 0&&(r=1/0),Sr(function(n,i){var o=e;return C$(n,i,function(a,s){return t(o,a,s)},r,function(a){o=a},!1,void 0,function(){return o=null})})}function x6(){return Sr(function(t,e){var r,n=!1;t.subscribe(ar(e,function(i){var o=r;r=i,n&&e.next([o,i]),n=!0}))})}function $$(t,e){return Sr(fN(t,e,arguments.length>=2,!0))}function wN(t){return ir(function(e,r){return t<=r})}function hr(t,e){return Sr(function(r,n){var i=null,o=0,a=!1,s=function(){return a&&!i&&n.complete()};r.subscribe(ar(n,function(c){i==null||i.unsubscribe();var l=0,d=o++;Ii(t(c,d)).subscribe(i=ar(n,function(h){return n.next(e?e(c,h,d,l++):h)},function(){i=null,s()}))},function(){a=!0,s()}))})}function xN(t){return Sr(function(e,r){Ii(t).subscribe(ar(r,function(){return r.complete()},mp)),!r.closed&&e.subscribe(r)})}function P$(t,e){return e===void 0&&(e=!1),Sr(function(r,n){var i=0;r.subscribe(ar(n,function(o){var a=t(o,i++);(a||e)&&n.next(o),!a&&n.complete()}))})}function wp(t,e,r){var n=zt(t)||e||r?{next:t,error:e,complete:r}:t;return n?Sr(function(i,o){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;i.subscribe(ar(o,function(c){var l;(l=n.next)===null||l===void 0||l.call(n,c),o.next(c)},function(){var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},function(c){var l;s=!1,(l=n.error)===null||l===void 0||l.call(n,c),o.error(c)},function(){var c,l;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):Xa}function I$(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=l$(t);return Sr(function(n,i){for(var o=t.length,a=new Array(o),s=t.map(function(){return!1}),c=!1,l=function(h){Ii(t[h]).subscribe(ar(i,function(u){a[h]=u,!c&&!s[h]&&(s[h]=!0,(c=s.every(Xa))&&(s=null))},mp))},d=0;d<o;d++)l(d);n.subscribe(ar(i,function(h){if(c){var u=Wa([h],ca(a));i.next(r?r.apply(void 0,Wa([],ca(u))):u)}}))})}var fa=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class zN extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class CN{constructor(e){this.logger=new e$("ModulesConfigurator"),this._configs=[],this._afterConfiguration=[],this._afterInit=[],this._modules=new Set(e)}get modules(){return[...this._modules]}configure(...e){e.forEach(r=>this.addConfig(r))}addConfig(e){const{module:r,afterConfig:n,afterInit:i,configure:o}=e;this._modules.add(r),o&&this._configs.push((a,s)=>o(a[r.name],s)),n&&this._afterConfiguration.push(a=>n(a[r.name])),i&&this._afterInit.push(a=>i(a[r.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return fa(this,void 0,void 0,function*(){const r=yield this._configure(e),n=yield this._initialize(r,e);return yield this._postInitialize(n,e),Object.seal(Object.assign({},n,{dispose:()=>this.dispose(n)}))})}_configure(e){return fa(this,void 0,void 0,function*(){const r=yield this._createConfig(e);return yield Promise.all(this._configs.map(n=>Promise.resolve(n(r,e)))),yield this._postConfigure(r),r})}_createConfig(e){const{modules:r,logger:n,_afterConfiguration:i,_afterInit:o}=this,a=Lr(r).pipe(bo(s=>fa(this,void 0,void 0,function*(){var c;n.debug(`🛠 creating configurator ${n.formatModuleName(s)}`);try{const l=yield(c=s.configure)===null||c===void 0?void 0:c.call(s,e);return n.debug(`🛠 created configurator for ${n.formatModuleName(s)}`,l),{[s.name]:l}}catch(l){throw n.error(`🛠 Failed to created configurator for ${n.formatModuleName(s)}`,l),l}})),$$((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){i.push(s)},onAfterInit(s){o.push(s)}}));return An(a)}_postConfigure(e){return fa(this,void 0,void 0,function*(){const{modules:r,logger:n,_afterConfiguration:i}=this;if(yield Promise.allSettled(r.filter(o=>!!o.postConfigure).map(o=>fa(this,void 0,void 0,function*(){var a;try{yield(a=o.postConfigure)===null||a===void 0?void 0:a.call(o,e),n.debug(`🏗📌 post configured ${n.formatModuleName(o)}`,o)}catch{n.warn(`🏗📌 post configure failed ${n.formatModuleName(o)}`)}}))),i.length)try{n.debug(`🏗📌 post configure hooks [${i.length}]`),yield Promise.allSettled(i.map(o=>Promise.resolve(o(e)))),n.debug("🏗📌 post configure hooks complete")}catch(o){n.warn("🏗📌 post configure hook failed",o)}})}_initialize(e,r){return fa(this,void 0,void 0,function*(){const{modules:n,logger:i}=this,o=n.map(d=>d.name),a=new jd({}),s=d=>o.includes(d),c=(d,h=60)=>{if(!o.includes(d))throw i.error(`🚀⌛️ Cannot not require ${i.formatModuleName(String(d))} since module is not defined!`),Error(`cannot not require [${String(d)}] since module is not defined!`);return a.value[d]?(i.debug(`🚀⌛️ ${i.formatModuleName(String(d))} is initiated, skipping queue`),Promise.resolve(a.value[d])):(i.debug(`🚀⌛️ Awaiting init ${i.formatModuleName(String(d))}, timeout ${h}s`),ri(a.pipe(ir(u=>!!u[d]),xt(u=>u[d]),qO({each:h*1e3,with:()=>w$(()=>new zN)}))))};Lr(n).pipe(bo(d=>{const h=d.name;return i.debug(`🚀 initializing ${i.formatModuleName(d)}`),Lr(Promise.resolve(d.initialize({ref:r,config:e[h],requireInstance:c,hasModule:s}))).pipe(xt(u=>(i.debug(`🚀 initialized ${i.formatModuleName(d)}`),[h,u])))})).subscribe({next:([d,h])=>{a.next(Object.assign(a.value,{[d]:h}))},complete:()=>a.complete()});const l=yield An(a);return Object.seal(l),l})}_postInitialize(e,r){return fa(this,void 0,void 0,function*(){const{modules:n,logger:i,_afterInit:o}=this,a=Lr(n).pipe(ir(s=>!!s.postInitialize),wp(s=>i.debug(`🚀📌 post initializing moule ${i.formatModuleName(s)}`)),bo(s=>Lr(s.postInitialize({ref:r,modules:e,instance:e[s.name]})).pipe(wp(()=>{i.debug(`🚀📌 post initialized moule ${i.formatModuleName(s)}`)}),Br(c=>(i.warn(`🚀📌 post initialize failed moule ${i.formatModuleName(s)}`,c),Fr)))));if(yield An(a),o.length)try{i.debug(`🚀📌 post configure hooks [${o.length}]`),yield Promise.allSettled(o.map(s=>Promise.resolve(s(e)))),i.debug("🚀📌 post configure hooks complete")}catch(s){i.warn("🚀📌 post configure hook failed",s)}i.debug(`🎉 Modules initialized ${n.map(i.formatModuleName)}`,e),i.info("🟢 Modules initialized")})}dispose(e,r){return fa(this,void 0,void 0,function*(){const{modules:n}=this;yield Promise.allSettled(n.filter(i=>!!i.dispose).map(i=>fa(this,void 0,void 0,function*(){var o;yield(o=i.dispose)===null||o===void 0?void 0:o.call(i,{ref:r,modules:e,instance:e[i.name]})})))})}}globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;var P1=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},vc=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},h4,u4,W2,f4,G2,z6;class kN{constructor(e,r){this.__type=e,h4.set(this,void 0),u4.set(this,void 0),W2.set(this,!1),f4.set(this,void 0),G2.set(this,void 0),z6.set(this,Date.now()),P1(this,h4,r.detail,"f"),P1(this,u4,r.source,"f"),P1(this,f4,!!r.cancelable,"f"),P1(this,G2,r.canBubble===void 0?!0:r.canBubble,"f")}get bubbles(){return vc(this,G2,"f")&&!vc(this,W2,"f")}get created(){return vc(this,z6,"f")}get cancelable(){return vc(this,f4,"f")}get canceled(){return vc(this,W2,"f")}get detail(){return vc(this,h4,"f")}get source(){return vc(this,u4,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&P1(this,W2,!0,"f")}stopPropagation(){P1(this,G2,!1,"f")}}h4=new WeakMap,u4=new WeakMap,W2=new WeakMap,f4=new WeakMap,G2=new WeakMap,z6=new WeakMap;var EN=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class SN{constructor({onDispatch:e,onBubble:r}){this.__onDispatch=e,this.__onBubble=r}dispatch(e,r){var n,i;return EN(this,void 0,void 0,function*(){try{yield(n=this.__onDispatch)===null||n===void 0?void 0:n.call(this,e)}catch(a){throw a}const o=e;if(!o.dispatcher)o.dispatcher=this;else if(o.dispatcher===this)throw Error("loop detected");for(const a of r)e.cancelable?e.canceled||(yield Promise.resolve(a(e))):a(e);if(e.bubbles)try{yield(i=this.__onBubble)===null||i===void 0?void 0:i.call(this,e)}catch(a){throw a}})}}var rw=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class AN extends it{get closed(){return this.__event$.closed}constructor(e){super(r=>{this.__event$.subscribe(r)}),this.__listeners=[],this.__event$=new Va,this.__dispatcher=new SN({onDispatch:e.onDispatch,onBubble:e.onBubble})}addEventListener(e,r){if(this.closed)throw Error("Cannot listen to events when provider is closed!");const n={type:e,handler:r};return this.__listeners.push(n),()=>{const i=this.__listeners.indexOf(n);0<=i&&this.__listeners.splice(i,1)}}dispatchEvent(e,r){return rw(this,void 0,void 0,function*(){if(typeof e=="string"){if(!r)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new kN(e,r))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return rw(this,void 0,void 0,function*(){if(this.closed)throw Error("Cannot dispatch events when provider is closed!");this.__event$.next(e);try{const r=this.__listeners.filter(n=>n.type===e.type).map(({handler:n})=>n);yield this.__dispatcher.dispatch(e,r)}catch(r){throw r}return e})}dispose(){this.__listeners=[],this.__event$.complete()}}var nw=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const MN="event",$N={name:MN,configure:t=>{const e={},r=t==null?void 0:t.event;return r&&(e.onBubble=n=>nw(void 0,void 0,void 0,function*(){yield r.dispatchEvent(n)})),e},initialize:({config:t})=>new AN(t),postInitialize:({instance:t,modules:e})=>nw(void 0,void 0,void 0,function*(){t.dispatchEvent("onModulesLoaded",{detail:e,source:t})}),dispose({instance:t}){t.dispose()}};class H${constructor(){this._operators={}}add(e,r){if(Object.keys(this._operators).includes(e))throw Error(`Operator [${e}] already defined`);return this.set(e,r)}set(e,r){return this._operators[e]=r,this}get(e){return this._operators[e]}process(e){return Object.values(this._operators).length?Lr(Object.values(this._operators)).pipe(bN((n,i)=>Promise.resolve(i(n)).then(o=>o??n),e,1),Zv()):Eo(e)}}const PN=(t,e)=>r=>{const n=new Headers(r.headers);return n.append(t,e),Object.assign(Object.assign({},r),{headers:n})};class T$ extends H${setHeader(e,r){const n=PN(e,r);return this.set("header-"+e,n)}}class IN extends H${}class HN{get clients(){return Object.assign({},this._clients)}constructor(e){this._clients={},this.defaultHttpRequestHandler=new T$,this.defaultHttpClientCtor=e}hasClient(e){return Object.keys(this._clients).includes(e)}configureClient(e,r){const n=typeof r=="string"?o=>o.uri=String(r):r,i=typeof n=="function"?{onCreate:n}:n;return this._clients[e]=Object.assign(Object.assign({},this._clients[e]),i),this}}class TN extends Error{constructor(e){super(e)}}const RN=t=>new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(t);class DN{get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}constructor(e){this.config=e}hasClient(e){return Object.keys(this.config.clients).includes(e)}createClient(e){const r=this._resolveConfig(e),{baseUri:n,defaultScopes:i=[],onCreate:o,ctor:a=this.config.defaultHttpClientCtor,requestHandler:s=this.defaultHttpRequestHandler}=r,c={requestHandler:s},l=new a(n||"",c);return Object.assign(l,{defaultScopes:i}),o&&o(l),l}createCustomClient(e){return this.createClient(e)}_resolveConfig(e){if(typeof e=="string"){const r=this.config.clients[e];if(!r&&RN(e))return{baseUri:e};if(!r)throw new TN(`No registered http client for key [${e}]`);return r}return e}}function VN(t,e){e===void 0&&(e={});var r=e.selector,n=t$(e,["selector"]);return new it(function(i){var o=new AbortController,a=o.signal,s=!0,c=n.signal;if(c)if(c.aborted)o.abort();else{var l=function(){a.aborted||o.abort()};c.addEventListener("abort",l),i.add(function(){return c.removeEventListener("abort",l)})}var d=fr(fr({},n),{signal:a}),h=function(u){s=!1,i.error(u)};return fetch(t,d).then(function(u){r?Ii(r(u)).subscribe(ar(i,void 0,function(){s=!1,i.complete()},h)):(s=!1,i.next(u),i.complete())}).catch(h),function(){s&&o.abort()}})}const LN=t=>{if(!t.ok)throw new Error("network response was not OK");if(t.status===204)return Promise.resolve();try{return t.json()}catch{throw Error("failed to parse response")}};class C6 extends Error{constructor(e,r,n){super(e,n),this.message=e,this.response=r}}var iw=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};class ON{get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}constructor(e,r){var n,i;this.uri=e,this._request$=new Va,this._response$=new Va,this._abort$=new Va,this.requestHandler=(n=r==null?void 0:r.requestHandler)!==null&&n!==void 0?n:new T$,this.responseHandler=(i=r==null?void 0:r.responseHandler)!==null&&i!==void 0?i:new IN,this._init()}_init(){}fetch$(e,r){return this._fetch$(e,r)}fetch(e,r){return ri(this.fetch$(e,r))}fetchAsync(e,r){return this.fetch(e,r)}json$(e,r){var n;const i=typeof(r==null?void 0:r.body)=="object"?JSON.stringify(r==null?void 0:r.body):r==null?void 0:r.body,o=(n=r==null?void 0:r.selector)!==null&&n!==void 0?n:LN,a=new Headers(r==null?void 0:r.headers);return a.append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},r),{body:i,selector:o,headers:a}))}json(e,r){return ri(this.json$(e,r))}jsonAsync(e,r){return this.json(e,r)}execute(e,r,n){return this[e](r,n)}abort(){this._abort$.next()}_fetch$(e,r){const n=r||{},{selector:i}=n,o=iw(n,["selector"]);return Eo(Object.assign(Object.assign({},o),{uri:this._resolveUrl(e)})).pipe(hr(s=>this._prepareRequest(s)),wp(s=>this._request$.next(s)),hr(s=>{var{uri:c,path:l}=s,d=iw(s,["uri","path"]);return VN(c,d)}),hr(s=>this._prepareResponse(s)),wp(s=>this._response$.next(s)),hr(s=>{if(i)try{return i(s)}catch(c){throw new C6("failed to execute response selector",s,{cause:c})}return Eo(s)}),xN(this._abort$))}_prepareRequest(e){return this.requestHandler.process(e)}_prepareResponse(e){return this.responseHandler.process(e)}_resolveUrl(e){const r=this.uri||window.location.origin;return new URL(e,r).href}}class NN extends ON{constructor(){super(...arguments),this.defaultScopes=[]}fetch$(e,r){const n=Object.assign(r||{},{scopes:this.defaultScopes.concat((r==null?void 0:r.scopes)||[])});return super._fetch$(e,n)}}var ow=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const _7={name:"http",configure:()=>new HN(NN),initialize:({config:t,hasModule:e,requireInstance:r})=>ow(void 0,void 0,void 0,function*(){const n=new DN(t);if(e("auth")){const i=yield r("auth");n.defaultHttpRequestHandler.set("MSAL",o=>ow(void 0,void 0,void 0,function*(){const{scopes:a=[]}=o;if(a.length){const s=yield i.acquireToken({scopes:a});if(s){const c=new Headers(o.headers);return c.set("Authorization",`Bearer ${s.accessToken}`),Object.assign(Object.assign({},o),{headers:c})}}}))}return n})},FN=t=>({module:_7,configure:t}),R$=(t,e)=>({module:_7,configure:r=>{r.configureClient(t,e)}}),Tm="default";class BN{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[Tm]}getClientConfig(e){return this._configs[e]}configureClient(e,r){return this._configs[e]=r,this}configureDefault(e){if(this._configs[Tm])throw Error("Default AuthClient already provided");this.configureClient(Tm,e)}}/*! @azure/msal-browser v2.32.2 2023-01-10 *//*! *****************************************************************************
43
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function vp(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Un=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,n,i,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Vn(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(p){e={error:p}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}else a.remove(this);var d=this.initialTeardown;if(zt(d))try{d()}catch(p){o=p instanceof Im?p.errors:[p]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var u=Vn(h),f=u.next();!f.done;f=u.next()){var v=f.value;try{Xb(v)}catch(p){o=o??[],p instanceof Im?o=Wa(Wa([],ca(o)),ca(p.errors)):o.push(p)}}}catch(p){n={error:p}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}if(o)throw new Im(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Xb(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&vp(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&vp(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),n$=Un.EMPTY;function i$(t){return t instanceof Un||t&&"closed"in t&&zt(t.remove)&&zt(t.add)&&zt(t.unsubscribe)}function Xb(t){zt(t)?t():t.unsubscribe()}var o$={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},b6={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=b6.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,Wa([t,e],ca(r))):setTimeout.apply(void 0,Wa([t,e],ca(r)))},clearTimeout:function(t){var e=b6.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function a$(t){b6.setTimeout(function(){throw t})}function mp(){}function d4(t){t()}var p7=function(t){In(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,i$(r)&&r.add(n)):n.destination=_O,n}return e.create=function(r,n,i){return new gp(r,n,i)},e.prototype.next=function(r){this.isStopped||this._next(r)},e.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Un),mO=Function.prototype.bind;function Hm(t,e){return mO.call(t,e)}var gO=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){sf(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){sf(n)}else sf(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){sf(r)}},t}(),gp=function(t){In(e,t);function e(r,n,i){var o=t.call(this)||this,a;if(zt(r)||!r)a={next:r??void 0,error:n??void 0,complete:i??void 0};else{var s;o&&o$.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return o.unsubscribe()},a={next:r.next&&Hm(r.next,s),error:r.error&&Hm(r.error,s),complete:r.complete&&Hm(r.complete,s)}):a=r}return o.destination=new gO(a),o}return e}(p7);function sf(t){a$(t)}function yO(t){throw t}var _O={closed:!0,next:mp,error:yO,complete:mp},v7=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Xa(t){return t}function bO(t){return t.length===0?Xa:t.length===1?t[0]:function(r){return t.reduce(function(n,i){return i(n)},r)}}var it=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var i=this,o=xO(e)?e:new gp(e,r,n);return d4(function(){var a=i,s=a.operator,c=a.source;o.add(s?s.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=Qb(r),new r(function(i,o){var a=new gp({next:function(s){try{e(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:i});n.subscribe(a)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[v7]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return bO(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Qb(e),new e(function(n,i){var o;r.subscribe(function(a){return o=a},function(a){return i(a)},function(){return n(o)})})},t.create=function(e){return new t(e)},t}();function Qb(t){var e;return(e=t??o$.Promise)!==null&&e!==void 0?e:Promise}function wO(t){return t&&zt(t.next)&&zt(t.error)&&zt(t.complete)}function xO(t){return t&&t instanceof p7||wO(t)&&i$(t)}function zO(t){return zt(t==null?void 0:t.lift)}function Sr(t){return function(e){if(zO(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function ar(t,e,r,n,i){return new CO(t,e,r,n,i)}var CO=function(t){In(e,t);function e(r,n,i,o,a,s){var c=t.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=n?function(l){try{n(l)}catch(d){r.error(d)}}:t.prototype._next,c._error=o?function(l){try{o(l)}catch(d){r.error(d)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=i?function(){try{i()}catch(l){r.error(l)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(p7),kO=Qv(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Va=function(t){In(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var n=new Jb(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new kO},e.prototype.next=function(r){var n=this;d4(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=Vn(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(l){i={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},e.prototype.error=function(r){var n=this;d4(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},e.prototype.complete=function(){var r=this;d4(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,a=i.isStopped,s=i.observers;return o||a?n$:(this.currentObservers=null,s.push(r),new Un(function(){n.currentObservers=null,vp(s,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,a=n.isStopped;i?r.error(o):a&&r.complete()},e.prototype.asObservable=function(){var r=new it;return r.source=this,r},e.create=function(r,n){return new Jb(r,n)},e}(it),Jb=function(t){In(e,t);function e(r,n){var i=t.call(this)||this;return i.destination=r,i.source=n,i}return e.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},e.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:n$},e}(Va),jd=function(t){In(e,t);function e(r){var n=t.call(this)||this;return n._value=r,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var n=t.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},e.prototype.getValue=function(){var r=this,n=r.hasError,i=r.thrownError,o=r._value;if(n)throw i;return this._throwIfClosed(),o},e.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},e}(Va),m7={now:function(){return(m7.delegate||Date).now()},delegate:void 0},s$=function(t){In(e,t);function e(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=m7);var o=t.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return e.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;i||(o.push(r),!a&&o.push(s.now()+c)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,a=i._buffer,s=a.slice(),c=0;c<s.length&&!r.closed;c+=o?1:2)r.next(s[c]);return this._checkFinalizedStatuses(r),n},e.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,a=r._infiniteTimeWindow,s=(a?1:2)*n;if(n<1/0&&s<o.length&&o.splice(0,o.length-s),!a){for(var c=i.now(),l=0,d=1;d<o.length&&o[d]<=c;d+=2)l=d;l&&o.splice(0,l+1)}},e}(Va),EO=function(t){In(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return this},e}(Un),yp={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=yp.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,Wa([t,e],ca(r))):setInterval.apply(void 0,Wa([t,e],ca(r)))},clearInterval:function(t){var e=yp.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},SO=function(t){In(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return e.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,a=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(a,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(a,this.id,n),this},e.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),yp.setInterval(r.flush.bind(r,this),i)},e.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&yp.clearInterval(n)},e.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(a){i=!0,o=a||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,vp(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(EO),Zb=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=m7.now,t}(),AO=function(t){In(e,t);function e(r,n){n===void 0&&(n=Zb.now);var i=t.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},e}(Zb),_p=new AO(SO),MO=_p,Fr=new it(function(t){return t.complete()});function c$(t){return t&&zt(t.schedule)}function g7(t){return t[t.length-1]}function l$(t){return zt(g7(t))?t.pop():void 0}function Jv(t){return c$(g7(t))?t.pop():void 0}function $O(t,e){return typeof g7(t)=="number"?t.pop():e}var y7=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function d$(t){return zt(t==null?void 0:t.then)}function h$(t){return zt(t[v7])}function u$(t){return Symbol.asyncIterator&&zt(t==null?void 0:t[Symbol.asyncIterator])}function f$(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function PO(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var p$=PO();function v$(t){return zt(t==null?void 0:t[p$])}function m$(t){return pO(this,arguments,function(){var r,n,i,o;return r$(this,function(a){switch(a.label){case 0:r=t.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Il(r.read())];case 3:return n=a.sent(),i=n.value,o=n.done,o?[4,Il(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Il(i)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function g$(t){return zt(t==null?void 0:t.getReader)}function Ii(t){if(t instanceof it)return t;if(t!=null){if(h$(t))return IO(t);if(y7(t))return HO(t);if(d$(t))return TO(t);if(u$(t))return y$(t);if(v$(t))return RO(t);if(g$(t))return DO(t)}throw f$(t)}function IO(t){return new it(function(e){var r=t[v7]();if(zt(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function HO(t){return new it(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function TO(t){return new it(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,a$)})}function RO(t){return new it(function(e){var r,n;try{for(var i=Vn(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}e.complete()})}function y$(t){return new it(function(e){VO(t,e).catch(function(r){return e.error(r)})})}function DO(t){return y$(m$(t))}function VO(t,e){var r,n,i,o;return Xv(this,void 0,void 0,function(){var a,s;return r$(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=vO(t),c.label=1;case 1:return[4,r.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(a=n.value,e.next(a),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),i={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function ia(t,e,r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function bp(t,e){return e===void 0&&(e=0),Sr(function(r,n){r.subscribe(ar(n,function(i){return ia(n,t,function(){return n.next(i)},e)},function(){return ia(n,t,function(){return n.complete()},e)},function(i){return ia(n,t,function(){return n.error(i)},e)}))})}function _$(t,e){return e===void 0&&(e=0),Sr(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function LO(t,e){return Ii(t).pipe(_$(e),bp(e))}function OO(t,e){return Ii(t).pipe(_$(e),bp(e))}function NO(t,e){return new it(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function FO(t,e){return new it(function(r){var n;return ia(r,e,function(){n=t[p$](),ia(r,e,function(){var i,o,a;try{i=n.next(),o=i.value,a=i.done}catch(s){r.error(s);return}a?r.complete():r.next(o)},0,!0)}),function(){return zt(n==null?void 0:n.return)&&n.return()}})}function b$(t,e){if(!t)throw new Error("Iterable cannot be null");return new it(function(r){ia(r,e,function(){var n=t[Symbol.asyncIterator]();ia(r,e,function(){n.next().then(function(i){i.done?r.complete():r.next(i.value)})},0,!0)})})}function BO(t,e){return b$(m$(t),e)}function UO(t,e){if(t!=null){if(h$(t))return LO(t,e);if(y7(t))return NO(t,e);if(d$(t))return OO(t,e);if(u$(t))return b$(t,e);if(v$(t))return FO(t,e);if(g$(t))return BO(t,e)}throw f$(t)}function Lr(t,e){return e?UO(t,e):Ii(t)}function Eo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Jv(t);return Lr(t,r)}function w$(t,e){var r=zt(t)?t:function(){return t},n=function(i){return i.error(r())};return new it(e?function(i){return e.schedule(n,0,i)}:n)}var Zu=Qv(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function An(t,e){var r=typeof e=="object";return new Promise(function(n,i){var o=!1,a;t.subscribe({next:function(s){a=s,o=!0},error:i,complete:function(){o?n(a):r?n(e.defaultValue):i(new Zu)}})})}function ri(t,e){var r=typeof e=="object";return new Promise(function(n,i){var o=new gp({next:function(a){n(a),o.unsubscribe()},error:i,complete:function(){r?n(e.defaultValue):i(new Zu)}});t.subscribe(o)})}function x$(t){return t instanceof Date&&!isNaN(t)}var jO=Qv(function(t){return function(r){r===void 0&&(r=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r}});function qO(t,e){var r=x$(t)?{first:t}:typeof t=="number"?{each:t}:t,n=r.first,i=r.each,o=r.with,a=o===void 0?WO:o,s=r.scheduler,c=s===void 0?e??_p:s,l=r.meta,d=l===void 0?null:l;if(n==null&&i==null)throw new TypeError("No timeout provided.");return Sr(function(h,u){var f,v,p=null,_=0,m=function(g){v=ia(u,c,function(){try{f.unsubscribe(),Ii(a({meta:d,lastValue:p,seen:_})).subscribe(u)}catch(b){u.error(b)}},g)};f=h.subscribe(ar(u,function(g){v==null||v.unsubscribe(),_++,u.next(p=g),i>0&&m(i)},void 0,void 0,function(){v!=null&&v.closed||v==null||v.unsubscribe(),p=null})),!_&&m(n!=null?typeof n=="number"?n:+n-c.now():i)})}function WO(t){throw new jO(t)}function xt(t,e){return Sr(function(r,n){var i=0;r.subscribe(ar(n,function(o){n.next(t.call(e,o,i++))}))})}var GO=Array.isArray;function KO(t,e){return GO(e)?t.apply(void 0,Wa([],ca(e))):t(e)}function z$(t){return xt(function(e){return KO(t,e)})}var YO=Array.isArray,XO=Object.getPrototypeOf,QO=Object.prototype,JO=Object.keys;function ZO(t){if(t.length===1){var e=t[0];if(YO(e))return{args:e,keys:null};if(eN(e)){var r=JO(e);return{args:r.map(function(n){return e[n]}),keys:r}}}return{args:t,keys:null}}function eN(t){return t&&typeof t=="object"&&XO(t)===QO}function tN(t,e){return t.reduce(function(r,n,i){return r[n]=e[i],r},{})}function rN(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Jv(t),n=l$(t),i=ZO(t),o=i.args,a=i.keys;if(o.length===0)return Lr([],r);var s=new it(nN(o,r,a?function(c){return tN(a,c)}:Xa));return n?s.pipe(z$(n)):s}function nN(t,e,r){return r===void 0&&(r=Xa),function(n){ew(e,function(){for(var i=t.length,o=new Array(i),a=i,s=i,c=function(d){ew(e,function(){var h=Lr(t[d],e),u=!1;h.subscribe(ar(n,function(f){o[d]=f,u||(u=!0,s--),s||n.next(r(o.slice()))},function(){--a||n.complete()}))},n)},l=0;l<i;l++)c(l)},n)}}function ew(t,e,r){t?ia(r,t,e):e()}function C$(t,e,r,n,i,o,a,s){var c=[],l=0,d=0,h=!1,u=function(){h&&!c.length&&!l&&e.complete()},f=function(p){return l<n?v(p):c.push(p)},v=function(p){o&&e.next(p),l++;var _=!1;Ii(r(p,d++)).subscribe(ar(e,function(m){i==null||i(m),o?f(m):e.next(m)},function(){_=!0},void 0,function(){if(_)try{l--;for(var m=function(){var g=c.shift();a?ia(e,a,function(){return v(g)}):v(g)};c.length&&l<n;)m();u()}catch(g){e.error(g)}}))};return t.subscribe(ar(e,f,function(){h=!0,u()})),function(){s==null||s()}}function bo(t,e,r){return r===void 0&&(r=1/0),zt(e)?bo(function(n,i){return xt(function(o,a){return e(n,o,i,a)})(Ii(t(n,i)))},r):(typeof e=="number"&&(r=e),Sr(function(n,i){return C$(n,i,t,r)}))}function k$(t){return t===void 0&&(t=1/0),bo(Xa,t)}function iN(){return k$(1)}function oN(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return iN()(Lr(t,Jv(t)))}var aN=["addListener","removeListener"],sN=["addEventListener","removeEventListener"],cN=["on","off"];function w6(t,e,r,n){if(zt(r)&&(n=r,r=void 0),n)return w6(t,e,r).pipe(z$(n));var i=ca(hN(t)?sN.map(function(s){return function(c){return t[s](e,c,r)}}):lN(t)?aN.map(tw(t,e)):dN(t)?cN.map(tw(t,e)):[],2),o=i[0],a=i[1];if(!o&&y7(t))return bo(function(s){return w6(s,e,r)})(Ii(t));if(!o)throw new TypeError("Invalid event target");return new it(function(s){var c=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return s.next(1<l.length?l:l[0])};return o(c),function(){return a(c)}})}function tw(t,e){return function(r){return function(n){return t[r](e,n)}}}function lN(t){return zt(t.addListener)&&zt(t.removeListener)}function dN(t){return zt(t.on)&&zt(t.off)}function hN(t){return zt(t.addEventListener)&&zt(t.removeEventListener)}function uN(t,e,r){t===void 0&&(t=0),r===void 0&&(r=MO);var n=-1;return e!=null&&(c$(e)?r=e:n=e),new it(function(i){var o=x$(t)?+t-r.now():t;o<0&&(o=0);var a=0;return r.schedule(function(){i.closed||(i.next(a++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function E$(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Jv(t),n=$O(t,1/0),i=t;return i.length?i.length===1?Ii(i[0]):k$(n)(Lr(i,r)):Fr}function Jt(t,e){return Sr(function(r,n){var i=0;r.subscribe(ar(n,function(o){return t.call(e,o,i++)&&n.next(o)}))})}function Br(t){return Sr(function(e,r){var n=null,i=!1,o;n=e.subscribe(ar(r,void 0,void 0,function(a){o=Ii(t(a,Br(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function fN(t,e,r,n,i){return function(o,a){var s=r,c=e,l=0;o.subscribe(ar(a,function(d){var h=l++;c=s?t(c,d,h):(s=!0,d),n&&a.next(c)},i&&function(){s&&a.next(c),a.complete()}))}}function pN(t,e){return zt(e)?bo(t,e,1):bo(t,1)}function S$(t){return Sr(function(e,r){var n=!1;e.subscribe(ar(r,function(i){n=!0,r.next(i)},function(){n||r.next(t),r.complete()}))})}function vN(t){return t<=0?function(){return Fr}:Sr(function(e,r){var n=0;e.subscribe(ar(r,function(i){++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function A$(t,e){return e===void 0&&(e=Xa),t=t??mN,Sr(function(r,n){var i,o=!0;r.subscribe(ar(n,function(a){var s=e(a);(o||!t(i,s))&&(o=!1,i=s,n.next(a))}))})}function mN(t,e){return t===e}function M$(t){return t===void 0&&(t=gN),Sr(function(e,r){var n=!1;e.subscribe(ar(r,function(i){n=!0,r.next(i)},function(){return n?r.complete():r.error(t())}))})}function gN(){return new Zu}function yN(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?Jt(function(i,o){return t(i,o,n)}):Xa,vN(1),r?S$(e):M$(function(){return new Zu}))}}function _N(t){return t<=0?function(){return Fr}:Sr(function(e,r){var n=[];e.subscribe(ar(r,function(i){n.push(i),t<n.length&&n.shift()},function(){var i,o;try{for(var a=Vn(n),s=a.next();!s.done;s=a.next()){var c=s.value;r.next(c)}}catch(l){i={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}r.complete()},void 0,function(){n=null}))})}function Zv(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?Jt(function(i,o){return t(i,o,n)}):Xa,_N(1),r?S$(e):M$(function(){return new Zu}))}}function bN(t,e,r){return r===void 0&&(r=1/0),Sr(function(n,i){var o=e;return C$(n,i,function(a,s){return t(o,a,s)},r,function(a){o=a},!1,void 0,function(){return o=null})})}function x6(){return Sr(function(t,e){var r,n=!1;t.subscribe(ar(e,function(i){var o=r;r=i,n&&e.next([o,i]),n=!0}))})}function $$(t,e){return Sr(fN(t,e,arguments.length>=2,!0))}function wN(t){return Jt(function(e,r){return t<=r})}function hr(t,e){return Sr(function(r,n){var i=null,o=0,a=!1,s=function(){return a&&!i&&n.complete()};r.subscribe(ar(n,function(c){i==null||i.unsubscribe();var l=0,d=o++;Ii(t(c,d)).subscribe(i=ar(n,function(h){return n.next(e?e(c,h,d,l++):h)},function(){i=null,s()}))},function(){a=!0,s()}))})}function xN(t){return Sr(function(e,r){Ii(t).subscribe(ar(r,function(){return r.complete()},mp)),!r.closed&&e.subscribe(r)})}function P$(t,e){return e===void 0&&(e=!1),Sr(function(r,n){var i=0;r.subscribe(ar(n,function(o){var a=t(o,i++);(a||e)&&n.next(o),!a&&n.complete()}))})}function wp(t,e,r){var n=zt(t)||e||r?{next:t,error:e,complete:r}:t;return n?Sr(function(i,o){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;i.subscribe(ar(o,function(c){var l;(l=n.next)===null||l===void 0||l.call(n,c),o.next(c)},function(){var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},function(c){var l;s=!1,(l=n.error)===null||l===void 0||l.call(n,c),o.error(c)},function(){var c,l;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):Xa}function I$(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=l$(t);return Sr(function(n,i){for(var o=t.length,a=new Array(o),s=t.map(function(){return!1}),c=!1,l=function(h){Ii(t[h]).subscribe(ar(i,function(u){a[h]=u,!c&&!s[h]&&(s[h]=!0,(c=s.every(Xa))&&(s=null))},mp))},d=0;d<o;d++)l(d);n.subscribe(ar(i,function(h){if(c){var u=Wa([h],ca(a));i.next(r?r.apply(void 0,Wa([],ca(u))):u)}}))})}var fa=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class zN extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class CN{constructor(e){this.logger=new e$("ModulesConfigurator"),this._configs=[],this._afterConfiguration=[],this._afterInit=[],this._modules=new Set(e)}get modules(){return[...this._modules]}configure(...e){e.forEach(r=>this.addConfig(r))}addConfig(e){const{module:r,afterConfig:n,afterInit:i,configure:o}=e;this._modules.add(r),o&&this._configs.push((a,s)=>o(a[r.name],s)),n&&this._afterConfiguration.push(a=>n(a[r.name])),i&&this._afterInit.push(a=>i(a[r.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return fa(this,void 0,void 0,function*(){const r=yield this._configure(e),n=yield this._initialize(r,e);return yield this._postInitialize(n,e),Object.seal(Object.assign({},n,{dispose:()=>this.dispose(n)}))})}_configure(e){return fa(this,void 0,void 0,function*(){const r=yield this._createConfig(e);return yield Promise.all(this._configs.map(n=>Promise.resolve(n(r,e)))),yield this._postConfigure(r),r})}_createConfig(e){const{modules:r,logger:n,_afterConfiguration:i,_afterInit:o}=this,a=Lr(r).pipe(bo(s=>fa(this,void 0,void 0,function*(){var c;n.debug(`🛠 creating configurator ${n.formatModuleName(s)}`);try{const l=yield(c=s.configure)===null||c===void 0?void 0:c.call(s,e);return n.debug(`🛠 created configurator for ${n.formatModuleName(s)}`,l),{[s.name]:l}}catch(l){throw n.error(`🛠 Failed to created configurator for ${n.formatModuleName(s)}`,l),l}})),$$((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){i.push(s)},onAfterInit(s){o.push(s)}}));return An(a)}_postConfigure(e){return fa(this,void 0,void 0,function*(){const{modules:r,logger:n,_afterConfiguration:i}=this;if(yield Promise.allSettled(r.filter(o=>!!o.postConfigure).map(o=>fa(this,void 0,void 0,function*(){var a;try{yield(a=o.postConfigure)===null||a===void 0?void 0:a.call(o,e),n.debug(`🏗📌 post configured ${n.formatModuleName(o)}`,o)}catch{n.warn(`🏗📌 post configure failed ${n.formatModuleName(o)}`)}}))),i.length)try{n.debug(`🏗📌 post configure hooks [${i.length}]`),yield Promise.allSettled(i.map(o=>Promise.resolve(o(e)))),n.debug("🏗📌 post configure hooks complete")}catch(o){n.warn("🏗📌 post configure hook failed",o)}})}_initialize(e,r){return fa(this,void 0,void 0,function*(){const{modules:n,logger:i}=this,o=n.map(d=>d.name),a=new jd({}),s=d=>o.includes(d),c=(d,h=60)=>{if(!o.includes(d))throw i.error(`🚀⌛️ Cannot not require ${i.formatModuleName(String(d))} since module is not defined!`),Error(`cannot not require [${String(d)}] since module is not defined!`);return a.value[d]?(i.debug(`🚀⌛️ ${i.formatModuleName(String(d))} is initiated, skipping queue`),Promise.resolve(a.value[d])):(i.debug(`🚀⌛️ Awaiting init ${i.formatModuleName(String(d))}, timeout ${h}s`),ri(a.pipe(Jt(u=>!!u[d]),xt(u=>u[d]),qO({each:h*1e3,with:()=>w$(()=>new zN)}))))};Lr(n).pipe(bo(d=>{const h=d.name;return i.debug(`🚀 initializing ${i.formatModuleName(d)}`),Lr(Promise.resolve(d.initialize({ref:r,config:e[h],requireInstance:c,hasModule:s}))).pipe(xt(u=>(i.debug(`🚀 initialized ${i.formatModuleName(d)}`),[h,u])))})).subscribe({next:([d,h])=>{a.next(Object.assign(a.value,{[d]:h}))},complete:()=>a.complete()});const l=yield An(a);return Object.seal(l),l})}_postInitialize(e,r){return fa(this,void 0,void 0,function*(){const{modules:n,logger:i,_afterInit:o}=this,a=Lr(n).pipe(Jt(s=>!!s.postInitialize),wp(s=>i.debug(`🚀📌 post initializing moule ${i.formatModuleName(s)}`)),bo(s=>Lr(s.postInitialize({ref:r,modules:e,instance:e[s.name]})).pipe(wp(()=>{i.debug(`🚀📌 post initialized moule ${i.formatModuleName(s)}`)}),Br(c=>(i.warn(`🚀📌 post initialize failed moule ${i.formatModuleName(s)}`,c),Fr)))));if(yield An(a),o.length)try{i.debug(`🚀📌 post configure hooks [${o.length}]`),yield Promise.allSettled(o.map(s=>Promise.resolve(s(e)))),i.debug("🚀📌 post configure hooks complete")}catch(s){i.warn("🚀📌 post configure hook failed",s)}i.debug(`🎉 Modules initialized ${n.map(i.formatModuleName)}`,e),i.info("🟢 Modules initialized")})}dispose(e,r){return fa(this,void 0,void 0,function*(){const{modules:n}=this;yield Promise.allSettled(n.filter(i=>!!i.dispose).map(i=>fa(this,void 0,void 0,function*(){var o;yield(o=i.dispose)===null||o===void 0?void 0:o.call(i,{ref:r,modules:e,instance:e[i.name]})})))})}}globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;var P1=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},vc=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},h4,u4,W2,f4,G2,z6;class kN{constructor(e,r){this.__type=e,h4.set(this,void 0),u4.set(this,void 0),W2.set(this,!1),f4.set(this,void 0),G2.set(this,void 0),z6.set(this,Date.now()),P1(this,h4,r.detail,"f"),P1(this,u4,r.source,"f"),P1(this,f4,!!r.cancelable,"f"),P1(this,G2,r.canBubble===void 0?!0:r.canBubble,"f")}get bubbles(){return vc(this,G2,"f")&&!vc(this,W2,"f")}get created(){return vc(this,z6,"f")}get cancelable(){return vc(this,f4,"f")}get canceled(){return vc(this,W2,"f")}get detail(){return vc(this,h4,"f")}get source(){return vc(this,u4,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&P1(this,W2,!0,"f")}stopPropagation(){P1(this,G2,!1,"f")}}h4=new WeakMap,u4=new WeakMap,W2=new WeakMap,f4=new WeakMap,G2=new WeakMap,z6=new WeakMap;var EN=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class SN{constructor({onDispatch:e,onBubble:r}){this.__onDispatch=e,this.__onBubble=r}dispatch(e,r){var n,i;return EN(this,void 0,void 0,function*(){try{yield(n=this.__onDispatch)===null||n===void 0?void 0:n.call(this,e)}catch(a){throw a}const o=e;if(!o.dispatcher)o.dispatcher=this;else if(o.dispatcher===this)throw Error("loop detected");for(const a of r)e.cancelable?e.canceled||(yield Promise.resolve(a(e))):a(e);if(e.bubbles)try{yield(i=this.__onBubble)===null||i===void 0?void 0:i.call(this,e)}catch(a){throw a}})}}var rw=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class AN extends it{get closed(){return this.__event$.closed}constructor(e){super(r=>{this.__event$.subscribe(r)}),this.__listeners=[],this.__event$=new Va,this.__dispatcher=new SN({onDispatch:e.onDispatch,onBubble:e.onBubble})}addEventListener(e,r){if(this.closed)throw Error("Cannot listen to events when provider is closed!");const n={type:e,handler:r};return this.__listeners.push(n),()=>{const i=this.__listeners.indexOf(n);0<=i&&this.__listeners.splice(i,1)}}dispatchEvent(e,r){return rw(this,void 0,void 0,function*(){if(typeof e=="string"){if(!r)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new kN(e,r))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return rw(this,void 0,void 0,function*(){if(this.closed)throw Error("Cannot dispatch events when provider is closed!");this.__event$.next(e);try{const r=this.__listeners.filter(n=>n.type===e.type).map(({handler:n})=>n);yield this.__dispatcher.dispatch(e,r)}catch(r){throw r}return e})}dispose(){this.__listeners=[],this.__event$.complete()}}var nw=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const MN="event",$N={name:MN,configure:t=>{const e={},r=t==null?void 0:t.event;return r&&(e.onBubble=n=>nw(void 0,void 0,void 0,function*(){yield r.dispatchEvent(n)})),e},initialize:({config:t})=>new AN(t),postInitialize:({instance:t,modules:e})=>nw(void 0,void 0,void 0,function*(){t.dispatchEvent("onModulesLoaded",{detail:e,source:t})}),dispose({instance:t}){t.dispose()}};class H${constructor(){this._operators={}}add(e,r){if(Object.keys(this._operators).includes(e))throw Error(`Operator [${e}] already defined`);return this.set(e,r)}set(e,r){return this._operators[e]=r,this}get(e){return this._operators[e]}process(e){return Object.values(this._operators).length?Lr(Object.values(this._operators)).pipe(bN((n,i)=>Promise.resolve(i(n)).then(o=>o??n),e,1),Zv()):Eo(e)}}const PN=(t,e)=>r=>{const n=new Headers(r.headers);return n.append(t,e),Object.assign(Object.assign({},r),{headers:n})};class T$ extends H${setHeader(e,r){const n=PN(e,r);return this.set("header-"+e,n)}}class IN extends H${}class HN{get clients(){return Object.assign({},this._clients)}constructor(e){this._clients={},this.defaultHttpRequestHandler=new T$,this.defaultHttpClientCtor=e}hasClient(e){return Object.keys(this._clients).includes(e)}configureClient(e,r){const n=typeof r=="string"?o=>o.uri=String(r):r,i=typeof n=="function"?{onCreate:n}:n;return this._clients[e]=Object.assign(Object.assign({},this._clients[e]),i),this}}class TN extends Error{constructor(e){super(e)}}const RN=t=>new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(t);class DN{get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}constructor(e){this.config=e}hasClient(e){return Object.keys(this.config.clients).includes(e)}createClient(e){const r=this._resolveConfig(e),{baseUri:n,defaultScopes:i=[],onCreate:o,ctor:a=this.config.defaultHttpClientCtor,requestHandler:s=this.defaultHttpRequestHandler}=r,c={requestHandler:s},l=new a(n||"",c);return Object.assign(l,{defaultScopes:i}),o&&o(l),l}createCustomClient(e){return this.createClient(e)}_resolveConfig(e){if(typeof e=="string"){const r=this.config.clients[e];if(!r&&RN(e))return{baseUri:e};if(!r)throw new TN(`No registered http client for key [${e}]`);return r}return e}}function VN(t,e){e===void 0&&(e={});var r=e.selector,n=t$(e,["selector"]);return new it(function(i){var o=new AbortController,a=o.signal,s=!0,c=n.signal;if(c)if(c.aborted)o.abort();else{var l=function(){a.aborted||o.abort()};c.addEventListener("abort",l),i.add(function(){return c.removeEventListener("abort",l)})}var d=fr(fr({},n),{signal:a}),h=function(u){s=!1,i.error(u)};return fetch(t,d).then(function(u){r?Ii(r(u)).subscribe(ar(i,void 0,function(){s=!1,i.complete()},h)):(s=!1,i.next(u),i.complete())}).catch(h),function(){s&&o.abort()}})}const LN=t=>{if(!t.ok)throw new Error("network response was not OK");if(t.status===204)return Promise.resolve();try{return t.json()}catch{throw Error("failed to parse response")}};class C6 extends Error{constructor(e,r,n){super(e,n),this.message=e,this.response=r}}var iw=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};class ON{get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}constructor(e,r){var n,i;this.uri=e,this._request$=new Va,this._response$=new Va,this._abort$=new Va,this.requestHandler=(n=r==null?void 0:r.requestHandler)!==null&&n!==void 0?n:new T$,this.responseHandler=(i=r==null?void 0:r.responseHandler)!==null&&i!==void 0?i:new IN,this._init()}_init(){}fetch$(e,r){return this._fetch$(e,r)}fetch(e,r){return ri(this.fetch$(e,r))}fetchAsync(e,r){return this.fetch(e,r)}json$(e,r){var n;const i=typeof(r==null?void 0:r.body)=="object"?JSON.stringify(r==null?void 0:r.body):r==null?void 0:r.body,o=(n=r==null?void 0:r.selector)!==null&&n!==void 0?n:LN,a=new Headers(r==null?void 0:r.headers);return a.append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},r),{body:i,selector:o,headers:a}))}json(e,r){return ri(this.json$(e,r))}jsonAsync(e,r){return this.json(e,r)}execute(e,r,n){return this[e](r,n)}abort(){this._abort$.next()}_fetch$(e,r){const n=r||{},{selector:i}=n,o=iw(n,["selector"]);return Eo(Object.assign(Object.assign({},o),{uri:this._resolveUrl(e)})).pipe(hr(s=>this._prepareRequest(s)),wp(s=>this._request$.next(s)),hr(s=>{var{uri:c,path:l}=s,d=iw(s,["uri","path"]);return VN(c,d)}),hr(s=>this._prepareResponse(s)),wp(s=>this._response$.next(s)),hr(s=>{if(i)try{return i(s)}catch(c){throw new C6("failed to execute response selector",s,{cause:c})}return Eo(s)}),xN(this._abort$))}_prepareRequest(e){return this.requestHandler.process(e)}_prepareResponse(e){return this.responseHandler.process(e)}_resolveUrl(e){const r=this.uri||window.location.origin;return new URL(e,r).href}}class NN extends ON{constructor(){super(...arguments),this.defaultScopes=[]}fetch$(e,r){const n=Object.assign(r||{},{scopes:this.defaultScopes.concat((r==null?void 0:r.scopes)||[])});return super._fetch$(e,n)}}var ow=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const _7={name:"http",configure:()=>new HN(NN),initialize:({config:t,hasModule:e,requireInstance:r})=>ow(void 0,void 0,void 0,function*(){const n=new DN(t);if(e("auth")){const i=yield r("auth");n.defaultHttpRequestHandler.set("MSAL",o=>ow(void 0,void 0,void 0,function*(){const{scopes:a=[]}=o;if(a.length){const s=yield i.acquireToken({scopes:a});if(s){const c=new Headers(o.headers);return c.set("Authorization",`Bearer ${s.accessToken}`),Object.assign(Object.assign({},o),{headers:c})}}}))}return n})},FN=t=>({module:_7,configure:t}),R$=(t,e)=>({module:_7,configure:r=>{r.configureClient(t,e)}}),Tm="default";class BN{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[Tm]}getClientConfig(e){return this._configs[e]}configureClient(e,r){return this._configs[e]=r,this}configureDefault(e){if(this._configs[Tm])throw Error("Default AuthClient already provided");this.configureClient(Tm,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
@@ -71,7 +71,7 @@ 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
73
  Error Description: `+c.message)),[2,null];case 4:return n||(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."),n=t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,n]}})})},t.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in uw?uw[this.canonicalAuthority]:null},t.prototype.isInKnownAuthorities=function(){var e=this,r=this.authorityOptions.knownAuthorities.filter(function(n){return pt.getDomainFromUrl(n).toLowerCase()===e.hostnameAndPort});return r.length>0},t.generateAuthority=function(e,r){var n;if(r&&r.azureCloudInstance!==du.None){var i=r.tenant?r.tenant:$.DEFAULT_COMMON_TENANT;n=r.azureCloudInstance+"/"+i+"/"}return n||e},t.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},t.getCloudDiscoveryMetadataFromNetworkResponse=function(e,r){for(var n=0;n<e.length;n++){var i=e[n];if(i.aliases.indexOf(r)>-1)return i}return null},t.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw me.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},t.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},t.isPublicCloudAuthority=function(e){return $.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},t.buildRegionalAuthorityString=function(e,r,n){var i=new pt(e);i.validateAsUri();var o=i.getUrlComponents(),a=r+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(a=r+"."+$.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=pt.constructAuthorityUriFromObject(Pt(Pt({},i.getUrlComponents()),{HostNameAndPort:a})).urlString;return n?s+"?"+n:s},t.replaceWithRegionalInformation=function(e,r){return e.authorization_endpoint=t.buildRegionalAuthorityString(e.authorization_endpoint,r),e.token_endpoint=t.buildRegionalAuthorityString(e.token_endpoint,r,$.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=t.buildRegionalAuthorityString(e.end_session_endpoint,r)),e},t}();/*! @azure/msal-common v9.1.1 2023-01-19 */var Tp=function(){function t(){}return t.createDiscoveredInstance=function(e,r,n,i,o,a){return Oe(this,void 0,void 0,function(){var s,c;return Ne(this,function(l){switch(l.label){case 0:s=t.createInstance(e,r,n,i,o,a),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(),me.createEndpointDiscoveryIncompleteError(c);case 4:return[2]}})})},t.createInstance=function(e,r,n,i,o,a){if(fe.isEmpty(e))throw Wt.createUrlEmptyError();return new Hp(e,r,n,i,o,a)},t}();/*! @azure/msal-common v9.1.1 2023-01-19 */var Rp=function(){function t(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return t.isServerTelemetryEntity=function(e,r){var n=e.indexOf(rn.CACHE_KEY)===0,i=!0;return r&&(i=r.hasOwnProperty("failedRequests")&&r.hasOwnProperty("errors")&&r.hasOwnProperty("cacheHits")),n&&i},t}();/*! @azure/msal-common v9.1.1 2023-01-19 */var fw=function(){function t(){}return t.isThrottlingEntity=function(e,r){var n=!1;e&&(n=e.indexOf(zh.THROTTLING_PREFIX)===0);var i=!0;return r&&(i=r.hasOwnProperty("throttleTime")),n&&i},t}();/*! @azure/msal-common v9.1.1 2023-01-19 */var dF={sendGetRequestAsync:function(){var t="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Ee.createUnexpectedError(t))},sendPostRequestAsync:function(){var t="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Ee.createUnexpectedError(t))}};/*! @azure/msal-common v9.1.1 2023-01-19 */var lf={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."}},pw=function(t){di(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.name="JoseHeaderError",Object.setPrototypeOf(i,e.prototype),i}return e.createMissingKidError=function(){return new e(lf.missingKidError.code,lf.missingKidError.desc)},e.createMissingAlgError=function(){return new e(lf.missingAlgError.code,lf.missingAlgError.desc)},e}(Ee);/*! @azure/msal-common v9.1.1 2023-01-19 */var hF=function(){function t(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return t.getShrHeaderString=function(e){if(!e.kid)throw pw.createMissingKidError();if(!e.alg)throw pw.createMissingAlgError();var r=new t({typ:e.typ||A6.Jwt,kid:e.kid,alg:e.alg});return JSON.stringify(r)},t}();/*! @azure/msal-common v9.1.1 2023-01-19 */var uF=function(){function t(e,r){this.cacheOutcome=Wc.NO_CACHE_HIT,this.cacheManager=r,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||$.EMPTY_STRING,this.wrapperVer=e.wrapperVer||$.EMPTY_STRING,this.telemetryCacheKey=rn.CACHE_KEY+ii.CACHE_KEY_SEPARATOR+e.clientId}return t.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+rn.VALUE_SEPARATOR+this.cacheOutcome,r=[this.wrapperSKU,this.wrapperVer].join(rn.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),i=[e,n].join(rn.VALUE_SEPARATOR);return[rn.SCHEMA_VERSION,i,r].join(rn.CATEGORY_SEPARATOR)},t.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),r=t.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*r).join(rn.VALUE_SEPARATOR),i=e.errors.slice(0,r).join(rn.VALUE_SEPARATOR),o=e.errors.length,a=r<o?rn.OVERFLOW_TRUE:rn.OVERFLOW_FALSE,s=[o,a].join(rn.VALUE_SEPARATOR);return[rn.SCHEMA_VERSION,e.cacheHits,n,i,s].join(rn.CATEGORY_SEPARATOR)},t.prototype.cacheFailedRequest=function(e){var r=this.getLastRequests();r.errors.length>=rn.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),fe.isEmpty(e.subError)?fe.isEmpty(e.errorCode)?e&&e.toString()?r.errors.push(e.toString()):r.errors.push(rn.UNKNOWN_ERROR):r.errors.push(e.errorCode):r.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)},t.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},t.prototype.getLastRequests=function(){var e=new Rp,r=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return r||e},t.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),r=t.maxErrorsToSend(e),n=e.errors.length;if(r===n)this.cacheManager.removeItem(this.telemetryCacheKey);else{var i=new Rp;i.failedRequests=e.failedRequests.slice(r*2),i.errors=e.errors.slice(r),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,i)}},t.maxErrorsToSend=function(e){var r,n=0,i=0,o=e.errors.length;for(r=0;r<o;r++){var a=e.failedRequests[2*r]||$.EMPTY_STRING,s=e.failedRequests[2*r+1]||$.EMPTY_STRING,c=e.errors[r]||$.EMPTY_STRING;if(i+=a.toString().length+s.toString().length+c.length+3,i<rn.MAX_LAST_HEADER_BYTES)n+=1;else break}return n},t.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||$.EMPTY_STRING),e.push(this.regionSource||$.EMPTY_STRING),e.push(this.regionOutcome||$.EMPTY_STRING),e.join(",")},t.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},t.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},t}();/*! @azure/msal-common v9.1.1 2023-01-19 */var F$=function(){function t(e,r,n,i,o,a){this.authority=r,this.libraryName=i,this.libraryVersion=o,this.applicationTelemetry=a,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.staticFieldsByCorrelationId=new Map,this.measurementsById=new Map,this.countersByCorrelationId=new Map}return t.prototype.startPerformanceMeasurement=function(e,r){return{}},t.prototype.startPerformanceMeasuremeant=function(e,r){return{}},t.prototype.startMeasurement=function(e,r){var n=this,i,o,a=r||this.generateId();r||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",a),this.logger.trace("PerformanceClient: Performance measurement started for "+e,a);var s,c=this.startPerformanceMeasuremeant(e,a);if(c.startMeasurement)c.startMeasurement(),s=c;else{var l=this.startPerformanceMeasurement(e,a);l.startMeasurement(),s=l}var d={eventId:this.generateId(),status:yl.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a};this.cacheEventByCorrelationId(d);var h={appName:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appName,appVersion:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appVersion};return this.addStaticFields(h,a),this.cacheMeasurement(d,s),{endMeasurement:function(u){var f=n.endMeasurement(Pt(Pt({},d),u));return f&&n.cacheEventByCorrelationId(f),f},flushMeasurement:function(){return n.flushMeasurements(d.name,d.correlationId)},discardMeasurement:function(){return n.discardMeasurements(d.correlationId)},addStaticFields:function(u){return n.addStaticFields(u,d.correlationId)},increment:function(u){return n.increment(u,d.correlationId)},measurement:s,event:d}},t.prototype.endMeasurement=function(e){var r=this.measurementsById.get(e.eventId);if(r){this.measurementsById.delete(e.eventId),r.endMeasurement();var n=r.flushMeasurement();if(n!==null){this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+n+" ms",e.correlationId);var i=Pt(Pt({durationMs:Math.round(n)},e),{status:yl.Completed});return i}else this.logger.trace("PerformanceClient: Performance measurement not taken",e.correlationId)}else this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId);return null},t.prototype.addStaticFields=function(e,r){var n=this.staticFieldsByCorrelationId.get(r);n?(this.logger.trace("PerformanceClient: Updating static fields"),this.staticFieldsByCorrelationId.set(r,Pt(Pt({},n),e))):(this.logger.trace("PerformanceClient: Adding static fields"),this.staticFieldsByCorrelationId.set(r,e))},t.prototype.increment=function(e,r){var n=this.countersByCorrelationId.get(r);if(!n){this.logger.trace("PerformanceClient: Setting counters"),this.countersByCorrelationId.set(r,Pt({},e));return}this.logger.trace("PerformanceClient: Updating counters");for(var i in e)n.hasOwnProperty(i)||(n[i]=0),n[i]+=e[i]},t.prototype.cacheEventByCorrelationId=function(e){var r=this.eventsByCorrelationId.get(e.correlationId);r?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),r.set(e.eventId,e)):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,new Map().set(e.eventId,e)))},t.prototype.cacheMeasurement=function(e,r){this.measurementsById.set(e.eventId,r)},t.prototype.flushMeasurements=function(e,r){var n=this;this.logger.trace("PerformanceClient: Performance measurements flushed for "+e,r);var i=this.eventsByCorrelationId.get(r),o=this.staticFieldsByCorrelationId.get(r),a=this.countersByCorrelationId.get(r);if(i){this.discardCache(r);var s=[];i.forEach(function(f){if(f.name!==e&&f.status!==yl.Completed){n.logger.trace("PerformanceClient: Incomplete submeasurement "+f.name+" found for "+e,r);var v=n.endMeasurement(f);v&&s.push(v)}s.push(f)});var c=s.sort(function(f,v){return f.startTimeMs-v.startTimeMs}),l=c.filter(function(f){return f.name===e&&f.status===yl.Completed});if(l.length>0){l.length>1&&this.logger.verbose("PerformanceClient: Multiple distinct top-level performance events found, using the first",r);var d=l[0];this.logger.verbose("PerformanceClient: Measurement found for "+e,r);var h=c.reduce(function(f,v){if(v.name!==e){n.logger.trace("PerformanceClient: Complete submeasurement found for "+v.name,r);var p=v.name+"DurationMs";f[p]?n.logger.verbose("PerformanceClient: Submeasurement for "+e+" already exists for "+v.name+", ignoring",r):f[p]=v.durationMs}return f},d),u=Pt(Pt(Pt({},h),o),a);this.emitEvents([u],h.correlationId)}else this.logger.verbose("PerformanceClient: No completed top-level measurements found for "+e,r)}else this.logger.verbose("PerformanceClient: No measurements found",r)},t.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},t.prototype.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)},t.prototype.addPerformanceCallback=function(e){var r=this.generateId();return this.callbacks.set(r,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+r),r},t.prototype.removePerformanceCallback=function(e){var r=this.callbacks.delete(e);return r?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),r},t.prototype.emitEvents=function(e,r){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",r),this.callbacks.forEach(function(i,o){n.logger.trace("PerformanceClient: Emitting event to callback "+o,r),i.apply(null,[e])})},t}();/*! @azure/msal-common v9.1.1 2023-01-19 */var vw=function(){function t(){}return t.prototype.startMeasurement=function(){},t.prototype.endMeasurement=function(){},t.prototype.flushMeasurement=function(){return null},t}(),fF=function(t){di(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new vw},e.prototype.startPerformanceMeasurement=function(){return new vw},e}(F$);/*! @azure/msal-browser v2.32.2 2023-01-10 */var se={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."}},ue=function(t){fn(e,t);function e(r,n){var i=t.call(this,r,n)||this;return Object.setPrototypeOf(i,e.prototype),i.name="BrowserAuthError",i}return e.createPkceNotGeneratedError=function(r){return new e(se.pkceNotGenerated.code,se.pkceNotGenerated.desc+" Detail:"+r)},e.createCryptoNotAvailableError=function(r){return new e(se.cryptoDoesNotExist.code,se.cryptoDoesNotExist.desc+" Detail:"+r)},e.createHttpMethodNotImplementedError=function(r){return new e(se.httpMethodNotImplementedError.code,se.httpMethodNotImplementedError.desc+" Given Method: "+r)},e.createEmptyNavigationUriError=function(){return new e(se.emptyNavigateUriError.code,se.emptyNavigateUriError.desc)},e.createEmptyHashError=function(r){return new e(se.hashEmptyError.code,se.hashEmptyError.desc+" Given Url: "+r)},e.createHashDoesNotContainStateError=function(){return new e(se.hashDoesNotContainStateError.code,se.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(se.hashDoesNotContainKnownPropertiesError.code,se.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(se.unableToParseStateError.code,se.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(se.stateInteractionTypeMismatchError.code,se.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(se.interactionInProgress.code,se.interactionInProgress.desc)},e.createPopupWindowError=function(r){var n=se.popupWindowError.desc;return n=fe.isEmpty(r)?n:n+" Details: "+r,new e(se.popupWindowError.code,n)},e.createEmptyWindowCreatedError=function(){return new e(se.emptyWindowError.code,se.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(se.userCancelledError.code,se.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(se.monitorPopupTimeoutError.code,se.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(se.monitorIframeTimeoutError.code,se.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(r){return new e(se.redirectInIframeError.code,se.redirectInIframeError.desc+" (window.parent !== window) => "+r)},e.createBlockReloadInHiddenIframeError=function(){return new e(se.blockTokenRequestsInHiddenIframeError.code,se.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(se.blockAcquireTokenInPopupsError.code,se.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(se.iframeClosedPrematurelyError.code,se.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(se.silentLogoutUnsupportedError.code,se.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(se.noAccountError.code,se.noAccountError.desc)},e.createSilentPromptValueError=function(r){return new e(se.silentPromptValueError.code,se.silentPromptValueError.desc+" Given value: "+r)},e.createUnableToParseTokenRequestCacheError=function(){return new e(se.unableToParseTokenRequestCacheError.code,se.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(se.noTokenRequestCacheError.code,se.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(se.authRequestNotSet.code,se.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(se.noCachedAuthorityError.code,se.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(se.invalidCacheType.code,""+se.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(se.notInBrowserEnvironment.code,se.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(se.databaseNotOpen.code,se.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(se.noNetworkConnectivity.code,se.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(r,n){return new e(se.postRequestFailed.code,se.postRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(r,n){return new e(se.getRequestFailed.code,se.getRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(r){return new e(se.failedToParseNetworkResponse.code,se.failedToParseNetworkResponse.desc+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToLoadTokenError=function(r){return new e(se.unableToLoadTokenError.code,se.unableToLoadTokenError.desc+" | "+r)},e.createSigningKeyNotFoundInStorageError=function(r){return new e(se.signingKeyNotFoundInStorage.code,se.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+r)},e.createAuthCodeRequiredError=function(){return new e(se.authCodeRequired.code,se.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(se.authCodeOrNativeAccountRequired.code,se.authCodeOrNativeAccountRequired.desc)},e.createDatabaseUnavailableError=function(){return new e(se.databaseUnavailable.code,se.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(se.unableToAcquireTokenFromNativePlatform.code,se.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(se.nativeHandshakeTimeout.code,se.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(se.nativeExtensionNotInstalled.code,se.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(se.nativeConnectionNotEstablished.code,se.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(se.nativeBrokerCalledBeforeInitialize.code,se.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(se.nativePromptNotSupported.code,se.nativePromptNotSupported.desc)},e}(Ee);/*! @azure/msal-browser v2.32.2 2023-01-10 */var fo={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"},Y2={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Pa;(function(t){t.HandshakeRequest="Handshake",t.HandshakeResponse="HandshakeResponse",t.GetToken="GetToken",t.Response="Response"})(Pa||(Pa={}));var Cn;(function(t){t.LocalStorage="localStorage",t.SessionStorage="sessionStorage",t.MemoryStorage="memoryStorage"})(Cn||(Cn={}));var jo;(function(t){t.GET="GET",t.POST="POST"})(jo||(jo={}));var ut;(function(t){t.AUTHORITY="authority",t.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",t.SESSION_STATE="session.state",t.REQUEST_STATE="request.state",t.NONCE_IDTOKEN="nonce.id_token",t.ORIGIN_URI="request.origin",t.RENEW_STATUS="token.renew.status",t.URL_HASH="urlHash",t.REQUEST_PARAMS="request.params",t.SCOPES="scopes",t.INTERACTION_STATUS_KEY="interaction.status",t.CCS_CREDENTIAL="ccs.credential",t.CORRELATION_ID="request.correlationId",t.NATIVE_REQUEST="request.native",t.REDIRECT_CONTEXT="request.redirect.context"})(ut||(ut={}));var _l;(function(t){t.WRAPPER_SKU="wrapper.sku",t.WRAPPER_VER="wrapper.version"})(_l||(_l={}));var Vt;(function(t){t[t.acquireTokenRedirect=861]="acquireTokenRedirect",t[t.acquireTokenPopup=862]="acquireTokenPopup",t[t.ssoSilent=863]="ssoSilent",t[t.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",t[t.handleRedirectPromise=865]="handleRedirectPromise",t[t.acquireTokenByCode=866]="acquireTokenByCode",t[t.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",t[t.logout=961]="logout",t[t.logoutPopup=962]="logoutPopup"})(Vt||(Vt={}));var xe;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(xe||(xe={}));var mw;(function(t){t.Startup="startup",t.Login="login",t.Logout="logout",t.AcquireToken="acquireToken",t.SsoSilent="ssoSilent",t.HandleRedirect="handleRedirect",t.None="none"})(mw||(mw={}));var gw={scopes:e0},td="jwk",yw;(function(t){t.React="@azure/msal-react",t.Angular="@azure/msal-angular"})(yw||(yw={}));var I6="msal.db",pF=1,vF=I6+".keys",Zn;(function(t){t[t.Default=0]="Default",t[t.AccessToken=1]="AccessToken",t[t.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",t[t.RefreshToken=3]="RefreshToken",t[t.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",t[t.Skip=5]="Skip"})(Zn||(Zn={}));/*! @azure/msal-browser v2.32.2 2023-01-10 */var Qn={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."}},Dp=function(t){fn(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.name="BrowserConfigurationAuthError",Object.setPrototypeOf(i,e.prototype),i}return e.createRedirectUriEmptyError=function(){return new e(Qn.redirectUriNotSet.code,Qn.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Qn.postLogoutUriNotSet.code,Qn.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(r){return new e(Qn.storageNotSupportedError.code,Qn.storageNotSupportedError.desc+" Given Location: "+r)},e.createRedirectCallbacksNotSetError=function(){return new e(Qn.noRedirectCallbacksSet.code,Qn.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(Qn.stubPcaInstanceCalled.code,Qn.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(Qn.inMemRedirectUnavailable.code,Qn.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(Qn.entropyNotProvided.code,Qn.entropyNotProvided.desc)},e}(Ee);/*! @azure/msal-browser v2.32.2 2023-01-10 */var _w=function(){function t(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return t.prototype.validateWindowStorage=function(e){if(e!==Cn.LocalStorage&&e!==Cn.SessionStorage)throw Dp.createStorageNotSupportedError(e);var r=!!window[e];if(!r)throw Dp.createStorageNotSupportedError(e)},t.prototype.getItem=function(e){return this.windowStorage.getItem(e)},t.prototype.setItem=function(e,r){this.windowStorage.setItem(e,r)},t.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},t.prototype.getKeys=function(){return Object.keys(this.windowStorage)},t.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var H6=function(){function t(){this.cache=new Map}return t.prototype.getItem=function(e){return this.cache.get(e)||null},t.prototype.setItem=function(e,r){this.cache.set(e,r)},t.prototype.removeItem=function(e){this.cache.delete(e)},t.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(r,n){e.push(n)}),e},t.prototype.containsKey=function(e){return this.cache.has(e)},t.prototype.clear=function(){this.cache.clear()},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var B$=function(){function t(){}return t.extractBrowserRequestState=function(e,r){if(fe.isEmpty(r))return null;try{var n=La.parseRequestState(e,r);return n.libraryState.meta}catch(i){throw me.createInvalidStateError(r,i)}},t.parseServerResponseFromHash=function(e){if(!e)return{};var r=new pt(e);return pt.getDeserializedHash(r.getHash())},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var T6=function(t){fn(e,t);function e(r,n,i,o){var a=t.call(this,r,i)||this;return a.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,a.cacheConfig=n,a.logger=o,a.internalStorage=new H6,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.cacheLocation),a.migrateCacheEntries(),a}return e.prototype.setupBrowserStorage=function(r){switch(r){case Cn.LocalStorage:case Cn.SessionStorage:try{return new _w(r)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=Cn.MemoryStorage,new H6},e.prototype.setupTemporaryCacheStorage=function(r){switch(r){case Cn.LocalStorage:case Cn.SessionStorage:try{return new _w(Cn.SessionStorage)}catch(n){return this.logger.verbose(n),this.internalStorage}case Cn.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var r=this,n=$.CACHE_PREFIX+"."+Pr.ID_TOKEN,i=$.CACHE_PREFIX+"."+Pr.CLIENT_INFO,o=$.CACHE_PREFIX+"."+Pr.ERROR,a=$.CACHE_PREFIX+"."+Pr.ERROR_DESC,s=this.browserStorage.getItem(n),c=this.browserStorage.getItem(i),l=this.browserStorage.getItem(o),d=this.browserStorage.getItem(a),h=[s,c,l,d],u=[Pr.ID_TOKEN,Pr.CLIENT_INFO,Pr.ERROR,Pr.ERROR_DESC];u.forEach(function(f,v){return r.migrateCacheEntry(f,h[v])})},e.prototype.migrateCacheEntry=function(r,n){n&&this.setTemporaryCache(r,n,!0)},e.prototype.validateAndParseJson=function(r){try{var n=JSON.parse(r);return n&&typeof n=="object"?n:null}catch{return null}},e.prototype.getItem=function(r){return this.browserStorage.getItem(r)},e.prototype.setItem=function(r,n){this.browserStorage.setItem(r,n)},e.prototype.getAccount=function(r){var n=this.getItem(r);if(!n)return null;var i=this.validateAndParseJson(n);return!i||!dn.isAccountEntity(i)?null:so.toObject(new dn,i)},e.prototype.setAccount=function(r){this.logger.trace("BrowserCacheManager.setAccount called");var n=r.generateAccountKey();this.setItem(n,JSON.stringify(r))},e.prototype.getIdTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var i=this.validateAndParseJson(n);return!i||!uu.isIdTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),so.toObject(new uu,i))},e.prototype.setIdTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r))},e.prototype.getAccessTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var i=this.validateAndParseJson(n);return!i||!fu.isAccessTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),so.toObject(new fu,i))},e.prototype.setAccessTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r))},e.prototype.getRefreshTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var i=this.validateAndParseJson(n);return!i||!$p.isRefreshTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),so.toObject(new $p,i))},e.prototype.setRefreshTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r))},e.prototype.getAppMetadata=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var i=this.validateAndParseJson(n);return!i||!$6.isAppMetadataEntity(r,i)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),so.toObject(new $6,i))},e.prototype.setAppMetadata=function(r){this.logger.trace("BrowserCacheManager.setAppMetadata called");var n=r.generateAppMetadataKey();this.setItem(n,JSON.stringify(r))},e.prototype.getServerTelemetry=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var i=this.validateAndParseJson(n);return!i||!Rp.isServerTelemetryEntity(r,i)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),so.toObject(new Rp,i))},e.prototype.setServerTelemetry=function(r,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(r,JSON.stringify(n))},e.prototype.getAuthorityMetadata=function(r){var n=this.internalStorage.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var i=this.validateAndParseJson(n);return i&&P6.isAuthorityMetadataEntity(r,i)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),so.toObject(new P6,i)):null},e.prototype.getAuthorityMetadataKeys=function(){var r=this,n=this.internalStorage.getKeys();return n.filter(function(i){return r.isAuthorityMetadata(i)})},e.prototype.setWrapperMetadata=function(r,n){this.internalStorage.setItem(_l.WRAPPER_SKU,r),this.internalStorage.setItem(_l.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var r=this.internalStorage.getItem(_l.WRAPPER_SKU)||$.EMPTY_STRING,n=this.internalStorage.getItem(_l.WRAPPER_VER)||$.EMPTY_STRING;return[r,n]},e.prototype.setAuthorityMetadata=function(r,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(r,JSON.stringify(n))},e.prototype.getActiveAccount=function(){var r=this.generateCacheKey(Pr.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(r);if(!n){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var i=this.generateCacheKey(Pr.ACTIVE_ACCOUNT),o=this.getItem(i);if(!o)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:o})[0]||null;return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(n);return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(r){var n=this.generateCacheKey(Pr.ACTIVE_ACCOUNT_FILTERS),i=this.generateCacheKey(Pr.ACTIVE_ACCOUNT);if(r){this.logger.verbose("setActiveAccount: Active account set");var o={homeAccountId:r.homeAccountId,localAccountId:r.localAccountId};this.browserStorage.setItem(n,JSON.stringify(o)),this.browserStorage.setItem(i,r.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(n),this.browserStorage.removeItem(i)},e.prototype.getAccountInfoByFilter=function(r){var n=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+n.length+" accounts found"),n.filter(function(i){return!(r.username&&r.username.toLowerCase()!==i.username.toLowerCase()||r.homeAccountId&&r.homeAccountId!==i.homeAccountId||r.localAccountId&&r.localAccountId!==i.localAccountId||r.tenantId&&r.tenantId!==i.tenantId||r.environment&&r.environment!==i.environment)})},e.prototype.getAccountInfoByHints=function(r,n){var i=this.getAllAccounts().filter(function(o){if(n){var a=o.idTokenClaims&&o.idTokenClaims.sid;return n===a}return r?r===o.username:!1});if(i.length===1)return i[0];if(i.length>1)throw me.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var i=this.validateAndParseJson(n);return!i||!fw.isThrottlingEntity(r,i)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),so.toObject(new fw,i))},e.prototype.setThrottlingCache=function(r,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(r,JSON.stringify(n))},e.prototype.getTemporaryCache=function(r,n){var i=n?this.generateCacheKey(r):r;if(this.cacheConfig.storeAuthStateInCookie){var o=this.getItemCookie(i);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}var a=this.temporaryCacheStorage.getItem(i);if(!a){if(this.cacheConfig.cacheLocation===Cn.LocalStorage){var s=this.browserStorage.getItem(i);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),s}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),a},e.prototype.setTemporaryCache=function(r,n,i){var o=i?this.generateCacheKey(r):r;this.temporaryCacheStorage.setItem(o,n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(o,n))},e.prototype.removeItem=function(r){return this.browserStorage.removeItem(r),this.temporaryCacheStorage.removeItem(r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(r)),!0},e.prototype.containsKey=function(r){return this.browserStorage.containsKey(r)||this.temporaryCacheStorage.containsKey(r)},e.prototype.getKeys=function(){return b7(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return te(this,void 0,void 0,function(){var r=this;return re(this,function(n){switch(n.label){case 0:return[4,this.removeAllAccounts()];case 1:return n.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(i){(r.browserStorage.containsKey(i)||r.temporaryCacheStorage.containsKey(i))&&(i.indexOf($.CACHE_PREFIX)!==-1||i.indexOf(r.clientId)!==-1)&&r.removeItem(i)}),this.internalStorage.clear(),[2]}})})},e.prototype.setItemCookie=function(r,n,i){var o=encodeURIComponent(r)+"="+encodeURIComponent(n)+";path=/;SameSite=Lax;";if(i){var a=this.getCookieExpirationTime(i);o+="expires="+a+";"}this.cacheConfig.secureCookies&&(o+="Secure;"),document.cookie=o},e.prototype.getItemCookie=function(r){for(var n=encodeURIComponent(r)+"=",i=document.cookie.split(";"),o=0;o<i.length;o++){for(var a=i[o];a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(n)===0)return decodeURIComponent(a.substring(n.length,a.length))}return $.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var r=this,n=$.CACHE_PREFIX+"."+this.clientId,i=document.cookie.split(";");i.forEach(function(o){for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(n)===0){var a=o.split("=")[0];r.clearItemCookie(a)}})},e.prototype.clearItemCookie=function(r){this.setItemCookie(r,$.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(r){var n=new Date,i=new Date(n.getTime()+r*this.COOKIE_LIFE_MULTIPLIER);return i.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(r){var n=this.validateAndParseJson(r);return n?JSON.stringify(r):fe.startsWith(r,$.CACHE_PREFIX)||fe.startsWith(r,Pr.ADAL_ID_TOKEN)?r:$.CACHE_PREFIX+"."+this.clientId+"."+r},e.prototype.generateAuthorityKey=function(r){var n=La.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ut.AUTHORITY+"."+n)},e.prototype.generateNonceKey=function(r){var n=La.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ut.NONCE_IDTOKEN+"."+n)},e.prototype.generateStateKey=function(r){var n=La.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ut.REQUEST_STATE+"."+n)},e.prototype.getCachedAuthority=function(r){var n=this.generateStateKey(r),i=this.getTemporaryCache(n);if(!i)return null;var o=this.generateAuthorityKey(i);return this.getTemporaryCache(o)},e.prototype.updateCacheEntries=function(r,n,i,o,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(r);this.setTemporaryCache(s,r,!1);var c=this.generateNonceKey(r);this.setTemporaryCache(c,n,!1);var l=this.generateAuthorityKey(r);if(this.setTemporaryCache(l,i,!1),a){var d={credential:a.homeAccountId,type:yi.HOME_ACCOUNT_ID};this.setTemporaryCache(ut.CCS_CREDENTIAL,JSON.stringify(d),!0)}else if(!fe.isEmpty(o)){var d={credential:o,type:yi.UPN};this.setTemporaryCache(ut.CCS_CREDENTIAL,JSON.stringify(d),!0)}},e.prototype.resetRequestCache=function(r){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),fe.isEmpty(r)||this.getKeys().forEach(function(i){i.indexOf(r)!==-1&&n.removeItem(i)}),r&&(this.removeItem(this.generateStateKey(r)),this.removeItem(this.generateNonceKey(r)),this.removeItem(this.generateAuthorityKey(r))),this.removeItem(this.generateCacheKey(ut.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(ut.ORIGIN_URI)),this.removeItem(this.generateCacheKey(ut.URL_HASH)),this.removeItem(this.generateCacheKey(ut.CORRELATION_ID)),this.removeItem(this.generateCacheKey(ut.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(ut.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(r){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),r){var n=this.generateStateKey(r),i=this.temporaryCacheStorage.getItem(n);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+i),this.resetRequestCache(i||$.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(r){var n=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(i){if(i.indexOf(ut.REQUEST_STATE)!==-1){var o=n.temporaryCacheStorage.getItem(i);if(o){var a=B$.extractBrowserRequestState(n.cryptoImpl,o);a&&a.interactionType===r&&(n.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+o),n.resetRequestCache(o))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(r,n){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var i=n.base64Encode(JSON.stringify(r));this.setTemporaryCache(ut.REQUEST_PARAMS,i,!0)},e.prototype.getCachedRequest=function(r,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var i=this.getTemporaryCache(ut.REQUEST_PARAMS,!0);if(!i)throw ue.createNoTokenRequestCacheError();var o=this.validateAndParseJson(n.base64Decode(i));if(!o)throw ue.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(ut.REQUEST_PARAMS)),fe.isEmpty(o.authority)){var a=this.generateAuthorityKey(r),s=this.getTemporaryCache(a);if(!s)throw ue.createNoCachedAuthorityError();o.authority=s}return o},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var r=this.getTemporaryCache(ut.NATIVE_REQUEST,!0);if(!r)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var n=this.validateAndParseJson(r);return n||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(r){var n=this.getInteractionInProgress();return r?n===this.clientId:!!n},e.prototype.getInteractionInProgress=function(){var r=$.CACHE_PREFIX+"."+ut.INTERACTION_STATUS_KEY;return this.getTemporaryCache(r,!1)},e.prototype.setInteractionInProgress=function(r){var n=$.CACHE_PREFIX+"."+ut.INTERACTION_STATUS_KEY;if(r){if(this.getInteractionInProgress())throw ue.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else!r&&this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},e.prototype.getLegacyLoginHint=function(){var r=this.getTemporaryCache(Pr.ADAL_ID_TOKEN);r&&(this.browserStorage.removeItem(Pr.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache(Pr.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey(Pr.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var i=n||r;if(i){var o=new la(i,this.cryptoImpl);if(o.claims&&o.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),o.claims.preferred_username;if(o.claims&&o.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),o.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(r,n){var i=n.generateCredentialKey();if(r!==i){var o=this.getItem(r);if(o)return this.removeItem(r),this.setItem(i,o),this.logger.verbose("Updated an outdated "+n.credentialType+" cache key"),i;this.logger.error("Attempted to update an outdated "+n.credentialType+" cache key but no item matching the outdated key was found in storage")}return r},e.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(ut.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(r){this.setTemporaryCache(ut.REDIRECT_CONTEXT,r,!0)},e}(so),mF=function(t,e){var r={cacheLocation:Cn.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};return new T6(t,r,Sp,e)};/*! @azure/msal-browser v2.32.2 2023-01-10 */var Rm="@azure/msal-browser",Ch="2.32.2";/*! @azure/msal-browser v2.32.2 2023-01-10 */var gF=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return te(this,void 0,void 0,function(){var n,i,o;return re(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:jo.GET,headers:this.getFetchHeaders(r)})];case 1:return n=a.sent(),[3,3];case 2:throw i=a.sent(),window.navigator.onLine?ue.createGetRequestFailedError(i,e):ue.createNoNetworkConnectivityError();case 3:return a.trys.push([3,5,,6]),o={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(o.body=a.sent(),o.status=n.status,o)];case 5:throw a.sent(),ue.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},t.prototype.sendPostRequestAsync=function(e,r){return te(this,void 0,void 0,function(){var n,i,o,a;return re(this,function(s){switch(s.label){case 0:n=r&&r.body||$.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:jo.POST,headers:this.getFetchHeaders(r),body:n})];case 2:return i=s.sent(),[3,4];case 3:throw o=s.sent(),window.navigator.onLine?ue.createPostRequestFailedError(o,e):ue.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),a={headers:this.getHeaderDict(i.headers)},[4,i.json()];case 5:return[2,(a.body=s.sent(),a.status=i.status,a)];case 6:throw s.sent(),ue.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},t.prototype.getFetchHeaders=function(e){var r=new Headers;if(!(e&&e.headers))return r;var n=e.headers;return Object.keys(n).forEach(function(i){r.append(i,n[i])}),r},t.prototype.getHeaderDict=function(e){var r={};return e.forEach(function(n,i){r[i]=n}),r},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var yF=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return te(this,void 0,void 0,function(){return re(this,function(n){return[2,this.sendRequestAsync(e,jo.GET,r)]})})},t.prototype.sendPostRequestAsync=function(e,r){return te(this,void 0,void 0,function(){return re(this,function(n){return[2,this.sendRequestAsync(e,jo.POST,r)]})})},t.prototype.sendRequestAsync=function(e,r,n){var i=this;return new Promise(function(o,a){var s=new XMLHttpRequest;if(s.open(r,e,!0),i.setXhrHeaders(s,n),s.onload=function(){(s.status<200||s.status>=300)&&(r===jo.POST?a(ue.createPostRequestFailedError("Failed with status "+s.status,e)):a(ue.createGetRequestFailedError("Failed with status "+s.status,e)));try{var c=JSON.parse(s.responseText),l={headers:i.getHeaderDict(s),body:c,status:s.status};o(l)}catch{a(ue.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?r===jo.POST?a(ue.createPostRequestFailedError("Failed with status "+s.status,e)):a(ue.createGetRequestFailedError("Failed with status "+s.status,e)):a(ue.createNoNetworkConnectivityError())},r===jo.POST&&n&&n.body)s.send(n.body);else if(r===jo.GET)s.send();else throw ue.createHttpMethodNotImplementedError(r)})},t.prototype.setXhrHeaders=function(e,r){if(r&&r.headers){var n=r.headers;Object.keys(n).forEach(function(i){e.setRequestHeader(i,n[i])})}},t.prototype.getHeaderDict=function(e){var r=e.getAllResponseHeaders(),n=r.trim().split(/[\r\n]+/),i={};return n.forEach(function(o){var a=o.split(": "),s=a.shift(),c=a.join(": ");s&&c&&(i[s]=c)}),i},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var ur=function(){function t(){}return t.clearHash=function(e){e.location.hash=$.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,$.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},t.replaceHash=function(e){var r=e.split("#");r.shift(),window.location.hash=r.length>0?r.join("#"):$.EMPTY_STRING},t.isInIframe=function(){return window.parent!==window},t.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(fo.POPUP_NAME_PREFIX+".")===0},t.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},t.getHomepage=function(){var e=new pt(window.location.href),r=e.getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+"/"},t.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new gF:new yF},t.blockReloadInHiddenIframes=function(){var e=pt.hashContainsKnownProperties(window.location.hash);if(e&&t.isInIframe())throw ue.createBlockReloadInHiddenIframeError()},t.blockRedirectInIframe=function(e,r){var n=t.isInIframe();if(e===xe.Redirect&&n&&!r)throw ue.createRedirectInIframeError(n)},t.blockAcquireTokenInPopups=function(){if(t.isInPopup())throw ue.createBlockAcquireTokenInPopupsError()},t.blockNonBrowserEnvironment=function(e){if(!e)throw ue.createNonBrowserEnvironmentError()},t.blockNativeBrokerCalledBeforeInitialized=function(e,r){if(e&&!r)throw ue.createNativeBrokerCalledBeforeInitialize()},t.detectIEOrEdge=function(){var e=window.navigator.userAgent,r=e.indexOf("MSIE "),n=e.indexOf("Trident/"),i=e.indexOf("Edge/"),o=r>0||n>0,a=i>0;return o||a},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var U$=function(){function t(e,r,n,i,o,a,s,c,l){this.config=e,this.browserStorage=r,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=a,this.nativeMessageHandler=c,this.correlationId=l||this.browserCrypto.createNewGuid(),this.logger=i.clone(fo.MSAL_SKU,Ch,this.correlationId),this.performanceClient=s}return t.prototype.clearCacheOnLogout=function(e){return te(this,void 0,void 0,function(){return re(this,function(r){switch(r.label){case 0:if(!e)return[3,5];dn.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(dn.generateAccountCacheKey(e))];case 2:return r.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return r.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return r.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return r.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return r.sent(),[3,9];case 8:return r.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},t.prototype.initializeBaseRequest=function(e){return te(this,void 0,void 0,function(){var r,n,i,o;return re(this,function(a){switch(a.label){case 0:if(this.logger.verbose("Initializing BaseAuthRequest"),r=e.authority||this.config.auth.authority,n=b7(e&&e.scopes||[]),i=ze(ze({},e),{correlationId:this.correlationId,authority:r,scopes:n}),!i.authenticationScheme)i.authenticationScheme=Et.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(i.authenticationScheme===Et.SSH){if(!e.sshJwk)throw Wt.createMissingSshJwkError();if(!e.sshKid)throw Wt.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+i.authenticationScheme+'" as configured in Auth request')}return e.claims&&!fe.isEmpty(e.claims)?(o=i,[4,this.browserCrypto.hashString(e.claims)]):[3,2];case 1:o.requestedClaimsHash=a.sent(),a.label=2;case 2:return[2,i]}})})},t.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var r=e||this.config.auth.redirectUri||ur.getCurrentUri();return pt.getAbsoluteUrl(r,ur.getCurrentUri())},t.prototype.initializeServerTelemetryManager=function(e,r){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:r||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new uF(n,this.browserStorage)},t.prototype.getDiscoveredAuthority=function(e){return te(this,void 0,void 0,function(){var r;return re(this,function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),r={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,Tp.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,r,this.logger)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,Tp.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,r,this.logger)];case 3:return[2,n.sent()]}})})},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var qd=function(t){fn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(r){return te(this,void 0,void 0,function(){var n,i;return re(this,function(o){switch(o.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",r.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return n=o.sent(),i=ze(ze({},r),{redirectUri:r.redirectUri,code:$.EMPTY_STRING,codeVerifier:n.verifier}),r.codeChallenge=n.challenge,r.codeChallengeMethod=$.S256_CODE_CHALLENGE_METHOD,[2,i]}})})},e.prototype.initializeLogoutRequest=function(r){this.logger.verbose("initializeLogoutRequest called",r==null?void 0:r.correlationId);var n=ze({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},r);if(r)if(r.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(r.account){var i=this.getLogoutHintFromIdTokenClaims(r.account);i&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),n.logoutHint=i)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!r||r.postLogoutRedirectUri!==null?r&&r.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",n.correlationId),n.postLogoutRedirectUri=pt.getAbsoluteUrl(r.postLogoutRedirectUri,ur.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",n.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",n.correlationId),n.postLogoutRedirectUri=pt.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,ur.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=pt.getAbsoluteUrl(ur.getCurrentUri(),ur.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId),n},e.prototype.getLogoutHintFromIdTokenClaims=function(r){var n=r.idTokenClaims;if(n){if(n.login_hint)return n.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},e.prototype.createAuthCodeClient=function(r,n,i){return te(this,void 0,void 0,function(){var o;return re(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,i)];case 1:return o=a.sent(),[2,new L$(o)]}})})},e.prototype.getClientConfiguration=function(r,n,i){return te(this,void 0,void 0,function(){var o,a;return re(this,function(s){switch(s.label){case 0:return this.logger.verbose("getClientConfiguration called",this.correlationId),[4,this.getDiscoveredAuthority(n,i)];case 1:return o=s.sent(),a=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:o,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:r,libraryInfo:{sku:fo.MSAL_SKU,version:Ch,cpu:$.EMPTY_STRING,os:$.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(r,n,i){if(this.logger.verbose("validateAndExtractStateFromHash called",i),!r.state)throw ue.createHashDoesNotContainStateError();var o=B$.extractBrowserRequestState(this.browserCrypto,r.state);if(!o)throw ue.createUnableToParseStateError();if(o.interactionType!==n)throw ue.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",i),r.state},e.prototype.getDiscoveredAuthority=function(r,n){var i;return te(this,void 0,void 0,function(){var o,a,s,c;return re(this,function(l){switch(l.label){case 0:return this.logger.verbose("getDiscoveredAuthority called",this.correlationId),o=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(Nr.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=r||this.config.auth.authority,c=Hp.generateAuthority(s,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),[4,Tp.createDiscoveredInstance(c,this.config.system.networkClient,this.browserStorage,a,this.logger).then(function(d){return o.endMeasurement({success:!0}),d}).catch(function(d){throw o.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d})];case 1:return[2,l.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(r,n){return te(this,void 0,void 0,function(){var i,o,a,s,c,l,d;return re(this,function(h){switch(h.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),i=this.getRedirectUri(r.redirectUri),o={interactionType:n},a=La.setRequestState(this.browserCrypto,r&&r.state||$.EMPTY_STRING,o),c=[{}],[4,this.initializeBaseRequest(r)];case 1:return s=ze.apply(void 0,[ze.apply(void 0,c.concat([h.sent()])),{redirectUri:i,state:a,nonce:r.nonce||this.browserCrypto.createNewGuid(),responseMode:zp.FRAGMENT}]),l=r.account||this.browserStorage.getActiveAccount(),l&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+l.homeAccountId,this.correlationId),s.account=l),fe.isEmpty(s.loginHint)&&!l&&(d=this.browserStorage.getLegacyLoginHint(),d&&(s.loginHint=d)),[2,s]}})})},e}(U$);/*! @azure/msal-browser v2.32.2 2023-01-10 */var z7=function(){function t(e,r,n,i){this.authModule=e,this.browserStorage=r,this.authCodeRequest=n,this.logger=i}return t.prototype.handleCodeResponseFromHash=function(e,r,n,i){return te(this,void 0,void 0,function(){var o,a,s;return re(this,function(c){if(this.logger.verbose("InteractionHandler.handleCodeResponse called"),fe.isEmpty(e))throw ue.createEmptyHashError(e);if(o=this.browserStorage.generateStateKey(r),a=this.browserStorage.getTemporaryCache(o),!a)throw me.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(l){throw l instanceof l1&&l.subError===se.userCancelledError.code?ue.createUserCancelledError():l}return[2,this.handleCodeResponseFromServer(s,r,n,i)]})})},t.prototype.handleCodeResponseFromServer=function(e,r,n,i,o){return o===void 0&&(o=!0),te(this,void 0,void 0,function(){var a,s,c,l,d,h;return re(this,function(u){switch(u.label){case 0:if(this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(r),s=this.browserStorage.getTemporaryCache(a),!s)throw me.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),l=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,i)]:[3,2];case 1:u.sent(),u.label=2;case 2:return o&&(e.nonce=l||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return h=u.sent(),this.browserStorage.cleanRequestByState(r),[2,h]}})})},t.prototype.updateTokenEndpointAuthority=function(e,r,n){return te(this,void 0,void 0,function(){var i,o;return re(this,function(a){switch(a.label){case 0:return i="https://"+e+"/"+r.tenant+"/",[4,Tp.createDiscoveredInstance(i,n,this.browserStorage,r.options,this.logger)];case 1:return o=a.sent(),this.authModule.updateAuthority(o),[2]}})})},t.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(ut.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var bw=function(t){fn(e,t);function e(r,n,i,o,a){var s=t.call(this,r,n,i,o)||this;return s.browserCrypto=a,s}return e.prototype.initiateAuthRequest=function(r,n){return te(this,void 0,void 0,function(){var i,o;return re(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),fe.isEmpty(r)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(ut.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ut.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+r),i={apiId:Vt.acquireTokenRedirect,timeout:n.redirectTimeout,noHistory:!1},typeof n.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),o=n.onRedirectNavigate(r),o===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,n.navigationClient.navigateExternal(r,i)])));case 1:return a.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,n.navigationClient.navigateExternal(r,i)];case 5:return a.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),ue.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(r,n,i,o){return te(this,void 0,void 0,function(){var a,s,c,l,d,h,u;return re(this,function(f){switch(f.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),fe.isEmpty(r))throw ue.createEmptyHashError(r);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw me.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(r,s)}catch(v){throw v instanceof l1&&v.subError===se.userCancelledError.code?ue.createUserCancelledError():v}return l=this.browserStorage.generateNonceKey(s),d=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=c.code,c.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(c.cloud_instance_host_name,i,o)]:[3,2];case 1:f.sent(),f.label=2;case 2:return c.nonce=d||void 0,c.state=s,c.client_info?this.authCodeRequest.clientInfo=c.client_info:(h=this.checkCcsCredentials(),h&&(this.authCodeRequest.ccsCredential=h)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return u=f.sent(),this.browserStorage.cleanRequestByState(n),[2,u]}})})},e}(z7);/*! @azure/msal-browser v2.32.2 2023-01-10 */var Ve;(function(t){t.INITIALIZE_START="msal:initializeStart",t.INITIALIZE_END="msal:initializeEnd",t.ACCOUNT_ADDED="msal:accountAdded",t.ACCOUNT_REMOVED="msal:accountRemoved",t.LOGIN_START="msal:loginStart",t.LOGIN_SUCCESS="msal:loginSuccess",t.LOGIN_FAILURE="msal:loginFailure",t.ACQUIRE_TOKEN_START="msal:acquireTokenStart",t.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",t.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",t.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",t.SSO_SILENT_START="msal:ssoSilentStart",t.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",t.SSO_SILENT_FAILURE="msal:ssoSilentFailure",t.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",t.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",t.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",t.HANDLE_REDIRECT_START="msal:handleRedirectStart",t.HANDLE_REDIRECT_END="msal:handleRedirectEnd",t.POPUP_OPENED="msal:popupOpened",t.LOGOUT_START="msal:logoutStart",t.LOGOUT_SUCCESS="msal:logoutSuccess",t.LOGOUT_FAILURE="msal:logoutFailure",t.LOGOUT_END="msal:logoutEnd"})(Ve||(Ve={}));/*! @azure/msal-browser v2.32.2 2023-01-10 */var ys;(function(t){t.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",t.USER_CANCEL="USER_CANCEL",t.NO_NETWORK="NO_NETWORK",t.TRANSIENT_ERROR="TRANSIENT_ERROR",t.PERSISTENT_ERROR="PERSISTENT_ERROR",t.DISABLED="DISABLED",t.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(ys||(ys={}));var _2={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"}},Yo=function(t){fn(e,t);function e(r,n,i){var o=t.call(this,r,n)||this;return Object.setPrototypeOf(o,e.prototype),o.name="NativeAuthError",o.ext=i,o}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===ys.PERSISTENT_ERROR||this.ext.status===ys.DISABLED))return!0;switch(this.errorCode){case _2.extensionError.code:return!0;default:return!1}},e.createError=function(r,n,i){if(i&&i.status)switch(i.status){case ys.ACCOUNT_UNAVAILABLE:return mo.createNativeAccountUnavailableError();case ys.USER_INTERACTION_REQUIRED:return new mo(r,n);case ys.USER_CANCEL:return ue.createUserCancelledError();case ys.NO_NETWORK:return ue.createNoNetworkConnectivityError()}return new e(r,n,i)},e.createUserSwitchError=function(){return new e(_2.userSwitch.code,_2.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(_2.tokensNotFoundInCache.code,_2.tokensNotFoundInCache.desc)},e}(Ee);/*! @azure/msal-browser v2.32.2 2023-01-10 */var j$=function(t){fn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return te(this,void 0,void 0,function(){var n,i,o,a,s;return re(this,function(c){switch(c.label){case 0:return n=this.performanceClient.startMeasurement(Nr.SilentCacheClientAcquireToken,r.correlationId),i=this.initializeServerTelemetryManager(Vt.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(i,r.authority,r.azureCloudOptions)];case 1:o=c.sent(),this.logger.verbose("Silent auth client created"),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,o.acquireCachedToken(r)];case 3:return a=c.sent(),n.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=c.sent(),s instanceof ue&&s.errorCode===se.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n.endMeasurement({errorCode:s instanceof Ee&&s.errorCode||void 0,subErrorCode:s instanceof Ee&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(ue.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(r,n,i){return te(this,void 0,void 0,function(){var o;return re(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,i)];case 1:return o=a.sent(),[2,new oF(o,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(r,n){return te(this,void 0,void 0,function(){var i;return re(this,function(o){switch(o.label){case 0:return i=[ze({},r)],[4,this.initializeBaseRequest(r)];case 1:return[2,ze.apply(void 0,[ze.apply(void 0,i.concat([o.sent()])),{account:n,forceRefresh:r.forceRefresh||!1}])]}})})},e}(qd);/*! @azure/msal-browser v2.32.2 2023-01-10 */var Hl=function(t){fn(e,t);function e(r,n,i,o,a,s,c,l,d,h,u,f){var v=t.call(this,r,n,i,o,a,s,l,d,f)||this;return v.apiId=c,v.accountId=h,v.nativeMessageHandler=d,v.nativeStorageManager=u,v.silentCacheClient=new j$(r,v.nativeStorageManager,i,o,a,s,l,d,f),v}return e.prototype.acquireToken=function(r){return te(this,void 0,void 0,function(){var n,i,o,a,s,c,l;return re(this,function(d){switch(d.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(Nr.NativeInteractionClientAcquireToken,r.correlationId),i=Ki.nowSeconds(),[4,this.initializeNativeRequest(r)];case 1:o=d.sent(),d.label=2;case 2:return d.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,o)];case 3:return a=d.sent(),n.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,a];case 4:return d.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:Pa.GetToken,request:o},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return c=d.sent(),l=this.validateNativeResponse(c),[2,this.handleNativeResponse(l,o,i).then(function(h){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:h.requestId}),h}).catch(function(h){throw n.endMeasurement({success:!1,errorCode:h.errorCode,subErrorCode:h.subError,isNativeBroker:!0}),h})]}})})},e.prototype.createSilentCacheRequest=function(r,n){return{authority:r.authority,correlationId:this.correlationId,scopes:Dn.fromString(r.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(r,n){return te(this,void 0,void 0,function(){var i,o,a,s,c;return re(this,function(l){switch(l.label){case 0:if(i=this.browserStorage.readAccountFromCacheWithNativeAccountId(r),!i)throw me.createNoAccountFoundError();o=i.getAccountInfo(),l.label=1;case 1:return l.trys.push([1,3,,4]),a=this.createSilentCacheRequest(n,o),[4,this.silentCacheClient.acquireToken(a)];case 2:return s=l.sent(),[2,s];case 3:throw c=l.sent(),c;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(r){return te(this,void 0,void 0,function(){var n,i,o,a,s,c;return re(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(r)];case 1:n=l.sent(),i={method:Pa.GetToken,request:n},l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(i)];case 3:return o=l.sent(),this.validateNativeResponse(o),[3,5];case 4:if(a=l.sent(),a instanceof Yo&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(ut.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:Vt.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},c=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(r.redirectUri),[4,this.navigationClient.navigateExternal(c,s)];case 6:return l.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return te(this,void 0,void 0,function(){var r,n,i,o,a,s,c,l;return re(this,function(d){switch(d.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(r=this.browserStorage.getCachedNativeRequest(),!r)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];n=r.prompt,i=aw(r,["prompt"]),n&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ut.NATIVE_REQUEST)),o={method:Pa.GetToken,request:i},a=Ki.nowSeconds(),d.label=1;case 1:return d.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(o)];case 2:return s=d.sent(),this.validateNativeResponse(s),c=this.handleNativeResponse(s,i,a),this.browserStorage.setInteractionInProgress(!1),[2,c];case 3:throw l=d.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(r,n,i){return te(this,void 0,void 0,function(){var o,a,s,c,l,d,h,u,f,v,p,_,m,g,b,w,x,C,S,M,T=this;return re(this,function(I){switch(I.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),o=this.getMATSFromResponse(r),this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:o?o.broker_version:void 0,matsAccountJoinOnStart:o?o.account_join_on_start:void 0,matsAccountJoinOnEnd:o?o.account_join_on_end:void 0,matsDeviceJoin:o?o.device_join:void 0,matsPromptBehavior:o?o.prompt_behavior:void 0,matsApiErrorCode:o?o.api_error_code:void 0,matsUiVisible:o?o.ui_visible:void 0,matsSilentCode:o?o.silent_code:void 0,matsSilentBiSubCode:o?o.silent_bi_sub_code:void 0,matsSilentMessage:o?o.silent_message:void 0,matsSilentStatus:o?o.silent_status:void 0,matsHttpStatus:o?o.http_status:void 0,matsHttpEventCount:o?o.http_event_count:void 0},this.correlationId),r.account.id!==n.accountId)throw Yo.createUserSwitchError();return a=new la(r.id_token||$.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(n.authority)];case 1:switch(s=I.sent(),c=s.getPreferredCache(),l=dn.generateHomeAccountId(r.client_info||$.EMPTY_STRING,Bi.Default,this.logger,this.browserCrypto,a),d=dn.createAccount(r.client_info,l,a,void 0,void 0,void 0,c,r.account.id),this.browserStorage.setAccount(d),h=r.scope?Dn.fromString(r.scope):Dn.fromString(n.scope),u=r.account.properties||{},f=u.UID||a.claims.oid||a.claims.sub||$.EMPTY_STRING,v=u.TenantId||a.claims.tid||$.EMPTY_STRING,_=Et.BEARER,m=n.tokenType,m){case Et.POP:return[3,2]}return[3,4];case 2:if(_=Et.POP,r.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),p=r.shr,[3,5];if(g=new ed(this.browserCrypto),b={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw me.createKeyIdMissingError();return[4,g.signPopToken(r.access_token,n.keyId,b)];case 3:return p=I.sent(),[3,5];case 4:p=r.access_token,I.label=5;case 5:return w={authority:s.canonicalAuthority,uniqueId:f,tenantId:v,scopes:h.asArray(),account:d.getAccountInfo(),idToken:r.id_token,idTokenClaims:a.claims,accessToken:p,fromCache:o?this.isResponseFromCache(o):!1,expiresOn:new Date(Number(i+r.expires_in)*1e3),tokenType:_,correlationId:this.correlationId,state:r.state,fromNativeBroker:!0},x=uu.createIdTokenEntity(l,n.authority,r.id_token||$.EMPTY_STRING,n.clientId,a.claims.tid||$.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(x),C=_===Et.POP?$.SHR_NONCE_VALIDITY:(typeof r.expires_in=="string"?parseInt(r.expires_in,10):r.expires_in)||0,S=i+C,M=fu.createAccessTokenEntity(l,n.authority,p,n.clientId,v,h.printScopes(),S,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(M),this.browserStorage.removeAccountContext(d).catch(function(N){T.logger.error("Error occurred while removing account context from browser storage. "+N)}),[2,w]}})})},e.prototype.validateNativeResponse=function(r){if(r.hasOwnProperty("access_token")&&r.hasOwnProperty("id_token")&&r.hasOwnProperty("client_info")&&r.hasOwnProperty("account")&&r.hasOwnProperty("scope")&&r.hasOwnProperty("expires_in"))return r;throw Yo.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(r){if(r.properties.MATS)try{return JSON.parse(r.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(r){return typeof r.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!r.is_cached},e.prototype.initializeNativeRequest=function(r){return te(this,void 0,void 0,function(){var n,i,o,a,s,c,l,d,h,u,f=this;return re(this,function(v){switch(v.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=r.authority||this.config.auth.authority,i=new pt(n),i.validateAsUri(),o=r.scopes,a=aw(r,["scopes"]),s=new Dn(o||[]),s.appendScopes(e0),c=function(){switch(f.apiId){case Vt.ssoSilent:case Vt.acquireTokenSilent_silentFlow:return f.logger.trace("initializeNativeRequest: silent request sets prompt to none"),$n.NONE}if(!r.prompt){f.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(r.prompt){case $n.NONE:case $n.CONSENT:case $n.LOGIN:return f.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),r.prompt;default:throw f.logger.trace("initializeNativeRequest: prompt = "+r.prompt+" is not compatible with native flow"),ue.createNativePromptParameterNotSupportedError()}},l=ze(ze({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:i.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(r.redirectUri),prompt:c(),correlationId:this.correlationId,tokenType:r.authenticationScheme,windowTitleSubstring:document.title,extraParameters:ze(ze(ze({},r.extraQueryParameters),r.tokenQueryParameters),{telemetry:Y2.MATS_TELEMETRY}),extendedExpiryToken:!1}),r.authenticationScheme!==Et.POP?[3,2]:(d={resourceRequestUri:r.resourceRequestUri,resourceRequestMethod:r.resourceRequestMethod,shrClaims:r.shrClaims,shrNonce:r.shrNonce},h=new ed(this.browserCrypto),[4,h.generateCnf(d)]);case 1:u=v.sent(),l.reqCnf=u.reqCnfHash,l.keyId=u.kid,v.label=2;case 2:return[2,l]}})})},e}(U$);/*! @azure/msal-browser v2.32.2 2023-01-10 */var t1=function(){function t(e,r,n){this.logger=e,this.handshakeTimeoutMs=r,this.extensionId=n,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this)}return t.prototype.sendMessage=function(e){return te(this,void 0,void 0,function(){var r,n=this;return re(this,function(i){return this.logger.trace("NativeMessageHandler - sendMessage called."),r={channel:Y2.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(r)),this.messageChannel.port1.postMessage(r),[2,new Promise(function(o,a){n.resolvers.set(r.responseId,{resolve:o,reject:a})})]})})},t.createProvider=function(e,r){return te(this,void 0,void 0,function(){var n,i;return re(this,function(o){switch(o.label){case 0:e.trace("NativeMessageHandler - createProvider called."),o.label=1;case 1:return o.trys.push([1,3,,5]),n=new t(e,r,Y2.PREFERRED_EXTENSION_ID),[4,n.sendHandshakeRequest()];case 2:return o.sent(),[2,n];case 3:return o.sent(),i=new t(e,r),[4,i.sendHandshakeRequest()];case 4:return o.sent(),[2,i];case 5:return[2]}})})},t.prototype.sendHandshakeRequest=function(){return te(this,void 0,void 0,function(){var e,r=this;return re(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:Y2.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Pa.HandshakeRequest}},this.messageChannel.port1.onmessage=function(i){r.onChannelMessage(i)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(i,o){r.handshakeResolvers.set(e.responseId,{resolve:i,reject:o}),r.timeoutId=window.setTimeout(function(){window.removeEventListener("message",r.windowListener,!1),r.messageChannel.port1.close(),r.messageChannel.port2.close(),o(ue.createNativeHandshakeTimeoutError()),r.handshakeResolvers.delete(e.responseId)},r.handshakeTimeoutMs)})]})})},t.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var r=e.data;if(!(!r.channel||r.channel!==Y2.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===Pa.HandshakeRequest){this.logger.verbose(r.extensionId?"Extension with id: "+r.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var n=this.handshakeResolvers.get(r.responseId);n&&n.reject(ue.createNativeExtensionNotInstalledError())}}},t.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var r=e.data,n=this.resolvers.get(r.responseId),i=this.handshakeResolvers.get(r.responseId);try{var o=r.body.method;if(o===Pa.Response){if(!n)return;var a=r.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(a)),a.status!=="Success")n.reject(Yo.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(Yo.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw Ee.createUnexpectedError("Event does not contain result.");this.resolvers.delete(r.responseId)}else if(o===Pa.HandshakeResponse){if(!i)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.extensionVersion=r.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),i.resolve(),this.handshakeResolvers.delete(r.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(s):i&&i.reject(s)}},t.prototype.getExtensionId=function(){return this.extensionId},t.prototype.getExtensionVersion=function(){return this.extensionVersion},t.isNativeAvailable=function(e,r,n,i){if(r.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return r.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return r.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(i)switch(i){case Et.BEARER:case Et.POP:return r.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return r.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var _F=function(t){fn(e,t);function e(r,n,i,o,a,s,c,l,d,h){var u=t.call(this,r,n,i,o,a,s,c,d,h)||this;return u.nativeStorage=l,u}return e.prototype.acquireToken=function(r){return te(this,void 0,void 0,function(){var n,i,o,a,s,c,l,d,h,u=this;return re(this,function(f){switch(f.label){case 0:return[4,this.initializeAuthorizationRequest(r,xe.Redirect)];case 1:n=f.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||$.EMPTY_STRING,n.account||null),i=this.initializeServerTelemetryManager(Vt.acquireTokenRedirect),o=function(v){v.persisted&&(u.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),u.browserStorage.cleanRequestByState(n.state))},f.label=2;case 2:return f.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=f.sent(),[4,this.createAuthCodeClient(i,n.authority,n.azureCloudOptions)];case 4:return s=f.sent(),this.logger.verbose("Auth code client created"),c=new bw(s,this.browserStorage,a,this.logger,this.browserCrypto),[4,s.getAuthCodeUrl(ze(ze({},n),{nativeBroker:t1.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 5:return l=f.sent(),d=this.getRedirectStartPage(r.redirectStartPage),this.logger.verbosePii("Redirect start page: "+d),window.addEventListener("pageshow",o),[4,c.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:d,onRedirectNavigate:r.onRedirectNavigate})];case 6:return[2,f.sent()];case 7:throw h=f.sent(),h instanceof Ee&&h.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",o),i.cacheFailedRequest(h),this.browserStorage.cleanRequestByState(n.state),h;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(r){return te(this,void 0,void 0,function(){var n,i,o,a,s,c,l,d,h,u,f,v;return re(this,function(p){switch(p.label){case 0:n=this.initializeServerTelemetryManager(Vt.handleRedirectPromise),p.label=1;case 1:if(p.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(i=this.getRedirectResponseHash(r||window.location.hash),!i)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(xe.Redirect),[2,null];o=void 0;try{a=pt.getDeserializedHash(i),o=this.validateAndExtractStateFromHash(a,xe.Redirect),this.logger.verbose("State extracted from hash")}catch(_){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+_),this.browserStorage.cleanRequestByInteractionType(xe.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(ut.ORIGIN_URI,!0)||$.EMPTY_STRING,c=pt.removeHashFromUrl(s),l=pt.removeHashFromUrl(window.location.href),c===l&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(i,o,n)]):[3,3];case 2:return d=p.sent(),s.indexOf("#")>-1&&ur.replaceHash(s),[2,d];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(i,o,n)]);case 4:return!ur.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(ut.URL_HASH,i,!0),h={apiId:Vt.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},u=!0,!s||s==="null"?(f=ur.getHomepage(),this.browserStorage.setTemporaryCache(ut.ORIGIN_URI,f,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(f,h)]):[3,6]):[3,9];case 5:return u=p.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,h)];case 7:u=p.sent(),p.label=8;case 8:if(!u)return[2,this.handleHash(i,o,n)];p.label=9;case 9:return[2,null];case 10:throw v=p.sent(),v instanceof Ee&&v.setCorrelationId(this.correlationId),n.cacheFailedRequest(v),this.browserStorage.cleanRequestByInteractionType(xe.Redirect),v;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(r){this.logger.verbose("getRedirectResponseHash called");var n=pt.hashContainsKnownProperties(r);if(n)return ur.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),r;var i=this.browserStorage.getTemporaryCache(ut.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ut.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),i},e.prototype.handleHash=function(r,n,i){return te(this,void 0,void 0,function(){var o,a,s,c,l,d,h,u=this;return re(this,function(f){switch(f.label){case 0:if(o=this.browserStorage.getCachedRequest(n,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=pt.getDeserializedHash(r),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ue.createNativeConnectionNotEstablishedError();return s=new Hl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Vt.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.browserStorage,o.correlationId),c=La.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken(ze(ze({},o),{state:c,prompt:void 0})).finally(function(){u.browserStorage.cleanRequestByState(n)})]}if(l=this.browserStorage.getCachedAuthority(n),!l)throw ue.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(i,l)];case 1:return d=f.sent(),this.logger.verbose("Auth code client created"),Mp.removeThrottle(this.browserStorage,this.config.auth.clientId,o),h=new bw(d,this.browserStorage,o,this.logger,this.browserCrypto),[4,h.handleCodeResponseFromHash(r,n,d.authority,this.networkClient)];case 2:return[2,f.sent()]}})})},e.prototype.logout=function(r){return te(this,void 0,void 0,function(){var n,i,o,a,s,c,l;return re(this,function(d){switch(d.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(r),i=this.initializeServerTelemetryManager(Vt.logout),d.label=1;case 1:return d.trys.push([1,10,,11]),this.eventHandler.emitEvent(Ve.LOGOUT_START,xe.Redirect,r),[4,this.clearCacheOnLogout(n.account)];case 2:return d.sent(),o={apiId:Vt.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(i,r&&r.authority)];case 3:return a=d.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(n),this.eventHandler.emitEvent(Ve.LOGOUT_SUCCESS,xe.Redirect,n),r&&typeof r.onRedirectNavigate=="function"?(c=r.onRedirectNavigate(s),c===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,o)])):[3,7];case 4:return d.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),d.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,o)];case 8:return d.sent(),[2];case 9:return[3,11];case 10:throw l=d.sent(),l instanceof Ee&&l.setCorrelationId(this.correlationId),i.cacheFailedRequest(l),this.eventHandler.emitEvent(Ve.LOGOUT_FAILURE,xe.Redirect,null,l),this.eventHandler.emitEvent(Ve.LOGOUT_END,xe.Redirect),l;case 11:return this.eventHandler.emitEvent(Ve.LOGOUT_END,xe.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(r){var n=r||window.location.href;return pt.getAbsoluteUrl(n,ur.getCurrentUri())},e}(qd);/*! @azure/msal-browser v2.32.2 2023-01-10 */var bF=function(t){fn(e,t);function e(r,n,i,o,a,s,c,l,d,h){var u=t.call(this,r,n,i,o,a,s,c,d,h)||this;return u.unloadWindow=u.unloadWindow.bind(u),u.nativeStorage=l,u}return e.prototype.acquireToken=function(r){try{var n=this.generatePopupName(r.scopes||e0,r.authority||this.config.auth.authority),i=r.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(r,n,i);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var o=this.openSizedPopup("about:blank",n,i);return this.acquireTokenPopupAsync(r,n,i,o)}catch(a){return Promise.reject(a)}},e.prototype.logout=function(r){try{this.logger.verbose("logoutPopup called");var n=this.initializeLogoutRequest(r),i=this.generateLogoutPopupName(n),o=r&&r.authority,a=r&&r.mainWindowRedirectUri,s=(r==null?void 0:r.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(n,i,s,o,void 0,a);this.logger.verbose("asyncPopup set to false, opening popup");var c=this.openSizedPopup("about:blank",i,s);return this.logoutPopupAsync(n,i,s,o,c,a)}catch(l){return Promise.reject(l)}},e.prototype.acquireTokenPopupAsync=function(r,n,i,o){return te(this,void 0,void 0,function(){var a,s,c,l,d,h,u,f,v,p,_,m,g,b,w,x,C,S=this;return re(this,function(M){switch(M.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(Vt.acquireTokenPopup),[4,this.initializeAuthorizationRequest(r,xe.Popup)];case 1:s=M.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||$.EMPTY_STRING,s.account||null),M.label=2;case 2:return M.trys.push([2,8,,9]),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=M.sent(),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return l=M.sent(),this.logger.verbose("Auth code client created"),d=t1.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme),h=void 0,d&&(h=this.performanceClient.startMeasurement(Nr.FetchAccountIdWithNativeBroker,r.correlationId)),[4,l.getAuthCodeUrl(ze(ze({},s),{nativeBroker:d}))];case 5:return u=M.sent(),f=new z7(l,this.browserStorage,c,this.logger),v={popup:o,popupName:n,popupWindowAttributes:i},p=this.initiateAuthRequest(u,v),this.eventHandler.emitEvent(Ve.POPUP_OPENED,xe.Popup,{popupWindow:p},null),[4,this.monitorPopupForHash(p)];case 6:if(_=M.sent(),m=pt.getDeserializedHash(_),g=this.validateAndExtractStateFromHash(m,xe.Popup,s.correlationId),Mp.removeThrottle(this.browserStorage,this.config.auth.clientId,c),m.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),h&&h.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw ue.createNativeConnectionNotEstablishedError();return b=new Hl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Vt.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,m.accountId,this.nativeStorage,s.correlationId),w=La.parseRequestState(this.browserCrypto,g).userRequestState,[2,b.acquireToken(ze(ze({},s),{state:w,prompt:void 0})).finally(function(){S.browserStorage.cleanRequestByState(g)})]}return[4,f.handleCodeResponseFromHash(_,g,l.authority,this.networkClient)];case 7:return x=M.sent(),[2,x];case 8:throw C=M.sent(),o&&o.close(),C instanceof Ee&&C.setCorrelationId(this.correlationId),a.cacheFailedRequest(C),this.browserStorage.cleanRequestByState(s.state),C;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(r,n,i,o,a,s){return te(this,void 0,void 0,function(){var c,l,d,h,u,f,v;return re(this,function(p){switch(p.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Ve.LOGOUT_START,xe.Popup,r),c=this.initializeServerTelemetryManager(Vt.logoutPopup),p.label=1;case 1:return p.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(r.account)];case 2:return p.sent(),[4,this.createAuthCodeClient(c,o)];case 3:return l=p.sent(),this.logger.verbose("Auth code client created"),d=l.getLogoutUri(r),this.eventHandler.emitEvent(Ve.LOGOUT_SUCCESS,xe.Popup,r),h=this.openPopup(d,{popupName:n,popupWindowAttributes:i,popup:a}),this.eventHandler.emitEvent(Ve.POPUP_OPENED,xe.Popup,{popupWindow:h},null),[4,this.waitForLogoutPopup(h)];case 4:return p.sent(),s?(u={apiId:Vt.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=pt.getAbsoluteUrl(s,ur.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+f),this.navigationClient.navigateInternal(f,u)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw v=p.sent(),a&&a.close(),v instanceof Ee&&v.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Ve.LOGOUT_FAILURE,xe.Popup,null,v),this.eventHandler.emitEvent(Ve.LOGOUT_END,xe.Popup),c.cacheFailedRequest(v),v;case 6:return this.eventHandler.emitEvent(Ve.LOGOUT_END,xe.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(r,n){if(fe.isEmpty(r))throw this.logger.error("Navigate url is empty"),ue.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+r),this.openPopup(r,n)},e.prototype.monitorPopupForHash=function(r){var n=this;return new Promise(function(i,o){var a=n.config.system.windowHashTimeout/n.config.system.pollIntervalMilliseconds,s=0;n.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var c=setInterval(function(){if(r.closed){n.logger.error("PopupHandler.monitorPopupForHash - window closed"),n.cleanPopup(),clearInterval(c),o(ue.createUserCancelledError());return}var l=$.EMPTY_STRING,d=$.EMPTY_STRING;try{l=r.location.href,d=r.location.hash}catch{}fe.isEmpty(l)||l==="about:blank"||(n.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,d?(n.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(c),n.cleanPopup(r),pt.hashContainsKnownProperties(d)?(n.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),i(d)):(n.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),n.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+d),o(ue.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),o(ue.createMonitorPopupTimeoutError())))},n.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(r){var n=this;return new Promise(function(i){n.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var o=setInterval(function(){r.closed&&(n.logger.error("PopupHandler.waitForLogoutPopup - window closed"),n.cleanPopup(),clearInterval(o),i());var a=$.EMPTY_STRING;try{a=r.location.href}catch{}fe.isEmpty(a)||a==="about:blank"||(n.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(o),n.cleanPopup(r),i())},n.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(r,n){try{var i=void 0;if(n.popup?(i=n.popup,this.logger.verbosePii("Navigating popup window to: "+r),i.location.assign(r)):typeof n.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+r),i=this.openSizedPopup(r,n.popupName,n.popupWindowAttributes)),!i)throw ue.createEmptyWindowCreatedError();return i.focus&&i.focus(),this.currentWindow=i,window.addEventListener("beforeunload",this.unloadWindow),i}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),ue.createPopupWindowError(o.toString())}},e.prototype.openSizedPopup=function(r,n,i){var o,a,s,c,l=window.screenLeft?window.screenLeft:window.screenX,d=window.screenTop?window.screenTop:window.screenY,h=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,f=(o=i.popupSize)===null||o===void 0?void 0:o.width,v=(a=i.popupSize)===null||a===void 0?void 0:a.height,p=(s=i.popupPosition)===null||s===void 0?void 0:s.top,_=(c=i.popupPosition)===null||c===void 0?void 0:c.left;return(!f||f<0||f>h)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),f=fo.POPUP_WIDTH),(!v||v<0||v>u)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),v=fo.POPUP_HEIGHT),(!p||p<0||p>u)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),p=Math.max(0,u/2-fo.POPUP_HEIGHT/2+d)),(!_||_<0||_>h)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),_=Math.max(0,h/2-fo.POPUP_WIDTH/2+l)),window.open(r,n,"width="+f+", height="+v+", top="+p+", left="+_+", scrollbars=yes")},e.prototype.unloadWindow=function(r){this.browserStorage.cleanRequestByInteractionType(xe.Popup),this.currentWindow&&this.currentWindow.close(),r.preventDefault()},e.prototype.cleanPopup=function(r){r&&r.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(r,n){return fo.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+r.join("-")+"."+n+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(r){var n=r.account&&r.account.homeAccountId;return fo.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}(qd);/*! @azure/msal-browser v2.32.2 2023-01-10 */var wF=function(){function t(){}return t.prototype.navigateInternal=function(e,r){return t.defaultNavigateWindow(e,r)},t.prototype.navigateExternal=function(e,r){return t.defaultNavigateWindow(e,r)},t.defaultNavigateWindow=function(e,r){return r.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(n){setTimeout(function(){n(!0)},r.timeout)})},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var xF=6e4,R6=6e3,zF=3e4,CF=2e3;function kF(t,e){var r=t.auth,n=t.cache,i=t.system,o=t.telemetry,a={clientId:$.EMPTY_STRING,authority:""+$.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:$.EMPTY_STRING,authorityMetadata:$.EMPTY_STRING,redirectUri:$.EMPTY_STRING,postLogoutRedirectUri:$.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Ip.AAD,azureCloudOptions:{azureCloudInstance:du.None,tenant:$.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:Cn.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},c={loggerCallback:function(){},logLevel:cr.Info,piiLoggingEnabled:!1},l=ze(ze({},V$),{loggerOptions:c,networkClient:e?ur.getBrowserNetworkClient():dF,navigationClient:new wF,loadFrameTimeout:0,windowHashTimeout:(i==null?void 0:i.loadFrameTimeout)||xF,iframeHashTimeout:(i==null?void 0:i.loadFrameTimeout)||R6,navigateFrameWait:e&&ur.detectIEOrEdge()?500:0,redirectNavigationTimeout:zF,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(i==null?void 0:i.nativeBrokerHandshakeTimeout)||CF,pollIntervalMilliseconds:fo.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),d=ze(ze({},i),{loggerOptions:(i==null?void 0:i.loggerOptions)||c}),h={application:{appName:$.EMPTY_STRING,appVersion:$.EMPTY_STRING}},u={auth:ze(ze({},a),r),cache:ze(ze({},s),n),system:ze(ze({},l),d),telemetry:ze(ze({},h),o)};return u}/*! @azure/msal-browser v2.32.2 2023-01-10 */var q$=function(t){fn(e,t);function e(r,n,i,o,a){var s=t.call(this,r,n,i,o)||this;return s.navigateFrameWait=a.navigateFrameWait,s.pollIntervalMilliseconds=a.pollIntervalMilliseconds,s}return e.prototype.initiateAuthRequest=function(r){return te(this,void 0,void 0,function(){var n;return re(this,function(i){switch(i.label){case 0:if(fe.isEmpty(r))throw this.logger.info("Navigate url is empty"),ue.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(r)]:[3,2];case 1:return n=i.sent(),[3,3];case 2:n=this.loadFrameSync(r),i.label=3;case 3:return[2,n]}})})},e.prototype.monitorIframeForHash=function(r,n){var i=this;return new Promise(function(o,a){n<R6&&i.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+R6+"ms). This may result in timeouts.");var s=window.performance.now(),c=s+n,l=setInterval(function(){if(window.performance.now()>c){i.removeHiddenIframe(r),clearInterval(l),a(ue.createMonitorIframeTimeoutError());return}var d=$.EMPTY_STRING,h=r.contentWindow;try{d=h?h.location.href:$.EMPTY_STRING}catch{}if(!fe.isEmpty(d)){var u=h?h.location.hash:$.EMPTY_STRING;if(pt.hashContainsKnownProperties(u)){i.removeHiddenIframe(r),clearInterval(l),o(u);return}}},i.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(r){var n=this;return new Promise(function(i,o){var a=n.createHiddenIframe();setTimeout(function(){if(!a){o("Unable to load iframe");return}a.src=r,i(a)},n.navigateFrameWait)})},e.prototype.loadFrameSync=function(r){var n=this.createHiddenIframe();return n.src=r,n},e.prototype.createHiddenIframe=function(){var r=document.createElement("iframe");return r.style.visibility="hidden",r.style.position="absolute",r.style.width=r.style.height="0",r.style.border="0",r.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(r),r},e.prototype.removeHiddenIframe=function(r){document.body===r.parentNode&&document.body.removeChild(r)},e}(z7);/*! @azure/msal-browser v2.32.2 2023-01-10 */var EF=function(t){fn(e,t);function e(r,n,i,o,a,s,c,l,d,h,u){var f=t.call(this,r,n,i,o,a,s,l,h,u)||this;return f.apiId=c,f.nativeStorage=d,f}return e.prototype.acquireToken=function(r){return te(this,void 0,void 0,function(){var n,i,o,a,s;return re(this,function(c){switch(c.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(Nr.SilentIframeClientAcquireToken,r.correlationId),fe.isEmpty(r.loginHint)&&fe.isEmpty(r.sid)&&(!r.account||fe.isEmpty(r.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),r.prompt&&r.prompt!==$n.NONE&&r.prompt!==$n.NO_SESSION)throw n.endMeasurement({success:!1}),ue.createSilentPromptValueError(r.prompt);return[4,this.initializeAuthorizationRequest(ze(ze({},r),{prompt:r.prompt||$n.NONE}),xe.Silent)];case 1:i=c.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||$.EMPTY_STRING,i.account||null),o=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),[4,this.createAuthCodeClient(o,i.authority,i.azureCloudOptions)];case 3:return a=c.sent(),this.logger.verbose("Auth code client created"),[4,this.silentTokenHelper(a,i).then(function(l){return n.endMeasurement({success:!0,fromCache:!1,requestId:l.requestId}),l})];case 4:return[2,c.sent()];case 5:throw s=c.sent(),s instanceof Ee&&s.setCorrelationId(this.correlationId),o.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(i.state),n.endMeasurement({errorCode:s instanceof Ee&&s.errorCode||void 0,subErrorCode:s instanceof Ee&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(ue.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(r,n){return te(this,void 0,void 0,function(){var i,o,a,s,c,l,d,h,u,f=this;return re(this,function(v){switch(v.label){case 0:return[4,this.initializeAuthorizationCodeRequest(n)];case 1:return i=v.sent(),[4,r.getAuthCodeUrl(ze(ze({},n),{nativeBroker:t1.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return o=v.sent(),a=new q$(r,this.browserStorage,i,this.logger,this.config.system),[4,a.initiateAuthRequest(o)];case 3:return s=v.sent(),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=v.sent(),l=pt.getDeserializedHash(c),d=this.validateAndExtractStateFromHash(l,xe.Silent,i.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ue.createNativeConnectionNotEstablishedError();return h=new Hl(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=La.parseRequestState(this.browserCrypto,d).userRequestState,[2,h.acquireToken(ze(ze({},n),{state:u,prompt:n.prompt||$n.NONE})).finally(function(){f.browserStorage.cleanRequestByState(d)})]}return[2,a.handleCodeResponseFromHash(c,d,r.authority,this.networkClient)]}})})},e}(qd);/*! @azure/msal-browser v2.32.2 2023-01-10 */var SF=function(t){fn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return te(this,void 0,void 0,function(){var n,i,o,a,s,c=this;return re(this,function(l){switch(l.label){case 0:return i=[ze({},r)],[4,this.initializeBaseRequest(r)];case 1:return n=ze.apply(void 0,i.concat([l.sent()])),o=this.performanceClient.startMeasurement(Nr.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(Vt.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,n.authority,n.azureCloudOptions)];case 2:return s=l.sent(),this.logger.verbose("Refresh token client created"),[2,s.acquireTokenByRefreshToken(n).then(function(d){return o.endMeasurement({success:!0,fromCache:d.fromCache,requestId:d.requestId}),d}).catch(function(d){throw d instanceof Ee&&d.setCorrelationId(c.correlationId),a.cacheFailedRequest(d),o.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d})]}})})},e.prototype.logout=function(){return Promise.reject(ue.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(r,n,i){return te(this,void 0,void 0,function(){var o;return re(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,i)];case 1:return o=a.sent(),[2,new O$(o,this.performanceClient)]}})})},e}(qd);/*! @azure/msal-browser v2.32.2 2023-01-10 */var AF=function(){function t(e,r){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=r,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return t.prototype.addEventCallback=function(e){if(typeof window<"u"){var r=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(r,e),this.logger.verbose("Event callback registered with id: "+r),r}return null},t.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},t.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},t.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},t.prototype.emitEvent=function(e,r,n,i){var o=this;if(typeof window<"u"){var a={eventType:e,interactionType:r||null,payload:n||null,error:i||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(s,c){o.logger.verbose("Emitting event to callback "+c+": "+e),s.apply(null,[a])})}},t.prototype.handleAccountCacheChange=function(e){try{var r=e.newValue||e.oldValue;if(!r)return;var n=JSON.parse(r);if(typeof n!="object"||!dn.isAccountEntity(n))return;var i=so.toObject(new dn,n),o=i.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Ve.ACCOUNT_ADDED,void 0,o)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Ve.ACCOUNT_REMOVED,void 0,o))}catch{return}},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var bn=function(){function t(){}return t.decimalToHex=function(e){for(var r=e.toString(16);r.length<2;)r="0"+r;return r},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var W$=function(){function t(e){this.cryptoObj=e}return t.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,bn.decimalToHex(e[0])+bn.decimalToHex(e[1])+bn.decimalToHex(e[2])+bn.decimalToHex(e[3])+"-"+bn.decimalToHex(e[4])+bn.decimalToHex(e[5])+"-"+bn.decimalToHex(e[6])+bn.decimalToHex(e[7])+"-"+bn.decimalToHex(e[8])+bn.decimalToHex(e[9])+"-"+bn.decimalToHex(e[10])+bn.decimalToHex(e[11])+bn.decimalToHex(e[12])+bn.decimalToHex(e[13])+bn.decimalToHex(e[14])+bn.decimalToHex(e[15])}catch{for(var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",i=0,o=$.EMPTY_STRING,a=0;a<36;a++)r[a]!=="-"&&r[a]!=="4"&&(i=Math.random()*16|0),r[a]==="x"?o+=n[i]:r[a]==="y"?(i&=3,i|=8,o+=n[i]):o+=r[a];return o}},t.prototype.isGuid=function(e){var r=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return r.test(e)},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var Oa=function(){function t(){}return t.stringToUtf8Arr=function(e){for(var r,n=0,i=e.length,o=0;o<i;o++)r=e.charCodeAt(o),n+=r<128?1:r<2048?2:r<65536?3:r<2097152?4:r<67108864?5:6;for(var a=new Uint8Array(n),s=0,c=0;s<n;c++)r=e.charCodeAt(c),r<128?a[s++]=r:r<2048?(a[s++]=192+(r>>>6),a[s++]=128+(r&63)):r<65536?(a[s++]=224+(r>>>12),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63)):r<2097152?(a[s++]=240+(r>>>18),a[s++]=128+(r>>>12&63),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63)):r<67108864?(a[s++]=248+(r>>>24),a[s++]=128+(r>>>18&63),a[s++]=128+(r>>>12&63),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63)):(a[s++]=252+(r>>>30),a[s++]=128+(r>>>24&63),a[s++]=128+(r>>>18&63),a[s++]=128+(r>>>12&63),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63));return a},t.stringToArrayBuffer=function(e){for(var r=new ArrayBuffer(e.length),n=new Uint8Array(r),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return r},t.utf8ArrToString=function(e){for(var r=$.EMPTY_STRING,n=void 0,i=e.length,o=0;o<i;o++)n=e[o],r+=String.fromCharCode(n>251&&n<254&&o+5<i?(n-252)*1073741824+(e[++o]-128<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>247&&n<252&&o+4<i?(n-248<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>239&&n<248&&o+3<i?(n-240<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>223&&n<240&&o+2<i?(n-224<<12)+(e[++o]-128<<6)+e[++o]-128:n>191&&n<224&&o+1<i?(n-192<<6)+e[++o]-128:n);return r},t.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var G$=function(){function t(){}return t.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,$.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},t.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,$.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},t.prototype.encode=function(e){var r=Oa.stringToUtf8Arr(e);return this.base64EncArr(r)},t.prototype.base64EncArr=function(e){for(var r=(3-e.length%3)%3,n=$.EMPTY_STRING,i=void 0,o=e.length,a=0,s=0;s<o;s++)i=s%3,a|=e[s]<<(16>>>i&24),(i===2||e.length-s===1)&&(n+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(a&63)),a=0);return r===0?n:n.substring(0,n.length-r)+(r===1?"=":"==")},t.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var MF=function(){function t(){}return t.prototype.decode=function(e){var r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(r);return Oa.utf8ArrToString(n)},t.prototype.base64DecToArr=function(e,r){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,$.EMPTY_STRING),i=n.length,o=r?Math.ceil((i*3+1>>>2)/r)*r:i*3+1>>>2,a=new Uint8Array(o),s=void 0,c=void 0,l=0,d=0,h=0;h<i;h++)if(c=h&3,l|=this.b64ToUint6(n.charCodeAt(h))<<18-6*c,c===3||i-h===1){for(s=0;s<3&&d<o;s++,d++)a[d]=l>>>(16>>>s&24)&255;l=0}return a},t.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var $F=32,PF=function(){function t(e){this.base64Encode=new G$,this.cryptoObj=e}return t.prototype.generateCodes=function(){return te(this,void 0,void 0,function(){var e,r;return re(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return r=n.sent(),[2,{verifier:e,challenge:r}]}})})},t.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array($F);this.cryptoObj.getRandomValues(e);var r=this.base64Encode.urlEncodeArr(e);return r}catch(n){throw ue.createPkceNotGeneratedError(n)}},t.prototype.generateCodeChallengeFromVerifier=function(e){return te(this,void 0,void 0,function(){var r,n;return re(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return r=i.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(r))];case 2:throw n=i.sent(),ue.createPkceNotGeneratedError(n);case 3:return[2]}})})},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var IF=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return te(this,void 0,void 0,function(){return re(this,function(i){return[2,window.crypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return te(this,void 0,void 0,function(){return re(this,function(r){return[2,window.crypto.subtle.exportKey(td,e)]})})},t.prototype.importKey=function(e,r,n,i){return te(this,void 0,void 0,function(){return re(this,function(o){return[2,window.crypto.subtle.importKey(td,e,r,n,i)]})})},t.prototype.sign=function(e,r,n){return te(this,void 0,void 0,function(){return re(this,function(i){return[2,window.crypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return te(this,void 0,void 0,function(){return re(this,function(n){return[2,window.crypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var HF=function(){function t(){}return t.prototype.initPrng=function(e){return window.msrCrypto.initPrng(b7(e))},t.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return te(this,void 0,void 0,function(){return re(this,function(i){return[2,window.msrCrypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return te(this,void 0,void 0,function(){return re(this,function(r){return[2,window.msrCrypto.subtle.exportKey(td,e)]})})},t.prototype.importKey=function(e,r,n,i){return te(this,void 0,void 0,function(){return re(this,function(o){return[2,window.msrCrypto.subtle.importKey(td,e,r,n,i)]})})},t.prototype.sign=function(e,r,n){return te(this,void 0,void 0,function(){return re(this,function(i){return[2,window.msrCrypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return te(this,void 0,void 0,function(){return re(this,function(n){return[2,window.msrCrypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var TF=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return te(this,void 0,void 0,function(){return re(this,function(i){return[2,new Promise(function(o,a){var s=window.msCrypto.subtle.generateKey(e,r,n);s.addEventListener("complete",function(c){o(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},t.prototype.exportKey=function(e){return te(this,void 0,void 0,function(){return re(this,function(r){return[2,new Promise(function(n,i){var o=window.msCrypto.subtle.exportKey(td,e);o.addEventListener("complete",function(a){var s=a.target.result,c=Oa.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,$.EMPTY_STRING).replace(/\n/g,$.EMPTY_STRING).replace(/\t/g,$.EMPTY_STRING).split(" ").join($.EMPTY_STRING).replace("\0",$.EMPTY_STRING);try{n(JSON.parse(c))}catch(l){i(l)}}),o.addEventListener("error",function(a){i(a)})})]})})},t.prototype.importKey=function(e,r,n,i){return te(this,void 0,void 0,function(){var o,a;return re(this,function(s){return o=Oa.getSortedObjectString(e),a=Oa.stringToArrayBuffer(o),[2,new Promise(function(c,l){var d=window.msCrypto.subtle.importKey(td,a,r,n,i);d.addEventListener("complete",function(h){c(h.target.result)}),d.addEventListener("error",function(h){l(h)})})]})})},t.prototype.sign=function(e,r,n){return te(this,void 0,void 0,function(){return re(this,function(i){return[2,new Promise(function(o,a){var s=window.msCrypto.subtle.sign(e,r,n);s.addEventListener("complete",function(c){o(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},t.prototype.digest=function(e,r){return te(this,void 0,void 0,function(){return re(this,function(n){return[2,new Promise(function(i,o){var a=window.msCrypto.subtle.digest(e,r.buffer);a.addEventListener("complete",function(s){i(s.target.result)}),a.addEventListener("error",function(s){o(s)})})]})})},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var RF="RSASSA-PKCS1-v1_5",ww="SHA-256",DF=2048,VF=new Uint8Array([1,0,1]),K$=function(){function t(e,r){var n,i;if(this.logger=e,this.cryptoOptions=r,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new IF;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new TF;else if(this.hasMsrCrypto()&&(!((n=this.cryptoOptions)===null||n===void 0)&&n.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new HF;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."),ue.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((i=this.cryptoOptions)===null||i===void 0)&&i.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),Dp.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:RF,hash:ww,modulusLength:DF,publicExponent:VF}}return t.prototype.hasIECrypto=function(){return"msCrypto"in window},t.prototype.hasBrowserCrypto=function(){return"crypto"in window},t.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},t.prototype.sha256Digest=function(e){return te(this,void 0,void 0,function(){var r;return re(this,function(n){return r=Oa.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:ww},r)]})})},t.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},t.prototype.generateKeyPair=function(e,r){return te(this,void 0,void 0,function(){return re(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,r)]})})},t.prototype.exportJwk=function(e){return te(this,void 0,void 0,function(){return re(this,function(r){return[2,this.subtleCrypto.exportKey(e)]})})},t.prototype.importJwk=function(e,r,n){return te(this,void 0,void 0,function(){return re(this,function(i){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,r,n)]})})},t.prototype.sign=function(e,r){return te(this,void 0,void 0,function(){return re(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,r)]})})},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var LF=function(){function t(){this.dbName=I6,this.version=pF,this.tableName=vF,this.dbOpen=!1}return t.prototype.open=function(){return te(this,void 0,void 0,function(){var e=this;return re(this,function(r){return[2,new Promise(function(n,i){var o=window.indexedDB.open(e.dbName,e.version);o.addEventListener("upgradeneeded",function(a){var s=a;s.target.result.createObjectStore(e.tableName)}),o.addEventListener("success",function(a){var s=a;e.db=s.target.result,e.dbOpen=!0,n()}),o.addEventListener("error",function(){return i(ue.createDatabaseUnavailableError())})})]})})},t.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},t.prototype.validateDbIsOpen=function(){return te(this,void 0,void 0,function(){return re(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},t.prototype.getItem=function(e){return te(this,void 0,void 0,function(){var r=this;return re(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(i,o){if(!r.db)return o(ue.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readonly"),s=a.objectStore(r.tableName),c=s.get(e);c.addEventListener("success",function(l){var d=l;r.closeConnection(),i(d.target.result)}),c.addEventListener("error",function(l){r.closeConnection(),o(l)})})]}})})},t.prototype.setItem=function(e,r){return te(this,void 0,void 0,function(){var n=this;return re(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(o,a){if(!n.db)return a(ue.createDatabaseNotOpenError());var s=n.db.transaction([n.tableName],"readwrite"),c=s.objectStore(n.tableName),l=c.put(r,e);l.addEventListener("success",function(){n.closeConnection(),o()}),l.addEventListener("error",function(d){n.closeConnection(),a(d)})})]}})})},t.prototype.removeItem=function(e){return te(this,void 0,void 0,function(){var r=this;return re(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(i,o){if(!r.db)return o(ue.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readwrite"),s=a.objectStore(r.tableName),c=s.delete(e);c.addEventListener("success",function(){r.closeConnection(),i()}),c.addEventListener("error",function(l){r.closeConnection(),o(l)})})]}})})},t.prototype.getKeys=function(){return te(this,void 0,void 0,function(){var e=this;return re(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(n,i){if(!e.db)return i(ue.createDatabaseNotOpenError());var o=e.db.transaction([e.tableName],"readonly"),a=o.objectStore(e.tableName),s=a.getAllKeys();s.addEventListener("success",function(c){var l=c;e.closeConnection(),n(l.target.result)}),s.addEventListener("error",function(c){e.closeConnection(),i(c)})})]}})})},t.prototype.containsKey=function(e){return te(this,void 0,void 0,function(){var r=this;return re(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(i,o){if(!r.db)return o(ue.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readonly"),s=a.objectStore(r.tableName),c=s.count(e);c.addEventListener("success",function(l){var d=l;r.closeConnection(),i(d.target.result===1)}),c.addEventListener("error",function(l){r.closeConnection(),o(l)})})]}})})},t.prototype.deleteDatabase=function(){return te(this,void 0,void 0,function(){return re(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(r,n){var i=window.indexedDB.deleteDatabase(I6);i.addEventListener("success",function(){return r(!0)}),i.addEventListener("blocked",function(){return r(!0)}),i.addEventListener("error",function(){return n(!1)})})]})})},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var xw=function(){function t(e,r){this.inMemoryCache=new H6,this.indexedDBCache=new LF,this.logger=e,this.storeName=r}return t.prototype.handleDatabaseAccessError=function(e){if(e instanceof ue&&e.errorCode===se.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e},t.prototype.getItem=function(e){return te(this,void 0,void 0,function(){var r,n;return re(this,function(i){switch(i.label){case 0:if(r=this.inMemoryCache.getItem(e),r)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,i.sent()];case 3:return n=i.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,r]}})})},t.prototype.setItem=function(e,r){return te(this,void 0,void 0,function(){var n;return re(this,function(i){switch(i.label){case 0:this.inMemoryCache.setItem(e,r),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,r)];case 2:return i.sent(),[3,4];case 3:return n=i.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},t.prototype.removeItem=function(e){return te(this,void 0,void 0,function(){var r;return re(this,function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return r=n.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2]}})})},t.prototype.getKeys=function(){return te(this,void 0,void 0,function(){var e,r;return re(this,function(n){switch(n.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return r=n.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,e]}})})},t.prototype.containsKey=function(e){return te(this,void 0,void 0,function(){var r,n;return re(this,function(i){switch(i.label){case 0:if(r=this.inMemoryCache.containsKey(e),r)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,i.sent()];case 3:return n=i.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,r]}})})},t.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},t.prototype.clearPersistent=function(){return te(this,void 0,void 0,function(){var e,r;return re(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=n.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return r=n.sent(),this.handleDatabaseAccessError(r),[2,!1];case 3:return[2]}})})},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var Vp;(function(t){t.asymmetricKeys="asymmetricKeys",t.symmetricKeys="symmetricKeys"})(Vp||(Vp={}));var OF=function(){function t(e){this.logger=e,this.asymmetricKeys=new xw(this.logger,Vp.asymmetricKeys),this.symmetricKeys=new xw(this.logger,Vp.symmetricKeys)}return t.prototype.clear=function(){return te(this,void 0,void 0,function(){var e;return re(this,function(r){switch(r.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return r.sent(),[2,!0];case 3:return e=r.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var NF=function(){function t(e,r,n){this.logger=e,this.browserCrypto=new K$(this.logger,n),this.b64Encode=new G$,this.b64Decode=new MF,this.guidGenerator=new W$(this.browserCrypto),this.pkceGenerator=new PF(this.browserCrypto),this.cache=new OF(this.logger),this.performanceClient=r}return t.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},t.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},t.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},t.prototype.generatePkceCodes=function(){return te(this,void 0,void 0,function(){return re(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},t.prototype.getPublicKeyThumbprint=function(e){var r;return te(this,void 0,void 0,function(){var n,i,o,a,s,c,l,d;return re(this,function(h){switch(h.label){case 0:return n=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(Nr.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(t.EXTRACTABLE,t.POP_KEY_USAGES)];case 1:return i=h.sent(),[4,this.browserCrypto.exportJwk(i.publicKey)];case 2:return o=h.sent(),a={e:o.e,kty:o.kty,n:o.n},s=Oa.getSortedObjectString(a),[4,this.hashString(s)];case 3:return c=h.sent(),[4,this.browserCrypto.exportJwk(i.privateKey)];case 4:return l=h.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return d=h.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:d,publicKey:i.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return h.sent(),n&&n.endMeasurement({success:!0}),[2,c]}})})},t.prototype.removeTokenBindingKey=function(e){return te(this,void 0,void 0,function(){var r;return re(this,function(n){switch(n.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return n.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return r=n.sent(),[2,!r]}})})},t.prototype.clearKeystore=function(){return te(this,void 0,void 0,function(){return re(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},t.prototype.signJwt=function(e,r,n){var i;return te(this,void 0,void 0,function(){var o,a,s,c,l,d,h,u,f,v,p,_,m;return re(this,function(g){switch(g.label){case 0:return o=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(Nr.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(r)];case 1:if(a=g.sent(),!a)throw ue.createSigningKeyNotFoundInStorageError(r);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=g.sent(),c=Oa.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:r})),d=hF.getShrHeaderString({kid:l,alg:s.alg}),h=this.b64Encode.urlEncode(d),e.cnf={jwk:JSON.parse(c)},u=this.b64Encode.urlEncode(JSON.stringify(e)),f=h+"."+u,v=Oa.stringToArrayBuffer(f),[4,this.browserCrypto.sign(a.privateKey,v)];case 3:return p=g.sent(),_=this.b64Encode.urlEncodeArr(new Uint8Array(p)),m=f+"."+_,o&&o.endMeasurement({success:!0}),[2,m]}})})},t.prototype.hashString=function(e){return te(this,void 0,void 0,function(){var r,n;return re(this,function(i){switch(i.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return r=i.sent(),n=new Uint8Array(r),[2,this.b64Encode.urlEncodeArr(n)]}})})},t.POP_KEY_USAGES=["sign","verify"],t.EXTRACTABLE=!0,t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var FF=function(){function t(e,r,n,i){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=r,this.logger=n,this.cryptoObj=i}return t.prototype.loadExternalTokens=function(e,r,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!r.id_token)throw ue.createUnableToLoadTokenError("Please ensure server response includes id token.");var i=new la(r.id_token,this.cryptoObj),o,a;if(e.account){var s=this.loadAccount(i,e.account.environment,void 0,void 0,e.account.homeAccountId);o=new p4(s,this.loadIdToken(i,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,r,s.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,r,s.homeAccountId,e.account.environment))}else if(e.authority){var c=Hp.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new Hp(c,this.config.system.networkClient,this.storage,l,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(i,a.hostnameAndPort,n.clientInfo,a.authorityType);o=new p4(s,this.loadIdToken(i,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort))}else if(r.client_info){this.logger.trace("TokenCache - homeAccountId from response");var s=this.loadAccount(i,a.hostnameAndPort,r.client_info,a.authorityType);o=new p4(s,this.loadIdToken(i,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort))}else throw ue.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw ue.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,i,o,a)},t.prototype.loadAccount=function(e,r,n,i,o){var a;if(o?a=o:i!==void 0&&n&&(a=dn.generateHomeAccountId(n,i,this.logger,this.cryptoObj,e)),!a)throw ue.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?dn.createAccount(n,a,e,void 0,void 0,void 0,r):dn.createGenericAccount(a,e,void 0,void 0,void 0,r);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw ue.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadIdToken=function(e,r,n,i){var o=uu.createIdTokenEntity(r,n,e.rawToken,this.config.auth.clientId,i);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(o),o;throw ue.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadAccessToken=function(e,r,n,i,o,a){if(!r.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!r.expires_in)throw ue.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw ue.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new Dn(e.scopes).printScopes(),c=a.expiresOn||r.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,d=fu.createAccessTokenEntity(n,i,r.access_token,this.config.auth.clientId,o,s,c,l,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(d),d;throw ue.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadRefreshToken=function(e,r,n,i){if(!r.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var o=$p.createRefreshTokenEntity(n,i,r.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(o),o;throw ue.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.generateAuthenticationResult=function(e,r,n,i){var o,a,s,c=$.EMPTY_STRING,l=[],d=null,h;n!=null&&n.accessToken&&(c=n.accessToken.secret,l=Dn.fromString(n.accessToken.target).asArray(),d=new Date(Number(n.accessToken.expiresOn)*1e3),h=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var u=(r==null?void 0:r.claims.oid)||(r==null?void 0:r.claims.sub)||$.EMPTY_STRING,f=(r==null?void 0:r.claims.tid)||$.EMPTY_STRING;return{authority:i?i.canonicalAuthority:$.EMPTY_STRING,uniqueId:u,tenantId:f,scopes:l,account:n!=null&&n.account?n.account.getAccountInfo():null,idToken:r?r.rawToken:$.EMPTY_STRING,idTokenClaims:r?r.claims:{},accessToken:c,fromCache:!0,expiresOn:d,correlationId:e.correlationId||$.EMPTY_STRING,requestId:$.EMPTY_STRING,extExpiresOn:h,familyId:$.EMPTY_STRING,tokenType:((o=n==null?void 0:n.accessToken)===null||o===void 0?void 0:o.tokenType)||$.EMPTY_STRING,state:$.EMPTY_STRING,cloudGraphHostName:((a=n==null?void 0:n.account)===null||a===void 0?void 0:a.cloudGraphHostName)||$.EMPTY_STRING,msGraphHost:((s=n==null?void 0:n.account)===null||s===void 0?void 0:s.msGraphHost)||$.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var BF=function(t){fn(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!1,n}return e}(L$);/*! @azure/msal-browser v2.32.2 2023-01-10 */var UF=function(t){fn(e,t);function e(r,n,i,o,a,s,c,l,d,h){var u=t.call(this,r,n,i,o,a,s,l,d,h)||this;return u.apiId=c,u}return e.prototype.acquireToken=function(r){return te(this,void 0,void 0,function(){var n,i,o,a,s,c,l;return re(this,function(d){switch(d.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!r.code)throw ue.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(r,xe.Silent)];case 1:n=d.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||$.EMPTY_STRING,n.account||null),i=this.initializeServerTelemetryManager(this.apiId),d.label=2;case 2:return d.trys.push([2,4,,5]),o=ze(ze({},n),{code:r.code}),[4,this.getClientConfiguration(i,n.authority)];case 3:return a=d.sent(),s=new BF(a),this.logger.verbose("Auth code client created"),c=new q$(s,this.browserStorage,o,this.logger,this.config.system),[2,c.handleCodeResponseFromServer({code:r.code,msgraph_host:r.msGraphHost,cloud_graph_host_name:r.cloudGraphHostName,cloud_instance_host_name:r.cloudInstanceHostName},n.state,s.authority,this.networkClient,!1)];case 4:throw l=d.sent(),l instanceof Ee&&l.setCorrelationId(this.correlationId),i.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(n.state),l;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(ue.createSilentLogoutUnsupportedError())},e}(qd);/*! @azure/msal-browser v2.32.2 2023-01-10 */var jF=function(){function t(e,r){this.correlationId=r,this.measureName="msal.measure."+e+"."+this.correlationId,this.startMark="msal.start."+e+"."+this.correlationId,this.endMark="msal.end."+e+"."+this.correlationId}return t.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},t.prototype.startMeasurement=function(){if(t.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},t.prototype.endMeasurement=function(){if(t.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},t.prototype.flushMeasurement=function(){if(t.supportsBrowserPerformance())try{var e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){var r=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),r}}catch{}return null},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var qF=function(t){fn(e,t);function e(r,n,i,o,a,s,c){var l=t.call(this,r,n,i,o,a,s)||this;return l.browserCrypto=new K$(l.logger,c),l.guidGenerator=new W$(l.browserCrypto),l}return e.prototype.startPerformanceMeasurement=function(r,n){return new jF(r,n)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var r;return((r=document.visibilityState)===null||r===void 0?void 0:r.toString())||null},e.prototype.startMeasurement=function(r,n){var i=this,o=this.getPageVisibility(),a=t.prototype.startMeasurement.call(this,r,n);return ze(ze({},a),{endMeasurement:function(s){return a.endMeasurement(ze({startPageVisibility:o,endPageVisibility:i.getPageVisibility()},s))}})},e}(F$);/*! @azure/msal-browser v2.32.2 2023-01-10 */var WF=function(){function t(e){this.isBrowserEnvironment=typeof window<"u",this.config=kF(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new w7(this.config.system.loggerOptions,Rm,Ch),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 qF(this.config.auth.clientId,this.config.auth.authority,this.logger,Rm,Ch,this.config.telemetry.application,this.config.system.cryptoOptions):new fF(this.config.auth.clientId,this.config.auth.authority,this.logger,Rm,Ch,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new NF(this.logger,this.performanceClient,this.config.system.cryptoOptions):Sp,this.eventHandler=new AF(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new T6(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):mF(this.config.auth.clientId,this.logger);var r={cacheLocation:Cn.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};this.nativeInternalStorage=new T6(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new FF(this.config,this.browserStorage,this.logger,this.browserCrypto)}return t.prototype.initialize=function(){return te(this,void 0,void 0,function(){var e,r;return re(this,function(n){switch(n.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(this.eventHandler.emitEvent(Ve.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),e=this,[4,t1.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout)];case 2:return e.nativeExtensionProvider=n.sent(),[3,4];case 3:return r=n.sent(),this.logger.verbose(r),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(Ve.INITIALIZE_END),[2]}})})},t.prototype.handleRedirectPromise=function(e){return te(this,void 0,void 0,function(){var r,n,i,o,a,s,c,l,d=this;return re(this,function(h){return this.logger.verbose("handleRedirectPromise called"),ur.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),r=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||$.EMPTY_STRING,i=this.redirectResponse.get(n),typeof i>"u"?(this.eventHandler.emitEvent(Ve.HANDLE_REDIRECT_START,xe.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),a=void 0,o&&t1.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new Hl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Vt.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId),a=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),c=this.browserStorage.getTemporaryCache(ut.CORRELATION_ID,!0)||$.EMPTY_STRING,l=this.createRedirectClient(c),a=l.handleRedirectPromise(e)),i=a.then(function(u){if(u){var f=r.length<d.getAllAccounts().length;f?(d.eventHandler.emitEvent(Ve.LOGIN_SUCCESS,xe.Redirect,u),d.logger.verbose("handleRedirectResponse returned result, login success")):(d.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_SUCCESS,xe.Redirect,u),d.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return d.eventHandler.emitEvent(Ve.HANDLE_REDIRECT_END,xe.Redirect),u}).catch(function(u){throw r.length>0?d.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_FAILURE,xe.Redirect,null,u):d.eventHandler.emitEvent(Ve.LOGIN_FAILURE,xe.Redirect,null,u),d.eventHandler.emitEvent(Ve.HANDLE_REDIRECT_END,xe.Redirect),u}),this.redirectResponse.set(n,i)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,i]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},t.prototype.acquireTokenRedirect=function(e){return te(this,void 0,void 0,function(){var r,n,i,o,a,s=this;return re(this,function(c){return r=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",r),this.preflightBrowserEnvironmentCheck(xe.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_START,xe.Redirect,e):this.eventHandler.emitEvent(Ve.LOGIN_START,xe.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(o=new Hl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Vt.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),i=o.acquireTokenRedirect(e).catch(function(l){if(l instanceof Yo&&l.isFatal()){s.nativeExtensionProvider=void 0;var d=s.createRedirectClient(e.correlationId);return d.acquireToken(e)}else if(l instanceof mo){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var d=s.createRedirectClient(e.correlationId);return d.acquireToken(e)}throw s.browserStorage.setInteractionInProgress(!1),l})):(a=this.createRedirectClient(e.correlationId),i=a.acquireToken(e)),[2,i.catch(function(l){throw n?s.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_FAILURE,xe.Redirect,null,l):s.eventHandler.emitEvent(Ve.LOGIN_FAILURE,xe.Redirect,null,l),l})]})})},t.prototype.acquireTokenPopup=function(e){var r=this,n=this.getRequestCorrelationId(e),i=this.performanceClient.startMeasurement(Nr.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(xe.Popup)}catch(c){return Promise.reject(c)}var o=this.getAllAccounts();o.length>0?this.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_START,xe.Popup,e):this.eventHandler.emitEvent(Ve.LOGIN_START,xe.Popup,e);var a;if(this.canUseNative(e))a=this.acquireTokenNative(e,Vt.acquireTokenPopup).then(function(c){return r.browserStorage.setInteractionInProgress(!1),i.endMeasurement({success:!0,isNativeBroker:!0,requestId:c.requestId}),i.flushMeasurement(),c}).catch(function(c){if(c instanceof Yo&&c.isFatal()){r.nativeExtensionProvider=void 0;var l=r.createPopupClient(e.correlationId);return l.acquireToken(e)}else if(c instanceof mo){r.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var l=r.createPopupClient(e.correlationId);return l.acquireToken(e)}throw r.browserStorage.setInteractionInProgress(!1),c});else{var s=this.createPopupClient(e.correlationId);a=s.acquireToken(e)}return a.then(function(c){var l=o.length<r.getAllAccounts().length;return l?r.eventHandler.emitEvent(Ve.LOGIN_SUCCESS,xe.Popup,c):r.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_SUCCESS,xe.Popup,c),i.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),i.endMeasurement({success:!0,requestId:c.requestId}),i.flushMeasurement(),c}).catch(function(c){return o.length>0?r.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_FAILURE,xe.Popup,null,c):r.eventHandler.emitEvent(Ve.LOGIN_FAILURE,xe.Popup,null,c),i.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),i.flushMeasurement(),Promise.reject(c)})},t.prototype.ssoSilent=function(e){return te(this,void 0,void 0,function(){var r,n,i,o,a,s=this;return re(this,function(c){return r=this.getRequestCorrelationId(e),n=ze(ze({},e),{prompt:e.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(xe.Silent),i=this.performanceClient.startMeasurement(Nr.SsoSilent,r),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(Ve.SSO_SILENT_START,xe.Silent,n),this.canUseNative(n)?o=this.acquireTokenNative(n,Vt.ssoSilent).catch(function(l){if(l instanceof Yo&&l.isFatal()){s.nativeExtensionProvider=void 0;var d=s.createSilentIframeClient(n.correlationId);return d.acquireToken(n)}throw l}):(a=this.createSilentIframeClient(n.correlationId),o=a.acquireToken(n)),[2,o.then(function(l){return s.eventHandler.emitEvent(Ve.SSO_SILENT_SUCCESS,xe.Silent,l),i.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),i.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),i.flushMeasurement(),l}).catch(function(l){throw s.eventHandler.emitEvent(Ve.SSO_SILENT_FAILURE,xe.Silent,null,l),i.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),i.flushMeasurement(),l})]})})},t.prototype.acquireTokenByCode=function(e){return te(this,void 0,void 0,function(){var r,n,i,o,a=this;return re(this,function(s){r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(xe.Silent),this.logger.trace("acquireTokenByCode called",r),this.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_BY_CODE_START,xe.Silent,e),n=this.performanceClient.startMeasurement(Nr.AcquireTokenByCode,e.correlationId);try{if(e.code)return i=e.code,o=this.hybridAuthCodeResponses.get(i),o?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.endMeasurement({success:!0}),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",r),o=this.acquireTokenByCodeAsync(ze(ze({},e),{correlationId:r})).then(function(c){return a.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_BY_CODE_SUCCESS,xe.Silent,c),a.hybridAuthCodeResponses.delete(i),n.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),n.flushMeasurement(),c}).catch(function(c){throw a.hybridAuthCodeResponses.delete(i),a.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_BY_CODE_FAILURE,xe.Silent,null,c),n.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),n.flushMeasurement(),c}),this.hybridAuthCodeResponses.set(i,o)),[2,o];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,Vt.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof Yo&&c.isFatal()&&(a.nativeExtensionProvider=void 0),c})];throw ue.createUnableToAcquireTokenFromNativePlatformError()}else throw ue.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_BY_CODE_FAILURE,xe.Silent,null,c),n.endMeasurement({errorCode:c instanceof Ee&&c.errorCode||void 0,subErrorCode:c instanceof Ee&&c.subError||void 0,success:!1}),c}return[2]})})},t.prototype.acquireTokenByCodeAsync=function(e){return te(this,void 0,void 0,function(){var r,n;return re(this,function(i){switch(i.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),r=this.createSilentAuthCodeClient(e.correlationId),[4,r.acquireToken(e)];case 1:return n=i.sent(),[2,n]}})})},t.prototype.acquireTokenFromCache=function(e,r,n){return te(this,void 0,void 0,function(){return re(this,function(i){switch(n.cacheLookupPolicy){case Zn.Default:case Zn.AccessToken:case Zn.AccessTokenAndRefreshToken:return[2,e.acquireToken(r)];default:throw me.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenByRefreshToken=function(e,r){return te(this,void 0,void 0,function(){var n;return re(this,function(i){switch(r.cacheLookupPolicy){case Zn.Default:case Zn.AccessTokenAndRefreshToken:case Zn.RefreshToken:case Zn.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),[2,n.acquireToken(e)];default:throw me.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenBySilentIframe=function(e){return te(this,void 0,void 0,function(){var r;return re(this,function(n){return r=this.createSilentIframeClient(e.correlationId),[2,r.acquireToken(e)]})})},t.prototype.logout=function(e){return te(this,void 0,void 0,function(){var r;return re(this,function(n){return r=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",r),[2,this.logoutRedirect(ze({correlationId:r},e))]})})},t.prototype.logoutRedirect=function(e){return te(this,void 0,void 0,function(){var r,n;return re(this,function(i){return r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(xe.Redirect),n=this.createRedirectClient(r),[2,n.logout(e)]})})},t.prototype.logoutPopup=function(e){try{var r=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(xe.Popup);var n=this.createPopupClient(r);return n.logout(e)}catch(i){return Promise.reject(i)}},t.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},t.prototype.getAccountByUsername=function(e){var r=this.getAllAccounts();return!fe.isEmpty(e)&&r&&r.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+e),r.filter(function(n){return n.username.toLowerCase()===e.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},t.prototype.getAccountByHomeId=function(e){var r=this.getAllAccounts();return!fe.isEmpty(e)&&r&&r.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+e),r.filter(function(n){return n.homeAccountId===e})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},t.prototype.getAccountByLocalId=function(e){var r=this.getAllAccounts();return!fe.isEmpty(e)&&r&&r.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+e),r.filter(function(n){return n.localAccountId===e})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},t.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},t.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},t.prototype.preflightBrowserEnvironmentCheck=function(e,r){if(r===void 0&&(r=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),ur.blockNonBrowserEnvironment(this.isBrowserEnvironment),ur.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),ur.blockReloadInHiddenIframes(),ur.blockAcquireTokenInPopups(),ur.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===xe.Redirect&&this.config.cache.cacheLocation===Cn.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Dp.createInMemoryRedirectUnavailableError();(e===xe.Redirect||e===xe.Popup)&&this.preflightInteractiveRequest(r)},t.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),ur.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},t.prototype.acquireTokenNative=function(e,r,n){return te(this,void 0,void 0,function(){var i;return re(this,function(o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw ue.createNativeConnectionNotEstablishedError();return i=new Hl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,r,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,i.acquireToken(e)]})})},t.prototype.canUseNative=function(e,r){if(this.logger.trace("canUseNative called"),!t1.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 $n.NONE:case $n.CONSENT:case $n.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!r&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},t.prototype.getNativeAccountId=function(e){var r=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return r&&r.nativeAccountId||""},t.prototype.createPopupClient=function(e){return new bF(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createRedirectClient=function(e){return new _F(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createSilentIframeClient=function(e){return new EF(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Vt.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createSilentCacheClient=function(e){return new j$(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentRefreshClient=function(e){return new SF(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentAuthCodeClient=function(e){return new UF(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Vt.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},t.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},t.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},t.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},t.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},t.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},t.prototype.getTokenCache=function(){return this.tokenCache},t.prototype.getLogger=function(){return this.logger},t.prototype.setLogger=function(e){this.logger=e},t.prototype.initializeWrapperLibrary=function(e,r){this.browserStorage.setWrapperMetadata(e,r)},t.prototype.setNavigationClient=function(e){this.navigationClient=e},t.prototype.getConfiguration=function(){return this.config},t.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():$.EMPTY_STRING},t}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var GF=function(t){fn(e,t);function e(r){var n=t.call(this,r)||this;return n.activeSilentTokenRequests=new Map,n}return e.prototype.loginRedirect=function(r){return te(this,void 0,void 0,function(){var n;return re(this,function(i){return n=this.getRequestCorrelationId(r),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect(ze({correlationId:n},r||gw))]})})},e.prototype.loginPopup=function(r){var n=this.getRequestCorrelationId(r);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup(ze({correlationId:n},r||gw))},e.prototype.acquireTokenSilent=function(r){return te(this,void 0,void 0,function(){var n,i,o,a,s,c,l,d=this;return re(this,function(h){if(n=this.getRequestCorrelationId(r),i=this.performanceClient.startMeasurement(Nr.AcquireTokenSilent,n),i.addStaticFields({cacheLookupPolicy:r.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(xe.Silent),this.logger.verbose("acquireTokenSilent called",n),o=r.account||this.getActiveAccount(),!o)throw ue.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:r.authority||$.EMPTY_STRING,scopes:r.scopes,homeAccountIdentifier:o.homeAccountId,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},s=JSON.stringify(a),c=this.activeSilentTokenRequests.get(s),typeof c>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",n),l=this.acquireTokenSilentAsync(ze(ze({},r),{correlationId:n}),o).then(function(u){return d.activeSilentTokenRequests.delete(s),i.addStaticFields({accessTokenSize:u.accessToken.length,idTokenSize:u.idToken.length}),i.endMeasurement({success:!0,fromCache:u.fromCache,isNativeBroker:u.fromNativeBroker,cacheLookupPolicy:r.cacheLookupPolicy,requestId:u.requestId}),i.flushMeasurement(),u}).catch(function(u){throw d.activeSilentTokenRequests.delete(s),i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),i.flushMeasurement(),u}),this.activeSilentTokenRequests.set(s,l),[2,l]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",n),i.endMeasurement({success:!0}),i.discardMeasurement(),[2,c])})})},e.prototype.acquireTokenSilentAsync=function(r,n){return te(this,void 0,void 0,function(){var i,o,a,s,c,l,d=this;return re(this,function(h){switch(h.label){case 0:return this.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_START,xe.Silent,r),i=this.performanceClient.startMeasurement(Nr.AcquireTokenSilentAsync,r.correlationId),t1.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,r.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=ze(ze({},r),{account:n}),o=this.acquireTokenNative(a,Vt.acquireTokenSilent_silentFlow).catch(function(u){return te(d,void 0,void 0,function(){var f;return re(this,function(v){if(u instanceof Yo&&u.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,f=this.createSilentIframeClient(r.correlationId),[2,f.acquireToken(r)];throw u})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(r.correlationId),[4,s.initializeSilentRequest(r,n)];case 2:c=h.sent(),l=ze(ze({},r),{cacheLookupPolicy:r.cacheLookupPolicy||Zn.Default}),o=this.acquireTokenFromCache(s,c,l).catch(function(u){if(l.cacheLookupPolicy===Zn.AccessToken)throw u;return ur.blockReloadInHiddenIframes(),d.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_NETWORK_START,xe.Silent,c),d.acquireTokenByRefreshToken(c,l).catch(function(f){var v=f instanceof l1,p=f instanceof mo,_=f.errorCode===fo.INVALID_GRANT_ERROR;if((!v||!_||p||l.cacheLookupPolicy===Zn.AccessTokenAndRefreshToken||l.cacheLookupPolicy===Zn.RefreshToken)&&l.cacheLookupPolicy!==Zn.Skip)throw f;return d.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",r.correlationId),d.acquireTokenBySilentIframe(c)})}),h.label=3;case 3:return[2,o.then(function(u){return d.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_SUCCESS,xe.Silent,u),i.endMeasurement({success:!0,fromCache:u.fromCache,isNativeBroker:u.fromNativeBroker,requestId:u.requestId}),u}).catch(function(u){throw d.eventHandler.emitEvent(Ve.ACQUIRE_TOKEN_FAILURE,xe.Silent,null,u),i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},e}(WF);const zw="redirect";var Cw=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class KF extends GF{get account(){return this.getAllAccounts().find(n=>{var i;return((i=n.idTokenClaims)===null||i===void 0?void 0:i.aud)===this.clientId})}get hasValidClaims(){var e;const r=(e=this.account)===null||e===void 0?void 0:e.idTokenClaims;if(r){const n=Math.ceil(Date.now()/1e3);return r.exp>n}return!1}get clientId(){var e;return(e=this.config.auth)===null||e===void 0?void 0:e.clientId}get requestOrigin(){return this.browserStorage.getTemporaryCache("request.origin",!0)}constructor(e,r){super(r),this.tenantId=e}login(e,r=zw,n=!0){var i;return Cw(this,void 0,void 0,function*(){const o=(e==null?void 0:e.loginHint)||((i=this.account)===null||i===void 0?void 0:i.username),a=(e==null?void 0:e.scopes)||[],s=Object.assign(Object.assign({},e),{loginHint:o,scopes:a});if(o&&n){this.logger.verbose("Attempting to login in silently");try{return yield this.ssoSilent(s)}catch{this.logger.verbose("Silent login attempt failed")}}switch(this.logger.verbose(`Attempting to login in by [${r}]`),r){case"popup":return this.loginPopup(s);case"redirect":return this.loginRedirect(s)}})}acquireToken(e={scopes:[]},r=zw,n=!0){return Cw(this,void 0,void 0,function*(){const i=yield this.account;if(n&&i){this.logger.verbose("Attempting to acquire token in silently");try{return yield this.acquireTokenSilent(Object.assign({account:i},e))}catch{this.logger.info("Expected to navigate away from the current page but timeout occurred.")}}switch(this.logger.verbose(`Attempting to acquire token by [${r}]`),r){case"popup":return this.acquireTokenPopup(e);case"redirect":return this.acquireTokenRedirect(e)}})}}const YF=(t,e=window.location.origin)=>{t=t.match(/^http[s]?/)?t:e+t;const{origin:r,pathname:n}=new URL(t);return r+n.replace(/([^:]\/)\/+/g,"$1")},XF=(t,e,r,n,i)=>{const o=Object.assign({clientId:e,redirectUri:YF(r||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${t}`},n==null?void 0:n.auth),a=Object.assign({cacheLocation:"localStorage"},n==null?void 0:n.cache),s=n==null?void 0:n.system;return new(i||KF)(t,{auth:o,cache:a,system:s})};class Y$ extends w7{constructor(e){super({logLevel:e,loggerCallback:(...r)=>this.loggerCallback(...r)}),this.getLogType=r=>{switch(r){case cr.Error:return"error";case cr.Warning:return"warn";case cr.Info:return"info";case cr.Verbose:default:return"debug"}}}loggerCallback(e,r,n){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",r)}}var Dm=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const QF="default";class JF{get defaultClient(){return this.getClient(QF)}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 r=e?this._config.getClientConfig(e):this._config.defaultConfig;if(!r)throw Error("Could not find any config");const n=XF(r.tenantId,r.clientId,r.redirectUri,r.config);return n.setLogger(new Y$(0)),n}handleRedirect(){return Dm(this,void 0,void 0,function*(){const{redirectUri:e}=this.defaultConfig||{};if(window.location.pathname===e){const r=this.defaultClient,n=r.getLogger(),{requestOrigin:i}=r;yield r.handleRedirectPromise(),i===e?(n.warning(`detected callback loop from url ${e}, redirecting to root`),window.location.replace("/")):window.location.replace(i||"/")}return null})}acquireToken(e){return this.defaultClient.acquireToken(e)}acquireAccessToken(e){return Dm(this,void 0,void 0,function*(){const r=yield this.acquireToken(e);return r?r.accessToken:void 0})}login(){return Dm(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var ZF=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const X$={name:"auth",configure:t=>{var e;const r=new BN;return!((e=t==null?void 0:t.auth)===null||e===void 0)&&e.defaultConfig&&r.configureDefault(t.auth.defaultConfig),r},initialize:({config:t})=>ZF(void 0,void 0,void 0,function*(){const e=new JF(t);return t.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},eB=(t,e)=>({module:X$,configure:r=>{r.configureDefault(t),(e==null?void 0:e.requiresAuth)!==void 0&&(r.requiresAuth=e==null?void 0:e.requiresAuth);const{clients:n}=e??{};n&&Object.entries(n).forEach(([i,o])=>r.configureClient(i,o))}});var C7=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const tB=t=>{var e;return{id:t.id,isChildType:t.isChildType,parentTypeIds:(e=t.parentTypeIds)!==null&&e!==void 0?e:[]}},k7=t=>{var e,r,n,i;return{id:t.id,externalId:(e=t.externalId)!==null&&e!==void 0?e:void 0,isActive:t.isActive,isDeleted:t.isDeleted,created:new Date(t.created),source:(r=t.source)!==null&&r!==void 0?r:void 0,title:(n=t.title)!==null&&n!==void 0?n:void 0,type:tB(t.type),value:(i=t.value)!==null&&i!==void 0?i:{}}},rB=t=>C7(void 0,void 0,void 0,function*(){const e=yield t.json();return k7(e)}),nB=t=>C7(void 0,void 0,void 0,function*(){return(yield t.json()).map(k7)}),iB=t=>C7(void 0,void 0,void 0,function*(){return(yield t.json()).map(k7)});var oB=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},aB=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},v4;class sB{constructor(e,r={}){this.config=r,v4.set(this,void 0),oB(this,v4,e,"f")}requireInstance(e){return aB(this,v4,"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}setResolveInitialContext(e){this.config.resolveInitialContext=e}setContextClient(e,r=1*60*1e3){this.config.client={get:typeof e.get=="function"?{key:({id:n})=>n,client:{fn:e.get},expire:r}:e.get,query:typeof e.query=="function"?{key:n=>JSON.stringify(n),client:{fn:e.query},expire:r}:e.query},e.related&&(this.config.client.related=typeof e.related=="function"?{key:n=>JSON.stringify(n),client:{fn:e.related},expire:r}:e.related)}}v4=new WeakMap;const cB=/^(?:(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12})$/,lB=t=>t.replace(/^\/+/,"").split("/").shift(),dB=t=>!!t.match(cB),hB=(t,e)=>r=>{const{extract:n=lB,validate:i=dB}=e??{},o=n(r);if(!o)return Fr;if(i(o))return t.contextClient.resolveContext(o);throw Error(`Failed to validate context [${o}] from path [${r}]`)},uB=({ref:t})=>{const e=t==null?void 0:t.context;if(!e)throw Error(["resolveContextFromNavigation","ref does not support context!"].join(`
74
- `));return e.currentContext?Eo(e.currentContext):Fr},fB=t=>({ref:e,modules:r})=>{const{context:n,navigation:i}=r,o=hB(n,t==null?void 0:t.path);return oN(i?o(i.path.pathname):Fr,uB({ref:e,modules:r})).pipe(yN())};var df=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},kw=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},m4;class pB{constructor(){this.defaultExpireTime=1*60*1e3,m4.set(this,[])}addConfigBuilder(e){kw(this,m4,"f").push(e)}_getServiceProvider(e){var r;return df(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const n=(r=e.ref)===null||r===void 0?void 0:r.services;if(n)return n;throw Error("no service services provider configures [ServicesModule]")}})}createConfig(e){var r,n;return df(this,void 0,void 0,function*(){const i=yield kw(this,m4,"f").reduce((o,a)=>df(this,void 0,void 0,function*(){const s=new sB(e,yield o);return yield Promise.resolve(a(s)),Object.assign(o,s.config)}),Promise.resolve({}));return(r=i.resolveInitialContext)!==null&&r!==void 0||(i.resolveInitialContext=fB()),(n=i.client)!==null&&n!==void 0||(i.client=yield(()=>df(this,void 0,void 0,function*(){const a=yield(yield this._getServiceProvider(e)).createContextClient("json$");return{get:{client:{fn:s=>a.get("v1",s,{selector:rB})},key:({id:s})=>s,expire:this.defaultExpireTime},query:{client:{fn:s=>a.query("v1",{query:s},{selector:nB})},key:s=>JSON.stringify(s),expire:this.defaultExpireTime},related:{client:{fn:s=>a.related("v1",{id:s.item.id,query:{filter:s.filter}},{selector:iB})},key:s=>JSON.stringify(s),expire:this.defaultExpireTime}}}))()),i})}}m4=new WeakMap;var vB=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(e[a],r[a]))return!1}return!0}return e!==e&&r!==r},Ew;(function(t){t.IDLE="idle",t.ACTIVE="active",t.FAILED="failed",t.CANCELED="canceled"})(Ew||(Ew={}));const mB=t=>e=>e.pipe(pN(t)),gB=t=>e=>e.pipe(bo(t)),yB=t=>e=>e.pipe(hr(t)),_B=t=>t.pipe(xt(e=>e.value));var hf,bB=new Uint8Array(16);function wB(){if(!hf&&(hf=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!hf))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return hf(bB)}const xB=/^(?:[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 Q$(t){return typeof t=="string"&&xB.test(t)}var nn=[];for(var Vm=0;Vm<256;++Vm)nn.push((Vm+256).toString(16).substr(1));function J$(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(nn[t[e+0]]+nn[t[e+1]]+nn[t[e+2]]+nn[t[e+3]]+"-"+nn[t[e+4]]+nn[t[e+5]]+"-"+nn[t[e+6]]+nn[t[e+7]]+"-"+nn[t[e+8]]+nn[t[e+9]]+"-"+nn[t[e+10]]+nn[t[e+11]]+nn[t[e+12]]+nn[t[e+13]]+nn[t[e+14]]+nn[t[e+15]]).toLowerCase();if(!Q$(r))throw TypeError("Stringified UUID is invalid");return r}function zB(t){if(!Q$(t))throw TypeError("Invalid UUID");var e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function CB(t){t=unescape(encodeURIComponent(t));for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}var kB="6ba7b810-9dad-11d1-80b4-00c04fd430c8",EB="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function SB(t,e,r){function n(i,o,a,s){if(typeof i=="string"&&(i=CB(i)),typeof o=="string"&&(o=zB(o)),o.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+i.length);if(c.set(o),c.set(i,o.length),c=r(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,a){s=s||0;for(var l=0;l<16;++l)a[s+l]=c[l];return a}return J$(c)}try{n.name=t}catch{}return n.DNS=kB,n.URL=EB,n}function Z$(t,e,r){t=t||{};var n=t.random||(t.rng||wB)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(var i=0;i<16;++i)e[r+i]=n[i];return e}return J$(n)}function AB(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:return e^r^n;case 2:return e&r^e&n^r&n;case 3:return e^r^n}}function Lm(t,e){return t<<e|t>>>32-e}function MB(t){var e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var n=unescape(encodeURIComponent(t));t=[];for(var i=0;i<n.length;++i)t.push(n.charCodeAt(i))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var o=t.length/4+2,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),d=0;d<16;++d)l[d]=t[c*64+d*4]<<24|t[c*64+d*4+1]<<16|t[c*64+d*4+2]<<8|t[c*64+d*4+3];s[c]=l}s[a-1][14]=(t.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(t.length-1)*8&4294967295;for(var h=0;h<a;++h){for(var u=new Uint32Array(80),f=0;f<16;++f)u[f]=s[h][f];for(var v=16;v<80;++v)u[v]=Lm(u[v-3]^u[v-8]^u[v-14]^u[v-16],1);for(var p=r[0],_=r[1],m=r[2],g=r[3],b=r[4],w=0;w<80;++w){var x=Math.floor(w/20),C=Lm(p,5)+AB(x,_,m,g)+b+e[x]+u[w]>>>0;b=g,g=m,m=Lm(_,30)>>>0,_=p,p=C}r[0]=r[0]+p>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var $B=SB("v5",80,MB);const PB=$B;class D6 extends Error{constructor(e,r){super(r.message,{cause:r.cause}),this.type=e,this.name="QueryClientError",this.request=r.request}}const Wd=(...t)=>ir(e=>t.includes(e.type));var wn=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},IB=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Lo,no;class t5 extends it{get action$(){return wn(this,Lo,"f").asObservable()}get value(){return wn(this,no,"f").value}get closed(){return wn(this,no,"f").closed||wn(this,Lo,"f").closed}constructor(e,r){super(i=>wn(this,no,"f").subscribe(i)),Lo.set(this,new Va),no.set(this,void 0);const n="getInitialState"in e?e.getInitialState():r;IB(this,no,new jd(n),"f"),wn(this,Lo,"f").pipe($$(e,n),A$()).subscribe(wn(this,no,"f")),this.reset=()=>wn(this,no,"f").next(n)}next(e){wn(this,Lo,"f").next(e)}addEffect(e,r){const n=typeof e=="string"?this.action$.pipe(Wd(e)):this.action$,i=r||e;return n.pipe(bo(o=>Lr(new Promise((a,s)=>{try{a(i(o,this.value))}catch(c){s(c)}})).pipe(Br(a=>(console.warn("unhandled effect",a),Fr)))),ir(o=>!!o),bp(_p)).subscribe(wn(this,Lo,"f"))}addEpic(e){return this.addFlow(e)}addFlow(e){const r=e(this.action$,this);if(!r)throw new TypeError(`addEpic: one of the provided effects "${e.name||"<anonymous>"}" does not return a stream. Double check you're not missing a return statement!`);return r.pipe(Br(n=>(console.trace("unhandled exception, epic closed!",n),Fr)),bp(_p)).subscribe(wn(this,Lo,"f"))}unsubscribe(){wn(this,Lo,"f").unsubscribe(),wn(this,no,"f").unsubscribe()}complete(){wn(this,Lo,"f").complete(),wn(this,no,"f").complete()}asObservable(){return wn(this,no,"f").asObservable()}}Lo=new WeakMap,no=new WeakMap;const eP=(t,e)=>Object.entries(t).reduce((r,[n,i])=>Object.assign(r,{[n]:typeof i=="function"?(...o)=>e.next(i(...o)):eP(i,e)}),{});function cn(t,e){function r(...n){if(e){const i=e(...n);if(!i)throw new Error("prepareAction did not return an object");return Object.assign(Object.assign({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=n=>n.type===t,r}const g4="::",E7=t=>new RegExp(`${g4}\\${t}$`),Sw=t=>t.type.replace(E7("\\w+$"),"");function qo(t,e,r,n){const i=cn([t,"request"].join(g4),e);return r&&Object.assign(i,{success:cn([t,"success"].join(g4),r)}),n&&Object.assign(i,{failure:cn([t,"failure"].join(g4),n)}),i}const HB=t=>!!t.type.match(/::request$/),TB=t=>!!t.type.match(E7("success")),RB=t=>!!t.type.match(E7("failure")),DB=t=>TB(t)||RB(t);function mi(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Gs(t){return!!t&&!!t[gt]}function So(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===WB}(t)||Array.isArray(t)||!!t[Rw]||!!(!((e=t.constructor)===null||e===void 0)&&e[Rw])||S7(t)||A7(t))}function Aw(t){return Gs(t)||mi(23,t),t[gt].t}function rd(t,e,r){r===void 0&&(r=!1),Gd(t)===0?(r?Object.keys:H7)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Gd(t){var e=t[gt];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:S7(t)?2:A7(t)?3:0}function V6(t,e){return Gd(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function VB(t,e){return Gd(t)===2?t.get(e):t[e]}function tP(t,e,r){var n=Gd(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function LB(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function S7(t){return jB&&t instanceof Map}function A7(t){return qB&&t instanceof Set}function jr(t){return t.o||t.t}function M7(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=GB(t);delete e[gt];for(var r=H7(e),n=0;n<r.length;n++){var i=r[n],o=e[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function $7(t,e){return e===void 0&&(e=!1),P7(t)||Gs(t)||!So(t)||(Gd(t)>1&&(t.set=t.add=t.clear=t.delete=OB),Object.freeze(t),e&&rd(t,function(r,n){return $7(n,!0)},!0)),t}function OB(){mi(2)}function P7(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function oa(t){var e=O6[t];return e||mi(18,t),e}function NB(t,e){O6[t]||(O6[t]=e)}function Lp(){return vu}function Om(t,e){e&&(oa("Patches"),t.u=[],t.s=[],t.v=e)}function Op(t){L6(t),t.p.forEach(FB),t.p=null}function L6(t){t===vu&&(vu=t.l)}function Mw(t){return vu={p:[],l:vu,h:t,m:!0,_:0}}function FB(t){var e=t[gt];e.i===0||e.i===1?e.j():e.O=!0}function Nm(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.g||oa("ES5").S(e,t,n),n?(r[gt].P&&(Op(e),mi(4)),So(t)&&(t=Np(e,t),e.l||Fp(e,t)),e.u&&oa("Patches").M(r[gt].t,t,e.u,e.s)):t=Np(e,r,[]),Op(e),e.u&&e.v(e.u,e.s),t!==rP?t:void 0}function Np(t,e,r){if(P7(e))return e;var n=e[gt];if(!n)return rd(e,function(s,c){return $w(t,n,e,s,c,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Fp(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=M7(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),rd(o,function(s,c){return $w(t,n,i,s,c,r,a)}),Fp(t,i,!1),r&&t.u&&oa("Patches").N(n,r,t.u,t.s)}return n.o}function $w(t,e,r,n,i,o,a){if(Gs(i)){var s=Np(t,i,o&&e&&e.i!==3&&!V6(e.R,n)?o.concat(n):void 0);if(tP(r,n,s),!Gs(s))return;t.m=!1}else a&&r.add(i);if(So(i)&&!P7(i)){if(!t.h.D&&t._<1)return;Np(t,i),e&&e.A.l||Fp(t,i)}}function Fp(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&$7(e,r)}function Fm(t,e){var r=t[gt];return(r?jr(r):t)[e]}function Pw(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ca(t){t.P||(t.P=!0,t.l&&Ca(t.l))}function Bm(t){t.o||(t.o=M7(t.t))}function pu(t,e,r){var n=S7(e)?oa("MapSet").F(e,r):A7(e)?oa("MapSet").T(e,r):t.g?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:Lp(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},c=s,l=N6;a&&(c=[s],l=X2);var d=Proxy.revocable(c,l),h=d.revoke,u=d.proxy;return s.k=u,s.j=h,u}(e,r):oa("ES5").J(e,r);return(r?r.A:Lp()).p.push(n),n}function BB(t){return Gs(t)||mi(22,t),function e(r){if(!So(r))return r;var n,i=r[gt],o=Gd(r);if(i){if(!i.P&&(i.i<4||!oa("ES5").K(i)))return i.t;i.I=!0,n=Iw(r,o),i.I=!1}else n=Iw(r,o);return rd(n,function(a,s){i&&VB(i.t,a)===s||tP(n,a,e(s))}),o===3?new Set(n):n}(t)}function Iw(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return M7(t)}function UB(){function t(s,c){function l(){this.constructor=s}i(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 r(s){s.o||(s.o=new Set,s.t.forEach(function(c){if(So(c)){var l=pu(s.A.h,c,s);s.p.set(c,l),s.o.add(l)}else s.o.add(c)}))}function n(s){s.O&&mi(3,JSON.stringify(jr(s)))}var i=function(s,c){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(s,c)},o=function(){function s(l,d){return this[gt]={i:2,l:d,A:d?d.A:Lp(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,O:!1},this}t(s,Map);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return jr(this[gt]).size}}),c.has=function(l){return jr(this[gt]).has(l)},c.set=function(l,d){var h=this[gt];return n(h),jr(h).has(l)&&jr(h).get(l)===d||(e(h),Ca(h),h.R.set(l,!0),h.o.set(l,d),h.R.set(l,!0)),this},c.delete=function(l){if(!this.has(l))return!1;var d=this[gt];return n(d),e(d),Ca(d),d.t.has(l)?d.R.set(l,!1):d.R.delete(l),d.o.delete(l),!0},c.clear=function(){var l=this[gt];n(l),jr(l).size&&(e(l),Ca(l),l.R=new Map,rd(l.t,function(d){l.R.set(d,!1)}),l.o.clear())},c.forEach=function(l,d){var h=this;jr(this[gt]).forEach(function(u,f){l.call(d,h.get(f),f,h)})},c.get=function(l){var d=this[gt];n(d);var h=jr(d).get(l);if(d.I||!So(h)||h!==d.t.get(l))return h;var u=pu(d.A.h,h,d);return e(d),d.o.set(l,u),u},c.keys=function(){return jr(this[gt]).keys()},c.values=function(){var l,d=this,h=this.keys();return(l={})[uf]=function(){return d.values()},l.next=function(){var u=h.next();return u.done?u:{done:!1,value:d.get(u.value)}},l},c.entries=function(){var l,d=this,h=this.keys();return(l={})[uf]=function(){return d.entries()},l.next=function(){var u=h.next();if(u.done)return u;var f=d.get(u.value);return{done:!1,value:[u.value,f]}},l},c[uf]=function(){return this.entries()},s}(),a=function(){function s(l,d){return this[gt]={i:3,l:d,A:d?d.A:Lp(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,O:!1,C:!1},this}t(s,Set);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return jr(this[gt]).size}}),c.has=function(l){var d=this[gt];return n(d),d.o?!!d.o.has(l)||!(!d.p.has(l)||!d.o.has(d.p.get(l))):d.t.has(l)},c.add=function(l){var d=this[gt];return n(d),this.has(l)||(r(d),Ca(d),d.o.add(l)),this},c.delete=function(l){if(!this.has(l))return!1;var d=this[gt];return n(d),r(d),Ca(d),d.o.delete(l)||!!d.p.has(l)&&d.o.delete(d.p.get(l))},c.clear=function(){var l=this[gt];n(l),jr(l).size&&(r(l),Ca(l),l.o.clear())},c.values=function(){var l=this[gt];return n(l),r(l),l.o.values()},c.entries=function(){var l=this[gt];return n(l),r(l),l.o.entries()},c.keys=function(){return this.values()},c[uf]=function(){return this.values()},c.forEach=function(l,d){for(var h=this.values(),u=h.next();!u.done;)l.call(d,u.value,u.value,this),u=h.next()},s}();NB("MapSet",{F:function(s,c){return new o(s,c)},T:function(s,c){return new a(s,c)}})}var Hw,vu,I7=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",jB=typeof Map<"u",qB=typeof Set<"u",Tw=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",rP=I7?Symbol.for("immer-nothing"):((Hw={})["immer-nothing"]=!0,Hw),Rw=I7?Symbol.for("immer-draftable"):"__$immer_draftable",gt=I7?Symbol.for("immer-state"):"__$immer_state",uf=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",WB=""+Object.prototype.constructor,H7=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,GB=Object.getOwnPropertyDescriptors||function(t){var e={};return H7(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},O6={},N6={get:function(t,e){if(e===gt)return t;var r=jr(t);if(!V6(r,e))return function(i,o,a){var s,c=Pw(o,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!So(n)?n:n===Fm(t.t,e)?(Bm(t),t.o[e]=pu(t.A.h,n,t)):n},has:function(t,e){return e in jr(t)},ownKeys:function(t){return Reflect.ownKeys(jr(t))},set:function(t,e,r){var n=Pw(jr(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Fm(jr(t),e),o=i==null?void 0:i[gt];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(LB(r,i)&&(r!==void 0||V6(t.t,e)))return!0;Bm(t),Ca(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Fm(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Bm(t),Ca(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=jr(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){mi(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){mi(12)}},X2={};rd(N6,function(t,e){X2[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),X2.deleteProperty=function(t,e){return X2.set.call(this,t,e,void 0)},X2.set=function(t,e,r){return N6.set.call(this,t[0],e,r,t[0])};var KB=function(){function t(r){var n=this;this.g=Tw,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var c=n;return function(p){var _=this;p===void 0&&(p=s);for(var m=arguments.length,g=Array(m>1?m-1:0),b=1;b<m;b++)g[b-1]=arguments[b];return c.produce(p,function(w){var x;return(x=o).call.apply(x,[_,w].concat(g))})}}var l;if(typeof o!="function"&&mi(6),a!==void 0&&typeof a!="function"&&mi(7),So(i)){var d=Mw(n),h=pu(n,i,void 0),u=!0;try{l=o(h),u=!1}finally{u?Op(d):L6(d)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return Om(d,a),Nm(p,d)},function(p){throw Op(d),p}):(Om(d,a),Nm(l,d))}if(!i||typeof i!="object"){if((l=o(i))===void 0&&(l=i),l===rP&&(l=void 0),n.D&&$7(l,!0),a){var f=[],v=[];oa("Patches").M(i,l,f,v),a(f,v)}return l}mi(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(l){for(var d=arguments.length,h=Array(d>1?d-1:0),u=1;u<d;u++)h[u-1]=arguments[u];return n.produceWithPatches(l,function(f){return i.apply(void 0,[f].concat(h))})};var a,s,c=n.produce(i,o,function(l,d){a=l,s=d});return typeof Promise<"u"&&c instanceof Promise?c.then(function(l){return[l,a,s]}):[c,a,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){So(r)||mi(8),Gs(r)&&(r=BB(r));var n=Mw(this),i=pu(this,r,void 0);return i[gt].C=!0,L6(n),i},e.finishDraft=function(r,n){var i=r&&r[gt],o=i.A;return Om(o,n),Nm(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Tw&&mi(20),this.g=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=oa("Patches").$;return Gs(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},t}(),Ei=new KB,nP=Ei.produce;Ei.produceWithPatches.bind(Ei);Ei.setAutoFreeze.bind(Ei);Ei.setUseProxies.bind(Ei);Ei.applyPatches.bind(Ei);Ei.createDraft.bind(Ei);Ei.finishDraft.bind(Ei);function Dw(t){return So(t)?nP(t,()=>{}):t}function YB(t){return typeof t=="function"}function t0(t,e){const[r,n,i]=XB(e);let o;if(YB(t))o=()=>Dw(t());else{const s=Dw(t);o=()=>s}function a(s=o(),c){let l=[r[c.type],...n.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return l.filter(d=>!!d).length===0&&(l=[i]),l.reduce((d,h)=>{if(h)if(Gs(d)){const f=h(d,c);return f===void 0?d:f}else{if(So(d))return nP(d,u=>h(u,c));{const u=h(d,c);if(u===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return u}}return d},s)}return a.getInitialState=o,a}function XB(t){const e={},r=[];let n;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=a,i},addMatcher(o,a){return r.push({matcher:o,reducer:a}),i},addDefaultCase(o){return n=o,i}};return t(i),[e,r,n]}function QB(t,e){const r=typeof e=="function"?e:t0(e.initial,o=>e.builder(o,t)),n=new t5(r),i=eP(t,n);return{actions:t,dispatch:i,subject:n}}const JB=()=>({request:cn("client/request",(e,r)=>{var n,i,o,a;return r??(r={}),(n=r.transaction)!==null&&n!==void 0||(r.transaction=Z$()),(i=r.created)!==null&&i!==void 0||(r.created=Date.now()),(o=r.controller)!==null&&o!==void 0||(r.controller=new AbortController),(a=r.task)!==null&&a!==void 0||(r.task=new s$),{payload:e,meta:r}}),retry:cn("client/retry",e=>({payload:e})),success:cn("client/success",(e,r)=>({payload:e,meta:r})),cancel:cn("client/cancel",e=>({payload:e})),failure:cn("client/failure",(e,r)=>({payload:e,meta:r})),error:cn("client/error",(e,r)=>({payload:e,meta:r}))}),zr=JB(),iP=t=>e=>e.pipe(ir(zr.request.match),bo(r=>{const{meta:{controller:n,transaction:i}}=r;return new it(o=>{if(n.signal.aborted)return o.next(zr.cancel({transaction:i,reason:`request [${i}] was aborted!`})),o.complete();o.add(e.pipe(ir(zr.cancel.match)).subscribe(a=>{a.payload.transaction===i&&(n.signal.aborted||n.abort(),o.complete())})),o.add(w6(n.signal,"abort").subscribe(()=>{o.next(zr.cancel({transaction:i,reason:`request [${i}] was aborted!`})),o.complete()})),o.add(Lr(t(r)).subscribe({next:a=>o.next(a),error:a=>o.next(zr.error(a,{request:r})),complete:()=>o.complete()}))})})),ZB=t=>(t=Object.assign({},{count:0,delay:0},t),(e,r)=>e.pipe(iP(n=>e.pipe(ir(zr.failure.match),ir(i=>i.meta.request===n),I$(r),hr(([i,o])=>{var a,s;const{transaction:c}=n.meta,l=o[c];if(!l)return Fr;const d=(s=(a=l.retry)===null||a===void 0?void 0:a.length)!==null&&s!==void 0?s:0,h=Object.assign({},t,n.meta.retry);if(d>=h.count)throw h.count?Error("maximum retries executed!",{cause:i.payload}):i.payload;return(typeof h.delay=="function"?Lr(h.delay(i.payload.cause)).pipe(Br(f=>{throw Error("failed to resolve delay",{cause:f})})):uN(h.delay)).pipe(xt(()=>zr.retry(n)))}))))),eU=t=>e=>e.pipe(iP(r=>Lr(t(r.payload,r.meta.controller.signal)).pipe(xt(n=>zr.success(n,{request:r})),Br(n=>Eo(zr.failure(Error(`failed to execute request for transaction ${r.meta.transaction}`,{cause:n}),{request:r})))))),tU=t=>t.pipe(ir(zr.retry.match),xt(e=>e.payload)),oP=()=>ir(t=>t.status==="complete"),rU=(t={})=>t0(t,e=>e.addCase(zr.request,(r,n)=>{const{transaction:i,task:o,ref:a,created:s}=n.meta;r[i]={transaction:i,task:o,ref:a,created:s}}).addCase(zr.success,(r,n)=>{const{request:i}=n.meta,{transaction:o,ref:a}=i.meta,s=r[o];if(s){const c={status:"complete",transaction:o,ref:a,value:n.payload,args:i.payload,created:s.created,completed:Date.now()};s.task.next(c),s.task.complete()}delete r[o]}).addCase(zr.retry,(r,n)=>{var i;const{transaction:o}=n.payload.meta,a=r[o];a&&((i=a.retry)!==null&&i!==void 0||(a.retry=[]),a.retry.push(Date.now()))}).addCase(zr.cancel,(r,n)=>{const{transaction:i,reason:o}=n.payload;if(r[i]){const a=Object.assign({},Aw(r[i]));a.task.error(new D6("abort",{request:a,message:o??"request was canceled"})),delete r[i]}}).addCase(zr.failure,(r,n)=>{var i;const{payload:o,meta:a}=n,{transaction:s}=a.request.meta,c=r[s];c&&((i=c.errors)!==null&&i!==void 0||(c.errors=[]),c.errors.push(o))}).addCase(zr.error,(r,n)=>{const{payload:i,meta:o}=n,{transaction:a}=o.request.meta;if(r[a]){const s=Object.assign({},Aw(r[a]));s.task.error(new D6("error",{request:s,message:`failed to process task [${a}]`,cause:i.cause})),delete r[a]}}));var nU=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},vr=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Vw=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},_r,Ic;class Lw extends it{get closed(){return vr(this,_r,"f").closed}get state$(){return vr(this,_r,"f")}get action$(){return vr(this,_r,"f").action$}get success$(){return this.action$.pipe(ir(zr.success.match),xt(({payload:e})=>e))}get error$(){return this.action$.pipe(Wd("client/error"),I$(vr(this,_r,"f")),xt(([e,r])=>{const{payload:n,meta:i}=e,{transaction:o}=i.request.meta,a=r[e.meta.request.meta.transaction];return new D6("error",{request:a,message:`failed to process task [${o}]`,cause:n})}))}constructor(e,r){super(o=>vr(this,_r,"f").subscribe(o)),_r.set(this,void 0),Ic.set(this,void 0);const n={};Vw(this,_r,new t5(rU(n)),"f"),Vw(this,Ic,new Un(()=>vr(this,_r,"f").complete()),"f"),vr(this,Ic,"f").add(vr(this,_r,"f").addFlow(eU(e))),vr(this,Ic,"f").add(vr(this,_r,"f").addFlow(tU));const i=Object.assign({count:0,delay:0},r==null?void 0:r.retry);vr(this,Ic,"f").add(vr(this,_r,"f").addFlow(ZB(i)))}next(e,r){const n=zr.request(e,r);return vr(this,_r,"f").next(n),n.meta}nextAsync(e,r){return nU(this,void 0,void 0,function*(){return ri(this.next(e,r).task.pipe(oP()))})}getTaskByTransaction(e){const r=vr(this,_r,"f").value[e];return r&&r.task}getTaskByRef(e){const r=Object.values(vr(this,_r,"f").value).find(n=>n.ref===e);return r&&r.task}cancel(e,r){if(e)e&&vr(this,_r,"f").value[e]&&(r??(r=`[${e}]: transaction canceled`),vr(this,_r,"f").next(zr.cancel({transaction:e,reason:r})));else for(const n of Object.keys(vr(this,_r,"f").value))this.cancel(n,"all transactions canceled")}on(e,r){return vr(this,_r,"f").addEffect(zr[e].type,n=>{r(n,this)})}complete(){vr(this,Ic,"f").unsubscribe()}asObservable(){return vr(this,_r,"f").asObservable()}}_r=new WeakMap,Ic=new WeakMap;function iU(){return{set:cn("cache/set",(t,e)=>({payload:{key:t,entry:e}})),remove:cn("cache/remove",t=>({payload:t})),invalidate:cn("cache/invalidate",t=>({payload:t})),trim:cn("cache/trim",t=>({payload:t}))}}const I1=iU(),oU=(t,e)=>{var r,n;return((r=e.updated)!==null&&r!==void 0?r:0)-((n=t.updated)!==null&&n!==void 0?n:0)};function aU(t,e={}){return t0(e,r=>r.addCase(t.set,(n,i)=>{var o;const{key:a,entry:s}=i.payload,c=n[a];c?(c.updated=Date.now(),(o=c.updates)!==null&&o!==void 0||(c.updates=0),c.updates++):n[a]=Object.assign(Object.assign({},s),{created:Date.now()})}).addCase(t.remove,(n,i)=>{delete n[i.payload]}).addCase(t.invalidate,(n,i)=>{const o=n[i.payload];o&&delete o.updated}).addCase(t.trim,(n,i)=>{var o,a;const{payload:s}=i,c=(o=s.sort)!==null&&o!==void 0?o:oU,l=Object.keys(n),d=Object.entries(n).filter(([h,u])=>!s.validate||s.validate(u)).sort((h,u)=>c(h[1],u[1])).slice(0,(a=s.size)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER).map(([h])=>h);if(l.length!==d.length)for(const h of l){const u=d.indexOf(h);u!==-1?d.splice(u,1):delete n[h]}}))}var Do=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},sU=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},fi;class Ow{get state$(){return Do(this,fi,"f").asObservable()}constructor(e){fi.set(this,void 0);const{trimming:r,initial:n}=e;sU(this,fi,new t5(aU(I1,n)),"f"),r&&Do(this,fi,"f").addEffect("cache/set",()=>Do(this,fi,"f").next(I1.trim(r)))}setItem(...e){Do(this,fi,"f").next(I1.set(...e))}getItem(e){return Do(this,fi,"f").value[e]}removeItem(e){Do(this,fi,"f").next(I1.remove(e))}invalidate(e){Do(this,fi,"f").next(I1.invalidate(e))}trim(e){Do(this,fi,"f").next(I1.trim(e))}reset(){Do(this,fi,"f").reset()}complete(){Do(this,fi,"f").complete()}}fi=new WeakMap;var Ft=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},H1=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},cU=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r},Hc,io,hs,Y1,X1,y4,F6;const lU=(t=0)=>e=>{var r;return((r=e.updated)!==null&&r!==void 0?r:0)+t>Date.now()},dU=t=>{if(typeof t=="function")return t;switch(t){case"concat":return mB;case"merge":return gB;case"switch":default:return yB}};class En{get client(){return Ft(this,io,"f")}get cache(){return Ft(this,hs,"f")}constructor(e){var r;Hc.set(this,new Un),io.set(this,void 0),hs.set(this,void 0),Y1.set(this,new Va),X1.set(this,void 0),y4.set(this,void 0),F6.set(this,Z$()),H1(this,X1,i=>PB(e.key(i),Ft(this,F6,"f")),"f"),H1(this,y4,(r=e==null?void 0:e.validate)!==null&&r!==void 0?r:lU(e==null?void 0:e.expire),"f"),e.client instanceof Lw?H1(this,io,e.client,"f"):(H1(this,io,new Lw(e.client.fn,e.client.options),"f"),Ft(this,Hc,"f").add(()=>Ft(this,io,"f").complete())),e.cache instanceof Ow?H1(this,hs,e.cache,"f"):(H1(this,hs,new Ow(e.cache||{}),"f"),Ft(this,Hc,"f").add(()=>Ft(this,hs,"f").complete()));const n=dU(e.queueOperator);Ft(this,Hc,"f").add(()=>Ft(this,Y1,"f").complete()),Ft(this,Hc,"f").add(Ft(this,Y1,"f").pipe(n(({args:i,options:o})=>new it(a=>{const{task:s,transaction:c}=Ft(this,io,"f").next(i,o);a.add(s.pipe(Br(()=>Fr)).subscribe(a)),a.add(()=>{setTimeout(()=>Ft(this,io,"f").cancel(c))})})),oP(),P$(()=>!Ft(this,io,"f").closed)).subscribe(i=>{const{args:o,value:a,transaction:s,ref:c}=i,l=c??Ft(this,X1,"f").call(this,o);Ft(this,hs,"f").setItem(l,{value:a,args:o,transaction:s})}))}next(e,r){Ft(this,Y1,"f").next({args:e,options:r})}query(e,r){var n;const i=Ft(this,X1,"f").call(this,e);return(n=Ft(this,io,"f").getTaskByRef(i))!==null&&n!==void 0?n:this._createTask(i,e,r)}queryAsync(e,r){const n=r||{},{awaitResolve:i}=n,o=cU(n,["awaitResolve"]);return(i?An:ri)(this._query(e,o))}complete(){Ft(this,Hc,"f").unsubscribe()}_query(e,r){var n;const i=Ft(this,X1,"f").call(this,e);return(n=Ft(this,io,"f").getTaskByRef(i))!==null&&n!==void 0?n:this._createTask(i,e,r)}_createTask(e,r,n){var i;const o=new s$,a=Ft(this,hs,"f").getItem(e);if(a){const{value:l,args:d,created:h,updated:u,updates:f,transaction:v}=a,p={status:"cache",value:l,args:d,created:h,updated:u,updates:f,transaction:v};o.next(p)}const s=((i=n==null?void 0:n.cache)===null||i===void 0?void 0:i.validate)||Ft(this,y4,"f");return a&&s(a,r)?o.complete():Ft(this,Y1,"f").next({args:r,options:{ref:e,task:o}}),o.asObservable()}}Hc=new WeakMap,io=new WeakMap,hs=new WeakMap,Y1=new WeakMap,X1=new WeakMap,y4=new WeakMap,F6=new WeakMap;En.extractQueryValue=_B;var os=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Nw=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Q2,ga;class hU extends it{get currentContext(){return os(this,ga,"f").value}get currentContext$(){return os(this,ga,"f").asObservable()}get client(){return os(this,Q2,"f")}constructor(e){super(r=>os(this,ga,"f").subscribe(r)),Q2.set(this,void 0),ga.set(this,void 0),Nw(this,Q2,new En(e),"f"),Nw(this,ga,new jd(void 0),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(Br(()=>Fr)).subscribe(r=>this.setCurrentContext(r)):vB(e,os(this,ga,"f").value)||os(this,ga,"f").next(e)}resolveContext(e){return os(this,Q2,"f").query({id:e}).pipe(xt(r=>r.value),Br(r=>{throw r.cause?r.cause:r}))}resolveContextAsync(e,r){return(r!=null&&r.awaitResolve?An:ri)(this.resolveContext(e))}dispose(){os(this,ga,"f").complete()}}Q2=new WeakMap,ga=new WeakMap;var b2=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},$t=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},mc=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ya,_4,J2,oo,Q1,Tc,Z2,b4;let uU=class{get contextClient(){return $t(this,ya,"f")}get queryClient(){return $t(this,_4,"f")}get currentContext$(){return $t(this,ya,"f").currentContext$}get currentContext(){return $t(this,ya,"f").currentContext}set currentContext(e){if(console.warn("@deprecated","ContextProvider.currentContext","use setCurrentContextById|setCurrentContext|clearCurrentContext"),e===void 0)throw Error("not allowed to set current context as undefined undefined!");this.setCurrentContextAsync(e)}constructor(e){var r,n,i;ya.set(this,void 0),_4.set(this,void 0),J2.set(this,void 0),oo.set(this,void 0),Q1.set(this,new Un),Tc.set(this,void 0),Z2.set(this,void 0),b4.set(this,void 0);const{config:o,event:a}=e;e.parentContext&&console.warn("@deprecated","parentContext as arg is deprecated, use ContextProvider.connectParentContext"),mc(this,oo,a,"f"),o.resolveContext&&(this.resolveContext=(r=o.resolveContext)===null||r===void 0?void 0:r.bind(this)),o.validateContext&&(this.validateContext=(n=o.validateContext)===null||n===void 0?void 0:n.bind(this)),mc(this,Tc,o.contextType,"f"),mc(this,Z2,o.contextFilter,"f"),mc(this,ya,new hU(o.client.get),"f"),mc(this,_4,new En(o.client.query),"f"),o.client.related&&mc(this,J2,new En(o.client.related),"f"),mc(this,b4,(i=o.contextParameterFn)!==null&&i!==void 0?i:s=>({search:s.search,filter:{type:s.type}}),"f"),$t(this,oo,"f")&&($t(this,Q1,"f").add(this.currentContext$.pipe(x6()).subscribe(([s,c])=>{var l;(l=$t(this,oo,"f"))===null||l===void 0||l.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:s,next:c}})})),$t(this,Q1,"f").add($t(this,oo,"f").addEventListener("onCurrentContextChanged",s=>{s.source!==this&&s.detail.next!==void 0&&this.setCurrentContext(s.detail.next)})))}connectParentContext(e,r){const i=e.currentContext$.pipe(ir((o,a)=>r!=null&&r.skipFirst&&a<=1?(console.debug("ContextProvider::connectParentContext","skipping first item",o),!1):this.currentContext!==o),hr(o=>b2(this,void 0,void 0,function*(){var a;if(o){const s=yield(a=$t(this,oo,"f"))===null||a===void 0?void 0:a.dispatchEvent("onParentContextChanged",{source:this,detail:o,cancelable:!0});return{next:o,canceled:s==null?void 0:s.canceled}}return{next:o}})),ir(o=>!o.canceled),hr(({next:o})=>o?this.setCurrentContext(o,{validate:!0,resolve:!0}).pipe(Br(a=>(console.warn("ContextProvider::onParentContextChanged","setCurrentContext",a),Fr))):(this.clearCurrentContext(),Fr)),Br(o=>(console.warn("ContextProvider::onParentContextChanged","unhandled exception",o),Fr))).subscribe();return $t(this,Q1,"f").add(i),i}setCurrentContextById(e){return new it(r=>{try{$t(this,ya,"f").resolveContext(e).pipe(ir(n=>!!n),hr(n=>this.setCurrentContext(n))).subscribe(r)}catch(n){r.error(n)}})}setCurrentContextByIdAsync(e){return ri(this.setCurrentContextById(e))}setCurrentContext(e,r){return new it(n=>{var i;if(e===this.currentContext)return n.next(e),n.complete();if(e&&(r!=null&&r.validate)&&!this.validateContext(e)){if(!r.resolve)return(i=$t(this,oo,"f"))===null||i===void 0||i.dispatchEvent("onSetContextValidationFailed",{source:this,detail:{context:e}}),n.error(Error("failed to validate provided context"));if(r.resolve)return Eo(e).pipe(hr(o=>b2(this,void 0,void 0,function*(){var a;const s=yield(a=$t(this,oo,"f"))===null||a===void 0?void 0:a.dispatchEvent("onSetContextResolve",{source:this,cancelable:!0,detail:{context:o}});if(s!=null&&s.canceled)throw Error("resolving of context was canceled");return o})),hr(o=>this.resolveContext(o).pipe(xt(a=>({context:o,resolved:a})))),hr(({context:o,resolved:a})=>b2(this,void 0,void 0,function*(){var s;const c=yield(s=$t(this,oo,"f"))===null||s===void 0?void 0:s.dispatchEvent("onSetContextResolved",{source:this,cancelable:!0,detail:{context:o,resolved:a}});if(c!=null&&c.canceled)throw Error("resolving of context was canceled");return a})),hr(o=>this.setCurrentContext(o))).subscribe(n)}return Eo(e).pipe(hr(o=>b2(this,void 0,void 0,function*(){var a;const s=yield(a=$t(this,oo,"f"))===null||a===void 0?void 0:a.dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:o}});if(s!=null&&s.canceled)throw Error("change of context was aborted");return o}))).subscribe(o=>{$t(this,ya,"f").setCurrentContext(o??null),n.next(o),n.complete()})})}setCurrentContextAsync(e,r){return b2(this,void 0,void 0,function*(){return ri(this.setCurrentContext(e,r))})}queryContext(e){const r=this.queryClient.query($t(this,b4,"f").call(this,{search:e,type:$t(this,Tc,"f")})).pipe(xt(n=>n.value));return $t(this,Z2,"f")?r.pipe(xt($t(this,Z2,"f"))):r}queryContextAsync(e){return An(this.queryContext(e))}validateContext(e){return $t(this,Tc,"f")?$t(this,Tc,"f").map(r=>r.toLowerCase()).includes(e.type.id.toLowerCase()):!0}resolveContext(e){return this.relatedContexts({item:e,filter:{type:$t(this,Tc,"f")}}).pipe(xt(r=>r.filter(n=>this.validateContext(n))),xt(r=>{const n=r.shift();if(!n)throw Error("failed to resolve context");return r.length&&console.warn("ContextProvider::relatedContext","multiple items found 🤣",r),n}))}resolveContextAsync(e){return An(this.resolveContext(e))}relatedContexts(e){return $t(this,J2,"f")?$t(this,J2,"f").query(e).pipe(xt(({value:r})=>r),Br(r=>{throw r.cause?r.cause:r})):w$(()=>Error("ContextProvider::relatedContexts - no client defined for resolving related context"))}relatedContextsAsync(e){return An(this.relatedContexts(e))}clearCurrentContext(){this.setCurrentContextAsync(null)}dispose(){$t(this,Q1,"f").unsubscribe(),$t(this,ya,"f").dispose()}};ya=new WeakMap,_4=new WeakMap,J2=new WeakMap,oo=new WeakMap,Q1=new WeakMap,Tc=new WeakMap,Z2=new WeakMap,b4=new WeakMap;var fU=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const pU="context",vU={name:pU,configure:()=>new pB,initialize:function(t){var e;return fU(this,void 0,void 0,function*(){const r=yield t.config.createConfig(t),n=t.hasModule("event")?yield t.requireInstance("event"):void 0,i=(e=t.ref)===null||e===void 0?void 0:e.context,o=new uU({config:r,event:n,parentContext:i}),a=new Un(()=>o.dispose());return this.postInitialize=s=>new it(c=>{const l=r.resolveInitialContext?Lr(r.resolveInitialContext(s)).pipe(ir(d=>!!d),hr(d=>s.modules.context.setCurrentContext(d,{validate:!0,resolve:!0}))):Fr;c.add(l.pipe(Br(d=>(console.warn("ContextModule.postInitialize","failed to resolve initial context",d),Fr))).subscribe({next:d=>{console.debug("ContextModule.postInitialize",`initial context was resolved to [${d?d.id:"none"}]`,d)},complete:()=>{o.connectParentContext(i,{skipFirst:!0}),c.complete()}}))}),this.dispose=()=>a.unsubscribe(),o})}};var Fw=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class mU{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return Fw(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 Fw(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var Um=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class gU{constructor(e,r){this._client=e,this._http=r}get environment(){return this._client.environment}resolveServices(){return this._client.fetchEnvironment()}resolveService(e){return Um(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,r){return Um(this,void 0,void 0,function*(){const n=yield this.resolveService(e);if(!n)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},r),{baseUri:n.uri,defaultScopes:n.defaultScopes}))})}configureClient(e,r){return Um(this,void 0,void 0,function*(){const{key:n,alias:i}=typeof e=="string"?{key:e,alias:e}:e,{uri:o,defaultScopes:a}=yield this.resolveService(n);r.addConfig(R$(i,{baseUri:o,defaultScopes:a}))})}}var jm=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},Bw=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},yU=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},eh;const Uw="services";class _U{get environment(){var e;const r=(e=Bw(this,eh,"f").cache.getItem(Uw))===null||e===void 0?void 0:e.value;if(!r)throw Error("no cached environment found");return r}constructor({http:e,endpoint:r}){eh.set(this,void 0),this.http=e,this.endpoint=r,yU(this,eh,new En({client:{fn:()=>e.fetch$(r,{selector:this.selector.bind(this)})},key:()=>Uw,expire:5*60*1e3}),"f")}fetchEnvironment(){return jm(this,void 0,void 0,function*(){return ri(En.extractQueryValue(Bw(this,eh,"f").query(void 0,{cache:{suppressInvalid:!0}})))})}selector(e){return jm(this,void 0,void 0,function*(){const r=yield e.json(),n=r.services.reduce((i,o)=>Object.assign(i,{[o.key]:{clientId:r.clientId,uri:o.uri,defaultScopes:[r.clientId+"/.default"]}}),{});return Object.assign(Object.assign({},r),{services:n})})}resolveService(e){return jm(this,void 0,void 0,function*(){try{const{services:r}=yield this.fetchEnvironment();return r[e]}catch(r){throw console.error(r),r}})}}eh=new WeakMap;const bU="serviceDiscovery";var wU=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const xU={name:bU,configure:()=>new mU({clientCtor:_U,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:t,requireInstance:e})=>wU(void 0,void 0,void 0,function*(){const r=yield e("http"),n=yield t.createHttpClientClient(r),i=yield t.createClient(n);return new gU(i,r)})};class zU{}class da extends Error{constructor(e,r){super(`unsupported version ${e}`,{cause:r}),this.version=e}}const CU=(t,e)=>{var r;const n=(r=Yi[t])!==null&&r!==void 0?r:t;switch(n){case Yi.v2:throw new da(t);case Yi.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/contexts/${i}/?${String(o)}`}}},kU=(t,e,r)=>[CU(t,e),r],EU=(t,e,r="json")=>(n,i)=>t[r](...kU(e,n,i));var SU=["eq","ne","gt","ge","lt","le"],ff=["and","or","not"],AU=["any","all"],MU=["startswith","endswith","contains"],$U=["expand","levels","select","skip","top","count","orderby","filter"],jw=/\((.*)\)/,qw=/(?!indexof)\((\w+)\)/,Ww;(function(t){t.sum="sum",t.min="min",t.max="max",t.average="average",t.countdistinct="countdistinct"})(Ww||(Ww={}));var pa="";function aP(t){var e=t===void 0?{}:t,r=e.select,n=e.search,i=e.skiptoken,o=e.format,a=e.top,s=e.skip,c=e.filter,l=e.transform,d=e.orderBy,h=e.key,u=e.count,f=e.expand,v=e.action,p=e.func,_="",m=[],g={};if(h!=null&&(_+="(".concat(Xo(h,m),")")),(c||typeof u=="object")&&(g.$filter=mu(typeof u=="object"?u:c,m)),l&&(g.$apply=sP(l)),f&&(g.$expand=w4(f)),d&&(g.$orderby=T7(d)),u&&(typeof u=="boolean"?g.$count=!0:_+="/$count"),typeof a=="number"&&(g.$top=a),typeof s=="number"&&(g.$skip=s),v&&(_+="/".concat(v)),p){if(typeof p=="string")_+="/".concat(p);else if(typeof p=="object"){var b=Object.keys(p)[0],w=Xo(p[b],m);_+="/".concat(b),w!==""&&(_+="(".concat(w,")"))}}return m.length>0&&Object.assign(g,m.reduce(function(x,C){var S;return Object.assign(x,(S={},S["@".concat(C.name)]=Xo(C.value),S))},{})),RU(_,fr({$select:r,$search:n,$skiptoken:i,$format:o},g))}function qm(t,e,r){return r===void 0&&(r=[]),"".concat(t," eq ").concat(Xo(e,r))}function mu(t,e,r){return t===void 0&&(t={}),e===void 0&&(e=[]),r===void 0&&(r=""),(Array.isArray(t)?t:[t]).reduce(function(o,a){if(a){var s=n(a,e,r);s&&o.push(s)}return o},[]).join(" and ");function n(o,a,s){o===void 0&&(o={}),a===void 0&&(a=[]),s===void 0&&(s="");var c="";if(typeof o=="string")c=o;else if(o&&typeof o=="object"){var l=Object.keys(o).reduce(function(d,h){var u=o[h];if(u===void 0)return d;var f="";if(s?h===pa?f=s:qw.test(h)?f=h.replace(qw,function(g,b){return b.trim()===pa?"(".concat(s,")"):"(".concat(s,"/").concat(b.trim(),")")}):jw.test(h)?f=h.replace(jw,function(g,b){return b.trim()===pa?"(".concat(s,")"):"(".concat(s,"/").concat(b.trim(),")")}):f="".concat(s,"/").concat(h):f=h,h===pa&&Array.isArray(u))return d.concat(u.map(function(g){return qm(f,g)}));if(["number","string","boolean"].indexOf(typeof u)!==-1||u instanceof Date||u===null)d.push(qm(f,u,a));else if(Array.isArray(u)){var v=h,p=u.map(function(g){return mu(g,a,s)}).filter(function(g){return g}).map(function(g){return ff.indexOf(v)!==-1?"(".concat(g,")"):g});p.length&&(ff.indexOf(v)!==-1?p.length&&(v==="not"?d.push(Gw(p)):d.push("(".concat(p.join(" ".concat(v," ")),")"))):d.push(p.join(" ".concat(v," "))))}else if(ff.indexOf(f)!==-1){var _=f,p=Object.keys(u).map(function(b){var w;return n((w={},w[b]=u[b],w))});p.length&&(_==="not"?d.push(Gw(p)):d.push("(".concat(p.join(" ".concat(_," ")),")")))}else if(typeof u=="object")if("type"in u)d.push(qm(f,u,a));else{var m=Object.keys(u);m.forEach(function(g){if(u[g]!==void 0)if(SU.indexOf(g)!==-1)d.push("".concat(f," ").concat(g," ").concat(Xo(u[g],a)));else if(ff.indexOf(g)!==-1)Array.isArray(u[g])?d.push(u[g].map(function(C){return"("+n(C,a,f)+")"}).join(" ".concat(g," "))):d.push("("+n(u[g],a,f)+")");else if(AU.indexOf(g)!==-1){var b=i(h.toLowerCase(),u[g],g,f);b&&d.push(b)}else if(g==="has")d.push("".concat(f," ").concat(g," ").concat(Xo(u[g],a)));else if(g==="in"){var w=Array.isArray(u[g])?u[g]:u[g].value.map(function(C){return{type:u[g].type,value:C}});d.push(f+" in ("+w.map(function(C){return Xo(C,a)}).join(",")+")")}else if(MU.indexOf(g)!==-1)d.push("".concat(g,"(").concat(f,",").concat(Xo(u[g],a),")"));else{var x=n(u,a,f);x&&d.push(x)}})}else throw new Error("Unexpected value type: ".concat(u));return d},[]);c=l.join(" and ")}return c}function i(o,a,s,c){var l="";if(typeof a=="string"||a instanceof String)l=PU(o,a,s,c);else if(a){var d=Array.isArray(a)?a.reduce(function(u,f){return f.hasOwnProperty(pa)?(u.hasOwnProperty(pa)||(u[pa]=[]),u[pa].push(f[pa]),u):fr(fr({},u),f)},{}):a,h=n(d,e,o);l="".concat(c,"/").concat(s,"(").concat(h?"".concat(o,":").concat(h):"",")")}return l}}function PU(t,e,r,n){var i="",o=r=="all"?"ne":"eq";return i="".concat(n,"/").concat(r,"(").concat(t,": ").concat(t," ").concat(o," '").concat(e,"')"),i}function IU(t){return t=t.replace(/%/g,"%25"),t=t.replace(/\+/g,"%2B"),t=t.replace(/\//g,"%2F"),t=t.replace(/\?/g,"%3F"),t=t.replace(/#/g,"%23"),t=t.replace(/&/g,"%26"),t=t.replace(/'/g,"''"),t}function Xo(t,e){if(typeof t=="string")return"'".concat(IU(t),"'");if(t instanceof Date)return t.toISOString();if(typeof t=="number")return t;if(Array.isArray(t))return"[".concat(t.map(function(r){return Xo(r)}).join(","),"]");if(t===null)return t;if(typeof t=="object")switch(t.type){case"raw":case"guid":return t.value;case"duration":return"duration'".concat(t.value,"'");case"binary":return"binary'".concat(t.value,"'");case"alias":return Array.isArray(e)&&e.push(t),"@".concat(t.name);case"json":return escape(JSON.stringify(t.value));case"decimal":return"".concat(t.value,"M");default:return Object.entries(t).filter(function(r){var n=r[1];return n!==void 0}).map(function(r){var n=r[0],i=r[1];return"".concat(n,"=").concat(Xo(i,e))}).join(",")}return t}function w4(t){if(typeof t=="number")return t;if(typeof t=="string")return t.indexOf("/")===-1?t:t.split("/").reverse().reduce(function(r,n,i,o){return i===0?"$expand=".concat(n):i===o.length-1?"".concat(n,"(").concat(r,")"):"$expand=".concat(n,"(").concat(r,")")},"");if(Array.isArray(t))return"".concat(t.map(function(r){return w4(r)}).join(","));if(typeof t=="object"){var e=Object.keys(t);return e.some(function(r){return $U.indexOf(r.toLowerCase())!==-1})?e.map(function(r){var n;switch(r){case"filter":n=mu(t[r]);break;case"orderBy":n=T7(t[r]);break;case"levels":case"count":case"skip":case"top":n="".concat(t[r]);break;default:n=w4(t[r])}return"$".concat(r.toLowerCase(),"=").concat(n)}).join(";"):e.map(function(r){var n=w4(t[r]);return n?"".concat(r,"(").concat(n,")"):r}).join(",")}return""}function sP(t){var e=Array.isArray(t)?t:[t],r=e.reduce(function(n,i){var o=i.aggregate,a=i.filter,s=i.groupBy,c=t$(i,["aggregate","filter","groupBy"]),l=Object.keys(c);if(l.length)throw new Error("Unsupported transform(s): ".concat(l));if(o&&n.push("aggregate(".concat(HU(o),")")),a){var d=mu(a);d&&n.push("filter(".concat(mu(d),")"))}return s&&n.push("groupby(".concat(TU(s),")")),n},[]);return r.join("/")||void 0}function HU(t){var e=Array.isArray(t)?t:[t];return e.map(function(r){return typeof r=="string"?r:Object.keys(r).map(function(n){var i=r[n];if(!i.with)throw new Error("'with' property required for '".concat(n,"'"));if(!i.as)throw new Error("'as' property required for '".concat(n,"'"));return"".concat(n," with ").concat(i.with," as ").concat(i.as)})}).join(",")}function TU(t){if(!t.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(t.properties.join(","),")");return t.transform&&(e+=",".concat(sP(t.transform))),e}function T7(t,e){return e===void 0&&(e=""),Array.isArray(t)?t.map(function(r){return Array.isArray(r)&&r.length===2&&["asc","desc"].indexOf(r[1])!==-1?r.join(" "):r}).map(function(r){return"".concat(e).concat(String(r))}).join(","):typeof t=="object"?Object.entries(t).map(function(r){var n=r[0],i=r[1];return T7(i,"".concat(n,"/"))}).map(function(r){return"".concat(e).concat(r)}).join(","):"".concat(e).concat(String(t))}function RU(t,e){var r=Object.getOwnPropertyNames(e).filter(function(n){return e[n]!==void 0&&e[n]!==""}).map(function(n){return"".concat(n,"=").concat(e[n])});return r.length?"".concat(t,"?").concat(r.join("&")):t}function Gw(t){return"not(".concat(t.join(" and "),")")}const DU=t=>Object.keys(t).reduce((e,r)=>{var n;switch(r){case"type":return!((n=t[r])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[r]:{in:t[r]}}):e;default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),VU=t=>Object.entries(t).filter(([e,r])=>!!r).reduce((e,[r,n])=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:DU(n)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),LU=t=>typeof t=="string"?t:aP(VU(t)),OU=(t,e)=>{var r;const n=(r=Yi[t])!==null&&r!==void 0?r:t;switch(n){case Yi.v2:throw new da(t);case Yi.v1:default:{const{query:i,includeDeleted:o}=e,a=new URLSearchParams(LU(i));return a.append("api-version",n),o&&a.append("includeDeleted","true"),`/contexts/?${String(a)}`}}},NU=(t,e,r)=>[OU(t,e),r],FU=(t,e,r="json")=>(n,i)=>t[r](...NU(e,n,i)),BU=t=>Object.keys(t).reduce((e,r)=>{var n;switch(r){case"type":return!((n=t[r])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[r]:{in:t[r]}}):e;default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),UU=t=>Object.entries(t).filter(([e,r])=>!!r).reduce((e,[r,n])=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:BU(n)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),jU=t=>typeof t=="string"?t:aP(UU(t)),qU=(t,e)=>{var r;const n=(r=Yi[t])!==null&&r!==void 0?r:t;switch(n){case Yi.v2:throw new da(t);case Yi.v1:default:{const{id:i,query:o}=e,a=new URLSearchParams(jU(o||""));return a.append("api-version",n),`/contexts/${i}/relations?${String(a)}`}}},WU=(t,e,r)=>[qU(t,e),r],GU=(t,e,r="json")=>(n,i)=>t[r](...WU(e,n,i));class KU{get Version(){return Yi}constructor(e,r){this._client=e,this._method=r}get(e,...r){return EU(this._client,e,this._method)(...r)}query(e,...r){return FU(this._client,e,this._method)(...r)}related(e,...r){return GU(this._client,e,this._method)(...r)}}var Yi;(function(t){t.v1="1.0",t.v2="2.0"})(Yi||(Yi={}));const YU=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},XU=(t,e,r)=>{const n=YU(t,e),i=Object.assign({},{method:"Delete"},r);return[n,i]},QU=(t,e,r="fetch")=>(n,i)=>t[r](...XU(e,n,i)),JU=QU,ZU=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},ej=(t,e,r)=>[ZU(t,e),r],tj=(t,e,r="json")=>(n,i)=>t[r](...ej(e,n,i)),rj=tj,nj=(t,e)=>{switch(t){case"v1":default:{const r=new URLSearchParams;return r.append("api-version",t),`/bookmarks?${String(r)}`}}},ij=(t,e,r)=>{const n=nj(t),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},r);return[n,o]},oj=(t,e,r="json")=>(n,i)=>t[r](...ij(e,n,i)),aj=oj,sj=(t,e)=>{switch(t){case"v1":default:{const r=new URLSearchParams;return r.append("api-version",t),`/bookmarks/${e.id}?${String(r)}`}}},cj=(t,e,r)=>{const n=sj(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:i},r);return[n,o]},lj=(t,e,r="json")=>(n,i)=>t[r](...cj(e,n,i)),dj=lj,hj=t=>{switch(t){case"v1":default:{const e=new URLSearchParams;return e.append("api-version",t),`persons/me/bookmarks/?${String(e)}`}}},uj=(t,e)=>[hj(t),e],fj=(t,e,r="json")=>n=>t[r](...uj(e,n)),pj=fj,vj=(t,e)=>{switch(t){case"v1":default:{const r=new URLSearchParams;return r.append("api-version",t),`/persons/me/bookmarks/favourites?${String(r)}`}}},mj=(t,e,r)=>{const n=vj(t),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},r);return[n,o]},gj=(t,e,r="json")=>(n,i)=>t[r](...mj(e,n,i)),yj=gj,_j=(t,e)=>{switch(t){case"v1":default:{const{bookmarkId:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/persons/me/bookmarks/favourites/${r}/?${String(n)}`}}},bj=(t,e,r)=>{const n=_j(t,e),i=Object.assign({},{method:"Delete"},r);return[n,i]},wj=(t,e,r="fetch")=>(n,i)=>t[r](...bj(e,n,i)),xj=wj,zj=(t,e)=>{switch(t){case"v1":default:{const{bookmarkId:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/persons/me/bookmarks/favourites/${r}?${String(n)}`}}},Cj=(t,e,r)=>{const n=zj(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"head",headers:i},r);return[n,o]},kj=(t,e,r="json")=>(n,i)=>t[r](...Cj(e,n,i)),Ej=kj;class Sj{constructor(e,r){this._client=e,this._method=r}get(e,...r){return rj(this._client,e,this._method)(...r)}getAll(e){return pj(this._client,e,this._method)()}post(e,...r){return aj(this._client,e,this._method)(...r)}patch(e,...r){return dj(this._client,e,this._method)(...r)}delete(e,...r){return JU(this._client,e,this._method)(...r)}addFavorite(e,...r){return yj(this._client,e,this._method)(...r)}removeFavorite(e,...r){return xj(this._client,e,this._method)(...r)}verifyFavorite(e,...r){return Ej(this._client,e,this._method)(...r)}}const Aj=Sj,Mj=(t,e)=>{var r;const n=(r=Jt[t])!==null&&r!==void 0?r:t;switch(n){case Jt.v2:throw new da(t);case Jt.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},$j=(t,e,r)=>[Mj(t,e),r],Pj=(t,e,r="json")=>(n,i)=>t[r](...$j(e,n,i)),Ij=(t,e)=>{var r;const n=(r=Jt[t])!==null&&r!==void 0?r:t;switch(n){case Jt.v2:throw new da(t);case Jt.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/?${String(o)}`}}},Hj=(t,e,r)=>{const n=Ij(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},r);return[n,o]},Tj=(t,e,r="json")=>(n,i)=>t[r](...Hj(e,n,i)),Rj=(t,e)=>{var r;const n=(r=Jt[t])!==null&&r!==void 0?r:t;switch(n){case Jt.v2:throw new da(t);case Jt.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},Dj=(t,e,r)=>{const n=Rj(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:i},r);return[n,o]},Vj=(t,e,r="json")=>(n,i)=>t[r](...Dj(e,n,i)),Lj=(t,e)=>{var r;const n=(r=Jt[t])!==null&&r!==void 0?r:t;switch(n){case Jt.v2:throw new da(t);case Jt.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/?${String(o)}`}}},Oj=(t,e,r)=>[Lj(t,e),r],Nj=(t,e,r="json")=>(n,i)=>t[r](...Oj(e,n,i)),Fj=(t,e)=>{var r;const n=(r=Jt[t])!==null&&r!==void 0?r:t;switch(n){case Jt.v2:throw new da(t);case Jt.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},Bj=(t,e,r)=>{const n=Fj(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"delete",headers:i},r);return[n,o]},Uj=(t,e,r="json")=>(n,i)=>t[r](...Bj(e,n,i));var Jt;(function(t){t.v1="1.0",t.v2="2.0"})(Jt||(Jt={}));const jj=(t,e)=>{var r;const n=(r=Jt[t])!==null&&r!==void 0?r:t;switch(n){case Jt.v2:throw new da(t);case Jt.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/settings/?${String(o)}`}}},qj=(t,e,r)=>{const n=jj(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"put",body:JSON.stringify(e),headers:i},r);return[n,o]},Wj=(t,e,r="json")=>(n,i)=>t[r](...qj(e,n,i)),Gj=Wj,Kj=(t,e)=>{var r;const n=(r=Jt[t])!==null&&r!==void 0?r:t;switch(n){case Jt.v2:throw new da(t);case Jt.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/settings/?${String(o)}`}}},Yj=(t,e,r)=>[Kj(t,e),r],Xj=(t,e,r="json")=>(n,i)=>t[r](...Yj(e,n,i)),Qj=Xj;class Jj{get Version(){return Jt}constructor(e,r){this._client=e,this._method=r}getAll(e,...r){return Nj(this._client,e,this._method)(...r)}getById(e,...r){return Pj(this._client,e,this._method)(...r)}setSeenByUser(e,...r){return Vj(this._client,e,this._method)(...r)}create(e,...r){return Tj(this._client,e,this._method)(...r)}delete(e,...r){return Uj(this._client,e,this._method)(...r)}getSettings(e,...r){return Qj(this._client,e,this._method)(...r)}updateSettings(e,...r){return Gj(this._client,e,this._method)(...r)}}var x4=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class Zj extends Error{constructor(e,r,n){super(e,n),this.response=r,this.name="ApiProviderError"}}const Wm=t=>x4(void 0,void 0,void 0,function*(){var e;if(!t.ok){const{headers:r,status:n,statusText:i,type:o,url:a,bodyUsed:s}=t,c=(e=r.get("content-type"))===null||e===void 0?void 0:e.match(/application\/(\w*)?[+]?json/),l=!s&&(yield c?t.json():t.text());throw new Zj("failed to execute request, response was not ok",{headers:r,status:n,statusText:i,type:o,url:a,data:l})}});class eq{constructor({createClient:e}){this._createClientFn=e}createNotificationClient(e){return x4(this,void 0,void 0,function*(){const r=yield this._createClientFn("notification");return r.responseHandler.add("validate_api_request",Wm),new Jj(r,e)})}createBookmarksClient(e){return x4(this,void 0,void 0,function*(){const r=yield this._createClientFn("bookmarks");return r.responseHandler.add("validate_api_request",Wm),new Aj(r,e)})}createContextClient(e){return x4(this,void 0,void 0,function*(){const r=yield this._createClientFn("context");return r.responseHandler.add("validate_api_request",Wm),new KU(r,e)})}}var cP=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const tq="services",rq=(t,e)=>r=>cP(void 0,void 0,void 0,function*(){if(t.hasClient(r))return t.createClient(r);if(e)return e.createClient(r);throw Error(`failed to create http client for service ${r}`)}),nq={name:tq,configure:()=>new zU,initialize:({ref:t,config:e,requireInstance:r,hasModule:n})=>cP(void 0,void 0,void 0,function*(){if(!e.createClient){const i=yield r("http"),o=n("serviceDiscovery")?yield r("serviceDiscovery"):t==null?void 0:t.serviceDiscovery;e.createClient=rq(i,o)}if(!e.createClient)throw Error("missing configuration for creating API client");return new eq(e)})},iq=nq;class oq extends CN{constructor(){super([$N,X$,_7,xU,iq,vU]),this.logger=new e$("FrameworkConfigurator")}configureHttp(...e){this.addConfig(FN(...e))}configureHttpClient(...e){this.addConfig(R$(...e))}configureMsal(...e){this.addConfig(eB(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var aq=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const sq=(t,e)=>aq(void 0,void 0,void 0,function*(){const r=yield t.initialize(e),n={modules:r};return window.Fusion=n,r.event.dispatchEvent("onFrameworkLoaded",{detail:n}),n}),lP=y.createContext(null),cq=lP.Provider;var lq=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const dq=t=>y.lazy(()=>lq(void 0,void 0,void 0,function*(){const e=new oq;yield t(e);const r=yield sq(e);return{default:({children:n})=>z(cq,Object.assign({value:r},{children:n}))}})),jn=()=>{let t=y.useContext(lP);return t||console.warn("could not locate fusion in context!"),t??(t=window.Fusion),t||console.error("Could not load framework, might not be initiated?"),t},hq=t=>{const e=y.useMemo(()=>dq(t.configure),[t.configure]);return z(y.Suspense,Object.assign({fallback:t.fallback},{children:z(e,{children:t.children})}))};function St(){return St=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},St.apply(this,arguments)}function nd(t){return nd=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},nd(t)}function Gm(t){return t&&nd(t)==="object"&&t.constructor===Object}function dP(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?St({},t):t;return Gm(t)&&Gm(e)&&Object.keys(e).forEach(function(i){i!=="__proto__"&&(Gm(e[i])&&i in t?n[i]=dP(t[i],e[i],r):n[i]=e[i])}),n}var le={},uq={get exports(){return le},set exports(t){le=t}},fq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",pq=fq,vq=pq;function hP(){}function uP(){}uP.resetWarningCache=hP;var mq=function(){function t(n,i,o,a,s,c){if(c!==vq){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:uP,resetWarningCache:hP};return r.PropTypes=r,r};uq.exports=mq();function gq(t,e){if(nd(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(nd(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yq(t){var e=gq(t,"string");return nd(e)==="symbol"?e:String(e)}var _q=typeof Symbol=="function"&&Symbol.for;const fP=_q?Symbol.for("mui.nested"):"__THEME_NESTED__";var bq=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function wq(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.disableGlobal,r=e===void 0?!1:e,n=t.productionPrefix,i=n===void 0?"jss":n,o=t.seed,a=o===void 0?"":o,s=a===""?"":"".concat(a,"-"),c=0,l=function(){return c+=1,c};return function(d,h){var u=h.options.name;if(u&&u.indexOf("Mui")===0&&!h.options.link&&!r){if(bq.indexOf(d.key)!==-1)return"Mui-".concat(d.key);var f="".concat(s).concat(u,"-").concat(d.key);return!h.options.theme[fP]||a!==""?f:"".concat(f,"-").concat(l())}return"".concat(s).concat(i).concat(l())}}var Kw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r0=(typeof window>"u"?"undefined":Kw(window))==="object"&&(typeof document>"u"?"undefined":Kw(document))==="object"&&document.nodeType===9;function Yw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yq(n.key),n)}}function pP(t,e,r){return e&&Yw(t.prototype,e),r&&Yw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function B6(t,e){return B6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},B6(t,e)}function vP(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,B6(t,e)}function Xw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mP(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var xq={}.constructor;function U6(t){if(t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(U6);if(t.constructor!==xq)return t;var e={};for(var r in t)e[r]=U6(t[r]);return e}function R7(t,e,r){t===void 0&&(t="unnamed");var n=r.jss,i=U6(e),o=n.plugins.onCreateRule(t,i,r);return o||(t[0],null)}var Qw=function(e,r){for(var n="",i=0;i<e.length&&e[i]!=="!important";i++)n&&(n+=r),n+=e[i];return n},r1=function(e){if(!Array.isArray(e))return e;var r="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&e[n]!=="!important";n++)r&&(r+=", "),r+=Qw(e[n]," ");else r=Qw(e,", ");return e[e.length-1]==="!important"&&(r+=" !important"),r};function Kd(t){return t&&t.format===!1?{linebreak:"",space:""}:{linebreak:`
74
+ `));return e.currentContext?Eo(e.currentContext):Fr},fB=t=>({ref:e,modules:r})=>{const{context:n,navigation:i}=r,o=hB(n,t==null?void 0:t.path);return oN(i?o(i.path.pathname):Fr,uB({ref:e,modules:r})).pipe(yN())};var df=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},kw=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},m4;class pB{constructor(){this.defaultExpireTime=1*60*1e3,m4.set(this,[])}addConfigBuilder(e){kw(this,m4,"f").push(e)}_getServiceProvider(e){var r;return df(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const n=(r=e.ref)===null||r===void 0?void 0:r.services;if(n)return n;throw Error("no service services provider configures [ServicesModule]")}})}createConfig(e){var r,n;return df(this,void 0,void 0,function*(){const i=yield kw(this,m4,"f").reduce((o,a)=>df(this,void 0,void 0,function*(){const s=new sB(e,yield o);return yield Promise.resolve(a(s)),Object.assign(o,s.config)}),Promise.resolve({}));return(r=i.resolveInitialContext)!==null&&r!==void 0||(i.resolveInitialContext=fB()),(n=i.client)!==null&&n!==void 0||(i.client=yield(()=>df(this,void 0,void 0,function*(){const a=yield(yield this._getServiceProvider(e)).createContextClient("json$");return{get:{client:{fn:s=>a.get("v1",s,{selector:rB})},key:({id:s})=>s,expire:this.defaultExpireTime},query:{client:{fn:s=>a.query("v1",{query:s},{selector:nB})},key:s=>JSON.stringify(s),expire:this.defaultExpireTime},related:{client:{fn:s=>a.related("v1",{id:s.item.id,query:{filter:s.filter}},{selector:iB})},key:s=>JSON.stringify(s),expire:this.defaultExpireTime}}}))()),i})}}m4=new WeakMap;var vB=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(e[a],r[a]))return!1}return!0}return e!==e&&r!==r},Ew;(function(t){t.IDLE="idle",t.ACTIVE="active",t.FAILED="failed",t.CANCELED="canceled"})(Ew||(Ew={}));const mB=t=>e=>e.pipe(pN(t)),gB=t=>e=>e.pipe(bo(t)),yB=t=>e=>e.pipe(hr(t)),_B=t=>t.pipe(xt(e=>e.value));var hf,bB=new Uint8Array(16);function wB(){if(!hf&&(hf=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!hf))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return hf(bB)}const xB=/^(?:[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 Q$(t){return typeof t=="string"&&xB.test(t)}var nn=[];for(var Vm=0;Vm<256;++Vm)nn.push((Vm+256).toString(16).substr(1));function J$(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(nn[t[e+0]]+nn[t[e+1]]+nn[t[e+2]]+nn[t[e+3]]+"-"+nn[t[e+4]]+nn[t[e+5]]+"-"+nn[t[e+6]]+nn[t[e+7]]+"-"+nn[t[e+8]]+nn[t[e+9]]+"-"+nn[t[e+10]]+nn[t[e+11]]+nn[t[e+12]]+nn[t[e+13]]+nn[t[e+14]]+nn[t[e+15]]).toLowerCase();if(!Q$(r))throw TypeError("Stringified UUID is invalid");return r}function zB(t){if(!Q$(t))throw TypeError("Invalid UUID");var e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function CB(t){t=unescape(encodeURIComponent(t));for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}var kB="6ba7b810-9dad-11d1-80b4-00c04fd430c8",EB="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function SB(t,e,r){function n(i,o,a,s){if(typeof i=="string"&&(i=CB(i)),typeof o=="string"&&(o=zB(o)),o.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+i.length);if(c.set(o),c.set(i,o.length),c=r(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,a){s=s||0;for(var l=0;l<16;++l)a[s+l]=c[l];return a}return J$(c)}try{n.name=t}catch{}return n.DNS=kB,n.URL=EB,n}function Z$(t,e,r){t=t||{};var n=t.random||(t.rng||wB)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(var i=0;i<16;++i)e[r+i]=n[i];return e}return J$(n)}function AB(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:return e^r^n;case 2:return e&r^e&n^r&n;case 3:return e^r^n}}function Lm(t,e){return t<<e|t>>>32-e}function MB(t){var e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var n=unescape(encodeURIComponent(t));t=[];for(var i=0;i<n.length;++i)t.push(n.charCodeAt(i))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var o=t.length/4+2,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),d=0;d<16;++d)l[d]=t[c*64+d*4]<<24|t[c*64+d*4+1]<<16|t[c*64+d*4+2]<<8|t[c*64+d*4+3];s[c]=l}s[a-1][14]=(t.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(t.length-1)*8&4294967295;for(var h=0;h<a;++h){for(var u=new Uint32Array(80),f=0;f<16;++f)u[f]=s[h][f];for(var v=16;v<80;++v)u[v]=Lm(u[v-3]^u[v-8]^u[v-14]^u[v-16],1);for(var p=r[0],_=r[1],m=r[2],g=r[3],b=r[4],w=0;w<80;++w){var x=Math.floor(w/20),C=Lm(p,5)+AB(x,_,m,g)+b+e[x]+u[w]>>>0;b=g,g=m,m=Lm(_,30)>>>0,_=p,p=C}r[0]=r[0]+p>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var $B=SB("v5",80,MB);const PB=$B;class D6 extends Error{constructor(e,r){super(r.message,{cause:r.cause}),this.type=e,this.name="QueryClientError",this.request=r.request}}const Wd=(...t)=>Jt(e=>t.includes(e.type));var wn=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},IB=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Lo,no;class t5 extends it{get action$(){return wn(this,Lo,"f").asObservable()}get value(){return wn(this,no,"f").value}get closed(){return wn(this,no,"f").closed||wn(this,Lo,"f").closed}constructor(e,r){super(i=>wn(this,no,"f").subscribe(i)),Lo.set(this,new Va),no.set(this,void 0);const n="getInitialState"in e?e.getInitialState():r;IB(this,no,new jd(n),"f"),wn(this,Lo,"f").pipe($$(e,n),A$()).subscribe(wn(this,no,"f")),this.reset=()=>wn(this,no,"f").next(n)}next(e){wn(this,Lo,"f").next(e)}addEffect(e,r){const n=typeof e=="string"?this.action$.pipe(Wd(e)):this.action$,i=r||e;return n.pipe(bo(o=>Lr(new Promise((a,s)=>{try{a(i(o,this.value))}catch(c){s(c)}})).pipe(Br(a=>(console.warn("unhandled effect",a),Fr)))),Jt(o=>!!o),bp(_p)).subscribe(wn(this,Lo,"f"))}addEpic(e){return this.addFlow(e)}addFlow(e){const r=e(this.action$,this);if(!r)throw new TypeError(`addEpic: one of the provided effects "${e.name||"<anonymous>"}" does not return a stream. Double check you're not missing a return statement!`);return r.pipe(Br(n=>(console.trace("unhandled exception, epic closed!",n),Fr)),bp(_p)).subscribe(wn(this,Lo,"f"))}unsubscribe(){wn(this,Lo,"f").unsubscribe(),wn(this,no,"f").unsubscribe()}complete(){wn(this,Lo,"f").complete(),wn(this,no,"f").complete()}asObservable(){return wn(this,no,"f").asObservable()}}Lo=new WeakMap,no=new WeakMap;const eP=(t,e)=>Object.entries(t).reduce((r,[n,i])=>Object.assign(r,{[n]:typeof i=="function"?(...o)=>e.next(i(...o)):eP(i,e)}),{});function cn(t,e){function r(...n){if(e){const i=e(...n);if(!i)throw new Error("prepareAction did not return an object");return Object.assign(Object.assign({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=n=>n.type===t,r}const g4="::",E7=t=>new RegExp(`${g4}\\${t}$`),Sw=t=>t.type.replace(E7("\\w+$"),"");function qo(t,e,r,n){const i=cn([t,"request"].join(g4),e);return r&&Object.assign(i,{success:cn([t,"success"].join(g4),r)}),n&&Object.assign(i,{failure:cn([t,"failure"].join(g4),n)}),i}const HB=t=>!!t.type.match(/::request$/),TB=t=>!!t.type.match(E7("success")),RB=t=>!!t.type.match(E7("failure")),DB=t=>TB(t)||RB(t);function mi(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Gs(t){return!!t&&!!t[gt]}function So(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===WB}(t)||Array.isArray(t)||!!t[Rw]||!!(!((e=t.constructor)===null||e===void 0)&&e[Rw])||S7(t)||A7(t))}function Aw(t){return Gs(t)||mi(23,t),t[gt].t}function rd(t,e,r){r===void 0&&(r=!1),Gd(t)===0?(r?Object.keys:H7)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Gd(t){var e=t[gt];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:S7(t)?2:A7(t)?3:0}function V6(t,e){return Gd(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function VB(t,e){return Gd(t)===2?t.get(e):t[e]}function tP(t,e,r){var n=Gd(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function LB(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function S7(t){return jB&&t instanceof Map}function A7(t){return qB&&t instanceof Set}function jr(t){return t.o||t.t}function M7(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=GB(t);delete e[gt];for(var r=H7(e),n=0;n<r.length;n++){var i=r[n],o=e[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function $7(t,e){return e===void 0&&(e=!1),P7(t)||Gs(t)||!So(t)||(Gd(t)>1&&(t.set=t.add=t.clear=t.delete=OB),Object.freeze(t),e&&rd(t,function(r,n){return $7(n,!0)},!0)),t}function OB(){mi(2)}function P7(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function oa(t){var e=O6[t];return e||mi(18,t),e}function NB(t,e){O6[t]||(O6[t]=e)}function Lp(){return vu}function Om(t,e){e&&(oa("Patches"),t.u=[],t.s=[],t.v=e)}function Op(t){L6(t),t.p.forEach(FB),t.p=null}function L6(t){t===vu&&(vu=t.l)}function Mw(t){return vu={p:[],l:vu,h:t,m:!0,_:0}}function FB(t){var e=t[gt];e.i===0||e.i===1?e.j():e.O=!0}function Nm(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.g||oa("ES5").S(e,t,n),n?(r[gt].P&&(Op(e),mi(4)),So(t)&&(t=Np(e,t),e.l||Fp(e,t)),e.u&&oa("Patches").M(r[gt].t,t,e.u,e.s)):t=Np(e,r,[]),Op(e),e.u&&e.v(e.u,e.s),t!==rP?t:void 0}function Np(t,e,r){if(P7(e))return e;var n=e[gt];if(!n)return rd(e,function(s,c){return $w(t,n,e,s,c,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Fp(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=M7(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),rd(o,function(s,c){return $w(t,n,i,s,c,r,a)}),Fp(t,i,!1),r&&t.u&&oa("Patches").N(n,r,t.u,t.s)}return n.o}function $w(t,e,r,n,i,o,a){if(Gs(i)){var s=Np(t,i,o&&e&&e.i!==3&&!V6(e.R,n)?o.concat(n):void 0);if(tP(r,n,s),!Gs(s))return;t.m=!1}else a&&r.add(i);if(So(i)&&!P7(i)){if(!t.h.D&&t._<1)return;Np(t,i),e&&e.A.l||Fp(t,i)}}function Fp(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&$7(e,r)}function Fm(t,e){var r=t[gt];return(r?jr(r):t)[e]}function Pw(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ca(t){t.P||(t.P=!0,t.l&&Ca(t.l))}function Bm(t){t.o||(t.o=M7(t.t))}function pu(t,e,r){var n=S7(e)?oa("MapSet").F(e,r):A7(e)?oa("MapSet").T(e,r):t.g?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:Lp(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},c=s,l=N6;a&&(c=[s],l=X2);var d=Proxy.revocable(c,l),h=d.revoke,u=d.proxy;return s.k=u,s.j=h,u}(e,r):oa("ES5").J(e,r);return(r?r.A:Lp()).p.push(n),n}function BB(t){return Gs(t)||mi(22,t),function e(r){if(!So(r))return r;var n,i=r[gt],o=Gd(r);if(i){if(!i.P&&(i.i<4||!oa("ES5").K(i)))return i.t;i.I=!0,n=Iw(r,o),i.I=!1}else n=Iw(r,o);return rd(n,function(a,s){i&&VB(i.t,a)===s||tP(n,a,e(s))}),o===3?new Set(n):n}(t)}function Iw(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return M7(t)}function UB(){function t(s,c){function l(){this.constructor=s}i(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 r(s){s.o||(s.o=new Set,s.t.forEach(function(c){if(So(c)){var l=pu(s.A.h,c,s);s.p.set(c,l),s.o.add(l)}else s.o.add(c)}))}function n(s){s.O&&mi(3,JSON.stringify(jr(s)))}var i=function(s,c){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(s,c)},o=function(){function s(l,d){return this[gt]={i:2,l:d,A:d?d.A:Lp(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,O:!1},this}t(s,Map);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return jr(this[gt]).size}}),c.has=function(l){return jr(this[gt]).has(l)},c.set=function(l,d){var h=this[gt];return n(h),jr(h).has(l)&&jr(h).get(l)===d||(e(h),Ca(h),h.R.set(l,!0),h.o.set(l,d),h.R.set(l,!0)),this},c.delete=function(l){if(!this.has(l))return!1;var d=this[gt];return n(d),e(d),Ca(d),d.t.has(l)?d.R.set(l,!1):d.R.delete(l),d.o.delete(l),!0},c.clear=function(){var l=this[gt];n(l),jr(l).size&&(e(l),Ca(l),l.R=new Map,rd(l.t,function(d){l.R.set(d,!1)}),l.o.clear())},c.forEach=function(l,d){var h=this;jr(this[gt]).forEach(function(u,f){l.call(d,h.get(f),f,h)})},c.get=function(l){var d=this[gt];n(d);var h=jr(d).get(l);if(d.I||!So(h)||h!==d.t.get(l))return h;var u=pu(d.A.h,h,d);return e(d),d.o.set(l,u),u},c.keys=function(){return jr(this[gt]).keys()},c.values=function(){var l,d=this,h=this.keys();return(l={})[uf]=function(){return d.values()},l.next=function(){var u=h.next();return u.done?u:{done:!1,value:d.get(u.value)}},l},c.entries=function(){var l,d=this,h=this.keys();return(l={})[uf]=function(){return d.entries()},l.next=function(){var u=h.next();if(u.done)return u;var f=d.get(u.value);return{done:!1,value:[u.value,f]}},l},c[uf]=function(){return this.entries()},s}(),a=function(){function s(l,d){return this[gt]={i:3,l:d,A:d?d.A:Lp(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,O:!1,C:!1},this}t(s,Set);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return jr(this[gt]).size}}),c.has=function(l){var d=this[gt];return n(d),d.o?!!d.o.has(l)||!(!d.p.has(l)||!d.o.has(d.p.get(l))):d.t.has(l)},c.add=function(l){var d=this[gt];return n(d),this.has(l)||(r(d),Ca(d),d.o.add(l)),this},c.delete=function(l){if(!this.has(l))return!1;var d=this[gt];return n(d),r(d),Ca(d),d.o.delete(l)||!!d.p.has(l)&&d.o.delete(d.p.get(l))},c.clear=function(){var l=this[gt];n(l),jr(l).size&&(r(l),Ca(l),l.o.clear())},c.values=function(){var l=this[gt];return n(l),r(l),l.o.values()},c.entries=function(){var l=this[gt];return n(l),r(l),l.o.entries()},c.keys=function(){return this.values()},c[uf]=function(){return this.values()},c.forEach=function(l,d){for(var h=this.values(),u=h.next();!u.done;)l.call(d,u.value,u.value,this),u=h.next()},s}();NB("MapSet",{F:function(s,c){return new o(s,c)},T:function(s,c){return new a(s,c)}})}var Hw,vu,I7=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",jB=typeof Map<"u",qB=typeof Set<"u",Tw=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",rP=I7?Symbol.for("immer-nothing"):((Hw={})["immer-nothing"]=!0,Hw),Rw=I7?Symbol.for("immer-draftable"):"__$immer_draftable",gt=I7?Symbol.for("immer-state"):"__$immer_state",uf=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",WB=""+Object.prototype.constructor,H7=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,GB=Object.getOwnPropertyDescriptors||function(t){var e={};return H7(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},O6={},N6={get:function(t,e){if(e===gt)return t;var r=jr(t);if(!V6(r,e))return function(i,o,a){var s,c=Pw(o,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!So(n)?n:n===Fm(t.t,e)?(Bm(t),t.o[e]=pu(t.A.h,n,t)):n},has:function(t,e){return e in jr(t)},ownKeys:function(t){return Reflect.ownKeys(jr(t))},set:function(t,e,r){var n=Pw(jr(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Fm(jr(t),e),o=i==null?void 0:i[gt];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(LB(r,i)&&(r!==void 0||V6(t.t,e)))return!0;Bm(t),Ca(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Fm(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Bm(t),Ca(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=jr(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){mi(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){mi(12)}},X2={};rd(N6,function(t,e){X2[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),X2.deleteProperty=function(t,e){return X2.set.call(this,t,e,void 0)},X2.set=function(t,e,r){return N6.set.call(this,t[0],e,r,t[0])};var KB=function(){function t(r){var n=this;this.g=Tw,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var c=n;return function(p){var _=this;p===void 0&&(p=s);for(var m=arguments.length,g=Array(m>1?m-1:0),b=1;b<m;b++)g[b-1]=arguments[b];return c.produce(p,function(w){var x;return(x=o).call.apply(x,[_,w].concat(g))})}}var l;if(typeof o!="function"&&mi(6),a!==void 0&&typeof a!="function"&&mi(7),So(i)){var d=Mw(n),h=pu(n,i,void 0),u=!0;try{l=o(h),u=!1}finally{u?Op(d):L6(d)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return Om(d,a),Nm(p,d)},function(p){throw Op(d),p}):(Om(d,a),Nm(l,d))}if(!i||typeof i!="object"){if((l=o(i))===void 0&&(l=i),l===rP&&(l=void 0),n.D&&$7(l,!0),a){var f=[],v=[];oa("Patches").M(i,l,f,v),a(f,v)}return l}mi(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(l){for(var d=arguments.length,h=Array(d>1?d-1:0),u=1;u<d;u++)h[u-1]=arguments[u];return n.produceWithPatches(l,function(f){return i.apply(void 0,[f].concat(h))})};var a,s,c=n.produce(i,o,function(l,d){a=l,s=d});return typeof Promise<"u"&&c instanceof Promise?c.then(function(l){return[l,a,s]}):[c,a,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){So(r)||mi(8),Gs(r)&&(r=BB(r));var n=Mw(this),i=pu(this,r,void 0);return i[gt].C=!0,L6(n),i},e.finishDraft=function(r,n){var i=r&&r[gt],o=i.A;return Om(o,n),Nm(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Tw&&mi(20),this.g=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=oa("Patches").$;return Gs(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},t}(),Ei=new KB,nP=Ei.produce;Ei.produceWithPatches.bind(Ei);Ei.setAutoFreeze.bind(Ei);Ei.setUseProxies.bind(Ei);Ei.applyPatches.bind(Ei);Ei.createDraft.bind(Ei);Ei.finishDraft.bind(Ei);function Dw(t){return So(t)?nP(t,()=>{}):t}function YB(t){return typeof t=="function"}function t0(t,e){const[r,n,i]=XB(e);let o;if(YB(t))o=()=>Dw(t());else{const s=Dw(t);o=()=>s}function a(s=o(),c){let l=[r[c.type],...n.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return l.filter(d=>!!d).length===0&&(l=[i]),l.reduce((d,h)=>{if(h)if(Gs(d)){const f=h(d,c);return f===void 0?d:f}else{if(So(d))return nP(d,u=>h(u,c));{const u=h(d,c);if(u===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return u}}return d},s)}return a.getInitialState=o,a}function XB(t){const e={},r=[];let n;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=a,i},addMatcher(o,a){return r.push({matcher:o,reducer:a}),i},addDefaultCase(o){return n=o,i}};return t(i),[e,r,n]}function QB(t,e){const r=typeof e=="function"?e:t0(e.initial,o=>e.builder(o,t)),n=new t5(r),i=eP(t,n);return{actions:t,dispatch:i,subject:n}}const JB=()=>({request:cn("client/request",(e,r)=>{var n,i,o,a;return r??(r={}),(n=r.transaction)!==null&&n!==void 0||(r.transaction=Z$()),(i=r.created)!==null&&i!==void 0||(r.created=Date.now()),(o=r.controller)!==null&&o!==void 0||(r.controller=new AbortController),(a=r.task)!==null&&a!==void 0||(r.task=new s$),{payload:e,meta:r}}),retry:cn("client/retry",e=>({payload:e})),success:cn("client/success",(e,r)=>({payload:e,meta:r})),cancel:cn("client/cancel",e=>({payload:e})),failure:cn("client/failure",(e,r)=>({payload:e,meta:r})),error:cn("client/error",(e,r)=>({payload:e,meta:r}))}),zr=JB(),iP=t=>e=>e.pipe(Jt(zr.request.match),bo(r=>{const{meta:{controller:n,transaction:i}}=r;return new it(o=>{if(n.signal.aborted)return o.next(zr.cancel({transaction:i,reason:`request [${i}] was aborted!`})),o.complete();o.add(e.pipe(Jt(zr.cancel.match)).subscribe(a=>{a.payload.transaction===i&&(n.signal.aborted||n.abort(),o.complete())})),o.add(w6(n.signal,"abort").subscribe(()=>{o.next(zr.cancel({transaction:i,reason:`request [${i}] was aborted!`})),o.complete()})),o.add(Lr(t(r)).subscribe({next:a=>o.next(a),error:a=>o.next(zr.error(a,{request:r})),complete:()=>o.complete()}))})})),ZB=t=>(t=Object.assign({},{count:0,delay:0},t),(e,r)=>e.pipe(iP(n=>e.pipe(Jt(zr.failure.match),Jt(i=>i.meta.request===n),I$(r),hr(([i,o])=>{var a,s;const{transaction:c}=n.meta,l=o[c];if(!l)return Fr;const d=(s=(a=l.retry)===null||a===void 0?void 0:a.length)!==null&&s!==void 0?s:0,h=Object.assign({},t,n.meta.retry);if(d>=h.count)throw h.count?Error("maximum retries executed!",{cause:i.payload}):i.payload;return(typeof h.delay=="function"?Lr(h.delay(i.payload.cause)).pipe(Br(f=>{throw Error("failed to resolve delay",{cause:f})})):uN(h.delay)).pipe(xt(()=>zr.retry(n)))}))))),eU=t=>e=>e.pipe(iP(r=>Lr(t(r.payload,r.meta.controller.signal)).pipe(xt(n=>zr.success(n,{request:r})),Br(n=>Eo(zr.failure(Error(`failed to execute request for transaction ${r.meta.transaction}`,{cause:n}),{request:r})))))),tU=t=>t.pipe(Jt(zr.retry.match),xt(e=>e.payload)),oP=()=>Jt(t=>t.status==="complete"),rU=(t={})=>t0(t,e=>e.addCase(zr.request,(r,n)=>{const{transaction:i,task:o,ref:a,created:s}=n.meta;r[i]={transaction:i,task:o,ref:a,created:s}}).addCase(zr.success,(r,n)=>{const{request:i}=n.meta,{transaction:o,ref:a}=i.meta,s=r[o];if(s){const c={status:"complete",transaction:o,ref:a,value:n.payload,args:i.payload,created:s.created,completed:Date.now()};s.task.next(c),s.task.complete()}delete r[o]}).addCase(zr.retry,(r,n)=>{var i;const{transaction:o}=n.payload.meta,a=r[o];a&&((i=a.retry)!==null&&i!==void 0||(a.retry=[]),a.retry.push(Date.now()))}).addCase(zr.cancel,(r,n)=>{const{transaction:i,reason:o}=n.payload;if(r[i]){const a=Object.assign({},Aw(r[i]));a.task.error(new D6("abort",{request:a,message:o??"request was canceled"})),delete r[i]}}).addCase(zr.failure,(r,n)=>{var i;const{payload:o,meta:a}=n,{transaction:s}=a.request.meta,c=r[s];c&&((i=c.errors)!==null&&i!==void 0||(c.errors=[]),c.errors.push(o))}).addCase(zr.error,(r,n)=>{const{payload:i,meta:o}=n,{transaction:a}=o.request.meta;if(r[a]){const s=Object.assign({},Aw(r[a]));s.task.error(new D6("error",{request:s,message:`failed to process task [${a}]`,cause:i.cause})),delete r[a]}}));var nU=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},vr=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Vw=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},_r,Ic;class Lw extends it{get closed(){return vr(this,_r,"f").closed}get state$(){return vr(this,_r,"f")}get action$(){return vr(this,_r,"f").action$}get success$(){return this.action$.pipe(Jt(zr.success.match),xt(({payload:e})=>e))}get error$(){return this.action$.pipe(Wd("client/error"),I$(vr(this,_r,"f")),xt(([e,r])=>{const{payload:n,meta:i}=e,{transaction:o}=i.request.meta,a=r[e.meta.request.meta.transaction];return new D6("error",{request:a,message:`failed to process task [${o}]`,cause:n})}))}constructor(e,r){super(o=>vr(this,_r,"f").subscribe(o)),_r.set(this,void 0),Ic.set(this,void 0);const n={};Vw(this,_r,new t5(rU(n)),"f"),Vw(this,Ic,new Un(()=>vr(this,_r,"f").complete()),"f"),vr(this,Ic,"f").add(vr(this,_r,"f").addFlow(eU(e))),vr(this,Ic,"f").add(vr(this,_r,"f").addFlow(tU));const i=Object.assign({count:0,delay:0},r==null?void 0:r.retry);vr(this,Ic,"f").add(vr(this,_r,"f").addFlow(ZB(i)))}next(e,r){const n=zr.request(e,r);return vr(this,_r,"f").next(n),n.meta}nextAsync(e,r){return nU(this,void 0,void 0,function*(){return ri(this.next(e,r).task.pipe(oP()))})}getTaskByTransaction(e){const r=vr(this,_r,"f").value[e];return r&&r.task}getTaskByRef(e){const r=Object.values(vr(this,_r,"f").value).find(n=>n.ref===e);return r&&r.task}cancel(e,r){if(e)e&&vr(this,_r,"f").value[e]&&(r??(r=`[${e}]: transaction canceled`),vr(this,_r,"f").next(zr.cancel({transaction:e,reason:r})));else for(const n of Object.keys(vr(this,_r,"f").value))this.cancel(n,"all transactions canceled")}on(e,r){return vr(this,_r,"f").addEffect(zr[e].type,n=>{r(n,this)})}complete(){vr(this,Ic,"f").unsubscribe()}asObservable(){return vr(this,_r,"f").asObservable()}}_r=new WeakMap,Ic=new WeakMap;function iU(){return{set:cn("cache/set",(t,e)=>({payload:{key:t,entry:e}})),remove:cn("cache/remove",t=>({payload:t})),invalidate:cn("cache/invalidate",t=>({payload:t})),trim:cn("cache/trim",t=>({payload:t}))}}const I1=iU(),oU=(t,e)=>{var r,n;return((r=e.updated)!==null&&r!==void 0?r:0)-((n=t.updated)!==null&&n!==void 0?n:0)};function aU(t,e={}){return t0(e,r=>r.addCase(t.set,(n,i)=>{var o;const{key:a,entry:s}=i.payload,c=n[a];c?(c.updated=Date.now(),(o=c.updates)!==null&&o!==void 0||(c.updates=0),c.updates++):n[a]=Object.assign(Object.assign({},s),{created:Date.now()})}).addCase(t.remove,(n,i)=>{delete n[i.payload]}).addCase(t.invalidate,(n,i)=>{const o=n[i.payload];o&&delete o.updated}).addCase(t.trim,(n,i)=>{var o,a;const{payload:s}=i,c=(o=s.sort)!==null&&o!==void 0?o:oU,l=Object.keys(n),d=Object.entries(n).filter(([h,u])=>!s.validate||s.validate(u)).sort((h,u)=>c(h[1],u[1])).slice(0,(a=s.size)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER).map(([h])=>h);if(l.length!==d.length)for(const h of l){const u=d.indexOf(h);u!==-1?d.splice(u,1):delete n[h]}}))}var Do=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},sU=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},fi;class Ow{get state$(){return Do(this,fi,"f").asObservable()}constructor(e){fi.set(this,void 0);const{trimming:r,initial:n}=e;sU(this,fi,new t5(aU(I1,n)),"f"),r&&Do(this,fi,"f").addEffect("cache/set",()=>Do(this,fi,"f").next(I1.trim(r)))}setItem(...e){Do(this,fi,"f").next(I1.set(...e))}getItem(e){return Do(this,fi,"f").value[e]}removeItem(e){Do(this,fi,"f").next(I1.remove(e))}invalidate(e){Do(this,fi,"f").next(I1.invalidate(e))}trim(e){Do(this,fi,"f").next(I1.trim(e))}reset(){Do(this,fi,"f").reset()}complete(){Do(this,fi,"f").complete()}}fi=new WeakMap;var Ft=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},H1=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},cU=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r},Hc,io,hs,Y1,X1,y4,F6;const lU=(t=0)=>e=>{var r;return((r=e.updated)!==null&&r!==void 0?r:0)+t>Date.now()},dU=t=>{if(typeof t=="function")return t;switch(t){case"concat":return mB;case"merge":return gB;case"switch":default:return yB}};class En{get client(){return Ft(this,io,"f")}get cache(){return Ft(this,hs,"f")}constructor(e){var r;Hc.set(this,new Un),io.set(this,void 0),hs.set(this,void 0),Y1.set(this,new Va),X1.set(this,void 0),y4.set(this,void 0),F6.set(this,Z$()),H1(this,X1,i=>PB(e.key(i),Ft(this,F6,"f")),"f"),H1(this,y4,(r=e==null?void 0:e.validate)!==null&&r!==void 0?r:lU(e==null?void 0:e.expire),"f"),e.client instanceof Lw?H1(this,io,e.client,"f"):(H1(this,io,new Lw(e.client.fn,e.client.options),"f"),Ft(this,Hc,"f").add(()=>Ft(this,io,"f").complete())),e.cache instanceof Ow?H1(this,hs,e.cache,"f"):(H1(this,hs,new Ow(e.cache||{}),"f"),Ft(this,Hc,"f").add(()=>Ft(this,hs,"f").complete()));const n=dU(e.queueOperator);Ft(this,Hc,"f").add(()=>Ft(this,Y1,"f").complete()),Ft(this,Hc,"f").add(Ft(this,Y1,"f").pipe(n(({args:i,options:o})=>new it(a=>{const{task:s,transaction:c}=Ft(this,io,"f").next(i,o);a.add(s.pipe(Br(()=>Fr)).subscribe(a)),a.add(()=>{setTimeout(()=>Ft(this,io,"f").cancel(c))})})),oP(),P$(()=>!Ft(this,io,"f").closed)).subscribe(i=>{const{args:o,value:a,transaction:s,ref:c}=i,l=c??Ft(this,X1,"f").call(this,o);Ft(this,hs,"f").setItem(l,{value:a,args:o,transaction:s})}))}next(e,r){Ft(this,Y1,"f").next({args:e,options:r})}query(e,r){var n;const i=Ft(this,X1,"f").call(this,e);return(n=Ft(this,io,"f").getTaskByRef(i))!==null&&n!==void 0?n:this._createTask(i,e,r)}queryAsync(e,r){const n=r||{},{awaitResolve:i}=n,o=cU(n,["awaitResolve"]);return(i?An:ri)(this._query(e,o))}complete(){Ft(this,Hc,"f").unsubscribe()}_query(e,r){var n;const i=Ft(this,X1,"f").call(this,e);return(n=Ft(this,io,"f").getTaskByRef(i))!==null&&n!==void 0?n:this._createTask(i,e,r)}_createTask(e,r,n){var i;const o=new s$,a=Ft(this,hs,"f").getItem(e);if(a){const{value:l,args:d,created:h,updated:u,updates:f,transaction:v}=a,p={status:"cache",value:l,args:d,created:h,updated:u,updates:f,transaction:v};o.next(p)}const s=((i=n==null?void 0:n.cache)===null||i===void 0?void 0:i.validate)||Ft(this,y4,"f");return a&&s(a,r)?o.complete():Ft(this,Y1,"f").next({args:r,options:{ref:e,task:o}}),o.asObservable()}}Hc=new WeakMap,io=new WeakMap,hs=new WeakMap,Y1=new WeakMap,X1=new WeakMap,y4=new WeakMap,F6=new WeakMap;En.extractQueryValue=_B;var os=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Nw=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Q2,ga;class hU extends it{get currentContext(){return os(this,ga,"f").value}get currentContext$(){return os(this,ga,"f").asObservable()}get client(){return os(this,Q2,"f")}constructor(e){super(r=>os(this,ga,"f").subscribe(r)),Q2.set(this,void 0),ga.set(this,void 0),Nw(this,Q2,new En(e),"f"),Nw(this,ga,new jd(void 0),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(Br(()=>Fr)).subscribe(r=>this.setCurrentContext(r)):vB(e,os(this,ga,"f").value)||os(this,ga,"f").next(e)}resolveContext(e){return os(this,Q2,"f").query({id:e}).pipe(xt(r=>r.value),Br(r=>{throw r.cause?r.cause:r}))}resolveContextAsync(e,r){return(r!=null&&r.awaitResolve?An:ri)(this.resolveContext(e))}dispose(){os(this,ga,"f").complete()}}Q2=new WeakMap,ga=new WeakMap;var b2=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},$t=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},mc=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ya,_4,J2,oo,Q1,Tc,Z2,b4;let uU=class{get contextClient(){return $t(this,ya,"f")}get queryClient(){return $t(this,_4,"f")}get currentContext$(){return $t(this,ya,"f").currentContext$}get currentContext(){return $t(this,ya,"f").currentContext}set currentContext(e){if(console.warn("@deprecated","ContextProvider.currentContext","use setCurrentContextById|setCurrentContext|clearCurrentContext"),e===void 0)throw Error("not allowed to set current context as undefined undefined!");this.setCurrentContextAsync(e)}constructor(e){var r,n,i;ya.set(this,void 0),_4.set(this,void 0),J2.set(this,void 0),oo.set(this,void 0),Q1.set(this,new Un),Tc.set(this,void 0),Z2.set(this,void 0),b4.set(this,void 0);const{config:o,event:a}=e;e.parentContext&&console.warn("@deprecated","parentContext as arg is deprecated, use ContextProvider.connectParentContext"),mc(this,oo,a,"f"),o.resolveContext&&(this.resolveContext=(r=o.resolveContext)===null||r===void 0?void 0:r.bind(this)),o.validateContext&&(this.validateContext=(n=o.validateContext)===null||n===void 0?void 0:n.bind(this)),mc(this,Tc,o.contextType,"f"),mc(this,Z2,o.contextFilter,"f"),mc(this,ya,new hU(o.client.get),"f"),mc(this,_4,new En(o.client.query),"f"),o.client.related&&mc(this,J2,new En(o.client.related),"f"),mc(this,b4,(i=o.contextParameterFn)!==null&&i!==void 0?i:s=>({search:s.search,filter:{type:s.type}}),"f"),$t(this,oo,"f")&&($t(this,Q1,"f").add(this.currentContext$.pipe(x6()).subscribe(([s,c])=>{var l;(l=$t(this,oo,"f"))===null||l===void 0||l.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:s,next:c}})})),$t(this,Q1,"f").add($t(this,oo,"f").addEventListener("onCurrentContextChanged",s=>{s.source!==this&&s.detail.next!==void 0&&this.setCurrentContext(s.detail.next)})))}connectParentContext(e,r){const i=e.currentContext$.pipe(Jt(o=>o!==void 0),Jt((o,a)=>r!=null&&r.skipFirst&&a<=1?(console.debug("ContextProvider::connectParentContext","skipping first item",o),!1):this.currentContext!==o),hr(o=>b2(this,void 0,void 0,function*(){var a;if(o){const s=yield(a=$t(this,oo,"f"))===null||a===void 0?void 0:a.dispatchEvent("onParentContextChanged",{source:this,detail:o,cancelable:!0});return{next:o,canceled:s==null?void 0:s.canceled}}return{next:o}})),Jt(o=>!o.canceled),hr(({next:o})=>o?this.setCurrentContext(o,{validate:!0,resolve:!0}).pipe(Br(a=>(console.warn("ContextProvider::onParentContextChanged","setCurrentContext",a),Fr))):(this.clearCurrentContext(),Fr)),Br(o=>(console.warn("ContextProvider::onParentContextChanged","unhandled exception",o),Fr))).subscribe();return $t(this,Q1,"f").add(i),i}setCurrentContextById(e){return new it(r=>{try{$t(this,ya,"f").resolveContext(e).pipe(Jt(n=>!!n),hr(n=>this.setCurrentContext(n))).subscribe(r)}catch(n){r.error(n)}})}setCurrentContextByIdAsync(e){return ri(this.setCurrentContextById(e))}setCurrentContext(e,r){return new it(n=>{var i;if(e===this.currentContext)return n.next(e),n.complete();if(e&&(r!=null&&r.validate)&&!this.validateContext(e)){if(!r.resolve)return(i=$t(this,oo,"f"))===null||i===void 0||i.dispatchEvent("onSetContextValidationFailed",{source:this,detail:{context:e}}),n.error(Error("failed to validate provided context"));if(r.resolve)return Eo(e).pipe(hr(o=>b2(this,void 0,void 0,function*(){var a;const s=yield(a=$t(this,oo,"f"))===null||a===void 0?void 0:a.dispatchEvent("onSetContextResolve",{source:this,cancelable:!0,detail:{context:o}});if(s!=null&&s.canceled)throw Error("resolving of context was canceled");return o})),hr(o=>this.resolveContext(o).pipe(xt(a=>({context:o,resolved:a})))),hr(({context:o,resolved:a})=>b2(this,void 0,void 0,function*(){var s;const c=yield(s=$t(this,oo,"f"))===null||s===void 0?void 0:s.dispatchEvent("onSetContextResolved",{source:this,cancelable:!0,detail:{context:o,resolved:a}});if(c!=null&&c.canceled)throw Error("resolving of context was canceled");return a})),hr(o=>this.setCurrentContext(o))).subscribe(n)}return Eo(e).pipe(hr(o=>b2(this,void 0,void 0,function*(){var a;const s=yield(a=$t(this,oo,"f"))===null||a===void 0?void 0:a.dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:o}});if(s!=null&&s.canceled)throw Error("change of context was aborted");return o}))).subscribe(o=>{$t(this,ya,"f").setCurrentContext(o??null),n.next(o),n.complete()})})}setCurrentContextAsync(e,r){return b2(this,void 0,void 0,function*(){return ri(this.setCurrentContext(e,r))})}queryContext(e){const r=this.queryClient.query($t(this,b4,"f").call(this,{search:e,type:$t(this,Tc,"f")})).pipe(xt(n=>n.value));return $t(this,Z2,"f")?r.pipe(xt($t(this,Z2,"f"))):r}queryContextAsync(e){return An(this.queryContext(e))}validateContext(e){return $t(this,Tc,"f")?$t(this,Tc,"f").map(r=>r.toLowerCase()).includes(e.type.id.toLowerCase()):!0}resolveContext(e){return this.relatedContexts({item:e,filter:{type:$t(this,Tc,"f")}}).pipe(xt(r=>r.filter(n=>this.validateContext(n))),xt(r=>{const n=r.shift();if(!n)throw Error("failed to resolve context");return r.length&&console.warn("ContextProvider::relatedContext","multiple items found 🤣",r),n}))}resolveContextAsync(e){return An(this.resolveContext(e))}relatedContexts(e){return $t(this,J2,"f")?$t(this,J2,"f").query(e).pipe(xt(({value:r})=>r),Br(r=>{throw r.cause?r.cause:r})):w$(()=>Error("ContextProvider::relatedContexts - no client defined for resolving related context"))}relatedContextsAsync(e){return An(this.relatedContexts(e))}clearCurrentContext(){this.setCurrentContextAsync(null)}dispose(){$t(this,Q1,"f").unsubscribe(),$t(this,ya,"f").dispose()}};ya=new WeakMap,_4=new WeakMap,J2=new WeakMap,oo=new WeakMap,Q1=new WeakMap,Tc=new WeakMap,Z2=new WeakMap,b4=new WeakMap;var fU=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const pU="context",vU={name:pU,configure:()=>new pB,initialize:function(t){var e;return fU(this,void 0,void 0,function*(){const r=yield t.config.createConfig(t),n=t.hasModule("event")?yield t.requireInstance("event"):void 0,i=(e=t.ref)===null||e===void 0?void 0:e.context,o=new uU({config:r,event:n,parentContext:i}),a=new Un(()=>o.dispose());return this.postInitialize=s=>new it(c=>{const l=r.resolveInitialContext?Lr(r.resolveInitialContext(s)).pipe(Jt(d=>!!d),hr(d=>s.modules.context.setCurrentContext(d,{validate:!0,resolve:!0}))):Fr;c.add(l.pipe(Br(d=>(console.warn("ContextModule.postInitialize","failed to resolve initial context",d),Fr))).subscribe({next:d=>{console.debug("ContextModule.postInitialize",`initial context was resolved to [${d?d.id:"none"}]`,d)},complete:()=>{o.connectParentContext(i,{skipFirst:!!o.currentContext}),c.complete()}}))}),this.dispose=()=>a.unsubscribe(),o})}};var Fw=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class mU{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return Fw(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 Fw(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var Um=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class gU{constructor(e,r){this._client=e,this._http=r}get environment(){return this._client.environment}resolveServices(){return this._client.fetchEnvironment()}resolveService(e){return Um(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,r){return Um(this,void 0,void 0,function*(){const n=yield this.resolveService(e);if(!n)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},r),{baseUri:n.uri,defaultScopes:n.defaultScopes}))})}configureClient(e,r){return Um(this,void 0,void 0,function*(){const{key:n,alias:i}=typeof e=="string"?{key:e,alias:e}:e,{uri:o,defaultScopes:a}=yield this.resolveService(n);r.addConfig(R$(i,{baseUri:o,defaultScopes:a}))})}}var jm=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},Bw=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},yU=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},eh;const Uw="services";class _U{get environment(){var e;const r=(e=Bw(this,eh,"f").cache.getItem(Uw))===null||e===void 0?void 0:e.value;if(!r)throw Error("no cached environment found");return r}constructor({http:e,endpoint:r}){eh.set(this,void 0),this.http=e,this.endpoint=r,yU(this,eh,new En({client:{fn:()=>e.fetch$(r,{selector:this.selector.bind(this)})},key:()=>Uw,expire:5*60*1e3}),"f")}fetchEnvironment(){return jm(this,void 0,void 0,function*(){return ri(En.extractQueryValue(Bw(this,eh,"f").query(void 0,{cache:{suppressInvalid:!0}})))})}selector(e){return jm(this,void 0,void 0,function*(){const r=yield e.json(),n=r.services.reduce((i,o)=>Object.assign(i,{[o.key]:{clientId:r.clientId,uri:o.uri,defaultScopes:[r.clientId+"/.default"]}}),{});return Object.assign(Object.assign({},r),{services:n})})}resolveService(e){return jm(this,void 0,void 0,function*(){try{const{services:r}=yield this.fetchEnvironment();return r[e]}catch(r){throw console.error(r),r}})}}eh=new WeakMap;const bU="serviceDiscovery";var wU=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const xU={name:bU,configure:()=>new mU({clientCtor:_U,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:t,requireInstance:e})=>wU(void 0,void 0,void 0,function*(){const r=yield e("http"),n=yield t.createHttpClientClient(r),i=yield t.createClient(n);return new gU(i,r)})};class zU{}class da extends Error{constructor(e,r){super(`unsupported version ${e}`,{cause:r}),this.version=e}}const CU=(t,e)=>{var r;const n=(r=Yi[t])!==null&&r!==void 0?r:t;switch(n){case Yi.v2:throw new da(t);case Yi.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/contexts/${i}/?${String(o)}`}}},kU=(t,e,r)=>[CU(t,e),r],EU=(t,e,r="json")=>(n,i)=>t[r](...kU(e,n,i));var SU=["eq","ne","gt","ge","lt","le"],ff=["and","or","not"],AU=["any","all"],MU=["startswith","endswith","contains"],$U=["expand","levels","select","skip","top","count","orderby","filter"],jw=/\((.*)\)/,qw=/(?!indexof)\((\w+)\)/,Ww;(function(t){t.sum="sum",t.min="min",t.max="max",t.average="average",t.countdistinct="countdistinct"})(Ww||(Ww={}));var pa="";function aP(t){var e=t===void 0?{}:t,r=e.select,n=e.search,i=e.skiptoken,o=e.format,a=e.top,s=e.skip,c=e.filter,l=e.transform,d=e.orderBy,h=e.key,u=e.count,f=e.expand,v=e.action,p=e.func,_="",m=[],g={};if(h!=null&&(_+="(".concat(Xo(h,m),")")),(c||typeof u=="object")&&(g.$filter=mu(typeof u=="object"?u:c,m)),l&&(g.$apply=sP(l)),f&&(g.$expand=w4(f)),d&&(g.$orderby=T7(d)),u&&(typeof u=="boolean"?g.$count=!0:_+="/$count"),typeof a=="number"&&(g.$top=a),typeof s=="number"&&(g.$skip=s),v&&(_+="/".concat(v)),p){if(typeof p=="string")_+="/".concat(p);else if(typeof p=="object"){var b=Object.keys(p)[0],w=Xo(p[b],m);_+="/".concat(b),w!==""&&(_+="(".concat(w,")"))}}return m.length>0&&Object.assign(g,m.reduce(function(x,C){var S;return Object.assign(x,(S={},S["@".concat(C.name)]=Xo(C.value),S))},{})),RU(_,fr({$select:r,$search:n,$skiptoken:i,$format:o},g))}function qm(t,e,r){return r===void 0&&(r=[]),"".concat(t," eq ").concat(Xo(e,r))}function mu(t,e,r){return t===void 0&&(t={}),e===void 0&&(e=[]),r===void 0&&(r=""),(Array.isArray(t)?t:[t]).reduce(function(o,a){if(a){var s=n(a,e,r);s&&o.push(s)}return o},[]).join(" and ");function n(o,a,s){o===void 0&&(o={}),a===void 0&&(a=[]),s===void 0&&(s="");var c="";if(typeof o=="string")c=o;else if(o&&typeof o=="object"){var l=Object.keys(o).reduce(function(d,h){var u=o[h];if(u===void 0)return d;var f="";if(s?h===pa?f=s:qw.test(h)?f=h.replace(qw,function(g,b){return b.trim()===pa?"(".concat(s,")"):"(".concat(s,"/").concat(b.trim(),")")}):jw.test(h)?f=h.replace(jw,function(g,b){return b.trim()===pa?"(".concat(s,")"):"(".concat(s,"/").concat(b.trim(),")")}):f="".concat(s,"/").concat(h):f=h,h===pa&&Array.isArray(u))return d.concat(u.map(function(g){return qm(f,g)}));if(["number","string","boolean"].indexOf(typeof u)!==-1||u instanceof Date||u===null)d.push(qm(f,u,a));else if(Array.isArray(u)){var v=h,p=u.map(function(g){return mu(g,a,s)}).filter(function(g){return g}).map(function(g){return ff.indexOf(v)!==-1?"(".concat(g,")"):g});p.length&&(ff.indexOf(v)!==-1?p.length&&(v==="not"?d.push(Gw(p)):d.push("(".concat(p.join(" ".concat(v," ")),")"))):d.push(p.join(" ".concat(v," "))))}else if(ff.indexOf(f)!==-1){var _=f,p=Object.keys(u).map(function(b){var w;return n((w={},w[b]=u[b],w))});p.length&&(_==="not"?d.push(Gw(p)):d.push("(".concat(p.join(" ".concat(_," ")),")")))}else if(typeof u=="object")if("type"in u)d.push(qm(f,u,a));else{var m=Object.keys(u);m.forEach(function(g){if(u[g]!==void 0)if(SU.indexOf(g)!==-1)d.push("".concat(f," ").concat(g," ").concat(Xo(u[g],a)));else if(ff.indexOf(g)!==-1)Array.isArray(u[g])?d.push(u[g].map(function(C){return"("+n(C,a,f)+")"}).join(" ".concat(g," "))):d.push("("+n(u[g],a,f)+")");else if(AU.indexOf(g)!==-1){var b=i(h.toLowerCase(),u[g],g,f);b&&d.push(b)}else if(g==="has")d.push("".concat(f," ").concat(g," ").concat(Xo(u[g],a)));else if(g==="in"){var w=Array.isArray(u[g])?u[g]:u[g].value.map(function(C){return{type:u[g].type,value:C}});d.push(f+" in ("+w.map(function(C){return Xo(C,a)}).join(",")+")")}else if(MU.indexOf(g)!==-1)d.push("".concat(g,"(").concat(f,",").concat(Xo(u[g],a),")"));else{var x=n(u,a,f);x&&d.push(x)}})}else throw new Error("Unexpected value type: ".concat(u));return d},[]);c=l.join(" and ")}return c}function i(o,a,s,c){var l="";if(typeof a=="string"||a instanceof String)l=PU(o,a,s,c);else if(a){var d=Array.isArray(a)?a.reduce(function(u,f){return f.hasOwnProperty(pa)?(u.hasOwnProperty(pa)||(u[pa]=[]),u[pa].push(f[pa]),u):fr(fr({},u),f)},{}):a,h=n(d,e,o);l="".concat(c,"/").concat(s,"(").concat(h?"".concat(o,":").concat(h):"",")")}return l}}function PU(t,e,r,n){var i="",o=r=="all"?"ne":"eq";return i="".concat(n,"/").concat(r,"(").concat(t,": ").concat(t," ").concat(o," '").concat(e,"')"),i}function IU(t){return t=t.replace(/%/g,"%25"),t=t.replace(/\+/g,"%2B"),t=t.replace(/\//g,"%2F"),t=t.replace(/\?/g,"%3F"),t=t.replace(/#/g,"%23"),t=t.replace(/&/g,"%26"),t=t.replace(/'/g,"''"),t}function Xo(t,e){if(typeof t=="string")return"'".concat(IU(t),"'");if(t instanceof Date)return t.toISOString();if(typeof t=="number")return t;if(Array.isArray(t))return"[".concat(t.map(function(r){return Xo(r)}).join(","),"]");if(t===null)return t;if(typeof t=="object")switch(t.type){case"raw":case"guid":return t.value;case"duration":return"duration'".concat(t.value,"'");case"binary":return"binary'".concat(t.value,"'");case"alias":return Array.isArray(e)&&e.push(t),"@".concat(t.name);case"json":return escape(JSON.stringify(t.value));case"decimal":return"".concat(t.value,"M");default:return Object.entries(t).filter(function(r){var n=r[1];return n!==void 0}).map(function(r){var n=r[0],i=r[1];return"".concat(n,"=").concat(Xo(i,e))}).join(",")}return t}function w4(t){if(typeof t=="number")return t;if(typeof t=="string")return t.indexOf("/")===-1?t:t.split("/").reverse().reduce(function(r,n,i,o){return i===0?"$expand=".concat(n):i===o.length-1?"".concat(n,"(").concat(r,")"):"$expand=".concat(n,"(").concat(r,")")},"");if(Array.isArray(t))return"".concat(t.map(function(r){return w4(r)}).join(","));if(typeof t=="object"){var e=Object.keys(t);return e.some(function(r){return $U.indexOf(r.toLowerCase())!==-1})?e.map(function(r){var n;switch(r){case"filter":n=mu(t[r]);break;case"orderBy":n=T7(t[r]);break;case"levels":case"count":case"skip":case"top":n="".concat(t[r]);break;default:n=w4(t[r])}return"$".concat(r.toLowerCase(),"=").concat(n)}).join(";"):e.map(function(r){var n=w4(t[r]);return n?"".concat(r,"(").concat(n,")"):r}).join(",")}return""}function sP(t){var e=Array.isArray(t)?t:[t],r=e.reduce(function(n,i){var o=i.aggregate,a=i.filter,s=i.groupBy,c=t$(i,["aggregate","filter","groupBy"]),l=Object.keys(c);if(l.length)throw new Error("Unsupported transform(s): ".concat(l));if(o&&n.push("aggregate(".concat(HU(o),")")),a){var d=mu(a);d&&n.push("filter(".concat(mu(d),")"))}return s&&n.push("groupby(".concat(TU(s),")")),n},[]);return r.join("/")||void 0}function HU(t){var e=Array.isArray(t)?t:[t];return e.map(function(r){return typeof r=="string"?r:Object.keys(r).map(function(n){var i=r[n];if(!i.with)throw new Error("'with' property required for '".concat(n,"'"));if(!i.as)throw new Error("'as' property required for '".concat(n,"'"));return"".concat(n," with ").concat(i.with," as ").concat(i.as)})}).join(",")}function TU(t){if(!t.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(t.properties.join(","),")");return t.transform&&(e+=",".concat(sP(t.transform))),e}function T7(t,e){return e===void 0&&(e=""),Array.isArray(t)?t.map(function(r){return Array.isArray(r)&&r.length===2&&["asc","desc"].indexOf(r[1])!==-1?r.join(" "):r}).map(function(r){return"".concat(e).concat(String(r))}).join(","):typeof t=="object"?Object.entries(t).map(function(r){var n=r[0],i=r[1];return T7(i,"".concat(n,"/"))}).map(function(r){return"".concat(e).concat(r)}).join(","):"".concat(e).concat(String(t))}function RU(t,e){var r=Object.getOwnPropertyNames(e).filter(function(n){return e[n]!==void 0&&e[n]!==""}).map(function(n){return"".concat(n,"=").concat(e[n])});return r.length?"".concat(t,"?").concat(r.join("&")):t}function Gw(t){return"not(".concat(t.join(" and "),")")}const DU=t=>Object.keys(t).reduce((e,r)=>{var n;switch(r){case"type":return!((n=t[r])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[r]:{in:t[r]}}):e;default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),VU=t=>Object.entries(t).filter(([e,r])=>!!r).reduce((e,[r,n])=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:DU(n)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),LU=t=>typeof t=="string"?t:aP(VU(t)),OU=(t,e)=>{var r;const n=(r=Yi[t])!==null&&r!==void 0?r:t;switch(n){case Yi.v2:throw new da(t);case Yi.v1:default:{const{query:i,includeDeleted:o}=e,a=new URLSearchParams(LU(i));return a.append("api-version",n),o&&a.append("includeDeleted","true"),`/contexts/?${String(a)}`}}},NU=(t,e,r)=>[OU(t,e),r],FU=(t,e,r="json")=>(n,i)=>t[r](...NU(e,n,i)),BU=t=>Object.keys(t).reduce((e,r)=>{var n;switch(r){case"type":return!((n=t[r])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[r]:{in:t[r]}}):e;default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),UU=t=>Object.entries(t).filter(([e,r])=>!!r).reduce((e,[r,n])=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:BU(n)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),jU=t=>typeof t=="string"?t:aP(UU(t)),qU=(t,e)=>{var r;const n=(r=Yi[t])!==null&&r!==void 0?r:t;switch(n){case Yi.v2:throw new da(t);case Yi.v1:default:{const{id:i,query:o}=e,a=new URLSearchParams(jU(o||""));return a.append("api-version",n),`/contexts/${i}/relations?${String(a)}`}}},WU=(t,e,r)=>[qU(t,e),r],GU=(t,e,r="json")=>(n,i)=>t[r](...WU(e,n,i));class KU{get Version(){return Yi}constructor(e,r){this._client=e,this._method=r}get(e,...r){return EU(this._client,e,this._method)(...r)}query(e,...r){return FU(this._client,e,this._method)(...r)}related(e,...r){return GU(this._client,e,this._method)(...r)}}var Yi;(function(t){t.v1="1.0",t.v2="2.0"})(Yi||(Yi={}));const YU=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},XU=(t,e,r)=>{const n=YU(t,e),i=Object.assign({},{method:"Delete"},r);return[n,i]},QU=(t,e,r="fetch")=>(n,i)=>t[r](...XU(e,n,i)),JU=QU,ZU=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},ej=(t,e,r)=>[ZU(t,e),r],tj=(t,e,r="json")=>(n,i)=>t[r](...ej(e,n,i)),rj=tj,nj=(t,e)=>{switch(t){case"v1":default:{const r=new URLSearchParams;return r.append("api-version",t),`/bookmarks?${String(r)}`}}},ij=(t,e,r)=>{const n=nj(t),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},r);return[n,o]},oj=(t,e,r="json")=>(n,i)=>t[r](...ij(e,n,i)),aj=oj,sj=(t,e)=>{switch(t){case"v1":default:{const r=new URLSearchParams;return r.append("api-version",t),`/bookmarks/${e.id}?${String(r)}`}}},cj=(t,e,r)=>{const n=sj(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:i},r);return[n,o]},lj=(t,e,r="json")=>(n,i)=>t[r](...cj(e,n,i)),dj=lj,hj=t=>{switch(t){case"v1":default:{const e=new URLSearchParams;return e.append("api-version",t),`persons/me/bookmarks/?${String(e)}`}}},uj=(t,e)=>[hj(t),e],fj=(t,e,r="json")=>n=>t[r](...uj(e,n)),pj=fj,vj=(t,e)=>{switch(t){case"v1":default:{const r=new URLSearchParams;return r.append("api-version",t),`/persons/me/bookmarks/favourites?${String(r)}`}}},mj=(t,e,r)=>{const n=vj(t),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},r);return[n,o]},gj=(t,e,r="json")=>(n,i)=>t[r](...mj(e,n,i)),yj=gj,_j=(t,e)=>{switch(t){case"v1":default:{const{bookmarkId:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/persons/me/bookmarks/favourites/${r}/?${String(n)}`}}},bj=(t,e,r)=>{const n=_j(t,e),i=Object.assign({},{method:"Delete"},r);return[n,i]},wj=(t,e,r="fetch")=>(n,i)=>t[r](...bj(e,n,i)),xj=wj,zj=(t,e)=>{switch(t){case"v1":default:{const{bookmarkId:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/persons/me/bookmarks/favourites/${r}?${String(n)}`}}},Cj=(t,e,r)=>{const n=zj(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"head",headers:i},r);return[n,o]},kj=(t,e,r="json")=>(n,i)=>t[r](...Cj(e,n,i)),Ej=kj;class Sj{constructor(e,r){this._client=e,this._method=r}get(e,...r){return rj(this._client,e,this._method)(...r)}getAll(e){return pj(this._client,e,this._method)()}post(e,...r){return aj(this._client,e,this._method)(...r)}patch(e,...r){return dj(this._client,e,this._method)(...r)}delete(e,...r){return JU(this._client,e,this._method)(...r)}addFavorite(e,...r){return yj(this._client,e,this._method)(...r)}removeFavorite(e,...r){return xj(this._client,e,this._method)(...r)}verifyFavorite(e,...r){return Ej(this._client,e,this._method)(...r)}}const Aj=Sj,Mj=(t,e)=>{var r;const n=(r=Zt[t])!==null&&r!==void 0?r:t;switch(n){case Zt.v2:throw new da(t);case Zt.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},$j=(t,e,r)=>[Mj(t,e),r],Pj=(t,e,r="json")=>(n,i)=>t[r](...$j(e,n,i)),Ij=(t,e)=>{var r;const n=(r=Zt[t])!==null&&r!==void 0?r:t;switch(n){case Zt.v2:throw new da(t);case Zt.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/?${String(o)}`}}},Hj=(t,e,r)=>{const n=Ij(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},r);return[n,o]},Tj=(t,e,r="json")=>(n,i)=>t[r](...Hj(e,n,i)),Rj=(t,e)=>{var r;const n=(r=Zt[t])!==null&&r!==void 0?r:t;switch(n){case Zt.v2:throw new da(t);case Zt.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},Dj=(t,e,r)=>{const n=Rj(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:i},r);return[n,o]},Vj=(t,e,r="json")=>(n,i)=>t[r](...Dj(e,n,i)),Lj=(t,e)=>{var r;const n=(r=Zt[t])!==null&&r!==void 0?r:t;switch(n){case Zt.v2:throw new da(t);case Zt.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/?${String(o)}`}}},Oj=(t,e,r)=>[Lj(t,e),r],Nj=(t,e,r="json")=>(n,i)=>t[r](...Oj(e,n,i)),Fj=(t,e)=>{var r;const n=(r=Zt[t])!==null&&r!==void 0?r:t;switch(n){case Zt.v2:throw new da(t);case Zt.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},Bj=(t,e,r)=>{const n=Fj(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"delete",headers:i},r);return[n,o]},Uj=(t,e,r="json")=>(n,i)=>t[r](...Bj(e,n,i));var Zt;(function(t){t.v1="1.0",t.v2="2.0"})(Zt||(Zt={}));const jj=(t,e)=>{var r;const n=(r=Zt[t])!==null&&r!==void 0?r:t;switch(n){case Zt.v2:throw new da(t);case Zt.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/settings/?${String(o)}`}}},qj=(t,e,r)=>{const n=jj(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"put",body:JSON.stringify(e),headers:i},r);return[n,o]},Wj=(t,e,r="json")=>(n,i)=>t[r](...qj(e,n,i)),Gj=Wj,Kj=(t,e)=>{var r;const n=(r=Zt[t])!==null&&r!==void 0?r:t;switch(n){case Zt.v2:throw new da(t);case Zt.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/settings/?${String(o)}`}}},Yj=(t,e,r)=>[Kj(t,e),r],Xj=(t,e,r="json")=>(n,i)=>t[r](...Yj(e,n,i)),Qj=Xj;class Jj{get Version(){return Zt}constructor(e,r){this._client=e,this._method=r}getAll(e,...r){return Nj(this._client,e,this._method)(...r)}getById(e,...r){return Pj(this._client,e,this._method)(...r)}setSeenByUser(e,...r){return Vj(this._client,e,this._method)(...r)}create(e,...r){return Tj(this._client,e,this._method)(...r)}delete(e,...r){return Uj(this._client,e,this._method)(...r)}getSettings(e,...r){return Qj(this._client,e,this._method)(...r)}updateSettings(e,...r){return Gj(this._client,e,this._method)(...r)}}var x4=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class Zj extends Error{constructor(e,r,n){super(e,n),this.response=r,this.name="ApiProviderError"}}const Wm=t=>x4(void 0,void 0,void 0,function*(){var e;if(!t.ok){const{headers:r,status:n,statusText:i,type:o,url:a,bodyUsed:s}=t,c=(e=r.get("content-type"))===null||e===void 0?void 0:e.match(/application\/(\w*)?[+]?json/),l=!s&&(yield c?t.json():t.text());throw new Zj("failed to execute request, response was not ok",{headers:r,status:n,statusText:i,type:o,url:a,data:l})}});class eq{constructor({createClient:e}){this._createClientFn=e}createNotificationClient(e){return x4(this,void 0,void 0,function*(){const r=yield this._createClientFn("notification");return r.responseHandler.add("validate_api_request",Wm),new Jj(r,e)})}createBookmarksClient(e){return x4(this,void 0,void 0,function*(){const r=yield this._createClientFn("bookmarks");return r.responseHandler.add("validate_api_request",Wm),new Aj(r,e)})}createContextClient(e){return x4(this,void 0,void 0,function*(){const r=yield this._createClientFn("context");return r.responseHandler.add("validate_api_request",Wm),new KU(r,e)})}}var cP=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const tq="services",rq=(t,e)=>r=>cP(void 0,void 0,void 0,function*(){if(t.hasClient(r))return t.createClient(r);if(e)return e.createClient(r);throw Error(`failed to create http client for service ${r}`)}),nq={name:tq,configure:()=>new zU,initialize:({ref:t,config:e,requireInstance:r,hasModule:n})=>cP(void 0,void 0,void 0,function*(){if(!e.createClient){const i=yield r("http"),o=n("serviceDiscovery")?yield r("serviceDiscovery"):t==null?void 0:t.serviceDiscovery;e.createClient=rq(i,o)}if(!e.createClient)throw Error("missing configuration for creating API client");return new eq(e)})},iq=nq;class oq extends CN{constructor(){super([$N,X$,_7,xU,iq,vU]),this.logger=new e$("FrameworkConfigurator")}configureHttp(...e){this.addConfig(FN(...e))}configureHttpClient(...e){this.addConfig(R$(...e))}configureMsal(...e){this.addConfig(eB(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var aq=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const sq=(t,e)=>aq(void 0,void 0,void 0,function*(){const r=yield t.initialize(e),n={modules:r};return window.Fusion=n,r.event.dispatchEvent("onFrameworkLoaded",{detail:n}),n}),lP=y.createContext(null),cq=lP.Provider;var lq=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const dq=t=>y.lazy(()=>lq(void 0,void 0,void 0,function*(){const e=new oq;yield t(e);const r=yield sq(e);return{default:({children:n})=>z(cq,Object.assign({value:r},{children:n}))}})),jn=()=>{let t=y.useContext(lP);return t||console.warn("could not locate fusion in context!"),t??(t=window.Fusion),t||console.error("Could not load framework, might not be initiated?"),t},hq=t=>{const e=y.useMemo(()=>dq(t.configure),[t.configure]);return z(y.Suspense,Object.assign({fallback:t.fallback},{children:z(e,{children:t.children})}))};function St(){return St=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},St.apply(this,arguments)}function nd(t){return nd=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},nd(t)}function Gm(t){return t&&nd(t)==="object"&&t.constructor===Object}function dP(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?St({},t):t;return Gm(t)&&Gm(e)&&Object.keys(e).forEach(function(i){i!=="__proto__"&&(Gm(e[i])&&i in t?n[i]=dP(t[i],e[i],r):n[i]=e[i])}),n}var le={},uq={get exports(){return le},set exports(t){le=t}},fq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",pq=fq,vq=pq;function hP(){}function uP(){}uP.resetWarningCache=hP;var mq=function(){function t(n,i,o,a,s,c){if(c!==vq){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:uP,resetWarningCache:hP};return r.PropTypes=r,r};uq.exports=mq();function gq(t,e){if(nd(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(nd(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yq(t){var e=gq(t,"string");return nd(e)==="symbol"?e:String(e)}var _q=typeof Symbol=="function"&&Symbol.for;const fP=_q?Symbol.for("mui.nested"):"__THEME_NESTED__";var bq=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function wq(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.disableGlobal,r=e===void 0?!1:e,n=t.productionPrefix,i=n===void 0?"jss":n,o=t.seed,a=o===void 0?"":o,s=a===""?"":"".concat(a,"-"),c=0,l=function(){return c+=1,c};return function(d,h){var u=h.options.name;if(u&&u.indexOf("Mui")===0&&!h.options.link&&!r){if(bq.indexOf(d.key)!==-1)return"Mui-".concat(d.key);var f="".concat(s).concat(u,"-").concat(d.key);return!h.options.theme[fP]||a!==""?f:"".concat(f,"-").concat(l())}return"".concat(s).concat(i).concat(l())}}var Kw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r0=(typeof window>"u"?"undefined":Kw(window))==="object"&&(typeof document>"u"?"undefined":Kw(document))==="object"&&document.nodeType===9;function Yw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yq(n.key),n)}}function pP(t,e,r){return e&&Yw(t.prototype,e),r&&Yw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function B6(t,e){return B6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},B6(t,e)}function vP(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,B6(t,e)}function Xw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mP(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var xq={}.constructor;function U6(t){if(t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(U6);if(t.constructor!==xq)return t;var e={};for(var r in t)e[r]=U6(t[r]);return e}function R7(t,e,r){t===void 0&&(t="unnamed");var n=r.jss,i=U6(e),o=n.plugins.onCreateRule(t,i,r);return o||(t[0],null)}var Qw=function(e,r){for(var n="",i=0;i<e.length&&e[i]!=="!important";i++)n&&(n+=r),n+=e[i];return n},r1=function(e){if(!Array.isArray(e))return e;var r="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&e[n]!=="!important";n++)r&&(r+=", "),r+=Qw(e[n]," ");else r=Qw(e,", ");return e[e.length-1]==="!important"&&(r+=" !important"),r};function Kd(t){return t&&t.format===!1?{linebreak:"",space:""}:{linebreak:`
75
75
  `,space:" "}}function w2(t,e){for(var r="",n=0;n<e;n++)r+=" ";return r+t}function gu(t,e,r){r===void 0&&(r={});var n="";if(!e)return n;var i=r,o=i.indent,a=o===void 0?0:o,s=e.fallbacks;r.format===!1&&(a=-1/0);var c=Kd(r),l=c.linebreak,d=c.space;if(t&&a++,s)if(Array.isArray(s))for(var h=0;h<s.length;h++){var u=s[h];for(var f in u){var v=u[f];v!=null&&(n&&(n+=l),n+=w2(f+":"+d+r1(v)+";",a))}}else for(var p in s){var _=s[p];_!=null&&(n&&(n+=l),n+=w2(p+":"+d+r1(_)+";",a))}for(var m in e){var g=e[m];g!=null&&m!=="fallbacks"&&(n&&(n+=l),n+=w2(m+":"+d+r1(g)+";",a))}return!n&&!r.allowEmpty||!t?n:(a--,n&&(n=""+l+n+l),w2(""+t+d+"{"+n,a)+w2("}",a))}var zq=/([[\].#*$><+~=|^:(),"'`\s])/g,Jw=typeof CSS<"u"&&CSS.escape,D7=function(t){return Jw?Jw(t):t.replace(zq,"\\$1")},gP=function(){function t(r,n,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=r,this.options=i,this.style=n,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var e=t.prototype;return e.prop=function(n,i,o){if(i===void 0)return this.style[n];var a=o?o.force:!1;if(!a&&this.style[n]===i)return this;var s=i;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(i,n,this));var c=s==null||s===!1,l=n in this.style;if(c&&!l&&!a)return this;var d=c&&l;if(d?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return d?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var h=this.options.sheet;return h&&h.attached,this},t}(),j6=function(t){vP(e,t);function e(n,i,o){var a;a=t.call(this,n,i,o)||this;var s=o.selector,c=o.scoped,l=o.sheet,d=o.generateId;return s?a.selectorText=s:c!==!1&&(a.id=d(Xw(Xw(a)),l),a.selectorText="."+D7(a.id)),a}var r=e.prototype;return r.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var s in a)o.setProperty(i,s,a[s])}return this},r.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=r1(a))}return i},r.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?St({},i,{allowEmpty:!0}):i;return gu(this.selectorText,this.style,s)},pP(e,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var s=o.setSelector(a,i);s||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),e}(gP),Cq={onCreateRule:function(e,r,n){return e[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new j6(e,r,n)}},Km={indent:1,children:!0},kq=/@([\w-]+)/,Eq=function(){function t(r,n,i){this.type="conditional",this.isProcessed=!1,this.key=r;var o=r.match(kq);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new r5(St({},i,{parent:this}));for(var a in n)this.rules.add(a,n[a]);this.rules.process()}var e=t.prototype;return e.getRule=function(n){return this.rules.get(n)},e.indexOf=function(n){return this.rules.indexOf(n)},e.addRule=function(n,i,o){var a=this.rules.add(n,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},e.replaceRule=function(n,i,o){var a=this.rules.replace(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.toString=function(n){n===void 0&&(n=Km);var i=Kd(n),o=i.linebreak;if(n.indent==null&&(n.indent=Km.indent),n.children==null&&(n.children=Km.children),n.children===!1)return this.query+" {}";var a=this.rules.toString(n);return a?this.query+" {"+o+a+o+"}":""},t}(),Sq=/@media|@supports\s+/,Aq={onCreateRule:function(e,r,n){return Sq.test(e)?new Eq(e,r,n):null}},Ym={indent:1,children:!0},Mq=/@keyframes\s+([\w-]+)/,q6=function(){function t(r,n,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=r.match(Mq);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,s=i.sheet,c=i.generateId;this.id=a===!1?this.name:D7(c(this,s)),this.rules=new r5(St({},i,{parent:this}));for(var l in n)this.rules.add(l,n[l],St({},i,{parent:this}));this.rules.process()}var e=t.prototype;return e.toString=function(n){n===void 0&&(n=Ym);var i=Kd(n),o=i.linebreak;if(n.indent==null&&(n.indent=Ym.indent),n.children==null&&(n.children=Ym.children),n.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(n);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},t}(),$q=/@keyframes\s+/,Pq=/\$([\w-]+)/g,W6=function(e,r){return typeof e=="string"?e.replace(Pq,function(n,i){return i in r?r[i]:n}):e},Zw=function(e,r,n){var i=e[r],o=W6(i,n);o!==i&&(e[r]=o)},Iq={onCreateRule:function(e,r,n){return typeof e=="string"&&$q.test(e)?new q6(e,r,n):null},onProcessStyle:function(e,r,n){return r.type!=="style"||!n||("animation-name"in e&&Zw(e,"animation-name",n.keyframes),"animation"in e&&Zw(e,"animation",n.keyframes)),e},onChangeValue:function(e,r,n){var i=n.options.sheet;if(!i)return e;switch(r){case"animation":return W6(e,i.keyframes);case"animation-name":return W6(e,i.keyframes);default:return e}}},Hq=function(t){vP(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;return r.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?St({},i,{allowEmpty:!0}):i;return gu(this.key,this.style,s)},e}(gP),Tq={onCreateRule:function(e,r,n){return n.parent&&n.parent.type==="keyframes"?new Hq(e,r,n):null}},Rq=function(){function t(r,n,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=i}var e=t.prototype;return e.toString=function(n){var i=Kd(n),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=gu(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return gu(this.at,this.style,n)},t}(),Dq=/@font-face/,Vq={onCreateRule:function(e,r,n){return Dq.test(e)?new Rq(e,r,n):null}},Lq=function(){function t(r,n,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=r,this.style=n,this.options=i}var e=t.prototype;return e.toString=function(n){return gu(this.key,this.style,n)},t}(),Oq={onCreateRule:function(e,r,n){return e==="@viewport"||e==="@-ms-viewport"?new Lq(e,r,n):null}},Nq=function(){function t(r,n,i){this.type="simple",this.isProcessed=!1,this.key=r,this.value=n,this.options=i}var e=t.prototype;return e.toString=function(n){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
76
76
  `);return i}return this.key+" "+this.value+";"},t}(),Fq={"@charset":!0,"@import":!0,"@namespace":!0},Bq={onCreateRule:function(e,r,n){return e in Fq?new Nq(e,r,n):null}},ex=[Cq,Aq,Iq,Tq,Vq,Oq,Bq],Uq={process:!0},tx={force:!0,process:!0},r5=function(){function t(r){this.map={},this.raw={},this.index=[],this.counter=0,this.options=r,this.classes=r.classes,this.keyframes=r.keyframes}var e=t.prototype;return e.add=function(n,i,o){var a=this.options,s=a.parent,c=a.sheet,l=a.jss,d=a.Renderer,h=a.generateId,u=a.scoped,f=St({classes:this.classes,parent:s,sheet:c,jss:l,Renderer:d,generateId:h,scoped:u,name:n,keyframes:this.keyframes,selector:void 0},o),v=n;n in this.raw&&(v=n+"-d"+this.counter++),this.raw[v]=i,v in this.classes&&(f.selector="."+D7(this.classes[v]));var p=R7(v,i,f);if(!p)return null;this.register(p);var _=f.index===void 0?this.index.length:f.index;return this.index.splice(_,0,p),p},e.replace=function(n,i,o){var a=this.get(n),s=this.index.indexOf(a);a&&this.remove(a);var c=o;return s!==-1&&(c=St({},o,{index:s})),this.add(n,i,c)},e.get=function(n){return this.map[n]},e.remove=function(n){this.unregister(n),delete this.raw[n.key],this.index.splice(this.index.indexOf(n),1)},e.indexOf=function(n){return this.index.indexOf(n)},e.process=function(){var n=this.options.jss.plugins;this.index.slice(0).forEach(n.onProcessRule,n)},e.register=function(n){this.map[n.key]=n,n instanceof j6?(this.map[n.selector]=n,n.id&&(this.classes[n.key]=n.id)):n instanceof q6&&this.keyframes&&(this.keyframes[n.name]=n.id)},e.unregister=function(n){delete this.map[n.key],n instanceof j6?(delete this.map[n.selector],delete this.classes[n.key]):n instanceof q6&&delete this.keyframes[n.name]},e.update=function(){var n,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(n=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],n=null),n)this.updateOne(this.get(n),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},e.updateOne=function(n,i,o){o===void 0&&(o=Uq);var a=this.options,s=a.jss.plugins,c=a.sheet;if(n.rules instanceof t){n.rules.update(i,o);return}var l=n.style;if(s.onUpdate(i,n,c,o),o.process&&l&&l!==n.style){s.onProcessStyle(n.style,n,c);for(var d in n.style){var h=n.style[d],u=l[d];h!==u&&n.prop(d,h,tx)}for(var f in l){var v=n.style[f],p=l[f];v==null&&v!==p&&n.prop(f,null,tx)}}},e.toString=function(n){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=Kd(n),c=s.linebreak,l=0;l<this.index.length;l++){var d=this.index[l],h=d.toString(n);!h&&!a||(i&&(i+=c),i+=h)}return i},t}(),yP=function(){function t(r,n){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=St({},n,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),n.Renderer&&(this.renderer=new n.Renderer(this)),this.rules=new r5(this.options);for(var i in r)this.rules.add(i,r[i]);this.rules.process()}var e=t.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(n,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(n,i,o);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.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(n,i,o){var a=this.rules.get(n);if(!a)return this.addRule(n,i,o);var s=this.rules.replace(n,i,o);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},e.insertRule=function(n){this.renderer&&this.renderer.insertRule(n)},e.addRules=function(n,i){var o=[];for(var a in n){var s=this.addRule(a,n[a],i);s&&o.push(s)}return o},e.getRule=function(n){return this.rules.get(n)},e.deleteRule=function(n){var i=typeof n=="object"?n:this.rules.get(n);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},e.indexOf=function(n){return this.rules.indexOf(n)},e.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},e.update=function(){var n;return(n=this.rules).update.apply(n,arguments),this},e.updateOne=function(n,i,o){return this.rules.updateOne(n,i,o),this},e.toString=function(n){return this.rules.toString(n)},t}(),jq=function(){function t(){this.plugins={internal:[],external:[]},this.registry={}}var e=t.prototype;return e.onCreateRule=function(n,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](n,i,o);if(s)return s}return null},e.onProcessRule=function(n){if(!n.isProcessed){for(var i=n.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](n,i);n.style&&this.onProcessStyle(n.style,n,i),n.isProcessed=!0}},e.onProcessStyle=function(n,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},e.onProcessSheet=function(n){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](n)},e.onUpdate=function(n,i,o,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](n,i,o,a)},e.onChangeValue=function(n,i,o){for(var a=n,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,i,o);return a},e.use=function(n,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(n)===-1&&(o.push(n),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var c in s)c in a&&a[c].push(s[c]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},t}(),qq=function(){function t(){this.registry=[]}var e=t.prototype;return e.add=function(n){var i=this.registry,o=n.options.index;if(i.indexOf(n)===-1){if(i.length===0||o>=this.index){i.push(n);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,n);return}}},e.reset=function(){this.registry=[]},e.remove=function(n){var i=this.registry.indexOf(n);this.registry.splice(i,1)},e.toString=function(n){for(var i=n===void 0?{}:n,o=i.attached,a=mP(i,["attached"]),s=Kd(a),c=s.linebreak,l="",d=0;d<this.registry.length;d++){var h=this.registry[d];o!=null&&h.attached!==o||(l&&(l+=c),l+=h.toString(a))}return l},pP(t,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),t}(),kh=new qq,G6=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),K6="2f1acc6c3a606b082e5eef5e54414ffb";G6[K6]==null&&(G6[K6]=0);var rx=G6[K6]++,nx=function(e){e===void 0&&(e={});var r=0,n=function(o,a){r+=1;var s="",c="";return a&&(a.options.classNamePrefix&&(c=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),e.minify?""+(c||"c")+rx+s+r:c+o.key+"-"+rx+(s?"-"+s:"")+"-"+r};return n},_P=function(e){var r;return function(){return r||(r=e()),r}},Wq=function(e,r){try{return e.attributeStyleMap?e.attributeStyleMap.get(r):e.style.getPropertyValue(r)}catch{return""}},Gq=function(e,r,n){try{var i=n;if(Array.isArray(n)&&(i=r1(n)),e.attributeStyleMap)e.attributeStyleMap.set(r,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;e.style.setProperty(r,a,o>-1?"important":"")}}catch{return!1}return!0},Kq=function(e,r){try{e.attributeStyleMap?e.attributeStyleMap.delete(r):e.style.removeProperty(r)}catch{}},Yq=function(e,r){return e.selectorText=r,e.selectorText===r},bP=_P(function(){return document.querySelector("head")});function Xq(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n.attached&&n.options.index>e.index&&n.options.insertionPoint===e.insertionPoint)return n}return null}function Qq(t,e){for(var r=t.length-1;r>=0;r--){var n=t[r];if(n.attached&&n.options.insertionPoint===e.insertionPoint)return n}return null}function Jq(t){for(var e=bP(),r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];if(n.nodeType===8&&n.nodeValue.trim()===t)return n}return null}function Zq(t){var e=kh.registry;if(e.length>0){var r=Xq(e,t);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=Qq(e,t),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=t.insertionPoint;if(n&&typeof n=="string"){var i=Jq(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function eW(t,e){var r=e.insertionPoint,n=Zq(e);if(n!==!1&&n.parent){n.parent.insertBefore(t,n.node);return}if(r&&typeof r.nodeType=="number"){var i=r,o=i.parentNode;o&&o.insertBefore(t,i.nextSibling);return}bP().appendChild(t)}var tW=_P(function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}),ix=function(e,r,n){try{"insertRule"in e?e.insertRule(r,n):"appendRule"in e&&e.appendRule(r)}catch{return!1}return e.cssRules[n]},ox=function(e,r){var n=e.cssRules.length;return r===void 0||r>n?n:r},rW=function(){var e=document.createElement("style");return e.textContent=`
77
77
  `,e},nW=function(){function t(r){this.getPropertyValue=Wq,this.setProperty=Gq,this.removeProperty=Kq,this.setSelector=Yq,this.hasInsertedRules=!1,this.cssRules=[],r&&kh.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},i=n.media,o=n.meta,a=n.element;this.element=a||rW(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=tW();s&&this.element.setAttribute("nonce",s)}var e=t.prototype;return e.attach=function(){if(!(this.element.parentNode||!this.sheet)){eW(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
@@ -415,7 +415,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
415
415
  class="progress">
416
416
  </circle>
417
417
  </svg>
418
- `}}k([D({type:String,reflect:!0})],c0.prototype,"size",void 0);k([D({type:String,reflect:!0})],c0.prototype,"color",void 0);c0.styles=FK;const nI="fwc-circular-progress";let Ix=class extends c0{};Ix=k([Ot(nI)],Ix);const BK=Qa(a0,tI);Qa(c0,nI);Qa(s0,rI);const iI=({children:t,text:e})=>z("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100vw",height:"100vh",overflow:"hidden"},children:z(BK,{text:e,children:t})});var UK=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},jK=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},C4;class qK{constructor(e,r={}){this.config=r,C4.set(this,void 0),UK(this,C4,e,"f")}requireInstance(e){return jK(this,C4,"f").requireInstance(e)}setAppClient(e,r=1*60*1e3){this.config.client={getAppManifest:typeof e.getAppManifest=="function"?{key:({appKey:n})=>n,client:{fn:e.getAppManifest},expire:r}:e.getAppManifest,getAppManifests:typeof e.getAppManifests=="function"?{key:()=>"app_manifests",client:{fn:e.getAppManifests},expire:r}:e.getAppManifests,getAppConfig:typeof e.getAppConfig=="function"?{key:n=>JSON.stringify(n),client:{fn:e.getAppConfig},expire:r}:e.getAppConfig}}}C4=new WeakMap;const WK=()=>({setManifest:cn("set_manifest",t=>({payload:t,meta:{created:Date.now()}})),fetchManifest:qo("fetch_manifest",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setConfig:cn("set_config",t=>({payload:t})),fetchConfig:qo("fetch_config",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setModule:cn("set_module",t=>({payload:t})),importApp:qo("import_app",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setInstance:cn("set_instance",t=>({payload:t})),initialize:qo("initialize_app",()=>({payload:null}),()=>({payload:null}),t=>({payload:t}))}),kt=WK();UB();const GK=t=>t0(Object.assign(Object.assign({},t),{status:new Set}),e=>e.addCase(kt.setManifest,(r,n)=>{r.manifest=n.payload}).addCase(kt.setConfig,(r,n)=>{r.config=n.payload}).addCase(kt.setModule,(r,n)=>{r.modules=n.payload}).addCase(kt.setInstance,(r,n)=>{r.instance=n.payload}).addMatcher(HB,(r,n)=>{r.status.add(Sw(n))}).addMatcher(DB,(r,n)=>{r.status.delete(Sw(n))})),KK="modulepreload",YK=function(t){return"/"+t},Hx={},oI=function(e,r,n){if(!r||r.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=YK(o),o in Hx)return;Hx[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let d=i.length-1;d>=0;d--){const h=i[d];if(h.href===o&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":KK,a||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),a)return new Promise((d,h)=>{l.addEventListener("load",d),l.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())},XK=t=>e=>e.pipe(ir(kt.fetchManifest.match),hr(({payload:r})=>{const n=Lr(t.getAppManifest(r)).pipe(ir(i=>!!i),xt(kt.setManifest));return E$(n,n.pipe(Zv(),xt(({payload:i})=>kt.fetchManifest.success(i)))).pipe(Br(i=>Eo(kt.fetchManifest.failure(i))))})),QK=t=>e=>e.pipe(ir(kt.fetchConfig.match),hr(({payload:r})=>{const n=Lr(t.getAppConfig(r)).pipe(xt(kt.setConfig));return E$(n,n.pipe(Zv(),xt(({payload:i})=>kt.fetchConfig.success(i)))).pipe(Br(i=>Eo(kt.fetchConfig.failure(i))))})),JK=()=>t=>t.pipe(ir(kt.importApp.match),hr(({payload:e})=>Lr(oI(()=>import(e),[])).pipe(xt(kt.importApp.success),Br(r=>Eo(kt.importApp.failure(r)))))),ZK=(t,e)=>{const r=GK(t),n=new t5(r);return n.addFlow(XK(e)),n.addFlow(QK(e)),n.addFlow(JK()),n};var eY=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},Qe=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},tY=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},t8,Ge,aI;function nh(){return ir(t=>t!=null)}class rY{get manifest$(){return Qe(this,Ge,"f").pipe(xt(({manifest:e})=>e),nh())}get config$(){return Qe(this,Ge,"f").pipe(xt(({config:e})=>e),nh())}get modules$(){return Qe(this,Ge,"f").pipe(xt(({modules:e})=>e),nh())}get instance$(){return Qe(this,Ge,"f").pipe(xt(({instance:e})=>e),nh())}get state(){return Qe(this,Ge,"f").value}get appKey(){return Qe(this,Ge,"f").value.appKey}get manifest(){return this.state.manifest}get manifestAsync(){return ri(this.manifest$)}get config(){return this.state.config}get configAsync(){return ri(this.config$)}get instance(){return Qe(this,Ge,"f").value.instance}constructor(e,r){t8.add(this),Ge.set(this,void 0),tY(this,Ge,ZK(e,r.provider),"f");const{appKey:n}=e,{event:i}=r;i&&Qe(this,t8,"m",aI).call(this,i);const o=new Un;i&&(o.add(()=>{i.dispatchEvent("onAppDispose",{detail:{appKey:n}})}),o.add(i.addEventListener("onAppModulesLoaded",a=>{a.detail.appKey===n&&Qe(this,Ge,"f").next(kt.setInstance(a.detail.modules))}))),this.dispose=()=>{o==null||o.unsubscribe(),Qe(this,Ge,"f").value.instance&&Qe(this,Ge,"f").value.instance.dispose(),Qe(this,Ge,"f").complete()}}initialize(){return new it(e=>{Qe(this,Ge,"f").next(kt.initialize()),e.add(rN([this.getManifest(),this.getAppModule(),this.getConfig()]).subscribe({next:([r,n,i])=>e.next({manifest:r,script:n,config:i}),error:r=>{e.error(r),Qe(this,Ge,"f").next(kt.initialize.failure(r))},complete:()=>{Qe(this,Ge,"f").next(kt.initialize.success()),e.complete()}}))})}loadConfig(){Qe(this,Ge,"f").next(kt.fetchConfig(this.appKey))}loadManifest(){Qe(this,Ge,"f").next(kt.fetchManifest(this.appKey))}loadAppModule(e=!0){return eY(this,void 0,void 0,function*(){const r=yield this.getManifestAsync(e);Qe(this,Ge,"f").next(kt.importApp(r.entry))})}getConfig(e=!1){return new it(r=>{if(Qe(this,Ge,"f").value.config&&(r.next(Qe(this,Ge,"f").value.config),!e))return r.complete();r.add(Qe(this,Ge,"f").addEffect("set_config",({payload:n})=>{r.next(n)})),r.add(Qe(this,Ge,"f").addEffect("fetch_config::success",({payload:n})=>{r.next(n),r.complete()})),r.add(Qe(this,Ge,"f").addEffect("fetch_config::failure",({payload:n})=>{r.error(Error("failed to load application config",{cause:n}))})),this.loadConfig()})}getConfigAsync(e=!0){return(e?ri:An)(this.getConfig(!e))}getManifest(e=!1){return new it(r=>{if(Qe(this,Ge,"f").value.manifest&&(r.next(Qe(this,Ge,"f").value.manifest),!e))return r.complete();r.add(Qe(this,Ge,"f").addEffect("set_manifest",({payload:n})=>{r.next(n)})),r.add(Qe(this,Ge,"f").addEffect("fetch_manifest::success",({payload:n})=>{r.next(n),r.complete()})),r.add(Qe(this,Ge,"f").addEffect("fetch_manifest::failure",({payload:n})=>{r.error(Error("failed to load application manifest",{cause:n}))})),this.loadManifest()})}getManifestAsync(e=!0){return(e?ri:An)(this.getManifest(!e))}getAppModule(e=!1){return new it(r=>{if(Qe(this,Ge,"f").value.modules&&(r.next(Qe(this,Ge,"f").value.modules),!e))return r.complete();r.add(Qe(this,Ge,"f").addEffect("set_module",({payload:n})=>{r.next(n)})),r.add(Qe(this,Ge,"f").addEffect("import_app::success",({payload:n})=>{r.next(n),r.complete()})),r.add(Qe(this,Ge,"f").addEffect("import_app::failure",({payload:n})=>{r.error(Error("failed to load application modules from script",{cause:n}))})),r.add(this.getManifest().subscribe(n=>Eo(Qe(this,Ge,"f").next(kt.importApp(n.entry)))))})}getAppModuleAsync(e=!0){return(e?ri:An)(this.getAppModule(!e))}}Ge=new WeakMap,t8=new WeakSet,aI=function(e){const{appKey:r}=this;Qe(this,Ge,"f").addEffect(kt.fetchManifest.success.type,n=>{e.dispatchEvent("onAppManifestLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),Qe(this,Ge,"f").addEffect(kt.fetchConfig.success.type,n=>{e.dispatchEvent("onAppConfigLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),Qe(this,Ge,"f").addEffect(kt.importApp.success.type,n=>{e.dispatchEvent("onAppScriptLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),Qe(this,Ge,"f").addEffect(kt.initialize.type,()=>{e.dispatchEvent("onAppInitialize",{detail:{appKey:r},source:this})}),Qe(this,Ge,"f").addEffect(kt.initialize.success.type,()=>{e.dispatchEvent("onAppInitialized",{detail:{appKey:r},source:this})}),Qe(this,Ge,"f").addEffect(kt.initialize.failure.type,({payload:n})=>{e.dispatchEvent("onAppInitializeFailed",{detail:{appKey:r,error:n},source:this})})};class Os extends Error{static fromHttpResponse(e,r){switch(e.status){case 401:return new Os("unauthorized","failed to load application manifest, request not authorized",r);case 404:return new Os("not_found","application manifest not found",r)}return new Os("unknown",`failed to load application manifest, status code ${e.status}`,r)}constructor(e,r,n){super(r,n),this.type=e}}class n1 extends Error{static fromHttpResponse(e,r){switch(e.status){case 401:return new n1("unauthorized","failed to load application config, request not authorized",r);case 404:return new n1("not_found","application config not found",r)}return new n1("unknown",`failed to load application config, status code ${e.status}`,r)}constructor(e,r,n){super(r,n),this.type=e}}var xn=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},vf=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ih,oh,fs,ps,k4;class nY{static compareAppManifest(e,r){return JSON.stringify(e)===JSON.stringify(r)}get current(){return xn(this,fs,"f").value}get current$(){return xn(this,fs,"f").pipe(A$((e,r)=>e&&r?e.appKey===r.appKey:e===r))}constructor(e){ih.set(this,void 0),oh.set(this,void 0),fs.set(this,void 0),ps.set(this,new Un),k4.set(this,void 0);const{event:r,config:n}=e;vf(this,k4,r,"f"),vf(this,fs,new jd(void 0),"f"),this.appClient=new En(n.client.getAppManifest),vf(this,ih,new En(n.client.getAppManifests),"f"),vf(this,oh,new En(n.client.getAppConfig),"f"),xn(this,ps,"f").add(()=>this.appClient.complete()),xn(this,ps,"f").add(()=>xn(this,ih,"f").complete()),xn(this,ps,"f").add(()=>xn(this,oh,"f").complete()),xn(this,ps,"f").add(this.current$.pipe(x6(),P$(()=>!!r)).subscribe(([i,o])=>{r==null||r.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:i,next:o}})})),xn(this,ps,"f").add(xn(this,fs,"f").pipe(x6(),xt(([i])=>i),nh()).subscribe(i=>i.dispose()))}getAppManifest(e){return En.extractQueryValue(this.appClient.query({appKey:e}).pipe(Br(r=>{const{cause:n}=r;throw n instanceof Os?n:n instanceof C6?Os.fromHttpResponse(n.response,{cause:n}):new Os("unknown","failed to load manifest",{cause:n})})))}getAllAppManifests(){return En.extractQueryValue(xn(this,ih,"f").query())}getAppConfig(e,r){return En.extractQueryValue(xn(this,oh,"f").query({appKey:e,tag:r}).pipe(Br(n=>{const{cause:i}=n;throw i instanceof n1?i:i instanceof C6?n1.fromHttpResponse(i.response,{cause:i}):new n1("unknown","failed to load config",{cause:i})})))}setCurrentApp(e){const r=typeof e=="string"?this.createApp({appKey:e}):e;xn(this,fs,"f").next(r)}clearCurrentApp(){xn(this,fs,"f").next(null)}createApp(e){return new rY(e,{provider:this,event:xn(this,k4,"f")})}dispose(){xn(this,ps,"f").unsubscribe()}}ih=new WeakMap,oh=new WeakMap,fs=new WeakMap,ps=new WeakMap,k4=new WeakMap;var iY=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const r8="app",oY={name:r8,configure:()=>new aY,initialize:t=>iY(void 0,void 0,void 0,function*(){const e=yield t.config.createConfig(t),r=yield t.requireInstance("event").catch(()=>{});return new nY({config:e,event:r})}),dispose:t=>{t.instance.dispose()}};var mf=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},Tx=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},E4;class aY{constructor(){this.defaultExpireTime=1*60*1e3,E4.set(this,[])}addConfigBuilder(e){Tx(this,E4,"f").push(e)}_createHttpClient(e){return mf(this,void 0,void 0,function*(){const r=yield e.requireInstance("http");if(r.hasClient(r8))return r.createClient(r8);{const n=yield e.requireInstance("serviceDiscovery");try{return yield n.createClient("app")}catch{return yield n.createClient("portal")}}})}createConfig(e){var r;return mf(this,void 0,void 0,function*(){const n=yield Tx(this,E4,"f").reduce((i,o)=>mf(this,void 0,void 0,function*(){const a=new qK(e,yield i);return yield Promise.resolve(o(a)),Object.assign(i,a.config)}),Promise.resolve({}));return(r=n.client)!==null&&r!==void 0||(n.client=yield(()=>mf(this,void 0,void 0,function*(){const i=yield this._createHttpClient(e);return{getAppManifest:{client:{fn:({appKey:o})=>i.json$(`/api/apps/${o}`)},key:({appKey:o})=>o,expire:this.defaultExpireTime},getAppManifests:{client:{fn:()=>i.json$("/api/apps")},key:()=>"manifests",expire:this.defaultExpireTime},getAppConfig:{client:{fn:({appKey:o,tag:a})=>i.json$(`/api/apps/${o}/config${a?`?tag=${a}`:""}`)},key:o=>JSON.stringify(o),expire:this.defaultExpireTime}}}))()),n})}}E4=new WeakMap;const sY=(t,e)=>{t.addConfig({module:oY,configure:r=>{e&&r.addConfigBuilder(e)}})},cY="bookmarkId",lY=()=>new URLSearchParams(document.location.search).get(cY);var dY=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},hY=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},S4;class uY{constructor(e,r={}){this.config=r,S4.set(this,void 0),dY(this,S4,e,"f")}requireInstance(e){return hY(this,S4,"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:n})=>n.isValid}:e.getAllBookmarks,getBookmarkById:typeof e.getBookmarkById=="function"?{key:({id:n})=>n,client:{fn:e.getBookmarkById},expire:6e4,validate:()=>!1}:e.getBookmarkById})}}S4=new WeakMap;var yc=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},h3=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},n8,A4,sI;class fY{constructor(){n8.add(this),this.defaultExpireTime=1*60*1e3,A4.set(this,[])}addConfigBuilder(e){h3(this,A4,"f").push(e)}createConfig(e,r){return yc(this,void 0,void 0,function*(){const n=yield h3(this,A4,"f").reduce((o,a)=>yc(this,void 0,void 0,function*(){const s=new uY(e,yield o);return yield Promise.resolve(a(s)),Object.assign(o,s.config)}),Promise.resolve({})),i=yield this._getAppProvider(e);if(h3(this,n8,"m",sI).call(this,r,n),n.resolveBookmarkId||(n.resolveBookmarkId=lY),n.getCurrentAppIdentification||(n.getCurrentAppIdentification=()=>{var o;return(o=i.current)===null||o===void 0?void 0:o.appKey}),!n.getContextId){const o=yield this._getContextProvider(e);n.getContextId=()=>{var a;return(a=o.currentContext)===null||a===void 0?void 0:a.id}}if(!n.event){const o=yield this._getEventProvider(e);n.event=o}if(n.clientConfiguration=yield this._createClientConfiguration(e,n.clientConfiguration),!n.sourceSystem)throw Error("missing sourceSystem configuration");return n})}_createClientConfiguration(e,r={}){return yc(this,void 0,void 0,function*(){if(!r.client){const n=yield this._getServiceProvider(e);r.client=yield n.createBookmarksClient("fetch")}if(!r.queryClientConfig){const i=yield(yield this._getServiceProvider(e)).createBookmarksClient("json$");r.queryClientConfig=Object.assign({getBookmarkById:{client:{fn:o=>i.get("v1",o)},key:({id:o})=>o,expire:this.defaultExpireTime},getAllBookmarks:{client:{fn:()=>i.getAll("v1")},key:()=>"all-bookmarks",validate:({args:o})=>o.isValid,expire:this.defaultExpireTime}},i)}return r})}_getServiceProvider(e){var r;return yc(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const n=(r=e.ref)===null||r===void 0?void 0:r.services;if(n)return n;throw Error("[BookmarkConfigurator] No service provider configures [ServicesModule] ")}})}_getContextProvider(e){var r;return yc(this,void 0,void 0,function*(){if(e.hasModule("context"))return e.requireInstance("context");{const n=(r=e.ref)===null||r===void 0?void 0:r.context;if(n)return n;throw Error("[BookmarkConfigurator] No context provider configures [ContextModule]")}})}_getAppProvider(e){var r;return yc(this,void 0,void 0,function*(){if(e.hasModule("app"))return e.requireInstance("app");{const n=(r=e.ref)===null||r===void 0?void 0:r.app;if(n)return n;throw Error("[BookmarkConfigurator] No app provider configures [AppModule]")}})}_getEventProvider(e){var r;return yc(this,void 0,void 0,function*(){if(e.hasModule("event"))return e.requireInstance("event");{const n=(r=e.ref)===null||r===void 0?void 0:r.event;if(n)return n;throw Error("[BookmarkConfigurator] No event provider configures [EventModule]")}})}}A4=new WeakMap,n8=new WeakSet,sI=function(e,r){e&&(r.clientConfiguration=e.config.clientConfiguration,r.sourceSystem=e.config.sourceSystem,r.getContextId=e.config.getContextId,r.getCurrentAppIdentification=e.config.getCurrentAppIdentification)};const Sn={getAll:qo("getAll",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),delete:qo("delete",t=>({payload:t}),t=>({payload:t})),addFavorite:qo("addFavorite",t=>({payload:t}),t=>({payload:t})),removeFavorite:qo("removeFavorite",t=>({payload:t}),t=>({payload:t})),update:qo("update",t=>({payload:t}),t=>({payload:t})),create:qo("create",t=>({payload:t}),t=>({payload:t}),t=>({payload:t}))},pY={bookmarks:{}},vY=t0(pY,t=>{t.addCase(Sn.create.success,(e,{payload:r})=>{e.bookmarks[r.id]=r}).addCase(Sn.getAll.success,(e,{payload:r})=>{r.forEach(n=>{e.bookmarks[n.id]=n})}).addCase(Sn.delete.success,(e,{payload:r})=>{delete e.bookmarks[r]}).addCase(Sn.removeFavorite,(e,{payload:r})=>{delete e.bookmarks[r]}).addCase(Sn.addFavorite,(e,{payload:r})=>{e.bookmarks[r.id]=r}).addCase(Sn.update.success,(e,{payload:r})=>{e.bookmarks[r.id]=r})});var K7=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const mY=(t,e)=>r=>r.pipe(Wd(Sn.getAll.type),hr(n=>t.query({isValid:n.payload}).pipe(Zv(),xt(i=>Sn.getAll.success(i.value.filter(o=>o.sourceSystem.identifier===e))),Br(()=>Fr)))),gY=t=>e=>e.pipe(Wd(Sn.create.type),hr(r=>K7(void 0,void 0,void 0,function*(){const n=yield t.post("v1",r.payload);return Sn.create.success(yield n.json())}))),Rx=t=>e=>e.pipe(Wd(Sn.update.type),hr(r=>K7(void 0,void 0,void 0,function*(){const n=yield t.patch("v1",r.payload);return Sn.update.success(yield n.json())}))),yY=t=>e=>e.pipe(Wd(Sn.delete.type),hr(r=>K7(void 0,void 0,void 0,function*(){return(yield t.delete("v1",{id:r.payload})).ok,Sn.delete.success(r.payload)})));var Vo=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},_c=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},we=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},M4,J1,wa,po,Li,qp,Ea,Ut,ka,cI,lI;class _Y{constructor(e,r,n){M4.add(this),J1.set(this,void 0),wa.set(this,void 0),po.set(this,void 0),Li.set(this,void 0),qp.set(this,void 0),Ea.set(this,void 0),Ut.set(this,void 0),ka.set(this,new Un),_c(this,Li,new jd(void 0),"f"),_c(this,po,e.client,"f"),_c(this,J1,new En(e.queryClientConfig.getBookmarkById),"f"),_c(this,wa,new En(e.queryClientConfig.getAllBookmarks),"f"),_c(this,qp,r,"f"),_c(this,Ea,n,"f"),_c(this,Ut,QB(Sn,vY),"f"),we(this,M4,"m",lI).call(this),we(this,M4,"m",cI).call(this),n&&we(this,ka,"f").add(we(this,Li,"f").subscribe(i=>{n.dispatchEvent("onBookmarkChanged",{detail:i,canBubble:!0,source:this})}))}get currentBookmark$(){return we(this,Li,"f").asObservable()}get bookmarks$(){return we(this,Ut,"f").subject.pipe(xt(e=>Object.values(e.bookmarks).map(r=>r)))}setCurrentBookmark(e){return Vo(this,void 0,void 0,function*(){if(!e)return we(this,Li,"f").next(void 0);if(typeof e=="string"){const r=yield this.resolverBookmarkAsync(e);return this.setBookmark(r)}else if(e!==we(this,Li,"f").value)return this.setBookmark(e)})}setBookmark(e){return Vo(this,void 0,void 0,function*(){we(this,Ea,"f")?(yield we(this,Ea,"f").dispatchEvent("onBookmarkChange",{detail:e,cancelable:!0,canBubble:!0,source:this})).canceled||we(this,Li,"f").next(e):we(this,Li,"f").next(e)})}resolverBookmark(e){return we(this,J1,"f").query({id:e}).pipe(xt(r=>r.value))}resolverBookmarkAsync(e){return An(this.resolverBookmark(e))}getAllBookmarks(e={isValid:!1}){const{isValid:r}=e;return new it(n=>{we(this,Ut,"f").dispatch.getAll(r),n.add(we(this,Ut,"f").subject.addEffect("getAll::success",i=>{var o;n.next(i.payload),n.complete(),(o=we(this,Ea,"f"))===null||o===void 0||o.dispatchEvent("onBookmarksChanged",{detail:i.payload,source:this})}))})}getAllBookmarksAsync(e={isValid:!1}){return Vo(this,void 0,void 0,function*(){return An(this.getAllBookmarks(e))})}getBookmarkById(e){return Vo(this,void 0,void 0,function*(){return yield(yield we(this,po,"f").get("v1",{id:e})).json()})}createBookmark(e){return new it(r=>{we(this,Ut,"f").dispatch.create(e),r.add(we(this,Ut,"f").subject.addEffect("create::success",n=>{r.next(n.payload),r.complete()})),r.add(we(this,Ut,"f").subject.addEffect("create::failure",n=>{r.error(n.payload)}))})}createBookmarkAsync(e){return Vo(this,void 0,void 0,function*(){return An(this.createBookmark(e))})}updateBookmark(e){return new it(r=>{we(this,Ut,"f").dispatch.update(e),r.add(we(this,Ut,"f").subject.addEffect("update::success",n=>{r.next(n.payload),r.complete(),we(this,J1,"f").cache.invalidate(n.payload.id)}))})}updateBookmarkAsync(e){return Vo(this,void 0,void 0,function*(){return An(this.updateBookmark(e))})}deleteBookmarkById(e){return new it(r=>{we(this,Ut,"f").dispatch.delete(e),r.add(we(this,Ut,"f").subject.addEffect("delete::success",n=>{r.next(n.payload),r.complete(),we(this,J1,"f").cache.invalidate(n.payload)}))})}deleteBookmarkByIdAsync(e){return Vo(this,void 0,void 0,function*(){return An(this.deleteBookmarkById(e))})}addBookmarkFavoriteAsync(e){return Vo(this,void 0,void 0,function*(){(yield we(this,po,"f").addFavorite("v1",{bookmarkId:e})).ok&&we(this,Li,"f").value&&we(this,Ut,"f").dispatch.addFavorite(we(this,Li,"f").value)})}removeBookmarkFavoriteAsync(e){return Vo(this,void 0,void 0,function*(){(yield we(this,po,"f").removeFavorite("v1",{bookmarkId:e})).ok&&we(this,Ut,"f").dispatch.removeFavorite(e)})}verifyBookmarkFavoriteAsync(e){return Vo(this,void 0,void 0,function*(){return!!(yield we(this,po,"f").verifyFavorite("v1",{bookmarkId:e})).ok})}dispose(){we(this,ka,"f").unsubscribe()}}J1=new WeakMap,wa=new WeakMap,po=new WeakMap,Li=new WeakMap,qp=new WeakMap,Ea=new WeakMap,Ut=new WeakMap,ka=new WeakMap,M4=new WeakSet,cI=function(){we(this,Ut,"f").subject.addEffect("create::success",e=>{var r;we(this,wa,"f").cache.invalidate("all-bookmarks"),we(this,Li,"f").next(e.payload),(r=we(this,Ea,"f"))===null||r===void 0||r.dispatchEvent("onBookmarkCreated",{detail:e.payload,canBubble:!0,source:this})}),we(this,Ut,"f").subject.addEffect("delete::success",e=>{var r;console.log("here"),we(this,wa,"f").cache.invalidate("all-bookmarks"),(r=we(this,Ea,"f"))===null||r===void 0||r.dispatchEvent("onBookmarkDeleted",{detail:e.payload,canBubble:!0,source:this})}),we(this,Ut,"f").subject.addEffect("update::success",e=>{var r;we(this,wa,"f").cache.invalidate("all-bookmarks"),(r=we(this,Ea,"f"))===null||r===void 0||r.dispatchEvent("onBookmarkUpdated",{detail:e.payload,canBubble:!0,source:this})}),we(this,Ut,"f").subject.addEffect("addFavorite::request",()=>{we(this,wa,"f").cache.invalidate("all-bookmarks")}),we(this,Ut,"f").subject.addEffect("removeFavorite::request",()=>{we(this,wa,"f").cache.invalidate("all-bookmarks")})},lI=function(){we(this,ka,"f").add(we(this,Ut,"f").subject.addFlow(mY(we(this,wa,"f"),we(this,qp,"f").identifier))),we(this,ka,"f").add(we(this,Ut,"f").subject.addFlow(gY(we(this,po,"f")))),we(this,ka,"f").add(we(this,Ut,"f").subject.addFlow(yY(we(this,po,"f")))),we(this,ka,"f").add(we(this,Ut,"f").subject.addFlow(Rx(we(this,po,"f")))),we(this,ka,"f").add(we(this,Ut,"f").subject.addFlow(Rx(we(this,po,"f"))))};var Fo=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},bY=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},to=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Z1,Rc,$4,i8,o8,a8;class wY{get currentBookmark$(){return this._bookmarkClient.currentBookmark$}get bookmarks$(){return this._bookmarkClient.bookmarks$}constructor(e,r){Z1.add(this),Rc.set(this,void 0),$4.set(this,new Un),this.bookmarkCreators={},i8.set(this,()=>{this.bookmarkCreators={}}),this.config=e,bY(this,Rc,e.event,"f"),this._bookmarkClient=r?r._bookmarkClient:new _Y(e.clientConfiguration,e.sourceSystem,e.event);const n=e.resolveBookmarkId&&e.resolveBookmarkId();n&&this._bookmarkClient.setCurrentBookmark(n),to(this,Rc,"f")&&to(this,$4,"f").add(to(this,Rc,"f").addEventListener("onCurrentAppChanged",to(this,i8,"f")))}getBookmarkById(e){return Fo(this,void 0,void 0,function*(){return yield this._bookmarkClient.getBookmarkById(e)})}setCurrentBookmark(e){return Fo(this,void 0,void 0,function*(){this._bookmarkClient.setCurrentBookmark(e)})}getAllBookmarks(){return this._bookmarkClient.getAllBookmarks()}getAllBookmarksAsync(){return Fo(this,void 0,void 0,function*(){return this._bookmarkClient.getAllBookmarksAsync()})}updateBookmark(e){return this._bookmarkClient.updateBookmark(e)}updateBookmarkAsync(e,r){return Fo(this,void 0,void 0,function*(){if(to(this,Z1,"m",a8).call(this)===e.appKey){if(r!=null&&r.updatePayload){const n=yield to(this,Z1,"m",o8).call(this);e=Object.assign(Object.assign({},e),{payload:n})}return this._bookmarkClient.updateBookmarkAsync(e)}})}deleteBookmarkById(e){return this._bookmarkClient.deleteBookmarkById(e)}deleteBookmarkByIdAsync(e){return this._bookmarkClient.deleteBookmarkByIdAsync(e)}addBookmarkFavoriteAsync(e){return Fo(this,void 0,void 0,function*(){yield this._bookmarkClient.addBookmarkFavoriteAsync(e)})}removeBookmarkFavoriteAsync(e){return Fo(this,void 0,void 0,function*(){yield this._bookmarkClient.removeBookmarkFavoriteAsync(e)})}verifyBookmarkFavoriteAsync(e){return Fo(this,void 0,void 0,function*(){return yield this._bookmarkClient.verifyBookmarkFavoriteAsync(e)})}addStateCreator(e,r){var n;const i=r||"#creator";return to(this,Rc,"f")&&((n=to(this,Rc,"f"))===null||n===void 0||n.dispatchEvent("onAddCreator",{source:this,canBubble:!0,detail:{key:r,cb:e}})),this.bookmarkCreators[i]=e,()=>{delete this.bookmarkCreators[i]}}createBookmark(e){return Fo(this,void 0,void 0,function*(){const r=yield to(this,Z1,"m",o8).call(this),n=this.config.getContextId&&this.config.getContextId(),i=to(this,Z1,"m",a8).call(this),o=Object.assign(Object.assign({},e),{appKey:i,contextId:n,sourceSystem:this.config.sourceSystem,payload:r});return this._bookmarkClient.createBookmarkAsync(o)})}dispose(){to(this,$4,"f").unsubscribe(),this._bookmarkClient.dispose()}}Rc=new WeakMap,$4=new WeakMap,i8=new WeakMap,Z1=new WeakSet,o8=function(){return Fo(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((r,[n,i])=>Fo(this,void 0,void 0,function*(){return Object.assign(yield r,{[n]:yield i()})}),Promise.resolve({}))})},a8=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 xY=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const zY="bookmark",CY={name:zY,configure:()=>new fY,initialize:t=>xY(void 0,void 0,void 0,function*(){var e;const r=(e=t.ref)===null||e===void 0?void 0:e.bookmark,n=yield t.config.createConfig(t,r);return new wY(n,r)}),dispose:t=>{t.instance.dispose()}},kY=(t,e)=>{t.addConfig({module:CY,configure:r=>{e&&r.addConfigBuilder(e)}})};class EY{}/**
418
+ `}}k([D({type:String,reflect:!0})],c0.prototype,"size",void 0);k([D({type:String,reflect:!0})],c0.prototype,"color",void 0);c0.styles=FK;const nI="fwc-circular-progress";let Ix=class extends c0{};Ix=k([Ot(nI)],Ix);const BK=Qa(a0,tI);Qa(c0,nI);Qa(s0,rI);const iI=({children:t,text:e})=>z("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100vw",height:"100vh",overflow:"hidden"},children:z(BK,{text:e,children:t})});var UK=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},jK=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},C4;class qK{constructor(e,r={}){this.config=r,C4.set(this,void 0),UK(this,C4,e,"f")}requireInstance(e){return jK(this,C4,"f").requireInstance(e)}setAppClient(e,r=1*60*1e3){this.config.client={getAppManifest:typeof e.getAppManifest=="function"?{key:({appKey:n})=>n,client:{fn:e.getAppManifest},expire:r}:e.getAppManifest,getAppManifests:typeof e.getAppManifests=="function"?{key:()=>"app_manifests",client:{fn:e.getAppManifests},expire:r}:e.getAppManifests,getAppConfig:typeof e.getAppConfig=="function"?{key:n=>JSON.stringify(n),client:{fn:e.getAppConfig},expire:r}:e.getAppConfig}}}C4=new WeakMap;const WK=()=>({setManifest:cn("set_manifest",t=>({payload:t,meta:{created:Date.now()}})),fetchManifest:qo("fetch_manifest",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setConfig:cn("set_config",t=>({payload:t})),fetchConfig:qo("fetch_config",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setModule:cn("set_module",t=>({payload:t})),importApp:qo("import_app",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setInstance:cn("set_instance",t=>({payload:t})),initialize:qo("initialize_app",()=>({payload:null}),()=>({payload:null}),t=>({payload:t}))}),kt=WK();UB();const GK=t=>t0(Object.assign(Object.assign({},t),{status:new Set}),e=>e.addCase(kt.setManifest,(r,n)=>{r.manifest=n.payload}).addCase(kt.setConfig,(r,n)=>{r.config=n.payload}).addCase(kt.setModule,(r,n)=>{r.modules=n.payload}).addCase(kt.setInstance,(r,n)=>{r.instance=n.payload}).addMatcher(HB,(r,n)=>{r.status.add(Sw(n))}).addMatcher(DB,(r,n)=>{r.status.delete(Sw(n))})),KK="modulepreload",YK=function(t){return"/"+t},Hx={},oI=function(e,r,n){if(!r||r.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=YK(o),o in Hx)return;Hx[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let d=i.length-1;d>=0;d--){const h=i[d];if(h.href===o&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":KK,a||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),a)return new Promise((d,h)=>{l.addEventListener("load",d),l.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())},XK=t=>e=>e.pipe(Jt(kt.fetchManifest.match),hr(({payload:r})=>{const n=Lr(t.getAppManifest(r)).pipe(Jt(i=>!!i),xt(kt.setManifest));return E$(n,n.pipe(Zv(),xt(({payload:i})=>kt.fetchManifest.success(i)))).pipe(Br(i=>Eo(kt.fetchManifest.failure(i))))})),QK=t=>e=>e.pipe(Jt(kt.fetchConfig.match),hr(({payload:r})=>{const n=Lr(t.getAppConfig(r)).pipe(xt(kt.setConfig));return E$(n,n.pipe(Zv(),xt(({payload:i})=>kt.fetchConfig.success(i)))).pipe(Br(i=>Eo(kt.fetchConfig.failure(i))))})),JK=()=>t=>t.pipe(Jt(kt.importApp.match),hr(({payload:e})=>Lr(oI(()=>import(e),[])).pipe(xt(kt.importApp.success),Br(r=>Eo(kt.importApp.failure(r)))))),ZK=(t,e)=>{const r=GK(t),n=new t5(r);return n.addFlow(XK(e)),n.addFlow(QK(e)),n.addFlow(JK()),n};var eY=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},Qe=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},tY=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},t8,Ge,aI;function nh(){return Jt(t=>t!=null)}class rY{get manifest$(){return Qe(this,Ge,"f").pipe(xt(({manifest:e})=>e),nh())}get config$(){return Qe(this,Ge,"f").pipe(xt(({config:e})=>e),nh())}get modules$(){return Qe(this,Ge,"f").pipe(xt(({modules:e})=>e),nh())}get instance$(){return Qe(this,Ge,"f").pipe(xt(({instance:e})=>e),nh())}get state(){return Qe(this,Ge,"f").value}get appKey(){return Qe(this,Ge,"f").value.appKey}get manifest(){return this.state.manifest}get manifestAsync(){return ri(this.manifest$)}get config(){return this.state.config}get configAsync(){return ri(this.config$)}get instance(){return Qe(this,Ge,"f").value.instance}constructor(e,r){t8.add(this),Ge.set(this,void 0),tY(this,Ge,ZK(e,r.provider),"f");const{appKey:n}=e,{event:i}=r;i&&Qe(this,t8,"m",aI).call(this,i);const o=new Un;i&&(o.add(()=>{i.dispatchEvent("onAppDispose",{detail:{appKey:n}})}),o.add(i.addEventListener("onAppModulesLoaded",a=>{a.detail.appKey===n&&Qe(this,Ge,"f").next(kt.setInstance(a.detail.modules))}))),this.dispose=()=>{o==null||o.unsubscribe(),Qe(this,Ge,"f").value.instance&&Qe(this,Ge,"f").value.instance.dispose(),Qe(this,Ge,"f").complete()}}initialize(){return new it(e=>{Qe(this,Ge,"f").next(kt.initialize()),e.add(rN([this.getManifest(),this.getAppModule(),this.getConfig()]).subscribe({next:([r,n,i])=>e.next({manifest:r,script:n,config:i}),error:r=>{e.error(r),Qe(this,Ge,"f").next(kt.initialize.failure(r))},complete:()=>{Qe(this,Ge,"f").next(kt.initialize.success()),e.complete()}}))})}loadConfig(){Qe(this,Ge,"f").next(kt.fetchConfig(this.appKey))}loadManifest(){Qe(this,Ge,"f").next(kt.fetchManifest(this.appKey))}loadAppModule(e=!0){return eY(this,void 0,void 0,function*(){const r=yield this.getManifestAsync(e);Qe(this,Ge,"f").next(kt.importApp(r.entry))})}getConfig(e=!1){return new it(r=>{if(Qe(this,Ge,"f").value.config&&(r.next(Qe(this,Ge,"f").value.config),!e))return r.complete();r.add(Qe(this,Ge,"f").addEffect("set_config",({payload:n})=>{r.next(n)})),r.add(Qe(this,Ge,"f").addEffect("fetch_config::success",({payload:n})=>{r.next(n),r.complete()})),r.add(Qe(this,Ge,"f").addEffect("fetch_config::failure",({payload:n})=>{r.error(Error("failed to load application config",{cause:n}))})),this.loadConfig()})}getConfigAsync(e=!0){return(e?ri:An)(this.getConfig(!e))}getManifest(e=!1){return new it(r=>{if(Qe(this,Ge,"f").value.manifest&&(r.next(Qe(this,Ge,"f").value.manifest),!e))return r.complete();r.add(Qe(this,Ge,"f").addEffect("set_manifest",({payload:n})=>{r.next(n)})),r.add(Qe(this,Ge,"f").addEffect("fetch_manifest::success",({payload:n})=>{r.next(n),r.complete()})),r.add(Qe(this,Ge,"f").addEffect("fetch_manifest::failure",({payload:n})=>{r.error(Error("failed to load application manifest",{cause:n}))})),this.loadManifest()})}getManifestAsync(e=!0){return(e?ri:An)(this.getManifest(!e))}getAppModule(e=!1){return new it(r=>{if(Qe(this,Ge,"f").value.modules&&(r.next(Qe(this,Ge,"f").value.modules),!e))return r.complete();r.add(Qe(this,Ge,"f").addEffect("set_module",({payload:n})=>{r.next(n)})),r.add(Qe(this,Ge,"f").addEffect("import_app::success",({payload:n})=>{r.next(n),r.complete()})),r.add(Qe(this,Ge,"f").addEffect("import_app::failure",({payload:n})=>{r.error(Error("failed to load application modules from script",{cause:n}))})),r.add(this.getManifest().subscribe(n=>Eo(Qe(this,Ge,"f").next(kt.importApp(n.entry)))))})}getAppModuleAsync(e=!0){return(e?ri:An)(this.getAppModule(!e))}}Ge=new WeakMap,t8=new WeakSet,aI=function(e){const{appKey:r}=this;Qe(this,Ge,"f").addEffect(kt.fetchManifest.success.type,n=>{e.dispatchEvent("onAppManifestLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),Qe(this,Ge,"f").addEffect(kt.fetchConfig.success.type,n=>{e.dispatchEvent("onAppConfigLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),Qe(this,Ge,"f").addEffect(kt.importApp.success.type,n=>{e.dispatchEvent("onAppScriptLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),Qe(this,Ge,"f").addEffect(kt.initialize.type,()=>{e.dispatchEvent("onAppInitialize",{detail:{appKey:r},source:this})}),Qe(this,Ge,"f").addEffect(kt.initialize.success.type,()=>{e.dispatchEvent("onAppInitialized",{detail:{appKey:r},source:this})}),Qe(this,Ge,"f").addEffect(kt.initialize.failure.type,({payload:n})=>{e.dispatchEvent("onAppInitializeFailed",{detail:{appKey:r,error:n},source:this})})};class Os extends Error{static fromHttpResponse(e,r){switch(e.status){case 401:return new Os("unauthorized","failed to load application manifest, request not authorized",r);case 404:return new Os("not_found","application manifest not found",r)}return new Os("unknown",`failed to load application manifest, status code ${e.status}`,r)}constructor(e,r,n){super(r,n),this.type=e}}class n1 extends Error{static fromHttpResponse(e,r){switch(e.status){case 401:return new n1("unauthorized","failed to load application config, request not authorized",r);case 404:return new n1("not_found","application config not found",r)}return new n1("unknown",`failed to load application config, status code ${e.status}`,r)}constructor(e,r,n){super(r,n),this.type=e}}var xn=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},vf=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ih,oh,fs,ps,k4;class nY{static compareAppManifest(e,r){return JSON.stringify(e)===JSON.stringify(r)}get current(){return xn(this,fs,"f").value}get current$(){return xn(this,fs,"f").pipe(A$((e,r)=>e&&r?e.appKey===r.appKey:e===r))}constructor(e){ih.set(this,void 0),oh.set(this,void 0),fs.set(this,void 0),ps.set(this,new Un),k4.set(this,void 0);const{event:r,config:n}=e;vf(this,k4,r,"f"),vf(this,fs,new jd(void 0),"f"),this.appClient=new En(n.client.getAppManifest),vf(this,ih,new En(n.client.getAppManifests),"f"),vf(this,oh,new En(n.client.getAppConfig),"f"),xn(this,ps,"f").add(()=>this.appClient.complete()),xn(this,ps,"f").add(()=>xn(this,ih,"f").complete()),xn(this,ps,"f").add(()=>xn(this,oh,"f").complete()),xn(this,ps,"f").add(this.current$.pipe(x6(),P$(()=>!!r)).subscribe(([i,o])=>{r==null||r.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:i,next:o}})})),xn(this,ps,"f").add(xn(this,fs,"f").pipe(x6(),xt(([i])=>i),nh()).subscribe(i=>i.dispose()))}getAppManifest(e){return En.extractQueryValue(this.appClient.query({appKey:e}).pipe(Br(r=>{const{cause:n}=r;throw n instanceof Os?n:n instanceof C6?Os.fromHttpResponse(n.response,{cause:n}):new Os("unknown","failed to load manifest",{cause:n})})))}getAllAppManifests(){return En.extractQueryValue(xn(this,ih,"f").query())}getAppConfig(e,r){return En.extractQueryValue(xn(this,oh,"f").query({appKey:e,tag:r}).pipe(Br(n=>{const{cause:i}=n;throw i instanceof n1?i:i instanceof C6?n1.fromHttpResponse(i.response,{cause:i}):new n1("unknown","failed to load config",{cause:i})})))}setCurrentApp(e){const r=typeof e=="string"?this.createApp({appKey:e}):e;xn(this,fs,"f").next(r)}clearCurrentApp(){xn(this,fs,"f").next(null)}createApp(e){return new rY(e,{provider:this,event:xn(this,k4,"f")})}dispose(){xn(this,ps,"f").unsubscribe()}}ih=new WeakMap,oh=new WeakMap,fs=new WeakMap,ps=new WeakMap,k4=new WeakMap;var iY=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const r8="app",oY={name:r8,configure:()=>new aY,initialize:t=>iY(void 0,void 0,void 0,function*(){const e=yield t.config.createConfig(t),r=yield t.requireInstance("event").catch(()=>{});return new nY({config:e,event:r})}),dispose:t=>{t.instance.dispose()}};var mf=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},Tx=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},E4;class aY{constructor(){this.defaultExpireTime=1*60*1e3,E4.set(this,[])}addConfigBuilder(e){Tx(this,E4,"f").push(e)}_createHttpClient(e){return mf(this,void 0,void 0,function*(){const r=yield e.requireInstance("http");if(r.hasClient(r8))return r.createClient(r8);{const n=yield e.requireInstance("serviceDiscovery");try{return yield n.createClient("app")}catch{return yield n.createClient("portal")}}})}createConfig(e){var r;return mf(this,void 0,void 0,function*(){const n=yield Tx(this,E4,"f").reduce((i,o)=>mf(this,void 0,void 0,function*(){const a=new qK(e,yield i);return yield Promise.resolve(o(a)),Object.assign(i,a.config)}),Promise.resolve({}));return(r=n.client)!==null&&r!==void 0||(n.client=yield(()=>mf(this,void 0,void 0,function*(){const i=yield this._createHttpClient(e);return{getAppManifest:{client:{fn:({appKey:o})=>i.json$(`/api/apps/${o}`)},key:({appKey:o})=>o,expire:this.defaultExpireTime},getAppManifests:{client:{fn:()=>i.json$("/api/apps")},key:()=>"manifests",expire:this.defaultExpireTime},getAppConfig:{client:{fn:({appKey:o,tag:a})=>i.json$(`/api/apps/${o}/config${a?`?tag=${a}`:""}`)},key:o=>JSON.stringify(o),expire:this.defaultExpireTime}}}))()),n})}}E4=new WeakMap;const sY=(t,e)=>{t.addConfig({module:oY,configure:r=>{e&&r.addConfigBuilder(e)}})},cY="bookmarkId",lY=()=>new URLSearchParams(document.location.search).get(cY);var dY=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},hY=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},S4;class uY{constructor(e,r={}){this.config=r,S4.set(this,void 0),dY(this,S4,e,"f")}requireInstance(e){return hY(this,S4,"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:n})=>n.isValid}:e.getAllBookmarks,getBookmarkById:typeof e.getBookmarkById=="function"?{key:({id:n})=>n,client:{fn:e.getBookmarkById},expire:6e4,validate:()=>!1}:e.getBookmarkById})}}S4=new WeakMap;var yc=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},h3=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},n8,A4,sI;class fY{constructor(){n8.add(this),this.defaultExpireTime=1*60*1e3,A4.set(this,[])}addConfigBuilder(e){h3(this,A4,"f").push(e)}createConfig(e,r){return yc(this,void 0,void 0,function*(){const n=yield h3(this,A4,"f").reduce((o,a)=>yc(this,void 0,void 0,function*(){const s=new uY(e,yield o);return yield Promise.resolve(a(s)),Object.assign(o,s.config)}),Promise.resolve({})),i=yield this._getAppProvider(e);if(h3(this,n8,"m",sI).call(this,r,n),n.resolveBookmarkId||(n.resolveBookmarkId=lY),n.getCurrentAppIdentification||(n.getCurrentAppIdentification=()=>{var o;return(o=i.current)===null||o===void 0?void 0:o.appKey}),!n.getContextId){const o=yield this._getContextProvider(e);n.getContextId=()=>{var a;return(a=o.currentContext)===null||a===void 0?void 0:a.id}}if(!n.event){const o=yield this._getEventProvider(e);n.event=o}if(n.clientConfiguration=yield this._createClientConfiguration(e,n.clientConfiguration),!n.sourceSystem)throw Error("missing sourceSystem configuration");return n})}_createClientConfiguration(e,r={}){return yc(this,void 0,void 0,function*(){if(!r.client){const n=yield this._getServiceProvider(e);r.client=yield n.createBookmarksClient("fetch")}if(!r.queryClientConfig){const i=yield(yield this._getServiceProvider(e)).createBookmarksClient("json$");r.queryClientConfig=Object.assign({getBookmarkById:{client:{fn:o=>i.get("v1",o)},key:({id:o})=>o,expire:this.defaultExpireTime},getAllBookmarks:{client:{fn:()=>i.getAll("v1")},key:()=>"all-bookmarks",validate:({args:o})=>o.isValid,expire:this.defaultExpireTime}},i)}return r})}_getServiceProvider(e){var r;return yc(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const n=(r=e.ref)===null||r===void 0?void 0:r.services;if(n)return n;throw Error("[BookmarkConfigurator] No service provider configures [ServicesModule] ")}})}_getContextProvider(e){var r;return yc(this,void 0,void 0,function*(){if(e.hasModule("context"))return e.requireInstance("context");{const n=(r=e.ref)===null||r===void 0?void 0:r.context;if(n)return n;throw Error("[BookmarkConfigurator] No context provider configures [ContextModule]")}})}_getAppProvider(e){var r;return yc(this,void 0,void 0,function*(){if(e.hasModule("app"))return e.requireInstance("app");{const n=(r=e.ref)===null||r===void 0?void 0:r.app;if(n)return n;throw Error("[BookmarkConfigurator] No app provider configures [AppModule]")}})}_getEventProvider(e){var r;return yc(this,void 0,void 0,function*(){if(e.hasModule("event"))return e.requireInstance("event");{const n=(r=e.ref)===null||r===void 0?void 0:r.event;if(n)return n;throw Error("[BookmarkConfigurator] No event provider configures [EventModule]")}})}}A4=new WeakMap,n8=new WeakSet,sI=function(e,r){e&&(r.clientConfiguration=e.config.clientConfiguration,r.sourceSystem=e.config.sourceSystem,r.getContextId=e.config.getContextId,r.getCurrentAppIdentification=e.config.getCurrentAppIdentification)};const Sn={getAll:qo("getAll",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),delete:qo("delete",t=>({payload:t}),t=>({payload:t})),addFavorite:qo("addFavorite",t=>({payload:t}),t=>({payload:t})),removeFavorite:qo("removeFavorite",t=>({payload:t}),t=>({payload:t})),update:qo("update",t=>({payload:t}),t=>({payload:t})),create:qo("create",t=>({payload:t}),t=>({payload:t}),t=>({payload:t}))},pY={bookmarks:{}},vY=t0(pY,t=>{t.addCase(Sn.create.success,(e,{payload:r})=>{e.bookmarks[r.id]=r}).addCase(Sn.getAll.success,(e,{payload:r})=>{r.forEach(n=>{e.bookmarks[n.id]=n})}).addCase(Sn.delete.success,(e,{payload:r})=>{delete e.bookmarks[r]}).addCase(Sn.removeFavorite,(e,{payload:r})=>{delete e.bookmarks[r]}).addCase(Sn.addFavorite,(e,{payload:r})=>{e.bookmarks[r.id]=r}).addCase(Sn.update.success,(e,{payload:r})=>{e.bookmarks[r.id]=r})});var K7=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const mY=(t,e)=>r=>r.pipe(Wd(Sn.getAll.type),hr(n=>t.query({isValid:n.payload}).pipe(Zv(),xt(i=>Sn.getAll.success(i.value.filter(o=>o.sourceSystem.identifier===e))),Br(()=>Fr)))),gY=t=>e=>e.pipe(Wd(Sn.create.type),hr(r=>K7(void 0,void 0,void 0,function*(){const n=yield t.post("v1",r.payload);return Sn.create.success(yield n.json())}))),Rx=t=>e=>e.pipe(Wd(Sn.update.type),hr(r=>K7(void 0,void 0,void 0,function*(){const n=yield t.patch("v1",r.payload);return Sn.update.success(yield n.json())}))),yY=t=>e=>e.pipe(Wd(Sn.delete.type),hr(r=>K7(void 0,void 0,void 0,function*(){return(yield t.delete("v1",{id:r.payload})).ok,Sn.delete.success(r.payload)})));var Vo=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},_c=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},we=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},M4,J1,wa,po,Li,qp,Ea,Ut,ka,cI,lI;class _Y{constructor(e,r,n){M4.add(this),J1.set(this,void 0),wa.set(this,void 0),po.set(this,void 0),Li.set(this,void 0),qp.set(this,void 0),Ea.set(this,void 0),Ut.set(this,void 0),ka.set(this,new Un),_c(this,Li,new jd(void 0),"f"),_c(this,po,e.client,"f"),_c(this,J1,new En(e.queryClientConfig.getBookmarkById),"f"),_c(this,wa,new En(e.queryClientConfig.getAllBookmarks),"f"),_c(this,qp,r,"f"),_c(this,Ea,n,"f"),_c(this,Ut,QB(Sn,vY),"f"),we(this,M4,"m",lI).call(this),we(this,M4,"m",cI).call(this),n&&we(this,ka,"f").add(we(this,Li,"f").subscribe(i=>{n.dispatchEvent("onBookmarkChanged",{detail:i,canBubble:!0,source:this})}))}get currentBookmark$(){return we(this,Li,"f").asObservable()}get bookmarks$(){return we(this,Ut,"f").subject.pipe(xt(e=>Object.values(e.bookmarks).map(r=>r)))}setCurrentBookmark(e){return Vo(this,void 0,void 0,function*(){if(!e)return we(this,Li,"f").next(void 0);if(typeof e=="string"){const r=yield this.resolverBookmarkAsync(e);return this.setBookmark(r)}else if(e!==we(this,Li,"f").value)return this.setBookmark(e)})}setBookmark(e){return Vo(this,void 0,void 0,function*(){we(this,Ea,"f")?(yield we(this,Ea,"f").dispatchEvent("onBookmarkChange",{detail:e,cancelable:!0,canBubble:!0,source:this})).canceled||we(this,Li,"f").next(e):we(this,Li,"f").next(e)})}resolverBookmark(e){return we(this,J1,"f").query({id:e}).pipe(xt(r=>r.value))}resolverBookmarkAsync(e){return An(this.resolverBookmark(e))}getAllBookmarks(e={isValid:!1}){const{isValid:r}=e;return new it(n=>{we(this,Ut,"f").dispatch.getAll(r),n.add(we(this,Ut,"f").subject.addEffect("getAll::success",i=>{var o;n.next(i.payload),n.complete(),(o=we(this,Ea,"f"))===null||o===void 0||o.dispatchEvent("onBookmarksChanged",{detail:i.payload,source:this})}))})}getAllBookmarksAsync(e={isValid:!1}){return Vo(this,void 0,void 0,function*(){return An(this.getAllBookmarks(e))})}getBookmarkById(e){return Vo(this,void 0,void 0,function*(){return yield(yield we(this,po,"f").get("v1",{id:e})).json()})}createBookmark(e){return new it(r=>{we(this,Ut,"f").dispatch.create(e),r.add(we(this,Ut,"f").subject.addEffect("create::success",n=>{r.next(n.payload),r.complete()})),r.add(we(this,Ut,"f").subject.addEffect("create::failure",n=>{r.error(n.payload)}))})}createBookmarkAsync(e){return Vo(this,void 0,void 0,function*(){return An(this.createBookmark(e))})}updateBookmark(e){return new it(r=>{we(this,Ut,"f").dispatch.update(e),r.add(we(this,Ut,"f").subject.addEffect("update::success",n=>{r.next(n.payload),r.complete(),we(this,J1,"f").cache.invalidate(n.payload.id)}))})}updateBookmarkAsync(e){return Vo(this,void 0,void 0,function*(){return An(this.updateBookmark(e))})}deleteBookmarkById(e){return new it(r=>{we(this,Ut,"f").dispatch.delete(e),r.add(we(this,Ut,"f").subject.addEffect("delete::success",n=>{r.next(n.payload),r.complete(),we(this,J1,"f").cache.invalidate(n.payload)}))})}deleteBookmarkByIdAsync(e){return Vo(this,void 0,void 0,function*(){return An(this.deleteBookmarkById(e))})}addBookmarkFavoriteAsync(e){return Vo(this,void 0,void 0,function*(){(yield we(this,po,"f").addFavorite("v1",{bookmarkId:e})).ok&&we(this,Li,"f").value&&we(this,Ut,"f").dispatch.addFavorite(we(this,Li,"f").value)})}removeBookmarkFavoriteAsync(e){return Vo(this,void 0,void 0,function*(){(yield we(this,po,"f").removeFavorite("v1",{bookmarkId:e})).ok&&we(this,Ut,"f").dispatch.removeFavorite(e)})}verifyBookmarkFavoriteAsync(e){return Vo(this,void 0,void 0,function*(){return!!(yield we(this,po,"f").verifyFavorite("v1",{bookmarkId:e})).ok})}dispose(){we(this,ka,"f").unsubscribe()}}J1=new WeakMap,wa=new WeakMap,po=new WeakMap,Li=new WeakMap,qp=new WeakMap,Ea=new WeakMap,Ut=new WeakMap,ka=new WeakMap,M4=new WeakSet,cI=function(){we(this,Ut,"f").subject.addEffect("create::success",e=>{var r;we(this,wa,"f").cache.invalidate("all-bookmarks"),we(this,Li,"f").next(e.payload),(r=we(this,Ea,"f"))===null||r===void 0||r.dispatchEvent("onBookmarkCreated",{detail:e.payload,canBubble:!0,source:this})}),we(this,Ut,"f").subject.addEffect("delete::success",e=>{var r;console.log("here"),we(this,wa,"f").cache.invalidate("all-bookmarks"),(r=we(this,Ea,"f"))===null||r===void 0||r.dispatchEvent("onBookmarkDeleted",{detail:e.payload,canBubble:!0,source:this})}),we(this,Ut,"f").subject.addEffect("update::success",e=>{var r;we(this,wa,"f").cache.invalidate("all-bookmarks"),(r=we(this,Ea,"f"))===null||r===void 0||r.dispatchEvent("onBookmarkUpdated",{detail:e.payload,canBubble:!0,source:this})}),we(this,Ut,"f").subject.addEffect("addFavorite::request",()=>{we(this,wa,"f").cache.invalidate("all-bookmarks")}),we(this,Ut,"f").subject.addEffect("removeFavorite::request",()=>{we(this,wa,"f").cache.invalidate("all-bookmarks")})},lI=function(){we(this,ka,"f").add(we(this,Ut,"f").subject.addFlow(mY(we(this,wa,"f"),we(this,qp,"f").identifier))),we(this,ka,"f").add(we(this,Ut,"f").subject.addFlow(gY(we(this,po,"f")))),we(this,ka,"f").add(we(this,Ut,"f").subject.addFlow(yY(we(this,po,"f")))),we(this,ka,"f").add(we(this,Ut,"f").subject.addFlow(Rx(we(this,po,"f")))),we(this,ka,"f").add(we(this,Ut,"f").subject.addFlow(Rx(we(this,po,"f"))))};var Fo=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},bY=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},to=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Z1,Rc,$4,i8,o8,a8;class wY{get currentBookmark$(){return this._bookmarkClient.currentBookmark$}get bookmarks$(){return this._bookmarkClient.bookmarks$}constructor(e,r){Z1.add(this),Rc.set(this,void 0),$4.set(this,new Un),this.bookmarkCreators={},i8.set(this,()=>{this.bookmarkCreators={}}),this.config=e,bY(this,Rc,e.event,"f"),this._bookmarkClient=r?r._bookmarkClient:new _Y(e.clientConfiguration,e.sourceSystem,e.event);const n=e.resolveBookmarkId&&e.resolveBookmarkId();n&&this._bookmarkClient.setCurrentBookmark(n),to(this,Rc,"f")&&to(this,$4,"f").add(to(this,Rc,"f").addEventListener("onCurrentAppChanged",to(this,i8,"f")))}getBookmarkById(e){return Fo(this,void 0,void 0,function*(){return yield this._bookmarkClient.getBookmarkById(e)})}setCurrentBookmark(e){return Fo(this,void 0,void 0,function*(){this._bookmarkClient.setCurrentBookmark(e)})}getAllBookmarks(){return this._bookmarkClient.getAllBookmarks()}getAllBookmarksAsync(){return Fo(this,void 0,void 0,function*(){return this._bookmarkClient.getAllBookmarksAsync()})}updateBookmark(e){return this._bookmarkClient.updateBookmark(e)}updateBookmarkAsync(e,r){return Fo(this,void 0,void 0,function*(){if(to(this,Z1,"m",a8).call(this)===e.appKey){if(r!=null&&r.updatePayload){const n=yield to(this,Z1,"m",o8).call(this);e=Object.assign(Object.assign({},e),{payload:n})}return this._bookmarkClient.updateBookmarkAsync(e)}})}deleteBookmarkById(e){return this._bookmarkClient.deleteBookmarkById(e)}deleteBookmarkByIdAsync(e){return this._bookmarkClient.deleteBookmarkByIdAsync(e)}addBookmarkFavoriteAsync(e){return Fo(this,void 0,void 0,function*(){yield this._bookmarkClient.addBookmarkFavoriteAsync(e)})}removeBookmarkFavoriteAsync(e){return Fo(this,void 0,void 0,function*(){yield this._bookmarkClient.removeBookmarkFavoriteAsync(e)})}verifyBookmarkFavoriteAsync(e){return Fo(this,void 0,void 0,function*(){return yield this._bookmarkClient.verifyBookmarkFavoriteAsync(e)})}addStateCreator(e,r){var n;const i=r||"#creator";return to(this,Rc,"f")&&((n=to(this,Rc,"f"))===null||n===void 0||n.dispatchEvent("onAddCreator",{source:this,canBubble:!0,detail:{key:r,cb:e}})),this.bookmarkCreators[i]=e,()=>{delete this.bookmarkCreators[i]}}createBookmark(e){return Fo(this,void 0,void 0,function*(){const r=yield to(this,Z1,"m",o8).call(this),n=this.config.getContextId&&this.config.getContextId(),i=to(this,Z1,"m",a8).call(this),o=Object.assign(Object.assign({},e),{appKey:i,contextId:n,sourceSystem:this.config.sourceSystem,payload:r});return this._bookmarkClient.createBookmarkAsync(o)})}dispose(){to(this,$4,"f").unsubscribe(),this._bookmarkClient.dispose()}}Rc=new WeakMap,$4=new WeakMap,i8=new WeakMap,Z1=new WeakSet,o8=function(){return Fo(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((r,[n,i])=>Fo(this,void 0,void 0,function*(){return Object.assign(yield r,{[n]:yield i()})}),Promise.resolve({}))})},a8=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 xY=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const zY="bookmark",CY={name:zY,configure:()=>new fY,initialize:t=>xY(void 0,void 0,void 0,function*(){var e;const r=(e=t.ref)===null||e===void 0?void 0:e.bookmark,n=yield t.config.createConfig(t,r);return new wY(n,r)}),dispose:t=>{t.instance.dispose()}},kY=(t,e)=>{t.addConfig({module:CY,configure:r=>{e&&r.addConfigBuilder(e)}})};class EY{}/**
419
419
  * @remix-run/router v1.6.1
420
420
  *
421
421
  * Copyright (c) Remix Software Inc.
@@ -1755,8 +1755,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1755
1755
  */var E5=60103,S5=60106,y0=60107,_0=60108,b0=60114,w0=60109,x0=60110,z0=60112,C0=60113,ny=60120,k0=60115,E0=60116,NI=60121,FI=60122,BI=60117,UI=60129,jI=60131;if(typeof Symbol=="function"&&Symbol.for){var en=Symbol.for;E5=en("react.element"),S5=en("react.portal"),y0=en("react.fragment"),_0=en("react.strict_mode"),b0=en("react.profiler"),w0=en("react.provider"),x0=en("react.context"),z0=en("react.forward_ref"),C0=en("react.suspense"),ny=en("react.suspense_list"),k0=en("react.memo"),E0=en("react.lazy"),NI=en("react.block"),FI=en("react.server.block"),BI=en("react.fundamental"),UI=en("react.debug_trace_mode"),jI=en("react.legacy_hidden")}function $o(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case E5:switch(t=t.type,t){case y0:case b0:case _0:case C0:case ny:return t;default:switch(t=t&&t.$$typeof,t){case x0:case z0:case E0:case k0:case w0:return t;default:return e}}case S5:return e}}}var Q6e=w0,J6e=E5,Z6e=z0,e8e=y0,t8e=E0,r8e=k0,n8e=S5,i8e=b0,o8e=_0,a8e=C0;Tt.ContextConsumer=x0;Tt.ContextProvider=Q6e;Tt.Element=J6e;Tt.ForwardRef=Z6e;Tt.Fragment=e8e;Tt.Lazy=t8e;Tt.Memo=r8e;Tt.Portal=n8e;Tt.Profiler=i8e;Tt.StrictMode=o8e;Tt.Suspense=a8e;Tt.isAsyncMode=function(){return!1};Tt.isConcurrentMode=function(){return!1};Tt.isContextConsumer=function(t){return $o(t)===x0};Tt.isContextProvider=function(t){return $o(t)===w0};Tt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===E5};Tt.isForwardRef=function(t){return $o(t)===z0};Tt.isFragment=function(t){return $o(t)===y0};Tt.isLazy=function(t){return $o(t)===E0};Tt.isMemo=function(t){return $o(t)===k0};Tt.isPortal=function(t){return $o(t)===S5};Tt.isProfiler=function(t){return $o(t)===b0};Tt.isStrictMode=function(t){return $o(t)===_0};Tt.isSuspense=function(t){return $o(t)===C0};Tt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===y0||t===b0||t===UI||t===_0||t===C0||t===ny||t===jI||typeof t=="object"&&t!==null&&(t.$$typeof===E0||t.$$typeof===k0||t.$$typeof===w0||t.$$typeof===x0||t.$$typeof===z0||t.$$typeof===BI||t.$$typeof===NI||t[0]===FI)};Tt.typeOf=$o;(function(t){t.exports=Tt})(X6e);function h1(t){return h1=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},h1(t)}function s8e(t,e){if(h1(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(h1(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function c8e(t){var e=s8e(t,"string");return h1(e)==="symbol"?e:String(e)}function z8(t,e,r){return e=c8e(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sz(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Sz(Object(r),!0).forEach(function(n){z8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sz(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function l8e(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function Zi(t,e){if(t==null)return{};var r=l8e(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function iy(t){function e(W,G,X,ie,P){for(var Z=0,R=0,de=0,he=0,ge,ve,Be=0,De=0,He,ht=He=ge=0,$e=0,yt=0,Kt=0,Dt=0,Mr=X.length,Jr=Mr-1,It,Me="",Je="",Hn="",ui="",_t;$e<Mr;){if(ve=X.charCodeAt($e),$e===Jr&&R+he+de+Z!==0&&(R!==0&&(ve=R===47?10:47),he=de=Z=0,Mr++,Jr++),R+he+de+Z===0){if($e===Jr&&(0<yt&&(Me=Me.replace(u,"")),0<Me.trim().length)){switch(ve){case 32:case 9:case 59:case 13:case 10:break;default:Me+=X.charAt($e)}ve=59}switch(ve){case 123:for(Me=Me.trim(),ge=Me.charCodeAt(0),He=1,Dt=++$e;$e<Mr;){switch(ve=X.charCodeAt($e)){case 123:He++;break;case 125:He--;break;case 47:switch(ve=X.charCodeAt($e+1)){case 42:case 47:e:{for(ht=$e+1;ht<Jr;++ht)switch(X.charCodeAt(ht)){case 47:if(ve===42&&X.charCodeAt(ht-1)===42&&$e+2!==ht){$e=ht+1;break e}break;case 10:if(ve===47){$e=ht+1;break e}}$e=ht}}break;case 91:ve++;case 40:ve++;case 34:case 39:for(;$e++<Jr&&X.charCodeAt($e)!==ve;);}if(He===0)break;$e++}switch(He=X.substring(Dt,$e),ge===0&&(ge=(Me=Me.replace(h,"").trim()).charCodeAt(0)),ge){case 64:switch(0<yt&&(Me=Me.replace(u,"")),ve=Me.charCodeAt(1),ve){case 100:case 109:case 115:case 45:yt=G;break;default:yt=ee}if(He=e(G,yt,He,ve,P+1),Dt=He.length,0<A&&(yt=r(ee,Me,Kt),_t=s(3,He,yt,G,Y,U,Dt,ve,P,ie),Me=yt.join(""),_t!==void 0&&(Dt=(He=_t.trim()).length)===0&&(ve=0,He="")),0<Dt)switch(ve){case 115:Me=Me.replace(C,a);case 100:case 109:case 45:He=Me+"{"+He+"}";break;case 107:Me=Me.replace(g,"$1 $2"),He=Me+"{"+He+"}",He=L===1||L===2&&o("@"+He,3)?"@-webkit-"+He+"@"+He:"@"+He;break;default:He=Me+He,ie===112&&(He=(Je+=He,""))}else He="";break;default:He=e(G,r(G,Me,Kt),He,ie,P+1)}Hn+=He,He=Kt=yt=ht=ge=0,Me="",ve=X.charCodeAt(++$e);break;case 125:case 59:if(Me=(0<yt?Me.replace(u,""):Me).trim(),1<(Dt=Me.length))switch(ht===0&&(ge=Me.charCodeAt(0),ge===45||96<ge&&123>ge)&&(Dt=(Me=Me.replace(" ",":")).length),0<A&&(_t=s(1,Me,G,W,Y,U,Je.length,ie,P,ie))!==void 0&&(Dt=(Me=_t.trim()).length)===0&&(Me="\0\0"),ge=Me.charCodeAt(0),ve=Me.charCodeAt(1),ge){case 0:break;case 64:if(ve===105||ve===99){ui+=Me+X.charAt($e);break}default:Me.charCodeAt(Dt-1)!==58&&(Je+=i(Me,ge,ve,Me.charCodeAt(2)))}Kt=yt=ht=ge=0,Me="",ve=X.charCodeAt(++$e)}}switch(ve){case 13:case 10:R===47?R=0:1+ge===0&&ie!==107&&0<Me.length&&(yt=1,Me+="\0"),0<A*O&&s(0,Me,G,W,Y,U,Je.length,ie,P,ie),U=1,Y++;break;case 59:case 125:if(R+he+de+Z===0){U++;break}default:switch(U++,It=X.charAt($e),ve){case 9:case 32:if(he+Z+R===0)switch(Be){case 44:case 58:case 9:case 32:It="";break;default:ve!==32&&(It=" ")}break;case 0:It="\\0";break;case 12:It="\\f";break;case 11:It="\\v";break;case 38:he+R+Z===0&&(yt=Kt=1,It="\f"+It);break;case 108:if(he+R+Z+H===0&&0<ht)switch($e-ht){case 2:Be===112&&X.charCodeAt($e-3)===58&&(H=Be);case 8:De===111&&(H=De)}break;case 58:he+R+Z===0&&(ht=$e);break;case 44:R+de+he+Z===0&&(yt=1,It+="\r");break;case 34:case 39:R===0&&(he=he===ve?0:he===0?ve:he);break;case 91:he+R+de===0&&Z++;break;case 93:he+R+de===0&&Z--;break;case 41:he+R+Z===0&&de--;break;case 40:if(he+R+Z===0){if(ge===0)switch(2*Be+3*De){case 533:break;default:ge=1}de++}break;case 64:R+de+he+Z+ht+He===0&&(He=1);break;case 42:case 47:if(!(0<he+Z+de))switch(R){case 0:switch(2*ve+3*X.charCodeAt($e+1)){case 235:R=47;break;case 220:Dt=$e,R=42}break;case 42:ve===47&&Be===42&&Dt+2!==$e&&(X.charCodeAt(Dt+2)===33&&(Je+=X.substring(Dt,$e+1)),It="",R=0)}}R===0&&(Me+=It)}De=Be,Be=ve,$e++}if(Dt=Je.length,0<Dt){if(yt=G,0<A&&(_t=s(2,Je,yt,W,Y,U,Dt,ie,P,ie),_t!==void 0&&(Je=_t).length===0))return ui+Je+Hn;if(Je=yt.join(",")+"{"+Je+"}",L*H!==0){switch(L!==2||o(Je,2)||(H=0),H){case 111:Je=Je.replace(w,":-moz-$1")+Je;break;case 112:Je=Je.replace(b,"::-webkit-input-$1")+Je.replace(b,"::-moz-$1")+Je.replace(b,":-ms-input-$1")+Je}H=0}}return ui+Je+Hn}function r(W,G,X){var ie=G.trim().split(_);G=ie;var P=ie.length,Z=W.length;switch(Z){case 0:case 1:var R=0;for(W=Z===0?"":W[0]+" ";R<P;++R)G[R]=n(W,G[R],X).trim();break;default:var de=R=0;for(G=[];R<P;++R)for(var he=0;he<Z;++he)G[de++]=n(W[he]+" ",ie[R],X).trim()}return G}function n(W,G,X){var ie=G.charCodeAt(0);switch(33>ie&&(ie=(G=G.trim()).charCodeAt(0)),ie){case 38:return G.replace(m,"$1"+W.trim());case 58:return W.trim()+G.replace(m,"$1"+W.trim());default:if(0<1*X&&0<G.indexOf("\f"))return G.replace(m,(W.charCodeAt(0)===58?"":"$1")+W.trim())}return W+G}function i(W,G,X,ie){var P=W+";",Z=2*G+3*X+4*ie;if(Z===944){W=P.indexOf(":",9)+1;var R=P.substring(W,P.length-1).trim();return R=P.substring(0,W).trim()+R+";",L===1||L===2&&o(R,1)?"-webkit-"+R+R:R}if(L===0||L===2&&!o(P,1))return P;switch(Z){case 1015:return P.charCodeAt(10)===97?"-webkit-"+P+P:P;case 951:return P.charCodeAt(3)===116?"-webkit-"+P+P:P;case 963:return P.charCodeAt(5)===110?"-webkit-"+P+P:P;case 1009:if(P.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+P+P;case 978:return"-webkit-"+P+"-moz-"+P+P;case 1019:case 983:return"-webkit-"+P+"-moz-"+P+"-ms-"+P+P;case 883:if(P.charCodeAt(8)===45)return"-webkit-"+P+P;if(0<P.indexOf("image-set(",11))return P.replace(N,"$1-webkit-$2")+P;break;case 932:if(P.charCodeAt(4)===45)switch(P.charCodeAt(5)){case 103:return"-webkit-box-"+P.replace("-grow","")+"-webkit-"+P+"-ms-"+P.replace("grow","positive")+P;case 115:return"-webkit-"+P+"-ms-"+P.replace("shrink","negative")+P;case 98:return"-webkit-"+P+"-ms-"+P.replace("basis","preferred-size")+P}return"-webkit-"+P+"-ms-"+P+P;case 964:return"-webkit-"+P+"-ms-flex-"+P+P;case 1023:if(P.charCodeAt(8)!==99)break;return R=P.substring(P.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+R+"-webkit-"+P+"-ms-flex-pack"+R+P;case 1005:return v.test(P)?P.replace(f,":-webkit-")+P.replace(f,":-moz-")+P:P;case 1e3:switch(R=P.substring(13).trim(),G=R.indexOf("-")+1,R.charCodeAt(0)+R.charCodeAt(G)){case 226:R=P.replace(x,"tb");break;case 232:R=P.replace(x,"tb-rl");break;case 220:R=P.replace(x,"lr");break;default:return P}return"-webkit-"+P+"-ms-"+R+P;case 1017:if(P.indexOf("sticky",9)===-1)break;case 975:switch(G=(P=W).length-10,R=(P.charCodeAt(G)===33?P.substring(0,G):P).substring(W.indexOf(":",7)+1).trim(),Z=R.charCodeAt(0)+(R.charCodeAt(7)|0)){case 203:if(111>R.charCodeAt(8))break;case 115:P=P.replace(R,"-webkit-"+R)+";"+P;break;case 207:case 102:P=P.replace(R,"-webkit-"+(102<Z?"inline-":"")+"box")+";"+P.replace(R,"-webkit-"+R)+";"+P.replace(R,"-ms-"+R+"box")+";"+P}return P+";";case 938:if(P.charCodeAt(5)===45)switch(P.charCodeAt(6)){case 105:return R=P.replace("-items",""),"-webkit-"+P+"-webkit-box-"+R+"-ms-flex-"+R+P;case 115:return"-webkit-"+P+"-ms-flex-item-"+P.replace(M,"")+P;default:return"-webkit-"+P+"-ms-flex-line-pack"+P.replace("align-content","").replace(M,"")+P}break;case 973:case 989:if(P.charCodeAt(3)!==45||P.charCodeAt(4)===122)break;case 931:case 953:if(I.test(W)===!0)return(R=W.substring(W.indexOf(":")+1)).charCodeAt(0)===115?i(W.replace("stretch","fill-available"),G,X,ie).replace(":fill-available",":stretch"):P.replace(R,"-webkit-"+R)+P.replace(R,"-moz-"+R.replace("fill-",""))+P;break;case 962:if(P="-webkit-"+P+(P.charCodeAt(5)===102?"-ms-"+P:"")+P,X+ie===211&&P.charCodeAt(13)===105&&0<P.indexOf("transform",10))return P.substring(0,P.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+P}return P}function o(W,G){var X=W.indexOf(G===1?":":"{"),ie=W.substring(0,G!==3?X:10);return X=W.substring(X+1,W.length-1),B(G!==2?ie:ie.replace(T,"$1"),X,G)}function a(W,G){var X=i(G,G.charCodeAt(0),G.charCodeAt(1),G.charCodeAt(2));return X!==G+";"?X.replace(S," or ($1)").substring(4):"("+G+")"}function s(W,G,X,ie,P,Z,R,de,he,ge){for(var ve=0,Be=G,De;ve<A;++ve)switch(De=ae[ve].call(d,W,Be,X,ie,P,Z,R,de,he,ge)){case void 0:case!1:case!0:case null:break;default:Be=De}if(Be!==G)return Be}function c(W){switch(W){case void 0:case null:A=ae.length=0;break;default:if(typeof W=="function")ae[A++]=W;else if(typeof W=="object")for(var G=0,X=W.length;G<X;++G)c(W[G]);else O=!!W|0}return c}function l(W){return W=W.prefix,W!==void 0&&(B=null,W?typeof W!="function"?L=1:(L=2,B=W):L=0),l}function d(W,G){var X=W;if(33>X.charCodeAt(0)&&(X=X.trim()),Q=X,X=[Q],0<A){var ie=s(-1,G,X,X,Y,U,0,0,0,0);ie!==void 0&&typeof ie=="string"&&(G=ie)}var P=e(ee,X,G,0,0);return 0<A&&(ie=s(-2,P,X,X,Y,U,P.length,0,0,0),ie!==void 0&&(P=ie)),Q="",H=0,U=Y=1,P}var h=/^\0+/g,u=/[\0\r\f]/g,f=/: */g,v=/zoo|gra/,p=/([,: ])(transform)/g,_=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,w=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,M=/-self|flex-/g,T=/[^]*?(:[rp][el]a[\w-]+)[^]*/,I=/stretch|:\s*\w+\-(?:conte|avail)/,N=/([^-])(image-set\()/,U=1,Y=1,H=0,L=1,ee=[],ae=[],A=0,B=null,O=0,Q="";return d.use=c,d.set=l,t!==void 0&&l(t),d}var oy={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function qI(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var d8e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Xs=qI(function(t){return d8e.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function Qo(){return(Qo=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var Az=function(t,e){for(var r=[t[0]],n=0,i=e.length;n<i;n+=1)r.push(e[n],t[n+1]);return r},C8=function(t){return t!==null&&typeof t=="object"&&(t.toString?t.toString():Object.prototype.toString.call(t))==="[object Object]"&&!Xp.typeOf(t)},Qp=Object.freeze([]),Ns=Object.freeze({});function cd(t){return typeof t=="function"}function Mz(t){return t.displayName||t.name||"Component"}function ay(t){return t&&typeof t.styledComponentId=="string"}var ld=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",sy=typeof window<"u"&&"HTMLElement"in window,h8e=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY));function u1(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var u8e=function(){function t(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}var e=t.prototype;return e.indexOfGroup=function(r){for(var n=0,i=0;i<r;i++)n+=this.groupSizes[i];return n},e.insertRules=function(r,n){if(r>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;r>=a;)(a<<=1)<0&&u1(16,""+r);this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var s=o;s<a;s++)this.groupSizes[s]=0}for(var c=this.indexOfGroup(r+1),l=0,d=n.length;l<d;l++)this.tag.insertRule(c,n[l])&&(this.groupSizes[r]++,c++)},e.clearGroup=function(r){if(r<this.length){var n=this.groupSizes[r],i=this.indexOfGroup(r),o=i+n;this.groupSizes[r]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.getGroup=function(r){var n="";if(r>=this.length||this.groupSizes[r]===0)return n;for(var i=this.groupSizes[r],o=this.indexOfGroup(r),a=o+i,s=o;s<a;s++)n+=this.tag.getRule(s)+`/*!sc*/
1756
1756
  `;return n},t}(),H4=new Map,Jp=new Map,$h=1,xf=function(t){if(H4.has(t))return H4.get(t);for(;Jp.has($h);)$h++;var e=$h++;return H4.set(t,e),Jp.set(e,t),e},f8e=function(t){return Jp.get(t)},p8e=function(t,e){e>=$h&&($h=e+1),H4.set(t,e),Jp.set(e,t)},v8e="style["+ld+'][data-styled-version="5.3.9"]',m8e=new RegExp("^"+ld+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),g8e=function(t,e,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&t.registerName(e,n)},y8e=function(t,e){for(var r=(e.textContent||"").split(`/*!sc*/
1757
1757
  `),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(m8e);if(s){var c=0|parseInt(s[1],10),l=s[2];c!==0&&(p8e(l,c),g8e(t,l,s[3]),t.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},_8e=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},WI=function(t){var e=document.head,r=t||e,n=document.createElement("style"),i=function(s){for(var c=s.childNodes,l=c.length;l>=0;l--){var d=c[l];if(d&&d.nodeType===1&&d.hasAttribute(ld))return d}}(r),o=i!==void 0?i.nextSibling:null;n.setAttribute(ld,"active"),n.setAttribute("data-styled-version","5.3.9");var a=_8e();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},b8e=function(){function t(r){var n=this.element=WI(r);n.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,a=0,s=o.length;a<s;a++){var c=o[a];if(c.ownerNode===i)return c}u1(17)}(n),this.length=0}var e=t.prototype;return e.insertRule=function(r,n){try{return this.sheet.insertRule(n,r),this.length++,!0}catch{return!1}},e.deleteRule=function(r){this.sheet.deleteRule(r),this.length--},e.getRule=function(r){var n=this.sheet.cssRules[r];return n!==void 0&&typeof n.cssText=="string"?n.cssText:""},t}(),w8e=function(){function t(r){var n=this.element=WI(r);this.nodes=n.childNodes,this.length=0}var e=t.prototype;return e.insertRule=function(r,n){if(r<=this.length&&r>=0){var i=document.createTextNode(n),o=this.nodes[r];return this.element.insertBefore(i,o||null),this.length++,!0}return!1},e.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},e.getRule=function(r){return r<this.length?this.nodes[r].textContent:""},t}(),x8e=function(){function t(r){this.rules=[],this.length=0}var e=t.prototype;return e.insertRule=function(r,n){return r<=this.length&&(this.rules.splice(r,0,n),this.length++,!0)},e.deleteRule=function(r){this.rules.splice(r,1),this.length--},e.getRule=function(r){return r<this.length?this.rules[r]:""},t}(),$z=sy,z8e={isServer:!sy,useCSSOMInjection:!h8e},GI=function(){function t(r,n,i){r===void 0&&(r=Ns),n===void 0&&(n={}),this.options=Qo({},z8e,{},r),this.gs=n,this.names=new Map(i),this.server=!!r.isServer,!this.server&&sy&&$z&&($z=!1,function(o){for(var a=document.querySelectorAll(v8e),s=0,c=a.length;s<c;s++){var l=a[s];l&&l.getAttribute(ld)!=="active"&&(y8e(o,l),l.parentNode&&l.parentNode.removeChild(l))}}(this))}t.registerId=function(r){return xf(r)};var e=t.prototype;return e.reconstructWithOptions=function(r,n){return n===void 0&&(n=!0),new t(Qo({},this.options,{},r),this.gs,n&&this.names||void 0)},e.allocateGSInstance=function(r){return this.gs[r]=(this.gs[r]||0)+1},e.getTag=function(){return this.tag||(this.tag=(i=(n=this.options).isServer,o=n.useCSSOMInjection,a=n.target,r=i?new x8e(a):o?new b8e(a):new w8e(a),new u8e(r)));var r,n,i,o,a},e.hasNameForId=function(r,n){return this.names.has(r)&&this.names.get(r).has(n)},e.registerName=function(r,n){if(xf(r),this.names.has(r))this.names.get(r).add(n);else{var i=new Set;i.add(n),this.names.set(r,i)}},e.insertRules=function(r,n,i){this.registerName(r,n),this.getTag().insertRules(xf(r),i)},e.clearNames=function(r){this.names.has(r)&&this.names.get(r).clear()},e.clearRules=function(r){this.getTag().clearGroup(xf(r)),this.clearNames(r)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(r){for(var n=r.getTag(),i=n.length,o="",a=0;a<i;a++){var s=f8e(a);if(s!==void 0){var c=r.names.get(s),l=n.getGroup(a);if(c&&l&&c.size){var d=ld+".g"+a+'[id="'+s+'"]',h="";c!==void 0&&c.forEach(function(u){u.length>0&&(h+=u+",")}),o+=""+l+d+'{content:"'+h+`"}/*!sc*/
1758
- `}}}return o}(this)},t}(),C8e=/(a)(d)/gi,Pz=function(t){return String.fromCharCode(t+(t>25?39:97))};function k8(t){var e,r="";for(e=Math.abs(t);e>52;e=e/52|0)r=Pz(e%52)+r;return(Pz(e%52)+r).replace(C8e,"$1-$2")}var xl=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},KI=function(t){return xl(5381,t)};function k8e(t){for(var e=0;e<t.length;e+=1){var r=t[e];if(cd(r)&&!ay(r))return!1}return!0}var E8e=KI("5.3.9"),S8e=function(){function t(e,r,n){this.rules=e,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&k8e(e),this.componentId=r,this.baseHash=xl(E8e,r),this.baseStyle=n,GI.registerId(r)}return t.prototype.generateAndInjectStyles=function(e,r,n){var i=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,r,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(i,this.staticRulesId))o.push(this.staticRulesId);else{var a=dd(this.rules,e,r,n).join(""),s=k8(xl(this.baseHash,a)>>>0);if(!r.hasNameForId(i,s)){var c=n(a,"."+s,void 0,i);r.insertRules(i,s,c)}o.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,d=xl(this.baseHash,n.hash),h="",u=0;u<l;u++){var f=this.rules[u];if(typeof f=="string")h+=f;else if(f){var v=dd(f,e,r,n),p=Array.isArray(v)?v.join(""):v;d=xl(d,p+u),h+=p}}if(h){var _=k8(d>>>0);if(!r.hasNameForId(i,_)){var m=n(h,"."+_,void 0,i);r.insertRules(i,_,m)}o.push(_)}}return o.join(" ")},t}(),A8e=/^\s*\/\/.*$/gm,M8e=[":","[",".","#"];function $8e(t){var e,r,n,i,o=t===void 0?Ns:t,a=o.options,s=a===void 0?Ns:a,c=o.plugins,l=c===void 0?Qp:c,d=new iy(s),h=[],u=function(p){function _(m){if(m)try{p(m+"}")}catch{}}return function(m,g,b,w,x,C,S,M,T,I){switch(m){case 1:if(T===0&&g.charCodeAt(0)===64)return p(g+";"),"";break;case 2:if(M===0)return g+"/*|*/";break;case 3:switch(M){case 102:case 112:return p(b[0]+g),"";default:return g+(I===0?"/*|*/":"")}case-2:g.split("/*|*/}").forEach(_)}}}(function(p){h.push(p)}),f=function(p,_,m){return _===0&&M8e.indexOf(m[r.length])!==-1||m.match(i)?p:"."+e};function v(p,_,m,g){g===void 0&&(g="&");var b=p.replace(A8e,""),w=_&&m?m+" "+_+" { "+b+" }":b;return e=g,r=_,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),d(m||!_?"":_,w)}return d.use([].concat(l,[function(p,_,m){p===2&&m.length&&m[0].lastIndexOf(r)>0&&(m[0]=m[0].replace(n,f))},u,function(p){if(p===-2){var _=h;return h=[],_}}])),v.hash=l.length?l.reduce(function(p,_){return _.name||u1(15),xl(p,_.name)},5381).toString():"",v}var YI=dt.createContext();YI.Consumer;var XI=dt.createContext(),P8e=(XI.Consumer,new GI),E8=$8e();function I8e(){return y.useContext(YI)||P8e}function H8e(){return y.useContext(XI)||E8}var T8e=function(){function t(e,r){var n=this;this.inject=function(i,o){o===void 0&&(o=E8);var a=n.name+o.hash;i.hasNameForId(n.id,a)||i.insertRules(n.id,a,o(n.rules,a,"@keyframes"))},this.toString=function(){return u1(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=r}return t.prototype.getName=function(e){return e===void 0&&(e=E8),this.name+e.hash},t}(),R8e=/([A-Z])/,D8e=/([A-Z])/g,V8e=/^ms-/,L8e=function(t){return"-"+t.toLowerCase()};function Iz(t){return R8e.test(t)?t.replace(D8e,L8e).replace(V8e,"-ms-"):t}var Hz=function(t){return t==null||t===!1||t===""};function dd(t,e,r,n){if(Array.isArray(t)){for(var i,o=[],a=0,s=t.length;a<s;a+=1)(i=dd(t[a],e,r,n))!==""&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}if(Hz(t))return"";if(ay(t))return"."+t.styledComponentId;if(cd(t)){if(typeof(l=t)!="function"||l.prototype&&l.prototype.isReactComponent||!e)return t;var c=t(e);return dd(c,e,r,n)}var l;return t instanceof T8e?r?(t.inject(r,n),t.getName(n)):t:C8(t)?function d(h,u){var f,v,p=[];for(var _ in h)h.hasOwnProperty(_)&&!Hz(h[_])&&(Array.isArray(h[_])&&h[_].isCss||cd(h[_])?p.push(Iz(_)+":",h[_],";"):C8(h[_])?p.push.apply(p,d(h[_],_)):p.push(Iz(_)+": "+(f=_,(v=h[_])==null||typeof v=="boolean"||v===""?"":typeof v!="number"||v===0||f in oy?String(v).trim():v+"px")+";"));return u?[u+" {"].concat(p,["}"]):p}(t):t.toString()}var Tz=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function Na(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return cd(t)||C8(t)?Tz(dd(Az(Qp,[t].concat(r)))):r.length===0&&t.length===1&&typeof t[0]=="string"?t:Tz(dd(Az(t,r)))}var O8e=function(t,e,r){return r===void 0&&(r=Ns),t.theme!==r.theme&&t.theme||e||r.theme},N8e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,F8e=/(^-|-$)/g;function b3(t){return t.replace(N8e,"-").replace(F8e,"")}var B8e=function(t){return k8(KI(t)>>>0)};function zf(t){return typeof t=="string"&&!0}var S8=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},U8e=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function j8e(t,e,r){var n=t[r];S8(e)&&S8(n)?QI(n,e):t[r]=e}function QI(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(S8(a))for(var s in a)U8e(s)&&j8e(t,a[s],s)}return t}var Zp=dt.createContext();Zp.Consumer;function JI(t){var e=y.useContext(Zp),r=y.useMemo(function(){return function(n,i){if(!n)return u1(14);if(cd(n)){var o=n(i);return o}return Array.isArray(n)||typeof n!="object"?u1(8):i?Qo({},i,{},n):n}(t.theme,e)},[t.theme,e]);return t.children?dt.createElement(Zp.Provider,{value:r},t.children):null}var w3={};function ZI(t,e,r){var n=ay(t),i=!zf(t),o=e.attrs,a=o===void 0?Qp:o,s=e.componentId,c=s===void 0?function(g,b){var w=typeof g!="string"?"sc":b3(g);w3[w]=(w3[w]||0)+1;var x=w+"-"+B8e("5.3.9"+w+w3[w]);return b?b+"-"+x:x}(e.displayName,e.parentComponentId):s,l=e.displayName,d=l===void 0?function(g){return zf(g)?"styled."+g:"Styled("+Mz(g)+")"}(t):l,h=e.displayName&&e.componentId?b3(e.displayName)+"-"+e.componentId:e.componentId||c,u=n&&t.attrs?Array.prototype.concat(t.attrs,a).filter(Boolean):a,f=e.shouldForwardProp;n&&t.shouldForwardProp&&(f=e.shouldForwardProp?function(g,b,w){return t.shouldForwardProp(g,b,w)&&e.shouldForwardProp(g,b,w)}:t.shouldForwardProp);var v,p=new S8e(r,h,n?t.componentStyle:void 0),_=p.isStatic&&a.length===0,m=function(g,b){return function(w,x,C,S){var M=w.attrs,T=w.componentStyle,I=w.defaultProps,N=w.foldedComponentIds,U=w.shouldForwardProp,Y=w.styledComponentId,H=w.target,L=function(ie,P,Z){ie===void 0&&(ie=Ns);var R=Qo({},P,{theme:ie}),de={};return Z.forEach(function(he){var ge,ve,Be,De=he;for(ge in cd(De)&&(De=De(R)),De)R[ge]=de[ge]=ge==="className"?(ve=de[ge],Be=De[ge],ve&&Be?ve+" "+Be:ve||Be):De[ge]}),[R,de]}(O8e(x,y.useContext(Zp),I)||Ns,x,M),ee=L[0],ae=L[1],A=function(ie,P,Z,R){var de=I8e(),he=H8e(),ge=P?ie.generateAndInjectStyles(Ns,de,he):ie.generateAndInjectStyles(Z,de,he);return ge}(T,S,ee),B=C,O=ae.$as||x.$as||ae.as||x.as||H,Q=zf(O),W=ae!==x?Qo({},x,{},ae):x,G={};for(var X in W)X[0]!=="$"&&X!=="as"&&(X==="forwardedAs"?G.as=W[X]:(U?U(X,Xs,O):!Q||Xs(X))&&(G[X]=W[X]));return x.style&&ae.style!==x.style&&(G.style=Qo({},x.style,{},ae.style)),G.className=Array.prototype.concat(N,Y,A!==Y?A:null,x.className,ae.className).filter(Boolean).join(" "),G.ref=B,y.createElement(O,G)}(v,g,b,_)};return m.displayName=d,(v=dt.forwardRef(m)).attrs=u,v.componentStyle=p,v.displayName=d,v.shouldForwardProp=f,v.foldedComponentIds=n?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):Qp,v.styledComponentId=h,v.target=n?t.target:t,v.withComponent=function(g){var b=e.componentId,w=function(C,S){if(C==null)return{};var M,T,I={},N=Object.keys(C);for(T=0;T<N.length;T++)M=N[T],S.indexOf(M)>=0||(I[M]=C[M]);return I}(e,["componentId"]),x=b&&b+"-"+(zf(g)?g:b3(Mz(g)));return ZI(g,Qo({},w,{attrs:u,componentId:x}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(g){this._foldedDefaultProps=n?QI({},t.defaultProps,g):g}}),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),i&&j7(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var A8=function(t){return function e(r,n,i){if(i===void 0&&(i=Ns),!Xp.isValidElementType(n))return u1(1,String(n));var o=function(){return r(n,i,Na.apply(void 0,arguments))};return o.withConfig=function(a){return e(r,n,Qo({},i,{},a))},o.attrs=function(a){return e(r,n,Qo({},i,{attrs:Array.prototype.concat(i.attrs,a).filter(Boolean)}))},o}(ZI,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){A8[t]=A8(t)});const Qr=A8;var q8e={jumbo__base:"88px",default__base:"48px",default__input:"56px",compact__standard:"32px",compact__input:"44px"},W8e={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_ui_background__default, rgba(255, 255, 255, 1))"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_ui_background__light, rgba(247, 247, 247, 1))"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_ui_background__medium, rgba(220, 220, 220, 1))"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_ui_background__info, rgba(213, 234, 244, 1))"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_ui_background__warning, rgba(255, 231, 214, 1))"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_ui_background__danger, rgba(255, 193, 193, 1))"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__text, rgba(53, 129, 50, 1))"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive__focus, rgba(0, 112, 121, 1))"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))"}}},G8e={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)"},K8e={_modes:{compact:{pressed_dark_overlay:{blendMode:"pass_through",pressedColor:"transparent"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 1)"}}},pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},Y8e={_modes:{compact:{rounded:{minHeight:"24px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"32px",minWidth:"32px",borderRadius:"100px"},straight:{minHeight:"24px",minWidth:"112px",borderRadius:""},toggle_rounded_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},toggle_straight_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},circle:{minHeight:"24px",minWidth:"24px",borderRadius:"100px"}}},toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},X8e={heading:{h1_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},h1:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h2:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h3:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.250em",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"},menu_title_hover:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"}},input:{label:{color:"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"}},_modes:{compact:{table:{cell_header:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},cell_text_bold:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text_link:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",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"}}},Q8e={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"}},J={clickbounds:q8e,colors:W8e,elevation:G8e,interactions:K8e,shape:Y8e,typography:X8e,spacings:Q8e},x3=J.typography.navigation.button,cy=J.colors.interactive,J8e=cy.disabled__text.rgba,Z8e=cy.disabled__border.rgba,e9e=cy.disabled__fill.rgba,Rz=J.spacings.comfortable.medium,eH=J.shape,tH=eH.button,Dz=tH.minHeight,Vz=tH.borderRadius,Lz=eH._modes.compact.button.minHeight,Oz=J.interactions.focused,rH=J.clickbounds,Nz=rH.default__base,Fz=rH.compact__standard,A5={background:"transparent",height:"var(--eds_button__height, ".concat(Dz,")"),typography:Pe(Pe({},x3),{},{textAlign:"center",fontSize:"var(--eds_button__font_size, ".concat(x3.fontSize,")")}),border:{type:"border",width:"var(--eds_button__border_width, 1px)",color:"transparent",radius:"var(--eds_button__radius, ".concat(Vz,")"),style:"solid"},spacings:{top:"var(--eds_button__padding_y, 0)",bottom:"var(--eds_button__padding_y, 0)",left:"var(--eds_button__padding_x, ".concat(Rz,")"),right:"var(--eds_button__padding_x, ".concat(Rz,")")},clickbound:{height:Nz,width:"100%",offset:{top:"".concat((parseInt(Nz)-parseInt(Dz))/2+1,"px"),left:"0"}},entities:{icon:{height:"var(--eds_button__icon__size, 24px)",width:"var(--eds_button__icon__size, 24px)"}},states:{hover:{border:{type:"border",width:"1px",color:"transparent",radius:"var(--eds_button__radius, ".concat(Vz,")"),style:"solid"}},focus:{outline:{type:"outline",offset:"3px",style:"dashed",color:Oz.color,width:Oz.width}},disabled:{background:e9e,border:{type:"border",width:"1px",color:Z8e,style:"solid"},typography:Pe(Pe({},x3),{},{color:J8e,textAlign:"center"})}},modes:{compact:{height:"var(--eds_button__height_compact, ".concat(Lz,")"),spacings:{top:"var(--eds_button__padding_y_compact, 0)",bottom:"var(--eds_button__padding_y_compact, 0)"},clickbound:{height:Fz,width:"100%",offset:{top:"".concat((parseInt(Fz)-parseInt(Lz))/2+1,"px"),left:"0"}}}}};function Zt(t){return t!=null&&h1(t)==="object"&&t["@@functional/placeholder"]===!0}function Kc(t){return function e(r){return arguments.length===0||Zt(r)?e:t.apply(this,arguments)}}function Vc(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return Zt(r)?e:Kc(function(i){return t(r,i)});default:return Zt(r)&&Zt(n)?e:Zt(r)?Kc(function(i){return t(i,n)}):Zt(n)?Kc(function(i){return t(r,i)}):t(r,n)}}}function nH(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return Zt(r)?e:Vc(function(o,a){return t(r,o,a)});case 2:return Zt(r)&&Zt(n)?e:Zt(r)?Vc(function(o,a){return t(o,n,a)}):Zt(n)?Vc(function(o,a){return t(r,o,a)}):Kc(function(o){return t(r,n,o)});default:return Zt(r)&&Zt(n)&&Zt(i)?e:Zt(r)&&Zt(n)?Vc(function(o,a){return t(o,a,i)}):Zt(r)&&Zt(i)?Vc(function(o,a){return t(o,n,a)}):Zt(n)&&Zt(i)?Vc(function(o,a){return t(r,o,a)}):Zt(r)?Kc(function(o){return t(o,n,i)}):Zt(n)?Kc(function(o){return t(r,o,i)}):Zt(i)?Kc(function(o){return t(r,n,o)}):t(r,n,i)}}}function Bz(t){return Object.prototype.toString.call(t)==="[object Object]"}function Cf(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var t9e=nH(function(e,r,n){var i={},o;for(o in r)Cf(o,r)&&(i[o]=Cf(o,n)?e(o,r[o],n[o]):r[o]);for(o in n)Cf(o,n)&&!Cf(o,i)&&(i[o]=n[o]);return i}),r9e=nH(function t(e,r,n){return t9e(function(i,o,a){return Bz(o)&&Bz(a)?t(e,o,a):e(i,o,a)},r,n)}),n9e=Vc(function(e,r){return r9e(function(n,i,o){return o},e,r)}),Gn=n9e,iH=J.colors,i9e=iH.text.static_icons__primary_white.rgba,Jd=iH.interactive,Uz=Jd.primary__resting.rgba,o9e=Jd.primary__hover.rgba,jz=Jd.secondary__resting.rgba,qz=Jd.secondary__link_hover.rgba,Wz=Jd.danger__resting.rgba,Gz=Jd.danger__hover.rgba,a9e=J.shape.button.borderRadius,M5=Gn(A5,{background:Uz,typography:{color:i9e},border:{type:"border",style:"solid",width:"1px",color:Uz,radius:"var(--eds_button__radius, ".concat(a9e,")")},states:{hover:{background:o9e}}}),oH=Gn(M5,{background:jz,border:{color:jz},states:{hover:{background:qz,border:{color:qz}}}}),aH=Gn(M5,{background:Wz,border:{color:Wz},states:{hover:{background:Gz,border:{color:Gz}}}}),Za=J.colors.interactive,Kz=Za.primary__resting.rgba,Yz=Za.primary__hover.rgba,s9e=Za.primary__hover_alt.rgba,Xz=Za.secondary__resting.rgba,Qz=Za.secondary__link_hover.rgba,c9e=Za.secondary__highlight.rgba,Jz=Za.danger__resting.rgba,Zz=Za.danger__hover.rgba,l9e=Za.danger__highlight.rgba,d9e=J.shape.button.borderRadius,ly=Gn(A5,{typography:{color:Kz},border:{type:"border",style:"solid",width:"1px",color:Kz,radius:"var(--eds_button__radius, ".concat(d9e,")")},states:{hover:{typography:{color:Yz},background:s9e,border:{style:"solid",type:"border",width:"1px",color:Yz}},disabled:{background:"transparent"}}}),h9e=Gn(ly,{typography:{color:Xz},border:{color:Xz},states:{hover:{background:c9e,typography:{color:Qz},border:{color:Qz}}}}),u9e=Gn(ly,{typography:{color:Jz},border:{color:Jz},states:{hover:{background:l9e,typography:{color:Zz},border:{color:Zz}}}}),es=J.colors.interactive,f9e=es.primary__resting.rgba,p9e=es.primary__hover.rgba,v9e=es.primary__hover_alt.rgba,m9e=es.secondary__resting.rgba,g9e=es.secondary__link_hover.rgba,y9e=es.secondary__highlight.rgba,_9e=es.danger__resting.rgba,b9e=es.danger__hover.rgba,w9e=es.danger__highlight.rgba,dy=Gn(A5,{typography:{color:f9e},states:{hover:{background:v9e,typography:{color:p9e}},disabled:{background:"transparent",border:{color:"transparent"}}}}),x9e=Gn(dy,{typography:{color:m9e},states:{hover:{background:y9e,typography:{color:g9e}}}}),z9e=Gn(dy,{typography:{color:_9e},states:{hover:{background:w9e,typography:{color:b9e}}}}),lc=J.colors.interactive,C9e=lc.primary__resting.rgba,k9e=lc.primary__hover_alt.rgba,E9e=lc.secondary__resting.rgba,S9e=lc.secondary__link_hover.rgba,A9e=lc.secondary__highlight.rgba,M9e=lc.danger__resting.rgba,$9e=lc.danger__hover.rgba,P9e=lc.danger__highlight.rgba,sH=J.clickbounds,eC=sH.default__base,tC=sH.compact__standard,L1=J.shape,I9e=J.interactions.focused.width,hy=Gn(A5,{height:L1.icon_button.minHeight,width:L1.icon_button.minWidth,typography:{color:C9e},border:{width:"0px",radius:"50%"},background:"transparent",spacings:{left:"0",right:"0"},clickbound:{width:eC,offset:{top:"0",left:"".concat((parseInt(eC)-parseInt(L1.icon_button.minWidth))/2,"px")}},states:{hover:{background:k9e,border:{width:"0px",radius:"50%"}},disabled:{background:"transparent",border:{color:"transparent"}},focus:{outline:{offset:"-".concat(parseInt(I9e),"px")}}},modes:{compact:{height:L1._modes.compact.icon_button.minHeight,width:L1._modes.compact.icon_button.minWidth,clickbound:{width:tC,offset:{top:"0",left:"".concat((parseInt(tC)-parseInt(L1._modes.compact.icon_button.minWidth))/2,"px")}}}}}),H9e=Gn(hy,{typography:{color:E9e},states:{hover:{background:A9e,typography:{color:S9e}}}}),T9e=Gn(hy,{typography:{color:M9e},states:{hover:{background:P9e,typography:{color:$9e}}}}),cH=J.clickbounds,rC=cH.default__base,nC=cH.compact__standard,E2=J.shape,uy={height:E2.icon_button.minHeight,width:E2.icon_button.minWidth,border:{width:"0px",radius:"50%"},spacings:{left:"0",right:"0"},clickbound:{width:rC,offset:{top:"0",left:"".concat((parseInt(rC)-parseInt("40px"))/2,"px")}},states:{hover:{border:{width:"0px",radius:"50%"}}},modes:{compact:{height:E2._modes.compact.icon_button.minHeight,width:E2._modes.compact.icon_button.minWidth,clickbound:{width:nC,offset:{top:"0",left:"".concat((parseInt(nC)-parseInt(E2._modes.compact.icon_button.minWidth))/2,"px")}}}}},R9e=Gn(M5,uy),D9e=Gn(oH,uy),V9e=Gn(aH,uy),z3={primary:{contained:M5,outlined:ly,ghost:dy,ghost_icon:hy,contained_icon:R9e},secondary:{contained:oH,outlined:h9e,ghost:x9e,ghost_icon:H9e,contained_icon:D9e},danger:{contained:aH,outlined:u9e,ghost:z9e,ghost_icon:T9e,contained_icon:V9e}},L9e=function(e,r){y.useEffect(function(){var n=function(o){e&&!e.contains(o.target)&&r(o)};return document.addEventListener("click",n),function(){document.removeEventListener("click",n)}},[e,r])},iC;(function(t){t.Escape="Escape",t.Enter="Enter",t.Tab="Tab",t.ArrowDown="ArrowDown",t.ArrowUp="ArrowUp"})(iC||(iC={}));var ev=function(e,r){y.useEffect(function(){var n=function(o){var a=o.key;switch(a){case e:r(o);break}};return document.addEventListener("keydown",n,!0),function(){document.removeEventListener("keydown",n,!0)}},[e,r])};function O9e(t){if(Array.isArray(t))return t}function N9e(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function oC(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function F9e(t,e){if(t){if(typeof t=="string")return oC(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oC(t,e)}}function B9e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1759
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U9e(t,e){return O9e(t)||N9e(t,e)||F9e(t,e)||B9e()}var j9e=function(e,r){var n=y.useState(e),i=U9e(n,2),o=i[0],a=i[1],s=e||o;return y.useEffect(function(){o==null&&a("eds-".concat(r?r+"-":"").concat(Math.round(Math.random()*1e5)))},[o,r]),s},q9e=function(e,r){y.useEffect(function(){var n=function(){e.style.height="auto";var o=e.scrollHeight,a=e.clientHeight,s=a;r>s&&(s=Math.min(r,Math.max(o,s)),o>r?e.style.overflow="auto":e.style.overflow="hidden",s>a&&(e.style.height="".concat(s,"px")))};return e&&r&&(n(),e.addEventListener("keyup",n,!0)),function(){e==null||e.removeEventListener("keyup",n,!0)}},[e,r])},lH=typeof window<"u"?y.useLayoutEffect:y.useEffect;function tv(t){return tv=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},tv(t)}function er(t){return t!=null&&tv(t)==="object"&&t["@@functional/placeholder"]===!0}function Yc(t){return function e(r){return arguments.length===0||er(r)?e:t.apply(this,arguments)}}function Lc(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return er(r)?e:Yc(function(i){return t(r,i)});default:return er(r)&&er(n)?e:er(r)?Yc(function(i){return t(i,n)}):er(n)?Yc(function(i){return t(r,i)}):t(r,n)}}}function dH(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return er(r)?e:Lc(function(o,a){return t(r,o,a)});case 2:return er(r)&&er(n)?e:er(r)?Lc(function(o,a){return t(o,n,a)}):er(n)?Lc(function(o,a){return t(r,o,a)}):Yc(function(o){return t(r,n,o)});default:return er(r)&&er(n)&&er(i)?e:er(r)&&er(n)?Lc(function(o,a){return t(o,a,i)}):er(r)&&er(i)?Lc(function(o,a){return t(o,n,a)}):er(n)&&er(i)?Lc(function(o,a){return t(r,o,a)}):er(r)?Yc(function(o){return t(o,n,i)}):er(n)?Yc(function(o){return t(r,o,i)}):er(i)?Yc(function(o){return t(r,n,o)}):t(r,n,i)}}}function aC(t){return Object.prototype.toString.call(t)==="[object Object]"}function kf(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var W9e=dH(function(e,r,n){var i={},o;for(o in r)kf(o,r)&&(i[o]=kf(o,n)?e(o,r[o],n[o]):r[o]);for(o in n)kf(o,n)&&!kf(o,i)&&(i[o]=n[o]);return i}),G9e=dH(function t(e,r,n){return W9e(function(i,o,a){return aC(o)&&aC(a)?t(e,o,a):e(i,o,a)},r,n)}),K9e=Lc(function(e,r){return G9e(function(n,i,o){return o},e,r)}),Y9e=K9e,ha=function(e,r){return y.useCallback(function(){var n=e.density;return n==="compact"?Y9e(r,r.modes.compact):r},[e,r])},Ao=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(i){return r.forEach(function(o){typeof o=="function"?o(i):o&&tv(o)==="object"&&(o.current=i)})}},X9e=function(e,r){var n=e.value;e.value=r;var i=e._valueTracker;typeof i<"u"&&i.setValue(n),e.dispatchEvent(new Event("change",{bubbles:!0}))};function Ia(){return(Ia=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var sC=function(t,e){for(var r=[t[0]],n=0,i=e.length;n<i;n+=1)r.push(e[n],t[n+1]);return r},M8=function(t){return t!==null&&typeof t=="object"&&(t.toString?t.toString():Object.prototype.toString.call(t))==="[object Object]"&&!yu.typeOf(t)},rv=Object.freeze([]),Fs=Object.freeze({});function zu(t){return typeof t=="function"}function cC(t){return t.displayName||t.name||"Component"}function fy(t){return t&&typeof t.styledComponentId=="string"}var hd=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",py=typeof window<"u"&&"HTMLElement"in window,Q9e=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY));function S0(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var J9e=function(){function t(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}var e=t.prototype;return e.indexOfGroup=function(r){for(var n=0,i=0;i<r;i++)n+=this.groupSizes[i];return n},e.insertRules=function(r,n){if(r>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;r>=a;)(a<<=1)<0&&S0(16,""+r);this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var s=o;s<a;s++)this.groupSizes[s]=0}for(var c=this.indexOfGroup(r+1),l=0,d=n.length;l<d;l++)this.tag.insertRule(c,n[l])&&(this.groupSizes[r]++,c++)},e.clearGroup=function(r){if(r<this.length){var n=this.groupSizes[r],i=this.indexOfGroup(r),o=i+n;this.groupSizes[r]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.getGroup=function(r){var n="";if(r>=this.length||this.groupSizes[r]===0)return n;for(var i=this.groupSizes[r],o=this.indexOfGroup(r),a=o+i,s=o;s<a;s++)n+=this.tag.getRule(s)+`/*!sc*/
1758
+ `}}}return o}(this)},t}(),C8e=/(a)(d)/gi,Pz=function(t){return String.fromCharCode(t+(t>25?39:97))};function k8(t){var e,r="";for(e=Math.abs(t);e>52;e=e/52|0)r=Pz(e%52)+r;return(Pz(e%52)+r).replace(C8e,"$1-$2")}var xl=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},KI=function(t){return xl(5381,t)};function k8e(t){for(var e=0;e<t.length;e+=1){var r=t[e];if(cd(r)&&!ay(r))return!1}return!0}var E8e=KI("5.3.9"),S8e=function(){function t(e,r,n){this.rules=e,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&k8e(e),this.componentId=r,this.baseHash=xl(E8e,r),this.baseStyle=n,GI.registerId(r)}return t.prototype.generateAndInjectStyles=function(e,r,n){var i=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,r,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(i,this.staticRulesId))o.push(this.staticRulesId);else{var a=dd(this.rules,e,r,n).join(""),s=k8(xl(this.baseHash,a)>>>0);if(!r.hasNameForId(i,s)){var c=n(a,"."+s,void 0,i);r.insertRules(i,s,c)}o.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,d=xl(this.baseHash,n.hash),h="",u=0;u<l;u++){var f=this.rules[u];if(typeof f=="string")h+=f;else if(f){var v=dd(f,e,r,n),p=Array.isArray(v)?v.join(""):v;d=xl(d,p+u),h+=p}}if(h){var _=k8(d>>>0);if(!r.hasNameForId(i,_)){var m=n(h,"."+_,void 0,i);r.insertRules(i,_,m)}o.push(_)}}return o.join(" ")},t}(),A8e=/^\s*\/\/.*$/gm,M8e=[":","[",".","#"];function $8e(t){var e,r,n,i,o=t===void 0?Ns:t,a=o.options,s=a===void 0?Ns:a,c=o.plugins,l=c===void 0?Qp:c,d=new iy(s),h=[],u=function(p){function _(m){if(m)try{p(m+"}")}catch{}}return function(m,g,b,w,x,C,S,M,T,I){switch(m){case 1:if(T===0&&g.charCodeAt(0)===64)return p(g+";"),"";break;case 2:if(M===0)return g+"/*|*/";break;case 3:switch(M){case 102:case 112:return p(b[0]+g),"";default:return g+(I===0?"/*|*/":"")}case-2:g.split("/*|*/}").forEach(_)}}}(function(p){h.push(p)}),f=function(p,_,m){return _===0&&M8e.indexOf(m[r.length])!==-1||m.match(i)?p:"."+e};function v(p,_,m,g){g===void 0&&(g="&");var b=p.replace(A8e,""),w=_&&m?m+" "+_+" { "+b+" }":b;return e=g,r=_,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),d(m||!_?"":_,w)}return d.use([].concat(l,[function(p,_,m){p===2&&m.length&&m[0].lastIndexOf(r)>0&&(m[0]=m[0].replace(n,f))},u,function(p){if(p===-2){var _=h;return h=[],_}}])),v.hash=l.length?l.reduce(function(p,_){return _.name||u1(15),xl(p,_.name)},5381).toString():"",v}var YI=dt.createContext();YI.Consumer;var XI=dt.createContext(),P8e=(XI.Consumer,new GI),E8=$8e();function I8e(){return y.useContext(YI)||P8e}function H8e(){return y.useContext(XI)||E8}var T8e=function(){function t(e,r){var n=this;this.inject=function(i,o){o===void 0&&(o=E8);var a=n.name+o.hash;i.hasNameForId(n.id,a)||i.insertRules(n.id,a,o(n.rules,a,"@keyframes"))},this.toString=function(){return u1(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=r}return t.prototype.getName=function(e){return e===void 0&&(e=E8),this.name+e.hash},t}(),R8e=/([A-Z])/,D8e=/([A-Z])/g,V8e=/^ms-/,L8e=function(t){return"-"+t.toLowerCase()};function Iz(t){return R8e.test(t)?t.replace(D8e,L8e).replace(V8e,"-ms-"):t}var Hz=function(t){return t==null||t===!1||t===""};function dd(t,e,r,n){if(Array.isArray(t)){for(var i,o=[],a=0,s=t.length;a<s;a+=1)(i=dd(t[a],e,r,n))!==""&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}if(Hz(t))return"";if(ay(t))return"."+t.styledComponentId;if(cd(t)){if(typeof(l=t)!="function"||l.prototype&&l.prototype.isReactComponent||!e)return t;var c=t(e);return dd(c,e,r,n)}var l;return t instanceof T8e?r?(t.inject(r,n),t.getName(n)):t:C8(t)?function d(h,u){var f,v,p=[];for(var _ in h)h.hasOwnProperty(_)&&!Hz(h[_])&&(Array.isArray(h[_])&&h[_].isCss||cd(h[_])?p.push(Iz(_)+":",h[_],";"):C8(h[_])?p.push.apply(p,d(h[_],_)):p.push(Iz(_)+": "+(f=_,(v=h[_])==null||typeof v=="boolean"||v===""?"":typeof v!="number"||v===0||f in oy?String(v).trim():v+"px")+";"));return u?[u+" {"].concat(p,["}"]):p}(t):t.toString()}var Tz=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function Na(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return cd(t)||C8(t)?Tz(dd(Az(Qp,[t].concat(r)))):r.length===0&&t.length===1&&typeof t[0]=="string"?t:Tz(dd(Az(t,r)))}var O8e=function(t,e,r){return r===void 0&&(r=Ns),t.theme!==r.theme&&t.theme||e||r.theme},N8e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,F8e=/(^-|-$)/g;function b3(t){return t.replace(N8e,"-").replace(F8e,"")}var B8e=function(t){return k8(KI(t)>>>0)};function zf(t){return typeof t=="string"&&!0}var S8=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},U8e=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function j8e(t,e,r){var n=t[r];S8(e)&&S8(n)?QI(n,e):t[r]=e}function QI(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(S8(a))for(var s in a)U8e(s)&&j8e(t,a[s],s)}return t}var Zp=dt.createContext();Zp.Consumer;function JI(t){var e=y.useContext(Zp),r=y.useMemo(function(){return function(n,i){if(!n)return u1(14);if(cd(n)){var o=n(i);return o}return Array.isArray(n)||typeof n!="object"?u1(8):i?Qo({},i,{},n):n}(t.theme,e)},[t.theme,e]);return t.children?dt.createElement(Zp.Provider,{value:r},t.children):null}var w3={};function ZI(t,e,r){var n=ay(t),i=!zf(t),o=e.attrs,a=o===void 0?Qp:o,s=e.componentId,c=s===void 0?function(g,b){var w=typeof g!="string"?"sc":b3(g);w3[w]=(w3[w]||0)+1;var x=w+"-"+B8e("5.3.9"+w+w3[w]);return b?b+"-"+x:x}(e.displayName,e.parentComponentId):s,l=e.displayName,d=l===void 0?function(g){return zf(g)?"styled."+g:"Styled("+Mz(g)+")"}(t):l,h=e.displayName&&e.componentId?b3(e.displayName)+"-"+e.componentId:e.componentId||c,u=n&&t.attrs?Array.prototype.concat(t.attrs,a).filter(Boolean):a,f=e.shouldForwardProp;n&&t.shouldForwardProp&&(f=e.shouldForwardProp?function(g,b,w){return t.shouldForwardProp(g,b,w)&&e.shouldForwardProp(g,b,w)}:t.shouldForwardProp);var v,p=new S8e(r,h,n?t.componentStyle:void 0),_=p.isStatic&&a.length===0,m=function(g,b){return function(w,x,C,S){var M=w.attrs,T=w.componentStyle,I=w.defaultProps,N=w.foldedComponentIds,U=w.shouldForwardProp,Y=w.styledComponentId,H=w.target,L=function(ie,P,Z){ie===void 0&&(ie=Ns);var R=Qo({},P,{theme:ie}),de={};return Z.forEach(function(he){var ge,ve,Be,De=he;for(ge in cd(De)&&(De=De(R)),De)R[ge]=de[ge]=ge==="className"?(ve=de[ge],Be=De[ge],ve&&Be?ve+" "+Be:ve||Be):De[ge]}),[R,de]}(O8e(x,y.useContext(Zp),I)||Ns,x,M),ee=L[0],ae=L[1],A=function(ie,P,Z,R){var de=I8e(),he=H8e(),ge=P?ie.generateAndInjectStyles(Ns,de,he):ie.generateAndInjectStyles(Z,de,he);return ge}(T,S,ee),B=C,O=ae.$as||x.$as||ae.as||x.as||H,Q=zf(O),W=ae!==x?Qo({},x,{},ae):x,G={};for(var X in W)X[0]!=="$"&&X!=="as"&&(X==="forwardedAs"?G.as=W[X]:(U?U(X,Xs,O):!Q||Xs(X))&&(G[X]=W[X]));return x.style&&ae.style!==x.style&&(G.style=Qo({},x.style,{},ae.style)),G.className=Array.prototype.concat(N,Y,A!==Y?A:null,x.className,ae.className).filter(Boolean).join(" "),G.ref=B,y.createElement(O,G)}(v,g,b,_)};return m.displayName=d,(v=dt.forwardRef(m)).attrs=u,v.componentStyle=p,v.displayName=d,v.shouldForwardProp=f,v.foldedComponentIds=n?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):Qp,v.styledComponentId=h,v.target=n?t.target:t,v.withComponent=function(g){var b=e.componentId,w=function(C,S){if(C==null)return{};var M,T,I={},N=Object.keys(C);for(T=0;T<N.length;T++)M=N[T],S.indexOf(M)>=0||(I[M]=C[M]);return I}(e,["componentId"]),x=b&&b+"-"+(zf(g)?g:b3(Mz(g)));return ZI(g,Qo({},w,{attrs:u,componentId:x}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(g){this._foldedDefaultProps=n?QI({},t.defaultProps,g):g}}),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),i&&j7(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var A8=function(t){return function e(r,n,i){if(i===void 0&&(i=Ns),!Xp.isValidElementType(n))return u1(1,String(n));var o=function(){return r(n,i,Na.apply(void 0,arguments))};return o.withConfig=function(a){return e(r,n,Qo({},i,{},a))},o.attrs=function(a){return e(r,n,Qo({},i,{attrs:Array.prototype.concat(i.attrs,a).filter(Boolean)}))},o}(ZI,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){A8[t]=A8(t)});const Qr=A8;var q8e={jumbo__base:"88px",default__base:"48px",default__input:"56px",compact__standard:"32px",compact__input:"44px"},W8e={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_ui_background__default, rgba(255, 255, 255, 1))"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_ui_background__light, rgba(247, 247, 247, 1))"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_ui_background__medium, rgba(220, 220, 220, 1))"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_ui_background__info, rgba(213, 234, 244, 1))"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_ui_background__warning, rgba(255, 231, 214, 1))"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_ui_background__danger, rgba(255, 193, 193, 1))"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__text, rgba(53, 129, 50, 1))"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive__focus, rgba(0, 112, 121, 1))"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))"}}},G8e={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)"},K8e={_modes:{compact:{pressed_dark_overlay:{blendMode:"pass_through",pressedColor:"transparent"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 1)"}}},pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},Y8e={_modes:{compact:{rounded:{minHeight:"24px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"32px",minWidth:"32px",borderRadius:"100px"},straight:{minHeight:"24px",minWidth:"112px",borderRadius:""},toggle_rounded_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},toggle_straight_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},circle:{minHeight:"24px",minWidth:"24px",borderRadius:"100px"}}},toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},X8e={heading:{h1_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},h1:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h2:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h3:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.250em",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"},menu_title_hover:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"}},input:{label:{color:"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"}},_modes:{compact:{table:{cell_header:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},cell_text_bold:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text_link:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",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"}}},Q8e={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"}},J={clickbounds:q8e,colors:W8e,elevation:G8e,interactions:K8e,shape:Y8e,typography:X8e,spacings:Q8e},x3=J.typography.navigation.button,cy=J.colors.interactive,J8e=cy.disabled__text.rgba,Z8e=cy.disabled__border.rgba,e9e=cy.disabled__fill.rgba,Rz=J.spacings.comfortable.medium,eH=J.shape,tH=eH.button,Dz=tH.minHeight,Vz=tH.borderRadius,Lz=eH._modes.compact.button.minHeight,Oz=J.interactions.focused,rH=J.clickbounds,Nz=rH.default__base,Fz=rH.compact__standard,A5={background:"transparent",height:"var(--eds_button__height, ".concat(Dz,")"),typography:Pe(Pe({},x3),{},{textAlign:"center",fontSize:"var(--eds_button__font_size, ".concat(x3.fontSize,")")}),border:{type:"border",width:"var(--eds_button__border_width, 1px)",color:"transparent",radius:"var(--eds_button__radius, ".concat(Vz,")"),style:"solid"},spacings:{top:"var(--eds_button__padding_y, 0)",bottom:"var(--eds_button__padding_y, 0)",left:"var(--eds_button__padding_x, ".concat(Rz,")"),right:"var(--eds_button__padding_x, ".concat(Rz,")")},clickbound:{height:Nz,width:"100%",offset:{top:"".concat((parseInt(Nz)-parseInt(Dz))/2+1,"px"),left:"0"}},entities:{icon:{height:"var(--eds_button__icon__size, 24px)",width:"var(--eds_button__icon__size, 24px)"}},states:{hover:{border:{type:"border",width:"1px",color:"transparent",radius:"var(--eds_button__radius, ".concat(Vz,")"),style:"solid"}},focus:{outline:{type:"outline",offset:"3px",style:"dashed",color:Oz.color,width:Oz.width}},disabled:{background:e9e,border:{type:"border",width:"1px",color:Z8e,style:"solid"},typography:Pe(Pe({},x3),{},{color:J8e,textAlign:"center"})}},modes:{compact:{height:"var(--eds_button__height_compact, ".concat(Lz,")"),spacings:{top:"var(--eds_button__padding_y_compact, 0)",bottom:"var(--eds_button__padding_y_compact, 0)"},clickbound:{height:Fz,width:"100%",offset:{top:"".concat((parseInt(Fz)-parseInt(Lz))/2+1,"px"),left:"0"}}}}};function er(t){return t!=null&&h1(t)==="object"&&t["@@functional/placeholder"]===!0}function Kc(t){return function e(r){return arguments.length===0||er(r)?e:t.apply(this,arguments)}}function Vc(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return er(r)?e:Kc(function(i){return t(r,i)});default:return er(r)&&er(n)?e:er(r)?Kc(function(i){return t(i,n)}):er(n)?Kc(function(i){return t(r,i)}):t(r,n)}}}function nH(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return er(r)?e:Vc(function(o,a){return t(r,o,a)});case 2:return er(r)&&er(n)?e:er(r)?Vc(function(o,a){return t(o,n,a)}):er(n)?Vc(function(o,a){return t(r,o,a)}):Kc(function(o){return t(r,n,o)});default:return er(r)&&er(n)&&er(i)?e:er(r)&&er(n)?Vc(function(o,a){return t(o,a,i)}):er(r)&&er(i)?Vc(function(o,a){return t(o,n,a)}):er(n)&&er(i)?Vc(function(o,a){return t(r,o,a)}):er(r)?Kc(function(o){return t(o,n,i)}):er(n)?Kc(function(o){return t(r,o,i)}):er(i)?Kc(function(o){return t(r,n,o)}):t(r,n,i)}}}function Bz(t){return Object.prototype.toString.call(t)==="[object Object]"}function Cf(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var t9e=nH(function(e,r,n){var i={},o;for(o in r)Cf(o,r)&&(i[o]=Cf(o,n)?e(o,r[o],n[o]):r[o]);for(o in n)Cf(o,n)&&!Cf(o,i)&&(i[o]=n[o]);return i}),r9e=nH(function t(e,r,n){return t9e(function(i,o,a){return Bz(o)&&Bz(a)?t(e,o,a):e(i,o,a)},r,n)}),n9e=Vc(function(e,r){return r9e(function(n,i,o){return o},e,r)}),Gn=n9e,iH=J.colors,i9e=iH.text.static_icons__primary_white.rgba,Jd=iH.interactive,Uz=Jd.primary__resting.rgba,o9e=Jd.primary__hover.rgba,jz=Jd.secondary__resting.rgba,qz=Jd.secondary__link_hover.rgba,Wz=Jd.danger__resting.rgba,Gz=Jd.danger__hover.rgba,a9e=J.shape.button.borderRadius,M5=Gn(A5,{background:Uz,typography:{color:i9e},border:{type:"border",style:"solid",width:"1px",color:Uz,radius:"var(--eds_button__radius, ".concat(a9e,")")},states:{hover:{background:o9e}}}),oH=Gn(M5,{background:jz,border:{color:jz},states:{hover:{background:qz,border:{color:qz}}}}),aH=Gn(M5,{background:Wz,border:{color:Wz},states:{hover:{background:Gz,border:{color:Gz}}}}),Za=J.colors.interactive,Kz=Za.primary__resting.rgba,Yz=Za.primary__hover.rgba,s9e=Za.primary__hover_alt.rgba,Xz=Za.secondary__resting.rgba,Qz=Za.secondary__link_hover.rgba,c9e=Za.secondary__highlight.rgba,Jz=Za.danger__resting.rgba,Zz=Za.danger__hover.rgba,l9e=Za.danger__highlight.rgba,d9e=J.shape.button.borderRadius,ly=Gn(A5,{typography:{color:Kz},border:{type:"border",style:"solid",width:"1px",color:Kz,radius:"var(--eds_button__radius, ".concat(d9e,")")},states:{hover:{typography:{color:Yz},background:s9e,border:{style:"solid",type:"border",width:"1px",color:Yz}},disabled:{background:"transparent"}}}),h9e=Gn(ly,{typography:{color:Xz},border:{color:Xz},states:{hover:{background:c9e,typography:{color:Qz},border:{color:Qz}}}}),u9e=Gn(ly,{typography:{color:Jz},border:{color:Jz},states:{hover:{background:l9e,typography:{color:Zz},border:{color:Zz}}}}),es=J.colors.interactive,f9e=es.primary__resting.rgba,p9e=es.primary__hover.rgba,v9e=es.primary__hover_alt.rgba,m9e=es.secondary__resting.rgba,g9e=es.secondary__link_hover.rgba,y9e=es.secondary__highlight.rgba,_9e=es.danger__resting.rgba,b9e=es.danger__hover.rgba,w9e=es.danger__highlight.rgba,dy=Gn(A5,{typography:{color:f9e},states:{hover:{background:v9e,typography:{color:p9e}},disabled:{background:"transparent",border:{color:"transparent"}}}}),x9e=Gn(dy,{typography:{color:m9e},states:{hover:{background:y9e,typography:{color:g9e}}}}),z9e=Gn(dy,{typography:{color:_9e},states:{hover:{background:w9e,typography:{color:b9e}}}}),lc=J.colors.interactive,C9e=lc.primary__resting.rgba,k9e=lc.primary__hover_alt.rgba,E9e=lc.secondary__resting.rgba,S9e=lc.secondary__link_hover.rgba,A9e=lc.secondary__highlight.rgba,M9e=lc.danger__resting.rgba,$9e=lc.danger__hover.rgba,P9e=lc.danger__highlight.rgba,sH=J.clickbounds,eC=sH.default__base,tC=sH.compact__standard,L1=J.shape,I9e=J.interactions.focused.width,hy=Gn(A5,{height:L1.icon_button.minHeight,width:L1.icon_button.minWidth,typography:{color:C9e},border:{width:"0px",radius:"50%"},background:"transparent",spacings:{left:"0",right:"0"},clickbound:{width:eC,offset:{top:"0",left:"".concat((parseInt(eC)-parseInt(L1.icon_button.minWidth))/2,"px")}},states:{hover:{background:k9e,border:{width:"0px",radius:"50%"}},disabled:{background:"transparent",border:{color:"transparent"}},focus:{outline:{offset:"-".concat(parseInt(I9e),"px")}}},modes:{compact:{height:L1._modes.compact.icon_button.minHeight,width:L1._modes.compact.icon_button.minWidth,clickbound:{width:tC,offset:{top:"0",left:"".concat((parseInt(tC)-parseInt(L1._modes.compact.icon_button.minWidth))/2,"px")}}}}}),H9e=Gn(hy,{typography:{color:E9e},states:{hover:{background:A9e,typography:{color:S9e}}}}),T9e=Gn(hy,{typography:{color:M9e},states:{hover:{background:P9e,typography:{color:$9e}}}}),cH=J.clickbounds,rC=cH.default__base,nC=cH.compact__standard,E2=J.shape,uy={height:E2.icon_button.minHeight,width:E2.icon_button.minWidth,border:{width:"0px",radius:"50%"},spacings:{left:"0",right:"0"},clickbound:{width:rC,offset:{top:"0",left:"".concat((parseInt(rC)-parseInt("40px"))/2,"px")}},states:{hover:{border:{width:"0px",radius:"50%"}}},modes:{compact:{height:E2._modes.compact.icon_button.minHeight,width:E2._modes.compact.icon_button.minWidth,clickbound:{width:nC,offset:{top:"0",left:"".concat((parseInt(nC)-parseInt(E2._modes.compact.icon_button.minWidth))/2,"px")}}}}},R9e=Gn(M5,uy),D9e=Gn(oH,uy),V9e=Gn(aH,uy),z3={primary:{contained:M5,outlined:ly,ghost:dy,ghost_icon:hy,contained_icon:R9e},secondary:{contained:oH,outlined:h9e,ghost:x9e,ghost_icon:H9e,contained_icon:D9e},danger:{contained:aH,outlined:u9e,ghost:z9e,ghost_icon:T9e,contained_icon:V9e}},L9e=function(e,r){y.useEffect(function(){var n=function(o){e&&!e.contains(o.target)&&r(o)};return document.addEventListener("click",n),function(){document.removeEventListener("click",n)}},[e,r])},iC;(function(t){t.Escape="Escape",t.Enter="Enter",t.Tab="Tab",t.ArrowDown="ArrowDown",t.ArrowUp="ArrowUp"})(iC||(iC={}));var ev=function(e,r){y.useEffect(function(){var n=function(o){var a=o.key;switch(a){case e:r(o);break}};return document.addEventListener("keydown",n,!0),function(){document.removeEventListener("keydown",n,!0)}},[e,r])};function O9e(t){if(Array.isArray(t))return t}function N9e(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function oC(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function F9e(t,e){if(t){if(typeof t=="string")return oC(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oC(t,e)}}function B9e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1759
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U9e(t,e){return O9e(t)||N9e(t,e)||F9e(t,e)||B9e()}var j9e=function(e,r){var n=y.useState(e),i=U9e(n,2),o=i[0],a=i[1],s=e||o;return y.useEffect(function(){o==null&&a("eds-".concat(r?r+"-":"").concat(Math.round(Math.random()*1e5)))},[o,r]),s},q9e=function(e,r){y.useEffect(function(){var n=function(){e.style.height="auto";var o=e.scrollHeight,a=e.clientHeight,s=a;r>s&&(s=Math.min(r,Math.max(o,s)),o>r?e.style.overflow="auto":e.style.overflow="hidden",s>a&&(e.style.height="".concat(s,"px")))};return e&&r&&(n(),e.addEventListener("keyup",n,!0)),function(){e==null||e.removeEventListener("keyup",n,!0)}},[e,r])},lH=typeof window<"u"?y.useLayoutEffect:y.useEffect;function tv(t){return tv=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},tv(t)}function tr(t){return t!=null&&tv(t)==="object"&&t["@@functional/placeholder"]===!0}function Yc(t){return function e(r){return arguments.length===0||tr(r)?e:t.apply(this,arguments)}}function Lc(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return tr(r)?e:Yc(function(i){return t(r,i)});default:return tr(r)&&tr(n)?e:tr(r)?Yc(function(i){return t(i,n)}):tr(n)?Yc(function(i){return t(r,i)}):t(r,n)}}}function dH(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return tr(r)?e:Lc(function(o,a){return t(r,o,a)});case 2:return tr(r)&&tr(n)?e:tr(r)?Lc(function(o,a){return t(o,n,a)}):tr(n)?Lc(function(o,a){return t(r,o,a)}):Yc(function(o){return t(r,n,o)});default:return tr(r)&&tr(n)&&tr(i)?e:tr(r)&&tr(n)?Lc(function(o,a){return t(o,a,i)}):tr(r)&&tr(i)?Lc(function(o,a){return t(o,n,a)}):tr(n)&&tr(i)?Lc(function(o,a){return t(r,o,a)}):tr(r)?Yc(function(o){return t(o,n,i)}):tr(n)?Yc(function(o){return t(r,o,i)}):tr(i)?Yc(function(o){return t(r,n,o)}):t(r,n,i)}}}function aC(t){return Object.prototype.toString.call(t)==="[object Object]"}function kf(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var W9e=dH(function(e,r,n){var i={},o;for(o in r)kf(o,r)&&(i[o]=kf(o,n)?e(o,r[o],n[o]):r[o]);for(o in n)kf(o,n)&&!kf(o,i)&&(i[o]=n[o]);return i}),G9e=dH(function t(e,r,n){return W9e(function(i,o,a){return aC(o)&&aC(a)?t(e,o,a):e(i,o,a)},r,n)}),K9e=Lc(function(e,r){return G9e(function(n,i,o){return o},e,r)}),Y9e=K9e,ha=function(e,r){return y.useCallback(function(){var n=e.density;return n==="compact"?Y9e(r,r.modes.compact):r},[e,r])},Ao=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(i){return r.forEach(function(o){typeof o=="function"?o(i):o&&tv(o)==="object"&&(o.current=i)})}},X9e=function(e,r){var n=e.value;e.value=r;var i=e._valueTracker;typeof i<"u"&&i.setValue(n),e.dispatchEvent(new Event("change",{bubbles:!0}))};function Ia(){return(Ia=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var sC=function(t,e){for(var r=[t[0]],n=0,i=e.length;n<i;n+=1)r.push(e[n],t[n+1]);return r},M8=function(t){return t!==null&&typeof t=="object"&&(t.toString?t.toString():Object.prototype.toString.call(t))==="[object Object]"&&!yu.typeOf(t)},rv=Object.freeze([]),Fs=Object.freeze({});function zu(t){return typeof t=="function"}function cC(t){return t.displayName||t.name||"Component"}function fy(t){return t&&typeof t.styledComponentId=="string"}var hd=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",py=typeof window<"u"&&"HTMLElement"in window,Q9e=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY));function S0(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var J9e=function(){function t(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}var e=t.prototype;return e.indexOfGroup=function(r){for(var n=0,i=0;i<r;i++)n+=this.groupSizes[i];return n},e.insertRules=function(r,n){if(r>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;r>=a;)(a<<=1)<0&&S0(16,""+r);this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var s=o;s<a;s++)this.groupSizes[s]=0}for(var c=this.indexOfGroup(r+1),l=0,d=n.length;l<d;l++)this.tag.insertRule(c,n[l])&&(this.groupSizes[r]++,c++)},e.clearGroup=function(r){if(r<this.length){var n=this.groupSizes[r],i=this.indexOfGroup(r),o=i+n;this.groupSizes[r]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.getGroup=function(r){var n="";if(r>=this.length||this.groupSizes[r]===0)return n;for(var i=this.groupSizes[r],o=this.indexOfGroup(r),a=o+i,s=o;s<a;s++)n+=this.tag.getRule(s)+`/*!sc*/
1760
1760
  `;return n},t}(),T4=new Map,nv=new Map,Ph=1,Ef=function(t){if(T4.has(t))return T4.get(t);for(;nv.has(Ph);)Ph++;var e=Ph++;return T4.set(t,e),nv.set(e,t),e},Z9e=function(t){return nv.get(t)},e7e=function(t,e){e>=Ph&&(Ph=e+1),T4.set(t,e),nv.set(e,t)},t7e="style["+hd+'][data-styled-version="5.3.9"]',r7e=new RegExp("^"+hd+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),n7e=function(t,e,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&t.registerName(e,n)},i7e=function(t,e){for(var r=(e.textContent||"").split(`/*!sc*/
1761
1761
  `),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(r7e);if(s){var c=0|parseInt(s[1],10),l=s[2];c!==0&&(e7e(l,c),n7e(t,l,s[3]),t.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},o7e=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},hH=function(t){var e=document.head,r=t||e,n=document.createElement("style"),i=function(s){for(var c=s.childNodes,l=c.length;l>=0;l--){var d=c[l];if(d&&d.nodeType===1&&d.hasAttribute(hd))return d}}(r),o=i!==void 0?i.nextSibling:null;n.setAttribute(hd,"active"),n.setAttribute("data-styled-version","5.3.9");var a=o7e();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},a7e=function(){function t(r){var n=this.element=hH(r);n.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,a=0,s=o.length;a<s;a++){var c=o[a];if(c.ownerNode===i)return c}S0(17)}(n),this.length=0}var e=t.prototype;return e.insertRule=function(r,n){try{return this.sheet.insertRule(n,r),this.length++,!0}catch{return!1}},e.deleteRule=function(r){this.sheet.deleteRule(r),this.length--},e.getRule=function(r){var n=this.sheet.cssRules[r];return n!==void 0&&typeof n.cssText=="string"?n.cssText:""},t}(),s7e=function(){function t(r){var n=this.element=hH(r);this.nodes=n.childNodes,this.length=0}var e=t.prototype;return e.insertRule=function(r,n){if(r<=this.length&&r>=0){var i=document.createTextNode(n),o=this.nodes[r];return this.element.insertBefore(i,o||null),this.length++,!0}return!1},e.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},e.getRule=function(r){return r<this.length?this.nodes[r].textContent:""},t}(),c7e=function(){function t(r){this.rules=[],this.length=0}var e=t.prototype;return e.insertRule=function(r,n){return r<=this.length&&(this.rules.splice(r,0,n),this.length++,!0)},e.deleteRule=function(r){this.rules.splice(r,1),this.length--},e.getRule=function(r){return r<this.length?this.rules[r]:""},t}(),lC=py,l7e={isServer:!py,useCSSOMInjection:!Q9e},uH=function(){function t(r,n,i){r===void 0&&(r=Fs),n===void 0&&(n={}),this.options=Ia({},l7e,{},r),this.gs=n,this.names=new Map(i),this.server=!!r.isServer,!this.server&&py&&lC&&(lC=!1,function(o){for(var a=document.querySelectorAll(t7e),s=0,c=a.length;s<c;s++){var l=a[s];l&&l.getAttribute(hd)!=="active"&&(i7e(o,l),l.parentNode&&l.parentNode.removeChild(l))}}(this))}t.registerId=function(r){return Ef(r)};var e=t.prototype;return e.reconstructWithOptions=function(r,n){return n===void 0&&(n=!0),new t(Ia({},this.options,{},r),this.gs,n&&this.names||void 0)},e.allocateGSInstance=function(r){return this.gs[r]=(this.gs[r]||0)+1},e.getTag=function(){return this.tag||(this.tag=(i=(n=this.options).isServer,o=n.useCSSOMInjection,a=n.target,r=i?new c7e(a):o?new a7e(a):new s7e(a),new J9e(r)));var r,n,i,o,a},e.hasNameForId=function(r,n){return this.names.has(r)&&this.names.get(r).has(n)},e.registerName=function(r,n){if(Ef(r),this.names.has(r))this.names.get(r).add(n);else{var i=new Set;i.add(n),this.names.set(r,i)}},e.insertRules=function(r,n,i){this.registerName(r,n),this.getTag().insertRules(Ef(r),i)},e.clearNames=function(r){this.names.has(r)&&this.names.get(r).clear()},e.clearRules=function(r){this.getTag().clearGroup(Ef(r)),this.clearNames(r)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(r){for(var n=r.getTag(),i=n.length,o="",a=0;a<i;a++){var s=Z9e(a);if(s!==void 0){var c=r.names.get(s),l=n.getGroup(a);if(c&&l&&c.size){var d=hd+".g"+a+'[id="'+s+'"]',h="";c!==void 0&&c.forEach(function(u){u.length>0&&(h+=u+",")}),o+=""+l+d+'{content:"'+h+`"}/*!sc*/
1762
1762
  `}}}return o}(this)},t}(),d7e=/(a)(d)/gi,dC=function(t){return String.fromCharCode(t+(t>25?39:97))};function $8(t){var e,r="";for(e=Math.abs(t);e>52;e=e/52|0)r=dC(e%52)+r;return(dC(e%52)+r).replace(d7e,"$1-$2")}var zl=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},fH=function(t){return zl(5381,t)};function h7e(t){for(var e=0;e<t.length;e+=1){var r=t[e];if(zu(r)&&!fy(r))return!1}return!0}var u7e=fH("5.3.9"),f7e=function(){function t(e,r,n){this.rules=e,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&h7e(e),this.componentId=r,this.baseHash=zl(u7e,r),this.baseStyle=n,uH.registerId(r)}return t.prototype.generateAndInjectStyles=function(e,r,n){var i=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,r,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(i,this.staticRulesId))o.push(this.staticRulesId);else{var a=ud(this.rules,e,r,n).join(""),s=$8(zl(this.baseHash,a)>>>0);if(!r.hasNameForId(i,s)){var c=n(a,"."+s,void 0,i);r.insertRules(i,s,c)}o.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,d=zl(this.baseHash,n.hash),h="",u=0;u<l;u++){var f=this.rules[u];if(typeof f=="string")h+=f;else if(f){var v=ud(f,e,r,n),p=Array.isArray(v)?v.join(""):v;d=zl(d,p+u),h+=p}}if(h){var _=$8(d>>>0);if(!r.hasNameForId(i,_)){var m=n(h,"."+_,void 0,i);r.insertRules(i,_,m)}o.push(_)}}return o.join(" ")},t}(),p7e=/^\s*\/\/.*$/gm,v7e=[":","[",".","#"];function m7e(t){var e,r,n,i,o=t===void 0?Fs:t,a=o.options,s=a===void 0?Fs:a,c=o.plugins,l=c===void 0?rv:c,d=new iy(s),h=[],u=function(p){function _(m){if(m)try{p(m+"}")}catch{}}return function(m,g,b,w,x,C,S,M,T,I){switch(m){case 1:if(T===0&&g.charCodeAt(0)===64)return p(g+";"),"";break;case 2:if(M===0)return g+"/*|*/";break;case 3:switch(M){case 102:case 112:return p(b[0]+g),"";default:return g+(I===0?"/*|*/":"")}case-2:g.split("/*|*/}").forEach(_)}}}(function(p){h.push(p)}),f=function(p,_,m){return _===0&&v7e.indexOf(m[r.length])!==-1||m.match(i)?p:"."+e};function v(p,_,m,g){g===void 0&&(g="&");var b=p.replace(p7e,""),w=_&&m?m+" "+_+" { "+b+" }":b;return e=g,r=_,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),d(m||!_?"":_,w)}return d.use([].concat(l,[function(p,_,m){p===2&&m.length&&m[0].lastIndexOf(r)>0&&(m[0]=m[0].replace(n,f))},u,function(p){if(p===-2){var _=h;return h=[],_}}])),v.hash=l.length?l.reduce(function(p,_){return _.name||S0(15),zl(p,_.name)},5381).toString():"",v}var pH=dt.createContext();pH.Consumer;var vH=dt.createContext(),g7e=(vH.Consumer,new uH),P8=m7e();function y7e(){return y.useContext(pH)||g7e}function _7e(){return y.useContext(vH)||P8}var b7e=function(){function t(e,r){var n=this;this.inject=function(i,o){o===void 0&&(o=P8);var a=n.name+o.hash;i.hasNameForId(n.id,a)||i.insertRules(n.id,a,o(n.rules,a,"@keyframes"))},this.toString=function(){return S0(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=r}return t.prototype.getName=function(e){return e===void 0&&(e=P8),this.name+e.hash},t}(),w7e=/([A-Z])/,x7e=/([A-Z])/g,z7e=/^ms-/,C7e=function(t){return"-"+t.toLowerCase()};function hC(t){return w7e.test(t)?t.replace(x7e,C7e).replace(z7e,"-ms-"):t}var uC=function(t){return t==null||t===!1||t===""};function ud(t,e,r,n){if(Array.isArray(t)){for(var i,o=[],a=0,s=t.length;a<s;a+=1)(i=ud(t[a],e,r,n))!==""&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}if(uC(t))return"";if(fy(t))return"."+t.styledComponentId;if(zu(t)){if(typeof(l=t)!="function"||l.prototype&&l.prototype.isReactComponent||!e)return t;var c=t(e);return ud(c,e,r,n)}var l;return t instanceof b7e?r?(t.inject(r,n),t.getName(n)):t:M8(t)?function d(h,u){var f,v,p=[];for(var _ in h)h.hasOwnProperty(_)&&!uC(h[_])&&(Array.isArray(h[_])&&h[_].isCss||zu(h[_])?p.push(hC(_)+":",h[_],";"):M8(h[_])?p.push.apply(p,d(h[_],_)):p.push(hC(_)+": "+(f=_,(v=h[_])==null||typeof v=="boolean"||v===""?"":typeof v!="number"||v===0||f in oy?String(v).trim():v+"px")+";"));return u?[u+" {"].concat(p,["}"]):p}(t):t.toString()}var fC=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function Xc(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return zu(t)||M8(t)?fC(ud(sC(rv,[t].concat(r)))):r.length===0&&t.length===1&&typeof t[0]=="string"?t:fC(ud(sC(t,r)))}var k7e=function(t,e,r){return r===void 0&&(r=Fs),t.theme!==r.theme&&t.theme||e||r.theme},E7e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,S7e=/(^-|-$)/g;function C3(t){return t.replace(E7e,"-").replace(S7e,"")}var A7e=function(t){return $8(fH(t)>>>0)};function Sf(t){return typeof t=="string"&&!0}var I8=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},M7e=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function $7e(t,e,r){var n=t[r];I8(e)&&I8(n)?mH(n,e):t[r]=e}function mH(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(I8(a))for(var s in a)M7e(s)&&$7e(t,a[s],s)}return t}var gH=dt.createContext();gH.Consumer;var k3={};function yH(t,e,r){var n=fy(t),i=!Sf(t),o=e.attrs,a=o===void 0?rv:o,s=e.componentId,c=s===void 0?function(g,b){var w=typeof g!="string"?"sc":C3(g);k3[w]=(k3[w]||0)+1;var x=w+"-"+A7e("5.3.9"+w+k3[w]);return b?b+"-"+x:x}(e.displayName,e.parentComponentId):s,l=e.displayName,d=l===void 0?function(g){return Sf(g)?"styled."+g:"Styled("+cC(g)+")"}(t):l,h=e.displayName&&e.componentId?C3(e.displayName)+"-"+e.componentId:e.componentId||c,u=n&&t.attrs?Array.prototype.concat(t.attrs,a).filter(Boolean):a,f=e.shouldForwardProp;n&&t.shouldForwardProp&&(f=e.shouldForwardProp?function(g,b,w){return t.shouldForwardProp(g,b,w)&&e.shouldForwardProp(g,b,w)}:t.shouldForwardProp);var v,p=new f7e(r,h,n?t.componentStyle:void 0),_=p.isStatic&&a.length===0,m=function(g,b){return function(w,x,C,S){var M=w.attrs,T=w.componentStyle,I=w.defaultProps,N=w.foldedComponentIds,U=w.shouldForwardProp,Y=w.styledComponentId,H=w.target,L=function(ie,P,Z){ie===void 0&&(ie=Fs);var R=Ia({},P,{theme:ie}),de={};return Z.forEach(function(he){var ge,ve,Be,De=he;for(ge in zu(De)&&(De=De(R)),De)R[ge]=de[ge]=ge==="className"?(ve=de[ge],Be=De[ge],ve&&Be?ve+" "+Be:ve||Be):De[ge]}),[R,de]}(k7e(x,y.useContext(gH),I)||Fs,x,M),ee=L[0],ae=L[1],A=function(ie,P,Z,R){var de=y7e(),he=_7e(),ge=P?ie.generateAndInjectStyles(Fs,de,he):ie.generateAndInjectStyles(Z,de,he);return ge}(T,S,ee),B=C,O=ae.$as||x.$as||ae.as||x.as||H,Q=Sf(O),W=ae!==x?Ia({},x,{},ae):x,G={};for(var X in W)X[0]!=="$"&&X!=="as"&&(X==="forwardedAs"?G.as=W[X]:(U?U(X,Xs,O):!Q||Xs(X))&&(G[X]=W[X]));return x.style&&ae.style!==x.style&&(G.style=Ia({},x.style,{},ae.style)),G.className=Array.prototype.concat(N,Y,A!==Y?A:null,x.className,ae.className).filter(Boolean).join(" "),G.ref=B,y.createElement(O,G)}(v,g,b,_)};return m.displayName=d,(v=dt.forwardRef(m)).attrs=u,v.componentStyle=p,v.displayName=d,v.shouldForwardProp=f,v.foldedComponentIds=n?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):rv,v.styledComponentId=h,v.target=n?t.target:t,v.withComponent=function(g){var b=e.componentId,w=function(C,S){if(C==null)return{};var M,T,I={},N=Object.keys(C);for(T=0;T<N.length;T++)M=N[T],S.indexOf(M)>=0||(I[M]=C[M]);return I}(e,["componentId"]),x=b&&b+"-"+(Sf(g)?g:C3(cC(g)));return yH(g,Ia({},w,{attrs:u,componentId:x}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(g){this._foldedDefaultProps=n?mH({},t.defaultProps,g):g}}),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),i&&j7(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var pC=function(t){return function e(r,n,i){if(i===void 0&&(i=Fs),!yu.isValidElementType(n))return S0(1,String(n));var o=function(){return r(n,i,Xc.apply(void 0,arguments))};return o.withConfig=function(a){return e(r,n,Ia({},i,{},a))},o.attrs=function(a){return e(r,n,Ia({},i,{attrs:Array.prototype.concat(i.attrs,a).filter(Boolean)}))},o}(yH,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){pC[t]=pC(t)});var tl=function(e){if(e){var r=e.width,n=r===void 0?"":r,i=e.style,o=i===void 0?"":i,a=e.color,s=a===void 0?"":a;return n?"".concat(n," ").concat(o," ").concat(s):null}},xi=function(e){var r,n,i,o;if(!e)return Xc({});switch(e.type){case"border":return Xc({border:tl(e),borderRadius:e.radius});case"bordergroup":return Xc({borderBottom:tl(e.bottom),borderTop:tl(e.top),borderLeft:tl(e.left),borderRight:tl(e.right),borderBottomLeftRadius:e==null||(r=e.left)===null||r===void 0?void 0:r.radius,borderTopLeftRadius:e==null||(n=e.left)===null||n===void 0?void 0:n.radius,borderBottomRightRadius:e==null||(i=e.right)===null||i===void 0?void 0:i.radius,borderTopRightRadius:e==null||(o=e.right)===null||o===void 0?void 0:o.radius});default:return Xc({})}},P7e=J.colors.interactive.focus.rgba,Ai=function(e){var r=e.color,n=r===void 0?P7e:r,i=e.style,o=i===void 0?"dashed":i,a=e.width,s=a===void 0?"2px":a,c=e.offset,l=c===void 0?"0px":c,d=e.type,h={color:n,style:o,width:s,offset:l,type:d};return Xc({outline:tl(h),outlineOffset:h.offset})},Yr=function(e,r){if(!e)return"";var n=`
@@ -1818,7 +1818,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1818
1818
  */var F5=60103,B5=60106,M0=60107,$0=60108,P0=60114,I0=60109,H0=60110,T0=60112,R0=60113,Hy=60120,D0=60115,V0=60116,oT=60121,aT=60122,sT=60117,cT=60129,lT=60131;if(typeof Symbol=="function"&&Symbol.for){var tn=Symbol.for;F5=tn("react.element"),B5=tn("react.portal"),M0=tn("react.fragment"),$0=tn("react.strict_mode"),P0=tn("react.profiler"),I0=tn("react.provider"),H0=tn("react.context"),T0=tn("react.forward_ref"),R0=tn("react.suspense"),Hy=tn("react.suspense_list"),D0=tn("react.memo"),V0=tn("react.lazy"),oT=tn("react.block"),aT=tn("react.server.block"),sT=tn("react.fundamental"),cT=tn("react.debug_trace_mode"),lT=tn("react.legacy_hidden")}function Po(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case F5:switch(t=t.type,t){case M0:case P0:case $0:case R0:case Hy:return t;default:switch(t=t&&t.$$typeof,t){case H0:case T0:case V0:case D0:case I0:return t;default:return e}}case B5:return e}}}var Twe=I0,Rwe=F5,Dwe=T0,Vwe=M0,Lwe=V0,Owe=D0,Nwe=B5,Fwe=P0,Bwe=$0,Uwe=R0;Rt.ContextConsumer=H0;Rt.ContextProvider=Twe;Rt.Element=Rwe;Rt.ForwardRef=Dwe;Rt.Fragment=Vwe;Rt.Lazy=Lwe;Rt.Memo=Owe;Rt.Portal=Nwe;Rt.Profiler=Fwe;Rt.StrictMode=Bwe;Rt.Suspense=Uwe;Rt.isAsyncMode=function(){return!1};Rt.isConcurrentMode=function(){return!1};Rt.isContextConsumer=function(t){return Po(t)===H0};Rt.isContextProvider=function(t){return Po(t)===I0};Rt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===F5};Rt.isForwardRef=function(t){return Po(t)===T0};Rt.isFragment=function(t){return Po(t)===M0};Rt.isLazy=function(t){return Po(t)===V0};Rt.isMemo=function(t){return Po(t)===D0};Rt.isPortal=function(t){return Po(t)===B5};Rt.isProfiler=function(t){return Po(t)===P0};Rt.isStrictMode=function(t){return Po(t)===$0};Rt.isSuspense=function(t){return Po(t)===R0};Rt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===M0||t===P0||t===cT||t===$0||t===R0||t===Hy||t===lT||typeof t=="object"&&t!==null&&(t.$$typeof===V0||t.$$typeof===D0||t.$$typeof===I0||t.$$typeof===H0||t.$$typeof===T0||t.$$typeof===sT||t.$$typeof===oT||t[0]===aT)};Rt.typeOf=Po;(function(t){t.exports=Rt})(Hwe);function Zo(){return(Zo=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var GC=function(t,e){for(var r=[t[0]],n=0,i=e.length;n<i;n+=1)r.push(e[n],t[n+1]);return r},W8=function(t){return t!==null&&typeof t=="object"&&(t.toString?t.toString():Object.prototype.toString.call(t))==="[object Object]"&&!pv.typeOf(t)},vv=Object.freeze([]),js=Object.freeze({});function vd(t){return typeof t=="function"}function KC(t){return t.displayName||t.name||"Component"}function Ty(t){return t&&typeof t.styledComponentId=="string"}var md=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",Ry=typeof window<"u"&&"HTMLElement"in window,jwe=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY));function p1(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var qwe=function(){function t(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}var e=t.prototype;return e.indexOfGroup=function(r){for(var n=0,i=0;i<r;i++)n+=this.groupSizes[i];return n},e.insertRules=function(r,n){if(r>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;r>=a;)(a<<=1)<0&&p1(16,""+r);this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var s=o;s<a;s++)this.groupSizes[s]=0}for(var c=this.indexOfGroup(r+1),l=0,d=n.length;l<d;l++)this.tag.insertRule(c,n[l])&&(this.groupSizes[r]++,c++)},e.clearGroup=function(r){if(r<this.length){var n=this.groupSizes[r],i=this.indexOfGroup(r),o=i+n;this.groupSizes[r]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.getGroup=function(r){var n="";if(r>=this.length||this.groupSizes[r]===0)return n;for(var i=this.groupSizes[r],o=this.indexOfGroup(r),a=o+i,s=o;s<a;s++)n+=this.tag.getRule(s)+`/*!sc*/
1819
1819
  `;return n},t}(),N4=new Map,mv=new Map,Rh=1,Rf=function(t){if(N4.has(t))return N4.get(t);for(;mv.has(Rh);)Rh++;var e=Rh++;return N4.set(t,e),mv.set(e,t),e},Wwe=function(t){return mv.get(t)},Gwe=function(t,e){e>=Rh&&(Rh=e+1),N4.set(t,e),mv.set(e,t)},Kwe="style["+md+'][data-styled-version="5.3.9"]',Ywe=new RegExp("^"+md+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Xwe=function(t,e,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&t.registerName(e,n)},Qwe=function(t,e){for(var r=(e.textContent||"").split(`/*!sc*/
1820
1820
  `),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(Ywe);if(s){var c=0|parseInt(s[1],10),l=s[2];c!==0&&(Gwe(l,c),Xwe(t,l,s[3]),t.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},Jwe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},dT=function(t){var e=document.head,r=t||e,n=document.createElement("style"),i=function(s){for(var c=s.childNodes,l=c.length;l>=0;l--){var d=c[l];if(d&&d.nodeType===1&&d.hasAttribute(md))return d}}(r),o=i!==void 0?i.nextSibling:null;n.setAttribute(md,"active"),n.setAttribute("data-styled-version","5.3.9");var a=Jwe();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},Zwe=function(){function t(r){var n=this.element=dT(r);n.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,a=0,s=o.length;a<s;a++){var c=o[a];if(c.ownerNode===i)return c}p1(17)}(n),this.length=0}var e=t.prototype;return e.insertRule=function(r,n){try{return this.sheet.insertRule(n,r),this.length++,!0}catch{return!1}},e.deleteRule=function(r){this.sheet.deleteRule(r),this.length--},e.getRule=function(r){var n=this.sheet.cssRules[r];return n!==void 0&&typeof n.cssText=="string"?n.cssText:""},t}(),exe=function(){function t(r){var n=this.element=dT(r);this.nodes=n.childNodes,this.length=0}var e=t.prototype;return e.insertRule=function(r,n){if(r<=this.length&&r>=0){var i=document.createTextNode(n),o=this.nodes[r];return this.element.insertBefore(i,o||null),this.length++,!0}return!1},e.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},e.getRule=function(r){return r<this.length?this.nodes[r].textContent:""},t}(),txe=function(){function t(r){this.rules=[],this.length=0}var e=t.prototype;return e.insertRule=function(r,n){return r<=this.length&&(this.rules.splice(r,0,n),this.length++,!0)},e.deleteRule=function(r){this.rules.splice(r,1),this.length--},e.getRule=function(r){return r<this.length?this.rules[r]:""},t}(),YC=Ry,rxe={isServer:!Ry,useCSSOMInjection:!jwe},hT=function(){function t(r,n,i){r===void 0&&(r=js),n===void 0&&(n={}),this.options=Zo({},rxe,{},r),this.gs=n,this.names=new Map(i),this.server=!!r.isServer,!this.server&&Ry&&YC&&(YC=!1,function(o){for(var a=document.querySelectorAll(Kwe),s=0,c=a.length;s<c;s++){var l=a[s];l&&l.getAttribute(md)!=="active"&&(Qwe(o,l),l.parentNode&&l.parentNode.removeChild(l))}}(this))}t.registerId=function(r){return Rf(r)};var e=t.prototype;return e.reconstructWithOptions=function(r,n){return n===void 0&&(n=!0),new t(Zo({},this.options,{},r),this.gs,n&&this.names||void 0)},e.allocateGSInstance=function(r){return this.gs[r]=(this.gs[r]||0)+1},e.getTag=function(){return this.tag||(this.tag=(i=(n=this.options).isServer,o=n.useCSSOMInjection,a=n.target,r=i?new txe(a):o?new Zwe(a):new exe(a),new qwe(r)));var r,n,i,o,a},e.hasNameForId=function(r,n){return this.names.has(r)&&this.names.get(r).has(n)},e.registerName=function(r,n){if(Rf(r),this.names.has(r))this.names.get(r).add(n);else{var i=new Set;i.add(n),this.names.set(r,i)}},e.insertRules=function(r,n,i){this.registerName(r,n),this.getTag().insertRules(Rf(r),i)},e.clearNames=function(r){this.names.has(r)&&this.names.get(r).clear()},e.clearRules=function(r){this.getTag().clearGroup(Rf(r)),this.clearNames(r)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(r){for(var n=r.getTag(),i=n.length,o="",a=0;a<i;a++){var s=Wwe(a);if(s!==void 0){var c=r.names.get(s),l=n.getGroup(a);if(c&&l&&c.size){var d=md+".g"+a+'[id="'+s+'"]',h="";c!==void 0&&c.forEach(function(u){u.length>0&&(h+=u+",")}),o+=""+l+d+'{content:"'+h+`"}/*!sc*/
1821
- `}}}return o}(this)},t}(),nxe=/(a)(d)/gi,XC=function(t){return String.fromCharCode(t+(t>25?39:97))};function G8(t){var e,r="";for(e=Math.abs(t);e>52;e=e/52|0)r=XC(e%52)+r;return(XC(e%52)+r).replace(nxe,"$1-$2")}var Cl=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},uT=function(t){return Cl(5381,t)};function ixe(t){for(var e=0;e<t.length;e+=1){var r=t[e];if(vd(r)&&!Ty(r))return!1}return!0}var oxe=uT("5.3.9"),axe=function(){function t(e,r,n){this.rules=e,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&ixe(e),this.componentId=r,this.baseHash=Cl(oxe,r),this.baseStyle=n,hT.registerId(r)}return t.prototype.generateAndInjectStyles=function(e,r,n){var i=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,r,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(i,this.staticRulesId))o.push(this.staticRulesId);else{var a=gd(this.rules,e,r,n).join(""),s=G8(Cl(this.baseHash,a)>>>0);if(!r.hasNameForId(i,s)){var c=n(a,"."+s,void 0,i);r.insertRules(i,s,c)}o.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,d=Cl(this.baseHash,n.hash),h="",u=0;u<l;u++){var f=this.rules[u];if(typeof f=="string")h+=f;else if(f){var v=gd(f,e,r,n),p=Array.isArray(v)?v.join(""):v;d=Cl(d,p+u),h+=p}}if(h){var _=G8(d>>>0);if(!r.hasNameForId(i,_)){var m=n(h,"."+_,void 0,i);r.insertRules(i,_,m)}o.push(_)}}return o.join(" ")},t}(),sxe=/^\s*\/\/.*$/gm,cxe=[":","[",".","#"];function lxe(t){var e,r,n,i,o=t===void 0?js:t,a=o.options,s=a===void 0?js:a,c=o.plugins,l=c===void 0?vv:c,d=new iy(s),h=[],u=function(p){function _(m){if(m)try{p(m+"}")}catch{}}return function(m,g,b,w,x,C,S,M,T,I){switch(m){case 1:if(T===0&&g.charCodeAt(0)===64)return p(g+";"),"";break;case 2:if(M===0)return g+"/*|*/";break;case 3:switch(M){case 102:case 112:return p(b[0]+g),"";default:return g+(I===0?"/*|*/":"")}case-2:g.split("/*|*/}").forEach(_)}}}(function(p){h.push(p)}),f=function(p,_,m){return _===0&&cxe.indexOf(m[r.length])!==-1||m.match(i)?p:"."+e};function v(p,_,m,g){g===void 0&&(g="&");var b=p.replace(sxe,""),w=_&&m?m+" "+_+" { "+b+" }":b;return e=g,r=_,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),d(m||!_?"":_,w)}return d.use([].concat(l,[function(p,_,m){p===2&&m.length&&m[0].lastIndexOf(r)>0&&(m[0]=m[0].replace(n,f))},u,function(p){if(p===-2){var _=h;return h=[],_}}])),v.hash=l.length?l.reduce(function(p,_){return _.name||p1(15),Cl(p,_.name)},5381).toString():"",v}var fT=dt.createContext();fT.Consumer;var pT=dt.createContext(),dxe=(pT.Consumer,new hT),K8=lxe();function hxe(){return y.useContext(fT)||dxe}function uxe(){return y.useContext(pT)||K8}var vT=function(){function t(e,r){var n=this;this.inject=function(i,o){o===void 0&&(o=K8);var a=n.name+o.hash;i.hasNameForId(n.id,a)||i.insertRules(n.id,a,o(n.rules,a,"@keyframes"))},this.toString=function(){return p1(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=r}return t.prototype.getName=function(e){return e===void 0&&(e=K8),this.name+e.hash},t}(),fxe=/([A-Z])/,pxe=/([A-Z])/g,vxe=/^ms-/,mxe=function(t){return"-"+t.toLowerCase()};function QC(t){return fxe.test(t)?t.replace(pxe,mxe).replace(vxe,"-ms-"):t}var JC=function(t){return t==null||t===!1||t===""};function gd(t,e,r,n){if(Array.isArray(t)){for(var i,o=[],a=0,s=t.length;a<s;a+=1)(i=gd(t[a],e,r,n))!==""&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}if(JC(t))return"";if(Ty(t))return"."+t.styledComponentId;if(vd(t)){if(typeof(l=t)!="function"||l.prototype&&l.prototype.isReactComponent||!e)return t;var c=t(e);return gd(c,e,r,n)}var l;return t instanceof vT?r?(t.inject(r,n),t.getName(n)):t:W8(t)?function d(h,u){var f,v,p=[];for(var _ in h)h.hasOwnProperty(_)&&!JC(h[_])&&(Array.isArray(h[_])&&h[_].isCss||vd(h[_])?p.push(QC(_)+":",h[_],";"):W8(h[_])?p.push.apply(p,d(h[_],_)):p.push(QC(_)+": "+(f=_,(v=h[_])==null||typeof v=="boolean"||v===""?"":typeof v!="number"||v===0||f in oy?String(v).trim():v+"px")+";"));return u?[u+" {"].concat(p,["}"]):p}(t):t.toString()}var ZC=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function Ye(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return vd(t)||W8(t)?ZC(gd(GC(vv,[t].concat(r)))):r.length===0&&t.length===1&&typeof t[0]=="string"?t:ZC(gd(GC(t,r)))}var gxe=function(t,e,r){return r===void 0&&(r=js),t.theme!==r.theme&&t.theme||e||r.theme},yxe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,_xe=/(^-|-$)/g;function D3(t){return t.replace(yxe,"-").replace(_xe,"")}var mT=function(t){return G8(uT(t)>>>0)};function Df(t){return typeof t=="string"&&!0}var Y8=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},bxe=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function wxe(t,e,r){var n=t[r];Y8(e)&&Y8(n)?gT(n,e):t[r]=e}function gT(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(Y8(a))for(var s in a)bxe(s)&&wxe(t,a[s],s)}return t}var gv=dt.createContext();gv.Consumer;function C1(t){var e=y.useContext(gv),r=y.useMemo(function(){return function(n,i){if(!n)return p1(14);if(vd(n)){var o=n(i);return o}return Array.isArray(n)||typeof n!="object"?p1(8):i?Zo({},i,{},n):n}(t.theme,e)},[t.theme,e]);return t.children?dt.createElement(gv.Provider,{value:r},t.children):null}var V3={};function yT(t,e,r){var n=Ty(t),i=!Df(t),o=e.attrs,a=o===void 0?vv:o,s=e.componentId,c=s===void 0?function(g,b){var w=typeof g!="string"?"sc":D3(g);V3[w]=(V3[w]||0)+1;var x=w+"-"+mT("5.3.9"+w+V3[w]);return b?b+"-"+x:x}(e.displayName,e.parentComponentId):s,l=e.displayName,d=l===void 0?function(g){return Df(g)?"styled."+g:"Styled("+KC(g)+")"}(t):l,h=e.displayName&&e.componentId?D3(e.displayName)+"-"+e.componentId:e.componentId||c,u=n&&t.attrs?Array.prototype.concat(t.attrs,a).filter(Boolean):a,f=e.shouldForwardProp;n&&t.shouldForwardProp&&(f=e.shouldForwardProp?function(g,b,w){return t.shouldForwardProp(g,b,w)&&e.shouldForwardProp(g,b,w)}:t.shouldForwardProp);var v,p=new axe(r,h,n?t.componentStyle:void 0),_=p.isStatic&&a.length===0,m=function(g,b){return function(w,x,C,S){var M=w.attrs,T=w.componentStyle,I=w.defaultProps,N=w.foldedComponentIds,U=w.shouldForwardProp,Y=w.styledComponentId,H=w.target,L=function(ie,P,Z){ie===void 0&&(ie=js);var R=Zo({},P,{theme:ie}),de={};return Z.forEach(function(he){var ge,ve,Be,De=he;for(ge in vd(De)&&(De=De(R)),De)R[ge]=de[ge]=ge==="className"?(ve=de[ge],Be=De[ge],ve&&Be?ve+" "+Be:ve||Be):De[ge]}),[R,de]}(gxe(x,y.useContext(gv),I)||js,x,M),ee=L[0],ae=L[1],A=function(ie,P,Z,R){var de=hxe(),he=uxe(),ge=P?ie.generateAndInjectStyles(js,de,he):ie.generateAndInjectStyles(Z,de,he);return ge}(T,S,ee),B=C,O=ae.$as||x.$as||ae.as||x.as||H,Q=Df(O),W=ae!==x?Zo({},x,{},ae):x,G={};for(var X in W)X[0]!=="$"&&X!=="as"&&(X==="forwardedAs"?G.as=W[X]:(U?U(X,Xs,O):!Q||Xs(X))&&(G[X]=W[X]));return x.style&&ae.style!==x.style&&(G.style=Zo({},x.style,{},ae.style)),G.className=Array.prototype.concat(N,Y,A!==Y?A:null,x.className,ae.className).filter(Boolean).join(" "),G.ref=B,y.createElement(O,G)}(v,g,b,_)};return m.displayName=d,(v=dt.forwardRef(m)).attrs=u,v.componentStyle=p,v.displayName=d,v.shouldForwardProp=f,v.foldedComponentIds=n?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):vv,v.styledComponentId=h,v.target=n?t.target:t,v.withComponent=function(g){var b=e.componentId,w=function(C,S){if(C==null)return{};var M,T,I={},N=Object.keys(C);for(T=0;T<N.length;T++)M=N[T],S.indexOf(M)>=0||(I[M]=C[M]);return I}(e,["componentId"]),x=b&&b+"-"+(Df(g)?g:D3(KC(g)));return yT(g,Zo({},w,{attrs:u,componentId:x}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(g){this._foldedDefaultProps=n?gT({},t.defaultProps,g):g}}),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),i&&j7(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var X8=function(t){return function e(r,n,i){if(i===void 0&&(i=js),!pv.isValidElementType(n))return p1(1,String(n));var o=function(){return r(n,i,Ye.apply(void 0,arguments))};return o.withConfig=function(a){return e(r,n,Zo({},i,{},a))},o.attrs=function(a){return e(r,n,Zo({},i,{attrs:Array.prototype.concat(i.attrs,a).filter(Boolean)}))},o}(yT,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){X8[t]=X8(t)});function L0(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var i=Ye.apply(void 0,[t].concat(r)).join(""),o=mT(i);return new vT(o,i)}const _e=X8;var L3=J.typography.navigation.button,Dy=J.colors.interactive,xxe=Dy.disabled__text.rgba,zxe=Dy.disabled__border.rgba,Cxe=Dy.disabled__fill.rgba,ek=J.spacings.comfortable.medium,_T=J.shape,bT=_T.button,tk=bT.minHeight,rk=bT.borderRadius,nk=_T._modes.compact.button.minHeight,ik=J.interactions.focused,wT=J.clickbounds,ok=wT.default__base,ak=wT.compact__standard,U5={background:"transparent",height:"var(--eds_button__height, ".concat(tk,")"),typography:E(E({},L3),{},{textAlign:"center",fontSize:"var(--eds_button__font_size, ".concat(L3.fontSize,")")}),border:{type:"border",width:"var(--eds_button__border_width, 1px)",color:"transparent",radius:"var(--eds_button__radius, ".concat(rk,")"),style:"solid"},spacings:{top:"var(--eds_button__padding_y, 0)",bottom:"var(--eds_button__padding_y, 0)",left:"var(--eds_button__padding_x, ".concat(ek,")"),right:"var(--eds_button__padding_x, ".concat(ek,")")},clickbound:{height:ok,width:"100%",offset:{top:"".concat((parseInt(ok)-parseInt(tk))/2+1,"px"),left:"0"}},entities:{icon:{height:"var(--eds_button__icon__size, 24px)",width:"var(--eds_button__icon__size, 24px)"}},states:{hover:{border:{type:"border",width:"1px",color:"transparent",radius:"var(--eds_button__radius, ".concat(rk,")"),style:"solid"}},focus:{outline:{type:"outline",offset:"3px",style:"dashed",color:ik.color,width:ik.width}},disabled:{background:Cxe,border:{type:"border",width:"1px",color:zxe,style:"solid"},typography:E(E({},L3),{},{color:xxe,textAlign:"center"})}},modes:{compact:{height:"var(--eds_button__height_compact, ".concat(nk,")"),spacings:{top:"var(--eds_button__padding_y_compact, 0)",bottom:"var(--eds_button__padding_y_compact, 0)"},clickbound:{height:ak,width:"100%",offset:{top:"".concat((parseInt(ak)-parseInt(nk))/2+1,"px"),left:"0"}}}}};function tr(t){return t!=null&&Zs(t)==="object"&&t["@@functional/placeholder"]===!0}function Qc(t){return function e(r){return arguments.length===0||tr(r)?e:t.apply(this,arguments)}}function Nc(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return tr(r)?e:Qc(function(i){return t(r,i)});default:return tr(r)&&tr(n)?e:tr(r)?Qc(function(i){return t(i,n)}):tr(n)?Qc(function(i){return t(r,i)}):t(r,n)}}}function xT(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return tr(r)?e:Nc(function(o,a){return t(r,o,a)});case 2:return tr(r)&&tr(n)?e:tr(r)?Nc(function(o,a){return t(o,n,a)}):tr(n)?Nc(function(o,a){return t(r,o,a)}):Qc(function(o){return t(r,n,o)});default:return tr(r)&&tr(n)&&tr(i)?e:tr(r)&&tr(n)?Nc(function(o,a){return t(o,a,i)}):tr(r)&&tr(i)?Nc(function(o,a){return t(o,n,a)}):tr(n)&&tr(i)?Nc(function(o,a){return t(r,o,a)}):tr(r)?Qc(function(o){return t(o,n,i)}):tr(n)?Qc(function(o){return t(r,o,i)}):tr(i)?Qc(function(o){return t(r,n,o)}):t(r,n,i)}}}function sk(t){return Object.prototype.toString.call(t)==="[object Object]"}function Vf(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var kxe=xT(function(e,r,n){var i={},o;for(o in r)Vf(o,r)&&(i[o]=Vf(o,n)?e(o,r[o],n[o]):r[o]);for(o in n)Vf(o,n)&&!Vf(o,i)&&(i[o]=n[o]);return i}),Exe=xT(function t(e,r,n){return kxe(function(i,o,a){return sk(o)&&sk(a)?t(e,o,a):e(i,o,a)},r,n)}),Sxe=Nc(function(e,r){return Exe(function(n,i,o){return o},e,r)}),pr=Sxe,zT=J.colors,Axe=zT.text.static_icons__primary_white.rgba,n2=zT.interactive,ck=n2.primary__resting.rgba,Mxe=n2.primary__hover.rgba,lk=n2.secondary__resting.rgba,dk=n2.secondary__link_hover.rgba,hk=n2.danger__resting.rgba,uk=n2.danger__hover.rgba,$xe=J.shape.button.borderRadius,j5=pr(U5,{background:ck,typography:{color:Axe},border:{type:"border",style:"solid",width:"1px",color:ck,radius:"var(--eds_button__radius, ".concat($xe,")")},states:{hover:{background:Mxe}}}),CT=pr(j5,{background:lk,border:{color:lk},states:{hover:{background:dk,border:{color:dk}}}}),kT=pr(j5,{background:hk,border:{color:hk},states:{hover:{background:uk,border:{color:uk}}}}),ts=J.colors.interactive,fk=ts.primary__resting.rgba,pk=ts.primary__hover.rgba,Pxe=ts.primary__hover_alt.rgba,vk=ts.secondary__resting.rgba,mk=ts.secondary__link_hover.rgba,Ixe=ts.secondary__highlight.rgba,gk=ts.danger__resting.rgba,yk=ts.danger__hover.rgba,Hxe=ts.danger__highlight.rgba,Txe=J.shape.button.borderRadius,Vy=pr(U5,{typography:{color:fk},border:{type:"border",style:"solid",width:"1px",color:fk,radius:"var(--eds_button__radius, ".concat(Txe,")")},states:{hover:{typography:{color:pk},background:Pxe,border:{style:"solid",type:"border",width:"1px",color:pk}},disabled:{background:"transparent"}}}),Rxe=pr(Vy,{typography:{color:vk},border:{color:vk},states:{hover:{background:Ixe,typography:{color:mk},border:{color:mk}}}}),Dxe=pr(Vy,{typography:{color:gk},border:{color:gk},states:{hover:{background:Hxe,typography:{color:yk},border:{color:yk}}}}),rs=J.colors.interactive,Vxe=rs.primary__resting.rgba,Lxe=rs.primary__hover.rgba,Oxe=rs.primary__hover_alt.rgba,Nxe=rs.secondary__resting.rgba,Fxe=rs.secondary__link_hover.rgba,Bxe=rs.secondary__highlight.rgba,Uxe=rs.danger__resting.rgba,jxe=rs.danger__hover.rgba,qxe=rs.danger__highlight.rgba,Ly=pr(U5,{typography:{color:Vxe},states:{hover:{background:Oxe,typography:{color:Lxe}},disabled:{background:"transparent",border:{color:"transparent"}}}}),Wxe=pr(Ly,{typography:{color:Nxe},states:{hover:{background:Bxe,typography:{color:Fxe}}}}),Gxe=pr(Ly,{typography:{color:Uxe},states:{hover:{background:qxe,typography:{color:jxe}}}}),dc=J.colors.interactive,Kxe=dc.primary__resting.rgba,Yxe=dc.primary__hover_alt.rgba,Xxe=dc.secondary__resting.rgba,Qxe=dc.secondary__link_hover.rgba,Jxe=dc.secondary__highlight.rgba,Zxe=dc.danger__resting.rgba,eze=dc.danger__hover.rgba,tze=dc.danger__highlight.rgba,ET=J.clickbounds,_k=ET.default__base,bk=ET.compact__standard,F1=J.shape,rze=J.interactions.focused.width,Oy=pr(U5,{height:F1.icon_button.minHeight,width:F1.icon_button.minWidth,typography:{color:Kxe},border:{width:"0px",radius:"50%"},background:"transparent",spacings:{left:"0",right:"0"},clickbound:{width:_k,offset:{top:"0",left:"".concat((parseInt(_k)-parseInt(F1.icon_button.minWidth))/2,"px")}},states:{hover:{background:Yxe,border:{width:"0px",radius:"50%"}},disabled:{background:"transparent",border:{color:"transparent"}},focus:{outline:{offset:"-".concat(parseInt(rze),"px")}}},modes:{compact:{height:F1._modes.compact.icon_button.minHeight,width:F1._modes.compact.icon_button.minWidth,clickbound:{width:bk,offset:{top:"0",left:"".concat((parseInt(bk)-parseInt(F1._modes.compact.icon_button.minWidth))/2,"px")}}}}}),nze=pr(Oy,{typography:{color:Xxe},states:{hover:{background:Jxe,typography:{color:Qxe}}}}),ize=pr(Oy,{typography:{color:Zxe},states:{hover:{background:tze,typography:{color:eze}}}}),ST=J.clickbounds,wk=ST.default__base,xk=ST.compact__standard,$2=J.shape,Ny={height:$2.icon_button.minHeight,width:$2.icon_button.minWidth,border:{width:"0px",radius:"50%"},spacings:{left:"0",right:"0"},clickbound:{width:wk,offset:{top:"0",left:"".concat((parseInt(wk)-parseInt("40px"))/2,"px")}},states:{hover:{border:{width:"0px",radius:"50%"}}},modes:{compact:{height:$2._modes.compact.icon_button.minHeight,width:$2._modes.compact.icon_button.minWidth,clickbound:{width:xk,offset:{top:"0",left:"".concat((parseInt(xk)-parseInt($2._modes.compact.icon_button.minWidth))/2,"px")}}}}},oze=pr(j5,Ny),aze=pr(CT,Ny),sze=pr(kT,Ny),O3={primary:{contained:j5,outlined:Vy,ghost:Ly,ghost_icon:Oy,contained_icon:oze},secondary:{contained:CT,outlined:Rxe,ghost:Wxe,ghost_icon:nze,contained_icon:aze},danger:{contained:kT,outlined:Dxe,ghost:Gxe,ghost_icon:ize,contained_icon:sze}},cze=_e.span.withConfig({displayName:"InnerFullWidth__FullWidthCenterContent",componentId:"sc-qeawkb-0"})(["text-align:center;flex:1;"]),lze=_e.span.withConfig({displayName:"InnerFullWidth__FullWidthInner",componentId:"sc-qeawkb-1"})(["height:100%;display:flex;align-items:center;> :is(svg,img){margin-top:var(--eds_button__margin_y,inherit);margin-bottom:var(--eds_button__margin_y,inherit);}> :is(svg,img):first-child{margin-right:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):last-child{margin-left:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):only-child{margin-left:auto;margin-right:auto;}> span:first-child{margin-left:var(--eds_button__fullwidth__margin_x,32px);}> span:last-child{margin-right:var(--eds_button__fullwidth__margin_x,32px);}> span:only-child{margin-right:0;margin-left:0;}"]),dze=y.forwardRef(function(e,r){var n=e.children,i=y.Children.map(n,function(o){return Zs(o)!=="object"?z(cze,{children:o}):o});return z(lze,{ref:r,children:i})});function hze(t){if(Array.isArray(t))return t}function uze(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function Q8(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function AT(t,e){if(t){if(typeof t=="string")return Q8(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q8(t,e)}}function fze(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1821
+ `}}}return o}(this)},t}(),nxe=/(a)(d)/gi,XC=function(t){return String.fromCharCode(t+(t>25?39:97))};function G8(t){var e,r="";for(e=Math.abs(t);e>52;e=e/52|0)r=XC(e%52)+r;return(XC(e%52)+r).replace(nxe,"$1-$2")}var Cl=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},uT=function(t){return Cl(5381,t)};function ixe(t){for(var e=0;e<t.length;e+=1){var r=t[e];if(vd(r)&&!Ty(r))return!1}return!0}var oxe=uT("5.3.9"),axe=function(){function t(e,r,n){this.rules=e,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&ixe(e),this.componentId=r,this.baseHash=Cl(oxe,r),this.baseStyle=n,hT.registerId(r)}return t.prototype.generateAndInjectStyles=function(e,r,n){var i=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,r,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(i,this.staticRulesId))o.push(this.staticRulesId);else{var a=gd(this.rules,e,r,n).join(""),s=G8(Cl(this.baseHash,a)>>>0);if(!r.hasNameForId(i,s)){var c=n(a,"."+s,void 0,i);r.insertRules(i,s,c)}o.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,d=Cl(this.baseHash,n.hash),h="",u=0;u<l;u++){var f=this.rules[u];if(typeof f=="string")h+=f;else if(f){var v=gd(f,e,r,n),p=Array.isArray(v)?v.join(""):v;d=Cl(d,p+u),h+=p}}if(h){var _=G8(d>>>0);if(!r.hasNameForId(i,_)){var m=n(h,"."+_,void 0,i);r.insertRules(i,_,m)}o.push(_)}}return o.join(" ")},t}(),sxe=/^\s*\/\/.*$/gm,cxe=[":","[",".","#"];function lxe(t){var e,r,n,i,o=t===void 0?js:t,a=o.options,s=a===void 0?js:a,c=o.plugins,l=c===void 0?vv:c,d=new iy(s),h=[],u=function(p){function _(m){if(m)try{p(m+"}")}catch{}}return function(m,g,b,w,x,C,S,M,T,I){switch(m){case 1:if(T===0&&g.charCodeAt(0)===64)return p(g+";"),"";break;case 2:if(M===0)return g+"/*|*/";break;case 3:switch(M){case 102:case 112:return p(b[0]+g),"";default:return g+(I===0?"/*|*/":"")}case-2:g.split("/*|*/}").forEach(_)}}}(function(p){h.push(p)}),f=function(p,_,m){return _===0&&cxe.indexOf(m[r.length])!==-1||m.match(i)?p:"."+e};function v(p,_,m,g){g===void 0&&(g="&");var b=p.replace(sxe,""),w=_&&m?m+" "+_+" { "+b+" }":b;return e=g,r=_,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),d(m||!_?"":_,w)}return d.use([].concat(l,[function(p,_,m){p===2&&m.length&&m[0].lastIndexOf(r)>0&&(m[0]=m[0].replace(n,f))},u,function(p){if(p===-2){var _=h;return h=[],_}}])),v.hash=l.length?l.reduce(function(p,_){return _.name||p1(15),Cl(p,_.name)},5381).toString():"",v}var fT=dt.createContext();fT.Consumer;var pT=dt.createContext(),dxe=(pT.Consumer,new hT),K8=lxe();function hxe(){return y.useContext(fT)||dxe}function uxe(){return y.useContext(pT)||K8}var vT=function(){function t(e,r){var n=this;this.inject=function(i,o){o===void 0&&(o=K8);var a=n.name+o.hash;i.hasNameForId(n.id,a)||i.insertRules(n.id,a,o(n.rules,a,"@keyframes"))},this.toString=function(){return p1(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=r}return t.prototype.getName=function(e){return e===void 0&&(e=K8),this.name+e.hash},t}(),fxe=/([A-Z])/,pxe=/([A-Z])/g,vxe=/^ms-/,mxe=function(t){return"-"+t.toLowerCase()};function QC(t){return fxe.test(t)?t.replace(pxe,mxe).replace(vxe,"-ms-"):t}var JC=function(t){return t==null||t===!1||t===""};function gd(t,e,r,n){if(Array.isArray(t)){for(var i,o=[],a=0,s=t.length;a<s;a+=1)(i=gd(t[a],e,r,n))!==""&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}if(JC(t))return"";if(Ty(t))return"."+t.styledComponentId;if(vd(t)){if(typeof(l=t)!="function"||l.prototype&&l.prototype.isReactComponent||!e)return t;var c=t(e);return gd(c,e,r,n)}var l;return t instanceof vT?r?(t.inject(r,n),t.getName(n)):t:W8(t)?function d(h,u){var f,v,p=[];for(var _ in h)h.hasOwnProperty(_)&&!JC(h[_])&&(Array.isArray(h[_])&&h[_].isCss||vd(h[_])?p.push(QC(_)+":",h[_],";"):W8(h[_])?p.push.apply(p,d(h[_],_)):p.push(QC(_)+": "+(f=_,(v=h[_])==null||typeof v=="boolean"||v===""?"":typeof v!="number"||v===0||f in oy?String(v).trim():v+"px")+";"));return u?[u+" {"].concat(p,["}"]):p}(t):t.toString()}var ZC=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function Ye(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return vd(t)||W8(t)?ZC(gd(GC(vv,[t].concat(r)))):r.length===0&&t.length===1&&typeof t[0]=="string"?t:ZC(gd(GC(t,r)))}var gxe=function(t,e,r){return r===void 0&&(r=js),t.theme!==r.theme&&t.theme||e||r.theme},yxe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,_xe=/(^-|-$)/g;function D3(t){return t.replace(yxe,"-").replace(_xe,"")}var mT=function(t){return G8(uT(t)>>>0)};function Df(t){return typeof t=="string"&&!0}var Y8=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},bxe=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function wxe(t,e,r){var n=t[r];Y8(e)&&Y8(n)?gT(n,e):t[r]=e}function gT(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(Y8(a))for(var s in a)bxe(s)&&wxe(t,a[s],s)}return t}var gv=dt.createContext();gv.Consumer;function C1(t){var e=y.useContext(gv),r=y.useMemo(function(){return function(n,i){if(!n)return p1(14);if(vd(n)){var o=n(i);return o}return Array.isArray(n)||typeof n!="object"?p1(8):i?Zo({},i,{},n):n}(t.theme,e)},[t.theme,e]);return t.children?dt.createElement(gv.Provider,{value:r},t.children):null}var V3={};function yT(t,e,r){var n=Ty(t),i=!Df(t),o=e.attrs,a=o===void 0?vv:o,s=e.componentId,c=s===void 0?function(g,b){var w=typeof g!="string"?"sc":D3(g);V3[w]=(V3[w]||0)+1;var x=w+"-"+mT("5.3.9"+w+V3[w]);return b?b+"-"+x:x}(e.displayName,e.parentComponentId):s,l=e.displayName,d=l===void 0?function(g){return Df(g)?"styled."+g:"Styled("+KC(g)+")"}(t):l,h=e.displayName&&e.componentId?D3(e.displayName)+"-"+e.componentId:e.componentId||c,u=n&&t.attrs?Array.prototype.concat(t.attrs,a).filter(Boolean):a,f=e.shouldForwardProp;n&&t.shouldForwardProp&&(f=e.shouldForwardProp?function(g,b,w){return t.shouldForwardProp(g,b,w)&&e.shouldForwardProp(g,b,w)}:t.shouldForwardProp);var v,p=new axe(r,h,n?t.componentStyle:void 0),_=p.isStatic&&a.length===0,m=function(g,b){return function(w,x,C,S){var M=w.attrs,T=w.componentStyle,I=w.defaultProps,N=w.foldedComponentIds,U=w.shouldForwardProp,Y=w.styledComponentId,H=w.target,L=function(ie,P,Z){ie===void 0&&(ie=js);var R=Zo({},P,{theme:ie}),de={};return Z.forEach(function(he){var ge,ve,Be,De=he;for(ge in vd(De)&&(De=De(R)),De)R[ge]=de[ge]=ge==="className"?(ve=de[ge],Be=De[ge],ve&&Be?ve+" "+Be:ve||Be):De[ge]}),[R,de]}(gxe(x,y.useContext(gv),I)||js,x,M),ee=L[0],ae=L[1],A=function(ie,P,Z,R){var de=hxe(),he=uxe(),ge=P?ie.generateAndInjectStyles(js,de,he):ie.generateAndInjectStyles(Z,de,he);return ge}(T,S,ee),B=C,O=ae.$as||x.$as||ae.as||x.as||H,Q=Df(O),W=ae!==x?Zo({},x,{},ae):x,G={};for(var X in W)X[0]!=="$"&&X!=="as"&&(X==="forwardedAs"?G.as=W[X]:(U?U(X,Xs,O):!Q||Xs(X))&&(G[X]=W[X]));return x.style&&ae.style!==x.style&&(G.style=Zo({},x.style,{},ae.style)),G.className=Array.prototype.concat(N,Y,A!==Y?A:null,x.className,ae.className).filter(Boolean).join(" "),G.ref=B,y.createElement(O,G)}(v,g,b,_)};return m.displayName=d,(v=dt.forwardRef(m)).attrs=u,v.componentStyle=p,v.displayName=d,v.shouldForwardProp=f,v.foldedComponentIds=n?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):vv,v.styledComponentId=h,v.target=n?t.target:t,v.withComponent=function(g){var b=e.componentId,w=function(C,S){if(C==null)return{};var M,T,I={},N=Object.keys(C);for(T=0;T<N.length;T++)M=N[T],S.indexOf(M)>=0||(I[M]=C[M]);return I}(e,["componentId"]),x=b&&b+"-"+(Df(g)?g:D3(KC(g)));return yT(g,Zo({},w,{attrs:u,componentId:x}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(g){this._foldedDefaultProps=n?gT({},t.defaultProps,g):g}}),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),i&&j7(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var X8=function(t){return function e(r,n,i){if(i===void 0&&(i=js),!pv.isValidElementType(n))return p1(1,String(n));var o=function(){return r(n,i,Ye.apply(void 0,arguments))};return o.withConfig=function(a){return e(r,n,Zo({},i,{},a))},o.attrs=function(a){return e(r,n,Zo({},i,{attrs:Array.prototype.concat(i.attrs,a).filter(Boolean)}))},o}(yT,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){X8[t]=X8(t)});function L0(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var i=Ye.apply(void 0,[t].concat(r)).join(""),o=mT(i);return new vT(o,i)}const _e=X8;var L3=J.typography.navigation.button,Dy=J.colors.interactive,xxe=Dy.disabled__text.rgba,zxe=Dy.disabled__border.rgba,Cxe=Dy.disabled__fill.rgba,ek=J.spacings.comfortable.medium,_T=J.shape,bT=_T.button,tk=bT.minHeight,rk=bT.borderRadius,nk=_T._modes.compact.button.minHeight,ik=J.interactions.focused,wT=J.clickbounds,ok=wT.default__base,ak=wT.compact__standard,U5={background:"transparent",height:"var(--eds_button__height, ".concat(tk,")"),typography:E(E({},L3),{},{textAlign:"center",fontSize:"var(--eds_button__font_size, ".concat(L3.fontSize,")")}),border:{type:"border",width:"var(--eds_button__border_width, 1px)",color:"transparent",radius:"var(--eds_button__radius, ".concat(rk,")"),style:"solid"},spacings:{top:"var(--eds_button__padding_y, 0)",bottom:"var(--eds_button__padding_y, 0)",left:"var(--eds_button__padding_x, ".concat(ek,")"),right:"var(--eds_button__padding_x, ".concat(ek,")")},clickbound:{height:ok,width:"100%",offset:{top:"".concat((parseInt(ok)-parseInt(tk))/2+1,"px"),left:"0"}},entities:{icon:{height:"var(--eds_button__icon__size, 24px)",width:"var(--eds_button__icon__size, 24px)"}},states:{hover:{border:{type:"border",width:"1px",color:"transparent",radius:"var(--eds_button__radius, ".concat(rk,")"),style:"solid"}},focus:{outline:{type:"outline",offset:"3px",style:"dashed",color:ik.color,width:ik.width}},disabled:{background:Cxe,border:{type:"border",width:"1px",color:zxe,style:"solid"},typography:E(E({},L3),{},{color:xxe,textAlign:"center"})}},modes:{compact:{height:"var(--eds_button__height_compact, ".concat(nk,")"),spacings:{top:"var(--eds_button__padding_y_compact, 0)",bottom:"var(--eds_button__padding_y_compact, 0)"},clickbound:{height:ak,width:"100%",offset:{top:"".concat((parseInt(ak)-parseInt(nk))/2+1,"px"),left:"0"}}}}};function rr(t){return t!=null&&Zs(t)==="object"&&t["@@functional/placeholder"]===!0}function Qc(t){return function e(r){return arguments.length===0||rr(r)?e:t.apply(this,arguments)}}function Nc(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return rr(r)?e:Qc(function(i){return t(r,i)});default:return rr(r)&&rr(n)?e:rr(r)?Qc(function(i){return t(i,n)}):rr(n)?Qc(function(i){return t(r,i)}):t(r,n)}}}function xT(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return rr(r)?e:Nc(function(o,a){return t(r,o,a)});case 2:return rr(r)&&rr(n)?e:rr(r)?Nc(function(o,a){return t(o,n,a)}):rr(n)?Nc(function(o,a){return t(r,o,a)}):Qc(function(o){return t(r,n,o)});default:return rr(r)&&rr(n)&&rr(i)?e:rr(r)&&rr(n)?Nc(function(o,a){return t(o,a,i)}):rr(r)&&rr(i)?Nc(function(o,a){return t(o,n,a)}):rr(n)&&rr(i)?Nc(function(o,a){return t(r,o,a)}):rr(r)?Qc(function(o){return t(o,n,i)}):rr(n)?Qc(function(o){return t(r,o,i)}):rr(i)?Qc(function(o){return t(r,n,o)}):t(r,n,i)}}}function sk(t){return Object.prototype.toString.call(t)==="[object Object]"}function Vf(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var kxe=xT(function(e,r,n){var i={},o;for(o in r)Vf(o,r)&&(i[o]=Vf(o,n)?e(o,r[o],n[o]):r[o]);for(o in n)Vf(o,n)&&!Vf(o,i)&&(i[o]=n[o]);return i}),Exe=xT(function t(e,r,n){return kxe(function(i,o,a){return sk(o)&&sk(a)?t(e,o,a):e(i,o,a)},r,n)}),Sxe=Nc(function(e,r){return Exe(function(n,i,o){return o},e,r)}),pr=Sxe,zT=J.colors,Axe=zT.text.static_icons__primary_white.rgba,n2=zT.interactive,ck=n2.primary__resting.rgba,Mxe=n2.primary__hover.rgba,lk=n2.secondary__resting.rgba,dk=n2.secondary__link_hover.rgba,hk=n2.danger__resting.rgba,uk=n2.danger__hover.rgba,$xe=J.shape.button.borderRadius,j5=pr(U5,{background:ck,typography:{color:Axe},border:{type:"border",style:"solid",width:"1px",color:ck,radius:"var(--eds_button__radius, ".concat($xe,")")},states:{hover:{background:Mxe}}}),CT=pr(j5,{background:lk,border:{color:lk},states:{hover:{background:dk,border:{color:dk}}}}),kT=pr(j5,{background:hk,border:{color:hk},states:{hover:{background:uk,border:{color:uk}}}}),ts=J.colors.interactive,fk=ts.primary__resting.rgba,pk=ts.primary__hover.rgba,Pxe=ts.primary__hover_alt.rgba,vk=ts.secondary__resting.rgba,mk=ts.secondary__link_hover.rgba,Ixe=ts.secondary__highlight.rgba,gk=ts.danger__resting.rgba,yk=ts.danger__hover.rgba,Hxe=ts.danger__highlight.rgba,Txe=J.shape.button.borderRadius,Vy=pr(U5,{typography:{color:fk},border:{type:"border",style:"solid",width:"1px",color:fk,radius:"var(--eds_button__radius, ".concat(Txe,")")},states:{hover:{typography:{color:pk},background:Pxe,border:{style:"solid",type:"border",width:"1px",color:pk}},disabled:{background:"transparent"}}}),Rxe=pr(Vy,{typography:{color:vk},border:{color:vk},states:{hover:{background:Ixe,typography:{color:mk},border:{color:mk}}}}),Dxe=pr(Vy,{typography:{color:gk},border:{color:gk},states:{hover:{background:Hxe,typography:{color:yk},border:{color:yk}}}}),rs=J.colors.interactive,Vxe=rs.primary__resting.rgba,Lxe=rs.primary__hover.rgba,Oxe=rs.primary__hover_alt.rgba,Nxe=rs.secondary__resting.rgba,Fxe=rs.secondary__link_hover.rgba,Bxe=rs.secondary__highlight.rgba,Uxe=rs.danger__resting.rgba,jxe=rs.danger__hover.rgba,qxe=rs.danger__highlight.rgba,Ly=pr(U5,{typography:{color:Vxe},states:{hover:{background:Oxe,typography:{color:Lxe}},disabled:{background:"transparent",border:{color:"transparent"}}}}),Wxe=pr(Ly,{typography:{color:Nxe},states:{hover:{background:Bxe,typography:{color:Fxe}}}}),Gxe=pr(Ly,{typography:{color:Uxe},states:{hover:{background:qxe,typography:{color:jxe}}}}),dc=J.colors.interactive,Kxe=dc.primary__resting.rgba,Yxe=dc.primary__hover_alt.rgba,Xxe=dc.secondary__resting.rgba,Qxe=dc.secondary__link_hover.rgba,Jxe=dc.secondary__highlight.rgba,Zxe=dc.danger__resting.rgba,eze=dc.danger__hover.rgba,tze=dc.danger__highlight.rgba,ET=J.clickbounds,_k=ET.default__base,bk=ET.compact__standard,F1=J.shape,rze=J.interactions.focused.width,Oy=pr(U5,{height:F1.icon_button.minHeight,width:F1.icon_button.minWidth,typography:{color:Kxe},border:{width:"0px",radius:"50%"},background:"transparent",spacings:{left:"0",right:"0"},clickbound:{width:_k,offset:{top:"0",left:"".concat((parseInt(_k)-parseInt(F1.icon_button.minWidth))/2,"px")}},states:{hover:{background:Yxe,border:{width:"0px",radius:"50%"}},disabled:{background:"transparent",border:{color:"transparent"}},focus:{outline:{offset:"-".concat(parseInt(rze),"px")}}},modes:{compact:{height:F1._modes.compact.icon_button.minHeight,width:F1._modes.compact.icon_button.minWidth,clickbound:{width:bk,offset:{top:"0",left:"".concat((parseInt(bk)-parseInt(F1._modes.compact.icon_button.minWidth))/2,"px")}}}}}),nze=pr(Oy,{typography:{color:Xxe},states:{hover:{background:Jxe,typography:{color:Qxe}}}}),ize=pr(Oy,{typography:{color:Zxe},states:{hover:{background:tze,typography:{color:eze}}}}),ST=J.clickbounds,wk=ST.default__base,xk=ST.compact__standard,$2=J.shape,Ny={height:$2.icon_button.minHeight,width:$2.icon_button.minWidth,border:{width:"0px",radius:"50%"},spacings:{left:"0",right:"0"},clickbound:{width:wk,offset:{top:"0",left:"".concat((parseInt(wk)-parseInt("40px"))/2,"px")}},states:{hover:{border:{width:"0px",radius:"50%"}}},modes:{compact:{height:$2._modes.compact.icon_button.minHeight,width:$2._modes.compact.icon_button.minWidth,clickbound:{width:xk,offset:{top:"0",left:"".concat((parseInt(xk)-parseInt($2._modes.compact.icon_button.minWidth))/2,"px")}}}}},oze=pr(j5,Ny),aze=pr(CT,Ny),sze=pr(kT,Ny),O3={primary:{contained:j5,outlined:Vy,ghost:Ly,ghost_icon:Oy,contained_icon:oze},secondary:{contained:CT,outlined:Rxe,ghost:Wxe,ghost_icon:nze,contained_icon:aze},danger:{contained:kT,outlined:Dxe,ghost:Gxe,ghost_icon:ize,contained_icon:sze}},cze=_e.span.withConfig({displayName:"InnerFullWidth__FullWidthCenterContent",componentId:"sc-qeawkb-0"})(["text-align:center;flex:1;"]),lze=_e.span.withConfig({displayName:"InnerFullWidth__FullWidthInner",componentId:"sc-qeawkb-1"})(["height:100%;display:flex;align-items:center;> :is(svg,img){margin-top:var(--eds_button__margin_y,inherit);margin-bottom:var(--eds_button__margin_y,inherit);}> :is(svg,img):first-child{margin-right:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):last-child{margin-left:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):only-child{margin-left:auto;margin-right:auto;}> span:first-child{margin-left:var(--eds_button__fullwidth__margin_x,32px);}> span:last-child{margin-right:var(--eds_button__fullwidth__margin_x,32px);}> span:only-child{margin-right:0;margin-left:0;}"]),dze=y.forwardRef(function(e,r){var n=e.children,i=y.Children.map(n,function(o){return Zs(o)!=="object"?z(cze,{children:o}):o});return z(lze,{ref:r,children:i})});function hze(t){if(Array.isArray(t))return t}function uze(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function Q8(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function AT(t,e){if(t){if(typeof t=="string")return Q8(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q8(t,e)}}function fze(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1822
1822
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ci(t,e){return hze(t)||uze(t,e)||AT(t,e)||fze()}var pze={density:"comfortable"},vze=y.createContext(pze),ns=function(){return y.useContext(vze)},mze=["color","variant","children","disabled","href","tabIndex","fullWidth"],N3=function(e,r){switch(r){case"ghost":return e.ghost;case"ghost_icon":return e.ghost_icon;case"outlined":return e.outlined;case"contained_icon":return e.contained_icon;case"contained":default:return e.contained}},gze=function(e,r){switch(r){case"danger":return N3(O3.danger,e);case"secondary":return N3(O3.secondary,e);case"primary":default:return N3(O3.primary,e)}},yze=_e.span.withConfig({displayName:"Button__Inner",componentId:"sc-1hs0myn-0"})(["display:grid;grid-gap:var(--eds_button__gap,8px);grid-auto-flow:column;align-items:center;height:100%;justify-content:center;& > :is(svg,img){margin-top:var(--eds_button__icon__margin_y,0);margin-bottom:var(--eds_button__icon__margin_y,0);}"]),_ze=_e.button.withConfig({displayName:"Button__ButtonBase",componentId:"sc-1hs0myn-1"})(function(t){var e,r,n,i=t.theme,o=i.states,a=i.clickbound,s=o.focus,c=o.hover,l=o.disabled;return Ye(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:",";height:",";width:",";svg{justify-self:center;}"," "," "," &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-",";left:-",";width:",";height:",";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:",";color:",";",";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}&::-moz-focus-inner{border:0;}&:disabled,&[aria-disabled='true']{cursor:not-allowed;background:",";",";",";@media (hover:hover) and (pointer:fine){&:hover{background:",";}}}"],i.background,i.height,i.width,Ri(i.spacings),xi(i.border),Yr(i.typography),a==null||(e=a.offset)===null||e===void 0?void 0:e.top,a==null||(r=a.offset)===null||r===void 0?void 0:r.left,a==null?void 0:a.width,a==null?void 0:a.height,c.background,(n=c.typography)===null||n===void 0?void 0:n.color,xi(c==null?void 0:c.border),Ai(s.outline),Ai(s.outline),l.background,xi(l.border),Yr(l.typography),l.background)}),MT=y.forwardRef(function(e,r){var n=e.color,i=n===void 0?"primary":n,o=e.variant,a=o===void 0?"contained":o,s=e.children,c=e.disabled,l=c===void 0?!1:c,d=e.href,h=e.tabIndex,u=h===void 0?0:h,f=e.fullWidth,v=f===void 0?!1:f,p=nt(e,mze),_=ns(),m=_.density,g=ha({density:m},gze(a,i)),b=d&&!l?"a":p.as?p.as:"button",w=d||p.as?void 0:"button";u=l?-1:u;var x=E({ref:r,as:b,href:d,type:w,disabled:l,tabIndex:u},p);return z(C1,{theme:g,children:z(_ze,E(E({},x),{},{children:v?z(dze,{children:s}):z(yze,{children:s})}))})}),bze=J.shape.corners.borderRadius,wze={border:{type:"border",radius:bze}},xze=["children","vertical"],zze=wze.border,ls=zze.radius,Cze=_e.div.withConfig({displayName:"ButtonGroup__ButtonGroupBase",componentId:"sc-1fn8jon-0"})(["display:inline-flex;> *{border-radius:0;@media (hover:hover) and (pointer:fine){&:hover{border-radius:0;}}}",""],function(t){var e=t.vertical;return Ye(e?["flex-direction:column;> :first-child{border-top-left-radius:",";border-top-right-radius:",";}> :last-child{border-bottom-left-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-bottom:none;}"]:["> :first-child{border-top-left-radius:",";border-bottom-left-radius:",";}> :last-child{border-top-right-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-right:none;}"],ls,ls,ls,ls)}),$T=y.forwardRef(function(e,r){var n=e.children,i=e.vertical,o=nt(e,xze),a=E({ref:r,vertical:i},o);return z(Cze,E(E({role:"group"},a),{},{children:n}))});function kze(t){if(Array.isArray(t))return Q8(t)}function Eze(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Sze(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1823
1823
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PT(t){return kze(t)||Eze(t)||AT(t)||Sze()}var IT=J.colors,Aze=IT.text.static_icons__primary_white.rgba,Mze=IT.ui.background__overlay.rgba,$ze=J.typography.ui,HT=J.spacings.comfortable,Pze=HT.x_large,P2=HT.small,Ize=J.shape.corners.borderRadius,Ra={typography:E(E({},$ze.tooltip),{},{color:Aze}),background:Mze,border:{type:"border",radius:Ize},entities:{tooltip:{height:Pze},arrow:{width:"6px",height:P2,spacings:{bottom:"-6px",top:"-6px",left:"-6px",right:"-6px"}}},spacings:{left:P2,right:P2,top:P2,bottom:P2}};const Hze=t=>{const{element:e,padding:r}=t;function n(i){return Object.prototype.hasOwnProperty.call(i,"current")}return{name:"arrow",options:t,fn(i){return n(e)?e.current!=null?sv({element:e.current,padding:r}).fn(i):{}:e?sv({element:e,padding:r}).fn(i):{}}}};var F4=typeof document<"u"?y.useLayoutEffect:y.useEffect;function yv(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!yv(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){const o=i[n];if(!(o==="_owner"&&t.$$typeof)&&!yv(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function zk(t){const e=y.useRef(t);return F4(()=>{e.current=t}),e}function Tze(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,whileElementsMounted:o,open:a}=t,[s,c]=y.useState({x:null,y:null,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[l,d]=y.useState(n);yv(l,n)||d(n);const h=y.useRef(null),u=y.useRef(null),f=y.useRef(s),v=zk(o),p=zk(i),[_,m]=y.useState(null),[g,b]=y.useState(null),w=y.useCallback(I=>{h.current!==I&&(h.current=I,m(I))},[]),x=y.useCallback(I=>{u.current!==I&&(u.current=I,b(I))},[]),C=y.useCallback(()=>{if(!h.current||!u.current)return;const I={placement:e,strategy:r,middleware:l};p.current&&(I.platform=p.current),OH(h.current,u.current,I).then(N=>{const U={...N,isPositioned:!0};S.current&&!yv(f.current,U)&&(f.current=U,Co.flushSync(()=>{c(U)}))})},[l,e,r,p]);F4(()=>{a===!1&&f.current.isPositioned&&(f.current.isPositioned=!1,c(I=>({...I,isPositioned:!1})))},[a]);const S=y.useRef(!1);F4(()=>(S.current=!0,()=>{S.current=!1}),[]),F4(()=>{if(_&&g){if(v.current)return v.current(_,g,C);C()}},[_,g,C,v]);const M=y.useMemo(()=>({reference:h,floating:u,setReference:w,setFloating:x}),[w,x]),T=y.useMemo(()=>({reference:_,floating:g}),[_,g]);return y.useMemo(()=>({...s,update:C,refs:M,elements:T,reference:w,floating:x}),[s,C,M,T,w,x])}var zo=typeof document<"u"?y.useLayoutEffect:y.useEffect;let F3=!1,Rze=0;const Ck=()=>"floating-ui-"+Rze++;function Dze(){const[t,e]=y.useState(()=>F3?Ck():void 0);return zo(()=>{t==null&&e(Ck())},[]),y.useEffect(()=>{F3||(F3=!0)},[]),t}const Vze=Fa["useId".toString()],J8=Vze||Dze;function Lze(){const t=new Map;return{emit(e,r){var n;(n=t.get(e))==null||n.forEach(i=>i(r))},on(e,r){t.set(e,[...t.get(e)||[],r])},off(e,r){t.set(e,(t.get(e)||[]).filter(n=>n!==r))}}}const Oze=y.createContext(null),Nze=y.createContext(null),TT=()=>{var t;return((t=y.useContext(Oze))==null?void 0:t.id)||null},q5=()=>y.useContext(Nze);function Wi(t){return(t==null?void 0:t.ownerDocument)||document}function Fy(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function Fze(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:r,version:n}=e;return r+"/"+n}).join(" "):navigator.userAgent}function By(t){return Wi(t).defaultView||window}function ea(t){return t?t instanceof By(t).Element:!1}function Mu(t){return t?t instanceof By(t).HTMLElement:!1}function Bze(t){if(typeof ShadowRoot>"u")return!1;const e=By(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Uze(t){if(t.mozInputSource===0&&t.isTrusted)return!0;const e=/Android/i;return(e.test(Fy())||e.test(Fze()))&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function jze(t){return t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType!=="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0}function kk(){return/apple/i.test(navigator.vendor)}function qze(){return Fy().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function RT(t,e){const r=["mouse","pen"];return e||r.push("",void 0),r.includes(t)}function Z8(t){const e=y.useRef(t);return zo(()=>{e.current=t}),e}const Ek="data-floating-ui-safe-polygon";function B3(t,e,r){return r&&!RT(r)?0:typeof t=="number"?t:t==null?void 0:t[e]}const Wze=function(t,e){let{enabled:r=!0,delay:n=0,handleClose:i=null,mouseOnly:o=!1,restMs:a=0,move:s=!0}=e===void 0?{}:e;const{open:c,onOpenChange:l,dataRef:d,events:h,elements:{domReference:u,floating:f},refs:v}=t,p=q5(),_=TT(),m=Z8(i),g=Z8(n),b=y.useRef(),w=y.useRef(),x=y.useRef(),C=y.useRef(),S=y.useRef(!0),M=y.useRef(!1),T=y.useRef(()=>{}),I=y.useCallback(()=>{var H;const L=(H=d.current.openEvent)==null?void 0:H.type;return(L==null?void 0:L.includes("mouse"))&&L!=="mousedown"},[d]);y.useEffect(()=>{if(!r)return;function H(){clearTimeout(w.current),clearTimeout(C.current),S.current=!0}return h.on("dismiss",H),()=>{h.off("dismiss",H)}},[r,h]),y.useEffect(()=>{if(!r||!m.current||!c)return;function H(){I()&&l(!1)}const L=Wi(f).documentElement;return L.addEventListener("mouseleave",H),()=>{L.removeEventListener("mouseleave",H)}},[f,c,l,r,m,d,I]);const N=y.useCallback(function(H){H===void 0&&(H=!0);const L=B3(g.current,"close",b.current);L&&!x.current?(clearTimeout(w.current),w.current=setTimeout(()=>l(!1),L)):H&&(clearTimeout(w.current),l(!1))},[g,l]),U=y.useCallback(()=>{T.current(),x.current=void 0},[]),Y=y.useCallback(()=>{if(M.current){const H=Wi(v.floating.current).body;H.style.pointerEvents="",H.removeAttribute(Ek),M.current=!1}},[v]);return y.useEffect(()=>{if(!r)return;function H(){return d.current.openEvent?["click","mousedown"].includes(d.current.openEvent.type):!1}function L(A){if(clearTimeout(w.current),S.current=!1,o&&!RT(b.current)||a>0&&B3(g.current,"open")===0)return;d.current.openEvent=A;const B=B3(g.current,"open",b.current);B?w.current=setTimeout(()=>{l(!0)},B):l(!0)}function ee(A){if(H())return;T.current();const B=Wi(f);if(clearTimeout(C.current),m.current){c||clearTimeout(w.current),x.current=m.current({...t,tree:p,x:A.clientX,y:A.clientY,onClose(){Y(),U(),N()}});const O=x.current;B.addEventListener("mousemove",O),T.current=()=>{B.removeEventListener("mousemove",O)};return}N()}function ae(A){H()||m.current==null||m.current({...t,tree:p,x:A.clientX,y:A.clientY,onClose(){Y(),U(),N()}})(A)}if(ea(u)){const A=u;return c&&A.addEventListener("mouseleave",ae),f==null||f.addEventListener("mouseleave",ae),s&&A.addEventListener("mousemove",L,{once:!0}),A.addEventListener("mouseenter",L),A.addEventListener("mouseleave",ee),()=>{c&&A.removeEventListener("mouseleave",ae),f==null||f.removeEventListener("mouseleave",ae),s&&A.removeEventListener("mousemove",L),A.removeEventListener("mouseenter",L),A.removeEventListener("mouseleave",ee)}}},[u,f,r,t,o,a,s,N,U,Y,l,c,p,g,m,d]),zo(()=>{var H;if(r&&c&&(H=m.current)!=null&&H.__options.blockPointerEvents&&I()){const ae=Wi(f).body;if(ae.setAttribute(Ek,""),ae.style.pointerEvents="none",M.current=!0,ea(u)&&f){var L,ee;const A=u,B=p==null||(L=p.nodesRef.current.find(O=>O.id===_))==null||(ee=L.context)==null?void 0:ee.elements.floating;return B&&(B.style.pointerEvents=""),A.style.pointerEvents="auto",f.style.pointerEvents="auto",()=>{A.style.pointerEvents="",f.style.pointerEvents=""}}}},[r,c,_,f,u,p,m,d,I]),zo(()=>{c||(b.current=void 0,U(),Y())},[c,U,Y]),y.useEffect(()=>()=>{U(),clearTimeout(w.current),clearTimeout(C.current),Y()},[r,U,Y]),y.useMemo(()=>{if(!r)return{};function H(L){b.current=L.pointerType}return{reference:{onPointerDown:H,onPointerEnter:H,onMouseMove(){c||a===0||(clearTimeout(C.current),C.current=setTimeout(()=>{S.current||l(!0)},a))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(){h.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),N(!1)}}}},[h,r,a,c,l,N])};function $u(){return $u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$u.apply(this,arguments)}function _v(t){let e=t.activeElement;for(;((r=e)==null||(n=r.shadowRoot)==null?void 0:n.activeElement)!=null;){var r,n;e=e.shadowRoot.activeElement}return e}function Uo(t,e){if(!t||!e)return!1;const r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Bze(r)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}let Sk=0;function wc(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:i=!1}=e;n&&cancelAnimationFrame(Sk);const o=()=>t==null?void 0:t.focus({preventScroll:r});i?o():Sk=requestAnimationFrame(o)}function Gze(t,e){var r;let n=[],i=(r=t.find(o=>o.id===e))==null?void 0:r.parentId;for(;i;){const o=t.find(a=>a.id===i);i=o==null?void 0:o.parentId,o&&(n=n.concat(o))}return n}function B4(t,e){let r=t.filter(i=>{var o;return i.parentId===e&&((o=i.context)==null?void 0:o.open)})||[],n=r;for(;n.length;)n=t.filter(i=>{var o;return(o=n)==null?void 0:o.some(a=>{var s;return i.parentId===a.id&&((s=i.context)==null?void 0:s.open)})})||[],r=r.concat(n);return r}function DT(t){return"composedPath"in t?t.composedPath()[0]:t.target}const Kze="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Yze(t){return Mu(t)&&t.matches(Kze)}function U3(t){t.preventDefault(),t.stopPropagation()}const bv=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function VT(t,e){const r=fd(t,bv());e==="prev"&&r.reverse();const n=r.indexOf(_v(Wi(t)));return r.slice(n+1)[0]}function LT(){return VT(document.body,"next")}function OT(){return VT(document.body,"prev")}function Dh(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!Uo(r,n)}function Xze(t){fd(t,bv()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function Qze(t){t.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const Jze=Fa["useInsertionEffect".toString()],Zze=Jze||(t=>t());function Uy(t){const e=y.useRef(()=>{});return Zze(()=>{e.current=t}),y.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e.current==null?void 0:e.current(...n)},[])}const jy={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let e9,qy;function Ak(t){t.key==="Tab"&&(e9=t.target,clearTimeout(qy))}function eCe(t){const e=e9===t.relatedTarget;return e9=t.relatedTarget,clearTimeout(qy),e}const wv=y.forwardRef(function(e,r){const n=Uy(e.onFocus),[i,o]=y.useState();return zo(()=>(kk()&&o("button"),document.addEventListener("keydown",Ak),()=>{document.removeEventListener("keydown",Ak)}),[]),y.createElement("span",$u({},e,{ref:r,tabIndex:0,role:i,"aria-hidden":i?void 0:!0,"data-floating-ui-focus-guard":"",style:jy,onFocus:a=>{kk()&&qze()&&!eCe(a)?(a.persist(),qy=window.setTimeout(()=>{n(a)},50)):n(a)}}))}),NT=y.createContext(null),tCe=function(t){let{id:e,enabled:r=!0}=t===void 0?{}:t;const[n,i]=y.useState(null),o=J8(),a=FT();return zo(()=>{if(!r)return;const s=e?document.getElementById(e):null;if(s)s.setAttribute("data-floating-ui-portal",""),i(s);else{const c=document.createElement("div");e!==""&&(c.id=e||o),c.setAttribute("data-floating-ui-portal",""),i(c);const l=(a==null?void 0:a.portalNode)||document.body;return l.appendChild(c),()=>{l.removeChild(c)}}},[e,a,o,r]),n},W5=t=>{let{children:e,id:r,root:n=null,preserveTabOrder:i=!0}=t;const o=tCe({id:r,enabled:!n}),[a,s]=y.useState(null),c=y.useRef(null),l=y.useRef(null),d=y.useRef(null),h=y.useRef(null),u=!!a&&!a.modal&&!!(n||o)&&i;return y.useEffect(()=>{if(!o||!i||a!=null&&a.modal)return;function f(v){o&&Dh(v)&&(v.type==="focusin"?Qze:Xze)(o)}return o.addEventListener("focusin",f,!0),o.addEventListener("focusout",f,!0),()=>{o.removeEventListener("focusin",f,!0),o.removeEventListener("focusout",f,!0)}},[o,i,a==null?void 0:a.modal]),y.createElement(NT.Provider,{value:y.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:l,beforeInsideRef:d,afterInsideRef:h,portalNode:o,setFocusManagerState:s}),[i,o])},u&&o&&y.createElement(wv,{"data-type":"outside",ref:c,onFocus:f=>{if(Dh(f,o)){var v;(v=d.current)==null||v.focus()}else{const p=OT()||(a==null?void 0:a.refs.domReference.current);p==null||p.focus()}}}),u&&o&&y.createElement("span",{"aria-owns":o.id,style:jy}),n?Co.createPortal(e,n):o?Co.createPortal(e,o):null,u&&o&&y.createElement(wv,{"data-type":"outside",ref:l,onFocus:f=>{if(Dh(f,o)){var v;(v=h.current)==null||v.focus()}else{const p=LT()||(a==null?void 0:a.refs.domReference.current);p==null||p.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1))}}}))},FT=()=>y.useContext(NT),rCe=y.forwardRef(function(e,r){return y.createElement("button",$u({},e,{type:"button",ref:r,tabIndex:-1,style:jy}))});function nCe(t){let{context:e,children:r,order:n=["content"],guards:i=!0,initialFocus:o=0,returnFocus:a=!0,modal:s=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:l=!0}=t;const{refs:d,nodeId:h,onOpenChange:u,events:f,dataRef:v,elements:{domReference:p,floating:_}}=e,m=Z8(n),g=q5(),b=FT(),[w,x]=y.useState(null),C=typeof o=="number"&&o<0,S=y.useRef(null),M=y.useRef(null),T=y.useRef(!1),I=y.useRef(null),N=y.useRef(!1),U=b!=null,Y=p&&p.getAttribute("role")==="combobox"&&Yze(p),H=y.useCallback(function(A){return A===void 0&&(A=_),A?fd(A,bv()):[]},[_]),L=y.useCallback(A=>{const B=H(A);return m.current.map(O=>p&&O==="reference"?p:_&&O==="floating"?_:B).filter(Boolean).flat()},[p,_,m,H]);y.useEffect(()=>{if(!s)return;function A(O){if(O.key==="Tab"){H().length===0&&!Y&&U3(O);const Q=L(),W=DT(O);m.current[0]==="reference"&&W===p&&(U3(O),O.shiftKey?wc(Q[Q.length-1]):wc(Q[1])),m.current[1]==="floating"&&W===_&&O.shiftKey&&(U3(O),wc(Q[0]))}}const B=Wi(_);return B.addEventListener("keydown",A),()=>{B.removeEventListener("keydown",A)}},[p,_,s,m,d,Y,H,L]),y.useEffect(()=>{if(!l)return;function A(){N.current=!0,setTimeout(()=>{N.current=!1})}function B(O){const Q=O.relatedTarget,W=!(Uo(p,Q)||Uo(_,Q)||Uo(Q,_)||Uo(b==null?void 0:b.portalNode,Q)||Q!=null&&Q.hasAttribute("data-floating-ui-focus-guard")||g&&(B4(g.nodesRef.current,h).find(G=>{var X,ie;return Uo((X=G.context)==null?void 0:X.elements.floating,Q)||Uo((ie=G.context)==null?void 0:ie.elements.domReference,Q)})||Gze(g.nodesRef.current,h).find(G=>{var X,ie;return((X=G.context)==null?void 0:X.elements.floating)===Q||((ie=G.context)==null?void 0:ie.elements.domReference)===Q})));Q&&W&&!N.current&&Q!==I.current&&(T.current=!0,setTimeout(()=>u(!1)))}if(_&&Mu(p))return p.addEventListener("focusout",B),p.addEventListener("pointerdown",A),!s&&_.addEventListener("focusout",B),()=>{p.removeEventListener("focusout",B),p.removeEventListener("pointerdown",A),!s&&_.removeEventListener("focusout",B)}},[p,_,s,h,g,b,u,l]),y.useEffect(()=>{var A;const B=Array.from((b==null||(A=b.portalNode)==null?void 0:A.querySelectorAll("[data-floating-ui-portal]"))||[]);function O(){return[S.current,M.current].filter(Boolean)}if(_&&s){const Q=[_,...B,...O()],W=sye(m.current.includes("reference")||Y?Q.concat(p||[]):Q);return()=>{W()}}},[p,_,s,m,b,Y]),y.useEffect(()=>{if(s&&!i&&_){const A=[],B=bv(),O=fd(Wi(_).body,B),Q=L(),W=O.filter(G=>!Q.includes(G));return W.forEach((G,X)=>{A[X]=G.getAttribute("tabindex"),G.setAttribute("tabindex","-1")}),()=>{W.forEach((G,X)=>{const ie=A[X];ie==null?G.removeAttribute("tabindex"):G.setAttribute("tabindex",ie)})}}},[_,s,i,L]),zo(()=>{if(!_)return;const A=Wi(_);let B=a,O=!1;const Q=_v(A),W=v.current;I.current=Q;const G=L(_),X=(typeof o=="number"?G[o]:o.current)||_;!C&&wc(X,{preventScroll:X===_});function ie(P){if(P.type==="escapeKey"&&d.domReference.current&&(I.current=d.domReference.current),["referencePress","escapeKey"].includes(P.type))return;const Z=P.data.returnFocus;typeof Z=="object"?(B=!0,O=Z.preventScroll):B=Z}return f.on("dismiss",ie),()=>{if(f.off("dismiss",ie),Uo(_,_v(A))&&d.domReference.current&&(I.current=d.domReference.current),B&&Mu(I.current)&&!T.current)if(!d.domReference.current||N.current)wc(I.current,{cancelPrevious:!1,preventScroll:O});else{var P;W.__syncReturnFocus=!0,(P=I.current)==null||P.focus({preventScroll:O}),setTimeout(()=>{delete W.__syncReturnFocus})}}},[_,L,o,a,v,d,f,C]),zo(()=>{if(b)return b.setFocusManagerState({...e,modal:s,closeOnFocusOut:l}),()=>{b.setFocusManagerState(null)}},[b,s,l,e]),zo(()=>{if(C||!_)return;function A(){x(H().length)}if(A(),typeof MutationObserver=="function"){const B=new MutationObserver(A);return B.observe(_,{childList:!0,subtree:!0}),()=>{B.disconnect()}}},[_,H,C,d]);const ee=i&&(U||s)&&!Y;function ae(A){return c&&s?y.createElement(rCe,{ref:A==="start"?S:M,onClick:()=>u(!1)},typeof c=="string"?c:"Dismiss"):null}return y.createElement(y.Fragment,null,ee&&y.createElement(wv,{"data-type":"inside",ref:b==null?void 0:b.beforeInsideRef,onFocus:A=>{if(s){const O=L();wc(n[0]==="reference"?O[0]:O[O.length-1])}else if(b!=null&&b.preserveTabOrder&&b.portalNode)if(T.current=!1,Dh(A,b.portalNode)){const O=LT()||p;O==null||O.focus()}else{var B;(B=b.beforeOutsideRef.current)==null||B.focus()}}}),Y?null:ae("start"),y.cloneElement(r,w===0||n.includes("floating")?{tabIndex:0}:{}),ae("end"),ee&&y.createElement(wv,{"data-type":"inside",ref:b==null?void 0:b.afterInsideRef,onFocus:A=>{if(s)wc(L()[0]);else if(b!=null&&b.preserveTabOrder&&b.portalNode)if(T.current=!0,Dh(A,b.portalNode)){const O=OT()||p;O==null||O.focus()}else{var B;(B=b.afterOutsideRef.current)==null||B.focus()}}}))}const Lf="data-floating-ui-scroll-lock",iCe=y.forwardRef(function(e,r){let{lockScroll:n=!1,...i}=e;return zo(()=>{var o,a;if(!n||document.body.hasAttribute(Lf))return;document.body.setAttribute(Lf,"");const l=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(Fy()))return Object.assign(document.body.style,{overflow:"hidden",[l]:d+"px"}),()=>{document.body.removeAttribute(Lf),Object.assign(document.body.style,{overflow:"",[l]:""})};const h=((o=window.visualViewport)==null?void 0:o.offsetLeft)||0,u=((a=window.visualViewport)==null?void 0:a.offsetTop)||0,f=window.pageXOffset,v=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(v-Math.floor(u))+"px",left:-(f-Math.floor(h))+"px",right:"0",[l]:d+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[l]:""}),document.body.removeAttribute(Lf),window.scrollTo(f,v)}},[n]),y.createElement("div",$u({ref:r},i,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...i.style}}))});function U4(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const r=t;return r.target!=null&&e.contains(r.target)}const oCe={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},aCe={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},sCe=function(t){var e,r;return t===void 0&&(t=!0),{escapeKeyBubbles:typeof t=="boolean"?t:(e=t.escapeKey)!=null?e:!0,outsidePressBubbles:typeof t=="boolean"?t:(r=t.outsidePress)!=null?r:!0}},BT=function(t,e){let{open:r,onOpenChange:n,events:i,nodeId:o,elements:{reference:a,domReference:s,floating:c},dataRef:l}=t,{enabled:d=!0,escapeKey:h=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:v=!1,referencePressEvent:p="pointerdown",ancestorScroll:_=!1,bubbles:m=!0}=e===void 0?{}:e;const g=q5(),b=TT()!=null,w=Uy(typeof u=="function"?u:()=>!1),x=typeof u=="function"?w:u,C=y.useRef(!1),{escapeKeyBubbles:S,outsidePressBubbles:M}=sCe(m);return y.useEffect(()=>{if(!r||!d)return;l.current.__escapeKeyBubbles=S,l.current.__outsidePressBubbles=M;function T(H){if(H.key==="Escape"){const L=g?B4(g.nodesRef.current,o):[];if(L.length>0){let ee=!0;if(L.forEach(ae=>{var A;if((A=ae.context)!=null&&A.open&&!ae.context.dataRef.current.__escapeKeyBubbles){ee=!1;return}}),!ee)return}i.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function I(H){const L=C.current;if(C.current=!1,L||typeof x=="function"&&!x(H))return;const ee=DT(H);if(Mu(ee)&&c){const B=c.ownerDocument.defaultView||window,O=ee.scrollWidth>ee.clientWidth,Q=ee.scrollHeight>ee.clientHeight;let W=Q&&H.offsetX>ee.clientWidth;if(Q&&B.getComputedStyle(ee).direction==="rtl"&&(W=H.offsetX<=ee.offsetWidth-ee.clientWidth),W||O&&H.offsetY>ee.clientHeight)return}const ae=g&&B4(g.nodesRef.current,o).some(B=>{var O;return U4(H,(O=B.context)==null?void 0:O.elements.floating)});if(U4(H,c)||U4(H,s)||ae)return;const A=g?B4(g.nodesRef.current,o):[];if(A.length>0){let B=!0;if(A.forEach(O=>{var Q;if((Q=O.context)!=null&&Q.open&&!O.context.dataRef.current.__outsidePressBubbles){B=!1;return}}),!B)return}i.emit("dismiss",{type:"outsidePress",data:{returnFocus:b?{preventScroll:!0}:Uze(H)||jze(H)}}),n(!1)}function N(){n(!1)}const U=Wi(c);h&&U.addEventListener("keydown",T),x&&U.addEventListener(f,I);let Y=[];return _&&(ea(s)&&(Y=xo(s)),ea(c)&&(Y=Y.concat(xo(c))),!ea(a)&&a&&a.contextElement&&(Y=Y.concat(xo(a.contextElement)))),Y=Y.filter(H=>{var L;return H!==((L=U.defaultView)==null?void 0:L.visualViewport)}),Y.forEach(H=>{H.addEventListener("scroll",N,{passive:!0})}),()=>{h&&U.removeEventListener("keydown",T),x&&U.removeEventListener(f,I),Y.forEach(H=>{H.removeEventListener("scroll",N)})}},[l,c,s,a,h,x,f,i,g,o,r,n,_,d,S,M,b]),y.useEffect(()=>{C.current=!1},[x,f]),y.useMemo(()=>d?{reference:{[oCe[p]]:()=>{v&&(i.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[aCe[f]]:()=>{C.current=!0}}}:{},[d,i,v,f,p,n])},cCe=function(t,e){let{open:r,onOpenChange:n,dataRef:i,events:o,refs:a,elements:{floating:s,domReference:c}}=t,{enabled:l=!0,keyboardOnly:d=!0}=e===void 0?{}:e;const h=y.useRef(""),u=y.useRef(!1),f=y.useRef();return y.useEffect(()=>{if(!l)return;const p=Wi(s).defaultView||window;function _(){!r&&Mu(c)&&c===_v(Wi(c))&&(u.current=!0)}return p.addEventListener("blur",_),()=>{p.removeEventListener("blur",_)}},[s,c,r,l]),y.useEffect(()=>{if(!l)return;function v(p){(p.type==="referencePress"||p.type==="escapeKey")&&(u.current=!0)}return o.on("dismiss",v),()=>{o.off("dismiss",v)}},[o,l]),y.useEffect(()=>()=>{clearTimeout(f.current)},[]),y.useMemo(()=>l?{reference:{onPointerDown(v){let{pointerType:p}=v;h.current=p,u.current=!!(p&&d)},onMouseLeave(){u.current=!1},onFocus(v){var p;u.current||v.type==="focus"&&((p=i.current.openEvent)==null?void 0:p.type)==="mousedown"&&i.current.openEvent&&U4(i.current.openEvent,c)||(i.current.openEvent=v.nativeEvent,n(!0))},onBlur(v){u.current=!1;const p=v.relatedTarget,_=ea(p)&&p.hasAttribute("data-floating-ui-focus-guard")&&p.getAttribute("data-type")==="outside";f.current=setTimeout(()=>{Uo(a.floating.current,p)||Uo(c,p)||_||n(!1)})}}}:{},[l,d,c,a,i,n])},lCe=function(t,e){let{open:r}=t,{enabled:n=!0,role:i="dialog"}=e===void 0?{}:e;const o=J8(),a=J8();return y.useMemo(()=>{const s={id:o,role:i};return n?i==="tooltip"?{reference:{"aria-describedby":r?o:void 0},floating:s}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":r?o:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:a}},floating:{...s,...i==="menu"&&{"aria-labelledby":a}}}:{}},[n,i,r,o,a])};function G5(t){t===void 0&&(t={});const{open:e=!1,onOpenChange:r,nodeId:n}=t,i=Tze(t),o=q5(),a=y.useRef(null),s=y.useRef({}),c=y.useState(()=>Lze())[0],[l,d]=y.useState(null),h=y.useCallback(m=>{const g=ea(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),contextElement:m}:m;i.refs.setReference(g)},[i.refs]),u=y.useCallback(m=>{(ea(m)||m===null)&&(a.current=m,d(m)),(ea(i.refs.reference.current)||i.refs.reference.current===null||m!==null&&!ea(m))&&i.refs.setReference(m)},[i.refs]),f=y.useMemo(()=>({...i.refs,setReference:u,setPositionReference:h,domReference:a}),[i.refs,u,h]),v=y.useMemo(()=>({...i.elements,domReference:l}),[i.elements,l]),p=Uy(r),_=y.useMemo(()=>({...i,refs:f,elements:v,dataRef:s,nodeId:n,events:c,open:e,onOpenChange:p}),[i,n,c,e,p,f,v]);return zo(()=>{const m=o==null?void 0:o.nodesRef.current.find(g=>g.id===n);m&&(m.context=_)}),y.useMemo(()=>({...i,context:_,refs:f,reference:u,positionReference:h}),[i,f,_,u,h])}function j3(t,e,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...t,...e.map(i=>i?i[r]:null).concat(t).reduce((i,o)=>(o&&Object.entries(o).forEach(a=>{let[s,c]=a;if(s.indexOf("on")===0){if(n.has(s)||n.set(s,[]),typeof c=="function"){var l;(l=n.get(s))==null||l.push(c),i[s]=function(){for(var d,h=arguments.length,u=new Array(h),f=0;f<h;f++)u[f]=arguments[f];(d=n.get(s))==null||d.forEach(v=>v(...u))}}}else i[s]=c}),i),{})}}const Wy=function(t){t===void 0&&(t=[]);const e=t,r=y.useCallback(o=>j3(o,t,"reference"),e),n=y.useCallback(o=>j3(o,t,"floating"),e),i=y.useCallback(o=>j3(o,t,"item"),t.map(o=>o==null?void 0:o.item));return y.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:i}),[r,n,i])};var dCe=["title","placement","children","style","enterDelay"],hCe=_e.div.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-m2im2p-0"})([""," "," "," background:",";z-index:1500;white-space:nowrap;&::before{content:'; Has tooltip: ';clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;}"],Yr(Ra.typography),Ri(Ra.spacings),xi(Ra.border),Ra.background),uCe=_e.div.withConfig({displayName:"Tooltip__ArrowWrapper",componentId:"sc-m2im2p-1"})(["position:absolute;width:",";height:",";z-index:-1;"],Ra.entities.arrow.width,Ra.entities.arrow.height),fCe=_e.svg.withConfig({displayName:"Tooltip__TooltipArrow",componentId:"sc-m2im2p-2"})(["width:",";height:",";position:absolute;fill:",";"],Ra.entities.arrow.width,Ra.entities.arrow.height,Ra.background),pCe=y.forwardRef(function(e,r){var n=e.title,i=e.placement,o=i===void 0?"bottom":i,a=e.children,s=e.style,c=e.enterDelay,l=c===void 0?100:c,d=nt(e,dCe),h=y.useRef(null),u=y.useState(!1),f=Ci(u,2),v=f[0],p=f[1],_=n!=="",m=G5({placement:o,open:v,onOpenChange:p,middleware:[P5(14),$5(),I5({padding:8}),Hze({element:h})],whileElementsMounted:R5}),g=m.x,b=m.y,w=m.reference,x=m.floating,C=m.strategy,S=m.context,M=m.middlewareData.arrow,T=M===void 0?{}:M,I=T.x,N=T.y,U=m.placement,Y=y.useMemo(function(){return Ao(w,a==null?void 0:a.ref)},[w,a==null?void 0:a.ref]),H=y.useMemo(function(){return Ao(x,r)},[x,r]),L=Wy([Wze(S,{delay:{open:l}}),cCe(S),lCe(S,{role:"tooltip"}),BT(S)]),ee=L.getReferenceProps,ae=L.getFloatingProps;y.useEffect(function(){var B={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]],O="none";switch(B){case"right":O="rotateY(180deg)";break;case"left":O="none";break;case"top":O="rotate(90deg)";break;case"bottom":O="rotate(-90deg)";break}if(h.current){var Q;Object.assign(h.current.style,(Q={left:I!=null?"".concat(I,"px"):"",top:N!=null?"".concat(N,"px"):"",right:"",bottom:""},fv(Q,B,"-6px"),fv(Q,"transform",O),Q))}});var A=y.cloneElement(a,E({},ee(E({ref:Y},a.props))));return pe(Fn,{children:[z(W5,{id:"eds-tooltip-container",children:_&&v&&pe(hCe,E(E(E({},d),ae({ref:H,style:E(E({},s),{},{position:C,top:b||0,left:g||0})})),{},{children:[n,z(uCe,{ref:h,children:z(fCe,{className:"arrowSvg",children:z("path",{d:"M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"})})})]}))}),A]})}),vCe=["children","multiple","selectedIndexes","onChange"],mCe=y.forwardRef(function(e,r){var n=e.children,i=e.multiple,o=e.selectedIndexes,a=e.onChange,s=nt(e,vCe),c=y.useState(o||[]),l=Ci(c,2),d=l[0],h=l[1];y.useEffect(function(){Array.isArray(o)&&h(o)},[o]);function u(v,p,_){var m=v;if(y.isValidElement(v)&&v.type===MT){var g={"aria-pressed":p?!0:void 0,variant:p?"contained":"outlined",onClick:function(w){var x,C;(x=m.props)===null||x===void 0||(C=x.onClick)===null||C===void 0||C.call(x,w);var S=[_];i&&(S=d.includes(_)?d.filter(function(M){return M!==_}):[].concat(PT(d),[_])),h(S),a&&a(S)}};return y.cloneElement(v,g)}}var f=y.Children.map(n,function(v,p){var _=d.includes(p),m=v;if(y.isValidElement(v)&&v.type===pCe){var g=y.Children.map(m.props.children,function(b){return u(b,_,p)});return y.cloneElement(m,null,g[0])}else return u(m,_,p)});return z($T,E(E({ref:r},s),{},{children:f}))}),Mi=MT;Mi.Group=$T;Mi.Toggle=mCe;Mi.Group.displayName="Button.Group";Mi.Toggle.displayName="Button.Toggle";function Ct(){return Ct=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ct.apply(this,arguments)}var t9={},Mk=0,gCe=function(e){t9=E(E({},t9),e)},yCe=function(e){return Mk+=1,{icon:t9[e],count:Mk}},_Ce=["size","color","name","rotation","title","data"],bCe=function(e){var r=e.rotation;return r?"transform: rotate(".concat(r,"deg)"):""},wCe=_e.svg.attrs(function(t){var e=t.height,r=t.width,n=t.fill;return{name:null,xmlns:"http://www.w3.org/2000/svg",height:"".concat(e,"px"),width:"".concat(r,"px"),fill:n}}).withConfig({displayName:"Icon__StyledSvg",componentId:"sc-6evbi1-0"})(["",""],bCe),xCe=_e.path.attrs(function(t){var e=t.height,r=t.size;return{size:null,fillRule:"evenodd",clipRule:"evenodd",transform:r/e!==1?"scale(".concat(r/e,")"):null}}).withConfig({displayName:"Icon__StyledPath",componentId:"sc-6evbi1-1"})([""]),zCe=function(e){return{icon:e,count:Math.floor(Math.random()*1e3)}},CCe=function(e,r,n){var i=r?zCe(r):yCe(e),o=i.icon,a=i.count;if(n<24){var s;o=((s=o.sizes)===null||s===void 0?void 0:s.small)||o}return{icon:o,count:a}},kCe=y.forwardRef(function(e,r){var n=e.size,i=e.color,o=i===void 0?"currentColor":i,a=e.name,s=e.rotation,c=e.title,l=e.data,d=nt(e,_Ce),h=CCe(a,l,n),u=h.icon,f=h.count;if(typeof u>"u")throw Error('Icon "'.concat(a,'" not found. Have you added it using Icon.add() or using data props?'));var v=n||parseInt(u.width),p=n||parseInt(u.height),_={height:v,width:p,fill:o,viewBox:"0 0 ".concat(p," ").concat(v),rotation:s,name:a,"aria-hidden":!0},m={d:u.svgPathData,height:u.height?u.height:n,size:n||u.height},g="";return c&&(g="".concat(u.prefix,"-").concat(u.name,"-").concat(f),_=E(E({},_),{},{title:c,role:"img","aria-hidden":void 0,"aria-labelledby":g})),pe(wCe,E(E(E({},_),d),{},{ref:r,children:[c&&z("title",{id:g,children:c}),z(xCe,E({"data-testid":"eds-icon-path"},m))]}))}),Mn=kCe;Mn.add=gCe;var ECe=J.typography.paragraph,SCe={typography:ECe.body_short},ACe=["children","variant"],MCe=SCe.typography,$Ce=_e.ul.withConfig({displayName:"List__StyledList",componentId:"sc-v9d2hy-0"})([""," ",""],function(t){var e=t.as;return e==="ol"?Ye(["& ol{list-style-type:lower-alpha;}"]):""},Yr(MCe)),PCe=y.forwardRef(function(e,r){var n=e.children,i=e.variant,o=i===void 0?"bullet":i,a=nt(e,ACe),s=o==="numbered"?"ol":"ul";return z($Ce,E(E({as:s,ref:r},a),{},{children:n}))}),ICe=["children"],HCe=y.forwardRef(function(e,r){var n=e.children,i=nt(e,ICe);return z("li",E(E({},i),{},{ref:r,children:n}))}),Gy=PCe;Gy.Item=HCe;Gy.Item.displayName="List.Item";var TCe=J.elevation,RCe=J.colors.ui.background__default.rgba,DCe={background:RCe},VCe=["elevation"],LCe=_e.div.withConfig({displayName:"Paper__StyledPaper",componentId:"sc-6ncnv9-0"})(["background:",";box-shadow:",";"],DCe.background,function(t){var e=t.$elevation;return e}),Ky=y.forwardRef(function(e,r){var n,i=e.elevation,o=nt(e,VCe),a=E(E({},o),{},{$elevation:(n=TCe[i])!==null&&n!==void 0?n:"none"});return z(LCe,E(E({},a),{},{ref:r}))}),Yy=J.typography,OCe=J.colors,NCe=J.interactions.focused.width,FCe=Yy.heading,BCe=Yy.paragraph,k1=OCe.interactive,UCe=k1.primary__resting.rgba,jCe=k1.secondary__resting.rgba,qCe=k1.danger__resting.rgba,WCe=k1.warning__resting.rgba,GCe=k1.success__resting.rgba,KCe=k1.disabled__text.rgba,YCe=k1.focus.rgba,$k={primary:UCe,secondary:jCe,danger:qCe,warning:WCe,success:GCe,disabled:KCe},Pk=E(E({},FCe),BCe),Ik={states:{focus:{outline:{width:NCe,color:YCe,style:"dashed",type:"outline",offset:"2px"}}}},XCe=["variant","children","bold","italic","link","group","token","as"],QCe=function(e,r){if(r)return"a";switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return e;case"caption":case"overline":case"ingress":case"meta":case"body_short":case"body_long":default:return"p"}},JCe=function(e,r){return!r&&Pk[e]?Pk[e]:Yy[r][e]},ZCe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return typeof $k[e]>"u"?e:$k[e]},eke=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return"".concat(e).concat(r?"_bold":"").concat(n?"_italic":"").concat(i?"_link":"")},tke=_e.p.withConfig({displayName:"Typography__StyledTypography",componentId:"sc-179guof-0"})([""," "," "," ",""],function(t){var e=t.typography,r=t.$link;return Yr(e,r)},function(t){var e=t.color;return Ye({color:ZCe(e)})},function(t){var e=t.lines;return e>0&&Ye(["&{display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"],e)},function(t){var e=t.$link;return e&&Ye(["&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],Ai(Ik.states.focus.outline),Ai(Ik.states.focus.outline))}),Xy=y.forwardRef(function(e,r){var n=e.variant,i=n===void 0?"body_short":n,o=e.children,a=e.bold,s=e.italic,c=e.link,l=e.group,d=e.token,h=e.as,u=nt(e,XCe),f=h||QCe(i,c),v=eke(i,a,s,c),p=JCe(v,l);if(typeof p>"u")throw new Error('Typography variant not found for variant "'.concat(v,'" ("').concat(i,'") & group "').concat(l||"",'"'));return z(tke,E(E({as:f,typography:E(E({},p),d),$link:c,ref:r},u),{},{children:o}))}),I2=J.spacings.comfortable.medium,UT=J.typography,Hk=UT.ui.accordion_header,rke=UT.paragraph.body_long,nke=J.colors.ui.background__default.rgba,ike=J.shape.corners.borderRadius,oke={width:"252px",background:nke,typography:Hk,border:{type:"border",radius:ike},spacings:{bottom:I2},entities:{children:{spacings:{top:I2,bottom:I2,left:I2,right:I2}},title:{minHeight:"24px",typography:Hk},content:{minHeight:"80px",height:"104px",typography:rke},actions:{minHeight:"48px"}},modes:{compact:{}}},ake=J.colors.ui.background__scrim.rgba,ske={background:ake},cke=["children","onClose","open","isDismissable"],lke=ske.background,dke=_e(iCe).withConfig({displayName:"Scrim__StyledScrim",componentId:"sc-1fr7uvy-0"})(["background:",";z-index:1300;align-items:center;justify-content:center;display:flex;"],lke),hke=_e.div.withConfig({displayName:"Scrim__ScrimContent",componentId:"sc-1fr7uvy-1"})(["width:auto;height:auto;"]),uke=y.forwardRef(function(e,r){var n=e.children,i=e.onClose,o=e.open,a=e.isDismissable,s=a===void 0?!1:a,c=nt(e,cke),l=y.useRef(null),d=y.useMemo(function(){return Ao(l,r)},[l,r]);ev("Escape",function(){s&&i&&o&&i()});var h=function(f){f&&f.target===l.current&&f.type==="click"&&s&&o&&i&&i()};return o?z(dke,E(E({lockScroll:!0,onClick:h,ref:d},c),{},{children:z(hke,{children:n})})):null}),fke=["children","open","onClose","isDismissable"],pke=_e(Ky).attrs({tabIndex:0,role:"dialog","aria-labelledby":"eds-dialog-title","aria-describedby":"eds-dialog-customcontent","aria-modal":!0}).withConfig({displayName:"Dialog__StyledDialog",componentId:"sc-1mewo3f-0"})(function(t){var e=t.theme;return Ye(["width:",";background:",";display:grid;grid-auto-columns:auto;",";",";grid-gap:",";overflow:hidden;"],e.width,e.background,Yr(e.typography),xi(e.border),e.spacings.bottom)}),vke=y.forwardRef(function(e,r){var n=e.children,i=e.open,o=e.onClose,a=e.isDismissable,s=a===void 0?!1:a,c=nt(e,fke),l=ns(),d=l.density,h=ha({density:d},oke),u=G5(),f=u.floating,v=u.context,p=function(){o&&o()},_=y.useMemo(function(){return Ao(f,r)},[f,r]),m=E(E({},c),{},{open:i});return z(W5,{id:"eds-dialog-container",children:z(C1,{theme:h,children:i&&z(uke,{open:!0,isDismissable:s,onClose:p,children:z(nCe,{context:v,modal:!0,returnFocus:!0,children:z(pke,E(E({elevation:"above_scrim"},m),{},{ref:_,children:n}))})})})})}),mke=["children"],gke=_e.div.withConfig({displayName:"DialogActions__StyledDialogActions",componentId:"sc-16ydtxd-0"})(function(t){var e=t.theme,r=t.children;return Ye(["align-self:end;justify-self:start;padding:0 "," 0 ",";&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}",""],e.entities.children.spacings.right,e.entities.children.spacings.left,e.entities.children.spacings.top,e.entities.children.spacings.bottom,!r&&Ye(["min-height:initial;height:'8px';"]))}),yke=y.forwardRef(function(e,r){var n=e.children,i=nt(e,mke);return z(gke,E(E({ref:r},i),{},{children:n}))}),_ke=["children"],bke=_e.div.withConfig({displayName:"DialogTitle__StyledDialogTitle",componentId:"sc-1t3jljt-0"})(function(t){var e=t.theme,r=t.children;return Ye([""," min-height:",";align-self:end;justify-self:start;margin-right:",";",""],Yr(e.entities.title.typography),e.entities.title.minHeight,e.entities.children.spacings.right,!r&&Ye(["min-height:initial;height:'8px';"]))}),wke=y.forwardRef(function(e,r){var n=e.children,i=nt(e,_ke);return z(Fn,{children:z(bke,E(E({id:"eds-dialog-title",ref:r},i),{},{children:n}))})}),Qy=J.colors.ui,xke=Qy.background__default.rgba,zke=Qy.background__light.rgba,Cke=Qy.background__medium.rgba,jT=J.spacings.comfortable,Tk=jT.small,Rk=jT.medium,qT={lighter:{background:xke},light:{background:zke},mediumColor:{background:Cke}},kke={spacings:{top:Tk,bottom:Tk}},Eke={spacings:{top:Rk,bottom:Rk}};const Dk=Object.freeze(Object.defineProperty({__proto__:null,divider:qT,medium:Eke,small:kke},Symbol.toStringTag,{value:"Module"}));var Ske=["color","variant","size"],Ake=qT,Mke=_e.hr.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1d8osde-0"})(function(t){var e=t.backgroundColor,r=t.marginTop,n=t.marginBottom,i=t.dividerHeight;return Ye(["border:none;background-color:",";margin-top:",";margin-bottom:calc("," - ","px);height:","px;"],e,r,n,i,i)}),Jy=y.forwardRef(function(e,r){var n=e.color,i=n===void 0?"medium":n,o=e.variant,a=o===void 0?"medium":o,s=e.size,c=s===void 0?"1":s,l=nt(e,Ske),d=i==="medium"?"mediumColor":i,h=E({backgroundColor:Ake[d].background,marginTop:Dk[a].spacings.top,marginBottom:Dk[a].spacings.bottom,dividerHeight:parseInt(c)},l);return z(Mke,E(E({},h),{},{ref:r}))}),$ke=["children","scrollable"],Pke=_e.div.withConfig({displayName:"DialogContent__StyledDialogContent",componentId:"sc-1tze18k-0"})(function(t){var e=t.theme,r=t.scrollable;return Ye(["--content-spacing-top:",";"," min-height:",";align-self:stretch;justify-self:stretch;padding:0 "," 0 ",";&:first-child{padding-top:var(--content-spacing-top);}&:last-child{padding-bottom:",";}",""],e.entities.children.spacings.top,Yr(e.entities.content.typography),e.entities.content.minHeight,e.entities.children.spacings.right,e.entities.children.spacings.left,e.entities.children.spacings.bottom,r&&Ye(["&:not(:first-child){margin-top:calc(var(--content-spacing-top) * -1);}padding-top:var(--content-spacing-top);margin-bottom:calc(var(--content-spacing-top) * -1);padding-bottom:var(--content-spacing-top);min-height:initial;height:",";overflow-y:auto;"],e.entities.content.height))}),Ike=_e(Jy).withConfig({displayName:"DialogContent__StyledDivider",componentId:"sc-1tze18k-1"})(["width:100%;margin:0;"]),WT=y.forwardRef(function(e,r){var n=e.children,i=e.scrollable,o=i===void 0?!1:i,a=nt(e,$ke),s=E({scrollable:o,ref:r},a);return pe(Fn,{children:[z(Pke,E(E({id:"eds-dialog-customcontent"},s),{},{children:n})),n&&o&&z(Ike,{color:"medium",variant:"small"})]})}),Hke=["children"],Tke=_e.div.withConfig({displayName:"DialogHeader__StyledDialogHeader",componentId:"sc-mbwcos-0"})(function(t){var e=t.theme;return Ye(["display:flex;justify-content:space-between;align-items:center;padding:"," "," 0 ",";"],e.entities.children.spacings.top,e.entities.children.spacings.right,e.entities.children.spacings.left)}),Rke=_e(Jy).withConfig({displayName:"DialogHeader__StyledDivider",componentId:"sc-mbwcos-1"})(["margin-bottom:0;"]),Dke=y.forwardRef(function(e,r){var n=e.children,i=nt(e,Hke),o=E(E({},i),{},{ref:r});return pe("div",E(E({},o),{},{children:[z(Tke,{children:n}),z(Rke,{variant:"small",color:"medium"})]}))}),gr=vke;gr.Actions=yke;gr.Title=wke;gr.CustomContent=WT;gr.Content=WT;gr.Header=Dke;gr.Actions.displayName="Dialog.Actions";gr.Title.displayName="Dialog.Title";gr.Content.displayName="Dialog.Content";gr.Header.displayName="Dialog.Header";var Vke=["children"],Lke=_e.div.withConfig({displayName:"SnackbarAction__StyledSnackbarAction",componentId:"sc-1v5mjvd-0"})(function(t){var e=t.theme;return Ye(["display:inline-flex;margin-left:",";margin-top:",";margin-bottom:",";"],e.entities.actions.spacings.left,e.entities.actions.spacings.top,e.entities.actions.spacings.bottom)}),Oke=y.forwardRef(function(e,r){var n=e.children,i=nt(e,Vke),o=E(E({},i),{},{ref:r});return z(Lke,E(E({},o),{},{children:y.Children.only(n)}))}),Nke=J.typography.ui.snackbar,Zy=J.colors,Fke=Zy.ui.background__overlay.rgba,Bke=Zy.text.static_icons__primary_white.rgba,Uke=Zy.interactive.link_in_snackbars.rgba,GT=J.spacings.comfortable,Of=GT.medium,jke=GT.x_large,qke=J.clickbounds.default__base,Wke=J.shape.button.borderRadius,Gke={background:Fke,minHeight:qke,border:{type:"border",width:0,radius:Wke},entities:{actions:{spacings:{left:jke,top:"-10px",bottom:"-10px"}},button:{typography:{color:Uke}}},spacings:{left:Of,bottom:Of,right:Of,top:Of},typography:E(E({},Nke),{},{color:Bke}),modes:{compact:{}}},Kke=["open","autoHideDuration","onClose","placement","children"],Yke=_e(Ky).withConfig({displayName:"Snackbar__StyledSnackbar",componentId:"sc-ac6no8-0"})(function(t){var e=t.theme,r=t.placement;return Ye(["position:fixed;background-color:",";"," "," "," min-height:",";box-sizing:border-box;z-index:1400;"," a,button{color:",";}"],e.background,Ri(e.spacings),xi(e.border),Yr(e.typography),e.minHeight,{top:r.includes("top")?e.spacings.top:r==="left"||r==="right"?"50%":void 0,bottom:r.includes("bottom")?e.spacings.bottom:void 0,right:r.includes("right")?e.spacings.right:void 0,left:r.includes("left")?e.spacings.left:r==="top"||r==="bottom"?"50%":void 0,transform:r==="left"||r==="right"?"translateY(-50%)":r==="top"||r==="bottom"?"translateX(-50%)":void 0},e.entities.button.typography.color)}),Xke=y.forwardRef(function(e,r){var n=e.open,i=n===void 0?!1:n,o=e.autoHideDuration,a=o===void 0?7e3:o,s=e.onClose,c=e.placement,l=c===void 0?"bottom":c,d=e.children,h=nt(e,Kke),u=y.useState(i),f=Ci(u,2),v=f[0],p=f[1],_=y.useRef();y.useEffect(function(){return p(i),_.current=setTimeout(function(){p(!1),s&&s()},a),function(){return clearTimeout(_.current)}},[i,a,p,s]);var m=E({ref:r,placement:l},h),g=ns(),b=g.density,w=ha({density:b},Gke);return z(C1,{theme:w,children:v&&Co.createPortal(z(Yke,E(E({role:"alert",elevation:"overlay"},m),{},{children:d})),document.body)})}),KT=Xke;KT.Action=Oke;var YT=J.colors.infographic,Qke=YT.primary__moss_green_13.rgba,Jke=YT.primary__moss_green_100.rgba,e_={background:Qke,entities:{progress:{background:Jke}}},Zke=["variant","value"],eEe=L0(["0%{left:-200%;right:100%;}60%{left:107%;right:-8%;}100%{left:107%;right:-8%;}"]),tEe=_e.div.withConfig({displayName:"LinearProgress__Track",componentId:"sc-5orxpi-0"})(["position:relative;overflow:hidden;height:4px;background-color:",";width:100%;border-radius:50px;"],e_.background),rEe=_e.div.withConfig({displayName:"LinearProgress__ProgressBar",componentId:"sc-5orxpi-1"})(["transition:transform 0.4s linear;background-color:",";width:100%;border-radius:50px;position:absolute;left:0;bottom:0;top:0;transition:transform 0.2s linear;transform-origin:left;"],e_.entities.progress.background),nEe=_e.div.withConfig({displayName:"LinearProgress__IndeterminateProgressBar",componentId:"sc-5orxpi-2"})(["width:75%;border-radius:50px;position:absolute;left:0;bottom:0;top:0;transition:transform 0.2s linear;transform-origin:left;background-color:",";animation:"," 1.5s cubic-bezier(0.165,0.84,0.44,1) 1s infinite;"],e_.entities.progress.background,eEe),iEe=_e.output.withConfig({displayName:"LinearProgress__SrOnlyOutput",componentId:"sc-5orxpi-3"})(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]),oEe=y.forwardRef(function(e,r){var n=e.variant,i=n===void 0?"indeterminate":n,o=e.value,a=o===void 0?null:o,s=nt(e,Zke),c=E(E({},s),{},{ref:r}),l=y.useState(0),d=Ci(l,2),h=d[0],u=d[1],f;if(i==="determinate"&&a!==void 0){c["aria-valuenow"]=Math.round(a),c["aria-valuemin"]=0,c["aria-valuemax"]=100;var v=a-100;f="translateX(".concat(v,"%)")}var p={transform:f};y.useEffect(function(){i!=="indeterminate"&&(a>=25&&a<50?u(25):a>=50&&a<75?u(50):a>=75&&a<100?u(75):a===100&&u(100))},[a,i]);var _=function(){return"Loading ".concat(h,"%")};return pe(Fn,{children:[z(tEe,E(E({},c),{},{role:"progressbar",children:i==="indeterminate"?z(nEe,{}):z(rEe,{style:p})})),i==="determinate"&&z(iEe,{children:_()})]})}),t_=J.colors,XT=t_.infographic,aEe=XT.primary__moss_green_13.rgba,sEe=XT.primary__moss_green_100.rgba,cEe=t_.interactive.icon_on_interactive_colors.rgba,lEe=t_.ui.background__semitransparent.rgba,dEe={background:aEe,entities:{progress:{background:sEe}}},hEe={background:lEe,entities:{progress:{background:cEe}}};const Vk=Object.freeze(Object.defineProperty({__proto__:null,neutral:hEe,primary:dEe},Symbol.toStringTag,{value:"Module"}));var uEe=["variant","value","size","color"],fEe=L0(["100%{transform:rotate(360deg);}"]),pEe=_e.svg.withConfig({displayName:"CircularProgress__Svg",componentId:"sc-hib054-0"})(["display:inline-block;",";"],function(t){var e=t.variant;return e==="indeterminate"?Ye(["animation:"," 1.4s linear infinite;"],fEe):Ye(["transform:rotate(-90deg);"])}),vEe=_e.output.withConfig({displayName:"CircularProgress__SrOnlyOutput",componentId:"sc-hib054-1"})(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]),mEe=_e.circle.withConfig({displayName:"CircularProgress__TrackCircle",componentId:"sc-hib054-2"})([""]),gEe=_e.circle.withConfig({displayName:"CircularProgress__ProgressCircle",componentId:"sc-hib054-3"})([""]),yEe=function(e){return Vk[e]?Vk[e]:{background:"transparent",entities:{progress:{background:e}}}},QT=y.forwardRef(function(e,r){var n=e.variant,i=n===void 0?"indeterminate":n,o=e.value,a=o===void 0?null:o,s=e.size,c=s===void 0?48:s,l=e.color,d=l===void 0?"primary":l,h=nt(e,uEe),u=4,f=Math.round(a),v={},p=E(E({},h),{},{ref:r,variant:i}),_=yEe(d),m=y.useState(0),g=Ci(m,2),b=g[0],w=g[1],x=2*Math.PI*((48-u)/2);i==="determinate"&&(v.stroke=x.toFixed(3),v.strokeDashoffset="".concat(((100-f)/100*x).toFixed(3),"px"),p["aria-valuenow"]=f,a!==void 0&&(p["aria-valuenow"]=f,p["aria-valuemin"]=0,p["aria-valuemax"]=100)),y.useEffect(function(){i!=="indeterminate"&&(f>=25&&f<50?w(25):f>=50&&f<75?w(50):f>=75&&f<100?w(75):f===100&&w(100))},[f,i]);var C=function(){return"Loading ".concat(b,"%")};return pe(Fn,{children:[pe(pEe,E(E({},p),{},{viewBox:"24 24 48 48",role:"progressbar",height:c,width:c,preserveAspectRatio:"xMidYMid meet",children:[z(mEe,{style:v,cx:48,cy:48,r:(48-u)/2,fill:"none",strokeWidth:u,stroke:_.background}),z(gEe,{style:v,cx:48,cy:48,r:(48-u)/2,fill:"none",strokeLinecap:"round",strokeWidth:u,strokeDasharray:i==="determinate"?x:48,stroke:_.entities.progress.background})]})),i==="determinate"&&z(vEe,{children:C()})]})}),_Ee=J.colors.logo.fill_positive.rgba,bEe={background:_Ee},wEe=["variant","value","size"],B1=L0(["0%{opacity:1;}20%{opacity:0.8;}40%{opacity:0.6;}60%{opacity:0.4;}80%{opacity:0.2;}100%{opacity:0.05;}"]),xEe=L0(["0%{opacity:0;}10%{opacity:0.05;}20%{opacity:0.2;}40%{opacity:0.4;}60%{opacity:0.6;}80%{opacity:0.8;}100%{opacity:1;}"]),zEe=_e.svg.withConfig({displayName:"StarProgress__Svg",componentId:"sc-c0byj9-0"})(["fill:",";",""],bEe.background,function(t){var e=t.variant,r=t.progress;return e==="indeterminate"?Ye(["path{&:nth-child(1){animation:"," 1.3s linear infinite;}&:nth-child(2){animation:"," 1.3s linear 0.3s infinite;}&:nth-child(3){animation:"," 1.3s linear 0.4s infinite;}&:nth-child(4){animation:"," 1.3s linear 0.6s infinite;}&:nth-child(5){animation:"," 1.3s linear 0.8s infinite;}&:nth-child(6){animation:"," 1.3s linear 1s infinite;}}"],B1,B1,B1,B1,B1,B1):Ye(["path{animation:"," 1.3s linear;&:nth-child(6){animation-play-state:",";}&:nth-child(5){animation-play-state:",";}&:nth-child(4){animation-play-state:",";}&:nth-child(3){animation-play-state:",";}&:nth-child(2){animation-play-state:",";}&:nth-child(1){animation-play-state:",";}}"],xEe,r>90?"running":"paused",r>80?"running":"paused",r>60?"running":"paused",r>40?"running":"paused",r>20?"running":"paused",r<=20?"running":"paused")}),CEe=y.forwardRef(function(e,r){var n=e.variant,i=n===void 0?"indeterminate":n,o=e.value,a=o===void 0?null:o,s=e.size,c=s===void 0?48:s,l=nt(e,wEe),d=Math.round(a),h=c*1.2,u=c,f=E(E({},l),{},{ref:r,variant:i,progress:d});return i==="determinate"&&a!==void 0&&(f["aria-valuenow"]=d,f["aria-valuemin"]=0,f["aria-valuemax"]=100),pe(zEe,E(E({},f),{},{role:"progressbar",width:u,height:h,viewBox:"0 0 40 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",children:[z("path",{d:"M32.756 34.6798L29.482 36.5817C29.4139 36.6219 29.3295 36.6227 29.2606 36.5829L25.9476 34.7151C25.7975 34.6306 25.7967 34.4149 25.9456 34.3284L29.2397 32.4256C29.3077 32.3858 29.3914 32.3858 29.4603 32.4248L32.754 34.2931C32.9033 34.3784 32.9041 34.5929 32.756 34.6798Z"}),z("path",{d:"M25.9596 45.4706L22.6655 43.5867C22.5966 43.5469 22.554 43.4744 22.554 43.396V41.4289V39.5922C22.5519 39.4204 22.7381 39.3109 22.8878 39.397L26.1819 41.2981C26.25 41.3379 26.2926 41.4104 26.2934 41.4896V43.4268V45.2762C26.2947 45.4472 26.1085 45.5559 25.9596 45.4706Z"}),z("path",{d:"M12.3022 47.7037V44.9795V42.6544C12.3022 42.5495 12.3576 42.4515 12.4482 42.3986L14.1262 41.4062L16.8143 39.8188C17.0119 39.7019 17.2617 39.8442 17.2625 40.0739L17.2633 42.7627V45.1456C17.2633 45.251 17.2079 45.3486 17.1165 45.4015L12.7496 47.9587C12.552 48.0748 12.3031 47.9325 12.3022 47.7037Z"}),z("path",{d:"M0.221343 34.2106L6.76939 30.4056C6.90636 30.326 7.07449 30.3256 7.21227 30.4023L13.8378 34.1401C14.138 34.3095 14.14 34.7413 13.8415 34.9131L7.25492 38.7182C7.11795 38.7977 6.94941 38.7985 6.81204 38.7206L0.225854 34.9836C-0.0734986 34.8139 -0.075549 34.3833 0.221343 34.2106Z"}),z("path",{d:"M6.03876 9.125L16.9237 15.5151C17.1513 15.6484 17.2903 15.8912 17.2903 16.1549V28.8331C17.2903 29.4076 16.665 29.7647 16.1704 29.4728L5.28546 23.0264C5.05869 22.8919 4.92008 22.6479 4.9209 22.3855V9.76307C4.92254 9.1902 5.54503 8.83467 6.03876 9.125Z"}),z("path",{d:"M39.6262 1.07261V11.7603V19.3368C39.627 19.7178 39.4265 20.0709 39.0988 20.2644L31.4145 24.8195L23.3545 29.5964C22.6385 30.0192 21.7339 29.5029 21.7339 28.6717V10.3259C21.7339 9.94495 21.9356 9.5927 22.2641 9.39955L38.008 0.149533C38.7232 -0.270381 39.6241 0.24385 39.6262 1.07261Z"})]}))}),JT=J.colors,kEe=JT.infographic.primary__moss_green_100.rgba,ZT=JT.interactive,EEe=ZT.icon_on_interactive_colors.rgba,SEe=ZT.danger__resting.rgba,AEe={background:kEe},MEe={background:EEe},$Ee={background:SEe};const Lk=Object.freeze(Object.defineProperty({__proto__:null,neutral:MEe,primary:AEe,tertiary:$Ee},Symbol.toStringTag,{value:"Module"}));var PEe=["color","size"],q3=L0(["0%{opacity:1;}100%{opacity:0.5;}"]),IEe=_e.svg.withConfig({displayName:"DotProgress__Svg",componentId:"sc-1s6o2q7-0"})(["fill:",";circle{&:nth-child(1){animation:"," 1s ease infinite;}&:nth-child(2){animation:"," 1s ease 0.2s infinite;}&:nth-child(3){animation:"," 1s ease 0.4s infinite;}}"],function(t){var e=t.color;return e},q3,q3,q3),HEe=function(e){return Lk[e]?Lk[e].background:e},TEe=y.forwardRef(function(e,r){var n=e.color,i=n===void 0?"neutral":n,o=e.size,a=o===void 0?32:o,s=nt(e,PEe),c=E(E({},s),{},{color:HEe(i),ref:r}),l=a/4,d=a;return pe(IEe,E(E({},c),{},{role:"progressbar",viewBox:"0 0 16 4",height:l,width:d,preserveAspectRatio:"xMidYMid meet",children:[z("circle",{cx:2,cy:2,r:2}),z("circle",{cx:8,cy:2,r:2}),z("circle",{cx:14,cy:2,r:2})]}))}),REe={Linear:oEe,Circular:QT,Star:CEe,Dots:TEe},eR={focusedIndex:-1,initialFocus:null,onClose:null},tR=y.createContext(eR),DEe=function(e){var r=e.children,n=y.useState(eR),i=Ci(n,2),o=i[0],a=i[1],s=o.focusedIndex,c=o.initialFocus,l=o.onClose,d=function(p){a(function(_){return E(E({},_),{},{focusedIndex:p})})},h=function(p){a(function(_){return E(E({},_),{},{initialFocus:p})})},u=function(p){var _=function(){d(-1),h(null),p()};a(function(m){return E(E({},m),{},{onClose:_})})},f={setFocusedIndex:d,focusedIndex:s,setInitialFocus:h,initialFocus:c,setOnClose:u,onClose:l};return z(tR.Provider,{value:f,children:r})},r_=function(){return y.useContext(tR)},n_=J.colors,VEe=n_.ui.background__default.rgba,i2=n_.interactive,LEe=i2.primary__selected_highlight.rgba,OEe=i2.primary__resting.rgba,NEe=i2.focus.rgba,FEe=i2.disabled__fill.rgba,BEe=i2.disabled__text.rgba,UEe=i2.table__header__fill_hover.rgba,jEe=n_.text.static_icons__default.rgba,i_=J.spacings.comfortable,Ok=i_.medium,U1=i_.large,j1=i_.small,W3=J.typography.navigation.menu_title,o2={background:VEe,spacings:{top:j1,bottom:j1,left:"0px",right:"0px"},border:{type:"border",radius:"4px"},typography:E(E({},W3),{},{color:jEe}),entities:{icon:{states:{disabled:{typography:{color:FEe}}}},item:{spacings:{left:U1,right:U1,top:Ok,bottom:Ok},states:{active:{typography:E(E({},W3),{},{color:OEe}),background:LEe},focus:{outline:{color:NEe,style:"dashed",type:"outline",width:"2px",offset:"2px"}},hover:{background:UEe},disabled:{typography:E(E({},W3),{},{color:BEe})}}},title:{spacings:{left:U1,right:U1,top:j1,bottom:j1}}},modes:{compact:{entities:{item:{spacings:{left:U1,right:U1,top:j1,bottom:j1}}}}}},qEe=["children","disabled","index","onClick","closeMenuOnClick"],WEe=o2.typography,rR=o2.entities,K5=rR.item.states,Nk=K5.active,GEe=K5.focus,KEe=K5.hover,YEe=K5.disabled,XEe=rR.icon,QEe=_e.button.attrs(function(t){var e=t.isFocused;return{role:"menuitem",tabIndex:e?-1:0}}).withConfig({displayName:"MenuItem__Item",componentId:"sc-1g9fpbe-0"})(["border:0;background-color:transparent;width:auto;position:relative;z-index:2;"," "," "," ",""],Yr(WEe),function(t){var e=t.theme;return Ri(e.entities.item.spacings)},function(t){var e=t.active;return e&&Ye(["background:",";*{color:",";}"],Nk.background,Nk.typography.color)},function(t){var e=t.disabled;return e?Ye(["*{color:",";}svg{fill:",";}&:focus{outline:none;}@media (hover:hover) and (pointer:fine){&:hover{cursor:not-allowed;}}"],YEe.typography.color,XEe.states.disabled.typography.color):Ye(["@media (hover:hover) and (pointer:fine){&:hover{z-index:1;cursor:pointer;background:",";}}&:focus{z-index:3;","}"],KEe.background,Ai(GEe.outline))}),JEe=_e.div.withConfig({displayName:"MenuItem__Content",componentId:"sc-1g9fpbe-1"})(["width:auto;display:grid;grid-gap:16px;grid-auto-flow:column;grid-auto-columns:max-content auto max-content;align-items:center;"]),Y5=y.forwardRef(function(e,r){var n=e.children,i=e.disabled,o=e.index,a=o===void 0?0:o,s=e.onClick,c=e.closeMenuOnClick,l=c===void 0?!0:c,d=nt(e,qEe),h=r_(),u=h.focusedIndex,f=h.setFocusedIndex,v=h.onClose,p=function(b){u!==b&&f(b)},_=a===u,m=E(E({},d),{},{disabled:i,isFocused:_});return z(QEe,E(E({},m),{},{ref:Ao(r,function(g){_&&requestAnimationFrame(function(){g!==null&&g.focus()})}),onFocus:function(){return p(a)},onClick:function(b){s&&(s(b),v!==null&&l&&v(b))},children:z(JEe,{children:n})}))});Y5.displayName="MenuItem";var ZEe=_e.div.attrs(function(){return{tabIndex:0}}).withConfig({displayName:"MenuSection__Header",componentId:"sc-gfcbvg-0"})([""," &:focus{outline:none;}"],Ri(o2.entities.title.spacings)),nR=y.memo(function(e){var r=e.children,n=e.title,i=e.index;return pe(Fn,{children:[i!==0&&z("div",{children:z(Jy,{variant:"small"})}),n&&z(ZEe,{children:z(Xy,{group:"navigation",variant:"label",children:n})}),r]})}),eSe=["addCloseMenuOnClickIndex","children"],tSe=_e.div.withConfig({displayName:"MenuList__List",componentId:"sc-104rzof-0"})(["position:relative;list-style:none;display:flex;flex-direction:column;margin:0;"," li:first-child{z-index:3;}"],Ri(o2.spacings));function Fk(t){return!!(y.isValidElement(t)&&!t.props.disabled&&t.type===Y5)}function rSe(t){return!!(y.isValidElement(t)&&t.type===Y5&&t.props.closeMenuOnClick!==!1)}var nSe=y.forwardRef(function(e,r){var n=e.addCloseMenuOnClickIndex,i=e.children,o=nt(e,eSe),a=r_(),s=a.focusedIndex,c=a.setFocusedIndex,l=a.initialFocus,d=-1,h=y.useMemo(function(){return[]},[]),u=y.useMemo(function(){return y.Children.map(i,function(m){if(!m)return m;if(m.type===nR){d++;var g=d,b=y.Children.map(m.props.children,function(w){return d++,Fk(w)&&h.push(d),y.cloneElement(w,{index:d})});return y.cloneElement(m,{index:g},b)}else return d++,Fk(m)&&h.push(d),rSe(m)&&n(d),y.cloneElement(m,{index:d})})},[i,h,d,n]),f=h[0],v=h[h.length-1];y.useEffect(function(){l==="first"&&c(f),l==="last"&&c(v)},[l,f,v]);var p=function(g,b){var w=g==="down"?1:-1,x=h.indexOf(s),C=h[x+w],S=typeof C>"u"?b:C;c(S)},_=function(g){var b=g.key;g.stopPropagation(),b==="ArrowDown"&&(g.preventDefault(),p("down",f)),b==="ArrowUp"&&(g.preventDefault(),p("up",v))};return z(tSe,E(E({onKeyDown:_,role:"menu"},o),{},{ref:r,children:u}))}),iSe=["children","anchorEl","onClose","open"],oSe=["anchorEl","open","placement","matchAnchorWidth","onClose","style","className"],aSe=o2.border,sSe=_e(Ky).withConfig({displayName:"Menu__MenuPaper",componentId:"sc-1vlnqcj-0"})(["position:absolute;z-index:1400;width:fit-content;min-width:fit-content;",";",";"],xi(aSe),function(t){var e=t.open;return Ye({display:e?"block":"none"})}),cSe=y.forwardRef(function(e,r){var n=e.children,i=e.anchorEl,o=e.onClose,a=e.open,s=nt(e,iSe),c=r_(),l=c.setOnClose,d=c.onClose,h=c.setInitialFocus,u=c.focusedIndex,f=y.useMemo(function(){return[]},[]);y.useEffect(function(){d===null&&o&&l(o)},[d,o,l]),y.useEffect(function(){var p=function(m){var g=m.key;switch((g==="ArrowDown"||g==="ArrowUp")&&(m.preventDefault(),m.stopPropagation(),i.dispatchEvent(new Event("click",{bubbles:!0}))),g){case"Enter":case"ArrowDown":h("first");break;case"ArrowUp":h("last");break}};return i&&i.addEventListener("keydown",p),function(){i&&i.removeEventListener("keydown",p)}},[i]),ev("Escape",function(){a&&d!==null&&(d(),i.focus())}),ev("Enter",function(){a&&d!==null&&f.includes(u)&&setTimeout(function(){window.document.contains(i)&&i.focus()},0)});var v=function(_){f.indexOf(_)<0&&f.push(_)};return z(nSe,E(E({addCloseMenuOnClickIndex:v},s),{},{ref:r,children:n}))}),lSe=y.forwardRef(function(e,r){var n=e.anchorEl,i=e.open,o=e.placement,a=o===void 0?"bottom":o,s=e.matchAnchorWidth,c=s===void 0?!1:s,l=e.onClose,d=e.style,h=e.className,u=nt(e,oSe),f=ns(),v=f.density,p=ha({density:v},o2),_=[P5(4),$5(),I5({padding:8})];c&&(_=[].concat(PT(_),[PH({apply:function(ee){var ae=ee.rects,A=ee.elements;Object.assign(A.floating.style,{width:"".concat(ae.reference.width,"px")})}})]));var m=G5({placement:a,open:i,onOpenChange:l,middleware:_}),g=m.x,b=m.y,w=m.reference,x=m.floating,C=m.refs,S=m.update,M=m.strategy,T=m.context;y.useEffect(function(){w(n)},[n,w]);var I=y.useMemo(function(){return Ao(x,r)},[x,r]);lH(function(){if(C.reference.current&&C.floating.current&&i)return R5(C.reference.current,C.floating.current,S)},[C.reference,C.floating,S,i]);var N=Wy([BT(T,{escapeKey:!1})]),U=N.getFloatingProps,Y={open:i,className:h},H=E(E({},u),{},{onClose:l,anchorEl:n,open:i});return z(Fn,{children:z(W5,{id:"eds-menu-container",children:z(C1,{theme:p,children:z(sSe,E(E(E({elevation:"raised"},Y),U({ref:I,style:E(E({},d),{},{position:M,top:b||0,left:g||0})})),{},{children:z(DEe,{children:z(cSe,E(E({},H),{},{ref:r}))})}))})})})}),yd=lSe;yd.Item=Y5;yd.Section=nR;yd.Item.displayName="Menu.Item";yd.Section.displayName="Menu.Section";var o_=J.colors,dSe=o_.ui.background__light.rgba,iR=o_.text,hSe=iR.static_icons__default,G3=iR.static_icons__tertiary,hc=o_.interactive,Bk=hc.disabled__text,uSe=hc.primary__resting,fSe=hc.danger__resting,Uk=hc.danger__hover,pSe=hc.warning__resting,jk=hc.warning__hover,vSe=hc.success__resting,qk=hc.success__hover,oR=J.spacings.comfortable,Wk=oR.small,Nf=oR.x_small,Pu=J.typography,Gk=J.shape,X5={minHeight:Gk.straight.minHeight,background:dSe,spacings:{left:Wk,right:Wk,top:"6px",bottom:"6px"},typography:E(E({},Pu.input.text),{},{color:hSe.rgba}),entities:{placeholder:{typography:{color:G3.rgba}},helperText:{typography:E(E({},Pu.input.label),{},{color:G3.rgba}),states:{disabled:{typography:{color:Bk.rgba}}}}},states:{disabled:{typography:{color:Bk.rgba}},readOnly:{background:"transparent",boxShadow:"none"},active:{outline:{type:"outline",color:"transparent",width:"1px",style:"solid",offset:"0px"}},focus:{outline:{type:"outline",width:"2px",color:uSe.rgba,style:"solid",offset:"0px"}}},boxShadow:"inset 0px -1px 0px 0px "+G3.rgba,modes:{compact:{minHeight:Gk._modes.compact.straight.minHeight,spacings:{left:Nf,right:Nf,top:Nf,bottom:Nf}}}},mSe=pr(X5,{boxShadow:"none",outline:{color:fSe.rgba},states:{focus:{outline:{color:Uk.rgba}}},entities:{helperText:{typography:E(E({},Pu.input.label),{},{color:Uk.rgba})}}}),gSe=pr(X5,{boxShadow:"none",outline:{color:pSe.rgba},states:{focus:{outline:{color:jk.rgba}}},entities:{helperText:{typography:E(E({},Pu.input.label),{},{color:jk.rgba})}}}),ySe=pr(X5,{boxShadow:"none",outline:{color:vSe.rgba},states:{focus:{outline:{color:qk.rgba}}},entities:{helperText:{typography:E(E({},Pu.input.label),{},{color:qk.rgba})}}}),_Se={input:X5,error:mSe,warning:gSe,success:ySe},Kk=J.colors,q1=J.spacings.comfortable,bSe=J.typography,aR={background:Kk.ui.background__light.hex,typography:E(E({},bSe.input.helper),{},{color:Kk.text.static_icons__tertiary.rgba}),spacings:{comfortable:{left:q1.small,right:q1.small,top:q1.small,bottom:"6px"},compact:{left:q1.small,right:q1.small,top:q1.xx_small,bottom:"6px"}}},wSe=["text","icon","color"],xSe=_e.div.withConfig({displayName:"HelperText__Container",componentId:"sc-189ug61-0"})(function(t){var e=t.color;return Ye({display:"grid",gap:"8px",gridAutoFlow:"column",alignItems:"start",justifyContent:"start",color:e})}),zSe=_e.p.withConfig({displayName:"HelperText__Text",componentId:"sc-189ug61-1"})(["margin:0;",";"],vy(aR.typography)),CSe=y.forwardRef(function(e,r){var n=e.text,i=e.icon,o=e.color,a=o===void 0?aR.typography.color:o,s=nt(e,wSe);return n?pe(xSe,E(E({},E(E({},s),{},{color:a,ref:r})),{},{children:[i,z(zSe,{children:n})]})):null}),K3=J.colors,Yk=J.spacings.comfortable,kSe=J.typography,H2={background:K3.ui.background__light.rgba,typography:E(E({},kSe.input.label),{},{color:K3.text.static_icons__tertiary.rgba}),spacings:{left:Yk.small,right:Yk.small,top:"6px",bottom:"6px"},states:{disabled:{typography:{color:K3.interactive.disabled__text.rgba}}}},ESe=["label","meta","disabled"],SSe=_e.label.withConfig({displayName:"Label__LabelBase",componentId:"sc-1gi2bcn-0"})(["display:flex;justify-content:space-between;position:relative;"," margin-left:",";margin-right:",";color:",";"],Yr(H2.typography),H2.spacings.left,H2.spacings.right,function(t){var e=t.disabledText;return e?H2.states.disabled.typography.color:H2.typography.color}),Xk=_e.span.withConfig({displayName:"Label__Text",componentId:"sc-1gi2bcn-1"})(["margin:0;"]),_d=y.forwardRef(function(e,r){var n=e.label,i=n===void 0?"":n,o=e.meta,a=e.disabled,s=a===void 0?!1:a,c=nt(e,ESe);return pe(SSe,E(E({ref:r,disabledText:s},c),{},{children:[z(Xk,{children:i}),o&&z(Xk,{children:o})]}))}),ASe=["children","color","label","labelProps","helperProps","helperIcon"],MSe=_e.div.withConfig({displayName:"InputWrapper__Container",componentId:"sc-v6o9z1-0"})([""]),$Se=_e(CSe).withConfig({displayName:"InputWrapper__HelperText",componentId:"sc-v6o9z1-1"})(["margin-top:8px;margin-left:8px;"]),PSe=_e(_d).withConfig({displayName:"InputWrapper__Label",componentId:"sc-v6o9z1-2"})(["margin-left:8px;margin-right:8px;"]),sR=y.forwardRef(function(e,r){var n=e.children,i=e.color,o=e.label,a=e.labelProps,s=a===void 0?{}:a,c=e.helperProps,l=c===void 0?{}:c,d=e.helperIcon,h=nt(e,ASe),u=ns(),f=u.density,v=i||"input",p=_Se[v],_=ha({density:f},p),m=y.useCallback(function(){var w=_();return h.disabled?w.entities.helperText.states.disabled.typography.color:w.entities.helperText.typography.color},[_,h.disabled])(),g=!!(l!=null&&l.text),b=!!(o||s!=null&&s.label);return z(C1,{theme:_,children:pe(MSe,E(E({},h),{},{ref:r,children:[b&&z(PSe,E({},E({label:o},s))),n,g&&z($Se,E({color:m},E({icon:d},l)))]}))})}),a_=J.colors,ISe=a_.ui.background__light.rgba,cR=a_.text,HSe=cR.static_icons__default,Y3=cR.static_icons__tertiary,uc=a_.interactive,Qk=uc.disabled__text,TSe=uc.primary__resting,Jk=uc.danger__resting,Zk=uc.danger__hover,eE=uc.warning__resting,tE=uc.warning__hover,rE=uc.success__resting,nE=uc.success__hover,lR=J.spacings.comfortable,Ff=lR.small,Bf=lR.x_small,Iu=J.typography,iE=J.shape,ec={height:iE.straight.minHeight,width:"100%",background:ISe,spacings:{left:Ff,right:Ff,top:"6px",bottom:"6px"},typography:E(E({},Iu.input.text),{},{color:HSe.rgba}),outline:{type:"outline",color:"transparent",width:"1px",style:"solid",offset:"0px"},entities:{placeholder:{typography:{color:Y3.rgba}},adornment:{typography:E(E({},Iu.input.label),{},{color:Y3.rgba}),spacings:{left:Ff,right:Ff},states:{disabled:{typography:{color:Qk.rgba}}}}},states:{disabled:{typography:{color:Qk.rgba}},readOnly:{background:"transparent",boxShadow:"none"},active:{},focus:{outline:{type:"outline",width:"2px",color:TSe.rgba,style:"solid",offset:"0px"}}},boxShadow:"inset 0px -1px 0px 0px "+Y3.rgba,modes:{compact:{height:iE._modes.compact.straight.minHeight,spacings:{left:Bf,right:Bf,top:Bf,bottom:Bf}}}},dR=pr(ec,{boxShadow:"none",outline:{color:Jk.rgba},states:{focus:{outline:{color:Zk.rgba}}},entities:{adornment:{typography:E(E({},Iu.input.label),{},{color:Jk.rgba}),states:{focus:{outline:{color:Zk.rgba}}}}}}),hR=pr(ec,{boxShadow:"none",outline:{color:eE.rgba},states:{focus:{outline:{color:tE.rgba}}},entities:{adornment:{typography:E(E({},Iu.input.label),{},{color:eE.rgba}),states:{focus:{outline:{color:tE.rgba}}}}}}),uR=pr(ec,{boxShadow:"none",outline:{color:rE.rgba},states:{focus:{outline:{color:nE.rgba}}},entities:{adornment:{typography:E(E({},Iu.input.label),{},{color:rE.rgba}),states:{focus:{outline:{color:nE.rgba}}}}}}),j4={input:ec,error:dR,warning:hR,success:uR};const oE=Object.freeze(Object.defineProperty({__proto__:null,error:dR,input:ec,inputToken:j4,success:uR,warning:hR},Symbol.toStringTag,{value:"Module"}));var RSe=["variant","disabled","type","leftAdornments","rightAdornments","readOnly","className","style","leftAdornmentsProps","rightAdornmentsProps","leftAdornmentsWidth","rightAdornmentsWidth"],DSe=_e.div.withConfig({displayName:"Input__Container",componentId:"sc-1ykv024-0"})(function(t){var e,r,n=t.token,i=t.disabled,o=t.readOnly,a=n.states,s=n.entities;return Ye(["--eds-input-adornment-color:",";--eds-input-color:",";position:relative;height:",";width:",";display:flex;flex-direction:row;border:none;box-sizing:border-box;box-shadow:",";background:var(--eds-input-background,",");"," &:focus-within{--eds-input-adornment-color:",";box-shadow:none;","}"," "," & > input{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"],s.adornment.typography.color,n.typography.color,n.height,n.width,n.boxShadow,n.background,Ai(n.outline),(e=s.adornment)===null||e===void 0||(r=e.states.focus)===null||r===void 0?void 0:r.outline.color,Ai(a.focus.outline),i&&Ye(["--eds-input-adornment-color:",";--eds-input-color:",";cursor:not-allowed;box-shadow:none;"],a.disabled.typography.color,a.disabled.typography.color),o&&Ye({background:a.readOnly.background,boxShadow:a.readOnly.boxShadow}))}),VSe=_e.input.withConfig({displayName:"Input__StyledInput",componentId:"sc-1ykv024-1"})(function(t){var e=t.token,r=t.paddingLeft,n=t.paddingRight;return Ye(["width:100%;border:none;background:transparent;"," "," outline:none;padding-left:",";padding-right:",";&::placeholder{color:",";}&:disabled{color:var(--eds-input-color);cursor:not-allowed;}"],Ri(e.spacings),vy(e.typography),r,n,e.entities.placeholder.typography.color)}),fR=_e.div.withConfig({displayName:"Input__Adornments",componentId:"sc-1ykv024-2"})(function(t){var e=t.token;return Ye(["position:absolute;top:",";bottom:",";display:flex;align-items:center;"," color:var(--eds-input-adornment-color);"],e.spacings.top,e.spacings.bottom,vy(e.entities.adornment.typography))}),LSe=_e(fR).withConfig({displayName:"Input__LeftAdornments",componentId:"sc-1ykv024-3"})(function(t){var e=t.token;return Ye(["left:0;padding-left:",";"],e.entities.adornment.spacings.left)}),OSe=_e(fR).withConfig({displayName:"Input__RightAdornments",componentId:"sc-1ykv024-4"})(function(t){var e=t.token;return Ye(["right:0;padding-right:",";"],e.entities.adornment.spacings.right)}),tc=y.forwardRef(function(e,r){var n=e.variant,i=e.disabled,o=i===void 0?!1:i,a=e.type,s=a===void 0?"text":a,c=e.leftAdornments,l=e.rightAdornments,d=e.readOnly,h=e.className,u=e.style,f=e.leftAdornmentsProps,v=e.rightAdornmentsProps,p=e.leftAdornmentsWidth,_=e.rightAdornmentsWidth,m=nt(e,RSe),g=j4[n]?j4[n]:j4.input,b=ns(),w=b.density,x=ha({density:w},g)(),C=y.useState(),S=Ci(C,2),M=S[0],T=S[1],I=y.useState(),N=Ci(I,2),U=N[0],Y=N[1],H=y.useCallback(function(){var B=p||(U?U.clientWidth:0),O=_||(M?M.clientWidth:0);return E(E({},x),{},{spacings:E(E({},x.spacings),{},{left:"".concat(B+parseInt(x.spacings.left),"px"),right:"".concat(O+parseInt(x.spacings.right),"px")})})},[p,U,_,M,x])(),L=E({ref:r,type:s,disabled:o,readOnly:d,token:H,style:{resize:"none"}},m),ee={disabled:o,readOnly:d,className:h,style:u,token:H},ae=E(E({},f),{},{ref:Y,token:H}),A=E(E({},v),{},{ref:T,token:H});return pe(DSe,E(E({},ee),{},{children:[c?z(LSe,E(E({},ae),{},{children:c})):null,z(VSe,E({paddingLeft:H.spacings.left,paddingRight:H.spacings.right},L)),l?z(OSe,E(E({},A),{},{children:l})):null]}))}),NSe=["variant","disabled","type","rowsMax"],aE=ec,FSe=y.forwardRef(function(e,r){var n=e.variant,i=e.disabled,o=i===void 0?!1:i,a=e.type,s=a===void 0?"text":a,c=e.rowsMax,l=nt(e,NSe),d=oE[n]?oE[n]:ec,h=y.useState(null),u=Ci(h,2),f=u[0],v=u[1],p=ns(),_=p.density,m=_==="compact"?aE.modes.compact.spacings:aE.spacings,g=ec.typography.lineHeight,b=m.top,w=m.bottom,x=16;f&&(x=parseInt(window.getComputedStyle(f).fontSize));var C=parseInt(b)+parseInt(w),S=parseFloat(g)*x*c+C;q9e(f,c?S:null);var M=y.useCallback(function(){return Ao(r,v)},[v,r])(),T=E({ref:M,type:s,disabled:o,variant:n,token:d,density:_},l),I={style:{alignItems:"flex-start"}};return z(tc,E({as:"textarea",rightAdornmentsProps:I,leftAdornmentsProps:I,style:{height:"auto"}},T))}),BSe=["id","label","meta","unit","helperText","placeholder","disabled","multiline","className","variant","inputIcon","helperIcon","style","rowsMax","textareaRef","inputRef"],USe=y.forwardRef(function(e,r){return e.multiline?z(FSe,E({ref:r},e)):z(tc,E({ref:r},e))}),pR=y.forwardRef(function(e,r){var n=e.id,i=e.label,o=e.meta,a=e.unit,s=e.helperText,c=e.placeholder,l=e.disabled,d=e.multiline,h=d===void 0?!1:d,u=e.className,f=e.variant,v=e.inputIcon,p=e.helperIcon,_=e.style,m=e.rowsMax,g=e.textareaRef,b=e.inputRef,w=nt(e,BSe),x=j9e(null,"helpertext"),C=E({"aria-invalid":f==="error"||void 0,disabled:l,placeholder:c,id:n,variant:f,rightAdornments:pe(Fn,{children:[v,z("span",{children:a})]}),rowsMax:m,ref:b||g,multiline:h},w),S={id:null,text:s,icon:p,disabled:l},M={ref:r,className:u,style:E({width:"100%"},_),color:f},T={htmlFor:n,label:i,meta:o,disabled:l};return s&&(C=E({"aria-describedby":x},C),S=E(E({},S),{},{id:x})),z(sR,E(E({helperProps:S,labelProps:T},M),{},{children:z(USe,E({},C))}))}),jSe=["onChange","style","className"],qSe=_e(tc).withConfig({displayName:"Search__SearchInput",componentId:"sc-v8l23u-0"})(["input{&[type='search']::-webkit-search-decoration,&[type='search']::-webkit-search-cancel-button,&[type='search']::-webkit-search-results-button,&[type='search']::-webkit-search-results-decoration{-webkit-appearance:none;}}"]),WSe=_e(Mi).withConfig({displayName:"Search__InsideButton",componentId:"sc-v8l23u-1"})(["height:24px;width:24px;"]),GSe=y.forwardRef(function(e,r){var n=e.onChange,i=e.style,o=e.className,a=nt(e,jSe),s=y.useRef(null),c=y.useState(!!a.defaultValue),l=Ci(c,2),d=l[0],h=l[1];y.useEffect(function(){a.value&&h(!!a.value)},[a.value]);var u=function(){var _=s.current,m="";X9e(_,m)},f=function(_){h(!!_.currentTarget.value)},v=y.useMemo(function(){return Ao(s,r)},[s,r]);return z(sR,{role:"search",style:i,className:o,children:z(qSe,E({onChange:function(_){f(_),n&&n(_)},ref:v,leftAdornmentsWidth:24+8,leftAdornments:z(Mn,{data:D_e,"aria-hidden":!0,size:18}),rightAdornmentsWidth:24+8,rightAdornments:z(Fn,{children:d&&z(WSe,{"aria-label":"clear search",title:"clear",variant:"ghost_icon",onClick:function(_){_.stopPropagation(),u()},children:z(Mn,{data:D5,size:16})})})},a))})}),Q5=J.colors.interactive,KSe=Q5.primary__resting.rgba,YSe=Q5.primary__hover_alt.rgba,sE=Q5.focus.rgba,XSe=Q5.disabled__text.rgba,QSe=J.typography.navigation.menu_title,vR=J.spacings.comfortable,Uf=vR.medium_small,jf=vR.x_small,mR=J.clickbounds,JSe=mR.default__base,ZSe=mR.compact__standard,cE=J.interactions.focused.width,Vh={background:KSe,typography:QSe,spacings:{bottom:Uf,top:Uf,left:Uf,right:Uf},clickbound:{height:JSe},states:{hover:{background:YSe},disabled:{background:XSe},focus:{outline:{type:"outline",style:"dashed",width:cE,color:sE,offset:"10px"}}},modes:{compact:{spacings:{bottom:jf,top:jf,left:jf,right:jf},clickbound:{height:ZSe},states:{focus:{outline:{type:"outline",style:"dashed",width:cE,color:sE,offset:"2px"}}}}}},eAe=["disabled","indeterminate","style","className"],X3=_e.path.attrs(function(t){var e=t.icon;return{fillRule:"evenodd",clipRule:"evenodd",d:e.svgPathData}}).withConfig({displayName:"Input__StyledPath",componentId:"sc-rqj7qf-0"})([""]),tAe=_e.input.attrs(function(t){var e=t.type,r=e===void 0?"checkbox":e;return{type:r}}).withConfig({displayName:"Input",componentId:"sc-rqj7qf-1"})(["--scale:",";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:",";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{","}&:focus-visible + svg{","}&:not(:checked) ~ svg path[name='checked']{display:none;}&:not(:checked) ~ svg path[name='not-checked']{display:inline;}&:checked ~ svg path[name='not-checked']{display:none;}&:checked ~ svg path[name='checked']{display:inline;}"],function(t){var e=t.theme,r=t.iconSize;return parseFloat(e.clickbound.height)/r},function(t){var e=t.disabled;return e?"not-allowed":"pointer"},function(t){var e=t.theme;return Ai(e.states.focus.outline)},function(t){var e=t.theme;return Ai(e.states.focus.outline)}),lE=_e.svg.attrs(function(t){var e=t.height,r=t.width,n=t.fill;return{name:null,xmlns:"http://www.w3.org/2000/svg",height:e,width:r,fill:n}}).withConfig({displayName:"Input__Svg",componentId:"sc-rqj7qf-2"})(["grid-area:input;pointer-events:none;"]),rAe=_e.span.withConfig({displayName:"Input__InputWrapper",componentId:"sc-rqj7qf-3"})(["display:inline-grid;grid:[input] 1fr / [input] 1fr;border-radius:50%;"," @media (hover:hover) and (pointer:fine){&:hover{background-color:",";}}"],function(t){var e=t.theme;return Ri(e.spacings)},function(t){var e=t.disabled;return e?"transparent":Vh.states.hover.background}),dE=y.forwardRef(function(e,r){var n=e.disabled,i=n===void 0?!1:n,o=e.indeterminate,a=e.style,s=e.className,c=nt(e,eAe),l=ns(),d=l.density,h=ha({density:d},Vh),u=24,f=i?Vh.states.disabled.background:Vh.background,v={disabled:i,style:a,className:s},p=E(fv({ref:r,disabled:i},"data-indeterminate",o),c);return z(C1,{theme:h,children:pe(rAe,E(E({},v),{},{children:[z(tAe,E({iconSize:u},p)),o?z(lE,{width:u,height:u,viewBox:"0 0 ".concat(u," ").concat(u),fill:f,"aria-hidden":!0,children:z(X3,{icon:O_e,name:"indeterminate"})}):pe(lE,{width:u,height:u,viewBox:"0 0 ".concat(u," ").concat(u),fill:f,"aria-hidden":!0,children:[z(X3,{icon:V_e,name:"checked"}),z(X3,{icon:L_e,name:"not-checked"})]})]}))})}),nAe=["label","disabled","indeterminate","className","style"],iAe=_e.label.withConfig({displayName:"Checkbox__StyledLabel",componentId:"sc-yg6l8h-0"})(["display:inline-flex;align-items:center;cursor:",";"],function(t){var e=t.disabled;return e?"not-allowed":"pointer"}),oAe=_e.span.withConfig({displayName:"Checkbox__LabelText",componentId:"sc-yg6l8h-1"})(["",";"],Yr(Vh.typography)),Hu=y.forwardRef(function(e,r){var n=e.label,i=e.disabled,o=i===void 0?!1:i,a=e.indeterminate,s=e.className,c=e.style,l=nt(e,nAe);return n?pe(iAe,{disabled:o,className:s,style:c,children:[z(dE,E(E({},l),{},{disabled:o,ref:r,indeterminate:a})),z(oAe,{children:n})]}):z(dE,E(E({},l),{},{className:s,style:c,disabled:o,ref:r,indeterminate:a}))});Hu.displayName="Checkbox";var aAe=0;function J5(){}function sAe(t,e){if(t){var r=Rbe(t,{boundary:e,block:"nearest",scrollMode:"if-needed"});r.forEach(function(n){var i=n.el,o=n.top,a=n.left;i.scrollTop=o,i.scrollLeft=a})}}function hE(t,e,r){var n=t===e||e instanceof r.Node&&t.contains&&t.contains(e);return n}function gR(t,e){var r;function n(){r&&clearTimeout(r)}function i(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];n(),r=setTimeout(function(){r=null,t.apply(void 0,a)},e)}return i.cancel=n,i}function pi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return e.some(function(s){return s&&s.apply(void 0,[n].concat(o)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function kl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){e.forEach(function(i){typeof i=="function"?i(n):i&&(i.current=n)})}}function cAe(){return String(aAe++)}function lAe(t){var e=t.isOpen,r=t.resultCount,n=t.previousResultCount;return e?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function xv(t,e){return Object.keys(t).reduce(function(r,n){return r[n]=yR(e,n)?e[n]:t[n],r},{})}function yR(t,e){return t[e]!==void 0}function r9(t){var e=t.key,r=t.keyCode;return r>=37&&r<=40&&e.indexOf("Arrow")!==0?"Arrow"+e:e}function qf(t,e,r,n,i){if(i===void 0&&(i=!0),r===0)return-1;var o=r-1;(typeof e!="number"||e<0||e>=r)&&(e=t>0?-1:o+1);var a=e+t;a<0?a=i?o:0:a>o&&(a=i?0:o);var s=Tu(t,a,r,n,i);return s===-1?e>=r?-1:e:s}function Tu(t,e,r,n,i){var o=n(e);if(!o||!o.hasAttribute("disabled"))return e;if(t>0){for(var a=e+1;a<r;a++)if(!n(a).hasAttribute("disabled"))return a}else for(var s=e-1;s>=0;s--)if(!n(s).hasAttribute("disabled"))return s;return i?t>0?Tu(1,0,r,n,!1):Tu(-1,r-1,r,n,!1):-1}function uE(t,e,r,n){return n===void 0&&(n=!0),e.some(function(i){return i&&(hE(i,t,r)||n&&hE(i,r.document.activeElement,r))})}var dAe=gR(function(t){bR(t).textContent=""},500);function _R(t,e){var r=bR(e);t&&(r.textContent=t,dAe(e))}function bR(t){t===void 0&&(t=document);var e=t.getElementById("a11y-status-message");return e||(e=t.createElement("div"),e.setAttribute("id","a11y-status-message"),e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-relevant","additions text"),Object.assign(e.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),t.body.appendChild(e),e)}var hAe=["isInitialMount","highlightedIndex","items","environment"],wR={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function uAe(t,e,r){var n=t.props,i=t.type,o={};Object.keys(e).forEach(function(a){fAe(a,t,e,r),r[a]!==e[a]&&(o[a]=r[a])}),n.onStateChange&&Object.keys(o).length&&n.onStateChange(Ct({type:i},o))}function fAe(t,e,r,n){var i=e.props,o=e.type,a="on"+s_(t)+"Change";i[a]&&n[t]!==void 0&&n[t]!==r[t]&&i[a](Ct({type:o},n))}function pAe(t,e){return e.changes}function vAe(t){var e=t.selectedItem,r=t.itemToString;return e?r(e)+" has been selected.":""}var mAe=gR(function(t,e){_R(t(),e)},200),gAe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?y.useLayoutEffect:y.useEffect;function yAe(t){var e=t.id,r=e===void 0?"downshift-"+cAe():e,n=t.labelId,i=t.menuId,o=t.getItemId,a=t.toggleButtonId,s=t.inputId,c=y.useRef({labelId:n||r+"-label",menuId:i||r+"-menu",getItemId:o||function(l){return r+"-item-"+l},toggleButtonId:a||r+"-toggle-button",inputId:s||r+"-input"});return c.current}function xR(t,e,r,n){var i,o;if(t===void 0){if(e===void 0)throw new Error(n);i=r[e],o=e}else o=e===void 0?r.indexOf(t):e,i=t;return[i,o]}function _Ae(t){return t?String(t):""}function s_(t){return""+t.slice(0,1).toUpperCase()+t.slice(1)}function c_(t){var e=y.useRef(t);return e.current=t,e}function zR(t,e,r){var n=y.useRef(),i=y.useRef(),o=y.useCallback(function(u,f){i.current=f,u=xv(u,f.props);var v=t(u,f),p=f.props.stateReducer(u,Ct({},f,{changes:v}));return p},[t]),a=y.useReducer(o,e),s=a[0],c=a[1],l=c_(r),d=y.useCallback(function(u){return c(Ct({props:l.current},u))},[l]),h=i.current;return y.useEffect(function(){h&&n.current&&n.current!==s&&uAe(h,xv(n.current,h.props),s),n.current=s},[s,r,h]),[s,d]}function bAe(t,e,r){var n=zR(t,e,r),i=n[0],o=n[1];return[xv(i,r),o]}var Lh={itemToString:_Ae,stateReducer:pAe,getA11ySelectionMessage:vAe,scrollIntoView:sAe,environment:typeof window>"u"?{}:window};function go(t,e,r){r===void 0&&(r=wR);var n=t["default"+s_(e)];return n!==void 0?n:r[e]}function hh(t,e,r){r===void 0&&(r=wR);var n=t[e];if(n!==void 0)return n;var i=t["initial"+s_(e)];return i!==void 0?i:go(t,e,r)}function wAe(t){var e=hh(t,"selectedItem"),r=hh(t,"isOpen"),n=hh(t,"highlightedIndex"),i=hh(t,"inputValue");return{highlightedIndex:n<0&&e&&r?t.items.indexOf(e):n,isOpen:r,selectedItem:e,inputValue:i}}function Oh(t,e,r){var n=t.items,i=t.initialHighlightedIndex,o=t.defaultHighlightedIndex,a=e.selectedItem,s=e.highlightedIndex;return n.length===0?-1:i!==void 0&&s===i?i:o!==void 0?o:a?n.indexOf(a):r===0?-1:r<0?n.length-1:0}function xAe(t,e,r,n){var i=y.useRef({isMouseDown:!1,isTouchMove:!1});return y.useEffect(function(){if((r==null?void 0:r.addEventListener)!=null){var o=function(){i.current.isMouseDown=!0},a=function(h){i.current.isMouseDown=!1,t&&!uE(h.target,e.map(function(u){return u.current}),r)&&n()},s=function(){i.current.isTouchMove=!1},c=function(){i.current.isTouchMove=!0},l=function(h){t&&!i.current.isTouchMove&&!uE(h.target,e.map(function(u){return u.current}),r,!1)&&n()};return r.addEventListener("mousedown",o),r.addEventListener("mouseup",a),r.addEventListener("touchstart",s),r.addEventListener("touchmove",c),r.addEventListener("touchend",l),function(){r.removeEventListener("mousedown",o),r.removeEventListener("mouseup",a),r.removeEventListener("touchstart",s),r.removeEventListener("touchmove",c),r.removeEventListener("touchend",l)}}},[t,r]),i}var CR=function(){return J5};function fE(t,e,r){var n=r.isInitialMount,i=r.highlightedIndex,o=r.items,a=r.environment,s=Ms(r,hAe);y.useEffect(function(){n||mAe(function(){return t(Ct({highlightedIndex:i,highlightedItem:o[i],resultCount:o.length},s))},a.document)},e)}function zAe(t){var e=t.highlightedIndex,r=t.isOpen,n=t.itemRefs,i=t.getItemNodeFromIndex,o=t.menuElement,a=t.scrollIntoView,s=y.useRef(!0);return gAe(function(){e<0||!r||!Object.keys(n.current).length||(s.current===!1?s.current=!0:a(i(e),o))},[e]),s}var kR=J5;function pE(t,e,r){var n;r===void 0&&(r=!0);var i=((n=t.items)==null?void 0:n.length)&&e>=0;return Ct({isOpen:!1,highlightedIndex:-1},i&&Ct({selectedItem:t.items[e],isOpen:go(t,"isOpen"),highlightedIndex:go(t,"highlightedIndex")},r&&{inputValue:t.itemToString(t.items[e])}))}function CAe(t,e,r){var n=e.type,i=e.props,o;switch(n){case r.ItemMouseMove:o={highlightedIndex:e.disabled?-1:e.index};break;case r.MenuMouseLeave:o={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:o={isOpen:!t.isOpen,highlightedIndex:t.isOpen?-1:Oh(i,t,0)};break;case r.FunctionOpenMenu:o={isOpen:!0,highlightedIndex:Oh(i,t,0)};break;case r.FunctionCloseMenu:o={isOpen:!1};break;case r.FunctionSetHighlightedIndex:o={highlightedIndex:e.highlightedIndex};break;case r.FunctionSetInputValue:o={inputValue:e.inputValue};break;case r.FunctionReset:o={highlightedIndex:go(i,"highlightedIndex"),isOpen:go(i,"isOpen"),selectedItem:go(i,"selectedItem"),inputValue:go(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Ct({},t,o)}le.array.isRequired,le.func,le.func,le.func,le.number,le.number,le.number,le.bool,le.bool,le.bool,le.any,le.any,le.any,le.string,le.string,le.string,le.func,le.string,le.func,le.func,le.func,le.func,le.func,le.shape({addEventListener:le.func,removeEventListener:le.func,document:le.shape({getElementById:le.func,activeElement:le.any,body:le.any})});function kAe(t){var e=t.isOpen,r=t.resultCount,n=t.previousResultCount;return e?r?r!==n?"".concat(r," result").concat(r===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}fr(fr({},Lh),{getA11yStatusMessage:kAe});var l_=0,d_=1,h_=2,u_=3,f_=4,p_=5,v_=6,m_=7,g_=8,zv=9,y_=10,ER=11,SR=12,__=13,AR=14,MR=15,$R=16,PR=17,IR=18,b_=19,HR=20,TR=21,w_=22,RR=Object.freeze({__proto__:null,InputKeyDownArrowDown:l_,InputKeyDownArrowUp:d_,InputKeyDownEscape:h_,InputKeyDownHome:u_,InputKeyDownEnd:f_,InputKeyDownPageUp:p_,InputKeyDownPageDown:v_,InputKeyDownEnter:m_,InputChange:g_,InputBlur:zv,InputFocus:y_,MenuMouseLeave:ER,ItemMouseMove:SR,ItemClick:__,ToggleButtonClick:AR,FunctionToggleMenu:MR,FunctionOpenMenu:$R,FunctionCloseMenu:PR,FunctionSetHighlightedIndex:IR,FunctionSelectItem:b_,FunctionSetInputValue:HR,FunctionReset:TR,ControlledPropUpdatedSelectedItem:w_});function EAe(t){var e=wAe(t),r=e.selectedItem,n=e.inputValue;return n===""&&r&&t.defaultInputValue===void 0&&t.initialInputValue===void 0&&t.inputValue===void 0&&(n=t.itemToString(r)),Ct({},e,{inputValue:n})}le.array.isRequired,le.func,le.func,le.func,le.func,le.number,le.number,le.number,le.bool,le.bool,le.bool,le.any,le.any,le.any,le.string,le.string,le.string,le.string,le.string,le.string,le.func,le.string,le.string,le.func,le.func,le.func,le.func,le.func,le.func,le.shape({addEventListener:le.func,removeEventListener:le.func,document:le.shape({getElementById:le.func,activeElement:le.any,body:le.any})});function SAe(t,e,r){var n=y.useRef(),i=zR(t,e,r),o=i[0],a=i[1];return y.useEffect(function(){yR(r,"selectedItem")&&(r.selectedItemChanged(n.current,r.selectedItem)&&a({type:w_,inputValue:r.itemToString(r.selectedItem)}),n.current=o.selectedItem===n.current?r.selectedItem:o.selectedItem)},[o.selectedItem,r.selectedItem]),[xv(o,r),a]}var AAe=J5,MAe=Ct({},Lh,{selectedItemChanged:function(e,r){return e!==r},getA11yStatusMessage:lAe});function $Ae(t,e){var r,n=e.type,i=e.props,o=e.altKey,a;switch(n){case __:a={isOpen:go(i,"isOpen"),highlightedIndex:go(i,"highlightedIndex"),selectedItem:i.items[e.index],inputValue:i.itemToString(i.items[e.index])};break;case l_:t.isOpen?a={highlightedIndex:qf(1,t.highlightedIndex,i.items.length,e.getItemNodeFromIndex,!0)}:a={highlightedIndex:o&&t.selectedItem==null?-1:Oh(i,t,1,e.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case d_:t.isOpen?o?a=pE(i,t.highlightedIndex):a={highlightedIndex:qf(-1,t.highlightedIndex,i.items.length,e.getItemNodeFromIndex,!0)}:a={highlightedIndex:Oh(i,t,-1,e.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case m_:a=pE(i,t.highlightedIndex);break;case h_:a=Ct({isOpen:!1,highlightedIndex:-1},!t.isOpen&&{selectedItem:null,inputValue:""});break;case p_:a={highlightedIndex:qf(-10,t.highlightedIndex,i.items.length,e.getItemNodeFromIndex,!1)};break;case v_:a={highlightedIndex:qf(10,t.highlightedIndex,i.items.length,e.getItemNodeFromIndex,!1)};break;case u_:a={highlightedIndex:Tu(1,0,i.items.length,e.getItemNodeFromIndex,!1)};break;case f_:a={highlightedIndex:Tu(-1,i.items.length-1,i.items.length,e.getItemNodeFromIndex,!1)};break;case zv:a=Ct({isOpen:!1,highlightedIndex:-1},t.highlightedIndex>=0&&((r=i.items)==null?void 0:r.length)&&e.selectItem&&{selectedItem:i.items[t.highlightedIndex],inputValue:i.itemToString(i.items[t.highlightedIndex])});break;case g_:a={isOpen:!0,highlightedIndex:go(i,"highlightedIndex"),inputValue:e.inputValue};break;case y_:a={isOpen:!0,highlightedIndex:Oh(i,t,0)};break;case b_:a={selectedItem:e.selectedItem,inputValue:i.itemToString(e.selectedItem)};break;case w_:a={inputValue:e.inputValue};break;default:return CAe(t,e,RR)}return Ct({},t,a)}var PAe=["onMouseLeave","refKey","ref"],IAe=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],HAe=["onClick","onPress","refKey","ref"],TAe=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];br.stateChangeTypes=RR;function br(t){t===void 0&&(t={}),AAe();var e=Ct({},MAe,t),r=e.initialIsOpen,n=e.defaultIsOpen,i=e.items,o=e.scrollIntoView,a=e.environment,s=e.getA11yStatusMessage,c=e.getA11ySelectionMessage,l=e.itemToString,d=EAe(e),h=SAe($Ae,d,e),u=h[0],f=h[1],v=u.isOpen,p=u.highlightedIndex,_=u.selectedItem,m=u.inputValue,g=y.useRef(null),b=y.useRef({}),w=y.useRef(null),x=y.useRef(null),C=y.useRef(!0),S=yAe(e),M=y.useRef(),T=c_({state:u,props:e}),I=y.useCallback(function(Z){return b.current[S.getItemId(Z)]},[S]);fE(s,[v,p,m,i],Ct({isInitialMount:C.current,previousResultCount:M.current,items:i,environment:a,itemToString:l},u)),fE(c,[_],Ct({isInitialMount:C.current,previousResultCount:M.current,items:i,environment:a,itemToString:l},u));var N=zAe({menuElement:g.current,highlightedIndex:p,isOpen:v,itemRefs:b,scrollIntoView:o,getItemNodeFromIndex:I});kR({isInitialMount:C.current,props:e,state:u}),y.useEffect(function(){var Z=r||n||v;Z&&w.current&&w.current.focus()},[]),y.useEffect(function(){C.current||(M.current=i.length)});var U=xAe(v,[w,g,x],a,function(){f({type:zv,selectItem:!1})}),Y=CR();y.useEffect(function(){return C.current=!1,function(){C.current=!0}},[]),y.useEffect(function(){var Z;if(!v)b.current={};else if(((Z=a.document)==null?void 0:Z.activeElement)!==w.current){var R;w==null||(R=w.current)==null||R.focus()}},[v,a]);var H=y.useMemo(function(){return{ArrowDown:function(R){R.preventDefault(),f({type:l_,altKey:R.altKey,getItemNodeFromIndex:I})},ArrowUp:function(R){R.preventDefault(),f({type:d_,altKey:R.altKey,getItemNodeFromIndex:I})},Home:function(R){T.current.state.isOpen&&(R.preventDefault(),f({type:u_,getItemNodeFromIndex:I}))},End:function(R){T.current.state.isOpen&&(R.preventDefault(),f({type:f_,getItemNodeFromIndex:I}))},Escape:function(R){var de=T.current.state;(de.isOpen||de.inputValue||de.selectedItem||de.highlightedIndex>-1)&&(R.preventDefault(),f({type:h_}))},Enter:function(R){var de=T.current.state;!de.isOpen||R.which===229||(R.preventDefault(),f({type:m_,getItemNodeFromIndex:I}))},PageUp:function(R){T.current.state.isOpen&&(R.preventDefault(),f({type:p_,getItemNodeFromIndex:I}))},PageDown:function(R){T.current.state.isOpen&&(R.preventDefault(),f({type:v_,getItemNodeFromIndex:I}))}}},[f,T,I]),L=y.useCallback(function(Z){return Ct({id:S.labelId,htmlFor:S.inputId},Z)},[S]),ee=y.useCallback(function(Z,R){var de,he=Z===void 0?{}:Z,ge=he.onMouseLeave,ve=he.refKey,Be=ve===void 0?"ref":ve,De=he.ref,He=Ms(he,PAe),ht=R===void 0?{}:R;return ht.suppressRefError,Ct((de={},de[Be]=kl(De,function($e){g.current=$e}),de.id=S.menuId,de.role="listbox",de["aria-labelledby"]=He&&He["aria-label"]?void 0:""+S.labelId,de.onMouseLeave=pi(ge,function(){f({type:ER})}),de),He)},[f,Y,S]),ae=y.useCallback(function(Z){var R,de,he=Z===void 0?{}:Z,ge=he.item,ve=he.index,Be=he.refKey,De=Be===void 0?"ref":Be,He=he.ref,ht=he.onMouseMove,$e=he.onMouseDown,yt=he.onClick;he.onPress;var Kt=he.disabled,Dt=Ms(he,IAe),Mr=T.current,Jr=Mr.props,It=Mr.state,Me=xR(ge,ve,Jr.items,"Pass either item or index to getItemProps!"),Je=Me[1],Hn="onClick",ui=yt,_t=function(){Je!==It.highlightedIndex&&(N.current=!1,f({type:SR,index:Je,disabled:Kt}))},Zr=function(){f({type:__,index:Je})},V=function(ne){return ne.preventDefault()};return Ct((R={},R[De]=kl(He,function(F){F&&(b.current[S.getItemId(Je)]=F)}),R.disabled=Kt,R.role="option",R["aria-selected"]=""+(Je===It.highlightedIndex),R.id=S.getItemId(Je),R),!Kt&&(de={},de[Hn]=pi(ui,Zr),de),{onMouseMove:pi(ht,_t),onMouseDown:pi($e,V)},Dt)},[f,T,N,S]),A=y.useCallback(function(Z){var R,de=Z===void 0?{}:Z,he=de.onClick;de.onPress;var ge=de.refKey,ve=ge===void 0?"ref":ge,Be=de.ref,De=Ms(de,HAe),He=T.current.state,ht=function(){f({type:AR})};return Ct((R={},R[ve]=kl(Be,function($e){x.current=$e}),R["aria-controls"]=S.menuId,R["aria-expanded"]=He.isOpen,R.id=S.toggleButtonId,R.tabIndex=-1,R),!De.disabled&&Ct({},{onClick:pi(he,ht)}),De)},[f,T,S]),B=y.useCallback(function(Z,R){var de,he=Z===void 0?{}:Z,ge=he.onKeyDown,ve=he.onChange,Be=he.onInput,De=he.onFocus,He=he.onBlur;he.onChangeText;var ht=he.refKey,$e=ht===void 0?"ref":ht,yt=he.ref,Kt=Ms(he,TAe),Dt=R===void 0?{}:R;Dt.suppressRefError;var Mr=T.current.state,Jr=function(V){var F=r9(V);F&&H[F]&&H[F](V)},It=function(V){f({type:g_,inputValue:V.target.value})},Me=function(V){Mr.isOpen&&!U.current.isMouseDown&&f({type:zv,selectItem:V.relatedTarget!==null})},Je=function(){Mr.isOpen||f({type:y_})},Hn="onChange",ui={};if(!Kt.disabled){var _t;ui=(_t={},_t[Hn]=pi(ve,Be,It),_t.onKeyDown=pi(ge,Jr),_t.onBlur=pi(He,Me),_t.onFocus=pi(De,Je),_t)}return Ct((de={},de[$e]=kl(yt,function(Zr){w.current=Zr}),de["aria-activedescendant"]=Mr.isOpen&&Mr.highlightedIndex>-1?S.getItemId(Mr.highlightedIndex):"",de["aria-autocomplete"]="list",de["aria-controls"]=S.menuId,de["aria-expanded"]=Mr.isOpen,de["aria-labelledby"]=Kt&&Kt["aria-label"]?void 0:""+S.labelId,de.autoComplete="off",de.id=S.inputId,de.role="combobox",de.value=Mr.inputValue,de),ui,Kt)},[f,H,T,U,Y,S]),O=y.useCallback(function(){f({type:MR})},[f]),Q=y.useCallback(function(){f({type:PR})},[f]),W=y.useCallback(function(){f({type:$R})},[f]),G=y.useCallback(function(Z){f({type:IR,highlightedIndex:Z})},[f]),X=y.useCallback(function(Z){f({type:b_,selectedItem:Z})},[f]),ie=y.useCallback(function(Z){f({type:HR,inputValue:Z})},[f]),P=y.useCallback(function(){f({type:TR})},[f]);return{getItemProps:ae,getLabelProps:L,getMenuProps:ee,getInputProps:B,getToggleButtonProps:A,toggleMenu:O,openMenu:W,closeMenu:Q,setHighlightedIndex:G,setInputValue:ie,selectItem:X,reset:P,highlightedIndex:p,isOpen:v,selectedItem:_,inputValue:m}}var DR={activeIndex:-1,selectedItems:[]};function vE(t,e){return hh(t,e,DR)}function mE(t,e){return go(t,e,DR)}function RAe(t){var e=vE(t,"activeIndex"),r=vE(t,"selectedItems");return{activeIndex:e,selectedItems:r}}function gE(t){if(t.shiftKey||t.metaKey||t.ctrlKey||t.altKey)return!1;var e=t.target;return!(e instanceof HTMLInputElement&&e.value!==""&&(e.selectionStart!==0||e.selectionEnd!==0))}function DAe(t){var e=t.removedSelectedItem,r=t.itemToString;return r(e)+" has been removed."}le.array,le.array,le.array,le.func,le.func,le.func,le.number,le.number,le.number,le.func,le.func,le.string,le.string,le.shape({addEventListener:le.func,removeEventListener:le.func,document:le.shape({getElementById:le.func,activeElement:le.any,body:le.any})});var VAe={itemToString:Lh.itemToString,stateReducer:Lh.stateReducer,environment:Lh.environment,getA11yRemovalMessage:DAe,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},LAe=J5,x_=0,z_=1,C_=2,k_=3,E_=4,S_=5,A_=6,M_=7,$_=8,P_=9,I_=10,H_=11,T_=12,OAe=Object.freeze({__proto__:null,SelectedItemClick:x_,SelectedItemKeyDownDelete:z_,SelectedItemKeyDownBackspace:C_,SelectedItemKeyDownNavigationNext:k_,SelectedItemKeyDownNavigationPrevious:E_,DropdownKeyDownNavigationPrevious:S_,DropdownKeyDownBackspace:A_,DropdownClick:M_,FunctionAddSelectedItem:$_,FunctionRemoveSelectedItem:P_,FunctionSetSelectedItems:I_,FunctionSetActiveIndex:H_,FunctionReset:T_});function NAe(t,e){var r=e.type,n=e.index,i=e.props,o=e.selectedItem,a=t.activeIndex,s=t.selectedItems,c;switch(r){case x_:c={activeIndex:n};break;case E_:c={activeIndex:a-1<0?0:a-1};break;case k_:c={activeIndex:a+1>=s.length?-1:a+1};break;case C_:case z_:{if(a<0)break;var l=a;s.length===1?l=-1:a===s.length-1&&(l=s.length-2),c=Ct({selectedItems:[].concat(s.slice(0,a),s.slice(a+1))},{activeIndex:l});break}case S_:c={activeIndex:s.length-1};break;case A_:c={selectedItems:s.slice(0,s.length-1)};break;case $_:c={selectedItems:[].concat(s,[o])};break;case M_:c={activeIndex:-1};break;case P_:{var d=a,h=s.indexOf(o);if(h<0)break;s.length===1?d=-1:h===s.length-1&&(d=s.length-2),c={selectedItems:[].concat(s.slice(0,h),s.slice(h+1)),activeIndex:d};break}case I_:{var u=e.selectedItems;c={selectedItems:u};break}case H_:{var f=e.activeIndex;c={activeIndex:f};break}case T_:c={activeIndex:mE(i,"activeIndex"),selectedItems:mE(i,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return Ct({},t,c)}var FAe=["refKey","ref","onClick","onKeyDown","selectedItem","index"],BAe=["refKey","ref","onKeyDown","onClick","preventKeyAction"];VR.stateChangeTypes=OAe;function VR(t){t===void 0&&(t={}),LAe();var e=Ct({},VAe,t),r=e.getA11yRemovalMessage,n=e.itemToString,i=e.environment,o=e.keyNavigationNext,a=e.keyNavigationPrevious,s=bAe(NAe,RAe(e),e),c=s[0],l=s[1],d=c.activeIndex,h=c.selectedItems,u=y.useRef(!0),f=y.useRef(null),v=y.useRef(h),p=y.useRef();p.current=[];var _=c_({state:c,props:e});y.useEffect(function(){if(!u.current){if(h.length<v.current.length){var N=v.current.find(function(U){return h.indexOf(U)<0});_R(r({itemToString:n,resultCount:h.length,removedSelectedItem:N,activeIndex:d,activeSelectedItem:h[d]}),i.document)}v.current=h}},[h.length]),y.useEffect(function(){u.current||(d===-1&&f.current?f.current.focus():p.current[d]&&p.current[d].focus())},[d]),kR({isInitialMount:u.current,props:e,state:c});var m=CR();y.useEffect(function(){return u.current=!1,function(){u.current=!0}},[]);var g=y.useMemo(function(){var N;return N={},N[a]=function(){l({type:E_})},N[o]=function(){l({type:k_})},N.Delete=function(){l({type:z_})},N.Backspace=function(){l({type:C_})},N},[l,o,a]),b=y.useMemo(function(){var N;return N={},N[a]=function(U){gE(U)&&l({type:S_})},N.Backspace=function(Y){gE(Y)&&l({type:A_})},N},[l,a]),w=y.useCallback(function(N){var U,Y=N===void 0?{}:N,H=Y.refKey,L=H===void 0?"ref":H,ee=Y.ref,ae=Y.onClick,A=Y.onKeyDown,B=Y.selectedItem,O=Y.index,Q=Ms(Y,FAe),W=_.current.state,G=xR(B,O,W.selectedItems,"Pass either item or index to getSelectedItemProps!"),X=G[1],ie=X>-1&&X===W.activeIndex,P=function(){l({type:x_,index:X})},Z=function(de){var he=r9(de);he&&g[he]&&g[he](de)};return Ct((U={},U[L]=kl(ee,function(R){R&&p.current.push(R)}),U.tabIndex=ie?0:-1,U.onClick=pi(ae,P),U.onKeyDown=pi(A,Z),U),Q)},[l,_,g]),x=y.useCallback(function(N,U){var Y,H=N===void 0?{}:N,L=H.refKey,ee=L===void 0?"ref":L,ae=H.ref,A=H.onKeyDown,B=H.onClick,O=H.preventKeyAction,Q=O===void 0?!1:O,W=Ms(H,BAe),G=U===void 0?{}:U;G.suppressRefError;var X=function(Z){var R=r9(Z);R&&b[R]&&b[R](Z)},ie=function(){l({type:M_})};return Ct((Y={},Y[ee]=kl(ae,function(P){P&&(f.current=P)}),Y),!Q&&{onKeyDown:pi(A,X),onClick:pi(B,ie)},W)},[l,b,m]),C=y.useCallback(function(N){l({type:$_,selectedItem:N})},[l]),S=y.useCallback(function(N){l({type:P_,selectedItem:N})},[l]),M=y.useCallback(function(N){l({type:I_,selectedItems:N})},[l]),T=y.useCallback(function(N){l({type:H_,activeIndex:N})},[l]),I=y.useCallback(function(){l({type:T_})},[l]);return{getSelectedItemProps:w,getDropdownProps:x,addSelectedItem:C,removeSelectedItem:S,setSelectedItems:M,setActiveIndex:T,reset:I,selectedItems:h,activeIndex:d}}/**
1824
1824
  * react-virtual