@xras/ui 0.14.0 → 0.14.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.
Files changed (3) hide show
  1. package/dist/xras-ui.cjs +25 -266
  2. package/dist/xras-ui.js +17525 -34877
  3. package/package.json +1 -1
package/dist/xras-ui.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var _$=Object.defineProperty;var T$=(t,r,i)=>r in t?_$(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i;var AE=(t,r,i)=>(T$(t,typeof r!="symbol"?r+"":r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var qN=typeof document<"u"?document.currentScript:null;function N$(t,r){for(var i=0;i<r.length;i++){const l=r[i];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in t)){const d=Object.getOwnPropertyDescriptor(l,u);d&&Object.defineProperty(t,u,d.get?d:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function nh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pw={exports:{}},sm={},Db={exports:{}},Zt={};/**
1
+ "use strict";var Vw=Object.defineProperty;var Bw=(e,t,n)=>t in e?Vw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tc=(e,t,n)=>(Bw(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Np=typeof document<"u"?document.currentScript:null;function zw(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Xs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rg={exports:{}},fl={},Ng={exports:{}},re={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,37 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var JN;function I$(){if(JN)return Zt;JN=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),w=Symbol.iterator;function R(G){return G===null||typeof G!="object"?null:(G=w&&G[w]||G["@@iterator"],typeof G=="function"?G:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,_={};function I(G,Z,ne){this.props=G,this.context=Z,this.refs=_,this.updater=ne||A}I.prototype.isReactComponent={},I.prototype.setState=function(G,Z){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,Z,"setState")},I.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function M(){}M.prototype=I.prototype;function P(G,Z,ne){this.props=G,this.context=Z,this.refs=_,this.updater=ne||A}var V=P.prototype=new M;V.constructor=P,N(V,I.prototype),V.isPureReactComponent=!0;var U=Array.isArray,F=Object.prototype.hasOwnProperty,z={current:null},X={key:!0,ref:!0,__self:!0,__source:!0};function Y(G,Z,ne){var be,Ee={},_e=null,Ne=null;if(Z!=null)for(be in Z.ref!==void 0&&(Ne=Z.ref),Z.key!==void 0&&(_e=""+Z.key),Z)F.call(Z,be)&&!X.hasOwnProperty(be)&&(Ee[be]=Z[be]);var ke=arguments.length-2;if(ke===1)Ee.children=ne;else if(1<ke){for(var Oe=Array(ke),ve=0;ve<ke;ve++)Oe[ve]=arguments[ve+2];Ee.children=Oe}if(G&&G.defaultProps)for(be in ke=G.defaultProps,ke)Ee[be]===void 0&&(Ee[be]=ke[be]);return{$$typeof:t,type:G,key:_e,ref:Ne,props:Ee,_owner:z.current}}function ce(G,Z){return{$$typeof:t,type:G.type,key:Z,ref:G.ref,props:G.props,_owner:G._owner}}function ie(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function me(G){var Z={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(ne){return Z[ne]})}var ae=/\/+/g;function we(G,Z){return typeof G=="object"&&G!==null&&G.key!=null?me(""+G.key):Z.toString(36)}function ge(G,Z,ne,be,Ee){var _e=typeof G;(_e==="undefined"||_e==="boolean")&&(G=null);var Ne=!1;if(G===null)Ne=!0;else switch(_e){case"string":case"number":Ne=!0;break;case"object":switch(G.$$typeof){case t:case r:Ne=!0}}if(Ne)return Ne=G,Ee=Ee(Ne),G=be===""?"."+we(Ne,0):be,U(Ee)?(ne="",G!=null&&(ne=G.replace(ae,"$&/")+"/"),ge(Ee,Z,ne,"",function(ve){return ve})):Ee!=null&&(ie(Ee)&&(Ee=ce(Ee,ne+(!Ee.key||Ne&&Ne.key===Ee.key?"":(""+Ee.key).replace(ae,"$&/")+"/")+G)),Z.push(Ee)),1;if(Ne=0,be=be===""?".":be+":",U(G))for(var ke=0;ke<G.length;ke++){_e=G[ke];var Oe=be+we(_e,ke);Ne+=ge(_e,Z,ne,Oe,Ee)}else if(Oe=R(G),typeof Oe=="function")for(G=Oe.call(G),ke=0;!(_e=G.next()).done;)_e=_e.value,Oe=be+we(_e,ke++),Ne+=ge(_e,Z,ne,Oe,Ee);else if(_e==="object")throw Z=String(G),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.");return Ne}function xe(G,Z,ne){if(G==null)return G;var be=[],Ee=0;return ge(G,be,"","",function(_e){return Z.call(ne,_e,Ee++)}),be}function je(G){if(G._status===-1){var Z=G._result;Z=Z(),Z.then(function(ne){(G._status===0||G._status===-1)&&(G._status=1,G._result=ne)},function(ne){(G._status===0||G._status===-1)&&(G._status=2,G._result=ne)}),G._status===-1&&(G._status=0,G._result=Z)}if(G._status===1)return G._result.default;throw G._result}var Le={current:null},re={transition:null},De={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:re,ReactCurrentOwner:z};return Zt.Children={map:xe,forEach:function(G,Z,ne){xe(G,function(){Z.apply(this,arguments)},ne)},count:function(G){var Z=0;return xe(G,function(){Z++}),Z},toArray:function(G){return xe(G,function(Z){return Z})||[]},only:function(G){if(!ie(G))throw Error("React.Children.only expected to receive a single React element child.");return G}},Zt.Component=I,Zt.Fragment=i,Zt.Profiler=u,Zt.PureComponent=P,Zt.StrictMode=l,Zt.Suspense=y,Zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=De,Zt.cloneElement=function(G,Z,ne){if(G==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+G+".");var be=N({},G.props),Ee=G.key,_e=G.ref,Ne=G._owner;if(Z!=null){if(Z.ref!==void 0&&(_e=Z.ref,Ne=z.current),Z.key!==void 0&&(Ee=""+Z.key),G.type&&G.type.defaultProps)var ke=G.type.defaultProps;for(Oe in Z)F.call(Z,Oe)&&!X.hasOwnProperty(Oe)&&(be[Oe]=Z[Oe]===void 0&&ke!==void 0?ke[Oe]:Z[Oe])}var Oe=arguments.length-2;if(Oe===1)be.children=ne;else if(1<Oe){ke=Array(Oe);for(var ve=0;ve<Oe;ve++)ke[ve]=arguments[ve+2];be.children=ke}return{$$typeof:t,type:G.type,key:Ee,ref:_e,props:be,_owner:Ne}},Zt.createContext=function(G){return G={$$typeof:m,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},G.Provider={$$typeof:d,_context:G},G.Consumer=G},Zt.createElement=Y,Zt.createFactory=function(G){var Z=Y.bind(null,G);return Z.type=G,Z},Zt.createRef=function(){return{current:null}},Zt.forwardRef=function(G){return{$$typeof:h,render:G}},Zt.isValidElement=ie,Zt.lazy=function(G){return{$$typeof:C,_payload:{_status:-1,_result:G},_init:je}},Zt.memo=function(G,Z){return{$$typeof:x,type:G,compare:Z===void 0?null:Z}},Zt.startTransition=function(G){var Z=re.transition;re.transition={};try{G()}finally{re.transition=Z}},Zt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Zt.useCallback=function(G,Z){return Le.current.useCallback(G,Z)},Zt.useContext=function(G){return Le.current.useContext(G)},Zt.useDebugValue=function(){},Zt.useDeferredValue=function(G){return Le.current.useDeferredValue(G)},Zt.useEffect=function(G,Z){return Le.current.useEffect(G,Z)},Zt.useId=function(){return Le.current.useId()},Zt.useImperativeHandle=function(G,Z,ne){return Le.current.useImperativeHandle(G,Z,ne)},Zt.useInsertionEffect=function(G,Z){return Le.current.useInsertionEffect(G,Z)},Zt.useLayoutEffect=function(G,Z){return Le.current.useLayoutEffect(G,Z)},Zt.useMemo=function(G,Z){return Le.current.useMemo(G,Z)},Zt.useReducer=function(G,Z,ne){return Le.current.useReducer(G,Z,ne)},Zt.useRef=function(G){return Le.current.useRef(G)},Zt.useState=function(G){return Le.current.useState(G)},Zt.useSyncExternalStore=function(G,Z,ne){return Le.current.useSyncExternalStore(G,Z,ne)},Zt.useTransition=function(){return Le.current.useTransition()},Zt.version="18.2.0",Zt}var ym={exports:{}};ym.exports;var QN;function j$(){return QN||(QN=1,function(t,r){var i={};/**
10
- * @license React
11
- * react.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */i.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var l="18.2.0",u=Symbol.for("react.element"),d=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),C=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),M=Symbol.iterator,P="@@iterator";function V(D){if(D===null||typeof D!="object")return null;var q=M&&D[M]||D[P];return typeof q=="function"?q:null}var U={current:null},F={transition:null},z={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},X={current:null},Y={},ce=null;function ie(D){ce=D}Y.setExtraStackFrame=function(D){ce=D},Y.getCurrentStack=null,Y.getStackAddendum=function(){var D="";ce&&(D+=ce);var q=Y.getCurrentStack;return q&&(D+=q()||""),D};var me=!1,ae=!1,we=!1,ge=!1,xe=!1,je={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:F,ReactCurrentOwner:X};je.ReactDebugCurrentFrame=Y,je.ReactCurrentActQueue=z;function Le(D){{for(var q=arguments.length,de=new Array(q>1?q-1:0),ye=1;ye<q;ye++)de[ye-1]=arguments[ye];De("warn",D,de)}}function re(D){{for(var q=arguments.length,de=new Array(q>1?q-1:0),ye=1;ye<q;ye++)de[ye-1]=arguments[ye];De("error",D,de)}}function De(D,q,de){{var ye=je.ReactDebugCurrentFrame,ze=ye.getStackAddendum();ze!==""&&(q+="%s",de=de.concat([ze]));var st=de.map(function(et){return String(et)});st.unshift("Warning: "+q),Function.prototype.apply.call(console[D],console,st)}}var G={};function Z(D,q){{var de=D.constructor,ye=de&&(de.displayName||de.name)||"ReactClass",ze=ye+"."+q;if(G[ze])return;re("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",q,ye),G[ze]=!0}}var ne={isMounted:function(D){return!1},enqueueForceUpdate:function(D,q,de){Z(D,"forceUpdate")},enqueueReplaceState:function(D,q,de,ye){Z(D,"replaceState")},enqueueSetState:function(D,q,de,ye){Z(D,"setState")}},be=Object.assign,Ee={};Object.freeze(Ee);function _e(D,q,de){this.props=D,this.context=q,this.refs=Ee,this.updater=de||ne}_e.prototype.isReactComponent={},_e.prototype.setState=function(D,q){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,q,"setState")},_e.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var Ne={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ke=function(D,q){Object.defineProperty(_e.prototype,D,{get:function(){Le("%s(...) is deprecated in plain JavaScript React classes. %s",q[0],q[1])}})};for(var Oe in Ne)Ne.hasOwnProperty(Oe)&&ke(Oe,Ne[Oe])}function ve(){}ve.prototype=_e.prototype;function Ie(D,q,de){this.props=D,this.context=q,this.refs=Ee,this.updater=de||ne}var Xe=Ie.prototype=new ve;Xe.constructor=Ie,be(Xe,_e.prototype),Xe.isPureReactComponent=!0;function qe(){var D={current:null};return Object.seal(D),D}var Ae=Array.isArray;function xt(D){return Ae(D)}function ht(D){{var q=typeof Symbol=="function"&&Symbol.toStringTag,de=q&&D[Symbol.toStringTag]||D.constructor.name||"Object";return de}}function Ht(D){try{return Gt(D),!1}catch{return!0}}function Gt(D){return""+D}function ln(D){if(Ht(D))return re("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(D)),Gt(D)}function jn(D,q,de){var ye=D.displayName;if(ye)return ye;var ze=q.displayName||q.name||"";return ze!==""?de+"("+ze+")":de}function Vt(D){return D.displayName||"Context"}function Cn(D){if(D==null)return null;if(typeof D.tag=="number"&&re("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case m:return"Fragment";case d:return"Portal";case y:return"Profiler";case h:return"StrictMode";case R:return"Suspense";case A:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case C:var q=D;return Vt(q)+".Consumer";case x:var de=D;return Vt(de._context)+".Provider";case w:return jn(D,D.render,"ForwardRef");case N:var ye=D.displayName||null;return ye!==null?ye:Cn(D.type)||"Memo";case _:{var ze=D,st=ze._payload,et=ze._init;try{return Cn(et(st))}catch{return null}}}return null}var Qn=Object.prototype.hasOwnProperty,Tr={key:!0,ref:!0,__self:!0,__source:!0},Gn,Nr,Et;Et={};function Fn(D){if(Qn.call(D,"ref")){var q=Object.getOwnPropertyDescriptor(D,"ref").get;if(q&&q.isReactWarning)return!1}return D.ref!==void 0}function un(D){if(Qn.call(D,"key")){var q=Object.getOwnPropertyDescriptor(D,"key").get;if(q&&q.isReactWarning)return!1}return D.key!==void 0}function za(D,q){var de=function(){Gn||(Gn=!0,re("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",q))};de.isReactWarning=!0,Object.defineProperty(D,"key",{get:de,configurable:!0})}function Ua(D,q){var de=function(){Nr||(Nr=!0,re("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",q))};de.isReactWarning=!0,Object.defineProperty(D,"ref",{get:de,configurable:!0})}function Ha(D){if(typeof D.ref=="string"&&X.current&&D.__self&&X.current.stateNode!==D.__self){var q=Cn(X.current.type);Et[q]||(re('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',q,D.ref),Et[q]=!0)}}var Ye=function(D,q,de,ye,ze,st,et){var _t={$$typeof:u,type:D,key:q,ref:de,props:et,_owner:st};return _t._store={},Object.defineProperty(_t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_t,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.defineProperty(_t,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ze}),Object.freeze&&(Object.freeze(_t.props),Object.freeze(_t)),_t};function pt(D,q,de){var ye,ze={},st=null,et=null,_t=null,Pt=null;if(q!=null){Fn(q)&&(et=q.ref,Ha(q)),un(q)&&(ln(q.key),st=""+q.key),_t=q.__self===void 0?null:q.__self,Pt=q.__source===void 0?null:q.__source;for(ye in q)Qn.call(q,ye)&&!Tr.hasOwnProperty(ye)&&(ze[ye]=q[ye])}var fn=arguments.length-2;if(fn===1)ze.children=de;else if(fn>1){for(var vn=Array(fn),mn=0;mn<fn;mn++)vn[mn]=arguments[mn+2];Object.freeze&&Object.freeze(vn),ze.children=vn}if(D&&D.defaultProps){var gn=D.defaultProps;for(ye in gn)ze[ye]===void 0&&(ze[ye]=gn[ye])}if(st||et){var Bn=typeof D=="function"?D.displayName||D.name||"Unknown":D;st&&za(ze,Bn),et&&Ua(ze,Bn)}return Ye(D,st,et,_t,Pt,X.current,ze)}function Mt(D,q){var de=Ye(D.type,q,D.ref,D._self,D._source,D._owner,D.props);return de}function cn(D,q,de){if(D==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ye,ze=be({},D.props),st=D.key,et=D.ref,_t=D._self,Pt=D._source,fn=D._owner;if(q!=null){Fn(q)&&(et=q.ref,fn=X.current),un(q)&&(ln(q.key),st=""+q.key);var vn;D.type&&D.type.defaultProps&&(vn=D.type.defaultProps);for(ye in q)Qn.call(q,ye)&&!Tr.hasOwnProperty(ye)&&(q[ye]===void 0&&vn!==void 0?ze[ye]=vn[ye]:ze[ye]=q[ye])}var mn=arguments.length-2;if(mn===1)ze.children=de;else if(mn>1){for(var gn=Array(mn),Bn=0;Bn<mn;Bn++)gn[Bn]=arguments[Bn+2];ze.children=gn}return Ye(D.type,st,et,_t,Pt,fn,ze)}function nn(D){return typeof D=="object"&&D!==null&&D.$$typeof===u}var or=".",Wn=":";function Yr(D){var q=/[=:]/g,de={"=":"=0",":":"=2"},ye=D.replace(q,function(ze){return de[ze]});return"$"+ye}var hn=!1,Ir=/\/+/g;function dn(D){return D.replace(Ir,"$&/")}function An(D,q){return typeof D=="object"&&D!==null&&D.key!=null?(ln(D.key),Yr(""+D.key)):q.toString(36)}function Li(D,q,de,ye,ze){var st=typeof D;(st==="undefined"||st==="boolean")&&(D=null);var et=!1;if(D===null)et=!0;else switch(st){case"string":case"number":et=!0;break;case"object":switch(D.$$typeof){case u:case d:et=!0}}if(et){var _t=D,Pt=ze(_t),fn=ye===""?or+An(_t,0):ye;if(xt(Pt)){var vn="";fn!=null&&(vn=dn(fn)+"/"),Li(Pt,q,vn,"",function(ch){return ch})}else Pt!=null&&(nn(Pt)&&(Pt.key&&(!_t||_t.key!==Pt.key)&&ln(Pt.key),Pt=Mt(Pt,de+(Pt.key&&(!_t||_t.key!==Pt.key)?dn(""+Pt.key)+"/":"")+fn)),q.push(Pt));return 1}var mn,gn,Bn=0,Qt=ye===""?or:ye+Wn;if(xt(D))for(var Es=0;Es<D.length;Es++)mn=D[Es],gn=Qt+An(mn,Es),Bn+=Li(mn,q,de,gn,ze);else{var gu=V(D);if(typeof gu=="function"){var Dc=D;gu===Dc.entries&&(hn||Le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),hn=!0);for(var kc=gu.call(Dc),Lo,Mc=0;!(Lo=kc.next()).done;)mn=Lo.value,gn=Qt+An(mn,Mc++),Bn+=Li(mn,q,de,gn,ze)}else if(st==="object"){var Lc=String(D);throw new Error("Objects are not valid as a React child (found: "+(Lc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Lc)+"). If you meant to render a collection of children, use an array instead.")}}return Bn}function oi(D,q,de){if(D==null)return D;var ye=[],ze=0;return Li(D,ye,"","",function(st){return q.call(de,st,ze++)}),ye}function vs(D){var q=0;return oi(D,function(){q++}),q}function ol(D,q,de){oi(D,function(){q.apply(this,arguments)},de)}function sl(D){return oi(D,function(q){return q})||[]}function ms(D){if(!nn(D))throw new Error("React.Children.only expected to receive a single React element child.");return D}function Pi(D){var q={$$typeof:C,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};q.Provider={$$typeof:x,_context:q};var de=!1,ye=!1,ze=!1;{var st={$$typeof:C,_context:q};Object.defineProperties(st,{Provider:{get:function(){return ye||(ye=!0,re("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),q.Provider},set:function(et){q.Provider=et}},_currentValue:{get:function(){return q._currentValue},set:function(et){q._currentValue=et}},_currentValue2:{get:function(){return q._currentValue2},set:function(et){q._currentValue2=et}},_threadCount:{get:function(){return q._threadCount},set:function(et){q._threadCount=et}},Consumer:{get:function(){return de||(de=!0,re("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),q.Consumer}},displayName:{get:function(){return q.displayName},set:function(et){ze||(Le("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",et),ze=!0)}}}),q.Consumer=st}return q._currentRenderer=null,q._currentRenderer2=null,q}var Fi=-1,si=0,Io=1,ba=2;function xa(D){if(D._status===Fi){var q=D._result,de=q();if(de.then(function(st){if(D._status===si||D._status===Fi){var et=D;et._status=Io,et._result=st}},function(st){if(D._status===si||D._status===Fi){var et=D;et._status=ba,et._result=st}}),D._status===Fi){var ye=D;ye._status=si,ye._result=de}}if(D._status===Io){var ze=D._result;return ze===void 0&&re(`lazy: Expected the result of a dynamic import() call. Instead received: %s
18
-
19
- Your code should look like:
20
- const MyComponent = lazy(() => import('./MyComponent'))
21
-
22
- Did you accidentally put curly braces around the import?`,ze),"default"in ze||re(`lazy: Expected the result of a dynamic import() call. Instead received: %s
23
-
24
- Your code should look like:
25
- const MyComponent = lazy(() => import('./MyComponent'))`,ze),ze.default}else throw D._result}function Ga(D){var q={_status:Fi,_result:D},de={$$typeof:_,_payload:q,_init:xa};{var ye,ze;Object.defineProperties(de,{defaultProps:{configurable:!0,get:function(){return ye},set:function(st){re("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ye=st,Object.defineProperty(de,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return ze},set:function(st){re("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ze=st,Object.defineProperty(de,"propTypes",{enumerable:!0})}}})}return de}function jo(D){D!=null&&D.$$typeof===N?re("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof D!="function"?re("forwardRef requires a render function but was given %s.",D===null?"null":typeof D):D.length!==0&&D.length!==2&&re("forwardRef render functions accept exactly two parameters: props and ref. %s",D.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),D!=null&&(D.defaultProps!=null||D.propTypes!=null)&&re("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var q={$$typeof:w,render:D};{var de;Object.defineProperty(q,"displayName",{enumerable:!1,configurable:!0,get:function(){return de},set:function(ye){de=ye,!D.name&&!D.displayName&&(D.displayName=ye)}})}return q}var J;J=Symbol.for("react.module.reference");function Pe(D){return!!(typeof D=="string"||typeof D=="function"||D===m||D===y||xe||D===h||D===R||D===A||ge||D===I||me||ae||we||typeof D=="object"&&D!==null&&(D.$$typeof===_||D.$$typeof===N||D.$$typeof===x||D.$$typeof===C||D.$$typeof===w||D.$$typeof===J||D.getModuleId!==void 0))}function Ge(D,q){Pe(D)||re("memo: The first argument must be a component. Instead received: %s",D===null?"null":typeof D);var de={$$typeof:N,type:D,compare:q===void 0?null:q};{var ye;Object.defineProperty(de,"displayName",{enumerable:!1,configurable:!0,get:function(){return ye},set:function(ze){ye=ze,!D.name&&!D.displayName&&(D.displayName=ze)}})}return de}function Ze(){var D=U.current;return D===null&&re(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
26
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
27
- 2. You might be breaking the Rules of Hooks
28
- 3. You might have more than one copy of React in the same app
29
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),D}function Bt(D){var q=Ze();if(D._context!==void 0){var de=D._context;de.Consumer===D?re("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):de.Provider===D&&re("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return q.useContext(D)}function Wt(D){var q=Ze();return q.useState(D)}function kt(D,q,de){var ye=Ze();return ye.useReducer(D,q,de)}function vt(D){var q=Ze();return q.useRef(D)}function vr(D,q){var de=Ze();return de.useEffect(D,q)}function On(D,q){var de=Ze();return de.useInsertionEffect(D,q)}function Dn(D,q){var de=Ze();return de.useLayoutEffect(D,q)}function Zr(D,q){var de=Ze();return de.useCallback(D,q)}function eo(D,q){var de=Ze();return de.useMemo(D,q)}function kn(D,q,de){var ye=Ze();return ye.useImperativeHandle(D,q,de)}function Ca(D,q){{var de=Ze();return de.useDebugValue(D,q)}}function Sc(){var D=Ze();return D.useTransition()}function to(D){var q=Ze();return q.useDeferredValue(D)}function Lt(){var D=Ze();return D.useId()}function ll(D,q,de){var ye=Ze();return ye.useSyncExternalStore(D,q,de)}var Ao=0,gs,Sa,Ec,ra,wc,Rc,_c;function ul(){}ul.__reactDisabledLog=!0;function uu(){{if(Ao===0){gs=console.log,Sa=console.info,Ec=console.warn,ra=console.error,wc=console.group,Rc=console.groupCollapsed,_c=console.groupEnd;var D={configurable:!0,enumerable:!0,value:ul,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}Ao++}}function Oo(){{if(Ao--,Ao===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:be({},D,{value:gs}),info:be({},D,{value:Sa}),warn:be({},D,{value:Ec}),error:be({},D,{value:ra}),group:be({},D,{value:wc}),groupCollapsed:be({},D,{value:Rc}),groupEnd:be({},D,{value:_c})})}Ao<0&&re("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var no=je.ReactCurrentDispatcher,li;function ys(D,q,de){{if(li===void 0)try{throw Error()}catch(ze){var ye=ze.stack.trim().match(/\n( *(at )?)/);li=ye&&ye[1]||""}return`
30
- `+li+D}}var ro=!1,cl;{var dl=typeof WeakMap=="function"?WeakMap:Map;cl=new dl}function bs(D,q){if(!D||ro)return"";{var de=cl.get(D);if(de!==void 0)return de}var ye;ro=!0;var ze=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var st;st=no.current,no.current=null,uu();try{if(q){var et=function(){throw Error()};if(Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(Qt){ye=Qt}Reflect.construct(D,[],et)}else{try{et.call()}catch(Qt){ye=Qt}D.call(et.prototype)}}else{try{throw Error()}catch(Qt){ye=Qt}D()}}catch(Qt){if(Qt&&ye&&typeof Qt.stack=="string"){for(var _t=Qt.stack.split(`
31
- `),Pt=ye.stack.split(`
32
- `),fn=_t.length-1,vn=Pt.length-1;fn>=1&&vn>=0&&_t[fn]!==Pt[vn];)vn--;for(;fn>=1&&vn>=0;fn--,vn--)if(_t[fn]!==Pt[vn]){if(fn!==1||vn!==1)do if(fn--,vn--,vn<0||_t[fn]!==Pt[vn]){var mn=`
33
- `+_t[fn].replace(" at new "," at ");return D.displayName&&mn.includes("<anonymous>")&&(mn=mn.replace("<anonymous>",D.displayName)),typeof D=="function"&&cl.set(D,mn),mn}while(fn>=1&&vn>=0);break}}}finally{ro=!1,no.current=st,Oo(),Error.prepareStackTrace=ze}var gn=D?D.displayName||D.name:"",Bn=gn?ys(gn):"";return typeof D=="function"&&cl.set(D,Bn),Bn}function Tc(D,q,de){return bs(D,!1)}function Nc(D){var q=D.prototype;return!!(q&&q.isReactComponent)}function Ut(D,q,de){if(D==null)return"";if(typeof D=="function")return bs(D,Nc(D));if(typeof D=="string")return ys(D);switch(D){case R:return ys("Suspense");case A:return ys("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case w:return Tc(D.render);case N:return Ut(D.type,q,de);case _:{var ye=D,ze=ye._payload,st=ye._init;try{return Ut(st(ze),q,de)}catch{}}}return""}var Ic={},cu=je.ReactDebugCurrentFrame;function xs(D){if(D){var q=D._owner,de=Ut(D.type,D._source,q?q.type:null);cu.setExtraStackFrame(de)}else cu.setExtraStackFrame(null)}function jc(D,q,de,ye,ze){{var st=Function.call.bind(Qn);for(var et in D)if(st(D,et)){var _t=void 0;try{if(typeof D[et]!="function"){var Pt=Error((ye||"React class")+": "+de+" type `"+et+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[et]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pt.name="Invariant Violation",Pt}_t=D[et](q,et,ye,de,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(fn){_t=fn}_t&&!(_t instanceof Error)&&(xs(ze),re("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ye||"React class",de,et,typeof _t),xs(null)),_t instanceof Error&&!(_t.message in Ic)&&(Ic[_t.message]=!0,xs(ze),re("Failed %s type: %s",de,_t.message),xs(null))}}}function Jt(D){if(D){var q=D._owner,de=Ut(D.type,D._source,q?q.type:null);ie(de)}else ie(null)}var du;du=!1;function fl(){if(X.current){var D=Cn(X.current.type);if(D)return`
34
-
35
- Check the render method of \``+D+"`."}return""}function It(D){if(D!==void 0){var q=D.fileName.replace(/^.*[\\\/]/,""),de=D.lineNumber;return`
36
-
37
- Check your code at `+q+":"+de+"."}return""}function Vi(D){return D!=null?It(D.__source):""}var Xn={};function Ea(D){var q=fl();if(!q){var de=typeof D=="string"?D:D.displayName||D.name;de&&(q=`
38
-
39
- Check the top-level render call using <`+de+">.")}return q}function ui(D,q){if(!(!D._store||D._store.validated||D.key!=null)){D._store.validated=!0;var de=Ea(q);if(!Xn[de]){Xn[de]=!0;var ye="";D&&D._owner&&D._owner!==X.current&&(ye=" It was passed a child from "+Cn(D._owner.type)+"."),Jt(D),re('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',de,ye),Jt(null)}}}function Cs(D,q){if(typeof D=="object"){if(xt(D))for(var de=0;de<D.length;de++){var ye=D[de];nn(ye)&&ui(ye,q)}else if(nn(D))D._store&&(D._store.validated=!0);else if(D){var ze=V(D);if(typeof ze=="function"&&ze!==D.entries)for(var st=ze.call(D),et;!(et=st.next()).done;)nn(et.value)&&ui(et.value,q)}}}function Vn(D){{var q=D.type;if(q==null||typeof q=="string")return;var de;if(typeof q=="function")de=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===w||q.$$typeof===N))de=q.propTypes;else return;if(de){var ye=Cn(q);jc(de,D.props,"prop",ye,D)}else if(q.PropTypes!==void 0&&!du){du=!0;var ze=Cn(q);re("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ze||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&re("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yn(D){{for(var q=Object.keys(D.props),de=0;de<q.length;de++){var ye=q[de];if(ye!=="children"&&ye!=="key"){Jt(D),re("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ye),Jt(null);break}}D.ref!==null&&(Jt(D),re("Invalid attribute `ref` supplied to `React.Fragment`."),Jt(null))}}function Ac(D,q,de){var ye=Pe(D);if(!ye){var ze="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(ze+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var st=Vi(q);st?ze+=st:ze+=fl();var et;D===null?et="null":xt(D)?et="array":D!==void 0&&D.$$typeof===u?(et="<"+(Cn(D.type)||"Unknown")+" />",ze=" Did you accidentally export a JSX literal instead of a component?"):et=typeof D,re("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",et,ze)}var _t=pt.apply(this,arguments);if(_t==null)return _t;if(ye)for(var Pt=2;Pt<arguments.length;Pt++)Cs(arguments[Pt],D);return D===m?Yn(_t):Vn(_t),_t}var Lr=!1;function wa(D){var q=Ac.bind(null,D);return q.type=D,Lr||(Lr=!0,Le("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(q,"type",{enumerable:!1,get:function(){return Le("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:D}),D}}),q}function Bi(D,q,de){for(var ye=cn.apply(this,arguments),ze=2;ze<arguments.length;ze++)Cs(arguments[ze],ye.type);return Vn(ye),ye}function fu(D,q){var de=F.transition;F.transition={};var ye=F.transition;F.transition._updatedFibers=new Set;try{D()}finally{if(F.transition=de,de===null&&ye._updatedFibers){var ze=ye._updatedFibers.size;ze>10&&Le("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),ye._updatedFibers.clear()}}}var pl=!1,hl=null;function Ss(D){if(hl===null)try{var q=("require"+Math.random()).slice(0,7),de=t&&t[q];hl=de.call(t,"timers").setImmediate}catch{hl=function(ze){pl===!1&&(pl=!0,typeof MessageChannel>"u"&&re("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var st=new MessageChannel;st.port1.onmessage=ze,st.port2.postMessage(void 0)}}return hl(D)}var ci=0,Do=!1;function pu(D){{var q=ci;ci++,z.current===null&&(z.current=[]);var de=z.isBatchingLegacy,ye;try{if(z.isBatchingLegacy=!0,ye=D(),!de&&z.didScheduleLegacyUpdate){var ze=z.current;ze!==null&&(z.didScheduleLegacyUpdate=!1,Mo(ze))}}catch(gn){throw ko(q),gn}finally{z.isBatchingLegacy=de}if(ye!==null&&typeof ye=="object"&&typeof ye.then=="function"){var st=ye,et=!1,_t={then:function(gn,Bn){et=!0,st.then(function(Qt){ko(q),ci===0?hu(Qt,gn,Bn):gn(Qt)},function(Qt){ko(q),Bn(Qt)})}};return!Do&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){et||(Do=!0,re("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),_t}else{var Pt=ye;if(ko(q),ci===0){var fn=z.current;fn!==null&&(Mo(fn),z.current=null);var vn={then:function(gn,Bn){z.current===null?(z.current=[],hu(Pt,gn,Bn)):gn(Pt)}};return vn}else{var mn={then:function(gn,Bn){gn(Pt)}};return mn}}}}function ko(D){D!==ci-1&&re("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ci=D}function hu(D,q,de){{var ye=z.current;if(ye!==null)try{Mo(ye),Ss(function(){ye.length===0?(z.current=null,q(D)):hu(D,q,de)})}catch(ze){de(ze)}else q(D)}}var ao=!1;function Mo(D){if(!ao){ao=!0;var q=0;try{for(;q<D.length;q++){var de=D[q];do de=de(!0);while(de!==null)}D.length=0}catch(ye){throw D=D.slice(q+1),ye}finally{ao=!1}}}var vu=Ac,Oc=Bi,$i=wa,mu={map:oi,forEach:ol,count:vs,toArray:sl,only:ms};r.Children=mu,r.Component=_e,r.Fragment=m,r.Profiler=y,r.PureComponent=Ie,r.StrictMode=h,r.Suspense=R,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=je,r.cloneElement=Oc,r.createContext=Pi,r.createElement=vu,r.createFactory=$i,r.createRef=qe,r.forwardRef=jo,r.isValidElement=nn,r.lazy=Ga,r.memo=Ge,r.startTransition=fu,r.unstable_act=pu,r.useCallback=Zr,r.useContext=Bt,r.useDebugValue=Ca,r.useDeferredValue=to,r.useEffect=vr,r.useId=Lt,r.useImperativeHandle=kn,r.useInsertionEffect=On,r.useLayoutEffect=Dn,r.useMemo=eo,r.useReducer=kt,r.useRef=vt,r.useState=Wt,r.useSyncExternalStore=ll,r.useTransition=Sc,r.version=l,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(ym,ym.exports)),ym.exports}var KN;function nf(){if(KN)return Db.exports;KN=1;var t={};return t.NODE_ENV==="production"?Db.exports=I$():Db.exports=j$(),Db.exports}/**
9
+ */var Zs=Symbol.for("react.element"),qw=Symbol.for("react.portal"),Hw=Symbol.for("react.fragment"),Ww=Symbol.for("react.strict_mode"),Kw=Symbol.for("react.profiler"),Gw=Symbol.for("react.provider"),Yw=Symbol.for("react.context"),Qw=Symbol.for("react.forward_ref"),Xw=Symbol.for("react.suspense"),Zw=Symbol.for("react.memo"),Jw=Symbol.for("react.lazy"),kp=Symbol.iterator;function e1(e){return e===null||typeof e!="object"?null:(e=kp&&e[kp]||e["@@iterator"],typeof e=="function"?e:null)}var kg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Og=Object.assign,Tg={};function Io(e,t,n){this.props=e,this.context=t,this.refs=Tg,this.updater=n||kg}Io.prototype.isReactComponent={};Io.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Io.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pg(){}Pg.prototype=Io.prototype;function Td(e,t,n){this.props=e,this.context=t,this.refs=Tg,this.updater=n||kg}var Pd=Td.prototype=new Pg;Pd.constructor=Td;Og(Pd,Io.prototype);Pd.isPureReactComponent=!0;var Op=Array.isArray,Ig=Object.prototype.hasOwnProperty,Id={current:null},$g={key:!0,ref:!0,__self:!0,__source:!0};function Ag(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Ig.call(t,r)&&!$g.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Zs,type:e,key:s,ref:i,props:o,_owner:Id.current}}function t1(e,t){return{$$typeof:Zs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function $d(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zs}function n1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Tp=/\/+/g;function nc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?n1(""+e.key):t.toString(36)}function Bi(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Zs:case qw:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+nc(i,0):r,Op(o)?(n="",e!=null&&(n=e.replace(Tp,"$&/")+"/"),Bi(o,t,n,"",function(u){return u})):o!=null&&($d(o)&&(o=t1(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Tp,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Op(e))for(var l=0;l<e.length;l++){s=e[l];var c=r+nc(s,l);i+=Bi(s,t,n,c,o)}else if(c=e1(e),typeof c=="function")for(e=c.call(e),l=0;!(s=e.next()).done;)s=s.value,c=r+nc(s,l++),i+=Bi(s,t,n,c,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function di(e,t,n){if(e==null)return e;var r=[],o=0;return Bi(e,r,"","",function(s){return t.call(n,s,o++)}),r}function r1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ot={current:null},zi={transition:null},o1={ReactCurrentDispatcher:ot,ReactCurrentBatchConfig:zi,ReactCurrentOwner:Id};re.Children={map:di,forEach:function(e,t,n){di(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return di(e,function(){t++}),t},toArray:function(e){return di(e,function(t){return t})||[]},only:function(e){if(!$d(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};re.Component=Io;re.Fragment=Hw;re.Profiler=Kw;re.PureComponent=Td;re.StrictMode=Ww;re.Suspense=Xw;re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o1;re.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Og({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=Id.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Ig.call(t,c)&&!$g.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Zs,type:e.type,key:o,ref:s,props:r,_owner:i}};re.createContext=function(e){return e={$$typeof:Yw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Gw,_context:e},e.Consumer=e};re.createElement=Ag;re.createFactory=function(e){var t=Ag.bind(null,e);return t.type=e,t};re.createRef=function(){return{current:null}};re.forwardRef=function(e){return{$$typeof:Qw,render:e}};re.isValidElement=$d;re.lazy=function(e){return{$$typeof:Jw,_payload:{_status:-1,_result:e},_init:r1}};re.memo=function(e,t){return{$$typeof:Zw,type:e,compare:t===void 0?null:t}};re.startTransition=function(e){var t=zi.transition;zi.transition={};try{e()}finally{zi.transition=t}};re.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};re.useCallback=function(e,t){return ot.current.useCallback(e,t)};re.useContext=function(e){return ot.current.useContext(e)};re.useDebugValue=function(){};re.useDeferredValue=function(e){return ot.current.useDeferredValue(e)};re.useEffect=function(e,t){return ot.current.useEffect(e,t)};re.useId=function(){return ot.current.useId()};re.useImperativeHandle=function(e,t,n){return ot.current.useImperativeHandle(e,t,n)};re.useInsertionEffect=function(e,t){return ot.current.useInsertionEffect(e,t)};re.useLayoutEffect=function(e,t){return ot.current.useLayoutEffect(e,t)};re.useMemo=function(e,t){return ot.current.useMemo(e,t)};re.useReducer=function(e,t,n){return ot.current.useReducer(e,t,n)};re.useRef=function(e){return ot.current.useRef(e)};re.useState=function(e){return ot.current.useState(e)};re.useSyncExternalStore=function(e,t,n){return ot.current.useSyncExternalStore(e,t,n)};re.useTransition=function(){return ot.current.useTransition()};re.version="18.2.0";Ng.exports=re;var w=Ng.exports;const Se=Xs(w),ma=zw({__proto__:null,default:Se},[w]);/**
40
10
  * @license React
41
11
  * react-jsx-runtime.production.min.js
42
12
  *
@@ -44,25 +14,7 @@ Check the top-level render call using <`+de+">.")}return q}function ui(D,q){if(!
44
14
  *
45
15
  * This source code is licensed under the MIT license found in the
46
16
  * LICENSE file in the root directory of this source tree.
47
- */var eI;function A$(){if(eI)return sm;eI=1;var t=nf(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,u=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function m(h,y,x){var C,w={},R=null,A=null;x!==void 0&&(R=""+x),y.key!==void 0&&(R=""+y.key),y.ref!==void 0&&(A=y.ref);for(C in y)l.call(y,C)&&!d.hasOwnProperty(C)&&(w[C]=y[C]);if(h&&h.defaultProps)for(C in y=h.defaultProps,y)w[C]===void 0&&(w[C]=y[C]);return{$$typeof:r,type:h,key:R,ref:A,props:w,_owner:u.current}}return sm.Fragment=i,sm.jsx=m,sm.jsxs=m,sm}var lm={},tI;function O$(){if(tI)return lm;tI=1;var t={};/**
48
- * @license React
49
- * react-jsx-runtime.development.js
50
- *
51
- * Copyright (c) Facebook, Inc. and its affiliates.
52
- *
53
- * This source code is licensed under the MIT license found in the
54
- * LICENSE file in the root directory of this source tree.
55
- */return t.NODE_ENV!=="production"&&function(){var r=nf(),i=Symbol.for("react.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),y=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),_=Symbol.iterator,I="@@iterator";function M(J){if(J===null||typeof J!="object")return null;var Pe=_&&J[_]||J[I];return typeof Pe=="function"?Pe:null}var P=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function V(J){{for(var Pe=arguments.length,Ge=new Array(Pe>1?Pe-1:0),Ze=1;Ze<Pe;Ze++)Ge[Ze-1]=arguments[Ze];U("error",J,Ge)}}function U(J,Pe,Ge){{var Ze=P.ReactDebugCurrentFrame,Bt=Ze.getStackAddendum();Bt!==""&&(Pe+="%s",Ge=Ge.concat([Bt]));var Wt=Ge.map(function(kt){return String(kt)});Wt.unshift("Warning: "+Pe),Function.prototype.apply.call(console[J],console,Wt)}}var F=!1,z=!1,X=!1,Y=!1,ce=!1,ie;ie=Symbol.for("react.module.reference");function me(J){return!!(typeof J=="string"||typeof J=="function"||J===u||J===m||ce||J===d||J===C||J===w||Y||J===N||F||z||X||typeof J=="object"&&J!==null&&(J.$$typeof===A||J.$$typeof===R||J.$$typeof===h||J.$$typeof===y||J.$$typeof===x||J.$$typeof===ie||J.getModuleId!==void 0))}function ae(J,Pe,Ge){var Ze=J.displayName;if(Ze)return Ze;var Bt=Pe.displayName||Pe.name||"";return Bt!==""?Ge+"("+Bt+")":Ge}function we(J){return J.displayName||"Context"}function ge(J){if(J==null)return null;if(typeof J.tag=="number"&&V("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof J=="function")return J.displayName||J.name||null;if(typeof J=="string")return J;switch(J){case u:return"Fragment";case l:return"Portal";case m:return"Profiler";case d:return"StrictMode";case C:return"Suspense";case w:return"SuspenseList"}if(typeof J=="object")switch(J.$$typeof){case y:var Pe=J;return we(Pe)+".Consumer";case h:var Ge=J;return we(Ge._context)+".Provider";case x:return ae(J,J.render,"ForwardRef");case R:var Ze=J.displayName||null;return Ze!==null?Ze:ge(J.type)||"Memo";case A:{var Bt=J,Wt=Bt._payload,kt=Bt._init;try{return ge(kt(Wt))}catch{return null}}}return null}var xe=Object.assign,je=0,Le,re,De,G,Z,ne,be;function Ee(){}Ee.__reactDisabledLog=!0;function _e(){{if(je===0){Le=console.log,re=console.info,De=console.warn,G=console.error,Z=console.group,ne=console.groupCollapsed,be=console.groupEnd;var J={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:J,log:J,warn:J,error:J,group:J,groupCollapsed:J,groupEnd:J})}je++}}function Ne(){{if(je--,je===0){var J={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xe({},J,{value:Le}),info:xe({},J,{value:re}),warn:xe({},J,{value:De}),error:xe({},J,{value:G}),group:xe({},J,{value:Z}),groupCollapsed:xe({},J,{value:ne}),groupEnd:xe({},J,{value:be})})}je<0&&V("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ke=P.ReactCurrentDispatcher,Oe;function ve(J,Pe,Ge){{if(Oe===void 0)try{throw Error()}catch(Bt){var Ze=Bt.stack.trim().match(/\n( *(at )?)/);Oe=Ze&&Ze[1]||""}return`
56
- `+Oe+J}}var Ie=!1,Xe;{var qe=typeof WeakMap=="function"?WeakMap:Map;Xe=new qe}function Ae(J,Pe){if(!J||Ie)return"";{var Ge=Xe.get(J);if(Ge!==void 0)return Ge}var Ze;Ie=!0;var Bt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Wt;Wt=ke.current,ke.current=null,_e();try{if(Pe){var kt=function(){throw Error()};if(Object.defineProperty(kt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(kt,[])}catch(Ca){Ze=Ca}Reflect.construct(J,[],kt)}else{try{kt.call()}catch(Ca){Ze=Ca}J.call(kt.prototype)}}else{try{throw Error()}catch(Ca){Ze=Ca}J()}}catch(Ca){if(Ca&&Ze&&typeof Ca.stack=="string"){for(var vt=Ca.stack.split(`
57
- `),vr=Ze.stack.split(`
58
- `),On=vt.length-1,Dn=vr.length-1;On>=1&&Dn>=0&&vt[On]!==vr[Dn];)Dn--;for(;On>=1&&Dn>=0;On--,Dn--)if(vt[On]!==vr[Dn]){if(On!==1||Dn!==1)do if(On--,Dn--,Dn<0||vt[On]!==vr[Dn]){var Zr=`
59
- `+vt[On].replace(" at new "," at ");return J.displayName&&Zr.includes("<anonymous>")&&(Zr=Zr.replace("<anonymous>",J.displayName)),typeof J=="function"&&Xe.set(J,Zr),Zr}while(On>=1&&Dn>=0);break}}}finally{Ie=!1,ke.current=Wt,Ne(),Error.prepareStackTrace=Bt}var eo=J?J.displayName||J.name:"",kn=eo?ve(eo):"";return typeof J=="function"&&Xe.set(J,kn),kn}function xt(J,Pe,Ge){return Ae(J,!1)}function ht(J){var Pe=J.prototype;return!!(Pe&&Pe.isReactComponent)}function Ht(J,Pe,Ge){if(J==null)return"";if(typeof J=="function")return Ae(J,ht(J));if(typeof J=="string")return ve(J);switch(J){case C:return ve("Suspense");case w:return ve("SuspenseList")}if(typeof J=="object")switch(J.$$typeof){case x:return xt(J.render);case R:return Ht(J.type,Pe,Ge);case A:{var Ze=J,Bt=Ze._payload,Wt=Ze._init;try{return Ht(Wt(Bt),Pe,Ge)}catch{}}}return""}var Gt=Object.prototype.hasOwnProperty,ln={},jn=P.ReactDebugCurrentFrame;function Vt(J){if(J){var Pe=J._owner,Ge=Ht(J.type,J._source,Pe?Pe.type:null);jn.setExtraStackFrame(Ge)}else jn.setExtraStackFrame(null)}function Cn(J,Pe,Ge,Ze,Bt){{var Wt=Function.call.bind(Gt);for(var kt in J)if(Wt(J,kt)){var vt=void 0;try{if(typeof J[kt]!="function"){var vr=Error((Ze||"React class")+": "+Ge+" type `"+kt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof J[kt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw vr.name="Invariant Violation",vr}vt=J[kt](Pe,kt,Ze,Ge,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(On){vt=On}vt&&!(vt instanceof Error)&&(Vt(Bt),V("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ze||"React class",Ge,kt,typeof vt),Vt(null)),vt instanceof Error&&!(vt.message in ln)&&(ln[vt.message]=!0,Vt(Bt),V("Failed %s type: %s",Ge,vt.message),Vt(null))}}}var Qn=Array.isArray;function Tr(J){return Qn(J)}function Gn(J){{var Pe=typeof Symbol=="function"&&Symbol.toStringTag,Ge=Pe&&J[Symbol.toStringTag]||J.constructor.name||"Object";return Ge}}function Nr(J){try{return Et(J),!1}catch{return!0}}function Et(J){return""+J}function Fn(J){if(Nr(J))return V("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Gn(J)),Et(J)}var un=P.ReactCurrentOwner,za={key:!0,ref:!0,__self:!0,__source:!0},Ua,Ha,Ye;Ye={};function pt(J){if(Gt.call(J,"ref")){var Pe=Object.getOwnPropertyDescriptor(J,"ref").get;if(Pe&&Pe.isReactWarning)return!1}return J.ref!==void 0}function Mt(J){if(Gt.call(J,"key")){var Pe=Object.getOwnPropertyDescriptor(J,"key").get;if(Pe&&Pe.isReactWarning)return!1}return J.key!==void 0}function cn(J,Pe){if(typeof J.ref=="string"&&un.current&&Pe&&un.current.stateNode!==Pe){var Ge=ge(un.current.type);Ye[Ge]||(V('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ge(un.current.type),J.ref),Ye[Ge]=!0)}}function nn(J,Pe){{var Ge=function(){Ua||(Ua=!0,V("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Pe))};Ge.isReactWarning=!0,Object.defineProperty(J,"key",{get:Ge,configurable:!0})}}function or(J,Pe){{var Ge=function(){Ha||(Ha=!0,V("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Pe))};Ge.isReactWarning=!0,Object.defineProperty(J,"ref",{get:Ge,configurable:!0})}}var Wn=function(J,Pe,Ge,Ze,Bt,Wt,kt){var vt={$$typeof:i,type:J,key:Pe,ref:Ge,props:kt,_owner:Wt};return vt._store={},Object.defineProperty(vt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(vt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ze}),Object.defineProperty(vt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Bt}),Object.freeze&&(Object.freeze(vt.props),Object.freeze(vt)),vt};function Yr(J,Pe,Ge,Ze,Bt){{var Wt,kt={},vt=null,vr=null;Ge!==void 0&&(Fn(Ge),vt=""+Ge),Mt(Pe)&&(Fn(Pe.key),vt=""+Pe.key),pt(Pe)&&(vr=Pe.ref,cn(Pe,Bt));for(Wt in Pe)Gt.call(Pe,Wt)&&!za.hasOwnProperty(Wt)&&(kt[Wt]=Pe[Wt]);if(J&&J.defaultProps){var On=J.defaultProps;for(Wt in On)kt[Wt]===void 0&&(kt[Wt]=On[Wt])}if(vt||vr){var Dn=typeof J=="function"?J.displayName||J.name||"Unknown":J;vt&&nn(kt,Dn),vr&&or(kt,Dn)}return Wn(J,vt,vr,Bt,Ze,un.current,kt)}}var hn=P.ReactCurrentOwner,Ir=P.ReactDebugCurrentFrame;function dn(J){if(J){var Pe=J._owner,Ge=Ht(J.type,J._source,Pe?Pe.type:null);Ir.setExtraStackFrame(Ge)}else Ir.setExtraStackFrame(null)}var An;An=!1;function Li(J){return typeof J=="object"&&J!==null&&J.$$typeof===i}function oi(){{if(hn.current){var J=ge(hn.current.type);if(J)return`
60
-
61
- Check the render method of \``+J+"`."}return""}}function vs(J){{if(J!==void 0){var Pe=J.fileName.replace(/^.*[\\\/]/,""),Ge=J.lineNumber;return`
62
-
63
- Check your code at `+Pe+":"+Ge+"."}return""}}var ol={};function sl(J){{var Pe=oi();if(!Pe){var Ge=typeof J=="string"?J:J.displayName||J.name;Ge&&(Pe=`
64
-
65
- Check the top-level render call using <`+Ge+">.")}return Pe}}function ms(J,Pe){{if(!J._store||J._store.validated||J.key!=null)return;J._store.validated=!0;var Ge=sl(Pe);if(ol[Ge])return;ol[Ge]=!0;var Ze="";J&&J._owner&&J._owner!==hn.current&&(Ze=" It was passed a child from "+ge(J._owner.type)+"."),dn(J),V('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ge,Ze),dn(null)}}function Pi(J,Pe){{if(typeof J!="object")return;if(Tr(J))for(var Ge=0;Ge<J.length;Ge++){var Ze=J[Ge];Li(Ze)&&ms(Ze,Pe)}else if(Li(J))J._store&&(J._store.validated=!0);else if(J){var Bt=M(J);if(typeof Bt=="function"&&Bt!==J.entries)for(var Wt=Bt.call(J),kt;!(kt=Wt.next()).done;)Li(kt.value)&&ms(kt.value,Pe)}}}function Fi(J){{var Pe=J.type;if(Pe==null||typeof Pe=="string")return;var Ge;if(typeof Pe=="function")Ge=Pe.propTypes;else if(typeof Pe=="object"&&(Pe.$$typeof===x||Pe.$$typeof===R))Ge=Pe.propTypes;else return;if(Ge){var Ze=ge(Pe);Cn(Ge,J.props,"prop",Ze,J)}else if(Pe.PropTypes!==void 0&&!An){An=!0;var Bt=ge(Pe);V("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Bt||"Unknown")}typeof Pe.getDefaultProps=="function"&&!Pe.getDefaultProps.isReactClassApproved&&V("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function si(J){{for(var Pe=Object.keys(J.props),Ge=0;Ge<Pe.length;Ge++){var Ze=Pe[Ge];if(Ze!=="children"&&Ze!=="key"){dn(J),V("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ze),dn(null);break}}J.ref!==null&&(dn(J),V("Invalid attribute `ref` supplied to `React.Fragment`."),dn(null))}}function Io(J,Pe,Ge,Ze,Bt,Wt){{var kt=me(J);if(!kt){var vt="";(J===void 0||typeof J=="object"&&J!==null&&Object.keys(J).length===0)&&(vt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var vr=vs(Bt);vr?vt+=vr:vt+=oi();var On;J===null?On="null":Tr(J)?On="array":J!==void 0&&J.$$typeof===i?(On="<"+(ge(J.type)||"Unknown")+" />",vt=" Did you accidentally export a JSX literal instead of a component?"):On=typeof J,V("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",On,vt)}var Dn=Yr(J,Pe,Ge,Bt,Wt);if(Dn==null)return Dn;if(kt){var Zr=Pe.children;if(Zr!==void 0)if(Ze)if(Tr(Zr)){for(var eo=0;eo<Zr.length;eo++)Pi(Zr[eo],J);Object.freeze&&Object.freeze(Zr)}else V("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pi(Zr,J)}return J===u?si(Dn):Fi(Dn),Dn}}function ba(J,Pe,Ge){return Io(J,Pe,Ge,!0)}function xa(J,Pe,Ge){return Io(J,Pe,Ge,!1)}var Ga=xa,jo=ba;lm.Fragment=u,lm.jsx=Ga,lm.jsxs=jo}(),lm}var D$={};D$.NODE_ENV==="production"?pw.exports=A$():pw.exports=O$();var v=pw.exports,Oi={},hw={exports:{}},Ii={},kb={exports:{}},OE={};/**
17
+ */var s1=w,i1=Symbol.for("react.element"),a1=Symbol.for("react.fragment"),l1=Object.prototype.hasOwnProperty,c1=s1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u1={key:!0,ref:!0,__self:!0,__source:!0};function Mg(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)l1.call(t,r)&&!u1.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:i1,type:e,key:s,ref:i,props:o,_owner:c1.current}}fl.Fragment=a1;fl.jsx=Mg;fl.jsxs=Mg;Rg.exports=fl;var a=Rg.exports,Dt={},Dg={exports:{}},Rt={},Lg={exports:{}},Fg={};/**
66
18
  * @license React
67
19
  * scheduler.production.min.js
68
20
  *
@@ -70,15 +22,7 @@ Check the top-level render call using <`+Ge+">.")}return Pe}}function ms(J,Pe){{
70
22
  *
71
23
  * This source code is licensed under the MIT license found in the
72
24
  * LICENSE file in the root directory of this source tree.
73
- */var nI;function k$(){return nI||(nI=1,function(t){function r(re,De){var G=re.length;re.push(De);e:for(;0<G;){var Z=G-1>>>1,ne=re[Z];if(0<u(ne,De))re[Z]=De,re[G]=ne,G=Z;else break e}}function i(re){return re.length===0?null:re[0]}function l(re){if(re.length===0)return null;var De=re[0],G=re.pop();if(G!==De){re[0]=G;e:for(var Z=0,ne=re.length,be=ne>>>1;Z<be;){var Ee=2*(Z+1)-1,_e=re[Ee],Ne=Ee+1,ke=re[Ne];if(0>u(_e,G))Ne<ne&&0>u(ke,_e)?(re[Z]=ke,re[Ne]=G,Z=Ne):(re[Z]=_e,re[Ee]=G,Z=Ee);else if(Ne<ne&&0>u(ke,G))re[Z]=ke,re[Ne]=G,Z=Ne;else break e}}return De}function u(re,De){var G=re.sortIndex-De.sortIndex;return G!==0?G:re.id-De.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;t.unstable_now=function(){return d.now()}}else{var m=Date,h=m.now();t.unstable_now=function(){return m.now()-h}}var y=[],x=[],C=1,w=null,R=3,A=!1,N=!1,_=!1,I=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function V(re){for(var De=i(x);De!==null;){if(De.callback===null)l(x);else if(De.startTime<=re)l(x),De.sortIndex=De.expirationTime,r(y,De);else break;De=i(x)}}function U(re){if(_=!1,V(re),!N)if(i(y)!==null)N=!0,je(F);else{var De=i(x);De!==null&&Le(U,De.startTime-re)}}function F(re,De){N=!1,_&&(_=!1,M(Y),Y=-1),A=!0;var G=R;try{for(V(De),w=i(y);w!==null&&(!(w.expirationTime>De)||re&&!me());){var Z=w.callback;if(typeof Z=="function"){w.callback=null,R=w.priorityLevel;var ne=Z(w.expirationTime<=De);De=t.unstable_now(),typeof ne=="function"?w.callback=ne:w===i(y)&&l(y),V(De)}else l(y);w=i(y)}if(w!==null)var be=!0;else{var Ee=i(x);Ee!==null&&Le(U,Ee.startTime-De),be=!1}return be}finally{w=null,R=G,A=!1}}var z=!1,X=null,Y=-1,ce=5,ie=-1;function me(){return!(t.unstable_now()-ie<ce)}function ae(){if(X!==null){var re=t.unstable_now();ie=re;var De=!0;try{De=X(!0,re)}finally{De?we():(z=!1,X=null)}}else z=!1}var we;if(typeof P=="function")we=function(){P(ae)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,xe=ge.port2;ge.port1.onmessage=ae,we=function(){xe.postMessage(null)}}else we=function(){I(ae,0)};function je(re){X=re,z||(z=!0,we())}function Le(re,De){Y=I(function(){re(t.unstable_now())},De)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(re){re.callback=null},t.unstable_continueExecution=function(){N||A||(N=!0,je(F))},t.unstable_forceFrameRate=function(re){0>re||125<re?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<re?Math.floor(1e3/re):5},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return i(y)},t.unstable_next=function(re){switch(R){case 1:case 2:case 3:var De=3;break;default:De=R}var G=R;R=De;try{return re()}finally{R=G}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(re,De){switch(re){case 1:case 2:case 3:case 4:case 5:break;default:re=3}var G=R;R=re;try{return De()}finally{R=G}},t.unstable_scheduleCallback=function(re,De,G){var Z=t.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?Z+G:Z):G=Z,re){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=G+ne,re={id:C++,callback:De,priorityLevel:re,startTime:G,expirationTime:ne,sortIndex:-1},G>Z?(re.sortIndex=G,r(x,re),i(y)===null&&re===i(x)&&(_?(M(Y),Y=-1):_=!0,Le(U,G-Z))):(re.sortIndex=ne,r(y,re),N||A||(N=!0,je(F))),re},t.unstable_shouldYield=me,t.unstable_wrapCallback=function(re){var De=R;return function(){var G=R;R=De;try{return re.apply(this,arguments)}finally{R=G}}}}(OE)),OE}var DE={},rI;function M$(){return rI||(rI=1,function(t){var r={};/**
74
- * @license React
75
- * scheduler.development.js
76
- *
77
- * Copyright (c) Facebook, Inc. and its affiliates.
78
- *
79
- * This source code is licensed under the MIT license found in the
80
- * LICENSE file in the root directory of this source tree.
81
- */r.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var i=!1,l=!1,u=5;function d(Ye,pt){var Mt=Ye.length;Ye.push(pt),y(Ye,pt,Mt)}function m(Ye){return Ye.length===0?null:Ye[0]}function h(Ye){if(Ye.length===0)return null;var pt=Ye[0],Mt=Ye.pop();return Mt!==pt&&(Ye[0]=Mt,x(Ye,Mt,0)),pt}function y(Ye,pt,Mt){for(var cn=Mt;cn>0;){var nn=cn-1>>>1,or=Ye[nn];if(C(or,pt)>0)Ye[nn]=pt,Ye[cn]=or,cn=nn;else return}}function x(Ye,pt,Mt){for(var cn=Mt,nn=Ye.length,or=nn>>>1;cn<or;){var Wn=(cn+1)*2-1,Yr=Ye[Wn],hn=Wn+1,Ir=Ye[hn];if(C(Yr,pt)<0)hn<nn&&C(Ir,Yr)<0?(Ye[cn]=Ir,Ye[hn]=pt,cn=hn):(Ye[cn]=Yr,Ye[Wn]=pt,cn=Wn);else if(hn<nn&&C(Ir,pt)<0)Ye[cn]=Ir,Ye[hn]=pt,cn=hn;else return}}function C(Ye,pt){var Mt=Ye.sortIndex-pt.sortIndex;return Mt!==0?Mt:Ye.id-pt.id}var w=1,R=2,A=3,N=4,_=5;function I(Ye,pt){}var M=typeof performance=="object"&&typeof performance.now=="function";if(M){var P=performance;t.unstable_now=function(){return P.now()}}else{var V=Date,U=V.now();t.unstable_now=function(){return V.now()-U}}var F=1073741823,z=-1,X=250,Y=5e3,ce=1e4,ie=F,me=[],ae=[],we=1,ge=null,xe=A,je=!1,Le=!1,re=!1,De=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ne(Ye){for(var pt=m(ae);pt!==null;){if(pt.callback===null)h(ae);else if(pt.startTime<=Ye)h(ae),pt.sortIndex=pt.expirationTime,d(me,pt);else return;pt=m(ae)}}function be(Ye){if(re=!1,ne(Ye),!Le)if(m(me)!==null)Le=!0,Fn(Ee);else{var pt=m(ae);pt!==null&&un(be,pt.startTime-Ye)}}function Ee(Ye,pt){Le=!1,re&&(re=!1,za()),je=!0;var Mt=xe;try{var cn;if(!l)return _e(Ye,pt)}finally{ge=null,xe=Mt,je=!1}}function _e(Ye,pt){var Mt=pt;for(ne(Mt),ge=m(me);ge!==null&&!i&&!(ge.expirationTime>Mt&&(!Ye||Vt()));){var cn=ge.callback;if(typeof cn=="function"){ge.callback=null,xe=ge.priorityLevel;var nn=ge.expirationTime<=Mt,or=cn(nn);Mt=t.unstable_now(),typeof or=="function"?ge.callback=or:ge===m(me)&&h(me),ne(Mt)}else h(me);ge=m(me)}if(ge!==null)return!0;var Wn=m(ae);return Wn!==null&&un(be,Wn.startTime-Mt),!1}function Ne(Ye,pt){switch(Ye){case w:case R:case A:case N:case _:break;default:Ye=A}var Mt=xe;xe=Ye;try{return pt()}finally{xe=Mt}}function ke(Ye){var pt;switch(xe){case w:case R:case A:pt=A;break;default:pt=xe;break}var Mt=xe;xe=pt;try{return Ye()}finally{xe=Mt}}function Oe(Ye){var pt=xe;return function(){var Mt=xe;xe=pt;try{return Ye.apply(this,arguments)}finally{xe=Mt}}}function ve(Ye,pt,Mt){var cn=t.unstable_now(),nn;if(typeof Mt=="object"&&Mt!==null){var or=Mt.delay;typeof or=="number"&&or>0?nn=cn+or:nn=cn}else nn=cn;var Wn;switch(Ye){case w:Wn=z;break;case R:Wn=X;break;case _:Wn=ie;break;case N:Wn=ce;break;case A:default:Wn=Y;break}var Yr=nn+Wn,hn={id:we++,callback:pt,priorityLevel:Ye,startTime:nn,expirationTime:Yr,sortIndex:-1};return nn>cn?(hn.sortIndex=nn,d(ae,hn),m(me)===null&&hn===m(ae)&&(re?za():re=!0,un(be,nn-cn))):(hn.sortIndex=Yr,d(me,hn),!Le&&!je&&(Le=!0,Fn(Ee))),hn}function Ie(){}function Xe(){!Le&&!je&&(Le=!0,Fn(Ee))}function qe(){return m(me)}function Ae(Ye){Ye.callback=null}function xt(){return xe}var ht=!1,Ht=null,Gt=-1,ln=u,jn=-1;function Vt(){var Ye=t.unstable_now()-jn;return!(Ye<ln)}function Cn(){}function Qn(Ye){if(Ye<0||Ye>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ye>0?ln=Math.floor(1e3/Ye):ln=u}var Tr=function(){if(Ht!==null){var Ye=t.unstable_now();jn=Ye;var pt=!0,Mt=!0;try{Mt=Ht(pt,Ye)}finally{Mt?Gn():(ht=!1,Ht=null)}}else ht=!1},Gn;if(typeof Z=="function")Gn=function(){Z(Tr)};else if(typeof MessageChannel<"u"){var Nr=new MessageChannel,Et=Nr.port2;Nr.port1.onmessage=Tr,Gn=function(){Et.postMessage(null)}}else Gn=function(){De(Tr,0)};function Fn(Ye){Ht=Ye,ht||(ht=!0,Gn())}function un(Ye,pt){Gt=De(function(){Ye(t.unstable_now())},pt)}function za(){G(Gt),Gt=-1}var Ua=Cn,Ha=null;t.unstable_IdlePriority=_,t.unstable_ImmediatePriority=w,t.unstable_LowPriority=N,t.unstable_NormalPriority=A,t.unstable_Profiling=Ha,t.unstable_UserBlockingPriority=R,t.unstable_cancelCallback=Ae,t.unstable_continueExecution=Xe,t.unstable_forceFrameRate=Qn,t.unstable_getCurrentPriorityLevel=xt,t.unstable_getFirstCallbackNode=qe,t.unstable_next=ke,t.unstable_pauseExecution=Ie,t.unstable_requestPaint=Ua,t.unstable_runWithPriority=Ne,t.unstable_scheduleCallback=ve,t.unstable_shouldYield=Vt,t.unstable_wrapCallback=Oe,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(DE)),DE}var aI;function xA(){if(aI)return kb.exports;aI=1;var t={};return t.NODE_ENV==="production"?kb.exports=k$():kb.exports=M$(),kb.exports}/**
25
+ */(function(e){function t(T,F){var A=T.length;T.push(F);e:for(;0<A;){var W=A-1>>>1,U=T[W];if(0<o(U,F))T[W]=F,T[A]=U,A=W;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var F=T[0],A=T.pop();if(A!==F){T[0]=A;e:for(var W=0,U=T.length,Y=U>>>1;W<Y;){var Z=2*(W+1)-1,J=T[Z],X=Z+1,se=T[X];if(0>o(J,A))X<U&&0>o(se,J)?(T[W]=se,T[X]=A,W=X):(T[W]=J,T[Z]=A,W=Z);else if(X<U&&0>o(se,A))T[W]=se,T[X]=A,W=X;else break e}}return F}function o(T,F){var A=T.sortIndex-F.sortIndex;return A!==0?A:T.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,f=null,p=3,y=!1,m=!1,h=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(T){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=T)r(u),F.sortIndex=F.expirationTime,t(c,F);else break;F=n(u)}}function S(T){if(h=!1,b(T),!m)if(n(c)!==null)m=!0,V(_);else{var F=n(u);F!==null&&Q(S,F.startTime-T)}}function _(T,F){m=!1,h&&(h=!1,g(E),E=-1),y=!0;var A=p;try{for(b(F),f=n(c);f!==null&&(!(f.expirationTime>F)||T&&!O());){var W=f.callback;if(typeof W=="function"){f.callback=null,p=f.priorityLevel;var U=W(f.expirationTime<=F);F=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(c)&&r(c),b(F)}else r(c);f=n(c)}if(f!==null)var Y=!0;else{var Z=n(u);Z!==null&&Q(S,Z.startTime-F),Y=!1}return Y}finally{f=null,p=A,y=!1}}var C=!1,j=null,E=-1,N=5,R=-1;function O(){return!(e.unstable_now()-R<N)}function k(){if(j!==null){var T=e.unstable_now();R=T;var F=!0;try{F=j(!0,T)}finally{F?P():(C=!1,j=null)}}else C=!1}var P;if(typeof v=="function")P=function(){v(k)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,L=D.port2;D.port1.onmessage=k,P=function(){L.postMessage(null)}}else P=function(){x(k,0)};function V(T){j=T,C||(C=!0,P())}function Q(T,F){E=x(function(){T(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){m||y||(m=!0,V(_))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(T){switch(p){case 1:case 2:case 3:var F=3;break;default:F=p}var A=p;p=F;try{return T()}finally{p=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,F){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var A=p;p=T;try{return F()}finally{p=A}},e.unstable_scheduleCallback=function(T,F,A){var W=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?W+A:W):A=W,T){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=A+U,T={id:d++,callback:F,priorityLevel:T,startTime:A,expirationTime:U,sortIndex:-1},A>W?(T.sortIndex=A,t(u,T),n(c)===null&&T===n(u)&&(h?(g(E),E=-1):h=!0,Q(S,A-W))):(T.sortIndex=U,t(c,T),m||y||(m=!0,V(_))),T},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(T){var F=p;return function(){var A=p;p=F;try{return T.apply(this,arguments)}finally{p=A}}}})(Fg);Lg.exports=Fg;var d1=Lg.exports;/**
82
26
  * @license React
83
27
  * react-dom.production.min.js
84
28
  *
@@ -86,166 +30,14 @@ Check the top-level render call using <`+Ge+">.")}return Pe}}function ms(J,Pe){{
86
30
  *
87
31
  * This source code is licensed under the MIT license found in the
88
32
  * LICENSE file in the root directory of this source tree.
89
- */var iI;function L$(){if(iI)return Ii;iI=1;var t=nf(),r=xA();function i(a){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=1;f<arguments.length;f++)o+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+a+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,u={};function d(a,o){m(a,o),m(a+"Capture",o)}function m(a,o){for(u[a]=o,a=0;a<o.length;a++)l.add(o[a])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,x=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,C={},w={};function R(a){return y.call(w,a)?!0:y.call(C,a)?!1:x.test(a)?w[a]=!0:(C[a]=!0,!1)}function A(a,o,f,g){if(f!==null&&f.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return g?!1:f!==null?!f.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function N(a,o,f,g){if(o===null||typeof o>"u"||A(a,o,f,g))return!0;if(g)return!1;if(f!==null)switch(f.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function _(a,o,f,g,S,T,L){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=g,this.attributeNamespace=S,this.mustUseProperty=f,this.propertyName=a,this.type=o,this.sanitizeURL=T,this.removeEmptyString=L}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){I[a]=new _(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var o=a[0];I[o]=new _(o,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){I[a]=new _(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){I[a]=new _(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){I[a]=new _(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){I[a]=new _(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){I[a]=new _(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){I[a]=new _(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){I[a]=new _(a,5,!1,a.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function P(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var o=a.replace(M,P);I[o]=new _(o,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var o=a.replace(M,P);I[o]=new _(o,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var o=a.replace(M,P);I[o]=new _(o,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){I[a]=new _(a,1,!1,a.toLowerCase(),null,!1,!1)}),I.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){I[a]=new _(a,1,!1,a.toLowerCase(),null,!0,!0)});function V(a,o,f,g){var S=I.hasOwnProperty(o)?I[o]:null;(S!==null?S.type!==0:g||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(N(o,f,S,g)&&(f=null),g||S===null?R(o)&&(f===null?a.removeAttribute(o):a.setAttribute(o,""+f)):S.mustUseProperty?a[S.propertyName]=f===null?S.type===3?!1:"":f:(o=S.attributeName,g=S.attributeNamespace,f===null?a.removeAttribute(o):(S=S.type,f=S===3||S===4&&f===!0?"":""+f,g?a.setAttributeNS(g,o,f):a.setAttribute(o,f))))}var U=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=Symbol.for("react.element"),z=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),me=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),xe=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),Le=Symbol.for("react.offscreen"),re=Symbol.iterator;function De(a){return a===null||typeof a!="object"?null:(a=re&&a[re]||a["@@iterator"],typeof a=="function"?a:null)}var G=Object.assign,Z;function ne(a){if(Z===void 0)try{throw Error()}catch(f){var o=f.stack.trim().match(/\n( *(at )?)/);Z=o&&o[1]||""}return`
90
- `+Z+a}var be=!1;function Ee(a,o){if(!a||be)return"";be=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(he){var g=he}Reflect.construct(a,[],o)}else{try{o.call()}catch(he){g=he}a.call(o.prototype)}else{try{throw Error()}catch(he){g=he}a()}}catch(he){if(he&&g&&typeof he.stack=="string"){for(var S=he.stack.split(`
91
- `),T=g.stack.split(`
92
- `),L=S.length-1,W=T.length-1;1<=L&&0<=W&&S[L]!==T[W];)W--;for(;1<=L&&0<=W;L--,W--)if(S[L]!==T[W]){if(L!==1||W!==1)do if(L--,W--,0>W||S[L]!==T[W]){var Q=`
93
- `+S[L].replace(" at new "," at ");return a.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",a.displayName)),Q}while(1<=L&&0<=W);break}}}finally{be=!1,Error.prepareStackTrace=f}return(a=a?a.displayName||a.name:"")?ne(a):""}function _e(a){switch(a.tag){case 5:return ne(a.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return a=Ee(a.type,!1),a;case 11:return a=Ee(a.type.render,!1),a;case 1:return a=Ee(a.type,!0),a;default:return""}}function Ne(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case X:return"Fragment";case z:return"Portal";case ce:return"Profiler";case Y:return"StrictMode";case we:return"Suspense";case ge:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case me:return(a.displayName||"Context")+".Consumer";case ie:return(a._context.displayName||"Context")+".Provider";case ae:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case xe:return o=a.displayName||null,o!==null?o:Ne(a.type)||"Memo";case je:o=a._payload,a=a._init;try{return Ne(a(o))}catch{}}return null}function ke(a){var o=a.type;switch(a.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ne(o);case 8:return o===Y?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Oe(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function ve(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ie(a){var o=ve(a)?"checked":"value",f=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),g=""+a[o];if(!a.hasOwnProperty(o)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var S=f.get,T=f.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return S.call(this)},set:function(L){g=""+L,T.call(this,L)}}),Object.defineProperty(a,o,{enumerable:f.enumerable}),{getValue:function(){return g},setValue:function(L){g=""+L},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function Xe(a){a._valueTracker||(a._valueTracker=Ie(a))}function qe(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var f=o.getValue(),g="";return a&&(g=ve(a)?a.checked?"true":"false":a.value),a=g,a!==f?(o.setValue(a),!0):!1}function Ae(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function xt(a,o){var f=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??a._wrapperState.initialChecked})}function ht(a,o){var f=o.defaultValue==null?"":o.defaultValue,g=o.checked!=null?o.checked:o.defaultChecked;f=Oe(o.value!=null?o.value:f),a._wrapperState={initialChecked:g,initialValue:f,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Ht(a,o){o=o.checked,o!=null&&V(a,"checked",o,!1)}function Gt(a,o){Ht(a,o);var f=Oe(o.value),g=o.type;if(f!=null)g==="number"?(f===0&&a.value===""||a.value!=f)&&(a.value=""+f):a.value!==""+f&&(a.value=""+f);else if(g==="submit"||g==="reset"){a.removeAttribute("value");return}o.hasOwnProperty("value")?jn(a,o.type,f):o.hasOwnProperty("defaultValue")&&jn(a,o.type,Oe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(a.defaultChecked=!!o.defaultChecked)}function ln(a,o,f){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var g=o.type;if(!(g!=="submit"&&g!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+a._wrapperState.initialValue,f||o===a.value||(a.value=o),a.defaultValue=o}f=a.name,f!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,f!==""&&(a.name=f)}function jn(a,o,f){(o!=="number"||Ae(a.ownerDocument)!==a)&&(f==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+f&&(a.defaultValue=""+f))}var Vt=Array.isArray;function Cn(a,o,f,g){if(a=a.options,o){o={};for(var S=0;S<f.length;S++)o["$"+f[S]]=!0;for(f=0;f<a.length;f++)S=o.hasOwnProperty("$"+a[f].value),a[f].selected!==S&&(a[f].selected=S),S&&g&&(a[f].defaultSelected=!0)}else{for(f=""+Oe(f),o=null,S=0;S<a.length;S++){if(a[S].value===f){a[S].selected=!0,g&&(a[S].defaultSelected=!0);return}o!==null||a[S].disabled||(o=a[S])}o!==null&&(o.selected=!0)}}function Qn(a,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return G({},o,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Tr(a,o){var f=o.value;if(f==null){if(f=o.children,o=o.defaultValue,f!=null){if(o!=null)throw Error(i(92));if(Vt(f)){if(1<f.length)throw Error(i(93));f=f[0]}o=f}o==null&&(o=""),f=o}a._wrapperState={initialValue:Oe(f)}}function Gn(a,o){var f=Oe(o.value),g=Oe(o.defaultValue);f!=null&&(f=""+f,f!==a.value&&(a.value=f),o.defaultValue==null&&a.defaultValue!==f&&(a.defaultValue=f)),g!=null&&(a.defaultValue=""+g)}function Nr(a){var o=a.textContent;o===a._wrapperState.initialValue&&o!==""&&o!==null&&(a.value=o)}function Et(a){switch(a){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 Fn(a,o){return a==null||a==="http://www.w3.org/1999/xhtml"?Et(o):a==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var un,za=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,f,g,S){MSApp.execUnsafeLocalFunction(function(){return a(o,f,g,S)})}:a}(function(a,o){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=o;else{for(un=un||document.createElement("div"),un.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=un.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;o.firstChild;)a.appendChild(o.firstChild)}});function Ua(a,o){if(o){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=o;return}}a.textContent=o}var Ha={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},Ye=["Webkit","ms","Moz","O"];Object.keys(Ha).forEach(function(a){Ye.forEach(function(o){o=o+a.charAt(0).toUpperCase()+a.substring(1),Ha[o]=Ha[a]})});function pt(a,o,f){return o==null||typeof o=="boolean"||o===""?"":f||typeof o!="number"||o===0||Ha.hasOwnProperty(a)&&Ha[a]?(""+o).trim():o+"px"}function Mt(a,o){a=a.style;for(var f in o)if(o.hasOwnProperty(f)){var g=f.indexOf("--")===0,S=pt(f,o[f],g);f==="float"&&(f="cssFloat"),g?a.setProperty(f,S):a[f]=S}}var cn=G({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 nn(a,o){if(o){if(cn[a]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(i(137,a));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(i(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(i(61))}if(o.style!=null&&typeof o.style!="object")throw Error(i(62))}}function or(a,o){if(a.indexOf("-")===-1)return typeof o.is=="string";switch(a){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 Wn=null;function Yr(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var hn=null,Ir=null,dn=null;function An(a){if(a=oo(a)){if(typeof hn!="function")throw Error(i(280));var o=a.stateNode;o&&(o=vf(o),hn(a.stateNode,a.type,o))}}function Li(a){Ir?dn?dn.push(a):dn=[a]:Ir=a}function oi(){if(Ir){var a=Ir,o=dn;if(dn=Ir=null,An(a),o)for(a=0;a<o.length;a++)An(o[a])}}function vs(a,o){return a(o)}function ol(){}var sl=!1;function ms(a,o,f){if(sl)return a(o,f);sl=!0;try{return vs(a,o,f)}finally{sl=!1,(Ir!==null||dn!==null)&&(ol(),oi())}}function Pi(a,o){var f=a.stateNode;if(f===null)return null;var g=vf(f);if(g===null)return null;f=g[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(a=a.type,g=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!g;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(i(231,o,typeof f));return f}var Fi=!1;if(h)try{var si={};Object.defineProperty(si,"passive",{get:function(){Fi=!0}}),window.addEventListener("test",si,si),window.removeEventListener("test",si,si)}catch{Fi=!1}function Io(a,o,f,g,S,T,L,W,Q){var he=Array.prototype.slice.call(arguments,3);try{o.apply(f,he)}catch(Fe){this.onError(Fe)}}var ba=!1,xa=null,Ga=!1,jo=null,J={onError:function(a){ba=!0,xa=a}};function Pe(a,o,f,g,S,T,L,W,Q){ba=!1,xa=null,Io.apply(J,arguments)}function Ge(a,o,f,g,S,T,L,W,Q){if(Pe.apply(this,arguments),ba){if(ba){var he=xa;ba=!1,xa=null}else throw Error(i(198));Ga||(Ga=!0,jo=he)}}function Ze(a){var o=a,f=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,o.flags&4098&&(f=o.return),a=o.return;while(a)}return o.tag===3?f:null}function Bt(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function Wt(a){if(Ze(a)!==a)throw Error(i(188))}function kt(a){var o=a.alternate;if(!o){if(o=Ze(a),o===null)throw Error(i(188));return o!==a?null:a}for(var f=a,g=o;;){var S=f.return;if(S===null)break;var T=S.alternate;if(T===null){if(g=S.return,g!==null){f=g;continue}break}if(S.child===T.child){for(T=S.child;T;){if(T===f)return Wt(S),a;if(T===g)return Wt(S),o;T=T.sibling}throw Error(i(188))}if(f.return!==g.return)f=S,g=T;else{for(var L=!1,W=S.child;W;){if(W===f){L=!0,f=S,g=T;break}if(W===g){L=!0,g=S,f=T;break}W=W.sibling}if(!L){for(W=T.child;W;){if(W===f){L=!0,f=T,g=S;break}if(W===g){L=!0,g=T,f=S;break}W=W.sibling}if(!L)throw Error(i(189))}}if(f.alternate!==g)throw Error(i(190))}if(f.tag!==3)throw Error(i(188));return f.stateNode.current===f?a:o}function vt(a){return a=kt(a),a!==null?vr(a):null}function vr(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var o=vr(a);if(o!==null)return o;a=a.sibling}return null}var On=r.unstable_scheduleCallback,Dn=r.unstable_cancelCallback,Zr=r.unstable_shouldYield,eo=r.unstable_requestPaint,kn=r.unstable_now,Ca=r.unstable_getCurrentPriorityLevel,Sc=r.unstable_ImmediatePriority,to=r.unstable_UserBlockingPriority,Lt=r.unstable_NormalPriority,ll=r.unstable_LowPriority,Ao=r.unstable_IdlePriority,gs=null,Sa=null;function Ec(a){if(Sa&&typeof Sa.onCommitFiberRoot=="function")try{Sa.onCommitFiberRoot(gs,a,void 0,(a.current.flags&128)===128)}catch{}}var ra=Math.clz32?Math.clz32:_c,wc=Math.log,Rc=Math.LN2;function _c(a){return a>>>=0,a===0?32:31-(wc(a)/Rc|0)|0}var ul=64,uu=4194304;function Oo(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function no(a,o){var f=a.pendingLanes;if(f===0)return 0;var g=0,S=a.suspendedLanes,T=a.pingedLanes,L=f&268435455;if(L!==0){var W=L&~S;W!==0?g=Oo(W):(T&=L,T!==0&&(g=Oo(T)))}else L=f&~S,L!==0?g=Oo(L):T!==0&&(g=Oo(T));if(g===0)return 0;if(o!==0&&o!==g&&!(o&S)&&(S=g&-g,T=o&-o,S>=T||S===16&&(T&4194240)!==0))return o;if(g&4&&(g|=f&16),o=a.entangledLanes,o!==0)for(a=a.entanglements,o&=g;0<o;)f=31-ra(o),S=1<<f,g|=a[f],o&=~S;return g}function li(a,o){switch(a){case 1:case 2:case 4:return o+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 o+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 ys(a,o){for(var f=a.suspendedLanes,g=a.pingedLanes,S=a.expirationTimes,T=a.pendingLanes;0<T;){var L=31-ra(T),W=1<<L,Q=S[L];Q===-1?(!(W&f)||W&g)&&(S[L]=li(W,o)):Q<=o&&(a.expiredLanes|=W),T&=~W}}function ro(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function cl(){var a=ul;return ul<<=1,!(ul&4194240)&&(ul=64),a}function dl(a){for(var o=[],f=0;31>f;f++)o.push(a);return o}function bs(a,o,f){a.pendingLanes|=o,o!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,o=31-ra(o),a[o]=f}function Tc(a,o){var f=a.pendingLanes&~o;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=o,a.mutableReadLanes&=o,a.entangledLanes&=o,o=a.entanglements;var g=a.eventTimes;for(a=a.expirationTimes;0<f;){var S=31-ra(f),T=1<<S;o[S]=0,g[S]=-1,a[S]=-1,f&=~T}}function Nc(a,o){var f=a.entangledLanes|=o;for(a=a.entanglements;f;){var g=31-ra(f),S=1<<g;S&o|a[g]&o&&(a[g]|=o),f&=~S}}var Ut=0;function Ic(a){return a&=-a,1<a?4<a?a&268435455?16:536870912:4:1}var cu,xs,jc,Jt,du,fl=!1,It=[],Vi=null,Xn=null,Ea=null,ui=new Map,Cs=new Map,Vn=[],Yn="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 Ac(a,o){switch(a){case"focusin":case"focusout":Vi=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Ea=null;break;case"pointerover":case"pointerout":ui.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cs.delete(o.pointerId)}}function Lr(a,o,f,g,S,T){return a===null||a.nativeEvent!==T?(a={blockedOn:o,domEventName:f,eventSystemFlags:g,nativeEvent:T,targetContainers:[S]},o!==null&&(o=oo(o),o!==null&&xs(o)),a):(a.eventSystemFlags|=g,o=a.targetContainers,S!==null&&o.indexOf(S)===-1&&o.push(S),a)}function wa(a,o,f,g,S){switch(o){case"focusin":return Vi=Lr(Vi,a,o,f,g,S),!0;case"dragenter":return Xn=Lr(Xn,a,o,f,g,S),!0;case"mouseover":return Ea=Lr(Ea,a,o,f,g,S),!0;case"pointerover":var T=S.pointerId;return ui.set(T,Lr(ui.get(T)||null,a,o,f,g,S)),!0;case"gotpointercapture":return T=S.pointerId,Cs.set(T,Lr(Cs.get(T)||null,a,o,f,g,S)),!0}return!1}function Bi(a){var o=Uo(a.target);if(o!==null){var f=Ze(o);if(f!==null){if(o=f.tag,o===13){if(o=Bt(f),o!==null){a.blockedOn=o,du(a.priority,function(){jc(f)});return}}else if(o===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function fu(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var f=vu(a.domEventName,a.eventSystemFlags,o[0],a.nativeEvent);if(f===null){f=a.nativeEvent;var g=new f.constructor(f.type,f);Wn=g,f.target.dispatchEvent(g),Wn=null}else return o=oo(f),o!==null&&xs(o),a.blockedOn=f,!1;o.shift()}return!0}function pl(a,o,f){fu(a)&&f.delete(o)}function hl(){fl=!1,Vi!==null&&fu(Vi)&&(Vi=null),Xn!==null&&fu(Xn)&&(Xn=null),Ea!==null&&fu(Ea)&&(Ea=null),ui.forEach(pl),Cs.forEach(pl)}function Ss(a,o){a.blockedOn===o&&(a.blockedOn=null,fl||(fl=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,hl)))}function ci(a){function o(S){return Ss(S,a)}if(0<It.length){Ss(It[0],a);for(var f=1;f<It.length;f++){var g=It[f];g.blockedOn===a&&(g.blockedOn=null)}}for(Vi!==null&&Ss(Vi,a),Xn!==null&&Ss(Xn,a),Ea!==null&&Ss(Ea,a),ui.forEach(o),Cs.forEach(o),f=0;f<Vn.length;f++)g=Vn[f],g.blockedOn===a&&(g.blockedOn=null);for(;0<Vn.length&&(f=Vn[0],f.blockedOn===null);)Bi(f),f.blockedOn===null&&Vn.shift()}var Do=U.ReactCurrentBatchConfig,pu=!0;function ko(a,o,f,g){var S=Ut,T=Do.transition;Do.transition=null;try{Ut=1,ao(a,o,f,g)}finally{Ut=S,Do.transition=T}}function hu(a,o,f,g){var S=Ut,T=Do.transition;Do.transition=null;try{Ut=4,ao(a,o,f,g)}finally{Ut=S,Do.transition=T}}function ao(a,o,f,g){if(pu){var S=vu(a,o,f,g);if(S===null)Sh(a,o,g,Mo,f),Ac(a,g);else if(wa(S,a,o,f,g))g.stopPropagation();else if(Ac(a,g),o&4&&-1<Yn.indexOf(a)){for(;S!==null;){var T=oo(S);if(T!==null&&cu(T),T=vu(a,o,f,g),T===null&&Sh(a,o,g,Mo,f),T===S)break;S=T}S!==null&&g.stopPropagation()}else Sh(a,o,g,null,f)}}var Mo=null;function vu(a,o,f,g){if(Mo=null,a=Yr(g),a=Uo(a),a!==null)if(o=Ze(a),o===null)a=null;else if(f=o.tag,f===13){if(a=Bt(o),a!==null)return a;a=null}else if(f===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null);return Mo=a,null}function Oc(a){switch(a){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(Ca()){case Sc:return 1;case to:return 4;case Lt:case ll:return 16;case Ao:return 536870912;default:return 16}default:return 16}}var $i=null,mu=null,D=null;function q(){if(D)return D;var a,o=mu,f=o.length,g,S="value"in $i?$i.value:$i.textContent,T=S.length;for(a=0;a<f&&o[a]===S[a];a++);var L=f-a;for(g=1;g<=L&&o[f-g]===S[T-g];g++);return D=S.slice(a,1<g?1-g:void 0)}function de(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function ye(){return!0}function ze(){return!1}function st(a){function o(f,g,S,T,L){this._reactName=f,this._targetInst=S,this.type=g,this.nativeEvent=T,this.target=L,this.currentTarget=null;for(var W in a)a.hasOwnProperty(W)&&(f=a[W],this[W]=f?f(T):T[W]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?ye:ze,this.isPropagationStopped=ze,this}return G(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=ye)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=ye)},persist:function(){},isPersistent:ye}),o}var et={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_t=st(et),Pt=G({},et,{view:0,detail:0}),fn=st(Pt),vn,mn,gn,Bn=G({},Pt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:af,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==gn&&(gn&&a.type==="mousemove"?(vn=a.screenX-gn.screenX,mn=a.screenY-gn.screenY):mn=vn=0,gn=a),vn)},movementY:function(a){return"movementY"in a?a.movementY:mn}}),Qt=st(Bn),Es=G({},Bn,{dataTransfer:0}),gu=st(Es),Dc=G({},Pt,{relatedTarget:0}),kc=st(Dc),Lo=G({},et,{animationName:0,elapsedTime:0,pseudoElement:0}),Mc=st(Lo),Lc=G({},et,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),ch=st(Lc),o0=G({},et,{data:0}),Hm=st(o0),Gm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dh={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"},Wm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xm(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Wm[a])?!!o[a]:!1}function af(){return Xm}var s0=G({},Pt,{key:function(a){if(a.key){var o=Gm[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=de(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?dh[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:af,charCode:function(a){return a.type==="keypress"?de(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?de(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Po=st(s0),l0=G({},Bn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),of=st(l0),fh=G({},Pt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:af}),ph=st(fh),u0=G({},et,{propertyName:0,elapsedTime:0,pseudoElement:0}),sf=st(u0),Ym=G({},Bn,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Ra=st(Ym),Fo=[9,13,27,32],Kn=h&&"CompositionEvent"in window,Wa=null;h&&"documentMode"in document&&(Wa=document.documentMode);var hh=h&&"TextEvent"in window&&!Wa,Pc=h&&(!Kn||Wa&&8<Wa&&11>=Wa),Zm=" ",yu=!1;function qm(a,o){switch(a){case"keyup":return Fo.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jm(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ws=!1;function c0(a,o){switch(a){case"compositionend":return Jm(o);case"keypress":return o.which!==32?null:(yu=!0,Zm);case"textInput":return a=o.data,a===Zm&&yu?null:a;default:return null}}function d0(a,o){if(ws)return a==="compositionend"||!Kn&&qm(a,o)?(a=q(),D=mu=$i=null,ws=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Pc&&o.locale!=="ko"?null:o.data;default:return null}}var f0={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 vh(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!f0[a.type]:o==="textarea"}function Qm(a,o,f,g){Li(g),o=pf(o,"onChange"),0<o.length&&(f=new _t("onChange","change",null,f,g),a.push({event:f,listeners:o}))}var Fc=null,Vc=null;function Km(a){vg(a,0)}function Vo(a){var o=Su(a);if(qe(o))return a}function mh(a,o){if(a==="change")return o}var gh=!1;if(h){var lf;if(h){var yh="oninput"in document;if(!yh){var eg=document.createElement("div");eg.setAttribute("oninput","return;"),yh=typeof eg.oninput=="function"}lf=yh}else lf=!1;gh=lf&&(!document.documentMode||9<document.documentMode)}function tg(){Fc&&(Fc.detachEvent("onpropertychange",ng),Vc=Fc=null)}function ng(a){if(a.propertyName==="value"&&Vo(Vc)){var o=[];Qm(o,Vc,a,Yr(a)),ms(Km,o)}}function p0(a,o,f){a==="focusin"?(tg(),Fc=o,Vc=f,Fc.attachEvent("onpropertychange",ng)):a==="focusout"&&tg()}function h0(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Vo(Vc)}function v0(a,o){if(a==="click")return Vo(o)}function m0(a,o){if(a==="input"||a==="change")return Vo(o)}function rg(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var zi=typeof Object.is=="function"?Object.is:rg;function bu(a,o){if(zi(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var f=Object.keys(a),g=Object.keys(o);if(f.length!==g.length)return!1;for(g=0;g<f.length;g++){var S=f[g];if(!y.call(o,S)||!zi(a[S],o[S]))return!1}return!0}function ag(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function ig(a,o){var f=ag(a);a=0;for(var g;f;){if(f.nodeType===3){if(g=a+f.textContent.length,a<=o&&g>=o)return{node:f,offset:o-a};a=g}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=ag(f)}}function og(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?og(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function sg(){for(var a=window,o=Ae();o instanceof a.HTMLIFrameElement;){try{var f=typeof o.contentWindow.location.href=="string"}catch{f=!1}if(f)a=o.contentWindow;else break;o=Ae(a.document)}return o}function Bc(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function vl(a){var o=sg(),f=a.focusedElem,g=a.selectionRange;if(o!==f&&f&&f.ownerDocument&&og(f.ownerDocument.documentElement,f)){if(g!==null&&Bc(f)){if(o=g.start,a=g.end,a===void 0&&(a=o),"selectionStart"in f)f.selectionStart=o,f.selectionEnd=Math.min(a,f.value.length);else if(a=(o=f.ownerDocument||document)&&o.defaultView||window,a.getSelection){a=a.getSelection();var S=f.textContent.length,T=Math.min(g.start,S);g=g.end===void 0?T:Math.min(g.end,S),!a.extend&&T>g&&(S=g,g=T,T=S),S=ig(f,T);var L=ig(f,g);S&&L&&(a.rangeCount!==1||a.anchorNode!==S.node||a.anchorOffset!==S.offset||a.focusNode!==L.node||a.focusOffset!==L.offset)&&(o=o.createRange(),o.setStart(S.node,S.offset),a.removeAllRanges(),T>g?(a.addRange(o),a.extend(L.node,L.offset)):(o.setEnd(L.node,L.offset),a.addRange(o)))}}for(o=[],a=f;a=a.parentNode;)a.nodeType===1&&o.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<o.length;f++)a=o[f],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var uf=h&&"documentMode"in document&&11>=document.documentMode,ml=null,Rs=null,$c=null,bh=!1;function lg(a,o,f){var g=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;bh||ml==null||ml!==Ae(g)||(g=ml,"selectionStart"in g&&Bc(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),$c&&bu($c,g)||($c=g,g=pf(Rs,"onSelect"),0<g.length&&(o=new _t("onSelect","select",null,o,f),a.push({event:o,listeners:g}),o.target=ml)))}function cf(a,o){var f={};return f[a.toLowerCase()]=o.toLowerCase(),f["Webkit"+a]="webkit"+o,f["Moz"+a]="moz"+o,f}var xu={animationend:cf("Animation","AnimationEnd"),animationiteration:cf("Animation","AnimationIteration"),animationstart:cf("Animation","AnimationStart"),transitionend:cf("Transition","TransitionEnd")},df={},ug={};h&&(ug=document.createElement("div").style,"AnimationEvent"in window||(delete xu.animationend.animation,delete xu.animationiteration.animation,delete xu.animationstart.animation),"TransitionEvent"in window||delete xu.transitionend.transition);function zc(a){if(df[a])return df[a];if(!xu[a])return a;var o=xu[a],f;for(f in o)if(o.hasOwnProperty(f)&&f in ug)return df[a]=o[f];return a}var qr=zc("animationend"),xh=zc("animationiteration"),cg=zc("animationstart"),dg=zc("transitionend"),fg=new Map,pg="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 _s(a,o){fg.set(a,o),d(o,[a])}for(var ff=0;ff<pg.length;ff++){var Uc=pg[ff],Hc=Uc.toLowerCase(),g0=Uc[0].toUpperCase()+Uc.slice(1);_s(Hc,"on"+g0)}_s(qr,"onAnimationEnd"),_s(xh,"onAnimationIteration"),_s(cg,"onAnimationStart"),_s("dblclick","onDoubleClick"),_s("focusin","onFocus"),_s("focusout","onBlur"),_s(dg,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bo="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(" "),y0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bo));function hg(a,o,f){var g=a.type||"unknown-event";a.currentTarget=f,Ge(g,o,void 0,a),a.currentTarget=null}function vg(a,o){o=(o&4)!==0;for(var f=0;f<a.length;f++){var g=a[f],S=g.event;g=g.listeners;e:{var T=void 0;if(o)for(var L=g.length-1;0<=L;L--){var W=g[L],Q=W.instance,he=W.currentTarget;if(W=W.listener,Q!==T&&S.isPropagationStopped())break e;hg(S,W,he),T=Q}else for(L=0;L<g.length;L++){if(W=g[L],Q=W.instance,he=W.currentTarget,W=W.listener,Q!==T&&S.isPropagationStopped())break e;hg(S,W,he),T=Q}}}if(Ga)throw a=jo,Ga=!1,jo=null,a}function Nn(a,o){var f=o[jh];f===void 0&&(f=o[jh]=new Set);var g=a+"__bubble";f.has(g)||(Ch(o,a,2,!1),f.add(g))}function Gc(a,o,f){var g=0;o&&(g|=4),Ch(f,a,g,o)}var $o="_reactListening"+Math.random().toString(36).slice(2);function io(a){if(!a[$o]){a[$o]=!0,l.forEach(function(f){f!=="selectionchange"&&(y0.has(f)||Gc(f,!1,a),Gc(f,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[$o]||(o[$o]=!0,Gc("selectionchange",!1,o))}}function Ch(a,o,f,g){switch(Oc(o)){case 1:var S=ko;break;case 4:S=hu;break;default:S=ao}f=S.bind(null,o,f,a),S=void 0,!Fi||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(S=!0),g?S!==void 0?a.addEventListener(o,f,{capture:!0,passive:S}):a.addEventListener(o,f,!0):S!==void 0?a.addEventListener(o,f,{passive:S}):a.addEventListener(o,f,!1)}function Sh(a,o,f,g,S){var T=g;if(!(o&1)&&!(o&2)&&g!==null)e:for(;;){if(g===null)return;var L=g.tag;if(L===3||L===4){var W=g.stateNode.containerInfo;if(W===S||W.nodeType===8&&W.parentNode===S)break;if(L===4)for(L=g.return;L!==null;){var Q=L.tag;if((Q===3||Q===4)&&(Q=L.stateNode.containerInfo,Q===S||Q.nodeType===8&&Q.parentNode===S))return;L=L.return}for(;W!==null;){if(L=Uo(W),L===null)return;if(Q=L.tag,Q===5||Q===6){g=T=L;continue e}W=W.parentNode}}g=g.return}ms(function(){var he=T,Fe=Yr(f),Be=[];e:{var Me=fg.get(a);if(Me!==void 0){var Qe=_t,at=a;switch(a){case"keypress":if(de(f)===0)break e;case"keydown":case"keyup":Qe=Po;break;case"focusin":at="focus",Qe=kc;break;case"focusout":at="blur",Qe=kc;break;case"beforeblur":case"afterblur":Qe=kc;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Qe=Qt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Qe=gu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Qe=ph;break;case qr:case xh:case cg:Qe=Mc;break;case dg:Qe=sf;break;case"scroll":Qe=fn;break;case"wheel":Qe=Ra;break;case"copy":case"cut":case"paste":Qe=ch;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Qe=of}var lt=(o&4)!==0,fr=!lt&&a==="scroll",oe=lt?Me!==null?Me+"Capture":null:Me;lt=[];for(var ee=he,ue;ee!==null;){ue=ee;var Ue=ue.stateNode;if(ue.tag===5&&Ue!==null&&(ue=Ue,oe!==null&&(Ue=Pi(ee,oe),Ue!=null&&lt.push(Cu(ee,Ue,ue)))),fr)break;ee=ee.return}0<lt.length&&(Me=new Qe(Me,at,null,f,Fe),Be.push({event:Me,listeners:lt}))}}if(!(o&7)){e:{if(Me=a==="mouseover"||a==="pointerover",Qe=a==="mouseout"||a==="pointerout",Me&&f!==Wn&&(at=f.relatedTarget||f.fromElement)&&(Uo(at)||at[Ui]))break e;if((Qe||Me)&&(Me=Fe.window===Fe?Fe:(Me=Fe.ownerDocument)?Me.defaultView||Me.parentWindow:window,Qe?(at=f.relatedTarget||f.toElement,Qe=he,at=at?Uo(at):null,at!==null&&(fr=Ze(at),at!==fr||at.tag!==5&&at.tag!==6)&&(at=null)):(Qe=null,at=he),Qe!==at)){if(lt=Qt,Ue="onMouseLeave",oe="onMouseEnter",ee="mouse",(a==="pointerout"||a==="pointerover")&&(lt=of,Ue="onPointerLeave",oe="onPointerEnter",ee="pointer"),fr=Qe==null?Me:Su(Qe),ue=at==null?Me:Su(at),Me=new lt(Ue,ee+"leave",Qe,f,Fe),Me.target=fr,Me.relatedTarget=ue,Ue=null,Uo(Fe)===he&&(lt=new lt(oe,ee+"enter",at,f,Fe),lt.target=ue,lt.relatedTarget=fr,Ue=lt),fr=Ue,Qe&&at)t:{for(lt=Qe,oe=at,ee=0,ue=lt;ue;ue=gl(ue))ee++;for(ue=0,Ue=oe;Ue;Ue=gl(Ue))ue++;for(;0<ee-ue;)lt=gl(lt),ee--;for(;0<ue-ee;)oe=gl(oe),ue--;for(;ee--;){if(lt===oe||oe!==null&&lt===oe.alternate)break t;lt=gl(lt),oe=gl(oe)}lt=null}else lt=null;Qe!==null&&Eh(Be,Me,Qe,lt,!1),at!==null&&fr!==null&&Eh(Be,fr,at,lt,!0)}}e:{if(Me=he?Su(he):window,Qe=Me.nodeName&&Me.nodeName.toLowerCase(),Qe==="select"||Qe==="input"&&Me.type==="file")var ct=mh;else if(vh(Me))if(gh)ct=m0;else{ct=h0;var St=p0}else(Qe=Me.nodeName)&&Qe.toLowerCase()==="input"&&(Me.type==="checkbox"||Me.type==="radio")&&(ct=v0);if(ct&&(ct=ct(a,he))){Qm(Be,ct,f,Fe);break e}St&&St(a,Me,he),a==="focusout"&&(St=Me._wrapperState)&&St.controlled&&Me.type==="number"&&jn(Me,"number",Me.value)}switch(St=he?Su(he):window,a){case"focusin":(vh(St)||St.contentEditable==="true")&&(ml=St,Rs=he,$c=null);break;case"focusout":$c=Rs=ml=null;break;case"mousedown":bh=!0;break;case"contextmenu":case"mouseup":case"dragend":bh=!1,lg(Be,f,Fe);break;case"selectionchange":if(uf)break;case"keydown":case"keyup":lg(Be,f,Fe)}var it;if(Kn)e:{switch(a){case"compositionstart":var wt="onCompositionStart";break e;case"compositionend":wt="onCompositionEnd";break e;case"compositionupdate":wt="onCompositionUpdate";break e}wt=void 0}else ws?qm(a,f)&&(wt="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(wt="onCompositionStart");wt&&(Pc&&f.locale!=="ko"&&(ws||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&ws&&(it=q()):($i=Fe,mu="value"in $i?$i.value:$i.textContent,ws=!0)),St=pf(he,wt),0<St.length&&(wt=new Hm(wt,a,null,f,Fe),Be.push({event:wt,listeners:St}),it?wt.data=it:(it=Jm(f),it!==null&&(wt.data=it)))),(it=hh?c0(a,f):d0(a,f))&&(he=pf(he,"onBeforeInput"),0<he.length&&(Fe=new Hm("onBeforeInput","beforeinput",null,f,Fe),Be.push({event:Fe,listeners:he}),Fe.data=it))}vg(Be,o)})}function Cu(a,o,f){return{instance:a,listener:o,currentTarget:f}}function pf(a,o){for(var f=o+"Capture",g=[];a!==null;){var S=a,T=S.stateNode;S.tag===5&&T!==null&&(S=T,T=Pi(a,f),T!=null&&g.unshift(Cu(a,T,S)),T=Pi(a,o),T!=null&&g.push(Cu(a,T,S))),a=a.return}return g}function gl(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function Eh(a,o,f,g,S){for(var T=o._reactName,L=[];f!==null&&f!==g;){var W=f,Q=W.alternate,he=W.stateNode;if(Q!==null&&Q===g)break;W.tag===5&&he!==null&&(W=he,S?(Q=Pi(f,T),Q!=null&&L.unshift(Cu(f,Q,W))):S||(Q=Pi(f,T),Q!=null&&L.push(Cu(f,Q,W)))),f=f.return}L.length!==0&&a.push({event:o,listeners:L})}var mg=/\r\n?/g,wh=/\u0000|\uFFFD/g;function gg(a){return(typeof a=="string"?a:""+a).replace(mg,`
94
- `).replace(wh,"")}function Wc(a,o,f){if(o=gg(o),gg(a)!==o&&f)throw Error(i(425))}function hf(){}var Rh=null,_h=null;function yl(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Xc=typeof setTimeout=="function"?setTimeout:void 0,Yc=typeof clearTimeout=="function"?clearTimeout:void 0,Th=typeof Promise=="function"?Promise:void 0,yg=typeof queueMicrotask=="function"?queueMicrotask:typeof Th<"u"?function(a){return Th.resolve(null).then(a).catch(Nh)}:Xc;function Nh(a){setTimeout(function(){throw a})}function Ih(a,o){var f=o,g=0;do{var S=f.nextSibling;if(a.removeChild(f),S&&S.nodeType===8)if(f=S.data,f==="/$"){if(g===0){a.removeChild(S),ci(o);return}g--}else f!=="$"&&f!=="$?"&&f!=="$!"||g++;f=S}while(f);ci(o)}function Xa(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return a}function Zc(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"){if(o===0)return a;o--}else f==="/$"&&o++}a=a.previousSibling}return null}var zo=Math.random().toString(36).slice(2),di="__reactFiber$"+zo,qc="__reactProps$"+zo,Ui="__reactContainer$"+zo,jh="__reactEvents$"+zo,b0="__reactListeners$"+zo,x0="__reactHandles$"+zo;function Uo(a){var o=a[di];if(o)return o;for(var f=a.parentNode;f;){if(o=f[Ui]||f[di]){if(f=o.alternate,o.child!==null||f!==null&&f.child!==null)for(a=Zc(a);a!==null;){if(f=a[di])return f;a=Zc(a)}return o}a=f,f=a.parentNode}return null}function oo(a){return a=a[di]||a[Ui],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function Su(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(i(33))}function vf(a){return a[qc]||null}var mt=[],Hi=-1;function In(a){return{current:a}}function ut(a){0>Hi||(a.current=mt[Hi],mt[Hi]=null,Hi--)}function rn(a,o){Hi++,mt[Hi]=a.current,a.current=o}var fi={},jr=In(fi),jt=In(!1),aa=fi;function Ya(a,o){var f=a.type.contextTypes;if(!f)return fi;var g=a.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===o)return g.__reactInternalMemoizedMaskedChildContext;var S={},T;for(T in f)S[T]=o[T];return g&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=o,a.__reactInternalMemoizedMaskedChildContext=S),S}function mr(a){return a=a.childContextTypes,a!=null}function _a(){ut(jt),ut(jr)}function so(a,o,f){if(jr.current!==fi)throw Error(i(168));rn(jr,o),rn(jt,f)}function Ts(a,o,f){var g=a.stateNode;if(o=o.childContextTypes,typeof g.getChildContext!="function")return f;g=g.getChildContext();for(var S in g)if(!(S in o))throw Error(i(108,ke(a)||"Unknown",S));return G({},f,g)}function bl(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||fi,aa=jr.current,rn(jr,a),rn(jt,jt.current),!0}function bg(a,o,f){var g=a.stateNode;if(!g)throw Error(i(169));f?(a=Ts(a,o,aa),g.__reactInternalMemoizedMergedChildContext=a,ut(jt),ut(jr),rn(jr,a)):ut(jt),rn(jt,f)}var Ho=null,Ns=!1,Pr=!1;function mf(a){Ho===null?Ho=[a]:Ho.push(a)}function xg(a){Ns=!0,mf(a)}function lo(){if(!Pr&&Ho!==null){Pr=!0;var a=0,o=Ut;try{var f=Ho;for(Ut=1;a<f.length;a++){var g=f[a];do g=g(!0);while(g!==null)}Ho=null,Ns=!1}catch(S){throw Ho!==null&&(Ho=Ho.slice(a+1)),On(Sc,lo),S}finally{Ut=o,Pr=!1}}return null}var pi=[],Is=0,hi=null,xl=0,Ta=[],Na=0,Gi=null,Ia=1,Fr="";function Cl(a,o){pi[Is++]=xl,pi[Is++]=hi,hi=a,xl=o}function js(a,o,f){Ta[Na++]=Ia,Ta[Na++]=Fr,Ta[Na++]=Gi,Gi=a;var g=Ia;a=Fr;var S=32-ra(g)-1;g&=~(1<<S),f+=1;var T=32-ra(o)+S;if(30<T){var L=S-S%5;T=(g&(1<<L)-1).toString(32),g>>=L,S-=L,Ia=1<<32-ra(o)+S|f<<S|g,Fr=T+a}else Ia=1<<T|f<<S|g,Fr=a}function gf(a){a.return!==null&&(Cl(a,1),js(a,1,0))}function yf(a){for(;a===hi;)hi=pi[--Is],pi[Is]=null,xl=pi[--Is],pi[Is]=null;for(;a===Gi;)Gi=Ta[--Na],Ta[Na]=null,Fr=Ta[--Na],Ta[Na]=null,Ia=Ta[--Na],Ta[Na]=null}var Za=null,qa=null,$n=!1,mi=null;function Ah(a,o){var f=Ei(5,null,null,0);f.elementType="DELETED",f.stateNode=o,f.return=a,o=a.deletions,o===null?(a.deletions=[f],a.flags|=16):o.push(f)}function Oh(a,o){switch(a.tag){case 5:var f=a.type;return o=o.nodeType!==1||f.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(a.stateNode=o,Za=a,qa=Xa(o.firstChild),!0):!1;case 6:return o=a.pendingProps===""||o.nodeType!==3?null:o,o!==null?(a.stateNode=o,Za=a,qa=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(f=Gi!==null?{id:Ia,overflow:Fr}:null,a.memoizedState={dehydrated:o,treeContext:f,retryLane:1073741824},f=Ei(18,null,null,0),f.stateNode=o,f.return=a,a.child=f,Za=a,qa=null,!0):!1;default:return!1}}function Dh(a){return(a.mode&1)!==0&&(a.flags&128)===0}function bf(a){if($n){var o=qa;if(o){var f=o;if(!Oh(a,o)){if(Dh(a))throw Error(i(418));o=Xa(f.nextSibling);var g=Za;o&&Oh(a,o)?Ah(g,f):(a.flags=a.flags&-4097|2,$n=!1,Za=a)}}else{if(Dh(a))throw Error(i(418));a.flags=a.flags&-4097|2,$n=!1,Za=a}}}function kh(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;Za=a}function xf(a){if(a!==Za)return!1;if(!$n)return kh(a),$n=!0,!1;var o;if((o=a.tag!==3)&&!(o=a.tag!==5)&&(o=a.type,o=o!=="head"&&o!=="body"&&!yl(a.type,a.memoizedProps)),o&&(o=qa)){if(Dh(a))throw Cg(),Error(i(418));for(;o;)Ah(a,o),o=Xa(o.nextSibling)}if(kh(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));e:{for(a=a.nextSibling,o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"){if(o===0){qa=Xa(a.nextSibling);break e}o--}else f!=="$"&&f!=="$!"&&f!=="$?"||o++}a=a.nextSibling}qa=null}}else qa=Za?Xa(a.stateNode.nextSibling):null;return!0}function Cg(){for(var a=qa;a;)a=Xa(a.nextSibling)}function Eu(){qa=Za=null,$n=!1}function gr(a){mi===null?mi=[a]:mi.push(a)}var C0=U.ReactCurrentBatchConfig;function ja(a,o){if(a&&a.defaultProps){o=G({},o),a=a.defaultProps;for(var f in a)o[f]===void 0&&(o[f]=a[f]);return o}return o}var wu=In(null),uo=null,Ru=null,Jc=null;function Mh(){Jc=Ru=uo=null}function Lh(a){var o=wu.current;ut(wu),a._currentValue=o}function As(a,o,f){for(;a!==null;){var g=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,g!==null&&(g.childLanes|=o)):g!==null&&(g.childLanes&o)!==o&&(g.childLanes|=o),a===f)break;a=a.return}}function sr(a,o){uo=a,Jc=Ru=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&o&&(Da=!0),a.firstContext=null)}function He(a){var o=a._currentValue;if(Jc!==a)if(a={context:a,memoizedValue:o,next:null},Ru===null){if(uo===null)throw Error(i(308));Ru=a,uo.dependencies={lanes:0,firstContext:a}}else Ru=Ru.next=a;return o}var Jr=null;function Ja(a){Jr===null?Jr=[a]:Jr.push(a)}function Sg(a,o,f,g){var S=o.interleaved;return S===null?(f.next=f,Ja(o)):(f.next=S.next,S.next=f),o.interleaved=f,Go(a,g)}function Go(a,o){a.lanes|=o;var f=a.alternate;for(f!==null&&(f.lanes|=o),f=a,a=a.return;a!==null;)a.childLanes|=o,f=a.alternate,f!==null&&(f.childLanes|=o),f=a,a=a.return;return f.tag===3?f.stateNode:null}var Os=!1;function Ph(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Eg(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function Mn(a,o){return{eventTime:a,lane:o,tag:0,payload:null,callback:null,next:null}}function Ds(a,o,f){var g=a.updateQueue;if(g===null)return null;if(g=g.shared,$t&2){var S=g.pending;return S===null?o.next=o:(o.next=S.next,S.next=o),g.pending=o,Go(a,f)}return S=g.interleaved,S===null?(o.next=o,Ja(g)):(o.next=S.next,S.next=o),g.interleaved=o,Go(a,f)}function Cf(a,o,f){if(o=o.updateQueue,o!==null&&(o=o.shared,(f&4194240)!==0)){var g=o.lanes;g&=a.pendingLanes,f|=g,o.lanes=f,Nc(a,f)}}function wg(a,o){var f=a.updateQueue,g=a.alternate;if(g!==null&&(g=g.updateQueue,f===g)){var S=null,T=null;if(f=f.firstBaseUpdate,f!==null){do{var L={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};T===null?S=T=L:T=T.next=L,f=f.next}while(f!==null);T===null?S=T=o:T=T.next=o}else S=T=o;f={baseState:g.baseState,firstBaseUpdate:S,lastBaseUpdate:T,shared:g.shared,effects:g.effects},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=o:a.next=o,f.lastBaseUpdate=o}function Qc(a,o,f,g){var S=a.updateQueue;Os=!1;var T=S.firstBaseUpdate,L=S.lastBaseUpdate,W=S.shared.pending;if(W!==null){S.shared.pending=null;var Q=W,he=Q.next;Q.next=null,L===null?T=he:L.next=he,L=Q;var Fe=a.alternate;Fe!==null&&(Fe=Fe.updateQueue,W=Fe.lastBaseUpdate,W!==L&&(W===null?Fe.firstBaseUpdate=he:W.next=he,Fe.lastBaseUpdate=Q))}if(T!==null){var Be=S.baseState;L=0,Fe=he=Q=null,W=T;do{var Me=W.lane,Qe=W.eventTime;if((g&Me)===Me){Fe!==null&&(Fe=Fe.next={eventTime:Qe,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var at=a,lt=W;switch(Me=o,Qe=f,lt.tag){case 1:if(at=lt.payload,typeof at=="function"){Be=at.call(Qe,Be,Me);break e}Be=at;break e;case 3:at.flags=at.flags&-65537|128;case 0:if(at=lt.payload,Me=typeof at=="function"?at.call(Qe,Be,Me):at,Me==null)break e;Be=G({},Be,Me);break e;case 2:Os=!0}}W.callback!==null&&W.lane!==0&&(a.flags|=64,Me=S.effects,Me===null?S.effects=[W]:Me.push(W))}else Qe={eventTime:Qe,lane:Me,tag:W.tag,payload:W.payload,callback:W.callback,next:null},Fe===null?(he=Fe=Qe,Q=Be):Fe=Fe.next=Qe,L|=Me;if(W=W.next,W===null){if(W=S.shared.pending,W===null)break;Me=W,W=Me.next,Me.next=null,S.lastBaseUpdate=Me,S.shared.pending=null}}while(!0);if(Fe===null&&(Q=Be),S.baseState=Q,S.firstBaseUpdate=he,S.lastBaseUpdate=Fe,o=S.shared.interleaved,o!==null){S=o;do L|=S.lane,S=S.next;while(S!==o)}else T===null&&(S.shared.lanes=0);Dl|=L,a.lanes=L,a.memoizedState=Be}}function _u(a,o,f){if(a=o.effects,o.effects=null,a!==null)for(o=0;o<a.length;o++){var g=a[o],S=g.callback;if(S!==null){if(g.callback=null,g=f,typeof S!="function")throw Error(i(191,S));S.call(g)}}}var Sl=new t.Component().refs;function Fh(a,o,f,g){o=a.memoizedState,f=f(g,o),f=f==null?o:G({},o,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var Sf={isMounted:function(a){return(a=a._reactInternals)?Ze(a)===a:!1},enqueueSetState:function(a,o,f){a=a._reactInternals;var g=Dr(),S=Zo(a),T=Mn(g,S);T.payload=o,f!=null&&(T.callback=f),o=Ds(a,T,S),o!==null&&(qn(o,a,S,g),Cf(o,a,S))},enqueueReplaceState:function(a,o,f){a=a._reactInternals;var g=Dr(),S=Zo(a),T=Mn(g,S);T.tag=1,T.payload=o,f!=null&&(T.callback=f),o=Ds(a,T,S),o!==null&&(qn(o,a,S,g),Cf(o,a,S))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var f=Dr(),g=Zo(a),S=Mn(f,g);S.tag=2,o!=null&&(S.callback=o),o=Ds(a,S,g),o!==null&&(qn(o,a,g,f),Cf(o,a,g))}};function Rg(a,o,f,g,S,T,L){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(g,T,L):o.prototype&&o.prototype.isPureReactComponent?!bu(f,g)||!bu(S,T):!0}function _g(a,o,f){var g=!1,S=fi,T=o.contextType;return typeof T=="object"&&T!==null?T=He(T):(S=mr(o)?aa:jr.current,g=o.contextTypes,T=(g=g!=null)?Ya(a,S):fi),o=new o(f,T),a.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Sf,a.stateNode=o,o._reactInternals=a,g&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=S,a.__reactInternalMemoizedMaskedChildContext=T),o}function Tg(a,o,f,g){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(f,g),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(f,g),o.state!==a&&Sf.enqueueReplaceState(o,o.state,null)}function Vh(a,o,f,g){var S=a.stateNode;S.props=f,S.state=a.memoizedState,S.refs=Sl,Ph(a);var T=o.contextType;typeof T=="object"&&T!==null?S.context=He(T):(T=mr(o)?aa:jr.current,S.context=Ya(a,T)),S.state=a.memoizedState,T=o.getDerivedStateFromProps,typeof T=="function"&&(Fh(a,o,T,f),S.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(o=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),o!==S.state&&Sf.enqueueReplaceState(S,S.state,null),Qc(a,f,S,g),S.state=a.memoizedState),typeof S.componentDidMount=="function"&&(a.flags|=4194308)}function Tu(a,o,f){if(a=f.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(i(309));var g=f.stateNode}if(!g)throw Error(i(147,a));var S=g,T=""+a;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===T?o.ref:(o=function(L){var W=S.refs;W===Sl&&(W=S.refs={}),L===null?delete W[T]:W[T]=L},o._stringRef=T,o)}if(typeof a!="string")throw Error(i(284));if(!f._owner)throw Error(i(290,a))}return a}function Kc(a,o){throw a=Object.prototype.toString.call(o),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a))}function Ng(a){var o=a._init;return o(a._payload)}function Ig(a){function o(oe,ee){if(a){var ue=oe.deletions;ue===null?(oe.deletions=[ee],oe.flags|=16):ue.push(ee)}}function f(oe,ee){if(!a)return null;for(;ee!==null;)o(oe,ee),ee=ee.sibling;return null}function g(oe,ee){for(oe=new Map;ee!==null;)ee.key!==null?oe.set(ee.key,ee):oe.set(ee.index,ee),ee=ee.sibling;return oe}function S(oe,ee){return oe=$s(oe,ee),oe.index=0,oe.sibling=null,oe}function T(oe,ee,ue){return oe.index=ue,a?(ue=oe.alternate,ue!==null?(ue=ue.index,ue<ee?(oe.flags|=2,ee):ue):(oe.flags|=2,ee)):(oe.flags|=1048576,ee)}function L(oe){return a&&oe.alternate===null&&(oe.flags|=2),oe}function W(oe,ee,ue,Ue){return ee===null||ee.tag!==6?(ee=rp(ue,oe.mode,Ue),ee.return=oe,ee):(ee=S(ee,ue),ee.return=oe,ee)}function Q(oe,ee,ue,Ue){var ct=ue.type;return ct===X?Fe(oe,ee,ue.props.children,Ue,ue.key):ee!==null&&(ee.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===je&&Ng(ct)===ee.type)?(Ue=S(ee,ue.props),Ue.ref=Tu(oe,ee,ue),Ue.return=oe,Ue):(Ue=tp(ue.type,ue.key,ue.props,null,oe.mode,Ue),Ue.ref=Tu(oe,ee,ue),Ue.return=oe,Ue)}function he(oe,ee,ue,Ue){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ue.containerInfo||ee.stateNode.implementation!==ue.implementation?(ee=yd(ue,oe.mode,Ue),ee.return=oe,ee):(ee=S(ee,ue.children||[]),ee.return=oe,ee)}function Fe(oe,ee,ue,Ue,ct){return ee===null||ee.tag!==7?(ee=Pl(ue,oe.mode,Ue,ct),ee.return=oe,ee):(ee=S(ee,ue),ee.return=oe,ee)}function Be(oe,ee,ue){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=rp(""+ee,oe.mode,ue),ee.return=oe,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case F:return ue=tp(ee.type,ee.key,ee.props,null,oe.mode,ue),ue.ref=Tu(oe,null,ee),ue.return=oe,ue;case z:return ee=yd(ee,oe.mode,ue),ee.return=oe,ee;case je:var Ue=ee._init;return Be(oe,Ue(ee._payload),ue)}if(Vt(ee)||De(ee))return ee=Pl(ee,oe.mode,ue,null),ee.return=oe,ee;Kc(oe,ee)}return null}function Me(oe,ee,ue,Ue){var ct=ee!==null?ee.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ct!==null?null:W(oe,ee,""+ue,Ue);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case F:return ue.key===ct?Q(oe,ee,ue,Ue):null;case z:return ue.key===ct?he(oe,ee,ue,Ue):null;case je:return ct=ue._init,Me(oe,ee,ct(ue._payload),Ue)}if(Vt(ue)||De(ue))return ct!==null?null:Fe(oe,ee,ue,Ue,null);Kc(oe,ue)}return null}function Qe(oe,ee,ue,Ue,ct){if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number")return oe=oe.get(ue)||null,W(ee,oe,""+Ue,ct);if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case F:return oe=oe.get(Ue.key===null?ue:Ue.key)||null,Q(ee,oe,Ue,ct);case z:return oe=oe.get(Ue.key===null?ue:Ue.key)||null,he(ee,oe,Ue,ct);case je:var St=Ue._init;return Qe(oe,ee,ue,St(Ue._payload),ct)}if(Vt(Ue)||De(Ue))return oe=oe.get(ue)||null,Fe(ee,oe,Ue,ct,null);Kc(ee,Ue)}return null}function at(oe,ee,ue,Ue){for(var ct=null,St=null,it=ee,wt=ee=0,wr=null;it!==null&&wt<ue.length;wt++){it.index>wt?(wr=it,it=null):wr=it.sibling;var an=Me(oe,it,ue[wt],Ue);if(an===null){it===null&&(it=wr);break}a&&it&&an.alternate===null&&o(oe,it),ee=T(an,ee,wt),St===null?ct=an:St.sibling=an,St=an,it=wr}if(wt===ue.length)return f(oe,it),$n&&Cl(oe,wt),ct;if(it===null){for(;wt<ue.length;wt++)it=Be(oe,ue[wt],Ue),it!==null&&(ee=T(it,ee,wt),St===null?ct=it:St.sibling=it,St=it);return $n&&Cl(oe,wt),ct}for(it=g(oe,it);wt<ue.length;wt++)wr=Qe(it,oe,wt,ue[wt],Ue),wr!==null&&(a&&wr.alternate!==null&&it.delete(wr.key===null?wt:wr.key),ee=T(wr,ee,wt),St===null?ct=wr:St.sibling=wr,St=wr);return a&&it.forEach(function(qo){return o(oe,qo)}),$n&&Cl(oe,wt),ct}function lt(oe,ee,ue,Ue){var ct=De(ue);if(typeof ct!="function")throw Error(i(150));if(ue=ct.call(ue),ue==null)throw Error(i(151));for(var St=ct=null,it=ee,wt=ee=0,wr=null,an=ue.next();it!==null&&!an.done;wt++,an=ue.next()){it.index>wt?(wr=it,it=null):wr=it.sibling;var qo=Me(oe,it,an.value,Ue);if(qo===null){it===null&&(it=wr);break}a&&it&&qo.alternate===null&&o(oe,it),ee=T(qo,ee,wt),St===null?ct=qo:St.sibling=qo,St=qo,it=wr}if(an.done)return f(oe,it),$n&&Cl(oe,wt),ct;if(it===null){for(;!an.done;wt++,an=ue.next())an=Be(oe,an.value,Ue),an!==null&&(ee=T(an,ee,wt),St===null?ct=an:St.sibling=an,St=an);return $n&&Cl(oe,wt),ct}for(it=g(oe,it);!an.done;wt++,an=ue.next())an=Qe(it,oe,wt,an.value,Ue),an!==null&&(a&&an.alternate!==null&&it.delete(an.key===null?wt:an.key),ee=T(an,ee,wt),St===null?ct=an:St.sibling=an,St=an);return a&&it.forEach(function(B0){return o(oe,B0)}),$n&&Cl(oe,wt),ct}function fr(oe,ee,ue,Ue){if(typeof ue=="object"&&ue!==null&&ue.type===X&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case F:e:{for(var ct=ue.key,St=ee;St!==null;){if(St.key===ct){if(ct=ue.type,ct===X){if(St.tag===7){f(oe,St.sibling),ee=S(St,ue.props.children),ee.return=oe,oe=ee;break e}}else if(St.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===je&&Ng(ct)===St.type){f(oe,St.sibling),ee=S(St,ue.props),ee.ref=Tu(oe,St,ue),ee.return=oe,oe=ee;break e}f(oe,St);break}else o(oe,St);St=St.sibling}ue.type===X?(ee=Pl(ue.props.children,oe.mode,Ue,ue.key),ee.return=oe,oe=ee):(Ue=tp(ue.type,ue.key,ue.props,null,oe.mode,Ue),Ue.ref=Tu(oe,ee,ue),Ue.return=oe,oe=Ue)}return L(oe);case z:e:{for(St=ue.key;ee!==null;){if(ee.key===St)if(ee.tag===4&&ee.stateNode.containerInfo===ue.containerInfo&&ee.stateNode.implementation===ue.implementation){f(oe,ee.sibling),ee=S(ee,ue.children||[]),ee.return=oe,oe=ee;break e}else{f(oe,ee);break}else o(oe,ee);ee=ee.sibling}ee=yd(ue,oe.mode,Ue),ee.return=oe,oe=ee}return L(oe);case je:return St=ue._init,fr(oe,ee,St(ue._payload),Ue)}if(Vt(ue))return at(oe,ee,ue,Ue);if(De(ue))return lt(oe,ee,ue,Ue);Kc(oe,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?(ue=""+ue,ee!==null&&ee.tag===6?(f(oe,ee.sibling),ee=S(ee,ue),ee.return=oe,oe=ee):(f(oe,ee),ee=rp(ue,oe.mode,Ue),ee.return=oe,oe=ee),L(oe)):f(oe,ee)}return fr}var Nu=Ig(!0),jg=Ig(!1),ed={},co=In(ed),Iu=In(ed),td=In(ed);function ks(a){if(a===ed)throw Error(i(174));return a}function Bh(a,o){switch(rn(td,o),rn(Iu,a),rn(co,ed),a=o.nodeType,a){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Fn(null,"");break;default:a=a===8?o.parentNode:o,o=a.namespaceURI||null,a=a.tagName,o=Fn(o,a)}ut(co),rn(co,o)}function ju(){ut(co),ut(Iu),ut(td)}function Ef(a){ks(td.current);var o=ks(co.current),f=Fn(o,a.type);o!==f&&(rn(Iu,a),rn(co,f))}function gt(a){Iu.current===a&&(ut(co),ut(Iu))}var dt=In(0);function tn(a){for(var o=a;o!==null;){if(o.tag===13){var f=o.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var er=[];function gi(){for(var a=0;a<er.length;a++)er[a]._workInProgressVersionPrimary=null;er.length=0}var nd=U.ReactCurrentDispatcher,$h=U.ReactCurrentBatchConfig,El=0,Zn=null,lr=null,Re=null,ur=!1,Ct=!1,fo=0,Wo=0;function tr(){throw Error(i(321))}function yi(a,o){if(o===null)return!1;for(var f=0;f<o.length&&f<a.length;f++)if(!zi(a[f],o[f]))return!1;return!0}function wl(a,o,f,g,S,T){if(El=T,Zn=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,nd.current=a===null||a.memoizedState===null?S0:E0,a=f(g,S),Ct){T=0;do{if(Ct=!1,fo=0,25<=T)throw Error(i(301));T+=1,Re=lr=null,o.updateQueue=null,nd.current=w0,a=f(g,S)}while(Ct)}if(nd.current=Pf,o=lr!==null&&lr.next!==null,El=0,Re=lr=Zn=null,ur=!1,o)throw Error(i(300));return a}function Ms(){var a=fo!==0;return fo=0,a}function Aa(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?Zn.memoizedState=Re=a:Re=Re.next=a,Re}function Oa(){if(lr===null){var a=Zn.alternate;a=a!==null?a.memoizedState:null}else a=lr.next;var o=Re===null?Zn.memoizedState:Re.next;if(o!==null)Re=o,lr=a;else{if(a===null)throw Error(i(310));lr=a,a={memoizedState:lr.memoizedState,baseState:lr.baseState,baseQueue:lr.baseQueue,queue:lr.queue,next:null},Re===null?Zn.memoizedState=Re=a:Re=Re.next=a}return Re}function Rl(a,o){return typeof o=="function"?o(a):o}function rd(a){var o=Oa(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var g=lr,S=g.baseQueue,T=f.pending;if(T!==null){if(S!==null){var L=S.next;S.next=T.next,T.next=L}g.baseQueue=S=T,f.pending=null}if(S!==null){T=S.next,g=g.baseState;var W=L=null,Q=null,he=T;do{var Fe=he.lane;if((El&Fe)===Fe)Q!==null&&(Q=Q.next={lane:0,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null}),g=he.hasEagerState?he.eagerState:a(g,he.action);else{var Be={lane:Fe,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null};Q===null?(W=Q=Be,L=g):Q=Q.next=Be,Zn.lanes|=Fe,Dl|=Fe}he=he.next}while(he!==null&&he!==T);Q===null?L=g:Q.next=W,zi(g,o.memoizedState)||(Da=!0),o.memoizedState=g,o.baseState=L,o.baseQueue=Q,f.lastRenderedState=g}if(a=f.interleaved,a!==null){S=a;do T=S.lane,Zn.lanes|=T,Dl|=T,S=S.next;while(S!==a)}else S===null&&(f.lanes=0);return[o.memoizedState,f.dispatch]}function ad(a){var o=Oa(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var g=f.dispatch,S=f.pending,T=o.memoizedState;if(S!==null){f.pending=null;var L=S=S.next;do T=a(T,L.action),L=L.next;while(L!==S);zi(T,o.memoizedState)||(Da=!0),o.memoizedState=T,o.baseQueue===null&&(o.baseState=T),f.lastRenderedState=T}return[T,g]}function wf(){}function Rf(a,o){var f=Zn,g=Oa(),S=o(),T=!zi(g.memoizedState,S);if(T&&(g.memoizedState=S,Da=!0),g=g.queue,id(Nf.bind(null,f,g,a),[a]),g.getSnapshot!==o||T||Re!==null&&Re.memoizedState.tag&1){if(f.flags|=2048,_l(9,Tf.bind(null,f,g,S,o),void 0,null),rr===null)throw Error(i(349));El&30||_f(f,o,S)}return S}function _f(a,o,f){a.flags|=16384,a={getSnapshot:o,value:f},o=Zn.updateQueue,o===null?(o={lastEffect:null,stores:null},Zn.updateQueue=o,o.stores=[a]):(f=o.stores,f===null?o.stores=[a]:f.push(a))}function Tf(a,o,f,g){o.value=f,o.getSnapshot=g,If(o)&&jf(a)}function Nf(a,o,f){return f(function(){If(o)&&jf(a)})}function If(a){var o=a.getSnapshot;a=a.value;try{var f=o();return!zi(a,f)}catch{return!0}}function jf(a){var o=Go(a,1);o!==null&&qn(o,a,1,-1)}function Af(a){var o=Aa();return typeof a=="function"&&(a=a()),o.memoizedState=o.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:a},o.queue=a,a=a.dispatch=Lf.bind(null,Zn,a),[o.memoizedState,a]}function _l(a,o,f,g){return a={tag:a,create:o,destroy:f,deps:g,next:null},o=Zn.updateQueue,o===null?(o={lastEffect:null,stores:null},Zn.updateQueue=o,o.lastEffect=a.next=a):(f=o.lastEffect,f===null?o.lastEffect=a.next=a:(g=f.next,f.next=a,a.next=g,o.lastEffect=a)),a}function Of(){return Oa().memoizedState}function Au(a,o,f,g){var S=Aa();Zn.flags|=a,S.memoizedState=_l(1|o,f,void 0,g===void 0?null:g)}function Tl(a,o,f,g){var S=Oa();g=g===void 0?null:g;var T=void 0;if(lr!==null){var L=lr.memoizedState;if(T=L.destroy,g!==null&&yi(g,L.deps)){S.memoizedState=_l(o,f,T,g);return}}Zn.flags|=a,S.memoizedState=_l(1|o,f,T,g)}function Nl(a,o){return Au(8390656,8,a,o)}function id(a,o){return Tl(2048,8,a,o)}function Df(a,o){return Tl(4,2,a,o)}function kf(a,o){return Tl(4,4,a,o)}function Mf(a,o){if(typeof o=="function")return a=a(),o(a),function(){o(null)};if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function zh(a,o,f){return f=f!=null?f.concat([a]):null,Tl(4,4,Mf.bind(null,o,a),f)}function Il(){}function Uh(a,o){var f=Oa();o=o===void 0?null:o;var g=f.memoizedState;return g!==null&&o!==null&&yi(o,g[1])?g[0]:(f.memoizedState=[a,o],a)}function Ou(a,o){var f=Oa();o=o===void 0?null:o;var g=f.memoizedState;return g!==null&&o!==null&&yi(o,g[1])?g[0]:(a=a(),f.memoizedState=[a,o],a)}function Ls(a,o,f){return El&21?(zi(f,o)||(f=cl(),Zn.lanes|=f,Dl|=f,a.baseState=!0),o):(a.baseState&&(a.baseState=!1,Da=!0),a.memoizedState=f)}function Qa(a,o){var f=Ut;Ut=f!==0&&4>f?f:4,a(!0);var g=$h.transition;$h.transition={};try{a(!1),o()}finally{Ut=f,$h.transition=g}}function Ag(){return Oa().memoizedState}function Ln(a,o,f){var g=Zo(a);if(f={lane:g,action:f,hasEagerState:!1,eagerState:null,next:null},od(a))Du(o,f);else if(f=Sg(a,o,f,g),f!==null){var S=Dr();qn(f,a,g,S),sd(f,o,g)}}function Lf(a,o,f){var g=Zo(a),S={lane:g,action:f,hasEagerState:!1,eagerState:null,next:null};if(od(a))Du(o,S);else{var T=a.alternate;if(a.lanes===0&&(T===null||T.lanes===0)&&(T=o.lastRenderedReducer,T!==null))try{var L=o.lastRenderedState,W=T(L,f);if(S.hasEagerState=!0,S.eagerState=W,zi(W,L)){var Q=o.interleaved;Q===null?(S.next=S,Ja(o)):(S.next=Q.next,Q.next=S),o.interleaved=S;return}}catch{}finally{}f=Sg(a,o,S,g),f!==null&&(S=Dr(),qn(f,a,g,S),sd(f,o,g))}}function od(a){var o=a.alternate;return a===Zn||o!==null&&o===Zn}function Du(a,o){Ct=ur=!0;var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}function sd(a,o,f){if(f&4194240){var g=o.lanes;g&=a.pendingLanes,f|=g,o.lanes=f,Nc(a,f)}}var Pf={readContext:He,useCallback:tr,useContext:tr,useEffect:tr,useImperativeHandle:tr,useInsertionEffect:tr,useLayoutEffect:tr,useMemo:tr,useReducer:tr,useRef:tr,useState:tr,useDebugValue:tr,useDeferredValue:tr,useTransition:tr,useMutableSource:tr,useSyncExternalStore:tr,useId:tr,unstable_isNewReconciler:!1},S0={readContext:He,useCallback:function(a,o){return Aa().memoizedState=[a,o===void 0?null:o],a},useContext:He,useEffect:Nl,useImperativeHandle:function(a,o,f){return f=f!=null?f.concat([a]):null,Au(4194308,4,Mf.bind(null,o,a),f)},useLayoutEffect:function(a,o){return Au(4194308,4,a,o)},useInsertionEffect:function(a,o){return Au(4,2,a,o)},useMemo:function(a,o){var f=Aa();return o=o===void 0?null:o,a=a(),f.memoizedState=[a,o],a},useReducer:function(a,o,f){var g=Aa();return o=f!==void 0?f(o):o,g.memoizedState=g.baseState=o,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:o},g.queue=a,a=a.dispatch=Ln.bind(null,Zn,a),[g.memoizedState,a]},useRef:function(a){var o=Aa();return a={current:a},o.memoizedState=a},useState:Af,useDebugValue:Il,useDeferredValue:function(a){return Aa().memoizedState=a},useTransition:function(){var a=Af(!1),o=a[0];return a=Qa.bind(null,a[1]),Aa().memoizedState=a,[o,a]},useMutableSource:function(){},useSyncExternalStore:function(a,o,f){var g=Zn,S=Aa();if($n){if(f===void 0)throw Error(i(407));f=f()}else{if(f=o(),rr===null)throw Error(i(349));El&30||_f(g,o,f)}S.memoizedState=f;var T={value:f,getSnapshot:o};return S.queue=T,Nl(Nf.bind(null,g,T,a),[a]),g.flags|=2048,_l(9,Tf.bind(null,g,T,f,o),void 0,null),f},useId:function(){var a=Aa(),o=rr.identifierPrefix;if($n){var f=Fr,g=Ia;f=(g&~(1<<32-ra(g)-1)).toString(32)+f,o=":"+o+"R"+f,f=fo++,0<f&&(o+="H"+f.toString(32)),o+=":"}else f=Wo++,o=":"+o+"r"+f.toString(32)+":";return a.memoizedState=o},unstable_isNewReconciler:!1},E0={readContext:He,useCallback:Uh,useContext:He,useEffect:id,useImperativeHandle:zh,useInsertionEffect:Df,useLayoutEffect:kf,useMemo:Ou,useReducer:rd,useRef:Of,useState:function(){return rd(Rl)},useDebugValue:Il,useDeferredValue:function(a){var o=Oa();return Ls(o,lr.memoizedState,a)},useTransition:function(){var a=rd(Rl)[0],o=Oa().memoizedState;return[a,o]},useMutableSource:wf,useSyncExternalStore:Rf,useId:Ag,unstable_isNewReconciler:!1},w0={readContext:He,useCallback:Uh,useContext:He,useEffect:id,useImperativeHandle:zh,useInsertionEffect:Df,useLayoutEffect:kf,useMemo:Ou,useReducer:ad,useRef:Of,useState:function(){return ad(Rl)},useDebugValue:Il,useDeferredValue:function(a){var o=Oa();return lr===null?o.memoizedState=a:Ls(o,lr.memoizedState,a)},useTransition:function(){var a=ad(Rl)[0],o=Oa().memoizedState;return[a,o]},useMutableSource:wf,useSyncExternalStore:Rf,useId:Ag,unstable_isNewReconciler:!1};function Ps(a,o){try{var f="",g=o;do f+=_e(g),g=g.return;while(g);var S=f}catch(T){S=`
95
- Error generating stack: `+T.message+`
96
- `+T.stack}return{value:a,source:o,stack:S,digest:null}}function Hh(a,o,f){return{value:a,source:null,stack:f??null,digest:o??null}}function ld(a,o){try{console.error(o.value)}catch(f){setTimeout(function(){throw f})}}var Og=typeof WeakMap=="function"?WeakMap:Map;function Dg(a,o,f){f=Mn(-1,f),f.tag=3,f.payload={element:null};var g=o.value;return f.callback=function(){Zf||(Zf=!0,Kh=g),ld(a,o)},f}function kg(a,o,f){f=Mn(-1,f),f.tag=3;var g=a.type.getDerivedStateFromError;if(typeof g=="function"){var S=o.value;f.payload=function(){return g(S)},f.callback=function(){ld(a,o)}}var T=a.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(f.callback=function(){ld(a,o),typeof g!="function"&&(Ci===null?Ci=new Set([this]):Ci.add(this));var L=o.stack;this.componentDidCatch(o.value,{componentStack:L!==null?L:""})}),f}function ud(a,o,f){var g=a.pingCache;if(g===null){g=a.pingCache=new Og;var S=new Set;g.set(o,S)}else S=g.get(o),S===void 0&&(S=new Set,g.set(o,S));S.has(f)||(S.add(f),a=k0.bind(null,a,o,f),o.then(a,a))}function Mg(a){do{var o;if((o=a.tag===13)&&(o=a.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return a;a=a.return}while(a!==null);return null}function Gh(a,o,f,g,S){return a.mode&1?(a.flags|=65536,a.lanes=S,a):(a===o?a.flags|=65536:(a.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(o=Mn(-1,1),o.tag=2,Ds(f,o,1))),f.lanes|=1),a)}var Lg=U.ReactCurrentOwner,Da=!1;function cr(a,o,f,g){o.child=a===null?jg(o,null,f,g):Nu(o,a.child,f,g)}function ku(a,o,f,g,S){f=f.render;var T=o.ref;return sr(o,S),g=wl(a,o,f,g,T,S),f=Ms(),a!==null&&!Da?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,dr(a,o,S)):($n&&f&&gf(o),o.flags|=1,cr(a,o,g,S),o.child)}function Fs(a,o,f,g,S){if(a===null){var T=f.type;return typeof T=="function"&&!av(T)&&T.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(o.tag=15,o.type=T,Ff(a,o,T,g,S)):(a=tp(f.type,null,g,o,o.mode,S),a.ref=o.ref,a.return=o,o.child=a)}if(T=a.child,!(a.lanes&S)){var L=T.memoizedProps;if(f=f.compare,f=f!==null?f:bu,f(L,g)&&a.ref===o.ref)return dr(a,o,S)}return o.flags|=1,a=$s(T,g),a.ref=o.ref,a.return=o,o.child=a}function Ff(a,o,f,g,S){if(a!==null){var T=a.memoizedProps;if(bu(T,g)&&a.ref===o.ref)if(Da=!1,o.pendingProps=g=T,(a.lanes&S)!==0)a.flags&131072&&(Da=!0);else return o.lanes=a.lanes,dr(a,o,S)}return Dt(a,o,f,g,S)}function ka(a,o,f){var g=o.pendingProps,S=g.children,T=a!==null?a.memoizedState:null;if(g.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},rn(Hu,Ma),Ma|=f;else{if(!(f&1073741824))return a=T!==null?T.baseLanes|f:f,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:a,cachePool:null,transitions:null},o.updateQueue=null,rn(Hu,Ma),Ma|=a,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=T!==null?T.baseLanes:f,rn(Hu,Ma),Ma|=g}else T!==null?(g=T.baseLanes|f,o.memoizedState=null):g=f,rn(Hu,Ma),Ma|=g;return cr(a,o,S,f),o.child}function jl(a,o){var f=o.ref;(a===null&&f!==null||a!==null&&a.ref!==f)&&(o.flags|=512,o.flags|=2097152)}function Dt(a,o,f,g,S){var T=mr(f)?aa:jr.current;return T=Ya(o,T),sr(o,S),f=wl(a,o,f,g,T,S),g=Ms(),a!==null&&!Da?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,dr(a,o,S)):($n&&g&&gf(o),o.flags|=1,cr(a,o,f,S),o.child)}function cd(a,o,f,g,S){if(mr(f)){var T=!0;bl(o)}else T=!1;if(sr(o,S),o.stateNode===null)fd(a,o),_g(o,f,g),Vh(o,f,g,S),g=!0;else if(a===null){var L=o.stateNode,W=o.memoizedProps;L.props=W;var Q=L.context,he=f.contextType;typeof he=="object"&&he!==null?he=He(he):(he=mr(f)?aa:jr.current,he=Ya(o,he));var Fe=f.getDerivedStateFromProps,Be=typeof Fe=="function"||typeof L.getSnapshotBeforeUpdate=="function";Be||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(W!==g||Q!==he)&&Tg(o,L,g,he),Os=!1;var Me=o.memoizedState;L.state=Me,Qc(o,g,L,S),Q=o.memoizedState,W!==g||Me!==Q||jt.current||Os?(typeof Fe=="function"&&(Fh(o,f,Fe,g),Q=o.memoizedState),(W=Os||Rg(o,f,W,g,Me,Q,he))?(Be||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount()),typeof L.componentDidMount=="function"&&(o.flags|=4194308)):(typeof L.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=g,o.memoizedState=Q),L.props=g,L.state=Q,L.context=he,g=W):(typeof L.componentDidMount=="function"&&(o.flags|=4194308),g=!1)}else{L=o.stateNode,Eg(a,o),W=o.memoizedProps,he=o.type===o.elementType?W:ja(o.type,W),L.props=he,Be=o.pendingProps,Me=L.context,Q=f.contextType,typeof Q=="object"&&Q!==null?Q=He(Q):(Q=mr(f)?aa:jr.current,Q=Ya(o,Q));var Qe=f.getDerivedStateFromProps;(Fe=typeof Qe=="function"||typeof L.getSnapshotBeforeUpdate=="function")||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(W!==Be||Me!==Q)&&Tg(o,L,g,Q),Os=!1,Me=o.memoizedState,L.state=Me,Qc(o,g,L,S);var at=o.memoizedState;W!==Be||Me!==at||jt.current||Os?(typeof Qe=="function"&&(Fh(o,f,Qe,g),at=o.memoizedState),(he=Os||Rg(o,f,he,g,Me,at,Q)||!1)?(Fe||typeof L.UNSAFE_componentWillUpdate!="function"&&typeof L.componentWillUpdate!="function"||(typeof L.componentWillUpdate=="function"&&L.componentWillUpdate(g,at,Q),typeof L.UNSAFE_componentWillUpdate=="function"&&L.UNSAFE_componentWillUpdate(g,at,Q)),typeof L.componentDidUpdate=="function"&&(o.flags|=4),typeof L.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof L.componentDidUpdate!="function"||W===a.memoizedProps&&Me===a.memoizedState||(o.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&Me===a.memoizedState||(o.flags|=1024),o.memoizedProps=g,o.memoizedState=at),L.props=g,L.state=at,L.context=Q,g=he):(typeof L.componentDidUpdate!="function"||W===a.memoizedProps&&Me===a.memoizedState||(o.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&Me===a.memoizedState||(o.flags|=1024),g=!1)}return Vf(a,o,f,g,T,S)}function Vf(a,o,f,g,S,T){jl(a,o);var L=(o.flags&128)!==0;if(!g&&!L)return S&&bg(o,f,!1),dr(a,o,T);g=o.stateNode,Lg.current=o;var W=L&&typeof f.getDerivedStateFromError!="function"?null:g.render();return o.flags|=1,a!==null&&L?(o.child=Nu(o,a.child,null,T),o.child=Nu(o,null,W,T)):cr(a,o,W,T),o.memoizedState=g.state,S&&bg(o,f,!0),o.child}function R0(a){var o=a.stateNode;o.pendingContext?so(a,o.pendingContext,o.pendingContext!==o.context):o.context&&so(a,o.context,!1),Bh(a,o.containerInfo)}function Pg(a,o,f,g,S){return Eu(),gr(S),o.flags|=256,cr(a,o,f,g),o.child}var dd={dehydrated:null,treeContext:null,retryLane:0};function Al(a){return{baseLanes:a,cachePool:null,transitions:null}}function Fg(a,o,f){var g=o.pendingProps,S=dt.current,T=!1,L=(o.flags&128)!==0,W;if((W=L)||(W=a!==null&&a.memoizedState===null?!1:(S&2)!==0),W?(T=!0,o.flags&=-129):(a===null||a.memoizedState!==null)&&(S|=1),rn(dt,S&1),a===null)return bf(o),a=o.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(o.mode&1?a.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(L=g.children,a=g.fallback,T?(g=o.mode,T=o.child,L={mode:"hidden",children:L},!(g&1)&&T!==null?(T.childLanes=0,T.pendingProps=L):T=np(L,g,0,null),a=Pl(a,g,f,null),T.return=o,a.return=o,T.sibling=a,o.child=T,o.child.memoizedState=Al(f),o.memoizedState=dd,a):Bf(o,L));if(S=a.memoizedState,S!==null&&(W=S.dehydrated,W!==null))return Wh(a,o,L,g,W,S,f);if(T){T=g.fallback,L=o.mode,S=a.child,W=S.sibling;var Q={mode:"hidden",children:g.children};return!(L&1)&&o.child!==S?(g=o.child,g.childLanes=0,g.pendingProps=Q,o.deletions=null):(g=$s(S,Q),g.subtreeFlags=S.subtreeFlags&14680064),W!==null?T=$s(W,T):(T=Pl(T,L,f,null),T.flags|=2),T.return=o,g.return=o,g.sibling=T,o.child=g,g=T,T=o.child,L=a.child.memoizedState,L=L===null?Al(f):{baseLanes:L.baseLanes|f,cachePool:null,transitions:L.transitions},T.memoizedState=L,T.childLanes=a.childLanes&~f,o.memoizedState=dd,g}return T=a.child,a=T.sibling,g=$s(T,{mode:"visible",children:g.children}),!(o.mode&1)&&(g.lanes=f),g.return=o,g.sibling=null,a!==null&&(f=o.deletions,f===null?(o.deletions=[a],o.flags|=16):f.push(a)),o.child=g,o.memoizedState=null,g}function Bf(a,o){return o=np({mode:"visible",children:o},a.mode,0,null),o.return=a,a.child=o}function $f(a,o,f,g){return g!==null&&gr(g),Nu(o,a.child,null,f),a=Bf(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function Wh(a,o,f,g,S,T,L){if(f)return o.flags&256?(o.flags&=-257,g=Hh(Error(i(422))),$f(a,o,L,g)):o.memoizedState!==null?(o.child=a.child,o.flags|=128,null):(T=g.fallback,S=o.mode,g=np({mode:"visible",children:g.children},S,0,null),T=Pl(T,S,L,null),T.flags|=2,g.return=o,T.return=o,g.sibling=T,o.child=g,o.mode&1&&Nu(o,a.child,null,L),o.child.memoizedState=Al(L),o.memoizedState=dd,T);if(!(o.mode&1))return $f(a,o,L,null);if(S.data==="$!"){if(g=S.nextSibling&&S.nextSibling.dataset,g)var W=g.dgst;return g=W,T=Error(i(419)),g=Hh(T,g,void 0),$f(a,o,L,g)}if(W=(L&a.childLanes)!==0,Da||W){if(g=rr,g!==null){switch(L&-L){case 4:S=2;break;case 16:S=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:S=32;break;case 536870912:S=268435456;break;default:S=0}S=S&(g.suspendedLanes|L)?0:S,S!==0&&S!==T.retryLane&&(T.retryLane=S,Go(a,S),qn(g,a,S,-1))}return gd(),g=Hh(Error(i(421))),$f(a,o,L,g)}return S.data==="$?"?(o.flags|=128,o.child=a.child,o=rv.bind(null,a),S._reactRetry=o,null):(a=T.treeContext,qa=Xa(S.nextSibling),Za=o,$n=!0,mi=null,a!==null&&(Ta[Na++]=Ia,Ta[Na++]=Fr,Ta[Na++]=Gi,Ia=a.id,Fr=a.overflow,Gi=o),o=Bf(o,g.children),o.flags|=4096,o)}function Vg(a,o,f){a.lanes|=o;var g=a.alternate;g!==null&&(g.lanes|=o),As(a.return,o,f)}function zf(a,o,f,g,S){var T=a.memoizedState;T===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:g,tail:f,tailMode:S}:(T.isBackwards=o,T.rendering=null,T.renderingStartTime=0,T.last=g,T.tail=f,T.tailMode=S)}function Xh(a,o,f){var g=o.pendingProps,S=g.revealOrder,T=g.tail;if(cr(a,o,g.children,f),g=dt.current,g&2)g=g&1|2,o.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Vg(a,f,o);else if(a.tag===19)Vg(a,f,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}g&=1}if(rn(dt,g),!(o.mode&1))o.memoizedState=null;else switch(S){case"forwards":for(f=o.child,S=null;f!==null;)a=f.alternate,a!==null&&tn(a)===null&&(S=f),f=f.sibling;f=S,f===null?(S=o.child,o.child=null):(S=f.sibling,f.sibling=null),zf(o,!1,S,f,T);break;case"backwards":for(f=null,S=o.child,o.child=null;S!==null;){if(a=S.alternate,a!==null&&tn(a)===null){o.child=S;break}a=S.sibling,S.sibling=f,f=S,S=a}zf(o,!0,f,null,T);break;case"together":zf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function fd(a,o){!(o.mode&1)&&a!==null&&(a.alternate=null,o.alternate=null,o.flags|=2)}function dr(a,o,f){if(a!==null&&(o.dependencies=a.dependencies),Dl|=o.lanes,!(f&o.childLanes))return null;if(a!==null&&o.child!==a.child)throw Error(i(153));if(o.child!==null){for(a=o.child,f=$s(a,a.pendingProps),o.child=f,f.return=o;a.sibling!==null;)a=a.sibling,f=f.sibling=$s(a,a.pendingProps),f.return=o;f.sibling=null}return o.child}function Xo(a,o,f){switch(o.tag){case 3:R0(o),Eu();break;case 5:Ef(o);break;case 1:mr(o.type)&&bl(o);break;case 4:Bh(o,o.stateNode.containerInfo);break;case 10:var g=o.type._context,S=o.memoizedProps.value;rn(wu,g._currentValue),g._currentValue=S;break;case 13:if(g=o.memoizedState,g!==null)return g.dehydrated!==null?(rn(dt,dt.current&1),o.flags|=128,null):f&o.child.childLanes?Fg(a,o,f):(rn(dt,dt.current&1),a=dr(a,o,f),a!==null?a.sibling:null);rn(dt,dt.current&1);break;case 19:if(g=(f&o.childLanes)!==0,a.flags&128){if(g)return Xh(a,o,f);o.flags|=128}if(S=o.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),rn(dt,dt.current),g)break;return null;case 22:case 23:return o.lanes=0,ka(a,o,f)}return dr(a,o,f)}var po,Mu,Lu,bi;po=function(a,o){for(var f=o.child;f!==null;){if(f.tag===5||f.tag===6)a.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===o)break;for(;f.sibling===null;){if(f.return===null||f.return===o)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},Mu=function(){},Lu=function(a,o,f,g){var S=a.memoizedProps;if(S!==g){a=o.stateNode,ks(co.current);var T=null;switch(f){case"input":S=xt(a,S),g=xt(a,g),T=[];break;case"select":S=G({},S,{value:void 0}),g=G({},g,{value:void 0}),T=[];break;case"textarea":S=Qn(a,S),g=Qn(a,g),T=[];break;default:typeof S.onClick!="function"&&typeof g.onClick=="function"&&(a.onclick=hf)}nn(f,g);var L;f=null;for(he in S)if(!g.hasOwnProperty(he)&&S.hasOwnProperty(he)&&S[he]!=null)if(he==="style"){var W=S[he];for(L in W)W.hasOwnProperty(L)&&(f||(f={}),f[L]="")}else he!=="dangerouslySetInnerHTML"&&he!=="children"&&he!=="suppressContentEditableWarning"&&he!=="suppressHydrationWarning"&&he!=="autoFocus"&&(u.hasOwnProperty(he)?T||(T=[]):(T=T||[]).push(he,null));for(he in g){var Q=g[he];if(W=S!=null?S[he]:void 0,g.hasOwnProperty(he)&&Q!==W&&(Q!=null||W!=null))if(he==="style")if(W){for(L in W)!W.hasOwnProperty(L)||Q&&Q.hasOwnProperty(L)||(f||(f={}),f[L]="");for(L in Q)Q.hasOwnProperty(L)&&W[L]!==Q[L]&&(f||(f={}),f[L]=Q[L])}else f||(T||(T=[]),T.push(he,f)),f=Q;else he==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,W=W?W.__html:void 0,Q!=null&&W!==Q&&(T=T||[]).push(he,Q)):he==="children"?typeof Q!="string"&&typeof Q!="number"||(T=T||[]).push(he,""+Q):he!=="suppressContentEditableWarning"&&he!=="suppressHydrationWarning"&&(u.hasOwnProperty(he)?(Q!=null&&he==="onScroll"&&Nn("scroll",a),T||W===Q||(T=[])):(T=T||[]).push(he,Q))}f&&(T=T||[]).push("style",f);var he=T;(o.updateQueue=he)&&(o.flags|=4)}},bi=function(a,o,f,g){f!==g&&(o.flags|=4)};function nr(a,o){if(!$n)switch(a.tailMode){case"hidden":o=a.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var g=null;f!==null;)f.alternate!==null&&(g=f),f=f.sibling;g===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:g.sibling=null}}function Qr(a){var o=a.alternate!==null&&a.alternate.child===a.child,f=0,g=0;if(o)for(var S=a.child;S!==null;)f|=S.lanes|S.childLanes,g|=S.subtreeFlags&14680064,g|=S.flags&14680064,S.return=a,S=S.sibling;else for(S=a.child;S!==null;)f|=S.lanes|S.childLanes,g|=S.subtreeFlags,g|=S.flags,S.return=a,S=S.sibling;return a.subtreeFlags|=g,a.childLanes=f,o}function _0(a,o,f){var g=o.pendingProps;switch(yf(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qr(o),null;case 1:return mr(o.type)&&_a(),Qr(o),null;case 3:return g=o.stateNode,ju(),ut(jt),ut(jr),gi(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(a===null||a.child===null)&&(xf(o)?o.flags|=4:a===null||a.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,mi!==null&&(ev(mi),mi=null))),Mu(a,o),Qr(o),null;case 5:gt(o);var S=ks(td.current);if(f=o.type,a!==null&&o.stateNode!=null)Lu(a,o,f,g,S),a.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!g){if(o.stateNode===null)throw Error(i(166));return Qr(o),null}if(a=ks(co.current),xf(o)){g=o.stateNode,f=o.type;var T=o.memoizedProps;switch(g[di]=o,g[qc]=T,a=(o.mode&1)!==0,f){case"dialog":Nn("cancel",g),Nn("close",g);break;case"iframe":case"object":case"embed":Nn("load",g);break;case"video":case"audio":for(S=0;S<Bo.length;S++)Nn(Bo[S],g);break;case"source":Nn("error",g);break;case"img":case"image":case"link":Nn("error",g),Nn("load",g);break;case"details":Nn("toggle",g);break;case"input":ht(g,T),Nn("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!T.multiple},Nn("invalid",g);break;case"textarea":Tr(g,T),Nn("invalid",g)}nn(f,T),S=null;for(var L in T)if(T.hasOwnProperty(L)){var W=T[L];L==="children"?typeof W=="string"?g.textContent!==W&&(T.suppressHydrationWarning!==!0&&Wc(g.textContent,W,a),S=["children",W]):typeof W=="number"&&g.textContent!==""+W&&(T.suppressHydrationWarning!==!0&&Wc(g.textContent,W,a),S=["children",""+W]):u.hasOwnProperty(L)&&W!=null&&L==="onScroll"&&Nn("scroll",g)}switch(f){case"input":Xe(g),ln(g,T,!0);break;case"textarea":Xe(g),Nr(g);break;case"select":case"option":break;default:typeof T.onClick=="function"&&(g.onclick=hf)}g=S,o.updateQueue=g,g!==null&&(o.flags|=4)}else{L=S.nodeType===9?S:S.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=Et(f)),a==="http://www.w3.org/1999/xhtml"?f==="script"?(a=L.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof g.is=="string"?a=L.createElement(f,{is:g.is}):(a=L.createElement(f),f==="select"&&(L=a,g.multiple?L.multiple=!0:g.size&&(L.size=g.size))):a=L.createElementNS(a,f),a[di]=o,a[qc]=g,po(a,o,!1,!1),o.stateNode=a;e:{switch(L=or(f,g),f){case"dialog":Nn("cancel",a),Nn("close",a),S=g;break;case"iframe":case"object":case"embed":Nn("load",a),S=g;break;case"video":case"audio":for(S=0;S<Bo.length;S++)Nn(Bo[S],a);S=g;break;case"source":Nn("error",a),S=g;break;case"img":case"image":case"link":Nn("error",a),Nn("load",a),S=g;break;case"details":Nn("toggle",a),S=g;break;case"input":ht(a,g),S=xt(a,g),Nn("invalid",a);break;case"option":S=g;break;case"select":a._wrapperState={wasMultiple:!!g.multiple},S=G({},g,{value:void 0}),Nn("invalid",a);break;case"textarea":Tr(a,g),S=Qn(a,g),Nn("invalid",a);break;default:S=g}nn(f,S),W=S;for(T in W)if(W.hasOwnProperty(T)){var Q=W[T];T==="style"?Mt(a,Q):T==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&za(a,Q)):T==="children"?typeof Q=="string"?(f!=="textarea"||Q!=="")&&Ua(a,Q):typeof Q=="number"&&Ua(a,""+Q):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(u.hasOwnProperty(T)?Q!=null&&T==="onScroll"&&Nn("scroll",a):Q!=null&&V(a,T,Q,L))}switch(f){case"input":Xe(a),ln(a,g,!1);break;case"textarea":Xe(a),Nr(a);break;case"option":g.value!=null&&a.setAttribute("value",""+Oe(g.value));break;case"select":a.multiple=!!g.multiple,T=g.value,T!=null?Cn(a,!!g.multiple,T,!1):g.defaultValue!=null&&Cn(a,!!g.multiple,g.defaultValue,!0);break;default:typeof S.onClick=="function"&&(a.onclick=hf)}switch(f){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Qr(o),null;case 6:if(a&&o.stateNode!=null)bi(a,o,a.memoizedProps,g);else{if(typeof g!="string"&&o.stateNode===null)throw Error(i(166));if(f=ks(td.current),ks(co.current),xf(o)){if(g=o.stateNode,f=o.memoizedProps,g[di]=o,(T=g.nodeValue!==f)&&(a=Za,a!==null))switch(a.tag){case 3:Wc(g.nodeValue,f,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Wc(g.nodeValue,f,(a.mode&1)!==0)}T&&(o.flags|=4)}else g=(f.nodeType===9?f:f.ownerDocument).createTextNode(g),g[di]=o,o.stateNode=g}return Qr(o),null;case 13:if(ut(dt),g=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if($n&&qa!==null&&o.mode&1&&!(o.flags&128))Cg(),Eu(),o.flags|=98560,T=!1;else if(T=xf(o),g!==null&&g.dehydrated!==null){if(a===null){if(!T)throw Error(i(318));if(T=o.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(i(317));T[di]=o}else Eu(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;Qr(o),T=!1}else mi!==null&&(ev(mi),mi=null),T=!0;if(!T)return o.flags&65536?o:null}return o.flags&128?(o.lanes=f,o):(g=g!==null,g!==(a!==null&&a.memoizedState!==null)&&g&&(o.child.flags|=8192,o.mode&1&&(a===null||dt.current&1?Sr===0&&(Sr=3):gd())),o.updateQueue!==null&&(o.flags|=4),Qr(o),null);case 4:return ju(),Mu(a,o),a===null&&io(o.stateNode.containerInfo),Qr(o),null;case 10:return Lh(o.type._context),Qr(o),null;case 17:return mr(o.type)&&_a(),Qr(o),null;case 19:if(ut(dt),T=o.memoizedState,T===null)return Qr(o),null;if(g=(o.flags&128)!==0,L=T.rendering,L===null)if(g)nr(T,!1);else{if(Sr!==0||a!==null&&a.flags&128)for(a=o.child;a!==null;){if(L=tn(a),L!==null){for(o.flags|=128,nr(T,!1),g=L.updateQueue,g!==null&&(o.updateQueue=g,o.flags|=4),o.subtreeFlags=0,g=f,f=o.child;f!==null;)T=f,a=g,T.flags&=14680066,L=T.alternate,L===null?(T.childLanes=0,T.lanes=a,T.child=null,T.subtreeFlags=0,T.memoizedProps=null,T.memoizedState=null,T.updateQueue=null,T.dependencies=null,T.stateNode=null):(T.childLanes=L.childLanes,T.lanes=L.lanes,T.child=L.child,T.subtreeFlags=0,T.deletions=null,T.memoizedProps=L.memoizedProps,T.memoizedState=L.memoizedState,T.updateQueue=L.updateQueue,T.type=L.type,a=L.dependencies,T.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),f=f.sibling;return rn(dt,dt.current&1|2),o.child}a=a.sibling}T.tail!==null&&kn()>Wu&&(o.flags|=128,g=!0,nr(T,!1),o.lanes=4194304)}else{if(!g)if(a=tn(L),a!==null){if(o.flags|=128,g=!0,f=a.updateQueue,f!==null&&(o.updateQueue=f,o.flags|=4),nr(T,!0),T.tail===null&&T.tailMode==="hidden"&&!L.alternate&&!$n)return Qr(o),null}else 2*kn()-T.renderingStartTime>Wu&&f!==1073741824&&(o.flags|=128,g=!0,nr(T,!1),o.lanes=4194304);T.isBackwards?(L.sibling=o.child,o.child=L):(f=T.last,f!==null?f.sibling=L:o.child=L,T.last=L)}return T.tail!==null?(o=T.tail,T.rendering=o,T.tail=o.sibling,T.renderingStartTime=kn(),o.sibling=null,f=dt.current,rn(dt,g?f&1|2:f&1),o):(Qr(o),null);case 22:case 23:return Kf(),g=o.memoizedState!==null,a!==null&&a.memoizedState!==null!==g&&(o.flags|=8192),g&&o.mode&1?Ma&1073741824&&(Qr(o),o.subtreeFlags&6&&(o.flags|=8192)):Qr(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function T0(a,o){switch(yf(o),o.tag){case 1:return mr(o.type)&&_a(),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return ju(),ut(jt),ut(jr),gi(),a=o.flags,a&65536&&!(a&128)?(o.flags=a&-65537|128,o):null;case 5:return gt(o),null;case 13:if(ut(dt),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Eu()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return ut(dt),null;case 4:return ju(),null;case 10:return Lh(o.type._context),null;case 22:case 23:return Kf(),null;case 24:return null;default:return null}}var Pu=!1,Vr=!1,Uf=typeof WeakSet=="function"?WeakSet:Set,rt=null;function Fu(a,o){var f=a.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(g){ar(a,o,g)}else f.current=null}function Yh(a,o,f){try{f()}catch(g){ar(a,o,g)}}var Hf=!1;function N0(a,o){if(Rh=pu,a=sg(),Bc(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var g=f.getSelection&&f.getSelection();if(g&&g.rangeCount!==0){f=g.anchorNode;var S=g.anchorOffset,T=g.focusNode;g=g.focusOffset;try{f.nodeType,T.nodeType}catch{f=null;break e}var L=0,W=-1,Q=-1,he=0,Fe=0,Be=a,Me=null;t:for(;;){for(var Qe;Be!==f||S!==0&&Be.nodeType!==3||(W=L+S),Be!==T||g!==0&&Be.nodeType!==3||(Q=L+g),Be.nodeType===3&&(L+=Be.nodeValue.length),(Qe=Be.firstChild)!==null;)Me=Be,Be=Qe;for(;;){if(Be===a)break t;if(Me===f&&++he===S&&(W=L),Me===T&&++Fe===g&&(Q=L),(Qe=Be.nextSibling)!==null)break;Be=Me,Me=Be.parentNode}Be=Qe}f=W===-1||Q===-1?null:{start:W,end:Q}}else f=null}f=f||{start:0,end:0}}else f=null;for(_h={focusedElem:a,selectionRange:f},pu=!1,rt=o;rt!==null;)if(o=rt,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,rt=a;else for(;rt!==null;){o=rt;try{var at=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(at!==null){var lt=at.memoizedProps,fr=at.memoizedState,oe=o.stateNode,ee=oe.getSnapshotBeforeUpdate(o.elementType===o.type?lt:ja(o.type,lt),fr);oe.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var ue=o.stateNode.containerInfo;ue.nodeType===1?ue.textContent="":ue.nodeType===9&&ue.documentElement&&ue.removeChild(ue.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Ue){ar(o,o.return,Ue)}if(a=o.sibling,a!==null){a.return=o.return,rt=a;break}rt=o.return}return at=Hf,Hf=!1,at}function Vu(a,o,f){var g=o.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var S=g=g.next;do{if((S.tag&a)===a){var T=S.destroy;S.destroy=void 0,T!==void 0&&Yh(o,f,T)}S=S.next}while(S!==g)}}function Gf(a,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var f=o=o.next;do{if((f.tag&a)===a){var g=f.create;f.destroy=g()}f=f.next}while(f!==o)}}function Wf(a){var o=a.ref;if(o!==null){var f=a.stateNode;switch(a.tag){case 5:a=f;break;default:a=f}typeof o=="function"?o(a):o.current=a}}function Bg(a){var o=a.alternate;o!==null&&(a.alternate=null,Bg(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&(delete o[di],delete o[qc],delete o[jh],delete o[b0],delete o[x0])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Zh(a){return a.tag===5||a.tag===3||a.tag===4}function $g(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Zh(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function pd(a,o,f){var g=a.tag;if(g===5||g===6)a=a.stateNode,o?f.nodeType===8?f.parentNode.insertBefore(a,o):f.insertBefore(a,o):(f.nodeType===8?(o=f.parentNode,o.insertBefore(a,f)):(o=f,o.appendChild(a)),f=f._reactRootContainer,f!=null||o.onclick!==null||(o.onclick=hf));else if(g!==4&&(a=a.child,a!==null))for(pd(a,o,f),a=a.sibling;a!==null;)pd(a,o,f),a=a.sibling}function Bu(a,o,f){var g=a.tag;if(g===5||g===6)a=a.stateNode,o?f.insertBefore(a,o):f.appendChild(a);else if(g!==4&&(a=a.child,a!==null))for(Bu(a,o,f),a=a.sibling;a!==null;)Bu(a,o,f),a=a.sibling}var Hn=null,Ar=!1;function ia(a,o,f){for(f=f.child;f!==null;)$u(a,o,f),f=f.sibling}function $u(a,o,f){if(Sa&&typeof Sa.onCommitFiberUnmount=="function")try{Sa.onCommitFiberUnmount(gs,f)}catch{}switch(f.tag){case 5:Vr||Fu(f,o);case 6:var g=Hn,S=Ar;Hn=null,ia(a,o,f),Hn=g,Ar=S,Hn!==null&&(Ar?(a=Hn,f=f.stateNode,a.nodeType===8?a.parentNode.removeChild(f):a.removeChild(f)):Hn.removeChild(f.stateNode));break;case 18:Hn!==null&&(Ar?(a=Hn,f=f.stateNode,a.nodeType===8?Ih(a.parentNode,f):a.nodeType===1&&Ih(a,f),ci(a)):Ih(Hn,f.stateNode));break;case 4:g=Hn,S=Ar,Hn=f.stateNode.containerInfo,Ar=!0,ia(a,o,f),Hn=g,Ar=S;break;case 0:case 11:case 14:case 15:if(!Vr&&(g=f.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){S=g=g.next;do{var T=S,L=T.destroy;T=T.tag,L!==void 0&&(T&2||T&4)&&Yh(f,o,L),S=S.next}while(S!==g)}ia(a,o,f);break;case 1:if(!Vr&&(Fu(f,o),g=f.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=f.memoizedProps,g.state=f.memoizedState,g.componentWillUnmount()}catch(W){ar(f,o,W)}ia(a,o,f);break;case 21:ia(a,o,f);break;case 22:f.mode&1?(Vr=(g=Vr)||f.memoizedState!==null,ia(a,o,f),Vr=g):ia(a,o,f);break;default:ia(a,o,f)}}function zu(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var f=a.stateNode;f===null&&(f=a.stateNode=new Uf),o.forEach(function(g){var S=M0.bind(null,a,g);f.has(g)||(f.add(g),g.then(S,S))})}}function Or(a,o){var f=o.deletions;if(f!==null)for(var g=0;g<f.length;g++){var S=f[g];try{var T=a,L=o,W=L;e:for(;W!==null;){switch(W.tag){case 5:Hn=W.stateNode,Ar=!1;break e;case 3:Hn=W.stateNode.containerInfo,Ar=!0;break e;case 4:Hn=W.stateNode.containerInfo,Ar=!0;break e}W=W.return}if(Hn===null)throw Error(i(160));$u(T,L,S),Hn=null,Ar=!1;var Q=S.alternate;Q!==null&&(Q.return=null),S.return=null}catch(he){ar(S,o,he)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)zg(o,a),o=o.sibling}function zg(a,o){var f=a.alternate,g=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(Or(o,a),ho(a),g&4){try{Vu(3,a,a.return),Gf(3,a)}catch(lt){ar(a,a.return,lt)}try{Vu(5,a,a.return)}catch(lt){ar(a,a.return,lt)}}break;case 1:Or(o,a),ho(a),g&512&&f!==null&&Fu(f,f.return);break;case 5:if(Or(o,a),ho(a),g&512&&f!==null&&Fu(f,f.return),a.flags&32){var S=a.stateNode;try{Ua(S,"")}catch(lt){ar(a,a.return,lt)}}if(g&4&&(S=a.stateNode,S!=null)){var T=a.memoizedProps,L=f!==null?f.memoizedProps:T,W=a.type,Q=a.updateQueue;if(a.updateQueue=null,Q!==null)try{W==="input"&&T.type==="radio"&&T.name!=null&&Ht(S,T),or(W,L);var he=or(W,T);for(L=0;L<Q.length;L+=2){var Fe=Q[L],Be=Q[L+1];Fe==="style"?Mt(S,Be):Fe==="dangerouslySetInnerHTML"?za(S,Be):Fe==="children"?Ua(S,Be):V(S,Fe,Be,he)}switch(W){case"input":Gt(S,T);break;case"textarea":Gn(S,T);break;case"select":var Me=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!T.multiple;var Qe=T.value;Qe!=null?Cn(S,!!T.multiple,Qe,!1):Me!==!!T.multiple&&(T.defaultValue!=null?Cn(S,!!T.multiple,T.defaultValue,!0):Cn(S,!!T.multiple,T.multiple?[]:"",!1))}S[qc]=T}catch(lt){ar(a,a.return,lt)}}break;case 6:if(Or(o,a),ho(a),g&4){if(a.stateNode===null)throw Error(i(162));S=a.stateNode,T=a.memoizedProps;try{S.nodeValue=T}catch(lt){ar(a,a.return,lt)}}break;case 3:if(Or(o,a),ho(a),g&4&&f!==null&&f.memoizedState.isDehydrated)try{ci(o.containerInfo)}catch(lt){ar(a,a.return,lt)}break;case 4:Or(o,a),ho(a);break;case 13:Or(o,a),ho(a),S=a.child,S.flags&8192&&(T=S.memoizedState!==null,S.stateNode.isHidden=T,!T||S.alternate!==null&&S.alternate.memoizedState!==null||(Yf=kn())),g&4&&zu(a);break;case 22:if(Fe=f!==null&&f.memoizedState!==null,a.mode&1?(Vr=(he=Vr)||Fe,Or(o,a),Vr=he):Or(o,a),ho(a),g&8192){if(he=a.memoizedState!==null,(a.stateNode.isHidden=he)&&!Fe&&a.mode&1)for(rt=a,Fe=a.child;Fe!==null;){for(Be=rt=Fe;rt!==null;){switch(Me=rt,Qe=Me.child,Me.tag){case 0:case 11:case 14:case 15:Vu(4,Me,Me.return);break;case 1:Fu(Me,Me.return);var at=Me.stateNode;if(typeof at.componentWillUnmount=="function"){g=Me,f=Me.return;try{o=g,at.props=o.memoizedProps,at.state=o.memoizedState,at.componentWillUnmount()}catch(lt){ar(g,f,lt)}}break;case 5:Fu(Me,Me.return);break;case 22:if(Me.memoizedState!==null){Ug(Be);continue}}Qe!==null?(Qe.return=Me,rt=Qe):Ug(Be)}Fe=Fe.sibling}e:for(Fe=null,Be=a;;){if(Be.tag===5){if(Fe===null){Fe=Be;try{S=Be.stateNode,he?(T=S.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none"):(W=Be.stateNode,Q=Be.memoizedProps.style,L=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,W.style.display=pt("display",L))}catch(lt){ar(a,a.return,lt)}}}else if(Be.tag===6){if(Fe===null)try{Be.stateNode.nodeValue=he?"":Be.memoizedProps}catch(lt){ar(a,a.return,lt)}}else if((Be.tag!==22&&Be.tag!==23||Be.memoizedState===null||Be===a)&&Be.child!==null){Be.child.return=Be,Be=Be.child;continue}if(Be===a)break e;for(;Be.sibling===null;){if(Be.return===null||Be.return===a)break e;Fe===Be&&(Fe=null),Be=Be.return}Fe===Be&&(Fe=null),Be.sibling.return=Be.return,Be=Be.sibling}}break;case 19:Or(o,a),ho(a),g&4&&zu(a);break;case 21:break;default:Or(o,a),ho(a)}}function ho(a){var o=a.flags;if(o&2){try{e:{for(var f=a.return;f!==null;){if(Zh(f)){var g=f;break e}f=f.return}throw Error(i(160))}switch(g.tag){case 5:var S=g.stateNode;g.flags&32&&(Ua(S,""),g.flags&=-33);var T=$g(a);Bu(a,T,S);break;case 3:case 4:var L=g.stateNode.containerInfo,W=$g(a);pd(a,W,L);break;default:throw Error(i(161))}}catch(Q){ar(a,a.return,Q)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function I0(a,o,f){rt=a,qh(a)}function qh(a,o,f){for(var g=(a.mode&1)!==0;rt!==null;){var S=rt,T=S.child;if(S.tag===22&&g){var L=S.memoizedState!==null||Pu;if(!L){var W=S.alternate,Q=W!==null&&W.memoizedState!==null||Vr;W=Pu;var he=Vr;if(Pu=L,(Vr=Q)&&!he)for(rt=S;rt!==null;)L=rt,Q=L.child,L.tag===22&&L.memoizedState!==null?Jh(S):Q!==null?(Q.return=L,rt=Q):Jh(S);for(;T!==null;)rt=T,qh(T),T=T.sibling;rt=S,Pu=W,Vr=he}Uu(a)}else S.subtreeFlags&8772&&T!==null?(T.return=S,rt=T):Uu(a)}}function Uu(a){for(;rt!==null;){var o=rt;if(o.flags&8772){var f=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:Vr||Gf(5,o);break;case 1:var g=o.stateNode;if(o.flags&4&&!Vr)if(f===null)g.componentDidMount();else{var S=o.elementType===o.type?f.memoizedProps:ja(o.type,f.memoizedProps);g.componentDidUpdate(S,f.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var T=o.updateQueue;T!==null&&_u(o,T,g);break;case 3:var L=o.updateQueue;if(L!==null){if(f=null,o.child!==null)switch(o.child.tag){case 5:f=o.child.stateNode;break;case 1:f=o.child.stateNode}_u(o,L,f)}break;case 5:var W=o.stateNode;if(f===null&&o.flags&4){f=W;var Q=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&f.focus();break;case"img":Q.src&&(f.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var he=o.alternate;if(he!==null){var Fe=he.memoizedState;if(Fe!==null){var Be=Fe.dehydrated;Be!==null&&ci(Be)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Vr||o.flags&512&&Wf(o)}catch(Me){ar(o,o.return,Me)}}if(o===a){rt=null;break}if(f=o.sibling,f!==null){f.return=o.return,rt=f;break}rt=o.return}}function Ug(a){for(;rt!==null;){var o=rt;if(o===a){rt=null;break}var f=o.sibling;if(f!==null){f.return=o.return,rt=f;break}rt=o.return}}function Jh(a){for(;rt!==null;){var o=rt;try{switch(o.tag){case 0:case 11:case 15:var f=o.return;try{Gf(4,o)}catch(Q){ar(o,f,Q)}break;case 1:var g=o.stateNode;if(typeof g.componentDidMount=="function"){var S=o.return;try{g.componentDidMount()}catch(Q){ar(o,S,Q)}}var T=o.return;try{Wf(o)}catch(Q){ar(o,T,Q)}break;case 5:var L=o.return;try{Wf(o)}catch(Q){ar(o,L,Q)}}}catch(Q){ar(o,o.return,Q)}if(o===a){rt=null;break}var W=o.sibling;if(W!==null){W.return=o.return,rt=W;break}rt=o.return}}var j0=Math.ceil,Ol=U.ReactCurrentDispatcher,Xf=U.ReactCurrentOwner,xi=U.ReactCurrentBatchConfig,$t=0,rr=null,zn=null,Cr=0,Ma=0,Hu=In(0),Sr=0,hd=null,Dl=0,Gu=0,Qh=0,Vs=null,Kr=null,Yf=0,Wu=1/0,Yo=null,Zf=!1,Kh=null,Ci=null,Xu=!1,Si=null,qf=0,vd=0,Jf=null,md=-1,kl=0;function Dr(){return $t&6?kn():md!==-1?md:md=kn()}function Zo(a){return a.mode&1?$t&2&&Cr!==0?Cr&-Cr:C0.transition!==null?(kl===0&&(kl=cl()),kl):(a=Ut,a!==0||(a=window.event,a=a===void 0?16:Oc(a.type)),a):1}function qn(a,o,f,g){if(50<vd)throw vd=0,Jf=null,Error(i(185));bs(a,f,g),(!($t&2)||a!==rr)&&(a===rr&&(!($t&2)&&(Gu|=f),Sr===4&&vo(a,Cr)),Er(a,g),f===1&&$t===0&&!(o.mode&1)&&(Wu=kn()+500,Ns&&lo()))}function Er(a,o){var f=a.callbackNode;ys(a,o);var g=no(a,a===rr?Cr:0);if(g===0)f!==null&&Dn(f),a.callbackNode=null,a.callbackPriority=0;else if(o=g&-g,a.callbackPriority!==o){if(f!=null&&Dn(f),o===1)a.tag===0?xg(Yu.bind(null,a)):mf(Yu.bind(null,a)),yg(function(){!($t&6)&&lo()}),f=null;else{switch(Ic(g)){case 1:f=Sc;break;case 4:f=to;break;case 16:f=Lt;break;case 536870912:f=Ao;break;default:f=Lt}f=Jg(f,Qf.bind(null,a))}a.callbackPriority=o,a.callbackNode=f}}function Qf(a,o){if(md=-1,kl=0,$t&6)throw Error(i(327));var f=a.callbackNode;if(Zu()&&a.callbackNode!==f)return null;var g=no(a,a===rr?Cr:0);if(g===0)return null;if(g&30||g&a.expiredLanes||o)o=ep(a,g);else{o=g;var S=$t;$t|=2;var T=Gg();(rr!==a||Cr!==o)&&(Yo=null,Wu=kn()+500,Ll(a,o));do try{O0();break}catch(W){Hg(a,W)}while(!0);Mh(),Ol.current=T,$t=S,zn!==null?o=0:(rr=null,Cr=0,o=Sr)}if(o!==0){if(o===2&&(S=ro(a),S!==0&&(g=S,o=Ml(a,S))),o===1)throw f=hd,Ll(a,0),vo(a,g),Er(a,kn()),f;if(o===6)vo(a,g);else{if(S=a.current.alternate,!(g&30)&&!tv(S)&&(o=ep(a,g),o===2&&(T=ro(a),T!==0&&(g=T,o=Ml(a,T))),o===1))throw f=hd,Ll(a,0),vo(a,g),Er(a,kn()),f;switch(a.finishedWork=S,a.finishedLanes=g,o){case 0:case 1:throw Error(i(345));case 2:Bs(a,Kr,Yo);break;case 3:if(vo(a,g),(g&130023424)===g&&(o=Yf+500-kn(),10<o)){if(no(a,0)!==0)break;if(S=a.suspendedLanes,(S&g)!==g){Dr(),a.pingedLanes|=a.suspendedLanes&S;break}a.timeoutHandle=Xc(Bs.bind(null,a,Kr,Yo),o);break}Bs(a,Kr,Yo);break;case 4:if(vo(a,g),(g&4194240)===g)break;for(o=a.eventTimes,S=-1;0<g;){var L=31-ra(g);T=1<<L,L=o[L],L>S&&(S=L),g&=~T}if(g=S,g=kn()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*j0(g/1960))-g,10<g){a.timeoutHandle=Xc(Bs.bind(null,a,Kr,Yo),g);break}Bs(a,Kr,Yo);break;case 5:Bs(a,Kr,Yo);break;default:throw Error(i(329))}}}return Er(a,kn()),a.callbackNode===f?Qf.bind(null,a):null}function Ml(a,o){var f=Vs;return a.current.memoizedState.isDehydrated&&(Ll(a,o).flags|=256),a=ep(a,o),a!==2&&(o=Kr,Kr=f,o!==null&&ev(o)),a}function ev(a){Kr===null?Kr=a:Kr.push.apply(Kr,a)}function tv(a){for(var o=a;;){if(o.flags&16384){var f=o.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var g=0;g<f.length;g++){var S=f[g],T=S.getSnapshot;S=S.value;try{if(!zi(T(),S))return!1}catch{return!1}}}if(f=o.child,o.subtreeFlags&16384&&f!==null)f.return=o,o=f;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function vo(a,o){for(o&=~Qh,o&=~Gu,a.suspendedLanes|=o,a.pingedLanes&=~o,a=a.expirationTimes;0<o;){var f=31-ra(o),g=1<<f;a[f]=-1,o&=~g}}function Yu(a){if($t&6)throw Error(i(327));Zu();var o=no(a,0);if(!(o&1))return Er(a,kn()),null;var f=ep(a,o);if(a.tag!==0&&f===2){var g=ro(a);g!==0&&(o=g,f=Ml(a,g))}if(f===1)throw f=hd,Ll(a,0),vo(a,o),Er(a,kn()),f;if(f===6)throw Error(i(345));return a.finishedWork=a.current.alternate,a.finishedLanes=o,Bs(a,Kr,Yo),Er(a,kn()),null}function nv(a,o){var f=$t;$t|=1;try{return a(o)}finally{$t=f,$t===0&&(Wu=kn()+500,Ns&&lo())}}function mo(a){Si!==null&&Si.tag===0&&!($t&6)&&Zu();var o=$t;$t|=1;var f=xi.transition,g=Ut;try{if(xi.transition=null,Ut=1,a)return a()}finally{Ut=g,xi.transition=f,$t=o,!($t&6)&&lo()}}function Kf(){Ma=Hu.current,ut(Hu)}function Ll(a,o){a.finishedWork=null,a.finishedLanes=0;var f=a.timeoutHandle;if(f!==-1&&(a.timeoutHandle=-1,Yc(f)),zn!==null)for(f=zn.return;f!==null;){var g=f;switch(yf(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&_a();break;case 3:ju(),ut(jt),ut(jr),gi();break;case 5:gt(g);break;case 4:ju();break;case 13:ut(dt);break;case 19:ut(dt);break;case 10:Lh(g.type._context);break;case 22:case 23:Kf()}f=f.return}if(rr=a,zn=a=$s(a.current,null),Cr=Ma=o,Sr=0,hd=null,Qh=Gu=Dl=0,Kr=Vs=null,Jr!==null){for(o=0;o<Jr.length;o++)if(f=Jr[o],g=f.interleaved,g!==null){f.interleaved=null;var S=g.next,T=f.pending;if(T!==null){var L=T.next;T.next=S,g.next=L}f.pending=g}Jr=null}return a}function Hg(a,o){do{var f=zn;try{if(Mh(),nd.current=Pf,ur){for(var g=Zn.memoizedState;g!==null;){var S=g.queue;S!==null&&(S.pending=null),g=g.next}ur=!1}if(El=0,Re=lr=Zn=null,Ct=!1,fo=0,Xf.current=null,f===null||f.return===null){Sr=1,hd=o,zn=null;break}e:{var T=a,L=f.return,W=f,Q=o;if(o=Cr,W.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var he=Q,Fe=W,Be=Fe.tag;if(!(Fe.mode&1)&&(Be===0||Be===11||Be===15)){var Me=Fe.alternate;Me?(Fe.updateQueue=Me.updateQueue,Fe.memoizedState=Me.memoizedState,Fe.lanes=Me.lanes):(Fe.updateQueue=null,Fe.memoizedState=null)}var Qe=Mg(L);if(Qe!==null){Qe.flags&=-257,Gh(Qe,L,W,T,o),Qe.mode&1&&ud(T,he,o),o=Qe,Q=he;var at=o.updateQueue;if(at===null){var lt=new Set;lt.add(Q),o.updateQueue=lt}else at.add(Q);break e}else{if(!(o&1)){ud(T,he,o),gd();break e}Q=Error(i(426))}}else if($n&&W.mode&1){var fr=Mg(L);if(fr!==null){!(fr.flags&65536)&&(fr.flags|=256),Gh(fr,L,W,T,o),gr(Ps(Q,W));break e}}T=Q=Ps(Q,W),Sr!==4&&(Sr=2),Vs===null?Vs=[T]:Vs.push(T),T=L;do{switch(T.tag){case 3:T.flags|=65536,o&=-o,T.lanes|=o;var oe=Dg(T,Q,o);wg(T,oe);break e;case 1:W=Q;var ee=T.type,ue=T.stateNode;if(!(T.flags&128)&&(typeof ee.getDerivedStateFromError=="function"||ue!==null&&typeof ue.componentDidCatch=="function"&&(Ci===null||!Ci.has(ue)))){T.flags|=65536,o&=-o,T.lanes|=o;var Ue=kg(T,W,o);wg(T,Ue);break e}}T=T.return}while(T!==null)}Xg(f)}catch(ct){o=ct,zn===f&&f!==null&&(zn=f=f.return);continue}break}while(!0)}function Gg(){var a=Ol.current;return Ol.current=Pf,a===null?Pf:a}function gd(){(Sr===0||Sr===3||Sr===2)&&(Sr=4),rr===null||!(Dl&268435455)&&!(Gu&268435455)||vo(rr,Cr)}function ep(a,o){var f=$t;$t|=2;var g=Gg();(rr!==a||Cr!==o)&&(Yo=null,Ll(a,o));do try{A0();break}catch(S){Hg(a,S)}while(!0);if(Mh(),$t=f,Ol.current=g,zn!==null)throw Error(i(261));return rr=null,Cr=0,Sr}function A0(){for(;zn!==null;)Wg(zn)}function O0(){for(;zn!==null&&!Zr();)Wg(zn)}function Wg(a){var o=qg(a.alternate,a,Ma);a.memoizedProps=a.pendingProps,o===null?Xg(a):zn=o,Xf.current=null}function Xg(a){var o=a;do{var f=o.alternate;if(a=o.return,o.flags&32768){if(f=T0(f,o),f!==null){f.flags&=32767,zn=f;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Sr=6,zn=null;return}}else if(f=_0(f,o,Ma),f!==null){zn=f;return}if(o=o.sibling,o!==null){zn=o;return}zn=o=a}while(o!==null);Sr===0&&(Sr=5)}function Bs(a,o,f){var g=Ut,S=xi.transition;try{xi.transition=null,Ut=1,D0(a,o,f,g)}finally{xi.transition=S,Ut=g}return null}function D0(a,o,f,g){do Zu();while(Si!==null);if($t&6)throw Error(i(327));f=a.finishedWork;var S=a.finishedLanes;if(f===null)return null;if(a.finishedWork=null,a.finishedLanes=0,f===a.current)throw Error(i(177));a.callbackNode=null,a.callbackPriority=0;var T=f.lanes|f.childLanes;if(Tc(a,T),a===rr&&(zn=rr=null,Cr=0),!(f.subtreeFlags&2064)&&!(f.flags&2064)||Xu||(Xu=!0,Jg(Lt,function(){return Zu(),null})),T=(f.flags&15990)!==0,f.subtreeFlags&15990||T){T=xi.transition,xi.transition=null;var L=Ut;Ut=1;var W=$t;$t|=4,Xf.current=null,N0(a,f),zg(f,a),vl(_h),pu=!!Rh,_h=Rh=null,a.current=f,I0(f),eo(),$t=W,Ut=L,xi.transition=T}else a.current=f;if(Xu&&(Xu=!1,Si=a,qf=S),T=a.pendingLanes,T===0&&(Ci=null),Ec(f.stateNode),Er(a,kn()),o!==null)for(g=a.onRecoverableError,f=0;f<o.length;f++)S=o[f],g(S.value,{componentStack:S.stack,digest:S.digest});if(Zf)throw Zf=!1,a=Kh,Kh=null,a;return qf&1&&a.tag!==0&&Zu(),T=a.pendingLanes,T&1?a===Jf?vd++:(vd=0,Jf=a):vd=0,lo(),null}function Zu(){if(Si!==null){var a=Ic(qf),o=xi.transition,f=Ut;try{if(xi.transition=null,Ut=16>a?16:a,Si===null)var g=!1;else{if(a=Si,Si=null,qf=0,$t&6)throw Error(i(331));var S=$t;for($t|=4,rt=a.current;rt!==null;){var T=rt,L=T.child;if(rt.flags&16){var W=T.deletions;if(W!==null){for(var Q=0;Q<W.length;Q++){var he=W[Q];for(rt=he;rt!==null;){var Fe=rt;switch(Fe.tag){case 0:case 11:case 15:Vu(8,Fe,T)}var Be=Fe.child;if(Be!==null)Be.return=Fe,rt=Be;else for(;rt!==null;){Fe=rt;var Me=Fe.sibling,Qe=Fe.return;if(Bg(Fe),Fe===he){rt=null;break}if(Me!==null){Me.return=Qe,rt=Me;break}rt=Qe}}}var at=T.alternate;if(at!==null){var lt=at.child;if(lt!==null){at.child=null;do{var fr=lt.sibling;lt.sibling=null,lt=fr}while(lt!==null)}}rt=T}}if(T.subtreeFlags&2064&&L!==null)L.return=T,rt=L;else e:for(;rt!==null;){if(T=rt,T.flags&2048)switch(T.tag){case 0:case 11:case 15:Vu(9,T,T.return)}var oe=T.sibling;if(oe!==null){oe.return=T.return,rt=oe;break e}rt=T.return}}var ee=a.current;for(rt=ee;rt!==null;){L=rt;var ue=L.child;if(L.subtreeFlags&2064&&ue!==null)ue.return=L,rt=ue;else e:for(L=ee;rt!==null;){if(W=rt,W.flags&2048)try{switch(W.tag){case 0:case 11:case 15:Gf(9,W)}}catch(ct){ar(W,W.return,ct)}if(W===L){rt=null;break e}var Ue=W.sibling;if(Ue!==null){Ue.return=W.return,rt=Ue;break e}rt=W.return}}if($t=S,lo(),Sa&&typeof Sa.onPostCommitFiberRoot=="function")try{Sa.onPostCommitFiberRoot(gs,a)}catch{}g=!0}return g}finally{Ut=f,xi.transition=o}}return!1}function Yg(a,o,f){o=Ps(f,o),o=Dg(a,o,1),a=Ds(a,o,1),o=Dr(),a!==null&&(bs(a,1,o),Er(a,o))}function ar(a,o,f){if(a.tag===3)Yg(a,a,f);else for(;o!==null;){if(o.tag===3){Yg(o,a,f);break}else if(o.tag===1){var g=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(Ci===null||!Ci.has(g))){a=Ps(f,a),a=kg(o,a,1),o=Ds(o,a,1),a=Dr(),o!==null&&(bs(o,1,a),Er(o,a));break}}o=o.return}}function k0(a,o,f){var g=a.pingCache;g!==null&&g.delete(o),o=Dr(),a.pingedLanes|=a.suspendedLanes&f,rr===a&&(Cr&f)===f&&(Sr===4||Sr===3&&(Cr&130023424)===Cr&&500>kn()-Yf?Ll(a,0):Qh|=f),Er(a,o)}function Zg(a,o){o===0&&(a.mode&1?(o=uu,uu<<=1,!(uu&130023424)&&(uu=4194304)):o=1);var f=Dr();a=Go(a,o),a!==null&&(bs(a,o,f),Er(a,f))}function rv(a){var o=a.memoizedState,f=0;o!==null&&(f=o.retryLane),Zg(a,f)}function M0(a,o){var f=0;switch(a.tag){case 13:var g=a.stateNode,S=a.memoizedState;S!==null&&(f=S.retryLane);break;case 19:g=a.stateNode;break;default:throw Error(i(314))}g!==null&&g.delete(o),Zg(a,f)}var qg;qg=function(a,o,f){if(a!==null)if(a.memoizedProps!==o.pendingProps||jt.current)Da=!0;else{if(!(a.lanes&f)&&!(o.flags&128))return Da=!1,Xo(a,o,f);Da=!!(a.flags&131072)}else Da=!1,$n&&o.flags&1048576&&js(o,xl,o.index);switch(o.lanes=0,o.tag){case 2:var g=o.type;fd(a,o),a=o.pendingProps;var S=Ya(o,jr.current);sr(o,f),S=wl(null,o,g,a,S,f);var T=Ms();return o.flags|=1,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,mr(g)?(T=!0,bl(o)):T=!1,o.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Ph(o),S.updater=Sf,o.stateNode=S,S._reactInternals=o,Vh(o,g,a,f),o=Vf(null,o,g,!0,T,f)):(o.tag=0,$n&&T&&gf(o),cr(null,o,S,f),o=o.child),o;case 16:g=o.elementType;e:{switch(fd(a,o),a=o.pendingProps,S=g._init,g=S(g._payload),o.type=g,S=o.tag=L0(g),a=ja(g,a),S){case 0:o=Dt(null,o,g,a,f);break e;case 1:o=cd(null,o,g,a,f);break e;case 11:o=ku(null,o,g,a,f);break e;case 14:o=Fs(null,o,g,ja(g.type,a),f);break e}throw Error(i(306,g,""))}return o;case 0:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:ja(g,S),Dt(a,o,g,S,f);case 1:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:ja(g,S),cd(a,o,g,S,f);case 3:e:{if(R0(o),a===null)throw Error(i(387));g=o.pendingProps,T=o.memoizedState,S=T.element,Eg(a,o),Qc(o,g,null,f);var L=o.memoizedState;if(g=L.element,T.isDehydrated)if(T={element:g,isDehydrated:!1,cache:L.cache,pendingSuspenseBoundaries:L.pendingSuspenseBoundaries,transitions:L.transitions},o.updateQueue.baseState=T,o.memoizedState=T,o.flags&256){S=Ps(Error(i(423)),o),o=Pg(a,o,g,f,S);break e}else if(g!==S){S=Ps(Error(i(424)),o),o=Pg(a,o,g,f,S);break e}else for(qa=Xa(o.stateNode.containerInfo.firstChild),Za=o,$n=!0,mi=null,f=jg(o,null,g,f),o.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Eu(),g===S){o=dr(a,o,f);break e}cr(a,o,g,f)}o=o.child}return o;case 5:return Ef(o),a===null&&bf(o),g=o.type,S=o.pendingProps,T=a!==null?a.memoizedProps:null,L=S.children,yl(g,S)?L=null:T!==null&&yl(g,T)&&(o.flags|=32),jl(a,o),cr(a,o,L,f),o.child;case 6:return a===null&&bf(o),null;case 13:return Fg(a,o,f);case 4:return Bh(o,o.stateNode.containerInfo),g=o.pendingProps,a===null?o.child=Nu(o,null,g,f):cr(a,o,g,f),o.child;case 11:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:ja(g,S),ku(a,o,g,S,f);case 7:return cr(a,o,o.pendingProps,f),o.child;case 8:return cr(a,o,o.pendingProps.children,f),o.child;case 12:return cr(a,o,o.pendingProps.children,f),o.child;case 10:e:{if(g=o.type._context,S=o.pendingProps,T=o.memoizedProps,L=S.value,rn(wu,g._currentValue),g._currentValue=L,T!==null)if(zi(T.value,L)){if(T.children===S.children&&!jt.current){o=dr(a,o,f);break e}}else for(T=o.child,T!==null&&(T.return=o);T!==null;){var W=T.dependencies;if(W!==null){L=T.child;for(var Q=W.firstContext;Q!==null;){if(Q.context===g){if(T.tag===1){Q=Mn(-1,f&-f),Q.tag=2;var he=T.updateQueue;if(he!==null){he=he.shared;var Fe=he.pending;Fe===null?Q.next=Q:(Q.next=Fe.next,Fe.next=Q),he.pending=Q}}T.lanes|=f,Q=T.alternate,Q!==null&&(Q.lanes|=f),As(T.return,f,o),W.lanes|=f;break}Q=Q.next}}else if(T.tag===10)L=T.type===o.type?null:T.child;else if(T.tag===18){if(L=T.return,L===null)throw Error(i(341));L.lanes|=f,W=L.alternate,W!==null&&(W.lanes|=f),As(L,f,o),L=T.sibling}else L=T.child;if(L!==null)L.return=T;else for(L=T;L!==null;){if(L===o){L=null;break}if(T=L.sibling,T!==null){T.return=L.return,L=T;break}L=L.return}T=L}cr(a,o,S.children,f),o=o.child}return o;case 9:return S=o.type,g=o.pendingProps.children,sr(o,f),S=He(S),g=g(S),o.flags|=1,cr(a,o,g,f),o.child;case 14:return g=o.type,S=ja(g,o.pendingProps),S=ja(g.type,S),Fs(a,o,g,S,f);case 15:return Ff(a,o,o.type,o.pendingProps,f);case 17:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:ja(g,S),fd(a,o),o.tag=1,mr(g)?(a=!0,bl(o)):a=!1,sr(o,f),_g(o,g,S),Vh(o,g,S,f),Vf(null,o,g,!0,a,f);case 19:return Xh(a,o,f);case 22:return ka(a,o,f)}throw Error(i(156,o.tag))};function Jg(a,o){return On(a,o)}function Qg(a,o,f,g){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ei(a,o,f,g){return new Qg(a,o,f,g)}function av(a){return a=a.prototype,!(!a||!a.isReactComponent)}function L0(a){if(typeof a=="function")return av(a)?1:0;if(a!=null){if(a=a.$$typeof,a===ae)return 11;if(a===xe)return 14}return 2}function $s(a,o){var f=a.alternate;return f===null?(f=Ei(a.tag,o,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=o,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&14680064,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,o=a.dependencies,f.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f}function tp(a,o,f,g,S,T){var L=2;if(g=a,typeof a=="function")av(a)&&(L=1);else if(typeof a=="string")L=5;else e:switch(a){case X:return Pl(f.children,S,T,o);case Y:L=8,S|=8;break;case ce:return a=Ei(12,f,o,S|2),a.elementType=ce,a.lanes=T,a;case we:return a=Ei(13,f,o,S),a.elementType=we,a.lanes=T,a;case ge:return a=Ei(19,f,o,S),a.elementType=ge,a.lanes=T,a;case Le:return np(f,S,T,o);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ie:L=10;break e;case me:L=9;break e;case ae:L=11;break e;case xe:L=14;break e;case je:L=16,g=null;break e}throw Error(i(130,a==null?a:typeof a,""))}return o=Ei(L,f,o,S),o.elementType=a,o.type=g,o.lanes=T,o}function Pl(a,o,f,g){return a=Ei(7,a,g,o),a.lanes=f,a}function np(a,o,f,g){return a=Ei(22,a,g,o),a.elementType=Le,a.lanes=f,a.stateNode={isHidden:!1},a}function rp(a,o,f){return a=Ei(6,a,null,o),a.lanes=f,a}function yd(a,o,f){return o=Ei(4,a.children!==null?a.children:[],a.key,o),o.lanes=f,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function bd(a,o,f,g,S){this.tag=o,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dl(0),this.expirationTimes=dl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dl(0),this.identifierPrefix=g,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function iv(a,o,f,g,S,T,L,W,Q){return a=new bd(a,o,f,W,Q),o===1?(o=1,T===!0&&(o|=8)):o=0,T=Ei(3,null,null,o),a.current=T,T.stateNode=a,T.memoizedState={element:g,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ph(T),a}function Kg(a,o,f){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:g==null?null:""+g,children:a,containerInfo:o,implementation:f}}function ov(a){if(!a)return fi;a=a._reactInternals;e:{if(Ze(a)!==a||a.tag!==1)throw Error(i(170));var o=a;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(mr(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(i(171))}if(a.tag===1){var f=a.type;if(mr(f))return Ts(a,f,o)}return o}function sv(a,o,f,g,S,T,L,W,Q){return a=iv(f,g,!0,a,S,T,L,W,Q),a.context=ov(null),f=a.current,g=Dr(),S=Zo(f),T=Mn(g,S),T.callback=o??null,Ds(f,T,S),a.current.lanes=S,bs(a,S,g),Er(a,g),a}function ap(a,o,f,g){var S=o.current,T=Dr(),L=Zo(S);return f=ov(f),o.context===null?o.context=f:o.pendingContext=f,o=Mn(T,L),o.payload={element:a},g=g===void 0?null:g,g!==null&&(o.callback=g),a=Ds(S,o,L),a!==null&&(qn(a,S,L,T),Cf(a,S,L)),L}function xd(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function ey(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<o?f:o}}function lv(a,o){ey(a,o),(a=a.alternate)&&ey(a,o)}function P0(){return null}var uv=typeof reportError=="function"?reportError:function(a){console.error(a)};function ip(a){this._internalRoot=a}Cd.prototype.render=ip.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(i(409));ap(a,o,null,null)},Cd.prototype.unmount=ip.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;mo(function(){ap(null,a,null,null)}),o[Ui]=null}};function Cd(a){this._internalRoot=a}Cd.prototype.unstable_scheduleHydration=function(a){if(a){var o=Jt();a={blockedOn:null,target:a,priority:o};for(var f=0;f<Vn.length&&o!==0&&o<Vn[f].priority;f++);Vn.splice(f,0,a),f===0&&Bi(a)}};function zs(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function op(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function ty(){}function F0(a,o,f,g,S){if(S){if(typeof g=="function"){var T=g;g=function(){var he=xd(L);T.call(he)}}var L=sv(o,g,a,0,null,!1,!1,"",ty);return a._reactRootContainer=L,a[Ui]=L.current,io(a.nodeType===8?a.parentNode:a),mo(),L}for(;S=a.lastChild;)a.removeChild(S);if(typeof g=="function"){var W=g;g=function(){var he=xd(Q);W.call(he)}}var Q=iv(a,0,!1,null,null,!1,!1,"",ty);return a._reactRootContainer=Q,a[Ui]=Q.current,io(a.nodeType===8?a.parentNode:a),mo(function(){ap(o,Q,f,g)}),Q}function sp(a,o,f,g,S){var T=f._reactRootContainer;if(T){var L=T;if(typeof S=="function"){var W=S;S=function(){var Q=xd(L);W.call(Q)}}ap(o,L,a,S)}else L=F0(f,o,a,S,g);return xd(L)}cu=function(a){switch(a.tag){case 3:var o=a.stateNode;if(o.current.memoizedState.isDehydrated){var f=Oo(o.pendingLanes);f!==0&&(Nc(o,f|1),Er(o,kn()),!($t&6)&&(Wu=kn()+500,lo()))}break;case 13:mo(function(){var g=Go(a,1);if(g!==null){var S=Dr();qn(g,a,1,S)}}),lv(a,1)}},xs=function(a){if(a.tag===13){var o=Go(a,134217728);if(o!==null){var f=Dr();qn(o,a,134217728,f)}lv(a,134217728)}},jc=function(a){if(a.tag===13){var o=Zo(a),f=Go(a,o);if(f!==null){var g=Dr();qn(f,a,o,g)}lv(a,o)}},Jt=function(){return Ut},du=function(a,o){var f=Ut;try{return Ut=a,o()}finally{Ut=f}},hn=function(a,o,f){switch(o){case"input":if(Gt(a,f),o=f.name,f.type==="radio"&&o!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<f.length;o++){var g=f[o];if(g!==a&&g.form===a.form){var S=vf(g);if(!S)throw Error(i(90));qe(g),Gt(g,S)}}}break;case"textarea":Gn(a,f);break;case"select":o=f.value,o!=null&&Cn(a,!!f.multiple,o,!1)}},vs=nv,ol=mo;var V0={usingClientEntryPoint:!1,Events:[oo,Su,vf,Li,oi,nv]},Sd={findFiberByHostInstance:Uo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ny={bundleType:Sd.bundleType,version:Sd.version,rendererPackageName:Sd.rendererPackageName,rendererConfig:Sd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=vt(a),a===null?null:a.stateNode},findFiberByHostInstance:Sd.findFiberByHostInstance||P0,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 lp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lp.isDisabled&&lp.supportsFiber)try{gs=lp.inject(ny),Sa=lp}catch{}}return Ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V0,Ii.createPortal=function(a,o){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zs(o))throw Error(i(200));return Kg(a,o,null,f)},Ii.createRoot=function(a,o){if(!zs(a))throw Error(i(299));var f=!1,g="",S=uv;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onRecoverableError!==void 0&&(S=o.onRecoverableError)),o=iv(a,1,!1,null,null,f,!1,g,S),a[Ui]=o.current,io(a.nodeType===8?a.parentNode:a),new ip(o)},Ii.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(i(188)):(a=Object.keys(a).join(","),Error(i(268,a)));return a=vt(o),a=a===null?null:a.stateNode,a},Ii.flushSync=function(a){return mo(a)},Ii.hydrate=function(a,o,f){if(!op(o))throw Error(i(200));return sp(null,a,o,!0,f)},Ii.hydrateRoot=function(a,o,f){if(!zs(a))throw Error(i(405));var g=f!=null&&f.hydratedSources||null,S=!1,T="",L=uv;if(f!=null&&(f.unstable_strictMode===!0&&(S=!0),f.identifierPrefix!==void 0&&(T=f.identifierPrefix),f.onRecoverableError!==void 0&&(L=f.onRecoverableError)),o=sv(o,null,a,1,f??null,S,!1,T,L),a[Ui]=o.current,io(a),g)for(a=0;a<g.length;a++)f=g[a],S=f._getVersion,S=S(f._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[f,S]:o.mutableSourceEagerHydrationData.push(f,S);return new Cd(o)},Ii.render=function(a,o,f){if(!op(o))throw Error(i(200));return sp(null,a,o,!1,f)},Ii.unmountComponentAtNode=function(a){if(!op(a))throw Error(i(40));return a._reactRootContainer?(mo(function(){sp(null,null,a,!1,function(){a._reactRootContainer=null,a[Ui]=null})}),!0):!1},Ii.unstable_batchedUpdates=nv,Ii.unstable_renderSubtreeIntoContainer=function(a,o,f,g){if(!op(f))throw Error(i(200));if(a==null||a._reactInternals===void 0)throw Error(i(38));return sp(a,o,f,!1,g)},Ii.version="18.2.0-next-9e3b772b8-20220608",Ii}var ji={},oI;function P$(){if(oI)return ji;oI=1;var t={};/**
97
- * @license React
98
- * react-dom.development.js
99
- *
100
- * Copyright (c) Facebook, Inc. and its affiliates.
101
- *
102
- * This source code is licensed under the MIT license found in the
103
- * LICENSE file in the root directory of this source tree.
104
- */return t.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=nf(),i=xA(),l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=!1;function d(e){u=e}function m(e){if(!u){for(var n=arguments.length,s=new Array(n>1?n-1:0),c=1;c<n;c++)s[c-1]=arguments[c];y("warn",e,s)}}function h(e){if(!u){for(var n=arguments.length,s=new Array(n>1?n-1:0),c=1;c<n;c++)s[c-1]=arguments[c];y("error",e,s)}}function y(e,n,s){{var c=l.ReactDebugCurrentFrame,p=c.getStackAddendum();p!==""&&(n+="%s",s=s.concat([p]));var b=s.map(function(E){return String(E)});b.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,b)}}var x=0,C=1,w=2,R=3,A=4,N=5,_=6,I=7,M=8,P=9,V=10,U=11,F=12,z=13,X=14,Y=15,ce=16,ie=17,me=18,ae=19,we=21,ge=22,xe=23,je=24,Le=25,re=!0,De=!1,G=!1,Z=!1,ne=!1,be=!0,Ee=!1,_e=!1,Ne=!0,ke=!0,Oe=!0,ve=new Set,Ie={},Xe={};function qe(e,n){Ae(e,n),Ae(e+"Capture",n)}function Ae(e,n){Ie[e]&&h("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ie[e]=n;{var s=e.toLowerCase();Xe[s]=e,e==="onDoubleClick"&&(Xe.ondblclick=e)}for(var c=0;c<n.length;c++)ve.add(n[c])}var xt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ht=Object.prototype.hasOwnProperty;function Ht(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,s=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Gt(e){try{return ln(e),!1}catch{return!0}}function ln(e){return""+e}function jn(e,n){if(Gt(e))return h("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",n,Ht(e)),ln(e)}function Vt(e){if(Gt(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ht(e)),ln(e)}function Cn(e,n){if(Gt(e))return h("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",n,Ht(e)),ln(e)}function Qn(e,n){if(Gt(e))return h("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",n,Ht(e)),ln(e)}function Tr(e){if(Gt(e))return h("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Ht(e)),ln(e)}function Gn(e){if(Gt(e))return h("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Ht(e)),ln(e)}var Nr=0,Et=1,Fn=2,un=3,za=4,Ua=5,Ha=6,Ye=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",pt=Ye+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Mt=new RegExp("^["+Ye+"]["+pt+"]*$"),cn={},nn={};function or(e){return ht.call(nn,e)?!0:ht.call(cn,e)?!1:Mt.test(e)?(nn[e]=!0,!0):(cn[e]=!0,h("Invalid attribute name: `%s`",e),!1)}function Wn(e,n,s){return n!==null?n.type===Nr:s?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Yr(e,n,s,c){if(s!==null&&s.type===Nr)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":{if(c)return!1;if(s!==null)return!s.acceptsBooleans;var p=e.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function hn(e,n,s,c){if(n===null||typeof n>"u"||Yr(e,n,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case un:return!n;case za:return n===!1;case Ua:return isNaN(n);case Ha:return isNaN(n)||n<1}return!1}function Ir(e){return An.hasOwnProperty(e)?An[e]:null}function dn(e,n,s,c,p,b,E){this.acceptsBooleans=n===Fn||n===un||n===za,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=e,this.type=n,this.sanitizeURL=b,this.removeEmptyString=E}var An={},Li=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Li.forEach(function(e){An[e]=new dn(e,Nr,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0],s=e[1];An[n]=new dn(n,Et,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){An[e]=new dn(e,Fn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){An[e]=new dn(e,Fn,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){An[e]=new dn(e,un,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){An[e]=new dn(e,un,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){An[e]=new dn(e,za,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){An[e]=new dn(e,Ha,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){An[e]=new dn(e,Ua,!1,e.toLowerCase(),null,!1,!1)});var oi=/[\-\:]([a-z])/g,vs=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var n=e.replace(oi,vs);An[n]=new dn(n,Et,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var n=e.replace(oi,vs);An[n]=new dn(n,Et,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(oi,vs);An[n]=new dn(n,Et,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){An[e]=new dn(e,Et,!1,e.toLowerCase(),null,!1,!1)});var ol="xlinkHref";An[ol]=new dn("xlinkHref",Et,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){An[e]=new dn(e,Et,!1,e.toLowerCase(),null,!0,!0)});var sl=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ms=!1;function Pi(e){!ms&&sl.test(e)&&(ms=!0,h("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Fi(e,n,s,c){if(c.mustUseProperty){var p=c.propertyName;return e[p]}else{jn(s,n),c.sanitizeURL&&Pi(""+s);var b=c.attributeName,E=null;if(c.type===za){if(e.hasAttribute(b)){var j=e.getAttribute(b);return j===""?!0:hn(n,s,c,!1)?j:j===""+s?s:j}}else if(e.hasAttribute(b)){if(hn(n,s,c,!1))return e.getAttribute(b);if(c.type===un)return s;E=e.getAttribute(b)}return hn(n,s,c,!1)?E===null?s:E:E===""+s?s:E}}function si(e,n,s,c){{if(!or(n))return;if(!e.hasAttribute(n))return s===void 0?void 0:null;var p=e.getAttribute(n);return jn(s,n),p===""+s?s:p}}function Io(e,n,s,c){var p=Ir(n);if(!Wn(n,p,c)){if(hn(n,s,p,c)&&(s=null),c||p===null){if(or(n)){var b=n;s===null?e.removeAttribute(b):(jn(s,n),e.setAttribute(b,""+s))}return}var E=p.mustUseProperty;if(E){var j=p.propertyName;if(s===null){var O=p.type;e[j]=O===un?!1:""}else e[j]=s;return}var B=p.attributeName,H=p.attributeNamespace;if(s===null)e.removeAttribute(B);else{var te=p.type,K;te===un||te===za&&s===!0?K="":(jn(s,B),K=""+s,p.sanitizeURL&&Pi(K.toString())),H?e.setAttributeNS(H,B,K):e.setAttribute(B,K)}}}var ba=Symbol.for("react.element"),xa=Symbol.for("react.portal"),Ga=Symbol.for("react.fragment"),jo=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),Pe=Symbol.for("react.provider"),Ge=Symbol.for("react.context"),Ze=Symbol.for("react.forward_ref"),Bt=Symbol.for("react.suspense"),Wt=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),vt=Symbol.for("react.lazy"),vr=Symbol.for("react.scope"),On=Symbol.for("react.debug_trace_mode"),Dn=Symbol.for("react.offscreen"),Zr=Symbol.for("react.legacy_hidden"),eo=Symbol.for("react.cache"),kn=Symbol.for("react.tracing_marker"),Ca=Symbol.iterator,Sc="@@iterator";function to(e){if(e===null||typeof e!="object")return null;var n=Ca&&e[Ca]||e[Sc];return typeof n=="function"?n:null}var Lt=Object.assign,ll=0,Ao,gs,Sa,Ec,ra,wc,Rc;function _c(){}_c.__reactDisabledLog=!0;function ul(){{if(ll===0){Ao=console.log,gs=console.info,Sa=console.warn,Ec=console.error,ra=console.group,wc=console.groupCollapsed,Rc=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_c,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ll++}}function uu(){{if(ll--,ll===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Lt({},e,{value:Ao}),info:Lt({},e,{value:gs}),warn:Lt({},e,{value:Sa}),error:Lt({},e,{value:Ec}),group:Lt({},e,{value:ra}),groupCollapsed:Lt({},e,{value:wc}),groupEnd:Lt({},e,{value:Rc})})}ll<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oo=l.ReactCurrentDispatcher,no;function li(e,n,s){{if(no===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);no=c&&c[1]||""}return`
105
- `+no+e}}var ys=!1,ro;{var cl=typeof WeakMap=="function"?WeakMap:Map;ro=new cl}function dl(e,n){if(!e||ys)return"";{var s=ro.get(e);if(s!==void 0)return s}var c;ys=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=Oo.current,Oo.current=null,ul();try{if(n){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(pe){c=pe}Reflect.construct(e,[],E)}else{try{E.call()}catch(pe){c=pe}e.call(E.prototype)}}else{try{throw Error()}catch(pe){c=pe}e()}}catch(pe){if(pe&&c&&typeof pe.stack=="string"){for(var j=pe.stack.split(`
106
- `),O=c.stack.split(`
107
- `),B=j.length-1,H=O.length-1;B>=1&&H>=0&&j[B]!==O[H];)H--;for(;B>=1&&H>=0;B--,H--)if(j[B]!==O[H]){if(B!==1||H!==1)do if(B--,H--,H<0||j[B]!==O[H]){var te=`
108
- `+j[B].replace(" at new "," at ");return e.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",e.displayName)),typeof e=="function"&&ro.set(e,te),te}while(B>=1&&H>=0);break}}}finally{ys=!1,Oo.current=b,uu(),Error.prepareStackTrace=p}var K=e?e.displayName||e.name:"",fe=K?li(K):"";return typeof e=="function"&&ro.set(e,fe),fe}function bs(e,n,s){return dl(e,!0)}function Tc(e,n,s){return dl(e,!1)}function Nc(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function Ut(e,n,s){if(e==null)return"";if(typeof e=="function")return dl(e,Nc(e));if(typeof e=="string")return li(e);switch(e){case Bt:return li("Suspense");case Wt:return li("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case Ze:return Tc(e.render);case kt:return Ut(e.type,n,s);case vt:{var c=e,p=c._payload,b=c._init;try{return Ut(b(p),n,s)}catch{}}}return""}function Ic(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case N:return li(e.type);case ce:return li("Lazy");case z:return li("Suspense");case ae:return li("SuspenseList");case x:case w:case Y:return Tc(e.type);case U:return Tc(e.type.render);case C:return bs(e.type);default:return""}}function cu(e){try{var n="",s=e;do n+=Ic(s),s=s.return;while(s);return n}catch(c){return`
109
- Error generating stack: `+c.message+`
110
- `+c.stack}}function xs(e,n,s){var c=e.displayName;if(c)return c;var p=n.displayName||n.name||"";return p!==""?s+"("+p+")":s}function jc(e){return e.displayName||"Context"}function Jt(e){if(e==null)return null;if(typeof e.tag=="number"&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ga:return"Fragment";case xa:return"Portal";case J:return"Profiler";case jo:return"StrictMode";case Bt:return"Suspense";case Wt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ge:var n=e;return jc(n)+".Consumer";case Pe:var s=e;return jc(s._context)+".Provider";case Ze:return xs(e,e.render,"ForwardRef");case kt:var c=e.displayName||null;return c!==null?c:Jt(e.type)||"Memo";case vt:{var p=e,b=p._payload,E=p._init;try{return Jt(E(b))}catch{return null}}}return null}function du(e,n,s){var c=n.displayName||n.name||"";return e.displayName||(c!==""?s+"("+c+")":s)}function fl(e){return e.displayName||"Context"}function It(e){var n=e.tag,s=e.type;switch(n){case je:return"Cache";case P:var c=s;return fl(c)+".Consumer";case V:var p=s;return fl(p._context)+".Provider";case me:return"DehydratedFragment";case U:return du(s,s.render,"ForwardRef");case I:return"Fragment";case N:return s;case A:return"Portal";case R:return"Root";case _:return"Text";case ce:return Jt(s);case M:return s===jo?"StrictMode":"Mode";case ge:return"Offscreen";case F:return"Profiler";case we:return"Scope";case z:return"Suspense";case ae:return"SuspenseList";case Le:return"TracingMarker";case C:case x:case ie:case w:case X:case Y:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;break}return null}var Vi=l.ReactDebugCurrentFrame,Xn=null,Ea=!1;function ui(){{if(Xn===null)return null;var e=Xn._debugOwner;if(e!==null&&typeof e<"u")return It(e)}return null}function Cs(){return Xn===null?"":cu(Xn)}function Vn(){Vi.getCurrentStack=null,Xn=null,Ea=!1}function Yn(e){Vi.getCurrentStack=e===null?null:Cs,Xn=e,Ea=!1}function Ac(){return Xn}function Lr(e){Ea=e}function wa(e){return""+e}function Bi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Gn(e),e;default:return""}}var fu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function pl(e,n){fu[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||h("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),n.onChange||n.readOnly||n.disabled||n.checked==null||h("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function hl(e){var n=e.type,s=e.nodeName;return s&&s.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ss(e){return e._valueTracker}function ci(e){e._valueTracker=null}function Do(e){var n="";return e&&(hl(e)?n=e.checked?"true":"false":n=e.value),n}function pu(e){var n=hl(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);Gn(e[n]);var c=""+e[n];if(!(e.hasOwnProperty(n)||typeof s>"u"||typeof s.get!="function"||typeof s.set!="function")){var p=s.get,b=s.set;Object.defineProperty(e,n,{configurable:!0,get:function(){return p.call(this)},set:function(j){Gn(j),c=""+j,b.call(this,j)}}),Object.defineProperty(e,n,{enumerable:s.enumerable});var E={getValue:function(){return c},setValue:function(j){Gn(j),c=""+j},stopTracking:function(){ci(e),delete e[n]}};return E}}function ko(e){Ss(e)||(e._valueTracker=pu(e))}function hu(e){if(!e)return!1;var n=Ss(e);if(!n)return!0;var s=n.getValue(),c=Do(e);return c!==s?(n.setValue(c),!0):!1}function ao(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Mo=!1,vu=!1,Oc=!1,$i=!1;function mu(e){var n=e.type==="checkbox"||e.type==="radio";return n?e.checked!=null:e.value!=null}function D(e,n){var s=e,c=n.checked,p=Lt({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??s._wrapperState.initialChecked});return p}function q(e,n){pl("input",n),n.checked!==void 0&&n.defaultChecked!==void 0&&!vu&&(h("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ui()||"A component",n.type),vu=!0),n.value!==void 0&&n.defaultValue!==void 0&&!Mo&&(h("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ui()||"A component",n.type),Mo=!0);var s=e,c=n.defaultValue==null?"":n.defaultValue;s._wrapperState={initialChecked:n.checked!=null?n.checked:n.defaultChecked,initialValue:Bi(n.value!=null?n.value:c),controlled:mu(n)}}function de(e,n){var s=e,c=n.checked;c!=null&&Io(s,"checked",c,!1)}function ye(e,n){var s=e;{var c=mu(n);!s._wrapperState.controlled&&c&&!$i&&(h("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),$i=!0),s._wrapperState.controlled&&!c&&!Oc&&(h("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Oc=!0)}de(e,n);var p=Bi(n.value),b=n.type;if(p!=null)b==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=wa(p)):s.value!==wa(p)&&(s.value=wa(p));else if(b==="submit"||b==="reset"){s.removeAttribute("value");return}n.hasOwnProperty("value")?_t(s,n.type,p):n.hasOwnProperty("defaultValue")&&_t(s,n.type,Bi(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(s.defaultChecked=!!n.defaultChecked)}function ze(e,n,s){var c=e;if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var p=n.type,b=p==="submit"||p==="reset";if(b&&(n.value===void 0||n.value===null))return;var E=wa(c._wrapperState.initialValue);s||E!==c.value&&(c.value=E),c.defaultValue=E}var j=c.name;j!==""&&(c.name=""),c.defaultChecked=!c.defaultChecked,c.defaultChecked=!!c._wrapperState.initialChecked,j!==""&&(c.name=j)}function st(e,n){var s=e;ye(s,n),et(s,n)}function et(e,n){var s=n.name;if(n.type==="radio"&&s!=null){for(var c=e;c.parentNode;)c=c.parentNode;jn(s,"name");for(var p=c.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),b=0;b<p.length;b++){var E=p[b];if(!(E===e||E.form!==e.form)){var j=by(E);if(!j)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");hu(E),ye(E,j)}}}}function _t(e,n,s){(n!=="number"||ao(e.ownerDocument)!==e)&&(s==null?e.defaultValue=wa(e._wrapperState.initialValue):e.defaultValue!==wa(s)&&(e.defaultValue=wa(s)))}var Pt=!1,fn=!1,vn=!1;function mn(e,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?r.Children.forEach(n.children,function(s){s!=null&&(typeof s=="string"||typeof s=="number"||fn||(fn=!0,h("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):n.dangerouslySetInnerHTML!=null&&(vn||(vn=!0,h("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),n.selected!=null&&!Pt&&(h("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pt=!0)}function gn(e,n){n.value!=null&&e.setAttribute("value",wa(Bi(n.value)))}var Bn=Array.isArray;function Qt(e){return Bn(e)}var Es;Es=!1;function gu(){var e=ui();return e?`
111
-
112
- Check the render method of \``+e+"`.":""}var Dc=["value","defaultValue"];function kc(e){{pl("select",e);for(var n=0;n<Dc.length;n++){var s=Dc[n];if(e[s]!=null){var c=Qt(e[s]);e.multiple&&!c?h("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,gu()):!e.multiple&&c&&h("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,gu())}}}}function Lo(e,n,s,c){var p=e.options;if(n){for(var b=s,E={},j=0;j<b.length;j++)E["$"+b[j]]=!0;for(var O=0;O<p.length;O++){var B=E.hasOwnProperty("$"+p[O].value);p[O].selected!==B&&(p[O].selected=B),B&&c&&(p[O].defaultSelected=!0)}}else{for(var H=wa(Bi(s)),te=null,K=0;K<p.length;K++){if(p[K].value===H){p[K].selected=!0,c&&(p[K].defaultSelected=!0);return}te===null&&!p[K].disabled&&(te=p[K])}te!==null&&(te.selected=!0)}}function Mc(e,n){return Lt({},n,{value:void 0})}function Lc(e,n){var s=e;kc(n),s._wrapperState={wasMultiple:!!n.multiple},n.value!==void 0&&n.defaultValue!==void 0&&!Es&&(h("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Es=!0)}function ch(e,n){var s=e;s.multiple=!!n.multiple;var c=n.value;c!=null?Lo(s,!!n.multiple,c,!1):n.defaultValue!=null&&Lo(s,!!n.multiple,n.defaultValue,!0)}function o0(e,n){var s=e,c=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!n.multiple;var p=n.value;p!=null?Lo(s,!!n.multiple,p,!1):c!==!!n.multiple&&(n.defaultValue!=null?Lo(s,!!n.multiple,n.defaultValue,!0):Lo(s,!!n.multiple,n.multiple?[]:"",!1))}function Hm(e,n){var s=e,c=n.value;c!=null&&Lo(s,!!n.multiple,c,!1)}var Gm=!1;function dh(e,n){var s=e;if(n.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var c=Lt({},n,{value:void 0,defaultValue:void 0,children:wa(s._wrapperState.initialValue)});return c}function Wm(e,n){var s=e;pl("textarea",n),n.value!==void 0&&n.defaultValue!==void 0&&!Gm&&(h("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",ui()||"A component"),Gm=!0);var c=n.value;if(c==null){var p=n.children,b=n.defaultValue;if(p!=null){h("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(b!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Qt(p)){if(p.length>1)throw new Error("<textarea> can only have at most one child.");p=p[0]}b=p}}b==null&&(b=""),c=b}s._wrapperState={initialValue:Bi(c)}}function Xm(e,n){var s=e,c=Bi(n.value),p=Bi(n.defaultValue);if(c!=null){var b=wa(c);b!==s.value&&(s.value=b),n.defaultValue==null&&s.defaultValue!==b&&(s.defaultValue=b)}p!=null&&(s.defaultValue=wa(p))}function af(e,n){var s=e,c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function s0(e,n){Xm(e,n)}var Po="http://www.w3.org/1999/xhtml",l0="http://www.w3.org/1998/Math/MathML",of="http://www.w3.org/2000/svg";function fh(e){switch(e){case"svg":return of;case"math":return l0;default:return Po}}function ph(e,n){return e==null||e===Po?fh(n):e===of&&n==="foreignObject"?Po:e}var u0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,s,c,p){MSApp.execUnsafeLocalFunction(function(){return e(n,s,c,p)})}:e},sf,Ym=u0(function(e,n){if(e.namespaceURI===of&&!("innerHTML"in e)){sf=sf||document.createElement("div"),sf.innerHTML="<svg>"+n.valueOf().toString()+"</svg>";for(var s=sf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;s.firstChild;)e.appendChild(s.firstChild);return}e.innerHTML=n}),Ra=1,Fo=3,Kn=8,Wa=9,hh=11,Pc=function(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===Fo){s.nodeValue=n;return}}e.textContent=n},Zm={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},yu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function qm(e,n){return e+n.charAt(0).toUpperCase()+n.substring(1)}var Jm=["Webkit","ms","Moz","O"];Object.keys(yu).forEach(function(e){Jm.forEach(function(n){yu[qm(n,e)]=yu[e]})});function ws(e,n,s){var c=n==null||typeof n=="boolean"||n==="";return c?"":!s&&typeof n=="number"&&n!==0&&!(yu.hasOwnProperty(e)&&yu[e])?n+"px":(Qn(n,e),(""+n).trim())}var c0=/([A-Z])/g,d0=/^ms-/;function f0(e){return e.replace(c0,"-$1").toLowerCase().replace(d0,"-ms-")}var vh=function(){};{var Qm=/^(?:webkit|moz|o)[A-Z]/,Fc=/^-ms-/,Vc=/-(.)/g,Km=/;\s*$/,Vo={},mh={},gh=!1,lf=!1,yh=function(e){return e.replace(Vc,function(n,s){return s.toUpperCase()})},eg=function(e){Vo.hasOwnProperty(e)&&Vo[e]||(Vo[e]=!0,h("Unsupported style property %s. Did you mean %s?",e,yh(e.replace(Fc,"ms-"))))},tg=function(e){Vo.hasOwnProperty(e)&&Vo[e]||(Vo[e]=!0,h("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},ng=function(e,n){mh.hasOwnProperty(n)&&mh[n]||(mh[n]=!0,h(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,n.replace(Km,"")))},p0=function(e,n){gh||(gh=!0,h("`NaN` is an invalid value for the `%s` css style property.",e))},h0=function(e,n){lf||(lf=!0,h("`Infinity` is an invalid value for the `%s` css style property.",e))};vh=function(e,n){e.indexOf("-")>-1?eg(e):Qm.test(e)?tg(e):Km.test(n)&&ng(e,n),typeof n=="number"&&(isNaN(n)?p0(e,n):isFinite(n)||h0(e,n))}}var v0=vh;function m0(e){{var n="",s="";for(var c in e)if(e.hasOwnProperty(c)){var p=e[c];if(p!=null){var b=c.indexOf("--")===0;n+=s+(b?c:f0(c))+":",n+=ws(c,p,b),s=";"}}return n||null}}function rg(e,n){var s=e.style;for(var c in n)if(n.hasOwnProperty(c)){var p=c.indexOf("--")===0;p||v0(c,n[c]);var b=ws(c,n[c],p);c==="float"&&(c="cssFloat"),p?s.setProperty(c,b):s[c]=b}}function zi(e){return e==null||typeof e=="boolean"||e===""}function bu(e){var n={};for(var s in e)for(var c=Zm[s]||[s],p=0;p<c.length;p++)n[c[p]]=s;return n}function ag(e,n){{if(!n)return;var s=bu(e),c=bu(n),p={};for(var b in s){var E=s[b],j=c[b];if(j&&E!==j){var O=E+","+j;if(p[O])continue;p[O]=!0,h("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",zi(e[E])?"Removing":"Updating",E,j)}}}}var ig={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},og=Lt({menuitem:!0},ig),sg="__html";function Bc(e,n){if(n){if(og[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof n.dangerouslySetInnerHTML!="object"||!(sg in n.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!n.suppressContentEditableWarning&&n.contentEditable&&n.children!=null&&h("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),n.style!=null&&typeof n.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function vl(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){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 uf={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},ml={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Rs={},$c=new RegExp("^(aria)-["+pt+"]*$"),bh=new RegExp("^(aria)[A-Z]["+pt+"]*$");function lg(e,n){{if(ht.call(Rs,n)&&Rs[n])return!0;if(bh.test(n)){var s="aria-"+n.slice(4).toLowerCase(),c=ml.hasOwnProperty(s)?s:null;if(c==null)return h("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),Rs[n]=!0,!0;if(n!==c)return h("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,c),Rs[n]=!0,!0}if($c.test(n)){var p=n.toLowerCase(),b=ml.hasOwnProperty(p)?p:null;if(b==null)return Rs[n]=!0,!1;if(n!==b)return h("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,b),Rs[n]=!0,!0}}return!0}function cf(e,n){{var s=[];for(var c in n){var p=lg(e,c);p||s.push(c)}var b=s.map(function(E){return"`"+E+"`"}).join(", ");s.length===1?h("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,e):s.length>1&&h("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,e)}}function xu(e,n){vl(e,n)||cf(e,n)}var df=!1;function ug(e,n){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;n!=null&&n.value===null&&!df&&(df=!0,e==="select"&&n.multiple?h("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):h("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var zc=function(){};{var qr={},xh=/^on./,cg=/^on[^A-Z]/,dg=new RegExp("^(aria)-["+pt+"]*$"),fg=new RegExp("^(aria)[A-Z]["+pt+"]*$");zc=function(e,n,s,c){if(ht.call(qr,n)&&qr[n])return!0;var p=n.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return h("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),qr[n]=!0,!0;if(c!=null){var b=c.registrationNameDependencies,E=c.possibleRegistrationNames;if(b.hasOwnProperty(n))return!0;var j=E.hasOwnProperty(p)?E[p]:null;if(j!=null)return h("Invalid event handler property `%s`. Did you mean `%s`?",n,j),qr[n]=!0,!0;if(xh.test(n))return h("Unknown event handler property `%s`. It will be ignored.",n),qr[n]=!0,!0}else if(xh.test(n))return cg.test(n)&&h("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),qr[n]=!0,!0;if(dg.test(n)||fg.test(n))return!0;if(p==="innerhtml")return h("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),qr[n]=!0,!0;if(p==="aria")return h("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),qr[n]=!0,!0;if(p==="is"&&s!==null&&s!==void 0&&typeof s!="string")return h("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),qr[n]=!0,!0;if(typeof s=="number"&&isNaN(s))return h("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),qr[n]=!0,!0;var O=Ir(n),B=O!==null&&O.type===Nr;if(uf.hasOwnProperty(p)){var H=uf[p];if(H!==n)return h("Invalid DOM property `%s`. Did you mean `%s`?",n,H),qr[n]=!0,!0}else if(!B&&n!==p)return h("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",n,p),qr[n]=!0,!0;return typeof s=="boolean"&&Yr(n,s,O,!1)?(s?h('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,n,n,s,n):h('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,n,n,s,n,n,n),qr[n]=!0,!0):B?!0:Yr(n,s,O,!1)?(qr[n]=!0,!1):((s==="false"||s==="true")&&O!==null&&O.type===un&&(h("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,n,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',n,s),qr[n]=!0),!0)}}var pg=function(e,n,s){{var c=[];for(var p in n){var b=zc(e,p,n[p],s);b||c.push(p)}var E=c.map(function(j){return"`"+j+"`"}).join(", ");c.length===1?h("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",E,e):c.length>1&&h("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",E,e)}};function _s(e,n,s){vl(e,n)||pg(e,n,s)}var ff=1,Uc=2,Hc=4,g0=ff|Uc|Hc,Bo=null;function y0(e){Bo!==null&&h("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Bo=e}function hg(){Bo===null&&h("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Bo=null}function vg(e){return e===Bo}function Nn(e){var n=e.target||e.srcElement||window;return n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===Fo?n.parentNode:n}var Gc=null,$o=null,io=null;function Ch(e){var n=Qu(e);if(n){if(typeof Gc!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var s=n.stateNode;if(s){var c=by(s);Gc(n.stateNode,n.type,c)}}}function Sh(e){Gc=e}function Cu(e){$o?io?io.push(e):io=[e]:$o=e}function pf(){return $o!==null||io!==null}function gl(){if($o){var e=$o,n=io;if($o=null,io=null,Ch(e),n)for(var s=0;s<n.length;s++)Ch(n[s])}}var Eh=function(e,n){return e(n)},mg=function(){},wh=!1;function gg(){var e=pf();e&&(mg(),gl())}function Wc(e,n,s){if(wh)return e(n,s);wh=!0;try{return Eh(e,n,s)}finally{wh=!1,gg()}}function hf(e,n,s){Eh=e,mg=s}function Rh(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function _h(e,n,s){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(s.disabled&&Rh(n));default:return!1}}function yl(e,n){var s=e.stateNode;if(s===null)return null;var c=by(s);if(c===null)return null;var p=c[n];if(_h(n,e.type,c))return null;if(p&&typeof p!="function")throw new Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}var Xc=!1;if(xt)try{var Yc={};Object.defineProperty(Yc,"passive",{get:function(){Xc=!0}}),window.addEventListener("test",Yc,Yc),window.removeEventListener("test",Yc,Yc)}catch{Xc=!1}function Th(e,n,s,c,p,b,E,j,O){var B=Array.prototype.slice.call(arguments,3);try{n.apply(s,B)}catch(H){this.onError(H)}}var yg=Th;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Nh=document.createElement("react");yg=function(n,s,c,p,b,E,j,O,B){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var H=document.createEvent("Event"),te=!1,K=!0,fe=window.event,pe=Object.getOwnPropertyDescriptor(window,"event");function Ce(){Nh.removeEventListener(Se,yt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=fe)}var tt=Array.prototype.slice.call(arguments,3);function yt(){te=!0,Ce(),s.apply(c,tt),K=!1}var ft,Yt=!1,zt=!1;function se(le){if(ft=le.error,Yt=!0,ft===null&&le.colno===0&&le.lineno===0&&(zt=!0),le.defaultPrevented&&ft!=null&&typeof ft=="object")try{ft._suppressLogging=!0}catch{}}var Se="react-"+(n||"invokeguardedcallback");if(window.addEventListener("error",se),Nh.addEventListener(Se,yt,!1),H.initEvent(Se,!1,!1),Nh.dispatchEvent(H),pe&&Object.defineProperty(window,"event",pe),te&&K&&(Yt?zt&&(ft=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):ft=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(ft)),window.removeEventListener("error",se),!te)return Ce(),Th.apply(this,arguments)}}var Ih=yg,Xa=!1,Zc=null,zo=!1,di=null,qc={onError:function(e){Xa=!0,Zc=e}};function Ui(e,n,s,c,p,b,E,j,O){Xa=!1,Zc=null,Ih.apply(qc,arguments)}function jh(e,n,s,c,p,b,E,j,O){if(Ui.apply(this,arguments),Xa){var B=Uo();zo||(zo=!0,di=B)}}function b0(){if(zo){var e=di;throw zo=!1,di=null,e}}function x0(){return Xa}function Uo(){if(Xa){var e=Zc;return Xa=!1,Zc=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function oo(e){return e._reactInternals}function Su(e){return e._reactInternals!==void 0}function vf(e,n){e._reactInternals=n}var mt=0,Hi=1,In=2,ut=4,rn=16,fi=32,jr=64,jt=128,aa=256,Ya=512,mr=1024,_a=2048,so=4096,Ts=8192,bl=16384,bg=_a|ut|jr|Ya|mr|bl,Ho=32767,Ns=32768,Pr=65536,mf=131072,xg=1048576,lo=2097152,pi=4194304,Is=8388608,hi=16777216,xl=33554432,Ta=ut|mr|0,Na=In|ut|rn|fi|Ya|so|Ts,Gi=ut|jr|Ya|Ts,Ia=_a|rn,Fr=pi|Is|lo,Cl=l.ReactCurrentOwner;function js(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{var c=n;do n=c,(n.flags&(In|so))!==mt&&(s=n.return),c=n.return;while(c)}return n.tag===R?s:null}function gf(e){if(e.tag===z){var n=e.memoizedState;if(n===null){var s=e.alternate;s!==null&&(n=s.memoizedState)}if(n!==null)return n.dehydrated}return null}function yf(e){return e.tag===R?e.stateNode.containerInfo:null}function Za(e){return js(e)===e}function qa(e){{var n=Cl.current;if(n!==null&&n.tag===C){var s=n,c=s.stateNode;c._warnedAboutRefsInRender||h("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",It(s)||"A component"),c._warnedAboutRefsInRender=!0}}var p=oo(e);return p?js(p)===p:!1}function $n(e){if(js(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function mi(e){var n=e.alternate;if(!n){var s=js(e);if(s===null)throw new Error("Unable to find node on an unmounted component.");return s!==e?null:e}for(var c=e,p=n;;){var b=c.return;if(b===null)break;var E=b.alternate;if(E===null){var j=b.return;if(j!==null){c=p=j;continue}break}if(b.child===E.child){for(var O=b.child;O;){if(O===c)return $n(b),e;if(O===p)return $n(b),n;O=O.sibling}throw new Error("Unable to find node on an unmounted component.")}if(c.return!==p.return)c=b,p=E;else{for(var B=!1,H=b.child;H;){if(H===c){B=!0,c=b,p=E;break}if(H===p){B=!0,p=b,c=E;break}H=H.sibling}if(!B){for(H=E.child;H;){if(H===c){B=!0,c=E,p=b;break}if(H===p){B=!0,p=E,c=b;break}H=H.sibling}if(!B)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(c.alternate!==p)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(c.tag!==R)throw new Error("Unable to find node on an unmounted component.");return c.stateNode.current===c?e:n}function Ah(e){var n=mi(e);return n!==null?Oh(n):null}function Oh(e){if(e.tag===N||e.tag===_)return e;for(var n=e.child;n!==null;){var s=Oh(n);if(s!==null)return s;n=n.sibling}return null}function Dh(e){var n=mi(e);return n!==null?bf(n):null}function bf(e){if(e.tag===N||e.tag===_)return e;for(var n=e.child;n!==null;){if(n.tag!==A){var s=bf(n);if(s!==null)return s}n=n.sibling}return null}var kh=i.unstable_scheduleCallback,xf=i.unstable_cancelCallback,Cg=i.unstable_shouldYield,Eu=i.unstable_requestPaint,gr=i.unstable_now,C0=i.unstable_getCurrentPriorityLevel,ja=i.unstable_ImmediatePriority,wu=i.unstable_UserBlockingPriority,uo=i.unstable_NormalPriority,Ru=i.unstable_LowPriority,Jc=i.unstable_IdlePriority,Mh=i.unstable_yieldValue,Lh=i.unstable_setDisableYieldValue,As=null,sr=null,He=null,Jr=!1,Ja=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Sg(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return h("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{Ne&&(e=Lt({},e,{getLaneLabelMap:Cf,injectProfilingHooks:Ds})),As=n.inject(e),sr=n}catch(s){h("React instrumentation encountered an error: %s.",s)}return!!n.checkDCE}function Go(e,n){if(sr&&typeof sr.onScheduleFiberRoot=="function")try{sr.onScheduleFiberRoot(As,e,n)}catch(s){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",s))}}function Os(e,n){if(sr&&typeof sr.onCommitFiberRoot=="function")try{var s=(e.current.flags&jt)===jt;if(ke){var c;switch(n){case dr:c=ja;break;case Xo:c=wu;break;case po:c=uo;break;case Mu:c=Jc;break;default:c=uo;break}sr.onCommitFiberRoot(As,e,c,s)}}catch(p){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",p))}}function Ph(e){if(sr&&typeof sr.onPostCommitFiberRoot=="function")try{sr.onPostCommitFiberRoot(As,e)}catch(n){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",n))}}function Eg(e){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(As,e)}catch(n){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",n))}}function Mn(e){if(typeof Mh=="function"&&(Lh(e),d(e)),sr&&typeof sr.setStrictMode=="function")try{sr.setStrictMode(As,e)}catch(n){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",n))}}function Ds(e){He=e}function Cf(){{for(var e=new Map,n=1,s=0;s<lr;s++){var c=Ag(n);e.set(n,c),n*=2}return e}}function wg(e){He!==null&&typeof He.markCommitStarted=="function"&&He.markCommitStarted(e)}function Qc(){He!==null&&typeof He.markCommitStopped=="function"&&He.markCommitStopped()}function _u(e){He!==null&&typeof He.markComponentRenderStarted=="function"&&He.markComponentRenderStarted(e)}function Sl(){He!==null&&typeof He.markComponentRenderStopped=="function"&&He.markComponentRenderStopped()}function Fh(e){He!==null&&typeof He.markComponentPassiveEffectMountStarted=="function"&&He.markComponentPassiveEffectMountStarted(e)}function Sf(){He!==null&&typeof He.markComponentPassiveEffectMountStopped=="function"&&He.markComponentPassiveEffectMountStopped()}function Rg(e){He!==null&&typeof He.markComponentPassiveEffectUnmountStarted=="function"&&He.markComponentPassiveEffectUnmountStarted(e)}function _g(){He!==null&&typeof He.markComponentPassiveEffectUnmountStopped=="function"&&He.markComponentPassiveEffectUnmountStopped()}function Tg(e){He!==null&&typeof He.markComponentLayoutEffectMountStarted=="function"&&He.markComponentLayoutEffectMountStarted(e)}function Vh(){He!==null&&typeof He.markComponentLayoutEffectMountStopped=="function"&&He.markComponentLayoutEffectMountStopped()}function Tu(e){He!==null&&typeof He.markComponentLayoutEffectUnmountStarted=="function"&&He.markComponentLayoutEffectUnmountStarted(e)}function Kc(){He!==null&&typeof He.markComponentLayoutEffectUnmountStopped=="function"&&He.markComponentLayoutEffectUnmountStopped()}function Ng(e,n,s){He!==null&&typeof He.markComponentErrored=="function"&&He.markComponentErrored(e,n,s)}function Ig(e,n,s){He!==null&&typeof He.markComponentSuspended=="function"&&He.markComponentSuspended(e,n,s)}function Nu(e){He!==null&&typeof He.markLayoutEffectsStarted=="function"&&He.markLayoutEffectsStarted(e)}function jg(){He!==null&&typeof He.markLayoutEffectsStopped=="function"&&He.markLayoutEffectsStopped()}function ed(e){He!==null&&typeof He.markPassiveEffectsStarted=="function"&&He.markPassiveEffectsStarted(e)}function co(){He!==null&&typeof He.markPassiveEffectsStopped=="function"&&He.markPassiveEffectsStopped()}function Iu(e){He!==null&&typeof He.markRenderStarted=="function"&&He.markRenderStarted(e)}function td(){He!==null&&typeof He.markRenderYielded=="function"&&He.markRenderYielded()}function ks(){He!==null&&typeof He.markRenderStopped=="function"&&He.markRenderStopped()}function Bh(e){He!==null&&typeof He.markRenderScheduled=="function"&&He.markRenderScheduled(e)}function ju(e,n){He!==null&&typeof He.markForceUpdateScheduled=="function"&&He.markForceUpdateScheduled(e,n)}function Ef(e,n){He!==null&&typeof He.markStateUpdateScheduled=="function"&&He.markStateUpdateScheduled(e,n)}var gt=0,dt=1,tn=2,er=8,gi=16,nd=Math.clz32?Math.clz32:Zn,$h=Math.log,El=Math.LN2;function Zn(e){var n=e>>>0;return n===0?32:31-($h(n)/El|0)|0}var lr=31,Re=0,ur=0,Ct=1,fo=2,Wo=4,tr=8,yi=16,wl=32,Ms=4194240,Aa=64,Oa=128,Rl=256,rd=512,ad=1024,wf=2048,Rf=4096,_f=8192,Tf=16384,Nf=32768,If=65536,jf=131072,Af=262144,_l=524288,Of=1048576,Au=2097152,Tl=130023424,Nl=4194304,id=8388608,Df=16777216,kf=33554432,Mf=67108864,zh=Nl,Il=134217728,Uh=268435455,Ou=268435456,Ls=536870912,Qa=1073741824;function Ag(e){{if(e&Ct)return"Sync";if(e&fo)return"InputContinuousHydration";if(e&Wo)return"InputContinuous";if(e&tr)return"DefaultHydration";if(e&yi)return"Default";if(e&wl)return"TransitionHydration";if(e&Ms)return"Transition";if(e&Tl)return"Retry";if(e&Il)return"SelectiveHydration";if(e&Ou)return"IdleHydration";if(e&Ls)return"Idle";if(e&Qa)return"Offscreen"}}var Ln=-1,Lf=Aa,od=Nl;function Du(e){switch(cr(e)){case Ct:return Ct;case fo:return fo;case Wo:return Wo;case tr:return tr;case yi:return yi;case wl:return wl;case Aa:case Oa:case Rl:case rd:case ad:case wf:case Rf:case _f:case Tf:case Nf:case If:case jf:case Af:case _l:case Of:case Au:return e&Ms;case Nl:case id:case Df:case kf:case Mf:return e&Tl;case Il:return Il;case Ou:return Ou;case Ls:return Ls;case Qa:return Qa;default:return h("Should have found matching lanes. This is a bug in React."),e}}function sd(e,n){var s=e.pendingLanes;if(s===Re)return Re;var c=Re,p=e.suspendedLanes,b=e.pingedLanes,E=s&Uh;if(E!==Re){var j=E&~p;if(j!==Re)c=Du(j);else{var O=E&b;O!==Re&&(c=Du(O))}}else{var B=s&~p;B!==Re?c=Du(B):b!==Re&&(c=Du(b))}if(c===Re)return Re;if(n!==Re&&n!==c&&(n&p)===Re){var H=cr(c),te=cr(n);if(H>=te||H===yi&&(te&Ms)!==Re)return n}(c&Wo)!==Re&&(c|=s&yi);var K=e.entangledLanes;if(K!==Re)for(var fe=e.entanglements,pe=c&K;pe>0;){var Ce=Fs(pe),tt=1<<Ce;c|=fe[Ce],pe&=~tt}return c}function Pf(e,n){for(var s=e.eventTimes,c=Ln;n>0;){var p=Fs(n),b=1<<p,E=s[p];E>c&&(c=E),n&=~b}return c}function S0(e,n){switch(e){case Ct:case fo:case Wo:return n+250;case tr:case yi:case wl:case Aa:case Oa:case Rl:case rd:case ad:case wf:case Rf:case _f:case Tf:case Nf:case If:case jf:case Af:case _l:case Of:case Au:return n+5e3;case Nl:case id:case Df:case kf:case Mf:return Ln;case Il:case Ou:case Ls:case Qa:return Ln;default:return h("Should have found matching lanes. This is a bug in React."),Ln}}function E0(e,n){for(var s=e.pendingLanes,c=e.suspendedLanes,p=e.pingedLanes,b=e.expirationTimes,E=s;E>0;){var j=Fs(E),O=1<<j,B=b[j];B===Ln?((O&c)===Re||(O&p)!==Re)&&(b[j]=S0(O,n)):B<=n&&(e.expiredLanes|=O),E&=~O}}function w0(e){return Du(e.pendingLanes)}function Ps(e){var n=e.pendingLanes&~Qa;return n!==Re?n:n&Qa?Qa:Re}function Hh(e){return(e&Ct)!==Re}function ld(e){return(e&Uh)!==Re}function Og(e){return(e&Tl)===e}function Dg(e){var n=Ct|Wo|yi;return(e&n)===Re}function kg(e){return(e&Ms)===e}function ud(e,n){var s=fo|Wo|tr|yi;return(n&s)!==Re}function Mg(e,n){return(n&e.expiredLanes)!==Re}function Gh(e){return(e&Ms)!==Re}function Lg(){var e=Lf;return Lf<<=1,(Lf&Ms)===Re&&(Lf=Aa),e}function Da(){var e=od;return od<<=1,(od&Tl)===Re&&(od=Nl),e}function cr(e){return e&-e}function ku(e){return cr(e)}function Fs(e){return 31-nd(e)}function Ff(e){return Fs(e)}function ka(e,n){return(e&n)!==Re}function jl(e,n){return(e&n)===n}function Dt(e,n){return e|n}function cd(e,n){return e&~n}function Vf(e,n){return e&n}function R0(e){return e}function Pg(e,n){return e!==ur&&e<n?e:n}function dd(e){for(var n=[],s=0;s<lr;s++)n.push(e);return n}function Al(e,n,s){e.pendingLanes|=n,n!==Ls&&(e.suspendedLanes=Re,e.pingedLanes=Re);var c=e.eventTimes,p=Ff(n);c[p]=s}function Fg(e,n){e.suspendedLanes|=n,e.pingedLanes&=~n;for(var s=e.expirationTimes,c=n;c>0;){var p=Fs(c),b=1<<p;s[p]=Ln,c&=~b}}function Bf(e,n,s){e.pingedLanes|=e.suspendedLanes&n}function $f(e,n){var s=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=Re,e.pingedLanes=Re,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n;for(var c=e.entanglements,p=e.eventTimes,b=e.expirationTimes,E=s;E>0;){var j=Fs(E),O=1<<j;c[j]=Re,p[j]=Ln,b[j]=Ln,E&=~O}}function Wh(e,n){for(var s=e.entangledLanes|=n,c=e.entanglements,p=s;p;){var b=Fs(p),E=1<<b;E&n|c[b]&n&&(c[b]|=n),p&=~E}}function Vg(e,n){var s=cr(n),c;switch(s){case Wo:c=fo;break;case yi:c=tr;break;case Aa:case Oa:case Rl:case rd:case ad:case wf:case Rf:case _f:case Tf:case Nf:case If:case jf:case Af:case _l:case Of:case Au:case Nl:case id:case Df:case kf:case Mf:c=wl;break;case Ls:c=Ou;break;default:c=ur;break}return(c&(e.suspendedLanes|n))!==ur?ur:c}function zf(e,n,s){if(Ja)for(var c=e.pendingUpdatersLaneMap;s>0;){var p=Ff(s),b=1<<p,E=c[p];E.add(n),s&=~b}}function Xh(e,n){if(Ja)for(var s=e.pendingUpdatersLaneMap,c=e.memoizedUpdaters;n>0;){var p=Ff(n),b=1<<p,E=s[p];E.size>0&&(E.forEach(function(j){var O=j.alternate;(O===null||!c.has(O))&&c.add(j)}),E.clear()),n&=~b}}function fd(e,n){return null}var dr=Ct,Xo=Wo,po=yi,Mu=Ls,Lu=ur;function bi(){return Lu}function nr(e){Lu=e}function Qr(e,n){var s=Lu;try{return Lu=e,n()}finally{Lu=s}}function _0(e,n){return e!==0&&e<n?e:n}function T0(e,n){return e===0||e>n?e:n}function Pu(e,n){return e!==0&&e<n}function Vr(e){var n=cr(e);return Pu(dr,n)?Pu(Xo,n)?ld(n)?po:Mu:Xo:dr}function Uf(e){var n=e.current.memoizedState;return n.isDehydrated}var rt;function Fu(e){rt=e}function Yh(e){rt(e)}var Hf;function N0(e){Hf=e}var Vu;function Gf(e){Vu=e}var Wf;function Bg(e){Wf=e}var Zh;function $g(e){Zh=e}var pd=!1,Bu=[],Hn=null,Ar=null,ia=null,$u=new Map,zu=new Map,Or=[],zg=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function ho(e){return zg.indexOf(e)>-1}function I0(e,n,s,c,p){return{blockedOn:e,domEventName:n,eventSystemFlags:s,nativeEvent:p,targetContainers:[c]}}function qh(e,n){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":Ar=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":{var s=n.pointerId;$u.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var c=n.pointerId;zu.delete(c);break}}}function Uu(e,n,s,c,p,b){if(e===null||e.nativeEvent!==b){var E=I0(n,s,c,p,b);if(n!==null){var j=Qu(n);j!==null&&Hf(j)}return E}e.eventSystemFlags|=c;var O=e.targetContainers;return p!==null&&O.indexOf(p)===-1&&O.push(p),e}function Ug(e,n,s,c,p){switch(n){case"focusin":{var b=p;return Hn=Uu(Hn,e,n,s,c,b),!0}case"dragenter":{var E=p;return Ar=Uu(Ar,e,n,s,c,E),!0}case"mouseover":{var j=p;return ia=Uu(ia,e,n,s,c,j),!0}case"pointerover":{var O=p,B=O.pointerId;return $u.set(B,Uu($u.get(B)||null,e,n,s,c,O)),!0}case"gotpointercapture":{var H=p,te=H.pointerId;return zu.set(te,Uu(zu.get(te)||null,e,n,s,c,H)),!0}}return!1}function Jh(e){var n=Rd(e.target);if(n!==null){var s=js(n);if(s!==null){var c=s.tag;if(c===z){var p=gf(s);if(p!==null){e.blockedOn=p,Zh(e.priority,function(){Vu(s)});return}}else if(c===R){var b=s.stateNode;if(Uf(b)){e.blockedOn=yf(s);return}}}}e.blockedOn=null}function j0(e){for(var n=Wf(),s={blockedOn:null,target:e,priority:n},c=0;c<Or.length&&Pu(n,Or[c].priority);c++);Or.splice(c,0,s),c===0&&Jh(s)}function Ol(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;n.length>0;){var s=n[0],c=Kr(e.domEventName,e.eventSystemFlags,s,e.nativeEvent);if(c===null){var p=e.nativeEvent,b=new p.constructor(p.type,p);y0(b),p.target.dispatchEvent(b),hg()}else{var E=Qu(c);return E!==null&&Hf(E),e.blockedOn=c,!1}n.shift()}return!0}function Xf(e,n,s){Ol(e)&&s.delete(n)}function xi(){pd=!1,Hn!==null&&Ol(Hn)&&(Hn=null),Ar!==null&&Ol(Ar)&&(Ar=null),ia!==null&&Ol(ia)&&(ia=null),$u.forEach(Xf),zu.forEach(Xf)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,pd||(pd=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,xi)))}function rr(e){if(Bu.length>0){$t(Bu[0],e);for(var n=1;n<Bu.length;n++){var s=Bu[n];s.blockedOn===e&&(s.blockedOn=null)}}Hn!==null&&$t(Hn,e),Ar!==null&&$t(Ar,e),ia!==null&&$t(ia,e);var c=function(j){return $t(j,e)};$u.forEach(c),zu.forEach(c);for(var p=0;p<Or.length;p++){var b=Or[p];b.blockedOn===e&&(b.blockedOn=null)}for(;Or.length>0;){var E=Or[0];if(E.blockedOn!==null)break;Jh(E),E.blockedOn===null&&Or.shift()}}var zn=l.ReactCurrentBatchConfig,Cr=!0;function Ma(e){Cr=!!e}function Hu(){return Cr}function Sr(e,n,s){var c=Yf(n),p;switch(c){case dr:p=hd;break;case Xo:p=Dl;break;case po:default:p=Gu;break}return p.bind(null,n,s,e)}function hd(e,n,s,c){var p=bi(),b=zn.transition;zn.transition=null;try{nr(dr),Gu(e,n,s,c)}finally{nr(p),zn.transition=b}}function Dl(e,n,s,c){var p=bi(),b=zn.transition;zn.transition=null;try{nr(Xo),Gu(e,n,s,c)}finally{nr(p),zn.transition=b}}function Gu(e,n,s,c){Cr&&Qh(e,n,s,c)}function Qh(e,n,s,c){var p=Kr(e,n,s,c);if(p===null){X0(e,n,c,Vs,s),qh(e,c);return}if(Ug(p,e,n,s,c)){c.stopPropagation();return}if(qh(e,c),n&Hc&&ho(e)){for(;p!==null;){var b=Qu(p);b!==null&&Yh(b);var E=Kr(e,n,s,c);if(E===null&&X0(e,n,c,Vs,s),E===p)break;p=E}p!==null&&c.stopPropagation();return}X0(e,n,c,null,s)}var Vs=null;function Kr(e,n,s,c){Vs=null;var p=Nn(c),b=Rd(p);if(b!==null){var E=js(b);if(E===null)b=null;else{var j=E.tag;if(j===z){var O=gf(E);if(O!==null)return O;b=null}else if(j===R){var B=E.stateNode;if(Uf(B))return yf(E);b=null}else E!==b&&(b=null)}}return Vs=b,null}function Yf(e){switch(e){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 dr;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 Xo;case"message":{var n=C0();switch(n){case ja:return dr;case wu:return Xo;case uo:case Ru:return po;case Jc:return Mu;default:return po}}default:return po}}function Wu(e,n,s){return e.addEventListener(n,s,!1),s}function Yo(e,n,s){return e.addEventListener(n,s,!0),s}function Zf(e,n,s,c){return e.addEventListener(n,s,{capture:!0,passive:c}),s}function Kh(e,n,s,c){return e.addEventListener(n,s,{passive:c}),s}var Ci=null,Xu=null,Si=null;function qf(e){return Ci=e,Xu=md(),!0}function vd(){Ci=null,Xu=null,Si=null}function Jf(){if(Si)return Si;var e,n=Xu,s=n.length,c,p=md(),b=p.length;for(e=0;e<s&&n[e]===p[e];e++);var E=s-e;for(c=1;c<=E&&n[s-c]===p[b-c];c++);var j=c>1?1-c:void 0;return Si=p.slice(e,j),Si}function md(){return"value"in Ci?Ci.value:Ci.textContent}function kl(e){var n,s=e.keyCode;return"charCode"in e?(n=e.charCode,n===0&&s===13&&(n=13)):n=s,n===10&&(n=13),n>=32||n===13?n:0}function Dr(){return!0}function Zo(){return!1}function qn(e){function n(s,c,p,b,E){this._reactName=s,this._targetInst=p,this.type=c,this.nativeEvent=b,this.target=E,this.currentTarget=null;for(var j in e)if(e.hasOwnProperty(j)){var O=e[j];O?this[j]=O(b):this[j]=b[j]}var B=b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1;return B?this.isDefaultPrevented=Dr:this.isDefaultPrevented=Zo,this.isPropagationStopped=Zo,this}return Lt(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Dr)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Dr)},persist:function(){},isPersistent:Dr}),n}var Er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qf=qn(Er),Ml=Lt({},Er,{view:0,detail:0}),ev=qn(Ml),tv,vo,Yu;function nv(e){e!==Yu&&(Yu&&e.type==="mousemove"?(tv=e.screenX-Yu.screenX,vo=e.screenY-Yu.screenY):(tv=0,vo=0),Yu=e)}var mo=Lt({},Ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rv,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(nv(e),tv)},movementY:function(e){return"movementY"in e?e.movementY:vo}}),Kf=qn(mo),Ll=Lt({},mo,{dataTransfer:0}),Hg=qn(Ll),Gg=Lt({},Ml,{relatedTarget:0}),gd=qn(Gg),ep=Lt({},Er,{animationName:0,elapsedTime:0,pseudoElement:0}),A0=qn(ep),O0=Lt({},Er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wg=qn(O0),Xg=Lt({},Er,{data:0}),Bs=qn(Xg),D0=Bs,Zu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function ar(e){if(e.key){var n=Zu[e.key]||e.key;if(n!=="Unidentified")return n}if(e.type==="keypress"){var s=kl(e);return s===13?"Enter":String.fromCharCode(s)}return e.type==="keydown"||e.type==="keyup"?Yg[e.keyCode]||"Unidentified":""}var k0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zg(e){var n=this,s=n.nativeEvent;if(s.getModifierState)return s.getModifierState(e);var c=k0[e];return c?!!s[c]:!1}function rv(e){return Zg}var M0=Lt({},Ml,{key:ar,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rv,charCode:function(e){return e.type==="keypress"?kl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?kl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qg=qn(M0),Jg=Lt({},mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qg=qn(Jg),Ei=Lt({},Ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rv}),av=qn(Ei),L0=Lt({},Er,{propertyName:0,elapsedTime:0,pseudoElement:0}),$s=qn(L0),tp=Lt({},mo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pl=qn(tp),np=[9,13,27,32],rp=229,yd=xt&&"CompositionEvent"in window,bd=null;xt&&"documentMode"in document&&(bd=document.documentMode);var iv=xt&&"TextEvent"in window&&!bd,Kg=xt&&(!yd||bd&&bd>8&&bd<=11),ov=32,sv=String.fromCharCode(ov);function ap(){qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),qe("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),qe("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),qe("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var xd=!1;function ey(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function lv(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function P0(e,n){return e==="keydown"&&n.keyCode===rp}function uv(e,n){switch(e){case"keyup":return np.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==rp;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ip(e){var n=e.detail;return typeof n=="object"&&"data"in n?n.data:null}function Cd(e){return e.locale==="ko"}var zs=!1;function op(e,n,s,c,p){var b,E;if(yd?b=lv(n):zs?uv(n,c)&&(b="onCompositionEnd"):P0(n,c)&&(b="onCompositionStart"),!b)return null;Kg&&!Cd(c)&&(!zs&&b==="onCompositionStart"?zs=qf(p):b==="onCompositionEnd"&&zs&&(E=Jf()));var j=oy(s,b);if(j.length>0){var O=new Bs(b,n,null,c,p);if(e.push({event:O,listeners:j}),E)O.data=E;else{var B=ip(c);B!==null&&(O.data=B)}}}function ty(e,n){switch(e){case"compositionend":return ip(n);case"keypress":var s=n.which;return s!==ov?null:(xd=!0,sv);case"textInput":var c=n.data;return c===sv&&xd?null:c;default:return null}}function F0(e,n){if(zs){if(e==="compositionend"||!yd&&uv(e,n)){var s=Jf();return vd(),zs=!1,s}return null}switch(e){case"paste":return null;case"keypress":if(!ey(n)){if(n.char&&n.char.length>1)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Kg&&!Cd(n)?null:n.data;default:return null}}function sp(e,n,s,c,p){var b;if(iv?b=ty(n,c):b=F0(n,c),!b)return null;var E=oy(s,"onBeforeInput");if(E.length>0){var j=new D0("onBeforeInput","beforeinput",null,c,p);e.push({event:j,listeners:E}),j.data=b}}function V0(e,n,s,c,p,b,E){op(e,n,s,c,p),sp(e,n,s,c,p)}var Sd={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 ny(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Sd[e.type]:n==="textarea"}/**
113
- * Checks if an event is supported in the current execution environment.
114
- *
115
- * NOTE: This will not work correctly for non-generic events such as `change`,
116
- * `reset`, `load`, `error`, and `select`.
117
- *
118
- * Borrows from Modernizr.
119
- *
120
- * @param {string} eventNameSuffix Event name, e.g. "click".
121
- * @return {boolean} True if the event is supported.
122
- * @internal
123
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
124
- */function lp(e){if(!xt)return!1;var n="on"+e,s=n in document;if(!s){var c=document.createElement("div");c.setAttribute(n,"return;"),s=typeof c[n]=="function"}return s}function a(){qe("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(e,n,s,c){Cu(c);var p=oy(n,"onChange");if(p.length>0){var b=new Qf("onChange","change",null,s,c);e.push({event:b,listeners:p})}}var f=null,g=null;function S(e){var n=e.nodeName&&e.nodeName.toLowerCase();return n==="select"||n==="input"&&e.type==="file"}function T(e){var n=[];o(n,g,e,Nn(e)),Wc(L,n)}function L(e){N_(e,0)}function W(e){var n=hp(e);if(hu(n))return e}function Q(e,n){if(e==="change")return n}var he=!1;xt&&(he=lp("input")&&(!document.documentMode||document.documentMode>9));function Fe(e,n){f=e,g=n,f.attachEvent("onpropertychange",Me)}function Be(){f&&(f.detachEvent("onpropertychange",Me),f=null,g=null)}function Me(e){e.propertyName==="value"&&W(g)&&T(e)}function Qe(e,n,s){e==="focusin"?(Be(),Fe(n,s)):e==="focusout"&&Be()}function at(e,n){if(e==="selectionchange"||e==="keyup"||e==="keydown")return W(g)}function lt(e){var n=e.nodeName;return n&&n.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function fr(e,n){if(e==="click")return W(n)}function oe(e,n){if(e==="input"||e==="change")return W(n)}function ee(e){var n=e._wrapperState;!n||!n.controlled||e.type!=="number"||_t(e,"number",e.value)}function ue(e,n,s,c,p,b,E){var j=s?hp(s):window,O,B;if(S(j)?O=Q:ny(j)?he?O=oe:(O=at,B=Qe):lt(j)&&(O=fr),O){var H=O(n,s);if(H){o(e,H,c,p);return}}B&&B(n,j,s),n==="focusout"&&ee(j)}function Ue(){Ae("onMouseEnter",["mouseout","mouseover"]),Ae("onMouseLeave",["mouseout","mouseover"]),Ae("onPointerEnter",["pointerout","pointerover"]),Ae("onPointerLeave",["pointerout","pointerover"])}function ct(e,n,s,c,p,b,E){var j=n==="mouseover"||n==="pointerover",O=n==="mouseout"||n==="pointerout";if(j&&!vg(c)){var B=c.relatedTarget||c.fromElement;if(B&&(Rd(B)||Ev(B)))return}if(!(!O&&!j)){var H;if(p.window===p)H=p;else{var te=p.ownerDocument;te?H=te.defaultView||te.parentWindow:H=window}var K,fe;if(O){var pe=c.relatedTarget||c.toElement;if(K=s,fe=pe?Rd(pe):null,fe!==null){var Ce=js(fe);(fe!==Ce||fe.tag!==N&&fe.tag!==_)&&(fe=null)}}else K=null,fe=s;if(K!==fe){var tt=Kf,yt="onMouseLeave",ft="onMouseEnter",Yt="mouse";(n==="pointerout"||n==="pointerover")&&(tt=Qg,yt="onPointerLeave",ft="onPointerEnter",Yt="pointer");var zt=K==null?H:hp(K),se=fe==null?H:hp(fe),Se=new tt(yt,Yt+"leave",K,c,p);Se.target=zt,Se.relatedTarget=se;var le=null,$e=Rd(p);if($e===s){var nt=new tt(ft,Yt+"enter",fe,c,p);nt.target=se,nt.relatedTarget=zt,le=nt}iL(e,Se,le,K,fe)}}}function St(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var it=typeof Object.is=="function"?Object.is:St;function wt(e,n){if(it(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),c=Object.keys(n);if(s.length!==c.length)return!1;for(var p=0;p<s.length;p++){var b=s[p];if(!ht.call(n,b)||!it(e[b],n[b]))return!1}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function an(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function qo(e,n){for(var s=wr(e),c=0,p=0;s;){if(s.nodeType===Fo){if(p=c+s.textContent.length,c<=n&&p>=n)return{node:s,offset:n-c};c=p}s=wr(an(s))}}function B0(e){var n=e.ownerDocument,s=n&&n.defaultView||window,c=s.getSelection&&s.getSelection();if(!c||c.rangeCount===0)return null;var p=c.anchorNode,b=c.anchorOffset,E=c.focusNode,j=c.focusOffset;try{p.nodeType,E.nodeType}catch{return null}return VM(e,p,b,E,j)}function VM(e,n,s,c,p){var b=0,E=-1,j=-1,O=0,B=0,H=e,te=null;e:for(;;){for(var K=null;H===n&&(s===0||H.nodeType===Fo)&&(E=b+s),H===c&&(p===0||H.nodeType===Fo)&&(j=b+p),H.nodeType===Fo&&(b+=H.nodeValue.length),(K=H.firstChild)!==null;)te=H,H=K;for(;;){if(H===e)break e;if(te===n&&++O===s&&(E=b),te===c&&++B===p&&(j=b),(K=H.nextSibling)!==null)break;H=te,te=H.parentNode}H=K}return E===-1||j===-1?null:{start:E,end:j}}function BM(e,n){var s=e.ownerDocument||document,c=s&&s.defaultView||window;if(c.getSelection){var p=c.getSelection(),b=e.textContent.length,E=Math.min(n.start,b),j=n.end===void 0?E:Math.min(n.end,b);if(!p.extend&&E>j){var O=j;j=E,E=O}var B=qo(e,E),H=qo(e,j);if(B&&H){if(p.rangeCount===1&&p.anchorNode===B.node&&p.anchorOffset===B.offset&&p.focusNode===H.node&&p.focusOffset===H.offset)return;var te=s.createRange();te.setStart(B.node,B.offset),p.removeAllRanges(),E>j?(p.addRange(te),p.extend(H.node,H.offset)):(te.setEnd(H.node,H.offset),p.addRange(te))}}}function m_(e){return e&&e.nodeType===Fo}function g_(e,n){return!e||!n?!1:e===n?!0:m_(e)?!1:m_(n)?g_(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1}function $M(e){return e&&e.ownerDocument&&g_(e.ownerDocument.documentElement,e)}function zM(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function y_(){for(var e=window,n=ao();n instanceof e.HTMLIFrameElement;){if(zM(n))e=n.contentWindow;else return n;n=ao(e.document)}return n}function $0(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function UM(){var e=y_();return{focusedElem:e,selectionRange:$0(e)?GM(e):null}}function HM(e){var n=y_(),s=e.focusedElem,c=e.selectionRange;if(n!==s&&$M(s)){c!==null&&$0(s)&&WM(s,c);for(var p=[],b=s;b=b.parentNode;)b.nodeType===Ra&&p.push({element:b,left:b.scrollLeft,top:b.scrollTop});typeof s.focus=="function"&&s.focus();for(var E=0;E<p.length;E++){var j=p[E];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}}function GM(e){var n;return"selectionStart"in e?n={start:e.selectionStart,end:e.selectionEnd}:n=B0(e),n||{start:0,end:0}}function WM(e,n){var s=n.start,c=n.end;c===void 0&&(c=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(c,e.value.length)):BM(e,n)}var XM=xt&&"documentMode"in document&&document.documentMode<=11;function YM(){qe("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var up=null,z0=null,cv=null,U0=!1;function ZM(e){if("selectionStart"in e&&$0(e))return{start:e.selectionStart,end:e.selectionEnd};var n=e.ownerDocument&&e.ownerDocument.defaultView||window,s=n.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function qM(e){return e.window===e?e.document:e.nodeType===Wa?e:e.ownerDocument}function b_(e,n,s){var c=qM(s);if(!(U0||up==null||up!==ao(c))){var p=ZM(up);if(!cv||!wt(cv,p)){cv=p;var b=oy(z0,"onSelect");if(b.length>0){var E=new Qf("onSelect","select",null,n,s);e.push({event:E,listeners:b}),E.target=up}}}}function JM(e,n,s,c,p,b,E){var j=s?hp(s):window;switch(n){case"focusin":(ny(j)||j.contentEditable==="true")&&(up=j,z0=s,cv=null);break;case"focusout":up=null,z0=null,cv=null;break;case"mousedown":U0=!0;break;case"contextmenu":case"mouseup":case"dragend":U0=!1,b_(e,c,p);break;case"selectionchange":if(XM)break;case"keydown":case"keyup":b_(e,c,p)}}function ry(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var cp={animationend:ry("Animation","AnimationEnd"),animationiteration:ry("Animation","AnimationIteration"),animationstart:ry("Animation","AnimationStart"),transitionend:ry("Transition","TransitionEnd")},H0={},x_={};xt&&(x_=document.createElement("div").style,"AnimationEvent"in window||(delete cp.animationend.animation,delete cp.animationiteration.animation,delete cp.animationstart.animation),"TransitionEvent"in window||delete cp.transitionend.transition);function ay(e){if(H0[e])return H0[e];if(!cp[e])return e;var n=cp[e];for(var s in n)if(n.hasOwnProperty(s)&&s in x_)return H0[e]=n[s];return e}var C_=ay("animationend"),S_=ay("animationiteration"),E_=ay("animationstart"),w_=ay("transitionend"),R_=new Map,__=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function qu(e,n){R_.set(e,n),qe(n,[e])}function QM(){for(var e=0;e<__.length;e++){var n=__[e],s=n.toLowerCase(),c=n[0].toUpperCase()+n.slice(1);qu(s,"on"+c)}qu(C_,"onAnimationEnd"),qu(S_,"onAnimationIteration"),qu(E_,"onAnimationStart"),qu("dblclick","onDoubleClick"),qu("focusin","onFocus"),qu("focusout","onBlur"),qu(w_,"onTransitionEnd")}function KM(e,n,s,c,p,b,E){var j=R_.get(n);if(j!==void 0){var O=Qf,B=n;switch(n){case"keypress":if(kl(c)===0)return;case"keydown":case"keyup":O=qg;break;case"focusin":B="focus",O=gd;break;case"focusout":B="blur",O=gd;break;case"beforeblur":case"afterblur":O=gd;break;case"click":if(c.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Kf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Hg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=av;break;case C_:case S_:case E_:O=A0;break;case w_:O=$s;break;case"scroll":O=ev;break;case"wheel":O=Pl;break;case"copy":case"cut":case"paste":O=Wg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Qg;break}var H=(b&Hc)!==0;{var te=!H&&n==="scroll",K=rL(s,j,c.type,H,te);if(K.length>0){var fe=new O(j,B,null,c,p);e.push({event:fe,listeners:K})}}}}QM(),Ue(),a(),YM(),ap();function eL(e,n,s,c,p,b,E){KM(e,n,s,c,p,b);var j=(b&g0)===0;j&&(ct(e,n,s,c,p),ue(e,n,s,c,p),JM(e,n,s,c,p),V0(e,n,s,c,p))}var dv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],G0=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(dv));function T_(e,n,s){var c=e.type||"unknown-event";e.currentTarget=s,jh(c,n,void 0,e),e.currentTarget=null}function tL(e,n,s){var c;if(s)for(var p=n.length-1;p>=0;p--){var b=n[p],E=b.instance,j=b.currentTarget,O=b.listener;if(E!==c&&e.isPropagationStopped())return;T_(e,O,j),c=E}else for(var B=0;B<n.length;B++){var H=n[B],te=H.instance,K=H.currentTarget,fe=H.listener;if(te!==c&&e.isPropagationStopped())return;T_(e,fe,K),c=te}}function N_(e,n){for(var s=(n&Hc)!==0,c=0;c<e.length;c++){var p=e[c],b=p.event,E=p.listeners;tL(b,E,s)}b0()}function nL(e,n,s,c,p){var b=Nn(s),E=[];eL(E,e,c,s,b,n),N_(E,n)}function Jn(e,n){G0.has(e)||h('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,c=OP(n),p=oL(e,s);c.has(p)||(I_(n,e,Uc,s),c.add(p))}function W0(e,n,s){G0.has(e)&&!n&&h('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var c=0;n&&(c|=Hc),I_(s,e,c,n)}var iy="_reactListening"+Math.random().toString(36).slice(2);function fv(e){if(!e[iy]){e[iy]=!0,ve.forEach(function(s){s!=="selectionchange"&&(G0.has(s)||W0(s,!1,e),W0(s,!0,e))});var n=e.nodeType===Wa?e:e.ownerDocument;n!==null&&(n[iy]||(n[iy]=!0,W0("selectionchange",!1,n)))}}function I_(e,n,s,c,p){var b=Sr(e,n,s),E=void 0;Xc&&(n==="touchstart"||n==="touchmove"||n==="wheel")&&(E=!0),e=e,c?E!==void 0?Zf(e,n,b,E):Yo(e,n,b):E!==void 0?Kh(e,n,b,E):Wu(e,n,b)}function j_(e,n){return e===n||e.nodeType===Kn&&e.parentNode===n}function X0(e,n,s,c,p){var b=c;if(!(n&ff)&&!(n&Uc)){var E=p;if(c!==null){var j=c;e:for(;;){if(j===null)return;var O=j.tag;if(O===R||O===A){var B=j.stateNode.containerInfo;if(j_(B,E))break;if(O===A)for(var H=j.return;H!==null;){var te=H.tag;if(te===R||te===A){var K=H.stateNode.containerInfo;if(j_(K,E))return}H=H.return}for(;B!==null;){var fe=Rd(B);if(fe===null)return;var pe=fe.tag;if(pe===N||pe===_){j=b=fe;continue e}B=B.parentNode}}j=j.return}}}Wc(function(){return nL(e,n,s,b)})}function pv(e,n,s){return{instance:e,listener:n,currentTarget:s}}function rL(e,n,s,c,p,b){for(var E=n!==null?n+"Capture":null,j=c?E:n,O=[],B=e,H=null;B!==null;){var te=B,K=te.stateNode,fe=te.tag;if(fe===N&&K!==null&&(H=K,j!==null)){var pe=yl(B,j);pe!=null&&O.push(pv(B,pe,H))}if(p)break;B=B.return}return O}function oy(e,n){for(var s=n+"Capture",c=[],p=e;p!==null;){var b=p,E=b.stateNode,j=b.tag;if(j===N&&E!==null){var O=E,B=yl(p,s);B!=null&&c.unshift(pv(p,B,O));var H=yl(p,n);H!=null&&c.push(pv(p,H,O))}p=p.return}return c}function dp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==N);return e||null}function aL(e,n){for(var s=e,c=n,p=0,b=s;b;b=dp(b))p++;for(var E=0,j=c;j;j=dp(j))E++;for(;p-E>0;)s=dp(s),p--;for(;E-p>0;)c=dp(c),E--;for(var O=p;O--;){if(s===c||c!==null&&s===c.alternate)return s;s=dp(s),c=dp(c)}return null}function A_(e,n,s,c,p){for(var b=n._reactName,E=[],j=s;j!==null&&j!==c;){var O=j,B=O.alternate,H=O.stateNode,te=O.tag;if(B!==null&&B===c)break;if(te===N&&H!==null){var K=H;if(p){var fe=yl(j,b);fe!=null&&E.unshift(pv(j,fe,K))}else if(!p){var pe=yl(j,b);pe!=null&&E.push(pv(j,pe,K))}}j=j.return}E.length!==0&&e.push({event:n,listeners:E})}function iL(e,n,s,c,p){var b=c&&p?aL(c,p):null;c!==null&&A_(e,n,c,b,!1),p!==null&&s!==null&&A_(e,s,p,b,!0)}function oL(e,n){return e+"__"+(n?"capture":"bubble")}var wi=!1,hv="dangerouslySetInnerHTML",sy="suppressContentEditableWarning",Ju="suppressHydrationWarning",O_="autoFocus",Ed="children",wd="style",ly="__html",Y0,uy,vv,D_,cy,k_,M_;Y0={dialog:!0,webview:!0},uy=function(e,n){xu(e,n),ug(e,n),_s(e,n,{registrationNameDependencies:Ie,possibleRegistrationNames:Xe})},k_=xt&&!document.documentMode,vv=function(e,n,s){if(!wi){var c=dy(s),p=dy(n);p!==c&&(wi=!0,h("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(p),JSON.stringify(c)))}},D_=function(e){if(!wi){wi=!0;var n=[];e.forEach(function(s){n.push(s)}),h("Extra attributes from the server: %s",n)}},cy=function(e,n){n===!1?h("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):h("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof n)},M_=function(e,n){var s=e.namespaceURI===Po?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=n,s.innerHTML};var sL=/\r\n?/g,lL=/\u0000|\uFFFD/g;function dy(e){Tr(e);var n=typeof e=="string"?e:""+e;return n.replace(sL,`
125
- `).replace(lL,"")}function fy(e,n,s,c){var p=dy(n),b=dy(e);if(b!==p&&(c&&(wi||(wi=!0,h('Text content did not match. Server: "%s" Client: "%s"',b,p))),s&&re))throw new Error("Text content does not match server-rendered HTML.")}function L_(e){return e.nodeType===Wa?e:e.ownerDocument}function uL(){}function py(e){e.onclick=uL}function cL(e,n,s,c,p){for(var b in c)if(c.hasOwnProperty(b)){var E=c[b];if(b===wd)E&&Object.freeze(E),rg(n,E);else if(b===hv){var j=E?E[ly]:void 0;j!=null&&Ym(n,j)}else if(b===Ed)if(typeof E=="string"){var O=e!=="textarea"||E!=="";O&&Pc(n,E)}else typeof E=="number"&&Pc(n,""+E);else b===sy||b===Ju||b===O_||(Ie.hasOwnProperty(b)?E!=null&&(typeof E!="function"&&cy(b,E),b==="onScroll"&&Jn("scroll",n)):E!=null&&Io(n,b,E,p))}}function dL(e,n,s,c){for(var p=0;p<n.length;p+=2){var b=n[p],E=n[p+1];b===wd?rg(e,E):b===hv?Ym(e,E):b===Ed?Pc(e,E):Io(e,b,E,c)}}function fL(e,n,s,c){var p,b=L_(s),E,j=c;if(j===Po&&(j=fh(e)),j===Po){if(p=vl(e,n),!p&&e!==e.toLowerCase()&&h("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var O=b.createElement("div");O.innerHTML="<script><\/script>";var B=O.firstChild;E=O.removeChild(B)}else if(typeof n.is=="string")E=b.createElement(e,{is:n.is});else if(E=b.createElement(e),e==="select"){var H=E;n.multiple?H.multiple=!0:n.size&&(H.size=n.size)}}else E=b.createElementNS(j,e);return j===Po&&!p&&Object.prototype.toString.call(E)==="[object HTMLUnknownElement]"&&!ht.call(Y0,e)&&(Y0[e]=!0,h("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),E}function pL(e,n){return L_(n).createTextNode(e)}function hL(e,n,s,c){var p=vl(n,s);uy(n,s);var b;switch(n){case"dialog":Jn("cancel",e),Jn("close",e),b=s;break;case"iframe":case"object":case"embed":Jn("load",e),b=s;break;case"video":case"audio":for(var E=0;E<dv.length;E++)Jn(dv[E],e);b=s;break;case"source":Jn("error",e),b=s;break;case"img":case"image":case"link":Jn("error",e),Jn("load",e),b=s;break;case"details":Jn("toggle",e),b=s;break;case"input":q(e,s),b=D(e,s),Jn("invalid",e);break;case"option":mn(e,s),b=s;break;case"select":Lc(e,s),b=Mc(e,s),Jn("invalid",e);break;case"textarea":Wm(e,s),b=dh(e,s),Jn("invalid",e);break;default:b=s}switch(Bc(n,b),cL(n,e,c,b,p),n){case"input":ko(e),ze(e,s,!1);break;case"textarea":ko(e),af(e);break;case"option":gn(e,s);break;case"select":ch(e,s);break;default:typeof b.onClick=="function"&&py(e);break}}function vL(e,n,s,c,p){uy(n,c);var b=null,E,j;switch(n){case"input":E=D(e,s),j=D(e,c),b=[];break;case"select":E=Mc(e,s),j=Mc(e,c),b=[];break;case"textarea":E=dh(e,s),j=dh(e,c),b=[];break;default:E=s,j=c,typeof E.onClick!="function"&&typeof j.onClick=="function"&&py(e);break}Bc(n,j);var O,B,H=null;for(O in E)if(!(j.hasOwnProperty(O)||!E.hasOwnProperty(O)||E[O]==null))if(O===wd){var te=E[O];for(B in te)te.hasOwnProperty(B)&&(H||(H={}),H[B]="")}else O===hv||O===Ed||O===sy||O===Ju||O===O_||(Ie.hasOwnProperty(O)?b||(b=[]):(b=b||[]).push(O,null));for(O in j){var K=j[O],fe=E!=null?E[O]:void 0;if(!(!j.hasOwnProperty(O)||K===fe||K==null&&fe==null))if(O===wd)if(K&&Object.freeze(K),fe){for(B in fe)fe.hasOwnProperty(B)&&(!K||!K.hasOwnProperty(B))&&(H||(H={}),H[B]="");for(B in K)K.hasOwnProperty(B)&&fe[B]!==K[B]&&(H||(H={}),H[B]=K[B])}else H||(b||(b=[]),b.push(O,H)),H=K;else if(O===hv){var pe=K?K[ly]:void 0,Ce=fe?fe[ly]:void 0;pe!=null&&Ce!==pe&&(b=b||[]).push(O,pe)}else O===Ed?(typeof K=="string"||typeof K=="number")&&(b=b||[]).push(O,""+K):O===sy||O===Ju||(Ie.hasOwnProperty(O)?(K!=null&&(typeof K!="function"&&cy(O,K),O==="onScroll"&&Jn("scroll",e)),!b&&fe!==K&&(b=[])):(b=b||[]).push(O,K))}return H&&(ag(H,j[wd]),(b=b||[]).push(wd,H)),b}function mL(e,n,s,c,p){s==="input"&&p.type==="radio"&&p.name!=null&&de(e,p);var b=vl(s,c),E=vl(s,p);switch(dL(e,n,b,E),s){case"input":ye(e,p);break;case"textarea":Xm(e,p);break;case"select":o0(e,p);break}}function gL(e){{var n=e.toLowerCase();return uf.hasOwnProperty(n)&&uf[n]||null}}function yL(e,n,s,c,p,b,E){var j,O;switch(j=vl(n,s),uy(n,s),n){case"dialog":Jn("cancel",e),Jn("close",e);break;case"iframe":case"object":case"embed":Jn("load",e);break;case"video":case"audio":for(var B=0;B<dv.length;B++)Jn(dv[B],e);break;case"source":Jn("error",e);break;case"img":case"image":case"link":Jn("error",e),Jn("load",e);break;case"details":Jn("toggle",e);break;case"input":q(e,s),Jn("invalid",e);break;case"option":mn(e,s);break;case"select":Lc(e,s),Jn("invalid",e);break;case"textarea":Wm(e,s),Jn("invalid",e);break}Bc(n,s);{O=new Set;for(var H=e.attributes,te=0;te<H.length;te++){var K=H[te].name.toLowerCase();switch(K){case"value":break;case"checked":break;case"selected":break;default:O.add(H[te].name)}}}var fe=null;for(var pe in s)if(s.hasOwnProperty(pe)){var Ce=s[pe];if(pe===Ed)typeof Ce=="string"?e.textContent!==Ce&&(s[Ju]!==!0&&fy(e.textContent,Ce,b,E),fe=[Ed,Ce]):typeof Ce=="number"&&e.textContent!==""+Ce&&(s[Ju]!==!0&&fy(e.textContent,Ce,b,E),fe=[Ed,""+Ce]);else if(Ie.hasOwnProperty(pe))Ce!=null&&(typeof Ce!="function"&&cy(pe,Ce),pe==="onScroll"&&Jn("scroll",e));else if(E&&typeof j=="boolean"){var tt=void 0,yt=j&&Ee?null:Ir(pe);if(s[Ju]!==!0){if(!(pe===sy||pe===Ju||pe==="value"||pe==="checked"||pe==="selected")){if(pe===hv){var ft=e.innerHTML,Yt=Ce?Ce[ly]:void 0;if(Yt!=null){var zt=M_(e,Yt);zt!==ft&&vv(pe,ft,zt)}}else if(pe===wd){if(O.delete(pe),k_){var se=m0(Ce);tt=e.getAttribute("style"),se!==tt&&vv(pe,tt,se)}}else if(j&&!Ee)O.delete(pe.toLowerCase()),tt=si(e,pe,Ce),Ce!==tt&&vv(pe,tt,Ce);else if(!Wn(pe,yt,j)&&!hn(pe,Ce,yt,j)){var Se=!1;if(yt!==null)O.delete(yt.attributeName),tt=Fi(e,pe,Ce,yt);else{var le=c;if(le===Po&&(le=fh(n)),le===Po)O.delete(pe.toLowerCase());else{var $e=gL(pe);$e!==null&&$e!==pe&&(Se=!0,O.delete($e)),O.delete(pe)}tt=si(e,pe,Ce)}var nt=Ee;!nt&&Ce!==tt&&!Se&&vv(pe,tt,Ce)}}}}}switch(E&&O.size>0&&s[Ju]!==!0&&D_(O),n){case"input":ko(e),ze(e,s,!0);break;case"textarea":ko(e),af(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&py(e);break}return fe}function bL(e,n,s){var c=e.nodeValue!==n;return c}function Z0(e,n){{if(wi)return;wi=!0,h("Did not expect server HTML to contain a <%s> in <%s>.",n.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function q0(e,n){{if(wi)return;wi=!0,h('Did not expect server HTML to contain the text node "%s" in <%s>.',n.nodeValue,e.nodeName.toLowerCase())}}function J0(e,n,s){{if(wi)return;wi=!0,h("Expected server HTML to contain a matching <%s> in <%s>.",n,e.nodeName.toLowerCase())}}function Q0(e,n){{if(n===""||wi)return;wi=!0,h('Expected server HTML to contain a matching text node for "%s" in <%s>.',n,e.nodeName.toLowerCase())}}function xL(e,n,s){switch(n){case"input":st(e,s);return;case"textarea":s0(e,s);return;case"select":Hm(e,s);return}}var mv=function(){},gv=function(){};{var CL=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],P_=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],SL=P_.concat(["button"]),EL=["dd","dt","li","option","optgroup","p","rp","rt"],F_={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};gv=function(e,n){var s=Lt({},e||F_),c={tag:n};return P_.indexOf(n)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),SL.indexOf(n)!==-1&&(s.pTagInButtonScope=null),CL.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=c,n==="form"&&(s.formTag=c),n==="a"&&(s.aTagInScope=c),n==="button"&&(s.buttonTagInScope=c),n==="nobr"&&(s.nobrTagInScope=c),n==="p"&&(s.pTagInButtonScope=c),n==="li"&&(s.listItemTagAutoclosing=c),(n==="dd"||n==="dt")&&(s.dlItemTagAutoclosing=c),s};var wL=function(e,n){switch(n){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n!=="h1"&&n!=="h2"&&n!=="h3"&&n!=="h4"&&n!=="h5"&&n!=="h6";case"rp":case"rt":return EL.indexOf(n)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return n==null}return!0},RL=function(e,n){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.pTagInButtonScope;case"form":return n.formTag||n.pTagInButtonScope;case"li":return n.listItemTagAutoclosing;case"dd":case"dt":return n.dlItemTagAutoclosing;case"button":return n.buttonTagInScope;case"a":return n.aTagInScope;case"nobr":return n.nobrTagInScope}return null},V_={};mv=function(e,n,s){s=s||F_;var c=s.current,p=c&&c.tag;n!=null&&(e!=null&&h("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var b=wL(e,p)?null:c,E=b?null:RL(e,s),j=b||E;if(j){var O=j.tag,B=!!b+"|"+e+"|"+O;if(!V_[B]){V_[B]=!0;var H=e,te="";if(e==="#text"?/\S/.test(n)?H="Text nodes":(H="Whitespace text nodes",te=" Make sure you don't have any extra whitespace between tags on each line of your source code."):H="<"+e+">",b){var K="";O==="table"&&e==="tr"&&(K+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),h("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",H,O,te,K)}else h("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",H,O)}}}}var hy="suppressHydrationWarning",vy="$",my="/$",yv="$?",bv="$!",_L="style",K0=null,eC=null;function TL(e){var n,s,c=e.nodeType;switch(c){case Wa:case hh:{n=c===Wa?"#document":"#fragment";var p=e.documentElement;s=p?p.namespaceURI:ph(null,"");break}default:{var b=c===Kn?e.parentNode:e,E=b.namespaceURI||null;n=b.tagName,s=ph(E,n);break}}{var j=n.toLowerCase(),O=gv(null,j);return{namespace:s,ancestorInfo:O}}}function NL(e,n,s){{var c=e,p=ph(c.namespace,n),b=gv(c.ancestorInfo,n);return{namespace:p,ancestorInfo:b}}}function cJ(e){return e}function IL(e){K0=Hu(),eC=UM();var n=null;return Ma(!1),n}function jL(e){HM(eC),Ma(K0),K0=null,eC=null}function AL(e,n,s,c,p){var b;{var E=c;if(mv(e,null,E.ancestorInfo),typeof n.children=="string"||typeof n.children=="number"){var j=""+n.children,O=gv(E.ancestorInfo,e);mv(null,j,O)}b=E.namespace}var B=fL(e,n,s,b);return Sv(p,B),lC(B,n),B}function OL(e,n){e.appendChild(n)}function DL(e,n,s,c,p){switch(hL(e,n,s,c),n){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function kL(e,n,s,c,p,b){{var E=b;if(typeof c.children!=typeof s.children&&(typeof c.children=="string"||typeof c.children=="number")){var j=""+c.children,O=gv(E.ancestorInfo,n);mv(null,j,O)}}return vL(e,n,s,c)}function tC(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function ML(e,n,s,c){{var p=s;mv(null,e,p.ancestorInfo)}var b=pL(e,n);return Sv(c,b),b}function LL(){var e=window.event;return e===void 0?po:Yf(e.type)}var nC=typeof setTimeout=="function"?setTimeout:void 0,PL=typeof clearTimeout=="function"?clearTimeout:void 0,rC=-1,B_=typeof Promise=="function"?Promise:void 0,FL=typeof queueMicrotask=="function"?queueMicrotask:typeof B_<"u"?function(e){return B_.resolve(null).then(e).catch(VL)}:nC;function VL(e){setTimeout(function(){throw e})}function BL(e,n,s,c){switch(n){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function $L(e,n,s,c,p,b){mL(e,n,s,c,p),lC(e,p)}function $_(e){Pc(e,"")}function zL(e,n,s){e.nodeValue=s}function UL(e,n){e.appendChild(n)}function HL(e,n){var s;e.nodeType===Kn?(s=e.parentNode,s.insertBefore(n,e)):(s=e,s.appendChild(n));var c=e._reactRootContainer;c==null&&s.onclick===null&&py(s)}function GL(e,n,s){e.insertBefore(n,s)}function WL(e,n,s){e.nodeType===Kn?e.parentNode.insertBefore(n,s):e.insertBefore(n,s)}function XL(e,n){e.removeChild(n)}function YL(e,n){e.nodeType===Kn?e.parentNode.removeChild(n):e.removeChild(n)}function aC(e,n){var s=n,c=0;do{var p=s.nextSibling;if(e.removeChild(s),p&&p.nodeType===Kn){var b=p.data;if(b===my)if(c===0){e.removeChild(p),rr(n);return}else c--;else(b===vy||b===yv||b===bv)&&c++}s=p}while(s);rr(n)}function ZL(e,n){e.nodeType===Kn?aC(e.parentNode,n):e.nodeType===Ra&&aC(e,n),rr(e)}function qL(e){e=e;var n=e.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}function JL(e){e.nodeValue=""}function QL(e,n){e=e;var s=n[_L],c=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=ws("display",c)}function KL(e,n){e.nodeValue=n}function eP(e){e.nodeType===Ra?e.textContent="":e.nodeType===Wa&&e.documentElement&&e.removeChild(e.documentElement)}function tP(e,n,s){return e.nodeType!==Ra||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function nP(e,n){return n===""||e.nodeType!==Fo?null:e}function rP(e){return e.nodeType!==Kn?null:e}function z_(e){return e.data===yv}function iC(e){return e.data===bv}function aP(e){var n=e.nextSibling&&e.nextSibling.dataset,s,c,p;return n&&(s=n.dgst,c=n.msg,p=n.stck),{message:c,digest:s,stack:p}}function iP(e,n){e._reactRetry=n}function gy(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===Ra||n===Fo)break;if(n===Kn){var s=e.data;if(s===vy||s===bv||s===yv)break;if(s===my)return null}}return e}function xv(e){return gy(e.nextSibling)}function oP(e){return gy(e.firstChild)}function sP(e){return gy(e.firstChild)}function lP(e){return gy(e.nextSibling)}function uP(e,n,s,c,p,b,E){Sv(b,e),lC(e,s);var j;{var O=p;j=O.namespace}var B=(b.mode&dt)!==gt;return yL(e,n,s,j,c,B,E)}function cP(e,n,s,c){return Sv(s,e),s.mode&dt,bL(e,n)}function dP(e,n){Sv(n,e)}function fP(e){for(var n=e.nextSibling,s=0;n;){if(n.nodeType===Kn){var c=n.data;if(c===my){if(s===0)return xv(n);s--}else(c===vy||c===bv||c===yv)&&s++}n=n.nextSibling}return null}function U_(e){for(var n=e.previousSibling,s=0;n;){if(n.nodeType===Kn){var c=n.data;if(c===vy||c===bv||c===yv){if(s===0)return n;s--}else c===my&&s++}n=n.previousSibling}return null}function pP(e){rr(e)}function hP(e){rr(e)}function vP(e){return e!=="head"&&e!=="body"}function mP(e,n,s,c){var p=!0;fy(n.nodeValue,s,c,p)}function gP(e,n,s,c,p,b){if(n[hy]!==!0){var E=!0;fy(c.nodeValue,p,b,E)}}function yP(e,n){n.nodeType===Ra?Z0(e,n):n.nodeType===Kn||q0(e,n)}function bP(e,n){{var s=e.parentNode;s!==null&&(n.nodeType===Ra?Z0(s,n):n.nodeType===Kn||q0(s,n))}}function xP(e,n,s,c,p){(p||n[hy]!==!0)&&(c.nodeType===Ra?Z0(s,c):c.nodeType===Kn||q0(s,c))}function CP(e,n,s){J0(e,n)}function SP(e,n){Q0(e,n)}function EP(e,n,s){{var c=e.parentNode;c!==null&&J0(c,n)}}function wP(e,n){{var s=e.parentNode;s!==null&&Q0(s,n)}}function RP(e,n,s,c,p,b){(b||n[hy]!==!0)&&J0(s,c)}function _P(e,n,s,c,p){(p||n[hy]!==!0)&&Q0(s,c)}function TP(e){h("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function NP(e){fv(e)}var fp=Math.random().toString(36).slice(2),pp="__reactFiber$"+fp,oC="__reactProps$"+fp,Cv="__reactContainer$"+fp,sC="__reactEvents$"+fp,IP="__reactListeners$"+fp,jP="__reactHandles$"+fp;function AP(e){delete e[pp],delete e[oC],delete e[sC],delete e[IP],delete e[jP]}function Sv(e,n){n[pp]=e}function yy(e,n){n[Cv]=e}function H_(e){e[Cv]=null}function Ev(e){return!!e[Cv]}function Rd(e){var n=e[pp];if(n)return n;for(var s=e.parentNode;s;){if(n=s[Cv]||s[pp],n){var c=n.alternate;if(n.child!==null||c!==null&&c.child!==null)for(var p=U_(e);p!==null;){var b=p[pp];if(b)return b;p=U_(p)}return n}e=s,s=e.parentNode}return null}function Qu(e){var n=e[pp]||e[Cv];return n&&(n.tag===N||n.tag===_||n.tag===z||n.tag===R)?n:null}function hp(e){if(e.tag===N||e.tag===_)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function by(e){return e[oC]||null}function lC(e,n){e[oC]=n}function OP(e){var n=e[sC];return n===void 0&&(n=e[sC]=new Set),n}var G_={},W_=l.ReactDebugCurrentFrame;function xy(e){if(e){var n=e._owner,s=Ut(e.type,e._source,n?n.type:null);W_.setExtraStackFrame(s)}else W_.setExtraStackFrame(null)}function Jo(e,n,s,c,p){{var b=Function.call.bind(ht);for(var E in e)if(b(e,E)){var j=void 0;try{if(typeof e[E]!="function"){var O=Error((c||"React class")+": "+s+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}j=e[E](n,E,c,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){j=B}j&&!(j instanceof Error)&&(xy(p),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,E,typeof j),xy(null)),j instanceof Error&&!(j.message in G_)&&(G_[j.message]=!0,xy(p),h("Failed %s type: %s",s,j.message),xy(null))}}}var uC=[],Cy;Cy=[];var Fl=-1;function Ku(e){return{current:e}}function La(e,n){if(Fl<0){h("Unexpected pop.");return}n!==Cy[Fl]&&h("Unexpected Fiber popped."),e.current=uC[Fl],uC[Fl]=null,Cy[Fl]=null,Fl--}function Pa(e,n,s){Fl++,uC[Fl]=e.current,Cy[Fl]=s,e.current=n}var cC;cC={};var Wi={};Object.freeze(Wi);var Vl=Ku(Wi),Us=Ku(!1),dC=Wi;function vp(e,n,s){return s&&Hs(n)?dC:Vl.current}function X_(e,n,s){{var c=e.stateNode;c.__reactInternalMemoizedUnmaskedChildContext=n,c.__reactInternalMemoizedMaskedChildContext=s}}function mp(e,n){{var s=e.type,c=s.contextTypes;if(!c)return Wi;var p=e.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===n)return p.__reactInternalMemoizedMaskedChildContext;var b={};for(var E in c)b[E]=n[E];{var j=It(e)||"Unknown";Jo(c,b,"context",j)}return p&&X_(e,n,b),b}}function Sy(){return Us.current}function Hs(e){{var n=e.childContextTypes;return n!=null}}function Ey(e){La(Us,e),La(Vl,e)}function fC(e){La(Us,e),La(Vl,e)}function Y_(e,n,s){{if(Vl.current!==Wi)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Pa(Vl,n,e),Pa(Us,s,e)}}function Z_(e,n,s){{var c=e.stateNode,p=n.childContextTypes;if(typeof c.getChildContext!="function"){{var b=It(e)||"Unknown";cC[b]||(cC[b]=!0,h("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",b,b))}return s}var E=c.getChildContext();for(var j in E)if(!(j in p))throw new Error((It(e)||"Unknown")+'.getChildContext(): key "'+j+'" is not defined in childContextTypes.');{var O=It(e)||"Unknown";Jo(p,E,"child context",O)}return Lt({},s,E)}}function wy(e){{var n=e.stateNode,s=n&&n.__reactInternalMemoizedMergedChildContext||Wi;return dC=Vl.current,Pa(Vl,s,e),Pa(Us,Us.current,e),!0}}function q_(e,n,s){{var c=e.stateNode;if(!c)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var p=Z_(e,n,dC);c.__reactInternalMemoizedMergedChildContext=p,La(Us,e),La(Vl,e),Pa(Vl,p,e),Pa(Us,s,e)}else La(Us,e),Pa(Us,s,e)}}function DP(e){{if(!Za(e)||e.tag!==C)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var n=e;do{switch(n.tag){case R:return n.stateNode.context;case C:{var s=n.type;if(Hs(s))return n.stateNode.__reactInternalMemoizedMergedChildContext;break}}n=n.return}while(n!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var ec=0,Ry=1,Bl=null,pC=!1,hC=!1;function J_(e){Bl===null?Bl=[e]:Bl.push(e)}function kP(e){pC=!0,J_(e)}function Q_(){pC&&tc()}function tc(){if(!hC&&Bl!==null){hC=!0;var e=0,n=bi();try{var s=!0,c=Bl;for(nr(dr);e<c.length;e++){var p=c[e];do p=p(s);while(p!==null)}Bl=null,pC=!1}catch(b){throw Bl!==null&&(Bl=Bl.slice(e+1)),kh(ja,tc),b}finally{nr(n),hC=!1}}return null}var gp=[],yp=0,_y=null,Ty=0,go=[],yo=0,_d=null,$l=1,zl="";function MP(e){return Nd(),(e.flags&xg)!==mt}function LP(e){return Nd(),Ty}function PP(){var e=zl,n=$l,s=n&~FP(n);return s.toString(32)+e}function Td(e,n){Nd(),gp[yp++]=Ty,gp[yp++]=_y,_y=e,Ty=n}function K_(e,n,s){Nd(),go[yo++]=$l,go[yo++]=zl,go[yo++]=_d,_d=e;var c=$l,p=zl,b=Ny(c)-1,E=c&~(1<<b),j=s+1,O=Ny(n)+b;if(O>30){var B=b-b%5,H=(1<<B)-1,te=(E&H).toString(32),K=E>>B,fe=b-B,pe=Ny(n)+fe,Ce=j<<fe,tt=Ce|K,yt=te+p;$l=1<<pe|tt,zl=yt}else{var ft=j<<b,Yt=ft|E,zt=p;$l=1<<O|Yt,zl=zt}}function vC(e){Nd();var n=e.return;if(n!==null){var s=1,c=0;Td(e,s),K_(e,s,c)}}function Ny(e){return 32-nd(e)}function FP(e){return 1<<Ny(e)-1}function mC(e){for(;e===_y;)_y=gp[--yp],gp[yp]=null,Ty=gp[--yp],gp[yp]=null;for(;e===_d;)_d=go[--yo],go[yo]=null,zl=go[--yo],go[yo]=null,$l=go[--yo],go[yo]=null}function VP(){return Nd(),_d!==null?{id:$l,overflow:zl}:null}function BP(e,n){Nd(),go[yo++]=$l,go[yo++]=zl,go[yo++]=_d,$l=n.id,zl=n.overflow,_d=e}function Nd(){sa()||h("Expected to be hydrating. This is a bug in React. Please file an issue.")}var oa=null,bo=null,Qo=!1,Id=!1,nc=null;function $P(){Qo&&h("We should not be hydrating here. This is a bug in React. Please file a bug.")}function e1(){Id=!0}function zP(){return Id}function UP(e){var n=e.stateNode.containerInfo;return bo=sP(n),oa=e,Qo=!0,nc=null,Id=!1,!0}function HP(e,n,s){return bo=lP(n),oa=e,Qo=!0,nc=null,Id=!1,s!==null&&BP(e,s),!0}function t1(e,n){switch(e.tag){case R:{yP(e.stateNode.containerInfo,n);break}case N:{var s=(e.mode&dt)!==gt;xP(e.type,e.memoizedProps,e.stateNode,n,s);break}case z:{var c=e.memoizedState;c.dehydrated!==null&&bP(c.dehydrated,n);break}}}function n1(e,n){t1(e,n);var s=XB();s.stateNode=n,s.return=e;var c=e.deletions;c===null?(e.deletions=[s],e.flags|=rn):c.push(s)}function gC(e,n){{if(Id)return;switch(e.tag){case R:{var s=e.stateNode.containerInfo;switch(n.tag){case N:var c=n.type;n.pendingProps,CP(s,c);break;case _:var p=n.pendingProps;SP(s,p);break}break}case N:{var b=e.type,E=e.memoizedProps,j=e.stateNode;switch(n.tag){case N:{var O=n.type,B=n.pendingProps,H=(e.mode&dt)!==gt;RP(b,E,j,O,B,H);break}case _:{var te=n.pendingProps,K=(e.mode&dt)!==gt;_P(b,E,j,te,K);break}}break}case z:{var fe=e.memoizedState,pe=fe.dehydrated;if(pe!==null)switch(n.tag){case N:var Ce=n.type;n.pendingProps,EP(pe,Ce);break;case _:var tt=n.pendingProps;wP(pe,tt);break}break}default:return}}}function r1(e,n){n.flags=n.flags&~so|In,gC(e,n)}function a1(e,n){switch(e.tag){case N:{var s=e.type;e.pendingProps;var c=tP(n,s);return c!==null?(e.stateNode=c,oa=e,bo=oP(c),!0):!1}case _:{var p=e.pendingProps,b=nP(n,p);return b!==null?(e.stateNode=b,oa=e,bo=null,!0):!1}case z:{var E=rP(n);if(E!==null){var j={dehydrated:E,treeContext:VP(),retryLane:Qa};e.memoizedState=j;var O=YB(E);return O.return=e,e.child=O,oa=e,bo=null,!0}return!1}default:return!1}}function yC(e){return(e.mode&dt)!==gt&&(e.flags&jt)===mt}function bC(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function xC(e){if(Qo){var n=bo;if(!n){yC(e)&&(gC(oa,e),bC()),r1(oa,e),Qo=!1,oa=e;return}var s=n;if(!a1(e,n)){yC(e)&&(gC(oa,e),bC()),n=xv(s);var c=oa;if(!n||!a1(e,n)){r1(oa,e),Qo=!1,oa=e;return}n1(c,s)}}}function GP(e,n,s){var c=e.stateNode,p=!Id,b=uP(c,e.type,e.memoizedProps,n,s,e,p);return e.updateQueue=b,b!==null}function WP(e){var n=e.stateNode,s=e.memoizedProps,c=cP(n,s,e);if(c){var p=oa;if(p!==null)switch(p.tag){case R:{var b=p.stateNode.containerInfo,E=(p.mode&dt)!==gt;mP(b,n,s,E);break}case N:{var j=p.type,O=p.memoizedProps,B=p.stateNode,H=(p.mode&dt)!==gt;gP(j,O,B,n,s,H);break}}}return c}function XP(e){var n=e.memoizedState,s=n!==null?n.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");dP(s,e)}function YP(e){var n=e.memoizedState,s=n!==null?n.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return fP(s)}function i1(e){for(var n=e.return;n!==null&&n.tag!==N&&n.tag!==R&&n.tag!==z;)n=n.return;oa=n}function Iy(e){if(e!==oa)return!1;if(!Qo)return i1(e),Qo=!0,!1;if(e.tag!==R&&(e.tag!==N||vP(e.type)&&!tC(e.type,e.memoizedProps))){var n=bo;if(n)if(yC(e))o1(e),bC();else for(;n;)n1(e,n),n=xv(n)}return i1(e),e.tag===z?bo=YP(e):bo=oa?xv(e.stateNode):null,!0}function ZP(){return Qo&&bo!==null}function o1(e){for(var n=bo;n;)t1(e,n),n=xv(n)}function bp(){oa=null,bo=null,Qo=!1,Id=!1}function s1(){nc!==null&&(tN(nc),nc=null)}function sa(){return Qo}function CC(e){nc===null?nc=[e]:nc.push(e)}var qP=l.ReactCurrentBatchConfig,JP=null;function QP(){return qP.transition}var Ko={recordUnsafeLifecycleWarnings:function(e,n){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,n){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var KP=function(e){for(var n=null,s=e;s!==null;)s.mode&er&&(n=s),s=s.return;return n},jd=function(e){var n=[];return e.forEach(function(s){n.push(s)}),n.sort().join(", ")},wv=[],Rv=[],_v=[],Tv=[],Nv=[],Iv=[],Ad=new Set;Ko.recordUnsafeLifecycleWarnings=function(e,n){Ad.has(e.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&wv.push(e),e.mode&er&&typeof n.UNSAFE_componentWillMount=="function"&&Rv.push(e),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&_v.push(e),e.mode&er&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&Tv.push(e),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&Nv.push(e),e.mode&er&&typeof n.UNSAFE_componentWillUpdate=="function"&&Iv.push(e))},Ko.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;wv.length>0&&(wv.forEach(function(K){e.add(It(K)||"Component"),Ad.add(K.type)}),wv=[]);var n=new Set;Rv.length>0&&(Rv.forEach(function(K){n.add(It(K)||"Component"),Ad.add(K.type)}),Rv=[]);var s=new Set;_v.length>0&&(_v.forEach(function(K){s.add(It(K)||"Component"),Ad.add(K.type)}),_v=[]);var c=new Set;Tv.length>0&&(Tv.forEach(function(K){c.add(It(K)||"Component"),Ad.add(K.type)}),Tv=[]);var p=new Set;Nv.length>0&&(Nv.forEach(function(K){p.add(It(K)||"Component"),Ad.add(K.type)}),Nv=[]);var b=new Set;if(Iv.length>0&&(Iv.forEach(function(K){b.add(It(K)||"Component"),Ad.add(K.type)}),Iv=[]),n.size>0){var E=jd(n);h(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
126
-
127
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
128
-
129
- Please update the following components: %s`,E)}if(c.size>0){var j=jd(c);h(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
130
-
131
- * Move data fetching code or side effects to componentDidUpdate.
132
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
133
-
134
- Please update the following components: %s`,j)}if(b.size>0){var O=jd(b);h(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
135
-
136
- * Move data fetching code or side effects to componentDidUpdate.
137
-
138
- Please update the following components: %s`,O)}if(e.size>0){var B=jd(e);m(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
139
-
140
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
141
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
142
-
143
- Please update the following components: %s`,B)}if(s.size>0){var H=jd(s);m(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
144
-
145
- * Move data fetching code or side effects to componentDidUpdate.
146
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
147
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
148
-
149
- Please update the following components: %s`,H)}if(p.size>0){var te=jd(p);m(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
150
-
151
- * Move data fetching code or side effects to componentDidUpdate.
152
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
153
-
154
- Please update the following components: %s`,te)}};var jy=new Map,l1=new Set;Ko.recordLegacyContextWarning=function(e,n){var s=KP(e);if(s===null){h("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!l1.has(e.type)){var c=jy.get(s);(e.type.contextTypes!=null||e.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(c===void 0&&(c=[],jy.set(s,c)),c.push(e))}},Ko.flushLegacyContextWarning=function(){jy.forEach(function(e,n){if(e.length!==0){var s=e[0],c=new Set;e.forEach(function(b){c.add(It(b)||"Component"),l1.add(b.type)});var p=jd(c);try{Yn(s),h(`Legacy context API has been detected within a strict-mode tree.
155
-
156
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
157
-
158
- Please update the following components: %s
159
-
160
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,p)}finally{Vn()}}})},Ko.discardPendingWarnings=function(){wv=[],Rv=[],_v=[],Tv=[],Nv=[],Iv=[],jy=new Map}}function es(e,n){if(e&&e.defaultProps){var s=Lt({},n),c=e.defaultProps;for(var p in c)s[p]===void 0&&(s[p]=c[p]);return s}return n}var SC=Ku(null),EC;EC={};var Ay=null,xp=null,wC=null,Oy=!1;function Dy(){Ay=null,xp=null,wC=null,Oy=!1}function u1(){Oy=!0}function c1(){Oy=!1}function d1(e,n,s){Pa(SC,n._currentValue,e),n._currentValue=s,n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==EC&&h("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=EC}function RC(e,n){var s=SC.current;La(SC,n),e._currentValue=s}function _C(e,n,s){for(var c=e;c!==null;){var p=c.alternate;if(jl(c.childLanes,n)?p!==null&&!jl(p.childLanes,n)&&(p.childLanes=Dt(p.childLanes,n)):(c.childLanes=Dt(c.childLanes,n),p!==null&&(p.childLanes=Dt(p.childLanes,n))),c===s)break;c=c.return}c!==s&&h("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function eF(e,n,s){tF(e,n,s)}function tF(e,n,s){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var p=void 0,b=c.dependencies;if(b!==null){p=c.child;for(var E=b.firstContext;E!==null;){if(E.context===n){if(c.tag===C){var j=ku(s),O=Ul(Ln,j);O.tag=My;var B=c.updateQueue;if(B!==null){var H=B.shared,te=H.pending;te===null?O.next=O:(O.next=te.next,te.next=O),H.pending=O}}c.lanes=Dt(c.lanes,s);var K=c.alternate;K!==null&&(K.lanes=Dt(K.lanes,s)),_C(c.return,s,e),b.lanes=Dt(b.lanes,s);break}E=E.next}}else if(c.tag===V)p=c.type===e.type?null:c.child;else if(c.tag===me){var fe=c.return;if(fe===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");fe.lanes=Dt(fe.lanes,s);var pe=fe.alternate;pe!==null&&(pe.lanes=Dt(pe.lanes,s)),_C(fe,s,e),p=c.sibling}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===e){p=null;break}var Ce=p.sibling;if(Ce!==null){Ce.return=p.return,p=Ce;break}p=p.return}c=p}}function Cp(e,n){Ay=e,xp=null,wC=null;var s=e.dependencies;if(s!==null){var c=s.firstContext;c!==null&&(ka(s.lanes,n)&&Uv(),s.firstContext=null)}}function kr(e){Oy&&h("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var n=e._currentValue;if(wC!==e){var s={context:e,memoizedValue:n,next:null};if(xp===null){if(Ay===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");xp=s,Ay.dependencies={lanes:Re,firstContext:s}}else xp=xp.next=s}return n}var Od=null;function TC(e){Od===null?Od=[e]:Od.push(e)}function nF(){if(Od!==null){for(var e=0;e<Od.length;e++){var n=Od[e],s=n.interleaved;if(s!==null){n.interleaved=null;var c=s.next,p=n.pending;if(p!==null){var b=p.next;p.next=c,s.next=b}n.pending=s}}Od=null}}function f1(e,n,s,c){var p=n.interleaved;return p===null?(s.next=s,TC(n)):(s.next=p.next,p.next=s),n.interleaved=s,ky(e,c)}function rF(e,n,s,c){var p=n.interleaved;p===null?(s.next=s,TC(n)):(s.next=p.next,p.next=s),n.interleaved=s}function aF(e,n,s,c){var p=n.interleaved;return p===null?(s.next=s,TC(n)):(s.next=p.next,p.next=s),n.interleaved=s,ky(e,c)}function Ri(e,n){return ky(e,n)}var iF=ky;function ky(e,n){e.lanes=Dt(e.lanes,n);var s=e.alternate;s!==null&&(s.lanes=Dt(s.lanes,n)),s===null&&(e.flags&(In|so))!==mt&&pN(e);for(var c=e,p=e.return;p!==null;)p.childLanes=Dt(p.childLanes,n),s=p.alternate,s!==null?s.childLanes=Dt(s.childLanes,n):(p.flags&(In|so))!==mt&&pN(e),c=p,p=p.return;if(c.tag===R){var b=c.stateNode;return b}else return null}var p1=0,h1=1,My=2,NC=3,Ly=!1,IC,Py;IC=!1,Py=null;function jC(e){var n={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Re},effects:null};e.updateQueue=n}function v1(e,n){var s=n.updateQueue,c=e.updateQueue;if(s===c){var p={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects};n.updateQueue=p}}function Ul(e,n){var s={eventTime:e,lane:n,tag:p1,payload:null,callback:null,next:null};return s}function rc(e,n,s){var c=e.updateQueue;if(c===null)return null;var p=c.shared;if(Py===p&&!IC&&(h("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),IC=!0),iB()){var b=p.pending;return b===null?n.next=n:(n.next=b.next,b.next=n),p.pending=n,iF(e,s)}else return aF(e,p,n,s)}function Fy(e,n,s){var c=n.updateQueue;if(c!==null){var p=c.shared;if(Gh(s)){var b=p.lanes;b=Vf(b,e.pendingLanes);var E=Dt(b,s);p.lanes=E,Wh(e,E)}}}function AC(e,n){var s=e.updateQueue,c=e.alternate;if(c!==null){var p=c.updateQueue;if(s===p){var b=null,E=null,j=s.firstBaseUpdate;if(j!==null){var O=j;do{var B={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};E===null?b=E=B:(E.next=B,E=B),O=O.next}while(O!==null);E===null?b=E=n:(E.next=n,E=n)}else b=E=n;s={baseState:p.baseState,firstBaseUpdate:b,lastBaseUpdate:E,shared:p.shared,effects:p.effects},e.updateQueue=s;return}}var H=s.lastBaseUpdate;H===null?s.firstBaseUpdate=n:H.next=n,s.lastBaseUpdate=n}function oF(e,n,s,c,p,b){switch(s.tag){case h1:{var E=s.payload;if(typeof E=="function"){u1();var j=E.call(b,c,p);{if(e.mode&er){Mn(!0);try{E.call(b,c,p)}finally{Mn(!1)}}c1()}return j}return E}case NC:e.flags=e.flags&~Pr|jt;case p1:{var O=s.payload,B;if(typeof O=="function"){u1(),B=O.call(b,c,p);{if(e.mode&er){Mn(!0);try{O.call(b,c,p)}finally{Mn(!1)}}c1()}}else B=O;return B==null?c:Lt({},c,B)}case My:return Ly=!0,c}return c}function Vy(e,n,s,c){var p=e.updateQueue;Ly=!1,Py=p.shared;var b=p.firstBaseUpdate,E=p.lastBaseUpdate,j=p.shared.pending;if(j!==null){p.shared.pending=null;var O=j,B=O.next;O.next=null,E===null?b=B:E.next=B,E=O;var H=e.alternate;if(H!==null){var te=H.updateQueue,K=te.lastBaseUpdate;K!==E&&(K===null?te.firstBaseUpdate=B:K.next=B,te.lastBaseUpdate=O)}}if(b!==null){var fe=p.baseState,pe=Re,Ce=null,tt=null,yt=null,ft=b;do{var Yt=ft.lane,zt=ft.eventTime;if(jl(c,Yt)){if(yt!==null){var Se={eventTime:zt,lane:ur,tag:ft.tag,payload:ft.payload,callback:ft.callback,next:null};yt=yt.next=Se}fe=oF(e,p,ft,fe,n,s);var le=ft.callback;if(le!==null&&ft.lane!==ur){e.flags|=jr;var $e=p.effects;$e===null?p.effects=[ft]:$e.push(ft)}}else{var se={eventTime:zt,lane:Yt,tag:ft.tag,payload:ft.payload,callback:ft.callback,next:null};yt===null?(tt=yt=se,Ce=fe):yt=yt.next=se,pe=Dt(pe,Yt)}if(ft=ft.next,ft===null){if(j=p.shared.pending,j===null)break;var nt=j,Je=nt.next;nt.next=null,ft=Je,p.lastBaseUpdate=nt,p.shared.pending=null}}while(!0);yt===null&&(Ce=fe),p.baseState=Ce,p.firstBaseUpdate=tt,p.lastBaseUpdate=yt;var Nt=p.shared.interleaved;if(Nt!==null){var Ot=Nt;do pe=Dt(pe,Ot.lane),Ot=Ot.next;while(Ot!==Nt)}else b===null&&(p.shared.lanes=Re);tm(pe),e.lanes=pe,e.memoizedState=fe}Py=null}function sF(e,n){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(n)}function m1(){Ly=!1}function By(){return Ly}function g1(e,n,s){var c=n.effects;if(n.effects=null,c!==null)for(var p=0;p<c.length;p++){var b=c[p],E=b.callback;E!==null&&(b.callback=null,sF(E,s))}}var OC={},y1=new r.Component().refs,DC,kC,MC,LC,PC,b1,$y,FC,VC,BC;{DC=new Set,kC=new Set,MC=new Set,LC=new Set,FC=new Set,PC=new Set,VC=new Set,BC=new Set;var x1=new Set;$y=function(e,n){if(!(e===null||typeof e=="function")){var s=n+"_"+e;x1.has(s)||(x1.add(s),h("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,e))}},b1=function(e,n){if(n===void 0){var s=Jt(e)||"Component";PC.has(s)||(PC.add(s),h("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(OC,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(OC)}function $C(e,n,s,c){var p=e.memoizedState,b=s(c,p);{if(e.mode&er){Mn(!0);try{b=s(c,p)}finally{Mn(!1)}}b1(n,b)}var E=b==null?p:Lt({},p,b);if(e.memoizedState=E,e.lanes===Re){var j=e.updateQueue;j.baseState=E}}var zC={isMounted:qa,enqueueSetState:function(e,n,s){var c=oo(e),p=ti(),b=dc(c),E=Ul(p,b);E.payload=n,s!=null&&($y(s,"setState"),E.callback=s);var j=rc(c,E,b);j!==null&&(Xr(j,c,b,p),Fy(j,c,b)),Ef(c,b)},enqueueReplaceState:function(e,n,s){var c=oo(e),p=ti(),b=dc(c),E=Ul(p,b);E.tag=h1,E.payload=n,s!=null&&($y(s,"replaceState"),E.callback=s);var j=rc(c,E,b);j!==null&&(Xr(j,c,b,p),Fy(j,c,b)),Ef(c,b)},enqueueForceUpdate:function(e,n){var s=oo(e),c=ti(),p=dc(s),b=Ul(c,p);b.tag=My,n!=null&&($y(n,"forceUpdate"),b.callback=n);var E=rc(s,b,p);E!==null&&(Xr(E,s,p,c),Fy(E,s,p)),ju(s,p)}};function C1(e,n,s,c,p,b,E){var j=e.stateNode;if(typeof j.shouldComponentUpdate=="function"){var O=j.shouldComponentUpdate(c,b,E);{if(e.mode&er){Mn(!0);try{O=j.shouldComponentUpdate(c,b,E)}finally{Mn(!1)}}O===void 0&&h("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Jt(n)||"Component")}return O}return n.prototype&&n.prototype.isPureReactComponent?!wt(s,c)||!wt(p,b):!0}function lF(e,n,s){var c=e.stateNode;{var p=Jt(n)||"Component",b=c.render;b||(n.prototype&&typeof n.prototype.render=="function"?h("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",p):h("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",p)),c.getInitialState&&!c.getInitialState.isReactClassApproved&&!c.state&&h("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",p),c.getDefaultProps&&!c.getDefaultProps.isReactClassApproved&&h("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",p),c.propTypes&&h("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",p),c.contextType&&h("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",p),c.contextTypes&&h("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",p),n.contextType&&n.contextTypes&&!VC.has(n)&&(VC.add(n),h("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",p)),typeof c.componentShouldUpdate=="function"&&h("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",p),n.prototype&&n.prototype.isPureReactComponent&&typeof c.shouldComponentUpdate<"u"&&h("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Jt(n)||"A pure component"),typeof c.componentDidUnmount=="function"&&h("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",p),typeof c.componentDidReceiveProps=="function"&&h("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",p),typeof c.componentWillRecieveProps=="function"&&h("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",p),typeof c.UNSAFE_componentWillRecieveProps=="function"&&h("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",p);var E=c.props!==s;c.props!==void 0&&E&&h("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",p,p),c.defaultProps&&h("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",p,p),typeof c.getSnapshotBeforeUpdate=="function"&&typeof c.componentDidUpdate!="function"&&!MC.has(n)&&(MC.add(n),h("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Jt(n))),typeof c.getDerivedStateFromProps=="function"&&h("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof c.getDerivedStateFromError=="function"&&h("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof n.getSnapshotBeforeUpdate=="function"&&h("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",p);var j=c.state;j&&(typeof j!="object"||Qt(j))&&h("%s.state: must be set to an object or null",p),typeof c.getChildContext=="function"&&typeof n.childContextTypes!="object"&&h("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",p)}}function S1(e,n){n.updater=zC,e.stateNode=n,vf(n,e),n._reactInternalInstance=OC}function E1(e,n,s){var c=!1,p=Wi,b=Wi,E=n.contextType;if("contextType"in n){var j=E===null||E!==void 0&&E.$$typeof===Ge&&E._context===void 0;if(!j&&!BC.has(n)){BC.add(n);var O="";E===void 0?O=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof E!="object"?O=" However, it is set to a "+typeof E+".":E.$$typeof===Pe?O=" Did you accidentally pass the Context.Provider instead?":E._context!==void 0?O=" Did you accidentally pass the Context.Consumer instead?":O=" However, it is set to an object with keys {"+Object.keys(E).join(", ")+"}.",h("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Jt(n)||"Component",O)}}if(typeof E=="object"&&E!==null)b=kr(E);else{p=vp(e,n,!0);var B=n.contextTypes;c=B!=null,b=c?mp(e,p):Wi}var H=new n(s,b);if(e.mode&er){Mn(!0);try{H=new n(s,b)}finally{Mn(!1)}}var te=e.memoizedState=H.state!==null&&H.state!==void 0?H.state:null;S1(e,H);{if(typeof n.getDerivedStateFromProps=="function"&&te===null){var K=Jt(n)||"Component";kC.has(K)||(kC.add(K),h("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",K,H.state===null?"null":"undefined",K))}if(typeof n.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var fe=null,pe=null,Ce=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?fe="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(fe="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?pe="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(pe="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?Ce="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(Ce="UNSAFE_componentWillUpdate"),fe!==null||pe!==null||Ce!==null){var tt=Jt(n)||"Component",yt=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";LC.has(tt)||(LC.add(tt),h(`Unsafe legacy lifecycles will not be called for components using new component APIs.
161
-
162
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
163
-
164
- The above lifecycles should be removed. Learn more about this warning here:
165
- https://reactjs.org/link/unsafe-component-lifecycles`,tt,yt,fe!==null?`
166
- `+fe:"",pe!==null?`
167
- `+pe:"",Ce!==null?`
168
- `+Ce:""))}}}return c&&X_(e,p,b),H}function uF(e,n){var s=n.state;typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),s!==n.state&&(h("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",It(e)||"Component"),zC.enqueueReplaceState(n,n.state,null))}function w1(e,n,s,c){var p=n.state;if(typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,c),n.state!==p){{var b=It(e)||"Component";DC.has(b)||(DC.add(b),h("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",b))}zC.enqueueReplaceState(n,n.state,null)}}function UC(e,n,s,c){lF(e,n,s);var p=e.stateNode;p.props=s,p.state=e.memoizedState,p.refs=y1,jC(e);var b=n.contextType;if(typeof b=="object"&&b!==null)p.context=kr(b);else{var E=vp(e,n,!0);p.context=mp(e,E)}{if(p.state===s){var j=Jt(n)||"Component";FC.has(j)||(FC.add(j),h("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",j))}e.mode&er&&Ko.recordLegacyContextWarning(e,p),Ko.recordUnsafeLifecycleWarnings(e,p)}p.state=e.memoizedState;var O=n.getDerivedStateFromProps;if(typeof O=="function"&&($C(e,n,O,s),p.state=e.memoizedState),typeof n.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(uF(e,p),Vy(e,s,p,c),p.state=e.memoizedState),typeof p.componentDidMount=="function"){var B=ut;B|=pi,(e.mode&gi)!==gt&&(B|=hi),e.flags|=B}}function cF(e,n,s,c){var p=e.stateNode,b=e.memoizedProps;p.props=b;var E=p.context,j=n.contextType,O=Wi;if(typeof j=="object"&&j!==null)O=kr(j);else{var B=vp(e,n,!0);O=mp(e,B)}var H=n.getDerivedStateFromProps,te=typeof H=="function"||typeof p.getSnapshotBeforeUpdate=="function";!te&&(typeof p.UNSAFE_componentWillReceiveProps=="function"||typeof p.componentWillReceiveProps=="function")&&(b!==s||E!==O)&&w1(e,p,s,O),m1();var K=e.memoizedState,fe=p.state=K;if(Vy(e,s,p,c),fe=e.memoizedState,b===s&&K===fe&&!Sy()&&!By()){if(typeof p.componentDidMount=="function"){var pe=ut;pe|=pi,(e.mode&gi)!==gt&&(pe|=hi),e.flags|=pe}return!1}typeof H=="function"&&($C(e,n,H,s),fe=e.memoizedState);var Ce=By()||C1(e,n,b,s,K,fe,O);if(Ce){if(!te&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"){var tt=ut;tt|=pi,(e.mode&gi)!==gt&&(tt|=hi),e.flags|=tt}}else{if(typeof p.componentDidMount=="function"){var yt=ut;yt|=pi,(e.mode&gi)!==gt&&(yt|=hi),e.flags|=yt}e.memoizedProps=s,e.memoizedState=fe}return p.props=s,p.state=fe,p.context=O,Ce}function dF(e,n,s,c,p){var b=n.stateNode;v1(e,n);var E=n.memoizedProps,j=n.type===n.elementType?E:es(n.type,E);b.props=j;var O=n.pendingProps,B=b.context,H=s.contextType,te=Wi;if(typeof H=="object"&&H!==null)te=kr(H);else{var K=vp(n,s,!0);te=mp(n,K)}var fe=s.getDerivedStateFromProps,pe=typeof fe=="function"||typeof b.getSnapshotBeforeUpdate=="function";!pe&&(typeof b.UNSAFE_componentWillReceiveProps=="function"||typeof b.componentWillReceiveProps=="function")&&(E!==O||B!==te)&&w1(n,b,c,te),m1();var Ce=n.memoizedState,tt=b.state=Ce;if(Vy(n,c,b,p),tt=n.memoizedState,E===O&&Ce===tt&&!Sy()&&!By()&&!G)return typeof b.componentDidUpdate=="function"&&(E!==e.memoizedProps||Ce!==e.memoizedState)&&(n.flags|=ut),typeof b.getSnapshotBeforeUpdate=="function"&&(E!==e.memoizedProps||Ce!==e.memoizedState)&&(n.flags|=mr),!1;typeof fe=="function"&&($C(n,s,fe,c),tt=n.memoizedState);var yt=By()||C1(n,s,j,c,Ce,tt,te)||G;return yt?(!pe&&(typeof b.UNSAFE_componentWillUpdate=="function"||typeof b.componentWillUpdate=="function")&&(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(c,tt,te),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(c,tt,te)),typeof b.componentDidUpdate=="function"&&(n.flags|=ut),typeof b.getSnapshotBeforeUpdate=="function"&&(n.flags|=mr)):(typeof b.componentDidUpdate=="function"&&(E!==e.memoizedProps||Ce!==e.memoizedState)&&(n.flags|=ut),typeof b.getSnapshotBeforeUpdate=="function"&&(E!==e.memoizedProps||Ce!==e.memoizedState)&&(n.flags|=mr),n.memoizedProps=c,n.memoizedState=tt),b.props=c,b.state=tt,b.context=te,yt}var HC,GC,WC,XC,YC,R1=function(e,n){};HC=!1,GC=!1,WC={},XC={},YC={},R1=function(e,n){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var s=It(n)||"Component";XC[s]||(XC[s]=!0,h('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function jv(e,n,s){var c=s.ref;if(c!==null&&typeof c!="function"&&typeof c!="object"){if((e.mode&er||_e)&&!(s._owner&&s._self&&s._owner.stateNode!==s._self)){var p=It(e)||"Component";WC[p]||(h('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',c),WC[p]=!0)}if(s._owner){var b=s._owner,E;if(b){var j=b;if(j.tag!==C)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");E=j.stateNode}if(!E)throw new Error("Missing owner for string ref "+c+". This error is likely caused by a bug in React. Please file an issue.");var O=E;Cn(c,"ref");var B=""+c;if(n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===B)return n.ref;var H=function(te){var K=O.refs;K===y1&&(K=O.refs={}),te===null?delete K[B]:K[B]=te};return H._stringRef=B,H}else{if(typeof c!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!s._owner)throw new Error("Element ref was specified as a string ("+c+`) but no owner was set. This could happen for one of the following reasons:
169
- 1. You may be adding a ref to a function component
170
- 2. You may be adding a ref to a component that was not created inside a component's render method
171
- 3. You have multiple copies of React loaded
172
- See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return c}function zy(e,n){var s=Object.prototype.toString.call(n);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function Uy(e){{var n=It(e)||"Component";if(YC[n])return;YC[n]=!0,h("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function _1(e){var n=e._payload,s=e._init;return s(n)}function T1(e){function n(se,Se){if(e){var le=se.deletions;le===null?(se.deletions=[Se],se.flags|=rn):le.push(Se)}}function s(se,Se){if(!e)return null;for(var le=Se;le!==null;)n(se,le),le=le.sibling;return null}function c(se,Se){for(var le=new Map,$e=Se;$e!==null;)$e.key!==null?le.set($e.key,$e):le.set($e.index,$e),$e=$e.sibling;return le}function p(se,Se){var le=Bd(se,Se);return le.index=0,le.sibling=null,le}function b(se,Se,le){if(se.index=le,!e)return se.flags|=xg,Se;var $e=se.alternate;if($e!==null){var nt=$e.index;return nt<Se?(se.flags|=In,Se):nt}else return se.flags|=In,Se}function E(se){return e&&se.alternate===null&&(se.flags|=In),se}function j(se,Se,le,$e){if(Se===null||Se.tag!==_){var nt=CE(le,se.mode,$e);return nt.return=se,nt}else{var Je=p(Se,le);return Je.return=se,Je}}function O(se,Se,le,$e){var nt=le.type;if(nt===Ga)return H(se,Se,le.props.children,$e,le.key);if(Se!==null&&(Se.elementType===nt||gN(Se,le)||typeof nt=="object"&&nt!==null&&nt.$$typeof===vt&&_1(nt)===Se.type)){var Je=p(Se,le.props);return Je.ref=jv(se,Se,le),Je.return=se,Je._debugSource=le._source,Je._debugOwner=le._owner,Je}var Nt=xE(le,se.mode,$e);return Nt.ref=jv(se,Se,le),Nt.return=se,Nt}function B(se,Se,le,$e){if(Se===null||Se.tag!==A||Se.stateNode.containerInfo!==le.containerInfo||Se.stateNode.implementation!==le.implementation){var nt=SE(le,se.mode,$e);return nt.return=se,nt}else{var Je=p(Se,le.children||[]);return Je.return=se,Je}}function H(se,Se,le,$e,nt){if(Se===null||Se.tag!==I){var Je=pc(le,se.mode,$e,nt);return Je.return=se,Je}else{var Nt=p(Se,le);return Nt.return=se,Nt}}function te(se,Se,le){if(typeof Se=="string"&&Se!==""||typeof Se=="number"){var $e=CE(""+Se,se.mode,le);return $e.return=se,$e}if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case ba:{var nt=xE(Se,se.mode,le);return nt.ref=jv(se,null,Se),nt.return=se,nt}case xa:{var Je=SE(Se,se.mode,le);return Je.return=se,Je}case vt:{var Nt=Se._payload,Ot=Se._init;return te(se,Ot(Nt),le)}}if(Qt(Se)||to(Se)){var En=pc(Se,se.mode,le,null);return En.return=se,En}zy(se,Se)}return typeof Se=="function"&&Uy(se),null}function K(se,Se,le,$e){var nt=Se!==null?Se.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return nt!==null?null:j(se,Se,""+le,$e);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case ba:return le.key===nt?O(se,Se,le,$e):null;case xa:return le.key===nt?B(se,Se,le,$e):null;case vt:{var Je=le._payload,Nt=le._init;return K(se,Se,Nt(Je),$e)}}if(Qt(le)||to(le))return nt!==null?null:H(se,Se,le,$e,null);zy(se,le)}return typeof le=="function"&&Uy(se),null}function fe(se,Se,le,$e,nt){if(typeof $e=="string"&&$e!==""||typeof $e=="number"){var Je=se.get(le)||null;return j(Se,Je,""+$e,nt)}if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case ba:{var Nt=se.get($e.key===null?le:$e.key)||null;return O(Se,Nt,$e,nt)}case xa:{var Ot=se.get($e.key===null?le:$e.key)||null;return B(Se,Ot,$e,nt)}case vt:var En=$e._payload,on=$e._init;return fe(se,Se,le,on(En),nt)}if(Qt($e)||to($e)){var Rr=se.get(le)||null;return H(Se,Rr,$e,nt,null)}zy(Se,$e)}return typeof $e=="function"&&Uy(Se),null}function pe(se,Se,le){{if(typeof se!="object"||se===null)return Se;switch(se.$$typeof){case ba:case xa:R1(se,le);var $e=se.key;if(typeof $e!="string")break;if(Se===null){Se=new Set,Se.add($e);break}if(!Se.has($e)){Se.add($e);break}h("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",$e);break;case vt:var nt=se._payload,Je=se._init;pe(Je(nt),Se,le);break}}return Se}function Ce(se,Se,le,$e){for(var nt=null,Je=0;Je<le.length;Je++){var Nt=le[Je];nt=pe(Nt,nt,se)}for(var Ot=null,En=null,on=Se,Rr=0,sn=0,yr=null;on!==null&&sn<le.length;sn++){on.index>sn?(yr=on,on=null):yr=on.sibling;var Va=K(se,on,le[sn],$e);if(Va===null){on===null&&(on=yr);break}e&&on&&Va.alternate===null&&n(se,on),Rr=b(Va,Rr,sn),En===null?Ot=Va:En.sibling=Va,En=Va,on=yr}if(sn===le.length){if(s(se,on),sa()){var ha=sn;Td(se,ha)}return Ot}if(on===null){for(;sn<le.length;sn++){var Yi=te(se,le[sn],$e);Yi!==null&&(Rr=b(Yi,Rr,sn),En===null?Ot=Yi:En.sibling=Yi,En=Yi)}if(sa()){var ni=sn;Td(se,ni)}return Ot}for(var ri=c(se,on);sn<le.length;sn++){var Ba=fe(ri,se,sn,le[sn],$e);Ba!==null&&(e&&Ba.alternate!==null&&ri.delete(Ba.key===null?sn:Ba.key),Rr=b(Ba,Rr,sn),En===null?Ot=Ba:En.sibling=Ba,En=Ba)}if(e&&ri.forEach(function(Fp){return n(se,Fp)}),sa()){var Zl=sn;Td(se,Zl)}return Ot}function tt(se,Se,le,$e){var nt=to(le);if(typeof nt!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&le[Symbol.toStringTag]==="Generator"&&(GC||h("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),GC=!0),le.entries===nt&&(HC||h("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),HC=!0);var Je=nt.call(le);if(Je)for(var Nt=null,Ot=Je.next();!Ot.done;Ot=Je.next()){var En=Ot.value;Nt=pe(En,Nt,se)}}var on=nt.call(le);if(on==null)throw new Error("An iterable object provided no iterator.");for(var Rr=null,sn=null,yr=Se,Va=0,ha=0,Yi=null,ni=on.next();yr!==null&&!ni.done;ha++,ni=on.next()){yr.index>ha?(Yi=yr,yr=null):Yi=yr.sibling;var ri=K(se,yr,ni.value,$e);if(ri===null){yr===null&&(yr=Yi);break}e&&yr&&ri.alternate===null&&n(se,yr),Va=b(ri,Va,ha),sn===null?Rr=ri:sn.sibling=ri,sn=ri,yr=Yi}if(ni.done){if(s(se,yr),sa()){var Ba=ha;Td(se,Ba)}return Rr}if(yr===null){for(;!ni.done;ha++,ni=on.next()){var Zl=te(se,ni.value,$e);Zl!==null&&(Va=b(Zl,Va,ha),sn===null?Rr=Zl:sn.sibling=Zl,sn=Zl)}if(sa()){var Fp=ha;Td(se,Fp)}return Rr}for(var om=c(se,yr);!ni.done;ha++,ni=on.next()){var Qs=fe(om,se,ha,ni.value,$e);Qs!==null&&(e&&Qs.alternate!==null&&om.delete(Qs.key===null?ha:Qs.key),Va=b(Qs,Va,ha),sn===null?Rr=Qs:sn.sibling=Qs,sn=Qs)}if(e&&om.forEach(function(R$){return n(se,R$)}),sa()){var w$=ha;Td(se,w$)}return Rr}function yt(se,Se,le,$e){if(Se!==null&&Se.tag===_){s(se,Se.sibling);var nt=p(Se,le);return nt.return=se,nt}s(se,Se);var Je=CE(le,se.mode,$e);return Je.return=se,Je}function ft(se,Se,le,$e){for(var nt=le.key,Je=Se;Je!==null;){if(Je.key===nt){var Nt=le.type;if(Nt===Ga){if(Je.tag===I){s(se,Je.sibling);var Ot=p(Je,le.props.children);return Ot.return=se,Ot._debugSource=le._source,Ot._debugOwner=le._owner,Ot}}else if(Je.elementType===Nt||gN(Je,le)||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===vt&&_1(Nt)===Je.type){s(se,Je.sibling);var En=p(Je,le.props);return En.ref=jv(se,Je,le),En.return=se,En._debugSource=le._source,En._debugOwner=le._owner,En}s(se,Je);break}else n(se,Je);Je=Je.sibling}if(le.type===Ga){var on=pc(le.props.children,se.mode,$e,le.key);return on.return=se,on}else{var Rr=xE(le,se.mode,$e);return Rr.ref=jv(se,Se,le),Rr.return=se,Rr}}function Yt(se,Se,le,$e){for(var nt=le.key,Je=Se;Je!==null;){if(Je.key===nt)if(Je.tag===A&&Je.stateNode.containerInfo===le.containerInfo&&Je.stateNode.implementation===le.implementation){s(se,Je.sibling);var Nt=p(Je,le.children||[]);return Nt.return=se,Nt}else{s(se,Je);break}else n(se,Je);Je=Je.sibling}var Ot=SE(le,se.mode,$e);return Ot.return=se,Ot}function zt(se,Se,le,$e){var nt=typeof le=="object"&&le!==null&&le.type===Ga&&le.key===null;if(nt&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case ba:return E(ft(se,Se,le,$e));case xa:return E(Yt(se,Se,le,$e));case vt:var Je=le._payload,Nt=le._init;return zt(se,Se,Nt(Je),$e)}if(Qt(le))return Ce(se,Se,le,$e);if(to(le))return tt(se,Se,le,$e);zy(se,le)}return typeof le=="string"&&le!==""||typeof le=="number"?E(yt(se,Se,""+le,$e)):(typeof le=="function"&&Uy(se),s(se,Se))}return zt}var Sp=T1(!0),N1=T1(!1);function fF(e,n){if(e!==null&&n.child!==e.child)throw new Error("Resuming work not yet implemented.");if(n.child!==null){var s=n.child,c=Bd(s,s.pendingProps);for(n.child=c,c.return=n;s.sibling!==null;)s=s.sibling,c=c.sibling=Bd(s,s.pendingProps),c.return=n;c.sibling=null}}function pF(e,n){for(var s=e.child;s!==null;)zB(s,n),s=s.sibling}var Av={},ac=Ku(Av),Ov=Ku(Av),Hy=Ku(Av);function Gy(e){if(e===Av)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function I1(){var e=Gy(Hy.current);return e}function ZC(e,n){Pa(Hy,n,e),Pa(Ov,e,e),Pa(ac,Av,e);var s=TL(n);La(ac,e),Pa(ac,s,e)}function Ep(e){La(ac,e),La(Ov,e),La(Hy,e)}function qC(){var e=Gy(ac.current);return e}function j1(e){Gy(Hy.current);var n=Gy(ac.current),s=NL(n,e.type);n!==s&&(Pa(Ov,e,e),Pa(ac,s,e))}function JC(e){Ov.current===e&&(La(ac,e),La(Ov,e))}var hF=0,A1=1,O1=1,Dv=2,ts=Ku(hF);function QC(e,n){return(e&n)!==0}function wp(e){return e&A1}function KC(e,n){return e&A1|n}function vF(e,n){return e|n}function ic(e,n){Pa(ts,n,e)}function Rp(e){La(ts,e)}function mF(e,n){var s=e.memoizedState;return s!==null?s.dehydrated!==null:(e.memoizedProps,!0)}function Wy(e){for(var n=e;n!==null;){if(n.tag===z){var s=n.memoizedState;if(s!==null){var c=s.dehydrated;if(c===null||z_(c)||iC(c))return n}}else if(n.tag===ae&&n.memoizedProps.revealOrder!==void 0){var p=(n.flags&jt)!==mt;if(p)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return null;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var _i=0,Br=1,Gs=2,$r=4,la=8,eS=[];function tS(){for(var e=0;e<eS.length;e++){var n=eS[e];n._workInProgressVersionPrimary=null}eS.length=0}function gF(e,n){var s=n._getVersion,c=s(n._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,c]:e.mutableSourceEagerHydrationData.push(n,c)}var Ke=l.ReactCurrentDispatcher,kv=l.ReactCurrentBatchConfig,nS,_p;nS=new Set;var Dd=Re,Sn=null,zr=null,Ur=null,Xy=!1,Mv=!1,Lv=0,yF=0,bF=25,Te=null,xo=null,oc=-1,rS=!1;function pn(){{var e=Te;xo===null?xo=[e]:xo.push(e)}}function We(){{var e=Te;xo!==null&&(oc++,xo[oc]!==e&&xF(e))}}function Tp(e){e!=null&&!Qt(e)&&h("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Te,typeof e)}function xF(e){{var n=It(Sn);if(!nS.has(n)&&(nS.add(n),xo!==null)){for(var s="",c=30,p=0;p<=oc;p++){for(var b=xo[p],E=p===oc?e:b,j=p+1+". "+b;j.length<c;)j+=" ";j+=E+`
173
- `,s+=j}h(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
174
-
175
- Previous render Next render
176
- ------------------------------------------------------
177
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
178
- `,n,s)}}}function Fa(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
179
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
180
- 2. You might be breaking the Rules of Hooks
181
- 3. You might have more than one copy of React in the same app
182
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function aS(e,n){if(rS)return!1;if(n===null)return h("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Te),!1;e.length!==n.length&&h(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
183
-
184
- Previous: %s
185
- Incoming: %s`,Te,"["+n.join(", ")+"]","["+e.join(", ")+"]");for(var s=0;s<n.length&&s<e.length;s++)if(!it(e[s],n[s]))return!1;return!0}function Np(e,n,s,c,p,b){Dd=b,Sn=n,xo=e!==null?e._debugHookTypes:null,oc=-1,rS=e!==null&&e.type!==n.type,n.memoizedState=null,n.updateQueue=null,n.lanes=Re,e!==null&&e.memoizedState!==null?Ke.current=eT:xo!==null?Ke.current=K1:Ke.current=Q1;var E=s(c,p);if(Mv){var j=0;do{if(Mv=!1,Lv=0,j>=bF)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");j+=1,rS=!1,zr=null,Ur=null,n.updateQueue=null,oc=-1,Ke.current=tT,E=s(c,p)}while(Mv)}Ke.current=ob,n._debugHookTypes=xo;var O=zr!==null&&zr.next!==null;if(Dd=Re,Sn=null,zr=null,Ur=null,Te=null,xo=null,oc=-1,e!==null&&(e.flags&Fr)!==(n.flags&Fr)&&(e.mode&dt)!==gt&&h("Internal React error: Expected static flag was missing. Please notify the React team."),Xy=!1,O)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return E}function Ip(){var e=Lv!==0;return Lv=0,e}function D1(e,n,s){n.updateQueue=e.updateQueue,(n.mode&gi)!==gt?n.flags&=~(xl|hi|_a|ut):n.flags&=~(_a|ut),e.lanes=cd(e.lanes,s)}function k1(){if(Ke.current=ob,Xy){for(var e=Sn.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Xy=!1}Dd=Re,Sn=null,zr=null,Ur=null,xo=null,oc=-1,Te=null,X1=!1,Mv=!1,Lv=0}function Ws(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ur===null?Sn.memoizedState=Ur=e:Ur=Ur.next=e,Ur}function Co(){var e;if(zr===null){var n=Sn.alternate;n!==null?e=n.memoizedState:e=null}else e=zr.next;var s;if(Ur===null?s=Sn.memoizedState:s=Ur.next,s!==null)Ur=s,s=Ur.next,zr=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");zr=e;var c={memoizedState:zr.memoizedState,baseState:zr.baseState,baseQueue:zr.baseQueue,queue:zr.queue,next:null};Ur===null?Sn.memoizedState=Ur=c:Ur=Ur.next=c}return Ur}function M1(){return{lastEffect:null,stores:null}}function iS(e,n){return typeof n=="function"?n(e):n}function oS(e,n,s){var c=Ws(),p;s!==void 0?p=s(n):p=n,c.memoizedState=c.baseState=p;var b={pending:null,interleaved:null,lanes:Re,dispatch:null,lastRenderedReducer:e,lastRenderedState:p};c.queue=b;var E=b.dispatch=wF.bind(null,Sn,b);return[c.memoizedState,E]}function sS(e,n,s){var c=Co(),p=c.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=e;var b=zr,E=b.baseQueue,j=p.pending;if(j!==null){if(E!==null){var O=E.next,B=j.next;E.next=B,j.next=O}b.baseQueue!==E&&h("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),b.baseQueue=E=j,p.pending=null}if(E!==null){var H=E.next,te=b.baseState,K=null,fe=null,pe=null,Ce=H;do{var tt=Ce.lane;if(jl(Dd,tt)){if(pe!==null){var ft={lane:ur,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};pe=pe.next=ft}if(Ce.hasEagerState)te=Ce.eagerState;else{var Yt=Ce.action;te=e(te,Yt)}}else{var yt={lane:tt,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};pe===null?(fe=pe=yt,K=te):pe=pe.next=yt,Sn.lanes=Dt(Sn.lanes,tt),tm(tt)}Ce=Ce.next}while(Ce!==null&&Ce!==H);pe===null?K=te:pe.next=fe,it(te,c.memoizedState)||Uv(),c.memoizedState=te,c.baseState=K,c.baseQueue=pe,p.lastRenderedState=te}var zt=p.interleaved;if(zt!==null){var se=zt;do{var Se=se.lane;Sn.lanes=Dt(Sn.lanes,Se),tm(Se),se=se.next}while(se!==zt)}else E===null&&(p.lanes=Re);var le=p.dispatch;return[c.memoizedState,le]}function lS(e,n,s){var c=Co(),p=c.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=e;var b=p.dispatch,E=p.pending,j=c.memoizedState;if(E!==null){p.pending=null;var O=E.next,B=O;do{var H=B.action;j=e(j,H),B=B.next}while(B!==O);it(j,c.memoizedState)||Uv(),c.memoizedState=j,c.baseQueue===null&&(c.baseState=j),p.lastRenderedState=j}return[j,b]}function dJ(e,n,s){}function fJ(e,n,s){}function uS(e,n,s){var c=Sn,p=Ws(),b,E=sa();if(E){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");b=s(),_p||b!==s()&&(h("The result of getServerSnapshot should be cached to avoid an infinite loop"),_p=!0)}else{if(b=n(),!_p){var j=n();it(b,j)||(h("The result of getSnapshot should be cached to avoid an infinite loop"),_p=!0)}var O=wb();if(O===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ud(O,Dd)||L1(c,n,b)}p.memoizedState=b;var B={value:b,getSnapshot:n};return p.queue=B,Qy(F1.bind(null,c,B,e),[e]),c.flags|=_a,Pv(Br|la,P1.bind(null,c,B,b,n),void 0,null),b}function Yy(e,n,s){var c=Sn,p=Co(),b=n();if(!_p){var E=n();it(b,E)||(h("The result of getSnapshot should be cached to avoid an infinite loop"),_p=!0)}var j=p.memoizedState,O=!it(j,b);O&&(p.memoizedState=b,Uv());var B=p.queue;if(Vv(F1.bind(null,c,B,e),[e]),B.getSnapshot!==n||O||Ur!==null&&Ur.memoizedState.tag&Br){c.flags|=_a,Pv(Br|la,P1.bind(null,c,B,b,n),void 0,null);var H=wb();if(H===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ud(H,Dd)||L1(c,n,b)}return b}function L1(e,n,s){e.flags|=bl;var c={getSnapshot:n,value:s},p=Sn.updateQueue;if(p===null)p=M1(),Sn.updateQueue=p,p.stores=[c];else{var b=p.stores;b===null?p.stores=[c]:b.push(c)}}function P1(e,n,s,c){n.value=s,n.getSnapshot=c,V1(n)&&B1(e)}function F1(e,n,s){var c=function(){V1(n)&&B1(e)};return s(c)}function V1(e){var n=e.getSnapshot,s=e.value;try{var c=n();return!it(s,c)}catch{return!0}}function B1(e){var n=Ri(e,Ct);n!==null&&Xr(n,e,Ct,Ln)}function Zy(e){var n=Ws();typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e;var s={pending:null,interleaved:null,lanes:Re,dispatch:null,lastRenderedReducer:iS,lastRenderedState:e};n.queue=s;var c=s.dispatch=RF.bind(null,Sn,s);return[n.memoizedState,c]}function cS(e){return sS(iS)}function dS(e){return lS(iS)}function Pv(e,n,s,c){var p={tag:e,create:n,destroy:s,deps:c,next:null},b=Sn.updateQueue;if(b===null)b=M1(),Sn.updateQueue=b,b.lastEffect=p.next=p;else{var E=b.lastEffect;if(E===null)b.lastEffect=p.next=p;else{var j=E.next;E.next=p,p.next=j,b.lastEffect=p}}return p}function fS(e){var n=Ws();{var s={current:e};return n.memoizedState=s,s}}function qy(e){var n=Co();return n.memoizedState}function Fv(e,n,s,c){var p=Ws(),b=c===void 0?null:c;Sn.flags|=e,p.memoizedState=Pv(Br|n,s,void 0,b)}function Jy(e,n,s,c){var p=Co(),b=c===void 0?null:c,E=void 0;if(zr!==null){var j=zr.memoizedState;if(E=j.destroy,b!==null){var O=j.deps;if(aS(b,O)){p.memoizedState=Pv(n,s,E,b);return}}}Sn.flags|=e,p.memoizedState=Pv(Br|n,s,E,b)}function Qy(e,n){return(Sn.mode&gi)!==gt?Fv(xl|_a|Is,la,e,n):Fv(_a|Is,la,e,n)}function Vv(e,n){return Jy(_a,la,e,n)}function pS(e,n){return Fv(ut,Gs,e,n)}function Ky(e,n){return Jy(ut,Gs,e,n)}function hS(e,n){var s=ut;return s|=pi,(Sn.mode&gi)!==gt&&(s|=hi),Fv(s,$r,e,n)}function eb(e,n){return Jy(ut,$r,e,n)}function $1(e,n){if(typeof n=="function"){var s=n,c=e();return s(c),function(){s(null)}}else if(n!=null){var p=n;p.hasOwnProperty("current")||h("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(p).join(", ")+"}");var b=e();return p.current=b,function(){p.current=null}}}function vS(e,n,s){typeof n!="function"&&h("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null");var c=s!=null?s.concat([e]):null,p=ut;return p|=pi,(Sn.mode&gi)!==gt&&(p|=hi),Fv(p,$r,$1.bind(null,n,e),c)}function tb(e,n,s){typeof n!="function"&&h("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null");var c=s!=null?s.concat([e]):null;return Jy(ut,$r,$1.bind(null,n,e),c)}function CF(e,n){}var nb=CF;function mS(e,n){var s=Ws(),c=n===void 0?null:n;return s.memoizedState=[e,c],e}function rb(e,n){var s=Co(),c=n===void 0?null:n,p=s.memoizedState;if(p!==null&&c!==null){var b=p[1];if(aS(c,b))return p[0]}return s.memoizedState=[e,c],e}function gS(e,n){var s=Ws(),c=n===void 0?null:n,p=e();return s.memoizedState=[p,c],p}function ab(e,n){var s=Co(),c=n===void 0?null:n,p=s.memoizedState;if(p!==null&&c!==null){var b=p[1];if(aS(c,b))return p[0]}var E=e();return s.memoizedState=[E,c],E}function yS(e){var n=Ws();return n.memoizedState=e,e}function z1(e){var n=Co(),s=zr,c=s.memoizedState;return H1(n,c,e)}function U1(e){var n=Co();if(zr===null)return n.memoizedState=e,e;var s=zr.memoizedState;return H1(n,s,e)}function H1(e,n,s){var c=!Dg(Dd);if(c){if(!it(s,n)){var p=Lg();Sn.lanes=Dt(Sn.lanes,p),tm(p),e.baseState=!0}return n}else return e.baseState&&(e.baseState=!1,Uv()),e.memoizedState=s,s}function SF(e,n,s){var c=bi();nr(_0(c,Xo)),e(!0);var p=kv.transition;kv.transition={};var b=kv.transition;kv.transition._updatedFibers=new Set;try{e(!1),n()}finally{if(nr(c),kv.transition=p,p===null&&b._updatedFibers){var E=b._updatedFibers.size;E>10&&m("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),b._updatedFibers.clear()}}}function bS(){var e=Zy(!1),n=e[0],s=e[1],c=SF.bind(null,s),p=Ws();return p.memoizedState=c,[n,c]}function G1(){var e=cS(),n=e[0],s=Co(),c=s.memoizedState;return[n,c]}function W1(){var e=dS(),n=e[0],s=Co(),c=s.memoizedState;return[n,c]}var X1=!1;function EF(){return X1}function xS(){var e=Ws(),n=wb(),s=n.identifierPrefix,c;if(sa()){var p=PP();c=":"+s+"R"+p;var b=Lv++;b>0&&(c+="H"+b.toString(32)),c+=":"}else{var E=yF++;c=":"+s+"r"+E.toString(32)+":"}return e.memoizedState=c,c}function ib(){var e=Co(),n=e.memoizedState;return n}function wF(e,n,s){typeof arguments[3]=="function"&&h("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var c=dc(e),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(Y1(e))Z1(n,p);else{var b=f1(e,n,p,c);if(b!==null){var E=ti();Xr(b,e,c,E),q1(b,n,c)}}J1(e,c)}function RF(e,n,s){typeof arguments[3]=="function"&&h("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var c=dc(e),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(Y1(e))Z1(n,p);else{var b=e.alternate;if(e.lanes===Re&&(b===null||b.lanes===Re)){var E=n.lastRenderedReducer;if(E!==null){var j;j=Ke.current,Ke.current=ns;try{var O=n.lastRenderedState,B=E(O,s);if(p.hasEagerState=!0,p.eagerState=B,it(B,O)){rF(e,n,p,c);return}}catch{}finally{Ke.current=j}}}var H=f1(e,n,p,c);if(H!==null){var te=ti();Xr(H,e,c,te),q1(H,n,c)}}J1(e,c)}function Y1(e){var n=e.alternate;return e===Sn||n!==null&&n===Sn}function Z1(e,n){Mv=Xy=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function q1(e,n,s){if(Gh(s)){var c=n.lanes;c=Vf(c,e.pendingLanes);var p=Dt(c,s);n.lanes=p,Wh(e,p)}}function J1(e,n,s){Ef(e,n)}var ob={readContext:kr,useCallback:Fa,useContext:Fa,useEffect:Fa,useImperativeHandle:Fa,useInsertionEffect:Fa,useLayoutEffect:Fa,useMemo:Fa,useReducer:Fa,useRef:Fa,useState:Fa,useDebugValue:Fa,useDeferredValue:Fa,useTransition:Fa,useMutableSource:Fa,useSyncExternalStore:Fa,useId:Fa,unstable_isNewReconciler:De},Q1=null,K1=null,eT=null,tT=null,Xs=null,ns=null,sb=null;{var CS=function(){h("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},At=function(){h("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Q1={readContext:function(e){return kr(e)},useCallback:function(e,n){return Te="useCallback",pn(),Tp(n),mS(e,n)},useContext:function(e){return Te="useContext",pn(),kr(e)},useEffect:function(e,n){return Te="useEffect",pn(),Tp(n),Qy(e,n)},useImperativeHandle:function(e,n,s){return Te="useImperativeHandle",pn(),Tp(s),vS(e,n,s)},useInsertionEffect:function(e,n){return Te="useInsertionEffect",pn(),Tp(n),pS(e,n)},useLayoutEffect:function(e,n){return Te="useLayoutEffect",pn(),Tp(n),hS(e,n)},useMemo:function(e,n){Te="useMemo",pn(),Tp(n);var s=Ke.current;Ke.current=Xs;try{return gS(e,n)}finally{Ke.current=s}},useReducer:function(e,n,s){Te="useReducer",pn();var c=Ke.current;Ke.current=Xs;try{return oS(e,n,s)}finally{Ke.current=c}},useRef:function(e){return Te="useRef",pn(),fS(e)},useState:function(e){Te="useState",pn();var n=Ke.current;Ke.current=Xs;try{return Zy(e)}finally{Ke.current=n}},useDebugValue:function(e,n){return Te="useDebugValue",pn(),void 0},useDeferredValue:function(e){return Te="useDeferredValue",pn(),yS(e)},useTransition:function(){return Te="useTransition",pn(),bS()},useMutableSource:function(e,n,s){return Te="useMutableSource",pn(),void 0},useSyncExternalStore:function(e,n,s){return Te="useSyncExternalStore",pn(),uS(e,n,s)},useId:function(){return Te="useId",pn(),xS()},unstable_isNewReconciler:De},K1={readContext:function(e){return kr(e)},useCallback:function(e,n){return Te="useCallback",We(),mS(e,n)},useContext:function(e){return Te="useContext",We(),kr(e)},useEffect:function(e,n){return Te="useEffect",We(),Qy(e,n)},useImperativeHandle:function(e,n,s){return Te="useImperativeHandle",We(),vS(e,n,s)},useInsertionEffect:function(e,n){return Te="useInsertionEffect",We(),pS(e,n)},useLayoutEffect:function(e,n){return Te="useLayoutEffect",We(),hS(e,n)},useMemo:function(e,n){Te="useMemo",We();var s=Ke.current;Ke.current=Xs;try{return gS(e,n)}finally{Ke.current=s}},useReducer:function(e,n,s){Te="useReducer",We();var c=Ke.current;Ke.current=Xs;try{return oS(e,n,s)}finally{Ke.current=c}},useRef:function(e){return Te="useRef",We(),fS(e)},useState:function(e){Te="useState",We();var n=Ke.current;Ke.current=Xs;try{return Zy(e)}finally{Ke.current=n}},useDebugValue:function(e,n){return Te="useDebugValue",We(),void 0},useDeferredValue:function(e){return Te="useDeferredValue",We(),yS(e)},useTransition:function(){return Te="useTransition",We(),bS()},useMutableSource:function(e,n,s){return Te="useMutableSource",We(),void 0},useSyncExternalStore:function(e,n,s){return Te="useSyncExternalStore",We(),uS(e,n,s)},useId:function(){return Te="useId",We(),xS()},unstable_isNewReconciler:De},eT={readContext:function(e){return kr(e)},useCallback:function(e,n){return Te="useCallback",We(),rb(e,n)},useContext:function(e){return Te="useContext",We(),kr(e)},useEffect:function(e,n){return Te="useEffect",We(),Vv(e,n)},useImperativeHandle:function(e,n,s){return Te="useImperativeHandle",We(),tb(e,n,s)},useInsertionEffect:function(e,n){return Te="useInsertionEffect",We(),Ky(e,n)},useLayoutEffect:function(e,n){return Te="useLayoutEffect",We(),eb(e,n)},useMemo:function(e,n){Te="useMemo",We();var s=Ke.current;Ke.current=ns;try{return ab(e,n)}finally{Ke.current=s}},useReducer:function(e,n,s){Te="useReducer",We();var c=Ke.current;Ke.current=ns;try{return sS(e,n,s)}finally{Ke.current=c}},useRef:function(e){return Te="useRef",We(),qy()},useState:function(e){Te="useState",We();var n=Ke.current;Ke.current=ns;try{return cS(e)}finally{Ke.current=n}},useDebugValue:function(e,n){return Te="useDebugValue",We(),nb()},useDeferredValue:function(e){return Te="useDeferredValue",We(),z1(e)},useTransition:function(){return Te="useTransition",We(),G1()},useMutableSource:function(e,n,s){return Te="useMutableSource",We(),void 0},useSyncExternalStore:function(e,n,s){return Te="useSyncExternalStore",We(),Yy(e,n)},useId:function(){return Te="useId",We(),ib()},unstable_isNewReconciler:De},tT={readContext:function(e){return kr(e)},useCallback:function(e,n){return Te="useCallback",We(),rb(e,n)},useContext:function(e){return Te="useContext",We(),kr(e)},useEffect:function(e,n){return Te="useEffect",We(),Vv(e,n)},useImperativeHandle:function(e,n,s){return Te="useImperativeHandle",We(),tb(e,n,s)},useInsertionEffect:function(e,n){return Te="useInsertionEffect",We(),Ky(e,n)},useLayoutEffect:function(e,n){return Te="useLayoutEffect",We(),eb(e,n)},useMemo:function(e,n){Te="useMemo",We();var s=Ke.current;Ke.current=sb;try{return ab(e,n)}finally{Ke.current=s}},useReducer:function(e,n,s){Te="useReducer",We();var c=Ke.current;Ke.current=sb;try{return lS(e,n,s)}finally{Ke.current=c}},useRef:function(e){return Te="useRef",We(),qy()},useState:function(e){Te="useState",We();var n=Ke.current;Ke.current=sb;try{return dS(e)}finally{Ke.current=n}},useDebugValue:function(e,n){return Te="useDebugValue",We(),nb()},useDeferredValue:function(e){return Te="useDeferredValue",We(),U1(e)},useTransition:function(){return Te="useTransition",We(),W1()},useMutableSource:function(e,n,s){return Te="useMutableSource",We(),void 0},useSyncExternalStore:function(e,n,s){return Te="useSyncExternalStore",We(),Yy(e,n)},useId:function(){return Te="useId",We(),ib()},unstable_isNewReconciler:De},Xs={readContext:function(e){return CS(),kr(e)},useCallback:function(e,n){return Te="useCallback",At(),pn(),mS(e,n)},useContext:function(e){return Te="useContext",At(),pn(),kr(e)},useEffect:function(e,n){return Te="useEffect",At(),pn(),Qy(e,n)},useImperativeHandle:function(e,n,s){return Te="useImperativeHandle",At(),pn(),vS(e,n,s)},useInsertionEffect:function(e,n){return Te="useInsertionEffect",At(),pn(),pS(e,n)},useLayoutEffect:function(e,n){return Te="useLayoutEffect",At(),pn(),hS(e,n)},useMemo:function(e,n){Te="useMemo",At(),pn();var s=Ke.current;Ke.current=Xs;try{return gS(e,n)}finally{Ke.current=s}},useReducer:function(e,n,s){Te="useReducer",At(),pn();var c=Ke.current;Ke.current=Xs;try{return oS(e,n,s)}finally{Ke.current=c}},useRef:function(e){return Te="useRef",At(),pn(),fS(e)},useState:function(e){Te="useState",At(),pn();var n=Ke.current;Ke.current=Xs;try{return Zy(e)}finally{Ke.current=n}},useDebugValue:function(e,n){return Te="useDebugValue",At(),pn(),void 0},useDeferredValue:function(e){return Te="useDeferredValue",At(),pn(),yS(e)},useTransition:function(){return Te="useTransition",At(),pn(),bS()},useMutableSource:function(e,n,s){return Te="useMutableSource",At(),pn(),void 0},useSyncExternalStore:function(e,n,s){return Te="useSyncExternalStore",At(),pn(),uS(e,n,s)},useId:function(){return Te="useId",At(),pn(),xS()},unstable_isNewReconciler:De},ns={readContext:function(e){return CS(),kr(e)},useCallback:function(e,n){return Te="useCallback",At(),We(),rb(e,n)},useContext:function(e){return Te="useContext",At(),We(),kr(e)},useEffect:function(e,n){return Te="useEffect",At(),We(),Vv(e,n)},useImperativeHandle:function(e,n,s){return Te="useImperativeHandle",At(),We(),tb(e,n,s)},useInsertionEffect:function(e,n){return Te="useInsertionEffect",At(),We(),Ky(e,n)},useLayoutEffect:function(e,n){return Te="useLayoutEffect",At(),We(),eb(e,n)},useMemo:function(e,n){Te="useMemo",At(),We();var s=Ke.current;Ke.current=ns;try{return ab(e,n)}finally{Ke.current=s}},useReducer:function(e,n,s){Te="useReducer",At(),We();var c=Ke.current;Ke.current=ns;try{return sS(e,n,s)}finally{Ke.current=c}},useRef:function(e){return Te="useRef",At(),We(),qy()},useState:function(e){Te="useState",At(),We();var n=Ke.current;Ke.current=ns;try{return cS(e)}finally{Ke.current=n}},useDebugValue:function(e,n){return Te="useDebugValue",At(),We(),nb()},useDeferredValue:function(e){return Te="useDeferredValue",At(),We(),z1(e)},useTransition:function(){return Te="useTransition",At(),We(),G1()},useMutableSource:function(e,n,s){return Te="useMutableSource",At(),We(),void 0},useSyncExternalStore:function(e,n,s){return Te="useSyncExternalStore",At(),We(),Yy(e,n)},useId:function(){return Te="useId",At(),We(),ib()},unstable_isNewReconciler:De},sb={readContext:function(e){return CS(),kr(e)},useCallback:function(e,n){return Te="useCallback",At(),We(),rb(e,n)},useContext:function(e){return Te="useContext",At(),We(),kr(e)},useEffect:function(e,n){return Te="useEffect",At(),We(),Vv(e,n)},useImperativeHandle:function(e,n,s){return Te="useImperativeHandle",At(),We(),tb(e,n,s)},useInsertionEffect:function(e,n){return Te="useInsertionEffect",At(),We(),Ky(e,n)},useLayoutEffect:function(e,n){return Te="useLayoutEffect",At(),We(),eb(e,n)},useMemo:function(e,n){Te="useMemo",At(),We();var s=Ke.current;Ke.current=ns;try{return ab(e,n)}finally{Ke.current=s}},useReducer:function(e,n,s){Te="useReducer",At(),We();var c=Ke.current;Ke.current=ns;try{return lS(e,n,s)}finally{Ke.current=c}},useRef:function(e){return Te="useRef",At(),We(),qy()},useState:function(e){Te="useState",At(),We();var n=Ke.current;Ke.current=ns;try{return dS(e)}finally{Ke.current=n}},useDebugValue:function(e,n){return Te="useDebugValue",At(),We(),nb()},useDeferredValue:function(e){return Te="useDeferredValue",At(),We(),U1(e)},useTransition:function(){return Te="useTransition",At(),We(),W1()},useMutableSource:function(e,n,s){return Te="useMutableSource",At(),We(),void 0},useSyncExternalStore:function(e,n,s){return Te="useSyncExternalStore",At(),We(),Yy(e,n)},useId:function(){return Te="useId",At(),We(),ib()},unstable_isNewReconciler:De}}var sc=i.unstable_now,nT=0,lb=-1,Bv=-1,ub=-1,SS=!1,cb=!1;function rT(){return SS}function _F(){cb=!0}function TF(){SS=!1,cb=!1}function NF(){SS=cb,cb=!1}function aT(){return nT}function iT(){nT=sc()}function ES(e){Bv=sc(),e.actualStartTime<0&&(e.actualStartTime=sc())}function oT(e){Bv=-1}function db(e,n){if(Bv>=0){var s=sc()-Bv;e.actualDuration+=s,n&&(e.selfBaseDuration=s),Bv=-1}}function Ys(e){if(lb>=0){var n=sc()-lb;lb=-1;for(var s=e.return;s!==null;){switch(s.tag){case R:var c=s.stateNode;c.effectDuration+=n;return;case F:var p=s.stateNode;p.effectDuration+=n;return}s=s.return}}}function wS(e){if(ub>=0){var n=sc()-ub;ub=-1;for(var s=e.return;s!==null;){switch(s.tag){case R:var c=s.stateNode;c!==null&&(c.passiveEffectDuration+=n);return;case F:var p=s.stateNode;p!==null&&(p.passiveEffectDuration+=n);return}s=s.return}}}function Zs(){lb=sc()}function RS(){ub=sc()}function _S(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling}function kd(e,n){return{value:e,source:n,stack:cu(n),digest:null}}function TS(e,n,s){return{value:e,source:null,stack:s??null,digest:n??null}}function IF(e,n){return!0}function NS(e,n){try{var s=IF(e,n);if(s===!1)return;var c=n.value,p=n.source,b=n.stack,E=b!==null?b:"";if(c!=null&&c._suppressLogging){if(e.tag===C)return;console.error(c)}var j=p?It(p):null,O=j?"The above error occurred in the <"+j+"> component:":"The above error occurred in one of your React components:",B;if(e.tag===R)B=`Consider adding an error boundary to your tree to customize error handling behavior.
186
- Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var H=It(e)||"Anonymous";B="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+H+".")}var te=O+`
187
- `+E+`
188
-
189
- `+(""+B);console.error(te)}catch(K){setTimeout(function(){throw K})}}var jF=typeof WeakMap=="function"?WeakMap:Map;function sT(e,n,s){var c=Ul(Ln,s);c.tag=NC,c.payload={element:null};var p=n.value;return c.callback=function(){SB(p),NS(e,n)},c}function IS(e,n,s){var c=Ul(Ln,s);c.tag=NC;var p=e.type.getDerivedStateFromError;if(typeof p=="function"){var b=n.value;c.payload=function(){return p(b)},c.callback=function(){yN(e),NS(e,n)}}var E=e.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(c.callback=function(){yN(e),NS(e,n),typeof p!="function"&&xB(this);var O=n.value,B=n.stack;this.componentDidCatch(O,{componentStack:B!==null?B:""}),typeof p!="function"&&(ka(e.lanes,Ct)||h("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",It(e)||"Unknown"))}),c}function lT(e,n,s){var c=e.pingCache,p;if(c===null?(c=e.pingCache=new jF,p=new Set,c.set(n,p)):(p=c.get(n),p===void 0&&(p=new Set,c.set(n,p))),!p.has(s)){p.add(s);var b=EB.bind(null,e,n,s);Ja&&nm(e,s),n.then(b,b)}}function AF(e,n,s,c){var p=e.updateQueue;if(p===null){var b=new Set;b.add(s),e.updateQueue=b}else p.add(s)}function OF(e,n){var s=e.tag;if((e.mode&dt)===gt&&(s===x||s===U||s===Y)){var c=e.alternate;c?(e.updateQueue=c.updateQueue,e.memoizedState=c.memoizedState,e.lanes=c.lanes):(e.updateQueue=null,e.memoizedState=null)}}function uT(e){var n=e;do{if(n.tag===z&&mF(n))return n;n=n.return}while(n!==null);return null}function cT(e,n,s,c,p){if((e.mode&dt)===gt){if(e===n)e.flags|=Pr;else{if(e.flags|=jt,s.flags|=mf,s.flags&=~(bg|Ns),s.tag===C){var b=s.alternate;if(b===null)s.tag=ie;else{var E=Ul(Ln,Ct);E.tag=My,rc(s,E,Ct)}}s.lanes=Dt(s.lanes,Ct)}return e}return e.flags|=Pr,e.lanes=p,e}function DF(e,n,s,c,p){if(s.flags|=Ns,Ja&&nm(e,p),c!==null&&typeof c=="object"&&typeof c.then=="function"){var b=c;OF(s),sa()&&s.mode&dt&&e1();var E=uT(n);if(E!==null){E.flags&=~aa,cT(E,n,s,e,p),E.mode&dt&&lT(e,b,p),AF(E,e,b);return}else{if(!Hh(p)){lT(e,b,p),lE();return}var j=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");c=j}}else if(sa()&&s.mode&dt){e1();var O=uT(n);if(O!==null){(O.flags&Pr)===mt&&(O.flags|=aa),cT(O,n,s,e,p),CC(kd(c,s));return}}c=kd(c,s),fB(c);var B=n;do{switch(B.tag){case R:{var H=c;B.flags|=Pr;var te=ku(p);B.lanes=Dt(B.lanes,te);var K=sT(B,H,te);AC(B,K);return}case C:var fe=c,pe=B.type,Ce=B.stateNode;if((B.flags&jt)===mt&&(typeof pe.getDerivedStateFromError=="function"||Ce!==null&&typeof Ce.componentDidCatch=="function"&&!uN(Ce))){B.flags|=Pr;var tt=ku(p);B.lanes=Dt(B.lanes,tt);var yt=IS(B,fe,tt);AC(B,yt);return}break}B=B.return}while(B!==null)}function kF(){return null}var $v=l.ReactCurrentOwner,rs=!1,jS,zv,AS,OS,DS,Md,kS,fb;jS={},zv={},AS={},OS={},DS={},Md=!1,kS={},fb={};function Ka(e,n,s,c){e===null?n.child=N1(n,null,s,c):n.child=Sp(n,e.child,s,c)}function MF(e,n,s,c){n.child=Sp(n,e.child,null,c),n.child=Sp(n,null,s,c)}function dT(e,n,s,c,p){if(n.type!==n.elementType){var b=s.propTypes;b&&Jo(b,c,"prop",Jt(s))}var E=s.render,j=n.ref,O,B;Cp(n,p),_u(n);{if($v.current=n,Lr(!0),O=Np(e,n,E,c,j,p),B=Ip(),n.mode&er){Mn(!0);try{O=Np(e,n,E,c,j,p),B=Ip()}finally{Mn(!1)}}Lr(!1)}return Sl(),e!==null&&!rs?(D1(e,n,p),Hl(e,n,p)):(sa()&&B&&vC(n),n.flags|=Hi,Ka(e,n,O,p),n.child)}function fT(e,n,s,c,p){if(e===null){var b=s.type;if(BB(b)&&s.compare===null&&s.defaultProps===void 0){var E=b;return E=Pp(b),n.tag=Y,n.type=E,PS(n,b),pT(e,n,E,c,p)}{var j=b.propTypes;j&&Jo(j,c,"prop",Jt(b))}var O=bE(s.type,null,c,n,n.mode,p);return O.ref=n.ref,O.return=n,n.child=O,O}{var B=s.type,H=B.propTypes;H&&Jo(H,c,"prop",Jt(B))}var te=e.child,K=US(e,p);if(!K){var fe=te.memoizedProps,pe=s.compare;if(pe=pe!==null?pe:wt,pe(fe,c)&&e.ref===n.ref)return Hl(e,n,p)}n.flags|=Hi;var Ce=Bd(te,c);return Ce.ref=n.ref,Ce.return=n,n.child=Ce,Ce}function pT(e,n,s,c,p){if(n.type!==n.elementType){var b=n.elementType;if(b.$$typeof===vt){var E=b,j=E._payload,O=E._init;try{b=O(j)}catch{b=null}var B=b&&b.propTypes;B&&Jo(B,c,"prop",Jt(b))}}if(e!==null){var H=e.memoizedProps;if(wt(H,c)&&e.ref===n.ref&&n.type===e.type)if(rs=!1,n.pendingProps=c=H,US(e,p))(e.flags&mf)!==mt&&(rs=!0);else return n.lanes=e.lanes,Hl(e,n,p)}return MS(e,n,s,c,p)}function hT(e,n,s){var c=n.pendingProps,p=c.children,b=e!==null?e.memoizedState:null;if(c.mode==="hidden"||Z)if((n.mode&dt)===gt){var E={baseLanes:Re,cachePool:null,transitions:null};n.memoizedState=E,Rb(n,s)}else if(ka(s,Qa)){var te={baseLanes:Re,cachePool:null,transitions:null};n.memoizedState=te;var K=b!==null?b.baseLanes:s;Rb(n,K)}else{var j=null,O;if(b!==null){var B=b.baseLanes;O=Dt(B,s)}else O=s;n.lanes=n.childLanes=Qa;var H={baseLanes:O,cachePool:j,transitions:null};return n.memoizedState=H,n.updateQueue=null,Rb(n,O),null}else{var fe;b!==null?(fe=Dt(b.baseLanes,s),n.memoizedState=null):fe=s,Rb(n,fe)}return Ka(e,n,p,s),n.child}function LF(e,n,s){var c=n.pendingProps;return Ka(e,n,c,s),n.child}function PF(e,n,s){var c=n.pendingProps.children;return Ka(e,n,c,s),n.child}function FF(e,n,s){{n.flags|=ut;{var c=n.stateNode;c.effectDuration=0,c.passiveEffectDuration=0}}var p=n.pendingProps,b=p.children;return Ka(e,n,b,s),n.child}function vT(e,n){var s=n.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(n.flags|=Ya,n.flags|=lo)}function MS(e,n,s,c,p){if(n.type!==n.elementType){var b=s.propTypes;b&&Jo(b,c,"prop",Jt(s))}var E;{var j=vp(n,s,!0);E=mp(n,j)}var O,B;Cp(n,p),_u(n);{if($v.current=n,Lr(!0),O=Np(e,n,s,c,E,p),B=Ip(),n.mode&er){Mn(!0);try{O=Np(e,n,s,c,E,p),B=Ip()}finally{Mn(!1)}}Lr(!1)}return Sl(),e!==null&&!rs?(D1(e,n,p),Hl(e,n,p)):(sa()&&B&&vC(n),n.flags|=Hi,Ka(e,n,O,p),n.child)}function mT(e,n,s,c,p){{switch(t$(n)){case!1:{var b=n.stateNode,E=n.type,j=new E(n.memoizedProps,b.context),O=j.state;b.updater.enqueueSetState(b,O,null);break}case!0:{n.flags|=jt,n.flags|=Pr;var B=new Error("Simulated error coming from DevTools"),H=ku(p);n.lanes=Dt(n.lanes,H);var te=IS(n,kd(B,n),H);AC(n,te);break}}if(n.type!==n.elementType){var K=s.propTypes;K&&Jo(K,c,"prop",Jt(s))}}var fe;Hs(s)?(fe=!0,wy(n)):fe=!1,Cp(n,p);var pe=n.stateNode,Ce;pe===null?(hb(e,n),E1(n,s,c),UC(n,s,c,p),Ce=!0):e===null?Ce=cF(n,s,c,p):Ce=dF(e,n,s,c,p);var tt=LS(e,n,s,Ce,fe,p);{var yt=n.stateNode;Ce&&yt.props!==c&&(Md||h("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",It(n)||"a component"),Md=!0)}return tt}function LS(e,n,s,c,p,b){vT(e,n);var E=(n.flags&jt)!==mt;if(!c&&!E)return p&&q_(n,s,!1),Hl(e,n,b);var j=n.stateNode;$v.current=n;var O;if(E&&typeof s.getDerivedStateFromError!="function")O=null,oT();else{_u(n);{if(Lr(!0),O=j.render(),n.mode&er){Mn(!0);try{j.render()}finally{Mn(!1)}}Lr(!1)}Sl()}return n.flags|=Hi,e!==null&&E?MF(e,n,O,b):Ka(e,n,O,b),n.memoizedState=j.state,p&&q_(n,s,!0),n.child}function gT(e){var n=e.stateNode;n.pendingContext?Y_(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Y_(e,n.context,!1),ZC(e,n.containerInfo)}function VF(e,n,s){if(gT(n),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var c=n.pendingProps,p=n.memoizedState,b=p.element;v1(e,n),Vy(n,c,null,s);var E=n.memoizedState;n.stateNode;var j=E.element;if(p.isDehydrated){var O={element:j,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},B=n.updateQueue;if(B.baseState=O,n.memoizedState=O,n.flags&aa){var H=kd(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),n);return yT(e,n,j,s,H)}else if(j!==b){var te=kd(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n);return yT(e,n,j,s,te)}else{UP(n);var K=N1(n,null,j,s);n.child=K;for(var fe=K;fe;)fe.flags=fe.flags&~In|so,fe=fe.sibling}}else{if(bp(),j===b)return Hl(e,n,s);Ka(e,n,j,s)}return n.child}function yT(e,n,s,c,p){return bp(),CC(p),n.flags|=aa,Ka(e,n,s,c),n.child}function BF(e,n,s){j1(n),e===null&&xC(n);var c=n.type,p=n.pendingProps,b=e!==null?e.memoizedProps:null,E=p.children,j=tC(c,p);return j?E=null:b!==null&&tC(c,b)&&(n.flags|=fi),vT(e,n),Ka(e,n,E,s),n.child}function $F(e,n){return e===null&&xC(n),null}function zF(e,n,s,c){hb(e,n);var p=n.pendingProps,b=s,E=b._payload,j=b._init,O=j(E);n.type=O;var B=n.tag=$B(O),H=es(O,p),te;switch(B){case x:return PS(n,O),n.type=O=Pp(O),te=MS(null,n,O,H,c),te;case C:return n.type=O=pE(O),te=mT(null,n,O,H,c),te;case U:return n.type=O=hE(O),te=dT(null,n,O,H,c),te;case X:{if(n.type!==n.elementType){var K=O.propTypes;K&&Jo(K,H,"prop",Jt(O))}return te=fT(null,n,O,es(O.type,H),c),te}}var fe="";throw O!==null&&typeof O=="object"&&O.$$typeof===vt&&(fe=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+O+". "+("Lazy element type must resolve to a class or function."+fe))}function UF(e,n,s,c,p){hb(e,n),n.tag=C;var b;return Hs(s)?(b=!0,wy(n)):b=!1,Cp(n,p),E1(n,s,c),UC(n,s,c,p),LS(null,n,s,!0,b,p)}function HF(e,n,s,c){hb(e,n);var p=n.pendingProps,b;{var E=vp(n,s,!1);b=mp(n,E)}Cp(n,c);var j,O;_u(n);{if(s.prototype&&typeof s.prototype.render=="function"){var B=Jt(s)||"Unknown";jS[B]||(h("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",B,B),jS[B]=!0)}n.mode&er&&Ko.recordLegacyContextWarning(n,null),Lr(!0),$v.current=n,j=Np(null,n,s,p,b,c),O=Ip(),Lr(!1)}if(Sl(),n.flags|=Hi,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0){var H=Jt(s)||"Unknown";zv[H]||(h("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",H,H,H),zv[H]=!0)}if(typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0){{var te=Jt(s)||"Unknown";zv[te]||(h("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",te,te,te),zv[te]=!0)}n.tag=C,n.memoizedState=null,n.updateQueue=null;var K=!1;return Hs(s)?(K=!0,wy(n)):K=!1,n.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,jC(n),S1(n,j),UC(n,s,p,c),LS(null,n,s,!0,K,c)}else{if(n.tag=x,n.mode&er){Mn(!0);try{j=Np(null,n,s,p,b,c),O=Ip()}finally{Mn(!1)}}return sa()&&O&&vC(n),Ka(null,n,j,c),PS(n,s),n.child}}function PS(e,n){{if(n&&n.childContextTypes&&h("%s(...): childContextTypes cannot be defined on a function component.",n.displayName||n.name||"Component"),e.ref!==null){var s="",c=ui();c&&(s+=`
190
-
191
- Check the render method of \``+c+"`.");var p=c||"",b=e._debugSource;b&&(p=b.fileName+":"+b.lineNumber),DS[p]||(DS[p]=!0,h("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(typeof n.getDerivedStateFromProps=="function"){var E=Jt(n)||"Unknown";OS[E]||(h("%s: Function components do not support getDerivedStateFromProps.",E),OS[E]=!0)}if(typeof n.contextType=="object"&&n.contextType!==null){var j=Jt(n)||"Unknown";AS[j]||(h("%s: Function components do not support contextType.",j),AS[j]=!0)}}}var FS={dehydrated:null,treeContext:null,retryLane:ur};function VS(e){return{baseLanes:e,cachePool:kF(),transitions:null}}function GF(e,n){var s=null;return{baseLanes:Dt(e.baseLanes,n),cachePool:s,transitions:e.transitions}}function WF(e,n,s,c){if(n!==null){var p=n.memoizedState;if(p===null)return!1}return QC(e,Dv)}function XF(e,n){return cd(e.childLanes,n)}function bT(e,n,s){var c=n.pendingProps;n$(n)&&(n.flags|=jt);var p=ts.current,b=!1,E=(n.flags&jt)!==mt;if(E||WF(p,e)?(b=!0,n.flags&=~jt):(e===null||e.memoizedState!==null)&&(p=vF(p,O1)),p=wp(p),ic(n,p),e===null){xC(n);var j=n.memoizedState;if(j!==null){var O=j.dehydrated;if(O!==null)return QF(n,O)}var B=c.children,H=c.fallback;if(b){var te=YF(n,B,H,s),K=n.child;return K.memoizedState=VS(s),n.memoizedState=FS,te}else return BS(n,B)}else{var fe=e.memoizedState;if(fe!==null){var pe=fe.dehydrated;if(pe!==null)return KF(e,n,E,c,pe,fe,s)}if(b){var Ce=c.fallback,tt=c.children,yt=qF(e,n,tt,Ce,s),ft=n.child,Yt=e.child.memoizedState;return ft.memoizedState=Yt===null?VS(s):GF(Yt,s),ft.childLanes=XF(e,s),n.memoizedState=FS,yt}else{var zt=c.children,se=ZF(e,n,zt,s);return n.memoizedState=null,se}}}function BS(e,n,s){var c=e.mode,p={mode:"visible",children:n},b=$S(p,c);return b.return=e,e.child=b,b}function YF(e,n,s,c){var p=e.mode,b=e.child,E={mode:"hidden",children:n},j,O;return(p&dt)===gt&&b!==null?(j=b,j.childLanes=Re,j.pendingProps=E,e.mode&tn&&(j.actualDuration=0,j.actualStartTime=-1,j.selfBaseDuration=0,j.treeBaseDuration=0),O=pc(s,p,c,null)):(j=$S(E,p),O=pc(s,p,c,null)),j.return=e,O.return=e,j.sibling=O,e.child=j,O}function $S(e,n,s){return xN(e,n,Re,null)}function xT(e,n){return Bd(e,n)}function ZF(e,n,s,c){var p=e.child,b=p.sibling,E=xT(p,{mode:"visible",children:s});if((n.mode&dt)===gt&&(E.lanes=c),E.return=n,E.sibling=null,b!==null){var j=n.deletions;j===null?(n.deletions=[b],n.flags|=rn):j.push(b)}return n.child=E,E}function qF(e,n,s,c,p){var b=n.mode,E=e.child,j=E.sibling,O={mode:"hidden",children:s},B;if((b&dt)===gt&&n.child!==E){var H=n.child;B=H,B.childLanes=Re,B.pendingProps=O,n.mode&tn&&(B.actualDuration=0,B.actualStartTime=-1,B.selfBaseDuration=E.selfBaseDuration,B.treeBaseDuration=E.treeBaseDuration),n.deletions=null}else B=xT(E,O),B.subtreeFlags=E.subtreeFlags&Fr;var te;return j!==null?te=Bd(j,c):(te=pc(c,b,p,null),te.flags|=In),te.return=n,B.return=n,B.sibling=te,n.child=B,te}function pb(e,n,s,c){c!==null&&CC(c),Sp(n,e.child,null,s);var p=n.pendingProps,b=p.children,E=BS(n,b);return E.flags|=In,n.memoizedState=null,E}function JF(e,n,s,c,p){var b=n.mode,E={mode:"visible",children:s},j=$S(E,b),O=pc(c,b,p,null);return O.flags|=In,j.return=n,O.return=n,j.sibling=O,n.child=j,(n.mode&dt)!==gt&&Sp(n,e.child,null,p),O}function QF(e,n,s){return(e.mode&dt)===gt?(h("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Ct):iC(n)?e.lanes=tr:e.lanes=Qa,null}function KF(e,n,s,c,p,b,E){if(s)if(n.flags&aa){n.flags&=~aa;var se=TS(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return pb(e,n,E,se)}else{if(n.memoizedState!==null)return n.child=e.child,n.flags|=jt,null;var Se=c.children,le=c.fallback,$e=JF(e,n,Se,le,E),nt=n.child;return nt.memoizedState=VS(E),n.memoizedState=FS,$e}else{if($P(),(n.mode&dt)===gt)return pb(e,n,E,null);if(iC(p)){var j,O,B;{var H=aP(p);j=H.digest,O=H.message,B=H.stack}var te;O?te=new Error(O):te=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var K=TS(te,j,B);return pb(e,n,E,K)}var fe=ka(E,e.childLanes);if(rs||fe){var pe=wb();if(pe!==null){var Ce=Vg(pe,E);if(Ce!==ur&&Ce!==b.retryLane){b.retryLane=Ce;var tt=Ln;Ri(e,Ce),Xr(pe,e,Ce,tt)}}lE();var yt=TS(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return pb(e,n,E,yt)}else if(z_(p)){n.flags|=jt,n.child=e.child;var ft=wB.bind(null,e);return iP(p,ft),null}else{HP(n,p,b.treeContext);var Yt=c.children,zt=BS(n,Yt);return zt.flags|=so,zt}}}function CT(e,n,s){e.lanes=Dt(e.lanes,n);var c=e.alternate;c!==null&&(c.lanes=Dt(c.lanes,n)),_C(e.return,n,s)}function eV(e,n,s){for(var c=n;c!==null;){if(c.tag===z){var p=c.memoizedState;p!==null&&CT(c,s,e)}else if(c.tag===ae)CT(c,s,e);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)return;for(;c.sibling===null;){if(c.return===null||c.return===e)return;c=c.return}c.sibling.return=c.return,c=c.sibling}}function tV(e){for(var n=e,s=null;n!==null;){var c=n.alternate;c!==null&&Wy(c)===null&&(s=n),n=n.sibling}return s}function nV(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!kS[e])if(kS[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{h('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{h('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:h('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else h('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function rV(e,n){e!==void 0&&!fb[e]&&(e!=="collapsed"&&e!=="hidden"?(fb[e]=!0,h('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):n!=="forwards"&&n!=="backwards"&&(fb[e]=!0,h('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function ST(e,n){{var s=Qt(e),c=!s&&typeof to(e)=="function";if(s||c){var p=s?"array":"iterable";return h("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,n,p),!1}}return!0}function aV(e,n){if((n==="forwards"||n==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Qt(e)){for(var s=0;s<e.length;s++)if(!ST(e[s],s))return}else{var c=to(e);if(typeof c=="function"){var p=c.call(e);if(p)for(var b=p.next(),E=0;!b.done;b=p.next()){if(!ST(b.value,E))return;E++}}else h('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',n)}}function zS(e,n,s,c,p){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:p}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=c,b.tail=s,b.tailMode=p)}function ET(e,n,s){var c=n.pendingProps,p=c.revealOrder,b=c.tail,E=c.children;nV(p),rV(b,p),aV(E,p),Ka(e,n,E,s);var j=ts.current,O=QC(j,Dv);if(O)j=KC(j,Dv),n.flags|=jt;else{var B=e!==null&&(e.flags&jt)!==mt;B&&eV(n,n.child,s),j=wp(j)}if(ic(n,j),(n.mode&dt)===gt)n.memoizedState=null;else switch(p){case"forwards":{var H=tV(n.child),te;H===null?(te=n.child,n.child=null):(te=H.sibling,H.sibling=null),zS(n,!1,te,H,b);break}case"backwards":{var K=null,fe=n.child;for(n.child=null;fe!==null;){var pe=fe.alternate;if(pe!==null&&Wy(pe)===null){n.child=fe;break}var Ce=fe.sibling;fe.sibling=K,K=fe,fe=Ce}zS(n,!0,K,null,b);break}case"together":{zS(n,!1,null,null,void 0);break}default:n.memoizedState=null}return n.child}function iV(e,n,s){ZC(n,n.stateNode.containerInfo);var c=n.pendingProps;return e===null?n.child=Sp(n,null,c,s):Ka(e,n,c,s),n.child}var wT=!1;function oV(e,n,s){var c=n.type,p=c._context,b=n.pendingProps,E=n.memoizedProps,j=b.value;{"value"in b||wT||(wT=!0,h("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var O=n.type.propTypes;O&&Jo(O,b,"prop","Context.Provider")}if(d1(n,p,j),E!==null){var B=E.value;if(it(B,j)){if(E.children===b.children&&!Sy())return Hl(e,n,s)}else eF(n,p,s)}var H=b.children;return Ka(e,n,H,s),n.child}var RT=!1;function sV(e,n,s){var c=n.type;c._context===void 0?c!==c.Consumer&&(RT||(RT=!0,h("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):c=c._context;var p=n.pendingProps,b=p.children;typeof b!="function"&&h("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Cp(n,s);var E=kr(c);_u(n);var j;return $v.current=n,Lr(!0),j=b(E),Lr(!1),Sl(),n.flags|=Hi,Ka(e,n,j,s),n.child}function Uv(){rs=!0}function hb(e,n){(n.mode&dt)===gt&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=In)}function Hl(e,n,s){return e!==null&&(n.dependencies=e.dependencies),oT(),tm(n.lanes),ka(s,n.childLanes)?(fF(e,n),n.child):null}function lV(e,n,s){{var c=n.return;if(c===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,n.alternate=null,s.index=n.index,s.sibling=n.sibling,s.return=n.return,s.ref=n.ref,n===c.child)c.child=s;else{var p=c.child;if(p===null)throw new Error("Expected parent to have a child.");for(;p.sibling!==n;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=s}var b=c.deletions;return b===null?(c.deletions=[e],c.flags|=rn):b.push(e),s.flags|=In,s}}function US(e,n){var s=e.lanes;return!!ka(s,n)}function uV(e,n,s){switch(n.tag){case R:gT(n),n.stateNode,bp();break;case N:j1(n);break;case C:{var c=n.type;Hs(c)&&wy(n);break}case A:ZC(n,n.stateNode.containerInfo);break;case V:{var p=n.memoizedProps.value,b=n.type._context;d1(n,b,p);break}case F:{var E=ka(s,n.childLanes);E&&(n.flags|=ut);{var j=n.stateNode;j.effectDuration=0,j.passiveEffectDuration=0}}break;case z:{var O=n.memoizedState;if(O!==null){if(O.dehydrated!==null)return ic(n,wp(ts.current)),n.flags|=jt,null;var B=n.child,H=B.childLanes;if(ka(s,H))return bT(e,n,s);ic(n,wp(ts.current));var te=Hl(e,n,s);return te!==null?te.sibling:null}else ic(n,wp(ts.current));break}case ae:{var K=(e.flags&jt)!==mt,fe=ka(s,n.childLanes);if(K){if(fe)return ET(e,n,s);n.flags|=jt}var pe=n.memoizedState;if(pe!==null&&(pe.rendering=null,pe.tail=null,pe.lastEffect=null),ic(n,ts.current),fe)break;return null}case ge:case xe:return n.lanes=Re,hT(e,n,s)}return Hl(e,n,s)}function _T(e,n,s){if(n._debugNeedsRemount&&e!==null)return lV(e,n,bE(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes));if(e!==null){var c=e.memoizedProps,p=n.pendingProps;if(c!==p||Sy()||n.type!==e.type)rs=!0;else{var b=US(e,s);if(!b&&(n.flags&jt)===mt)return rs=!1,uV(e,n,s);(e.flags&mf)!==mt?rs=!0:rs=!1}}else if(rs=!1,sa()&&MP(n)){var E=n.index,j=LP();K_(n,j,E)}switch(n.lanes=Re,n.tag){case w:return HF(e,n,n.type,s);case ce:{var O=n.elementType;return zF(e,n,O,s)}case x:{var B=n.type,H=n.pendingProps,te=n.elementType===B?H:es(B,H);return MS(e,n,B,te,s)}case C:{var K=n.type,fe=n.pendingProps,pe=n.elementType===K?fe:es(K,fe);return mT(e,n,K,pe,s)}case R:return VF(e,n,s);case N:return BF(e,n,s);case _:return $F(e,n);case z:return bT(e,n,s);case A:return iV(e,n,s);case U:{var Ce=n.type,tt=n.pendingProps,yt=n.elementType===Ce?tt:es(Ce,tt);return dT(e,n,Ce,yt,s)}case I:return LF(e,n,s);case M:return PF(e,n,s);case F:return FF(e,n,s);case V:return oV(e,n,s);case P:return sV(e,n,s);case X:{var ft=n.type,Yt=n.pendingProps,zt=es(ft,Yt);if(n.type!==n.elementType){var se=ft.propTypes;se&&Jo(se,zt,"prop",Jt(ft))}return zt=es(ft.type,zt),fT(e,n,ft,zt,s)}case Y:return pT(e,n,n.type,n.pendingProps,s);case ie:{var Se=n.type,le=n.pendingProps,$e=n.elementType===Se?le:es(Se,le);return UF(e,n,Se,$e,s)}case ae:return ET(e,n,s);case we:break;case ge:return hT(e,n,s)}throw new Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function jp(e){e.flags|=ut}function TT(e){e.flags|=Ya,e.flags|=lo}var NT,HS,IT,jT;NT=function(e,n,s,c){for(var p=n.child;p!==null;){if(p.tag===N||p.tag===_)OL(e,p.stateNode);else if(p.tag!==A){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===n)return;for(;p.sibling===null;){if(p.return===null||p.return===n)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},HS=function(e,n){},IT=function(e,n,s,c,p){var b=e.memoizedProps;if(b!==c){var E=n.stateNode,j=qC(),O=kL(E,s,b,c,p,j);n.updateQueue=O,O&&jp(n)}},jT=function(e,n,s,c){s!==c&&jp(n)};function Hv(e,n){if(!sa())switch(e.tailMode){case"hidden":{for(var s=e.tail,c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?e.tail=null:c.sibling=null;break}case"collapsed":{for(var p=e.tail,b=null;p!==null;)p.alternate!==null&&(b=p),p=p.sibling;b===null?!n&&e.tail!==null?e.tail.sibling=null:e.tail=null:b.sibling=null;break}}}function ua(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=Re,c=mt;if(n){if((e.mode&tn)!==gt){for(var O=e.selfBaseDuration,B=e.child;B!==null;)s=Dt(s,Dt(B.lanes,B.childLanes)),c|=B.subtreeFlags&Fr,c|=B.flags&Fr,O+=B.treeBaseDuration,B=B.sibling;e.treeBaseDuration=O}else for(var H=e.child;H!==null;)s=Dt(s,Dt(H.lanes,H.childLanes)),c|=H.subtreeFlags&Fr,c|=H.flags&Fr,H.return=e,H=H.sibling;e.subtreeFlags|=c}else{if((e.mode&tn)!==gt){for(var p=e.actualDuration,b=e.selfBaseDuration,E=e.child;E!==null;)s=Dt(s,Dt(E.lanes,E.childLanes)),c|=E.subtreeFlags,c|=E.flags,p+=E.actualDuration,b+=E.treeBaseDuration,E=E.sibling;e.actualDuration=p,e.treeBaseDuration=b}else for(var j=e.child;j!==null;)s=Dt(s,Dt(j.lanes,j.childLanes)),c|=j.subtreeFlags,c|=j.flags,j.return=e,j=j.sibling;e.subtreeFlags|=c}return e.childLanes=s,n}function cV(e,n,s){if(ZP()&&(n.mode&dt)!==gt&&(n.flags&jt)===mt)return o1(n),bp(),n.flags|=aa|Ns|Pr,!1;var c=Iy(n);if(s!==null&&s.dehydrated!==null)if(e===null){if(!c)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(XP(n),ua(n),(n.mode&tn)!==gt){var p=s!==null;if(p){var b=n.child;b!==null&&(n.treeBaseDuration-=b.treeBaseDuration)}}return!1}else{if(bp(),(n.flags&jt)===mt&&(n.memoizedState=null),n.flags|=ut,ua(n),(n.mode&tn)!==gt){var E=s!==null;if(E){var j=n.child;j!==null&&(n.treeBaseDuration-=j.treeBaseDuration)}}return!1}else return s1(),!0}function AT(e,n,s){var c=n.pendingProps;switch(mC(n),n.tag){case w:case ce:case Y:case x:case U:case I:case M:case F:case P:case X:return ua(n),null;case C:{var p=n.type;return Hs(p)&&Ey(n),ua(n),null}case R:{var b=n.stateNode;if(Ep(n),fC(n),tS(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),e===null||e.child===null){var E=Iy(n);if(E)jp(n);else if(e!==null){var j=e.memoizedState;(!j.isDehydrated||(n.flags&aa)!==mt)&&(n.flags|=mr,s1())}}return HS(e,n),ua(n),null}case N:{JC(n);var O=I1(),B=n.type;if(e!==null&&n.stateNode!=null)IT(e,n,B,c,O),e.ref!==n.ref&&TT(n);else{if(!c){if(n.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ua(n),null}var H=qC(),te=Iy(n);if(te)GP(n,O,H)&&jp(n);else{var K=AL(B,c,O,H,n);NT(K,n,!1,!1),n.stateNode=K,DL(K,B,c,O)&&jp(n)}n.ref!==null&&TT(n)}return ua(n),null}case _:{var fe=c;if(e&&n.stateNode!=null){var pe=e.memoizedProps;jT(e,n,pe,fe)}else{if(typeof fe!="string"&&n.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Ce=I1(),tt=qC(),yt=Iy(n);yt?WP(n)&&jp(n):n.stateNode=ML(fe,Ce,tt,n)}return ua(n),null}case z:{Rp(n);var ft=n.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Yt=cV(e,n,ft);if(!Yt)return n.flags&Pr?n:null}if((n.flags&jt)!==mt)return n.lanes=s,(n.mode&tn)!==gt&&_S(n),n;var zt=ft!==null,se=e!==null&&e.memoizedState!==null;if(zt!==se&&zt){var Se=n.child;if(Se.flags|=Ts,(n.mode&dt)!==gt){var le=e===null&&(n.memoizedProps.unstable_avoidThisFallback!==!0||!ne);le||QC(ts.current,O1)?dB():lE()}}var $e=n.updateQueue;if($e!==null&&(n.flags|=ut),ua(n),(n.mode&tn)!==gt&&zt){var nt=n.child;nt!==null&&(n.treeBaseDuration-=nt.treeBaseDuration)}return null}case A:return Ep(n),HS(e,n),e===null&&NP(n.stateNode.containerInfo),ua(n),null;case V:var Je=n.type._context;return RC(Je,n),ua(n),null;case ie:{var Nt=n.type;return Hs(Nt)&&Ey(n),ua(n),null}case ae:{Rp(n);var Ot=n.memoizedState;if(Ot===null)return ua(n),null;var En=(n.flags&jt)!==mt,on=Ot.rendering;if(on===null)if(En)Hv(Ot,!1);else{var Rr=pB()&&(e===null||(e.flags&jt)===mt);if(!Rr)for(var sn=n.child;sn!==null;){var yr=Wy(sn);if(yr!==null){En=!0,n.flags|=jt,Hv(Ot,!1);var Va=yr.updateQueue;return Va!==null&&(n.updateQueue=Va,n.flags|=ut),n.subtreeFlags=mt,pF(n,s),ic(n,KC(ts.current,Dv)),n.child}sn=sn.sibling}Ot.tail!==null&&gr()>QT()&&(n.flags|=jt,En=!0,Hv(Ot,!1),n.lanes=zh)}else{if(!En){var ha=Wy(on);if(ha!==null){n.flags|=jt,En=!0;var Yi=ha.updateQueue;if(Yi!==null&&(n.updateQueue=Yi,n.flags|=ut),Hv(Ot,!0),Ot.tail===null&&Ot.tailMode==="hidden"&&!on.alternate&&!sa())return ua(n),null}else gr()*2-Ot.renderingStartTime>QT()&&s!==Qa&&(n.flags|=jt,En=!0,Hv(Ot,!1),n.lanes=zh)}if(Ot.isBackwards)on.sibling=n.child,n.child=on;else{var ni=Ot.last;ni!==null?ni.sibling=on:n.child=on,Ot.last=on}}if(Ot.tail!==null){var ri=Ot.tail;Ot.rendering=ri,Ot.tail=ri.sibling,Ot.renderingStartTime=gr(),ri.sibling=null;var Ba=ts.current;return En?Ba=KC(Ba,Dv):Ba=wp(Ba),ic(n,Ba),ri}return ua(n),null}case we:break;case ge:case xe:{sE(n);var Zl=n.memoizedState,Fp=Zl!==null;if(e!==null){var om=e.memoizedState,Qs=om!==null;Qs!==Fp&&!Z&&(n.flags|=Ts)}return!Fp||(n.mode&dt)===gt?ua(n):ka(Js,Qa)&&(ua(n),n.subtreeFlags&(In|ut)&&(n.flags|=Ts)),null}case je:return null;case Le:return null}throw new Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function dV(e,n,s){switch(mC(n),n.tag){case C:{var c=n.type;Hs(c)&&Ey(n);var p=n.flags;return p&Pr?(n.flags=p&~Pr|jt,(n.mode&tn)!==gt&&_S(n),n):null}case R:{n.stateNode,Ep(n),fC(n),tS();var b=n.flags;return(b&Pr)!==mt&&(b&jt)===mt?(n.flags=b&~Pr|jt,n):null}case N:return JC(n),null;case z:{Rp(n);var E=n.memoizedState;if(E!==null&&E.dehydrated!==null){if(n.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");bp()}var j=n.flags;return j&Pr?(n.flags=j&~Pr|jt,(n.mode&tn)!==gt&&_S(n),n):null}case ae:return Rp(n),null;case A:return Ep(n),null;case V:var O=n.type._context;return RC(O,n),null;case ge:case xe:return sE(n),null;case je:return null;default:return null}}function OT(e,n,s){switch(mC(n),n.tag){case C:{var c=n.type.childContextTypes;c!=null&&Ey(n);break}case R:{n.stateNode,Ep(n),fC(n),tS();break}case N:{JC(n);break}case A:Ep(n);break;case z:Rp(n);break;case ae:Rp(n);break;case V:var p=n.type._context;RC(p,n);break;case ge:case xe:sE(n);break}}var DT=null;DT=new Set;var vb=!1,ca=!1,fV=typeof WeakSet=="function"?WeakSet:Set,ot=null,Ap=null,Op=null;function pV(e){Ui(null,function(){throw e}),Uo()}var hV=function(e,n){if(n.props=e.memoizedProps,n.state=e.memoizedState,e.mode&tn)try{Zs(),n.componentWillUnmount()}finally{Ys(e)}else n.componentWillUnmount()};function kT(e,n){try{lc($r,e)}catch(s){Un(e,n,s)}}function GS(e,n,s){try{hV(e,s)}catch(c){Un(e,n,c)}}function vV(e,n,s){try{s.componentDidMount()}catch(c){Un(e,n,c)}}function MT(e,n){try{PT(e)}catch(s){Un(e,n,s)}}function Dp(e,n){var s=e.ref;if(s!==null)if(typeof s=="function"){var c;try{if(ke&&Oe&&e.mode&tn)try{Zs(),c=s(null)}finally{Ys(e)}else c=s(null)}catch(p){Un(e,n,p)}typeof c=="function"&&h("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",It(e))}else s.current=null}function mb(e,n,s){try{s()}catch(c){Un(e,n,c)}}var LT=!1;function mV(e,n){IL(e.containerInfo),ot=n,gV();var s=LT;return LT=!1,s}function gV(){for(;ot!==null;){var e=ot,n=e.child;(e.subtreeFlags&Ta)!==mt&&n!==null?(n.return=e,ot=n):yV()}}function yV(){for(;ot!==null;){var e=ot;Yn(e);try{bV(e)}catch(s){Un(e,e.return,s)}Vn();var n=e.sibling;if(n!==null){n.return=e.return,ot=n;return}ot=e.return}}function bV(e){var n=e.alternate,s=e.flags;if((s&mr)!==mt){switch(Yn(e),e.tag){case x:case U:case Y:break;case C:{if(n!==null){var c=n.memoizedProps,p=n.memoizedState,b=e.stateNode;e.type===e.elementType&&!Md&&(b.props!==e.memoizedProps&&h("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(e)||"instance"),b.state!==e.memoizedState&&h("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(e)||"instance"));var E=b.getSnapshotBeforeUpdate(e.elementType===e.type?c:es(e.type,c),p);{var j=DT;E===void 0&&!j.has(e.type)&&(j.add(e.type),h("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",It(e)))}b.__reactInternalSnapshotBeforeUpdate=E}break}case R:{{var O=e.stateNode;eP(O.containerInfo)}break}case N:case _:case A:case ie:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Vn()}}function as(e,n,s){var c=n.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var b=p.next,E=b;do{if((E.tag&e)===e){var j=E.destroy;E.destroy=void 0,j!==void 0&&((e&la)!==_i?Rg(n):(e&$r)!==_i&&Tu(n),(e&Gs)!==_i&&rm(!0),mb(n,s,j),(e&Gs)!==_i&&rm(!1),(e&la)!==_i?_g():(e&$r)!==_i&&Kc())}E=E.next}while(E!==b)}}function lc(e,n){var s=n.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var p=c.next,b=p;do{if((b.tag&e)===e){(e&la)!==_i?Fh(n):(e&$r)!==_i&&Tg(n);var E=b.create;(e&Gs)!==_i&&rm(!0),b.destroy=E(),(e&Gs)!==_i&&rm(!1),(e&la)!==_i?Sf():(e&$r)!==_i&&Vh();{var j=b.destroy;if(j!==void 0&&typeof j!="function"){var O=void 0;(b.tag&$r)!==mt?O="useLayoutEffect":(b.tag&Gs)!==mt?O="useInsertionEffect":O="useEffect";var B=void 0;j===null?B=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof j.then=="function"?B=`
192
-
193
- It looks like you wrote `+O+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
194
-
195
- `+O+`(() => {
196
- async function fetchData() {
197
- // You can await here
198
- const response = await MyAPI.getData(someId);
199
- // ...
200
- }
201
- fetchData();
202
- }, [someId]); // Or [] if effect doesn't need props or state
203
-
204
- Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:B=" You returned: "+j,h("%s must not return anything besides a function, which is used for clean-up.%s",O,B)}}}b=b.next}while(b!==p)}}function xV(e,n){if((n.flags&ut)!==mt)switch(n.tag){case F:{var s=n.stateNode.passiveEffectDuration,c=n.memoizedProps,p=c.id,b=c.onPostCommit,E=aT(),j=n.alternate===null?"mount":"update";rT()&&(j="nested-update"),typeof b=="function"&&b(p,j,s,E);var O=n.return;e:for(;O!==null;){switch(O.tag){case R:var B=O.stateNode;B.passiveEffectDuration+=s;break e;case F:var H=O.stateNode;H.passiveEffectDuration+=s;break e}O=O.return}break}}}function CV(e,n,s,c){if((s.flags&Gi)!==mt)switch(s.tag){case x:case U:case Y:{if(!ca)if(s.mode&tn)try{Zs(),lc($r|Br,s)}finally{Ys(s)}else lc($r|Br,s);break}case C:{var p=s.stateNode;if(s.flags&ut&&!ca)if(n===null)if(s.type===s.elementType&&!Md&&(p.props!==s.memoizedProps&&h("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(s)||"instance"),p.state!==s.memoizedState&&h("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(s)||"instance")),s.mode&tn)try{Zs(),p.componentDidMount()}finally{Ys(s)}else p.componentDidMount();else{var b=s.elementType===s.type?n.memoizedProps:es(s.type,n.memoizedProps),E=n.memoizedState;if(s.type===s.elementType&&!Md&&(p.props!==s.memoizedProps&&h("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(s)||"instance"),p.state!==s.memoizedState&&h("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(s)||"instance")),s.mode&tn)try{Zs(),p.componentDidUpdate(b,E,p.__reactInternalSnapshotBeforeUpdate)}finally{Ys(s)}else p.componentDidUpdate(b,E,p.__reactInternalSnapshotBeforeUpdate)}var j=s.updateQueue;j!==null&&(s.type===s.elementType&&!Md&&(p.props!==s.memoizedProps&&h("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(s)||"instance"),p.state!==s.memoizedState&&h("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(s)||"instance")),g1(s,j,p));break}case R:{var O=s.updateQueue;if(O!==null){var B=null;if(s.child!==null)switch(s.child.tag){case N:B=s.child.stateNode;break;case C:B=s.child.stateNode;break}g1(s,O,B)}break}case N:{var H=s.stateNode;if(n===null&&s.flags&ut){var te=s.type,K=s.memoizedProps;BL(H,te,K)}break}case _:break;case A:break;case F:{{var fe=s.memoizedProps,pe=fe.onCommit,Ce=fe.onRender,tt=s.stateNode.effectDuration,yt=aT(),ft=n===null?"mount":"update";rT()&&(ft="nested-update"),typeof Ce=="function"&&Ce(s.memoizedProps.id,ft,s.actualDuration,s.treeBaseDuration,s.actualStartTime,yt);{typeof pe=="function"&&pe(s.memoizedProps.id,ft,tt,yt),yB(s);var Yt=s.return;e:for(;Yt!==null;){switch(Yt.tag){case R:var zt=Yt.stateNode;zt.effectDuration+=tt;break e;case F:var se=Yt.stateNode;se.effectDuration+=tt;break e}Yt=Yt.return}}}break}case z:{IV(e,s);break}case ae:case ie:case we:case ge:case xe:case Le:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}ca||s.flags&Ya&&PT(s)}function SV(e){switch(e.tag){case x:case U:case Y:{if(e.mode&tn)try{Zs(),kT(e,e.return)}finally{Ys(e)}else kT(e,e.return);break}case C:{var n=e.stateNode;typeof n.componentDidMount=="function"&&vV(e,e.return,n),MT(e,e.return);break}case N:{MT(e,e.return);break}}}function EV(e,n){for(var s=null,c=e;;){if(c.tag===N){if(s===null){s=c;try{var p=c.stateNode;n?qL(p):QL(c.stateNode,c.memoizedProps)}catch(E){Un(e,e.return,E)}}}else if(c.tag===_){if(s===null)try{var b=c.stateNode;n?JL(b):KL(b,c.memoizedProps)}catch(E){Un(e,e.return,E)}}else if(!((c.tag===ge||c.tag===xe)&&c.memoizedState!==null&&c!==e)){if(c.child!==null){c.child.return=c,c=c.child;continue}}if(c===e)return;for(;c.sibling===null;){if(c.return===null||c.return===e)return;s===c&&(s=null),c=c.return}s===c&&(s=null),c.sibling.return=c.return,c=c.sibling}}function PT(e){var n=e.ref;if(n!==null){var s=e.stateNode,c;switch(e.tag){case N:c=s;break;default:c=s}if(typeof n=="function"){var p;if(e.mode&tn)try{Zs(),p=n(c)}finally{Ys(e)}else p=n(c);typeof p=="function"&&h("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",It(e))}else n.hasOwnProperty("current")||h("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",It(e)),n.current=c}}function wV(e){var n=e.alternate;n!==null&&(n.return=null),e.return=null}function FT(e){var n=e.alternate;n!==null&&(e.alternate=null,FT(n));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===N){var s=e.stateNode;s!==null&&AP(s)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function RV(e){for(var n=e.return;n!==null;){if(VT(n))return n;n=n.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function VT(e){return e.tag===N||e.tag===R||e.tag===A}function BT(e){var n=e;e:for(;;){for(;n.sibling===null;){if(n.return===null||VT(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==N&&n.tag!==_&&n.tag!==me;){if(n.flags&In||n.child===null||n.tag===A)continue e;n.child.return=n,n=n.child}if(!(n.flags&In))return n.stateNode}}function _V(e){var n=RV(e);switch(n.tag){case N:{var s=n.stateNode;n.flags&fi&&($_(s),n.flags&=~fi);var c=BT(e);XS(e,c,s);break}case R:case A:{var p=n.stateNode.containerInfo,b=BT(e);WS(e,b,p);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function WS(e,n,s){var c=e.tag,p=c===N||c===_;if(p){var b=e.stateNode;n?WL(s,b,n):HL(s,b)}else if(c!==A){var E=e.child;if(E!==null){WS(E,n,s);for(var j=E.sibling;j!==null;)WS(j,n,s),j=j.sibling}}}function XS(e,n,s){var c=e.tag,p=c===N||c===_;if(p){var b=e.stateNode;n?GL(s,b,n):UL(s,b)}else if(c!==A){var E=e.child;if(E!==null){XS(E,n,s);for(var j=E.sibling;j!==null;)XS(j,n,s),j=j.sibling}}}var da=null,is=!1;function TV(e,n,s){{var c=n;e:for(;c!==null;){switch(c.tag){case N:{da=c.stateNode,is=!1;break e}case R:{da=c.stateNode.containerInfo,is=!0;break e}case A:{da=c.stateNode.containerInfo,is=!0;break e}}c=c.return}if(da===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");$T(e,n,s),da=null,is=!1}wV(s)}function uc(e,n,s){for(var c=s.child;c!==null;)$T(e,n,c),c=c.sibling}function $T(e,n,s){switch(Eg(s),s.tag){case N:ca||Dp(s,n);case _:{{var c=da,p=is;da=null,uc(e,n,s),da=c,is=p,da!==null&&(is?YL(da,s.stateNode):XL(da,s.stateNode))}return}case me:{da!==null&&(is?ZL(da,s.stateNode):aC(da,s.stateNode));return}case A:{{var b=da,E=is;da=s.stateNode.containerInfo,is=!0,uc(e,n,s),da=b,is=E}return}case x:case U:case X:case Y:{if(!ca){var j=s.updateQueue;if(j!==null){var O=j.lastEffect;if(O!==null){var B=O.next,H=B;do{var te=H,K=te.destroy,fe=te.tag;K!==void 0&&((fe&Gs)!==_i?mb(s,n,K):(fe&$r)!==_i&&(Tu(s),s.mode&tn?(Zs(),mb(s,n,K),Ys(s)):mb(s,n,K),Kc())),H=H.next}while(H!==B)}}}uc(e,n,s);return}case C:{if(!ca){Dp(s,n);var pe=s.stateNode;typeof pe.componentWillUnmount=="function"&&GS(s,n,pe)}uc(e,n,s);return}case we:{uc(e,n,s);return}case ge:{if(s.mode&dt){var Ce=ca;ca=Ce||s.memoizedState!==null,uc(e,n,s),ca=Ce}else uc(e,n,s);break}default:{uc(e,n,s);return}}}function NV(e){e.memoizedState}function IV(e,n){var s=n.memoizedState;if(s===null){var c=n.alternate;if(c!==null){var p=c.memoizedState;if(p!==null){var b=p.dehydrated;b!==null&&hP(b)}}}}function zT(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new fV),n.forEach(function(c){var p=RB.bind(null,e,c);if(!s.has(c)){if(s.add(c),Ja)if(Ap!==null&&Op!==null)nm(Op,Ap);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");c.then(p,p)}})}}function jV(e,n,s){Ap=s,Op=e,Yn(n),UT(n,e),Yn(n),Ap=null,Op=null}function os(e,n,s){var c=n.deletions;if(c!==null)for(var p=0;p<c.length;p++){var b=c[p];try{TV(e,n,b)}catch(O){Un(b,n,O)}}var E=Ac();if(n.subtreeFlags&Na)for(var j=n.child;j!==null;)Yn(j),UT(j,e),j=j.sibling;Yn(E)}function UT(e,n,s){var c=e.alternate,p=e.flags;switch(e.tag){case x:case U:case X:case Y:{if(os(n,e),qs(e),p&ut){try{as(Gs|Br,e,e.return),lc(Gs|Br,e)}catch(Nt){Un(e,e.return,Nt)}if(e.mode&tn){try{Zs(),as($r|Br,e,e.return)}catch(Nt){Un(e,e.return,Nt)}Ys(e)}else try{as($r|Br,e,e.return)}catch(Nt){Un(e,e.return,Nt)}}return}case C:{os(n,e),qs(e),p&Ya&&c!==null&&Dp(c,c.return);return}case N:{os(n,e),qs(e),p&Ya&&c!==null&&Dp(c,c.return);{if(e.flags&fi){var b=e.stateNode;try{$_(b)}catch(Nt){Un(e,e.return,Nt)}}if(p&ut){var E=e.stateNode;if(E!=null){var j=e.memoizedProps,O=c!==null?c.memoizedProps:j,B=e.type,H=e.updateQueue;if(e.updateQueue=null,H!==null)try{$L(E,H,B,O,j,e)}catch(Nt){Un(e,e.return,Nt)}}}}return}case _:{if(os(n,e),qs(e),p&ut){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var te=e.stateNode,K=e.memoizedProps,fe=c!==null?c.memoizedProps:K;try{zL(te,fe,K)}catch(Nt){Un(e,e.return,Nt)}}return}case R:{if(os(n,e),qs(e),p&ut&&c!==null){var pe=c.memoizedState;if(pe.isDehydrated)try{pP(n.containerInfo)}catch(Nt){Un(e,e.return,Nt)}}return}case A:{os(n,e),qs(e);return}case z:{os(n,e),qs(e);var Ce=e.child;if(Ce.flags&Ts){var tt=Ce.stateNode,yt=Ce.memoizedState,ft=yt!==null;if(tt.isHidden=ft,ft){var Yt=Ce.alternate!==null&&Ce.alternate.memoizedState!==null;Yt||cB()}}if(p&ut){try{NV(e)}catch(Nt){Un(e,e.return,Nt)}zT(e)}return}case ge:{var zt=c!==null&&c.memoizedState!==null;if(e.mode&dt){var se=ca;ca=se||zt,os(n,e),ca=se}else os(n,e);if(qs(e),p&Ts){var Se=e.stateNode,le=e.memoizedState,$e=le!==null,nt=e;if(Se.isHidden=$e,$e&&!zt&&(nt.mode&dt)!==gt){ot=nt;for(var Je=nt.child;Je!==null;)ot=Je,OV(Je),Je=Je.sibling}EV(nt,$e)}return}case ae:{os(n,e),qs(e),p&ut&&zT(e);return}case we:return;default:{os(n,e),qs(e);return}}}function qs(e){var n=e.flags;if(n&In){try{_V(e)}catch(s){Un(e,e.return,s)}e.flags&=~In}n&so&&(e.flags&=~so)}function AV(e,n,s){Ap=s,Op=n,ot=e,HT(e,n,s),Ap=null,Op=null}function HT(e,n,s){for(var c=(e.mode&dt)!==gt;ot!==null;){var p=ot,b=p.child;if(p.tag===ge&&c){var E=p.memoizedState!==null,j=E||vb;if(j){YS(e,n,s);continue}else{var O=p.alternate,B=O!==null&&O.memoizedState!==null,H=B||ca,te=vb,K=ca;vb=j,ca=H,ca&&!K&&(ot=p,DV(p));for(var fe=b;fe!==null;)ot=fe,HT(fe,n,s),fe=fe.sibling;ot=p,vb=te,ca=K,YS(e,n,s);continue}}(p.subtreeFlags&Gi)!==mt&&b!==null?(b.return=p,ot=b):YS(e,n,s)}}function YS(e,n,s){for(;ot!==null;){var c=ot;if((c.flags&Gi)!==mt){var p=c.alternate;Yn(c);try{CV(n,p,c,s)}catch(E){Un(c,c.return,E)}Vn()}if(c===e){ot=null;return}var b=c.sibling;if(b!==null){b.return=c.return,ot=b;return}ot=c.return}}function OV(e){for(;ot!==null;){var n=ot,s=n.child;switch(n.tag){case x:case U:case X:case Y:{if(n.mode&tn)try{Zs(),as($r,n,n.return)}finally{Ys(n)}else as($r,n,n.return);break}case C:{Dp(n,n.return);var c=n.stateNode;typeof c.componentWillUnmount=="function"&&GS(n,n.return,c);break}case N:{Dp(n,n.return);break}case ge:{var p=n.memoizedState!==null;if(p){GT(e);continue}break}}s!==null?(s.return=n,ot=s):GT(e)}}function GT(e){for(;ot!==null;){var n=ot;if(n===e){ot=null;return}var s=n.sibling;if(s!==null){s.return=n.return,ot=s;return}ot=n.return}}function DV(e){for(;ot!==null;){var n=ot,s=n.child;if(n.tag===ge){var c=n.memoizedState!==null;if(c){WT(e);continue}}s!==null?(s.return=n,ot=s):WT(e)}}function WT(e){for(;ot!==null;){var n=ot;Yn(n);try{SV(n)}catch(c){Un(n,n.return,c)}if(Vn(),n===e){ot=null;return}var s=n.sibling;if(s!==null){s.return=n.return,ot=s;return}ot=n.return}}function kV(e,n,s,c){ot=n,MV(n,e,s,c)}function MV(e,n,s,c){for(;ot!==null;){var p=ot,b=p.child;(p.subtreeFlags&Ia)!==mt&&b!==null?(b.return=p,ot=b):LV(e,n,s,c)}}function LV(e,n,s,c){for(;ot!==null;){var p=ot;if((p.flags&_a)!==mt){Yn(p);try{PV(n,p,s,c)}catch(E){Un(p,p.return,E)}Vn()}if(p===e){ot=null;return}var b=p.sibling;if(b!==null){b.return=p.return,ot=b;return}ot=p.return}}function PV(e,n,s,c){switch(n.tag){case x:case U:case Y:{if(n.mode&tn){RS();try{lc(la|Br,n)}finally{wS(n)}}else lc(la|Br,n);break}}}function FV(e){ot=e,VV()}function VV(){for(;ot!==null;){var e=ot,n=e.child;if((ot.flags&rn)!==mt){var s=e.deletions;if(s!==null){for(var c=0;c<s.length;c++){var p=s[c];ot=p,zV(p,e)}{var b=e.alternate;if(b!==null){var E=b.child;if(E!==null){b.child=null;do{var j=E.sibling;E.sibling=null,E=j}while(E!==null)}}}ot=e}}(e.subtreeFlags&Ia)!==mt&&n!==null?(n.return=e,ot=n):BV()}}function BV(){for(;ot!==null;){var e=ot;(e.flags&_a)!==mt&&(Yn(e),$V(e),Vn());var n=e.sibling;if(n!==null){n.return=e.return,ot=n;return}ot=e.return}}function $V(e){switch(e.tag){case x:case U:case Y:{e.mode&tn?(RS(),as(la|Br,e,e.return),wS(e)):as(la|Br,e,e.return);break}}}function zV(e,n){for(;ot!==null;){var s=ot;Yn(s),HV(s,n),Vn();var c=s.child;c!==null?(c.return=s,ot=c):UV(e)}}function UV(e){for(;ot!==null;){var n=ot,s=n.sibling,c=n.return;if(FT(n),n===e){ot=null;return}if(s!==null){s.return=c,ot=s;return}ot=c}}function HV(e,n){switch(e.tag){case x:case U:case Y:{e.mode&tn?(RS(),as(la,e,n),wS(e)):as(la,e,n);break}}}function GV(e){switch(e.tag){case x:case U:case Y:{try{lc($r|Br,e)}catch(s){Un(e,e.return,s)}break}case C:{var n=e.stateNode;try{n.componentDidMount()}catch(s){Un(e,e.return,s)}break}}}function WV(e){switch(e.tag){case x:case U:case Y:{try{lc(la|Br,e)}catch(n){Un(e,e.return,n)}break}}}function XV(e){switch(e.tag){case x:case U:case Y:{try{as($r|Br,e,e.return)}catch(s){Un(e,e.return,s)}break}case C:{var n=e.stateNode;typeof n.componentWillUnmount=="function"&&GS(e,e.return,n);break}}}function YV(e){switch(e.tag){case x:case U:case Y:try{as(la|Br,e,e.return)}catch(n){Un(e,e.return,n)}}}if(typeof Symbol=="function"&&Symbol.for){var Gv=Symbol.for;Gv("selector.component"),Gv("selector.has_pseudo_class"),Gv("selector.role"),Gv("selector.test_id"),Gv("selector.text")}var ZV=[];function qV(){ZV.forEach(function(e){return e()})}var JV=l.ReactCurrentActQueue;function QV(e){{var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&n!==!1}}function XT(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&JV.current!==null&&h("The current testing environment is not configured to support act(...)"),e}}var KV=Math.ceil,ZS=l.ReactCurrentDispatcher,qS=l.ReactCurrentOwner,fa=l.ReactCurrentBatchConfig,ss=l.ReactCurrentActQueue,Hr=0,YT=1,pa=2,So=4,Gl=0,Wv=1,Ld=2,gb=3,Xv=4,ZT=5,JS=6,Xt=Hr,ei=null,pr=null,Gr=Re,Js=Re,QS=Ku(Re),Wr=Gl,Yv=null,yb=Re,Zv=Re,bb=Re,qv=null,Ti=null,KS=0,qT=500,JT=1/0,eB=500,Wl=null;function Jv(){JT=gr()+eB}function QT(){return JT}var xb=!1,eE=null,kp=null,Pd=!1,cc=null,Qv=Re,tE=[],nE=null,tB=50,Kv=0,rE=null,aE=!1,Cb=!1,nB=50,Mp=0,Sb=null,em=Ln,Eb=Re,KT=!1;function wb(){return ei}function ti(){return(Xt&(pa|So))!==Hr?gr():(em!==Ln||(em=gr()),em)}function dc(e){var n=e.mode;if((n&dt)===gt)return Ct;if((Xt&pa)!==Hr&&Gr!==Re)return ku(Gr);var s=QP()!==JP;if(s){if(fa.transition!==null){var c=fa.transition;c._updatedFibers||(c._updatedFibers=new Set),c._updatedFibers.add(e)}return Eb===ur&&(Eb=Lg()),Eb}var p=bi();if(p!==ur)return p;var b=LL();return b}function rB(e){var n=e.mode;return(n&dt)===gt?Ct:Da()}function Xr(e,n,s,c){TB(),KT&&h("useInsertionEffect must not schedule updates."),aE&&(Cb=!0),Al(e,s,c),(Xt&pa)!==Re&&e===ei?jB(n):(Ja&&zf(e,n,s),AB(n),e===ei&&((Xt&pa)===Hr&&(Zv=Dt(Zv,s)),Wr===Xv&&fc(e,Gr)),Ni(e,c),s===Ct&&Xt===Hr&&(n.mode&dt)===gt&&!ss.isBatchingLegacy&&(Jv(),Q_()))}function aB(e,n,s){var c=e.current;c.lanes=n,Al(e,n,s),Ni(e,s)}function iB(e){return(Xt&pa)!==Hr}function Ni(e,n){var s=e.callbackNode;E0(e,n);var c=sd(e,e===ei?Gr:Re);if(c===Re){s!==null&&vN(s),e.callbackNode=null,e.callbackPriority=ur;return}var p=cr(c),b=e.callbackPriority;if(b===p&&!(ss.current!==null&&s!==dE)){s==null&&b!==Ct&&h("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&vN(s);var E;if(p===Ct)e.tag===ec?(ss.isBatchingLegacy!==null&&(ss.didScheduleLegacyUpdate=!0),kP(nN.bind(null,e))):J_(nN.bind(null,e)),ss.current!==null?ss.current.push(tc):FL(function(){(Xt&(pa|So))===Hr&&tc()}),E=null;else{var j;switch(Vr(c)){case dr:j=ja;break;case Xo:j=wu;break;case po:j=uo;break;case Mu:j=Jc;break;default:j=uo;break}E=fE(j,eN.bind(null,e))}e.callbackPriority=p,e.callbackNode=E}function eN(e,n){if(TF(),em=Ln,Eb=Re,(Xt&(pa|So))!==Hr)throw new Error("Should not already be working.");var s=e.callbackNode,c=Yl();if(c&&e.callbackNode!==s)return null;var p=sd(e,e===ei?Gr:Re);if(p===Re)return null;var b=!ud(e,p)&&!Mg(e,p)&&!n,E=b?vB(e,p):_b(e,p);if(E!==Gl){if(E===Ld){var j=Ps(e);j!==Re&&(p=j,E=iE(e,j))}if(E===Wv){var O=Yv;throw Fd(e,Re),fc(e,p),Ni(e,gr()),O}if(E===JS)fc(e,p);else{var B=!ud(e,p),H=e.current.alternate;if(B&&!sB(H)){if(E=_b(e,p),E===Ld){var te=Ps(e);te!==Re&&(p=te,E=iE(e,te))}if(E===Wv){var K=Yv;throw Fd(e,Re),fc(e,p),Ni(e,gr()),K}}e.finishedWork=H,e.finishedLanes=p,oB(e,E,p)}}return Ni(e,gr()),e.callbackNode===s?eN.bind(null,e):null}function iE(e,n){var s=qv;if(Uf(e)){var c=Fd(e,n);c.flags|=aa,TP(e.containerInfo)}var p=_b(e,n);if(p!==Ld){var b=Ti;Ti=s,b!==null&&tN(b)}return p}function tN(e){Ti===null?Ti=e:Ti.push.apply(Ti,e)}function oB(e,n,s){switch(n){case Gl:case Wv:throw new Error("Root did not complete. This is a bug in React.");case Ld:{Vd(e,Ti,Wl);break}case gb:{if(fc(e,s),Og(s)&&!mN()){var c=KS+qT-gr();if(c>10){var p=sd(e,Re);if(p!==Re)break;var b=e.suspendedLanes;if(!jl(b,s)){ti(),Bf(e,b);break}e.timeoutHandle=nC(Vd.bind(null,e,Ti,Wl),c);break}}Vd(e,Ti,Wl);break}case Xv:{if(fc(e,s),kg(s))break;if(!mN()){var E=Pf(e,s),j=E,O=gr()-j,B=_B(O)-O;if(B>10){e.timeoutHandle=nC(Vd.bind(null,e,Ti,Wl),B);break}}Vd(e,Ti,Wl);break}case ZT:{Vd(e,Ti,Wl);break}default:throw new Error("Unknown root exit status.")}}function sB(e){for(var n=e;;){if(n.flags&bl){var s=n.updateQueue;if(s!==null){var c=s.stores;if(c!==null)for(var p=0;p<c.length;p++){var b=c[p],E=b.getSnapshot,j=b.value;try{if(!it(E(),j))return!1}catch{return!1}}}}var O=n.child;if(n.subtreeFlags&bl&&O!==null){O.return=n,n=O;continue}if(n===e)return!0;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}return!0}function fc(e,n){n=cd(n,bb),n=cd(n,Zv),Fg(e,n)}function nN(e){if(NF(),(Xt&(pa|So))!==Hr)throw new Error("Should not already be working.");Yl();var n=sd(e,Re);if(!ka(n,Ct))return Ni(e,gr()),null;var s=_b(e,n);if(e.tag!==ec&&s===Ld){var c=Ps(e);c!==Re&&(n=c,s=iE(e,c))}if(s===Wv){var p=Yv;throw Fd(e,Re),fc(e,n),Ni(e,gr()),p}if(s===JS)throw new Error("Root did not complete. This is a bug in React.");var b=e.current.alternate;return e.finishedWork=b,e.finishedLanes=n,Vd(e,Ti,Wl),Ni(e,gr()),null}function lB(e,n){n!==Re&&(Wh(e,Dt(n,Ct)),Ni(e,gr()),(Xt&(pa|So))===Hr&&(Jv(),tc()))}function oE(e,n){var s=Xt;Xt|=YT;try{return e(n)}finally{Xt=s,Xt===Hr&&!ss.isBatchingLegacy&&(Jv(),Q_())}}function uB(e,n,s,c,p){var b=bi(),E=fa.transition;try{return fa.transition=null,nr(dr),e(n,s,c,p)}finally{nr(b),fa.transition=E,Xt===Hr&&Jv()}}function Xl(e){cc!==null&&cc.tag===ec&&(Xt&(pa|So))===Hr&&Yl();var n=Xt;Xt|=YT;var s=fa.transition,c=bi();try{return fa.transition=null,nr(dr),e?e():void 0}finally{nr(c),fa.transition=s,Xt=n,(Xt&(pa|So))===Hr&&tc()}}function rN(){return(Xt&(pa|So))!==Hr}function Rb(e,n){Pa(QS,Js,e),Js=Dt(Js,n)}function sE(e){Js=QS.current,La(QS,e)}function Fd(e,n){e.finishedWork=null,e.finishedLanes=Re;var s=e.timeoutHandle;if(s!==rC&&(e.timeoutHandle=rC,PL(s)),pr!==null)for(var c=pr.return;c!==null;){var p=c.alternate;OT(p,c),c=c.return}ei=e;var b=Bd(e.current,null);return pr=b,Gr=Js=n,Wr=Gl,Yv=null,yb=Re,Zv=Re,bb=Re,qv=null,Ti=null,nF(),Ko.discardPendingWarnings(),b}function aN(e,n){do{var s=pr;try{if(Dy(),k1(),Vn(),qS.current=null,s===null||s.return===null){Wr=Wv,Yv=n,pr=null;return}if(ke&&s.mode&tn&&db(s,!0),Ne)if(Sl(),n!==null&&typeof n=="object"&&typeof n.then=="function"){var c=n;Ig(s,c,Gr)}else Ng(s,n,Gr);DF(e,s.return,s,n,Gr),lN(s)}catch(p){n=p,pr===s&&s!==null?(s=s.return,pr=s):s=pr;continue}return}while(!0)}function iN(){var e=ZS.current;return ZS.current=ob,e===null?ob:e}function oN(e){ZS.current=e}function cB(){KS=gr()}function tm(e){yb=Dt(e,yb)}function dB(){Wr===Gl&&(Wr=gb)}function lE(){(Wr===Gl||Wr===gb||Wr===Ld)&&(Wr=Xv),ei!==null&&(ld(yb)||ld(Zv))&&fc(ei,Gr)}function fB(e){Wr!==Xv&&(Wr=Ld),qv===null?qv=[e]:qv.push(e)}function pB(){return Wr===Gl}function _b(e,n){var s=Xt;Xt|=pa;var c=iN();if(ei!==e||Gr!==n){if(Ja){var p=e.memoizedUpdaters;p.size>0&&(nm(e,Gr),p.clear()),Xh(e,n)}Wl=fd(),Fd(e,n)}Iu(n);do try{hB();break}catch(b){aN(e,b)}while(!0);if(Dy(),Xt=s,oN(c),pr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ks(),ei=null,Gr=Re,Wr}function hB(){for(;pr!==null;)sN(pr)}function vB(e,n){var s=Xt;Xt|=pa;var c=iN();if(ei!==e||Gr!==n){if(Ja){var p=e.memoizedUpdaters;p.size>0&&(nm(e,Gr),p.clear()),Xh(e,n)}Wl=fd(),Jv(),Fd(e,n)}Iu(n);do try{mB();break}catch(b){aN(e,b)}while(!0);return Dy(),oN(c),Xt=s,pr!==null?(td(),Gl):(ks(),ei=null,Gr=Re,Wr)}function mB(){for(;pr!==null&&!Cg();)sN(pr)}function sN(e){var n=e.alternate;Yn(e);var s;(e.mode&tn)!==gt?(ES(e),s=uE(n,e,Js),db(e,!0)):s=uE(n,e,Js),Vn(),e.memoizedProps=e.pendingProps,s===null?lN(e):pr=s,qS.current=null}function lN(e){var n=e;do{var s=n.alternate,c=n.return;if((n.flags&Ns)===mt){Yn(n);var p=void 0;if((n.mode&tn)===gt?p=AT(s,n,Js):(ES(n),p=AT(s,n,Js),db(n,!1)),Vn(),p!==null){pr=p;return}}else{var b=dV(s,n);if(b!==null){b.flags&=Ho,pr=b;return}if((n.mode&tn)!==gt){db(n,!1);for(var E=n.actualDuration,j=n.child;j!==null;)E+=j.actualDuration,j=j.sibling;n.actualDuration=E}if(c!==null)c.flags|=Ns,c.subtreeFlags=mt,c.deletions=null;else{Wr=JS,pr=null;return}}var O=n.sibling;if(O!==null){pr=O;return}n=c,pr=n}while(n!==null);Wr===Gl&&(Wr=ZT)}function Vd(e,n,s){var c=bi(),p=fa.transition;try{fa.transition=null,nr(dr),gB(e,n,s,c)}finally{fa.transition=p,nr(c)}return null}function gB(e,n,s,c){do Yl();while(cc!==null);if(NB(),(Xt&(pa|So))!==Hr)throw new Error("Should not already be working.");var p=e.finishedWork,b=e.finishedLanes;if(wg(b),p===null)return Qc(),null;if(b===Re&&h("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=Re,p===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=ur;var E=Dt(p.lanes,p.childLanes);$f(e,E),e===ei&&(ei=null,pr=null,Gr=Re),((p.subtreeFlags&Ia)!==mt||(p.flags&Ia)!==mt)&&(Pd||(Pd=!0,nE=s,fE(uo,function(){return Yl(),null})));var j=(p.subtreeFlags&(Ta|Na|Gi|Ia))!==mt,O=(p.flags&(Ta|Na|Gi|Ia))!==mt;if(j||O){var B=fa.transition;fa.transition=null;var H=bi();nr(dr);var te=Xt;Xt|=So,qS.current=null,mV(e,p),iT(),jV(e,p,b),jL(e.containerInfo),e.current=p,Nu(b),AV(p,e,b),jg(),Eu(),Xt=te,nr(H),fa.transition=B}else e.current=p,iT();var K=Pd;if(Pd?(Pd=!1,cc=e,Qv=b):(Mp=0,Sb=null),E=e.pendingLanes,E===Re&&(kp=null),K||fN(e.current,!1),Os(p.stateNode,c),Ja&&e.memoizedUpdaters.clear(),qV(),Ni(e,gr()),n!==null)for(var fe=e.onRecoverableError,pe=0;pe<n.length;pe++){var Ce=n[pe],tt=Ce.stack,yt=Ce.digest;fe(Ce.value,{componentStack:tt,digest:yt})}if(xb){xb=!1;var ft=eE;throw eE=null,ft}return ka(Qv,Ct)&&e.tag!==ec&&Yl(),E=e.pendingLanes,ka(E,Ct)?(_F(),e===rE?Kv++:(Kv=0,rE=e)):Kv=0,tc(),Qc(),null}function Yl(){if(cc!==null){var e=Vr(Qv),n=T0(po,e),s=fa.transition,c=bi();try{return fa.transition=null,nr(n),bB()}finally{nr(c),fa.transition=s}}return!1}function yB(e){tE.push(e),Pd||(Pd=!0,fE(uo,function(){return Yl(),null}))}function bB(){if(cc===null)return!1;var e=nE;nE=null;var n=cc,s=Qv;if(cc=null,Qv=Re,(Xt&(pa|So))!==Hr)throw new Error("Cannot flush passive effects while already rendering.");aE=!0,Cb=!1,ed(s);var c=Xt;Xt|=So,FV(n.current),kV(n,n.current,s,e);{var p=tE;tE=[];for(var b=0;b<p.length;b++){var E=p[b];xV(n,E)}}co(),fN(n.current,!0),Xt=c,tc(),Cb?n===Sb?Mp++:(Mp=0,Sb=n):Mp=0,aE=!1,Cb=!1,Ph(n);{var j=n.current.stateNode;j.effectDuration=0,j.passiveEffectDuration=0}return!0}function uN(e){return kp!==null&&kp.has(e)}function xB(e){kp===null?kp=new Set([e]):kp.add(e)}function CB(e){xb||(xb=!0,eE=e)}var SB=CB;function cN(e,n,s){var c=kd(s,n),p=sT(e,c,Ct),b=rc(e,p,Ct),E=ti();b!==null&&(Al(b,Ct,E),Ni(b,E))}function Un(e,n,s){if(pV(s),rm(!1),e.tag===R){cN(e,e,s);return}var c=null;for(c=n;c!==null;){if(c.tag===R){cN(c,e,s);return}else if(c.tag===C){var p=c.type,b=c.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&!uN(b)){var E=kd(s,e),j=IS(c,E,Ct),O=rc(c,j,Ct),B=ti();O!==null&&(Al(O,Ct,B),Ni(O,B));return}}c=c.return}h(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
205
-
206
- Error message:
207
-
208
- %s`,s)}function EB(e,n,s){var c=e.pingCache;c!==null&&c.delete(n);var p=ti();Bf(e,s),OB(e),ei===e&&jl(Gr,s)&&(Wr===Xv||Wr===gb&&Og(Gr)&&gr()-KS<qT?Fd(e,Re):bb=Dt(bb,s)),Ni(e,p)}function dN(e,n){n===ur&&(n=rB(e));var s=ti(),c=Ri(e,n);c!==null&&(Al(c,n,s),Ni(c,s))}function wB(e){var n=e.memoizedState,s=ur;n!==null&&(s=n.retryLane),dN(e,s)}function RB(e,n){var s=ur,c;switch(e.tag){case z:c=e.stateNode;var p=e.memoizedState;p!==null&&(s=p.retryLane);break;case ae:c=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}c!==null&&c.delete(n),dN(e,s)}function _B(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:KV(e/1960)*1960}function TB(){if(Kv>tB)throw Kv=0,rE=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Mp>nB&&(Mp=0,Sb=null,h("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function NB(){Ko.flushLegacyContextWarning(),Ko.flushPendingUnsafeLifecycleWarnings()}function fN(e,n){Yn(e),Tb(e,hi,XV),n&&Tb(e,xl,YV),Tb(e,hi,GV),n&&Tb(e,xl,WV),Vn()}function Tb(e,n,s){for(var c=e,p=null;c!==null;){var b=c.subtreeFlags&n;c!==p&&c.child!==null&&b!==mt?c=c.child:((c.flags&n)!==mt&&s(c),c.sibling!==null?c=c.sibling:c=p=c.return)}}var Nb=null;function pN(e){{if((Xt&pa)!==Hr||!(e.mode&dt))return;var n=e.tag;if(n!==w&&n!==R&&n!==C&&n!==x&&n!==U&&n!==X&&n!==Y)return;var s=It(e)||"ReactComponent";if(Nb!==null){if(Nb.has(s))return;Nb.add(s)}else Nb=new Set([s]);var c=Xn;try{Yn(e),h("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{c?Yn(e):Vn()}}}var uE;{var IB=null;uE=function(e,n,s){var c=CN(IB,n);try{return _T(e,n,s)}catch(b){if(zP()||b!==null&&typeof b=="object"&&typeof b.then=="function")throw b;if(Dy(),k1(),OT(e,n),CN(n,c),n.mode&tn&&ES(n),Ui(null,_T,null,e,n,s),x0()){var p=Uo();typeof p=="object"&&p!==null&&p._suppressLogging&&typeof b=="object"&&b!==null&&!b._suppressLogging&&(b._suppressLogging=!0)}throw b}}}var hN=!1,cE;cE=new Set;function jB(e){if(Ea&&!EF())switch(e.tag){case x:case U:case Y:{var n=pr&&It(pr)||"Unknown",s=n;if(!cE.has(s)){cE.add(s);var c=It(e)||"Unknown";h("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",c,n,n)}break}case C:{hN||(h("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),hN=!0);break}}}function nm(e,n){if(Ja){var s=e.memoizedUpdaters;s.forEach(function(c){zf(e,c,n)})}}var dE={};function fE(e,n){{var s=ss.current;return s!==null?(s.push(n),dE):kh(e,n)}}function vN(e){if(e!==dE)return xf(e)}function mN(){return ss.current!==null}function AB(e){{if(e.mode&dt){if(!XT())return}else if(!QV()||Xt!==Hr||e.tag!==x&&e.tag!==U&&e.tag!==Y)return;if(ss.current===null){var n=Xn;try{Yn(e),h(`An update to %s inside a test was not wrapped in act(...).
209
-
210
- When testing, code that causes React state updates should be wrapped into act(...):
211
-
212
- act(() => {
213
- /* fire events that update state */
214
- });
215
- /* assert on the output */
216
-
217
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,It(e))}finally{n?Yn(e):Vn()}}}}function OB(e){e.tag!==ec&&XT()&&ss.current===null&&h(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
218
-
219
- When testing, code that resolves suspended data should be wrapped into act(...):
220
-
221
- act(() => {
222
- /* finish loading suspended data */
223
- });
224
- /* assert on the output */
225
-
226
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function rm(e){KT=e}var Eo=null,Lp=null,DB=function(e){Eo=e};function Pp(e){{if(Eo===null)return e;var n=Eo(e);return n===void 0?e:n.current}}function pE(e){return Pp(e)}function hE(e){{if(Eo===null)return e;var n=Eo(e);if(n===void 0){if(e!=null&&typeof e.render=="function"){var s=Pp(e.render);if(e.render!==s){var c={$$typeof:Ze,render:s};return e.displayName!==void 0&&(c.displayName=e.displayName),c}}return e}return n.current}}function gN(e,n){{if(Eo===null)return!1;var s=e.elementType,c=n.type,p=!1,b=typeof c=="object"&&c!==null?c.$$typeof:null;switch(e.tag){case C:{typeof c=="function"&&(p=!0);break}case x:{(typeof c=="function"||b===vt)&&(p=!0);break}case U:{(b===Ze||b===vt)&&(p=!0);break}case X:case Y:{(b===kt||b===vt)&&(p=!0);break}default:return!1}if(p){var E=Eo(s);if(E!==void 0&&E===Eo(c))return!0}return!1}}function yN(e){{if(Eo===null||typeof WeakSet!="function")return;Lp===null&&(Lp=new WeakSet),Lp.add(e)}}var kB=function(e,n){{if(Eo===null)return;var s=n.staleFamilies,c=n.updatedFamilies;Yl(),Xl(function(){vE(e.current,c,s)})}},MB=function(e,n){{if(e.context!==Wi)return;Yl(),Xl(function(){am(n,e,null,null)})}};function vE(e,n,s){{var c=e.alternate,p=e.child,b=e.sibling,E=e.tag,j=e.type,O=null;switch(E){case x:case Y:case C:O=j;break;case U:O=j.render;break}if(Eo===null)throw new Error("Expected resolveFamily to be set during hot reload.");var B=!1,H=!1;if(O!==null){var te=Eo(O);te!==void 0&&(s.has(te)?H=!0:n.has(te)&&(E===C?H=!0:B=!0))}if(Lp!==null&&(Lp.has(e)||c!==null&&Lp.has(c))&&(H=!0),H&&(e._debugNeedsRemount=!0),H||B){var K=Ri(e,Ct);K!==null&&Xr(K,e,Ct,Ln)}p!==null&&!H&&vE(p,n,s),b!==null&&vE(b,n,s)}}var LB=function(e,n){{var s=new Set,c=new Set(n.map(function(p){return p.current}));return mE(e.current,c,s),s}};function mE(e,n,s){{var c=e.child,p=e.sibling,b=e.tag,E=e.type,j=null;switch(b){case x:case Y:case C:j=E;break;case U:j=E.render;break}var O=!1;j!==null&&n.has(j)&&(O=!0),O?PB(e,s):c!==null&&mE(c,n,s),p!==null&&mE(p,n,s)}}function PB(e,n){{var s=FB(e,n);if(s)return;for(var c=e;;){switch(c.tag){case N:n.add(c.stateNode);return;case A:n.add(c.stateNode.containerInfo);return;case R:n.add(c.stateNode.containerInfo);return}if(c.return===null)throw new Error("Expected to reach root first.");c=c.return}}}function FB(e,n){for(var s=e,c=!1;;){if(s.tag===N)c=!0,n.add(s.stateNode);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)return c;for(;s.sibling===null;){if(s.return===null||s.return===e)return c;s=s.return}s.sibling.return=s.return,s=s.sibling}return!1}var gE;{gE=!1;try{var bN=Object.preventExtensions({})}catch{gE=!0}}function VB(e,n,s,c){this.tag=e,this.key=s,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=n,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=c,this.flags=mt,this.subtreeFlags=mt,this.deletions=null,this.lanes=Re,this.childLanes=Re,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!gE&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Xi=function(e,n,s,c){return new VB(e,n,s,c)};function yE(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function BB(e){return typeof e=="function"&&!yE(e)&&e.defaultProps===void 0}function $B(e){if(typeof e=="function")return yE(e)?C:x;if(e!=null){var n=e.$$typeof;if(n===Ze)return U;if(n===kt)return X}return w}function Bd(e,n){var s=e.alternate;s===null?(s=Xi(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s._debugSource=e._debugSource,s._debugOwner=e._debugOwner,s._debugHookTypes=e._debugHookTypes,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=mt,s.subtreeFlags=mt,s.deletions=null,s.actualDuration=0,s.actualStartTime=-1),s.flags=e.flags&Fr,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue;var c=e.dependencies;switch(s.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.selfBaseDuration=e.selfBaseDuration,s.treeBaseDuration=e.treeBaseDuration,s._debugNeedsRemount=e._debugNeedsRemount,s.tag){case w:case x:case Y:s.type=Pp(e.type);break;case C:s.type=pE(e.type);break;case U:s.type=hE(e.type);break}return s}function zB(e,n){e.flags&=Fr|In;var s=e.alternate;if(s===null)e.childLanes=Re,e.lanes=n,e.child=null,e.subtreeFlags=mt,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=mt,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type;var c=s.dependencies;e.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},e.selfBaseDuration=s.selfBaseDuration,e.treeBaseDuration=s.treeBaseDuration}return e}function UB(e,n,s){var c;return e===Ry?(c=dt,n===!0&&(c|=er,c|=gi)):c=gt,Ja&&(c|=tn),Xi(R,null,null,c)}function bE(e,n,s,c,p,b){var E=w,j=e;if(typeof e=="function")yE(e)?(E=C,j=pE(j)):j=Pp(j);else if(typeof e=="string")E=N;else e:switch(e){case Ga:return pc(s.children,p,b,n);case jo:E=M,p|=er,(p&dt)!==gt&&(p|=gi);break;case J:return HB(s,p,b,n);case Bt:return GB(s,p,b,n);case Wt:return WB(s,p,b,n);case Dn:return xN(s,p,b,n);case Zr:case vr:case eo:case kn:case On:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pe:E=V;break e;case Ge:E=P;break e;case Ze:E=U,j=hE(j);break e;case kt:E=X;break e;case vt:E=ce,j=null;break e}var O="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var B=c?It(c):null;B&&(O+=`
227
-
228
- Check the render method of \``+B+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+O))}}var H=Xi(E,s,n,p);return H.elementType=e,H.type=j,H.lanes=b,H._debugOwner=c,H}function xE(e,n,s){var c=null;c=e._owner;var p=e.type,b=e.key,E=e.props,j=bE(p,b,E,c,n,s);return j._debugSource=e._source,j._debugOwner=e._owner,j}function pc(e,n,s,c){var p=Xi(I,e,c,n);return p.lanes=s,p}function HB(e,n,s,c){typeof e.id!="string"&&h('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var p=Xi(F,e,c,n|tn);return p.elementType=J,p.lanes=s,p.stateNode={effectDuration:0,passiveEffectDuration:0},p}function GB(e,n,s,c){var p=Xi(z,e,c,n);return p.elementType=Bt,p.lanes=s,p}function WB(e,n,s,c){var p=Xi(ae,e,c,n);return p.elementType=Wt,p.lanes=s,p}function xN(e,n,s,c){var p=Xi(ge,e,c,n);p.elementType=Dn,p.lanes=s;var b={isHidden:!1};return p.stateNode=b,p}function CE(e,n,s){var c=Xi(_,e,null,n);return c.lanes=s,c}function XB(){var e=Xi(N,null,null,gt);return e.elementType="DELETED",e}function YB(e){var n=Xi(me,null,null,gt);return n.stateNode=e,n}function SE(e,n,s){var c=e.children!==null?e.children:[],p=Xi(A,c,e.key,n);return p.lanes=s,p.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},p}function CN(e,n){return e===null&&(e=Xi(w,null,null,gt)),e.tag=n.tag,e.key=n.key,e.elementType=n.elementType,e.type=n.type,e.stateNode=n.stateNode,e.return=n.return,e.child=n.child,e.sibling=n.sibling,e.index=n.index,e.ref=n.ref,e.pendingProps=n.pendingProps,e.memoizedProps=n.memoizedProps,e.updateQueue=n.updateQueue,e.memoizedState=n.memoizedState,e.dependencies=n.dependencies,e.mode=n.mode,e.flags=n.flags,e.subtreeFlags=n.subtreeFlags,e.deletions=n.deletions,e.lanes=n.lanes,e.childLanes=n.childLanes,e.alternate=n.alternate,e.actualDuration=n.actualDuration,e.actualStartTime=n.actualStartTime,e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration,e._debugSource=n._debugSource,e._debugOwner=n._debugOwner,e._debugNeedsRemount=n._debugNeedsRemount,e._debugHookTypes=n._debugHookTypes,e}function ZB(e,n,s,c,p){this.tag=n,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=rC,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=ur,this.eventTimes=dd(Re),this.expirationTimes=dd(Ln),this.pendingLanes=Re,this.suspendedLanes=Re,this.pingedLanes=Re,this.expiredLanes=Re,this.mutableReadLanes=Re,this.finishedLanes=Re,this.entangledLanes=Re,this.entanglements=dd(Re),this.identifierPrefix=c,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var b=this.pendingUpdatersLaneMap=[],E=0;E<lr;E++)b.push(new Set)}switch(n){case Ry:this._debugRootType=s?"hydrateRoot()":"createRoot()";break;case ec:this._debugRootType=s?"hydrate()":"render()";break}}function SN(e,n,s,c,p,b,E,j,O,B){var H=new ZB(e,n,s,j,O),te=UB(n,b);H.current=te,te.stateNode=H;{var K={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null};te.memoizedState=K}return jC(te),H}var EE="18.2.0";function qB(e,n,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Vt(c),{$$typeof:xa,key:c==null?null:""+c,children:e,containerInfo:n,implementation:s}}var wE,RE;wE=!1,RE={};function EN(e){if(!e)return Wi;var n=oo(e),s=DP(n);if(n.tag===C){var c=n.type;if(Hs(c))return Z_(n,c,s)}return s}function JB(e,n){{var s=oo(e);if(s===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var c=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+c)}var p=Ah(s);if(p===null)return null;if(p.mode&er){var b=It(s)||"Component";if(!RE[b]){RE[b]=!0;var E=Xn;try{Yn(p),s.mode&er?h("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",n,n,b):h("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",n,n,b)}finally{E?Yn(E):Vn()}}}return p.stateNode}}function wN(e,n,s,c,p,b,E,j){var O=!1,B=null;return SN(e,n,O,B,s,c,p,b,E)}function RN(e,n,s,c,p,b,E,j,O,B){var H=!0,te=SN(s,c,H,e,p,b,E,j,O);te.context=EN(null);var K=te.current,fe=ti(),pe=dc(K),Ce=Ul(fe,pe);return Ce.callback=n??null,rc(K,Ce,pe),aB(te,pe,fe),te}function am(e,n,s,c){Go(n,e);var p=n.current,b=ti(),E=dc(p);Bh(E);var j=EN(s);n.context===null?n.context=j:n.pendingContext=j,Ea&&Xn!==null&&!wE&&(wE=!0,h(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
229
-
230
- Check the render method of %s.`,It(Xn)||"Unknown"));var O=Ul(b,E);O.payload={element:e},c=c===void 0?null:c,c!==null&&(typeof c!="function"&&h("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",c),O.callback=c);var B=rc(p,O,E);return B!==null&&(Xr(B,p,E,b),Fy(B,p,E)),E}function Ib(e){var n=e.current;if(!n.child)return null;switch(n.child.tag){case N:return n.child.stateNode;default:return n.child.stateNode}}function QB(e){switch(e.tag){case R:{var n=e.stateNode;if(Uf(n)){var s=w0(n);lB(n,s)}break}case z:{Xl(function(){var p=Ri(e,Ct);if(p!==null){var b=ti();Xr(p,e,Ct,b)}});var c=Ct;_E(e,c);break}}}function _N(e,n){var s=e.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=Pg(s.retryLane,n))}function _E(e,n){_N(e,n);var s=e.alternate;s&&_N(s,n)}function KB(e){if(e.tag===z){var n=Il,s=Ri(e,n);if(s!==null){var c=ti();Xr(s,e,n,c)}_E(e,n)}}function e$(e){if(e.tag===z){var n=dc(e),s=Ri(e,n);if(s!==null){var c=ti();Xr(s,e,n,c)}_E(e,n)}}function TN(e){var n=Dh(e);return n===null?null:n.stateNode}var NN=function(e){return null};function t$(e){return NN(e)}var IN=function(e){return!1};function n$(e){return IN(e)}var jN=null,AN=null,ON=null,DN=null,kN=null,MN=null,LN=null,PN=null,FN=null;{var VN=function(e,n,s){var c=n[s],p=Qt(e)?e.slice():Lt({},e);return s+1===n.length?(Qt(p)?p.splice(c,1):delete p[c],p):(p[c]=VN(e[c],n,s+1),p)},BN=function(e,n){return VN(e,n,0)},$N=function(e,n,s,c){var p=n[c],b=Qt(e)?e.slice():Lt({},e);if(c+1===n.length){var E=s[c];b[E]=b[p],Qt(b)?b.splice(p,1):delete b[p]}else b[p]=$N(e[p],n,s,c+1);return b},zN=function(e,n,s){if(n.length!==s.length){m("copyWithRename() expects paths of the same length");return}else for(var c=0;c<s.length-1;c++)if(n[c]!==s[c]){m("copyWithRename() expects paths to be the same except for the deepest key");return}return $N(e,n,s,0)},UN=function(e,n,s,c){if(s>=n.length)return c;var p=n[s],b=Qt(e)?e.slice():Lt({},e);return b[p]=UN(e[p],n,s+1,c),b},HN=function(e,n,s){return UN(e,n,0,s)},TE=function(e,n){for(var s=e.memoizedState;s!==null&&n>0;)s=s.next,n--;return s};jN=function(e,n,s,c){var p=TE(e,n);if(p!==null){var b=HN(p.memoizedState,s,c);p.memoizedState=b,p.baseState=b,e.memoizedProps=Lt({},e.memoizedProps);var E=Ri(e,Ct);E!==null&&Xr(E,e,Ct,Ln)}},AN=function(e,n,s){var c=TE(e,n);if(c!==null){var p=BN(c.memoizedState,s);c.memoizedState=p,c.baseState=p,e.memoizedProps=Lt({},e.memoizedProps);var b=Ri(e,Ct);b!==null&&Xr(b,e,Ct,Ln)}},ON=function(e,n,s,c){var p=TE(e,n);if(p!==null){var b=zN(p.memoizedState,s,c);p.memoizedState=b,p.baseState=b,e.memoizedProps=Lt({},e.memoizedProps);var E=Ri(e,Ct);E!==null&&Xr(E,e,Ct,Ln)}},DN=function(e,n,s){e.pendingProps=HN(e.memoizedProps,n,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var c=Ri(e,Ct);c!==null&&Xr(c,e,Ct,Ln)},kN=function(e,n){e.pendingProps=BN(e.memoizedProps,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var s=Ri(e,Ct);s!==null&&Xr(s,e,Ct,Ln)},MN=function(e,n,s){e.pendingProps=zN(e.memoizedProps,n,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var c=Ri(e,Ct);c!==null&&Xr(c,e,Ct,Ln)},LN=function(e){var n=Ri(e,Ct);n!==null&&Xr(n,e,Ct,Ln)},PN=function(e){NN=e},FN=function(e){IN=e}}function r$(e){var n=Ah(e);return n===null?null:n.stateNode}function a$(e){return null}function i$(){return Xn}function o$(e){var n=e.findFiberByHostInstance,s=l.ReactCurrentDispatcher;return Sg({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:jN,overrideHookStateDeletePath:AN,overrideHookStateRenamePath:ON,overrideProps:DN,overridePropsDeletePath:kN,overridePropsRenamePath:MN,setErrorHandler:PN,setSuspenseHandler:FN,scheduleUpdate:LN,currentDispatcherRef:s,findHostInstanceByFiber:r$,findFiberByHostInstance:n||a$,findHostInstancesForRefresh:LB,scheduleRefresh:kB,scheduleRoot:MB,setRefreshHandler:DB,getCurrentFiber:i$,reconcilerVersion:EE})}var GN=typeof reportError=="function"?reportError:function(e){console.error(e)};function NE(e){this._internalRoot=e}jb.prototype.render=NE.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?h("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Ab(arguments[1])?h("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&h("You passed a second argument to root.render(...) but it only accepts one argument.");var s=n.containerInfo;if(s.nodeType!==Kn){var c=TN(n.current);c&&c.parentNode!==s&&h("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}am(e,n,null,null)},jb.prototype.unmount=NE.prototype.unmount=function(){typeof arguments[0]=="function"&&h("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;rN()&&h("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Xl(function(){am(null,e,null,null)}),H_(n)}};function s$(e,n){if(!Ab(e))throw new Error("createRoot(...): Target container is not a DOM element.");WN(e);var s=!1,c=!1,p="",b=GN;n!=null&&(n.hydrate?m("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof n=="object"&&n!==null&&n.$$typeof===ba&&h(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
231
-
232
- let root = createRoot(domContainer);
233
- root.render(<App />);`),n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(p=n.identifierPrefix),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.transitionCallbacks!==void 0&&n.transitionCallbacks);var E=wN(e,Ry,null,s,c,p,b);yy(E.current,e);var j=e.nodeType===Kn?e.parentNode:e;return fv(j),new NE(E)}function jb(e){this._internalRoot=e}function l$(e){e&&j0(e)}jb.prototype.unstable_scheduleHydration=l$;function u$(e,n,s){if(!Ab(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");WN(e),n===void 0&&h("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var c=s??null,p=s!=null&&s.hydratedSources||null,b=!1,E=!1,j="",O=GN;s!=null&&(s.unstable_strictMode===!0&&(b=!0),s.identifierPrefix!==void 0&&(j=s.identifierPrefix),s.onRecoverableError!==void 0&&(O=s.onRecoverableError));var B=RN(n,null,e,Ry,c,b,E,j,O);if(yy(B.current,e),fv(e),p)for(var H=0;H<p.length;H++){var te=p[H];gF(B,te)}return new jb(B)}function Ab(e){return!!(e&&(e.nodeType===Ra||e.nodeType===Wa||e.nodeType===hh||!be))}function im(e){return!!(e&&(e.nodeType===Ra||e.nodeType===Wa||e.nodeType===hh||e.nodeType===Kn&&e.nodeValue===" react-mount-point-unstable "))}function WN(e){e.nodeType===Ra&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&h("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Ev(e)&&(e._reactRootContainer?h("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):h("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var c$=l.ReactCurrentOwner,XN;XN=function(e){if(e._reactRootContainer&&e.nodeType!==Kn){var n=TN(e._reactRootContainer.current);n&&n.parentNode!==e&&h("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var s=!!e._reactRootContainer,c=IE(e),p=!!(c&&Qu(c));p&&!s&&h("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===Ra&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&h("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function IE(e){return e?e.nodeType===Wa?e.documentElement:e.firstChild:null}function YN(){}function d$(e,n,s,c,p){if(p){if(typeof c=="function"){var b=c;c=function(){var K=Ib(E);b.call(K)}}var E=RN(n,c,e,ec,null,!1,!1,"",YN);e._reactRootContainer=E,yy(E.current,e);var j=e.nodeType===Kn?e.parentNode:e;return fv(j),Xl(),E}else{for(var O;O=e.lastChild;)e.removeChild(O);if(typeof c=="function"){var B=c;c=function(){var K=Ib(H);B.call(K)}}var H=wN(e,ec,null,!1,!1,"",YN);e._reactRootContainer=H,yy(H.current,e);var te=e.nodeType===Kn?e.parentNode:e;return fv(te),Xl(function(){am(n,H,s,c)}),H}}function f$(e,n){e!==null&&typeof e!="function"&&h("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,e)}function Ob(e,n,s,c,p){XN(s),f$(p===void 0?null:p,"render");var b=s._reactRootContainer,E;if(!b)E=d$(s,n,e,p,c);else{if(E=b,typeof p=="function"){var j=p;p=function(){var O=Ib(E);j.call(O)}}am(n,E,e,p)}return Ib(E)}function p$(e){{var n=c$.current;if(n!==null&&n.stateNode!==null){var s=n.stateNode._warnedAboutRefsInRender;s||h("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Jt(n.type)||"A component"),n.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===Ra?e:JB(e,"findDOMNode")}function h$(e,n,s){if(h("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!im(n))throw new Error("Target container is not a DOM element.");{var c=Ev(n)&&n._reactRootContainer===void 0;c&&h("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Ob(null,e,n,!0,s)}function v$(e,n,s){if(h("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!im(n))throw new Error("Target container is not a DOM element.");{var c=Ev(n)&&n._reactRootContainer===void 0;c&&h("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Ob(null,e,n,!1,s)}function m$(e,n,s,c){if(h("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!im(s))throw new Error("Target container is not a DOM element.");if(e==null||!Su(e))throw new Error("parentComponent must be a valid React Component");return Ob(e,n,s,!1,c)}function g$(e){if(!im(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var n=Ev(e)&&e._reactRootContainer===void 0;n&&h("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var s=IE(e),c=s&&!Qu(s);c&&h("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Xl(function(){Ob(null,null,e,!1,function(){e._reactRootContainer=null,H_(e)})}),!0}else{{var p=IE(e),b=!!(p&&Qu(p)),E=e.nodeType===Ra&&im(e.parentNode)&&!!e.parentNode._reactRootContainer;b&&h("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",E?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Fu(QB),N0(KB),Gf(e$),Bg(bi),$g(Qr),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&h("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Sh(xL),hf(oE,uB,Xl);function y$(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ab(n))throw new Error("Target container is not a DOM element.");return qB(e,n,null,s)}function b$(e,n,s,c){return m$(e,n,s,c)}var jE={usingClientEntryPoint:!1,Events:[Qu,hp,by,Cu,gl,oE]};function x$(e,n){return jE.usingClientEntryPoint||h('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),s$(e,n)}function C$(e,n,s){return jE.usingClientEntryPoint||h('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),u$(e,n,s)}function S$(e){return rN()&&h("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Xl(e)}var E$=o$({findFiberByHostInstance:Rd,bundleType:1,version:EE,rendererPackageName:"react-dom"});if(!E$&&xt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var ZN=window.location.protocol;/^(https?|file):$/.test(ZN)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(ZN==="file:"?`
234
- You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ji.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jE,ji.createPortal=y$,ji.createRoot=x$,ji.findDOMNode=p$,ji.flushSync=S$,ji.hydrate=h$,ji.hydrateRoot=C$,ji.render=v$,ji.unmountComponentAtNode=g$,ji.unstable_batchedUpdates=oE,ji.unstable_renderSubtreeIntoContainer=b$,ji.version=EE,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),ji}var CA={};function SA(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(CA.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SA)}catch(t){console.error(t)}}}CA.NODE_ENV==="production"?(SA(),hw.exports=L$()):hw.exports=P$();var sR=hw.exports;const zd=nh(sR);var F$={},um=sR;if(F$.NODE_ENV==="production")Oi.createRoot=um.createRoot,Oi.hydrateRoot=um.hydrateRoot;else{var Mb=um.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Oi.createRoot=function(t,r){Mb.usingClientEntryPoint=!0;try{return um.createRoot(t,r)}finally{Mb.usingClientEntryPoint=!1}},Oi.hydrateRoot=function(t,r,i){Mb.usingClientEntryPoint=!0;try{return um.hydrateRoot(t,r,i)}finally{Mb.usingClientEntryPoint=!1}}}var _r={};function va(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var V$=typeof Symbol=="function"&&Symbol.observable||"@@observable",sI=V$,kE=()=>Math.random().toString(36).substring(7).split("").join("."),B$={INIT:`@@redux/INIT${kE()}`,REPLACE:`@@redux/REPLACE${kE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${kE()}`},Ud=B$;function Pm(t){if(typeof t!="object"||t===null)return!1;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r||Object.getPrototypeOf(t)===null}function $$(t){if(t===void 0)return"undefined";if(t===null)return"null";const r=typeof t;switch(r){case"boolean":case"string":case"number":case"symbol":case"function":return r}if(Array.isArray(t))return"array";if(H$(t))return"date";if(U$(t))return"error";const i=z$(t);switch(i){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return i}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function z$(t){return typeof t.constructor=="function"?t.constructor.name:null}function U$(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function H$(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function vc(t){let r=typeof t;return _r.NODE_ENV!=="production"&&(r=$$(t)),r}function EA(t,r,i){if(typeof t!="function")throw new Error(_r.NODE_ENV==="production"?va(2):`Expected the root reducer to be a function. Instead, received: '${vc(t)}'`);if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(_r.NODE_ENV==="production"?va(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(_r.NODE_ENV==="production"?va(1):`Expected the enhancer to be a function. Instead, received: '${vc(i)}'`);return i(EA)(t,r)}let l=t,u=r,d=new Map,m=d,h=0,y=!1;function x(){m===d&&(m=new Map,d.forEach((I,M)=>{m.set(M,I)}))}function C(){if(y)throw new Error(_r.NODE_ENV==="production"?va(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function w(I){if(typeof I!="function")throw new Error(_r.NODE_ENV==="production"?va(4):`Expected the listener to be a function. Instead, received: '${vc(I)}'`);if(y)throw new Error(_r.NODE_ENV==="production"?va(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let M=!0;x();const P=h++;return m.set(P,I),function(){if(M){if(y)throw new Error(_r.NODE_ENV==="production"?va(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");M=!1,x(),m.delete(P),d=null}}}function R(I){if(!Pm(I))throw new Error(_r.NODE_ENV==="production"?va(7):`Actions must be plain objects. Instead, the actual type was: '${vc(I)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof I.type>"u")throw new Error(_r.NODE_ENV==="production"?va(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof I.type!="string")throw new Error(_r.NODE_ENV==="production"?va(17):`Action "type" property must be a string. Instead, the actual type was: '${vc(I.type)}'. Value was: '${I.type}' (stringified)`);if(y)throw new Error(_r.NODE_ENV==="production"?va(9):"Reducers may not dispatch actions.");try{y=!0,u=l(u,I)}finally{y=!1}return(d=m).forEach(P=>{P()}),I}function A(I){if(typeof I!="function")throw new Error(_r.NODE_ENV==="production"?va(10):`Expected the nextReducer to be a function. Instead, received: '${vc(I)}`);l=I,R({type:Ud.REPLACE})}function N(){const I=w;return{subscribe(M){if(typeof M!="object"||M===null)throw new Error(_r.NODE_ENV==="production"?va(11):`Expected the observer to be an object. Instead, received: '${vc(M)}'`);function P(){const U=M;U.next&&U.next(C())}return P(),{unsubscribe:I(P)}},[sI](){return this}}}return R({type:Ud.INIT}),{dispatch:R,subscribe:w,getState:C,replaceReducer:A,[sI]:N}}function lI(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function G$(t,r,i,l){const u=Object.keys(r),d=i&&i.type===Ud.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(u.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Pm(t))return`The ${d} has unexpected type of "${vc(t)}". Expected argument to be an object with the following keys: "${u.join('", "')}"`;const m=Object.keys(t).filter(h=>!r.hasOwnProperty(h)&&!l[h]);if(m.forEach(h=>{l[h]=!0}),!(i&&i.type===Ud.REPLACE)&&m.length>0)return`Unexpected ${m.length>1?"keys":"key"} "${m.join('", "')}" found in ${d}. Expected to find one of the known reducer keys instead: "${u.join('", "')}". Unexpected keys will be ignored.`}function W$(t){Object.keys(t).forEach(r=>{const i=t[r];if(typeof i(void 0,{type:Ud.INIT})>"u")throw new Error(_r.NODE_ENV==="production"?va(12):`The slice reducer for key "${r}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof i(void 0,{type:Ud.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_r.NODE_ENV==="production"?va(13):`The slice reducer for key "${r}" returned undefined when probed with a random type. Don't try to handle '${Ud.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function X$(t){const r=Object.keys(t),i={};for(let m=0;m<r.length;m++){const h=r[m];_r.NODE_ENV!=="production"&&typeof t[h]>"u"&&lI(`No reducer provided for key "${h}"`),typeof t[h]=="function"&&(i[h]=t[h])}const l=Object.keys(i);let u;_r.NODE_ENV!=="production"&&(u={});let d;try{W$(i)}catch(m){d=m}return function(h={},y){if(d)throw d;if(_r.NODE_ENV!=="production"){const w=G$(h,i,y,u);w&&lI(w)}let x=!1;const C={};for(let w=0;w<l.length;w++){const R=l[w],A=i[R],N=h[R],_=A(N,y);if(typeof _>"u"){const I=y&&y.type;throw new Error(_r.NODE_ENV==="production"?va(14):`When called with an action of type ${I?`"${String(I)}"`:"(unknown type)"}, the slice reducer for key "${R}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}C[R]=_,x=x||_!==N}return x=x||l.length!==Object.keys(h).length,x?C:h}}function hx(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,i)=>(...l)=>r(i(...l)))}function Y$(...t){return r=>(i,l)=>{const u=r(i,l);let d=()=>{throw new Error(_r.NODE_ENV==="production"?va(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const m={getState:u.getState,dispatch:(y,...x)=>d(y,...x)},h=t.map(y=>y(m));return d=hx(...h)(u.dispatch),{...u,dispatch:d}}}function wA(t){return Pm(t)&&"type"in t&&typeof t.type=="string"}var Fm={},RA=Symbol.for("immer-nothing"),uI=Symbol.for("immer-draftable"),qi=Symbol.for("immer-state"),Z$=Fm.NODE_ENV!=="production"?[function(t){return`The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`},function(t){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${t}'`},"This object has been frozen and should not be mutated",function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(t){return`'current' expects a draft, got: ${t}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(t){return`'original' expects a draft, got: ${t}`}]:[];function Ai(t,...r){if(Fm.NODE_ENV!=="production"){const i=Z$[t],l=typeof i=="function"?i.apply(null,r):i;throw new Error(`[Immer] ${l}`)}throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Xp=Object.getPrototypeOf;function yc(t){return!!t&&!!t[qi]}function ru(t){var r;return t?_A(t)||Array.isArray(t)||!!t[uI]||!!((r=t.constructor)!=null&&r[uI])||zx(t)||Ux(t):!1}var q$=Object.prototype.constructor.toString();function _A(t){if(!t||typeof t!="object")return!1;const r=Xp(t);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===q$}function Rm(t,r){$x(t)===0?Object.entries(t).forEach(([i,l])=>{r(i,l,t)}):t.forEach((i,l)=>r(l,i,t))}function $x(t){const r=t[qi];return r?r.type_:Array.isArray(t)?1:zx(t)?2:Ux(t)?3:0}function vw(t,r){return $x(t)===2?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function TA(t,r,i){const l=$x(t);l===2?t.set(r,i):l===3?t.add(i):t[r]=i}function J$(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}function zx(t){return t instanceof Map}function Ux(t){return t instanceof Set}function $d(t){return t.copy_||t.base_}function mw(t,r){if(zx(t))return new Map(t);if(Ux(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!r&&_A(t))return Xp(t)?{...t}:Object.assign(Object.create(null),t);const i=Object.getOwnPropertyDescriptors(t);delete i[qi];let l=Reflect.ownKeys(i);for(let u=0;u<l.length;u++){const d=l[u],m=i[d];m.writable===!1&&(m.writable=!0,m.configurable=!0),(m.get||m.set)&&(i[d]={configurable:!0,writable:!0,enumerable:m.enumerable,value:t[d]})}return Object.create(Xp(t),i)}function lR(t,r=!1){return Hx(t)||yc(t)||!ru(t)||($x(t)>1&&(t.set=t.add=t.clear=t.delete=Q$),Object.freeze(t),r&&Rm(t,(i,l)=>lR(l,!0))),t}function Q$(){Ai(2)}function Hx(t){return Object.isFrozen(t)}var K$={};function qd(t){const r=K$[t];return r||Ai(0,t),r}var _m;function NA(){return _m}function ez(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function cI(t,r){r&&(qd("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function gw(t){yw(t),t.drafts_.forEach(tz),t.drafts_=null}function yw(t){t===_m&&(_m=t.parent_)}function dI(t){return _m=ez(_m,t)}function tz(t){const r=t[qi];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function fI(t,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return t!==void 0&&t!==i?(i[qi].modified_&&(gw(r),Ai(4)),ru(t)&&(t=vx(r,t),r.parent_||mx(r,t)),r.patches_&&qd("Patches").generateReplacementPatches_(i[qi].base_,t,r.patches_,r.inversePatches_)):t=vx(r,i,[]),gw(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),t!==RA?t:void 0}function vx(t,r,i){if(Hx(r))return r;const l=r[qi];if(!l)return Rm(r,(u,d)=>pI(t,l,r,u,d,i)),r;if(l.scope_!==t)return r;if(!l.modified_)return mx(t,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDrafts_--;const u=l.copy_;let d=u,m=!1;l.type_===3&&(d=new Set(u),u.clear(),m=!0),Rm(d,(h,y)=>pI(t,l,u,h,y,i,m)),mx(t,u,!1),i&&t.patches_&&qd("Patches").generatePatches_(l,i,t.patches_,t.inversePatches_)}return l.copy_}function pI(t,r,i,l,u,d,m){if(Fm.NODE_ENV!=="production"&&u===i&&Ai(5),yc(u)){const h=d&&r&&r.type_!==3&&!vw(r.assigned_,l)?d.concat(l):void 0,y=vx(t,u,h);if(TA(i,l,y),yc(y))t.canAutoFreeze_=!1;else return}else m&&i.add(u);if(ru(u)&&!Hx(u)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;vx(t,u),(!r||!r.scope_.parent_)&&mx(t,u)}}function mx(t,r,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&lR(r,i)}function nz(t,r){const i=Array.isArray(t),l={type_:i?1:0,scope_:r?r.scope_:NA(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,d=uR;i&&(u=[l],d=Tm);const{revoke:m,proxy:h}=Proxy.revocable(u,d);return l.draft_=h,l.revoke_=m,h}var uR={get(t,r){if(r===qi)return t;const i=$d(t);if(!vw(i,r))return rz(t,i,r);const l=i[r];return t.finalized_||!ru(l)?l:l===ME(t.base_,r)?(LE(t),t.copy_[r]=xw(l,t)):l},has(t,r){return r in $d(t)},ownKeys(t){return Reflect.ownKeys($d(t))},set(t,r,i){const l=IA($d(t),r);if(l!=null&&l.set)return l.set.call(t.draft_,i),!0;if(!t.modified_){const u=ME($d(t),r),d=u==null?void 0:u[qi];if(d&&d.base_===i)return t.copy_[r]=i,t.assigned_[r]=!1,!0;if(J$(i,u)&&(i!==void 0||vw(t.base_,r)))return!0;LE(t),bw(t)}return t.copy_[r]===i&&(i!==void 0||r in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[r])||(t.copy_[r]=i,t.assigned_[r]=!0),!0},deleteProperty(t,r){return ME(t.base_,r)!==void 0||r in t.base_?(t.assigned_[r]=!1,LE(t),bw(t)):delete t.assigned_[r],t.copy_&&delete t.copy_[r],!0},getOwnPropertyDescriptor(t,r){const i=$d(t),l=Reflect.getOwnPropertyDescriptor(i,r);return l&&{writable:!0,configurable:t.type_!==1||r!=="length",enumerable:l.enumerable,value:i[r]}},defineProperty(){Ai(11)},getPrototypeOf(t){return Xp(t.base_)},setPrototypeOf(){Ai(12)}},Tm={};Rm(uR,(t,r)=>{Tm[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Tm.deleteProperty=function(t,r){return Fm.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Ai(13),Tm.set.call(this,t,r,void 0)};Tm.set=function(t,r,i){return Fm.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&Ai(14),uR.set.call(this,t[0],r,i,t[0])};function ME(t,r){const i=t[qi];return(i?$d(i):t)[r]}function rz(t,r,i){var u;const l=IA(r,i);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(t.draft_):void 0}function IA(t,r){if(!(r in t))return;let i=Xp(t);for(;i;){const l=Object.getOwnPropertyDescriptor(i,r);if(l)return l;i=Xp(i)}}function bw(t){t.modified_||(t.modified_=!0,t.parent_&&bw(t.parent_))}function LE(t){t.copy_||(t.copy_=mw(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var az=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,l)=>{if(typeof r=="function"&&typeof i!="function"){const d=i;i=r;const m=this;return function(y=d,...x){return m.produce(y,C=>i.call(this,C,...x))}}typeof i!="function"&&Ai(6),l!==void 0&&typeof l!="function"&&Ai(7);let u;if(ru(r)){const d=dI(this),m=xw(r,void 0);let h=!0;try{u=i(m),h=!1}finally{h?gw(d):yw(d)}return cI(d,l),fI(u,d)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===RA&&(u=void 0),this.autoFreeze_&&lR(u,!0),l){const d=[],m=[];qd("Patches").generateReplacementPatches_(r,u,d,m),l(d,m)}return u}else Ai(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(m,...h)=>this.produceWithPatches(m,y=>r(y,...h));let l,u;return[this.produce(r,i,(m,h)=>{l=m,u=h}),l,u]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){ru(t)||Ai(8),yc(t)&&(t=jA(t));const r=dI(this),i=xw(t,void 0);return i[qi].isManual_=!0,yw(r),i}finishDraft(t,r){const i=t&&t[qi];(!i||!i.isManual_)&&Ai(9);const{scope_:l}=i;return cI(l,r),fI(void 0,l)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){t=u.value;break}}i>-1&&(r=r.slice(i+1));const l=qd("Patches").applyPatches_;return yc(t)?l(t,r):this.produce(t,u=>l(u,r))}};function xw(t,r){const i=zx(t)?qd("MapSet").proxyMap_(t,r):Ux(t)?qd("MapSet").proxySet_(t,r):nz(t,r);return(r?r.scope_:NA()).drafts_.push(i),i}function jA(t){return yc(t)||Ai(10,t),AA(t)}function AA(t){if(!ru(t)||Hx(t))return t;const r=t[qi];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=mw(t,r.scope_.immer_.useStrictShallowCopy_)}else i=mw(t,!0);return Rm(i,(l,u)=>{TA(i,l,AA(u))}),r&&(r.finalized_=!1),i}var Ji=new az,wo=Ji.produce;Ji.produceWithPatches.bind(Ji);Ji.setAutoFreeze.bind(Ji);Ji.setUseStrictShallowCopy.bind(Ji);Ji.applyPatches.bind(Ji);Ji.createDraft.bind(Ji);Ji.finishDraft.bind(Ji);var iz={},oz=(t,r,i)=>{if(r.length===1&&r[0]===i){let l=!1;try{const u={};t(u)===u&&(l=!0)}catch{}if(l){let u;try{throw new Error}catch(d){({stack:u}=d)}console.warn(`The result function returned its own inputs without modification. e.g
235
- \`createSelector([state => state.todos], todos => todos)\`
236
- This could lead to inefficient memoization and unnecessary re-renders.
237
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:u})}}},sz=(t,r,i)=>{const{memoize:l,memoizeOptions:u}=r,{inputSelectorResults:d,inputSelectorResultsCopy:m}=t,h=l(()=>({}),...u);if(!(h.apply(null,d)===h.apply(null,m))){let x;try{throw new Error}catch(C){({stack:x}=C)}console.warn(`An input selector returned a different result when passed same arguments.
238
- This means your output selector will likely run more frequently than intended.
239
- Avoid returning a new reference inside your input selector, e.g.
240
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:i,firstInputs:d,secondInputs:m,stack:x})}},lz={inputStabilityCheck:"once",identityFunctionCheck:"once"};function uz(t,r=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(r)}function cz(t,r=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(r)}function dz(t,r="expected all items to be functions, instead received the following types: "){if(!t.every(i=>typeof i=="function")){const i=t.map(l=>typeof l=="function"?`function ${l.name||"unnamed"}()`:typeof l).join(", ");throw new TypeError(`${r}[${i}]`)}}var hI=t=>Array.isArray(t)?t:[t];function fz(t){const r=Array.isArray(t[0])?t[0]:t;return dz(r,"createSelector expects all input-selectors to be functions, but received the following types: "),r}function vI(t,r){const i=[],{length:l}=t;for(let u=0;u<l;u++)i.push(t[u].apply(null,r));return i}var pz=(t,r)=>{const{identityFunctionCheck:i,inputStabilityCheck:l}={...lz,...r};return{identityFunctionCheck:{shouldRun:i==="always"||i==="once"&&t,run:oz},inputStabilityCheck:{shouldRun:l==="always"||l==="once"&&t,run:sz}}},hz=class{constructor(t){this.value=t}deref(){return this.value}},vz=typeof WeakRef<"u"?WeakRef:hz,mz=0,mI=1;function Lb(){return{s:mz,v:void 0,o:null,p:null}}function cR(t,r={}){let i=Lb();const{resultEqualityCheck:l}=r;let u,d=0;function m(){var w;let h=i;const{length:y}=arguments;for(let R=0,A=y;R<A;R++){const N=arguments[R];if(typeof N=="function"||typeof N=="object"&&N!==null){let _=h.o;_===null&&(h.o=_=new WeakMap);const I=_.get(N);I===void 0?(h=Lb(),_.set(N,h)):h=I}else{let _=h.p;_===null&&(h.p=_=new Map);const I=_.get(N);I===void 0?(h=Lb(),_.set(N,h)):h=I}}const x=h;let C;if(h.s===mI?C=h.v:(C=t.apply(null,arguments),d++),x.s=mI,l){const R=((w=u==null?void 0:u.deref)==null?void 0:w.call(u))??u;R!=null&&l(R,C)&&(C=R,d!==0&&d--),u=typeof C=="object"&&C!==null||typeof C=="function"?new vz(C):C}return x.v=C,C}return m.clearCache=()=>{i=Lb(),m.resetResultsCount()},m.resultsCount=()=>d,m.resetResultsCount=()=>{d=0},m}function OA(t,...r){const i=typeof t=="function"?{memoize:t,memoizeOptions:r}:t,l=(...u)=>{let d=0,m=0,h,y={},x=u.pop();typeof x=="object"&&(y=x,x=u.pop()),uz(x,`createSelector expects an output function after the inputs, but received: [${typeof x}]`);const C={...i,...y},{memoize:w,memoizeOptions:R=[],argsMemoize:A=cR,argsMemoizeOptions:N=[],devModeChecks:_={}}=C,I=hI(R),M=hI(N),P=fz(u),V=w(function(){return d++,x.apply(null,arguments)},...I);let U=!0;const F=A(function(){m++;const X=vI(P,arguments);if(h=V.apply(null,X),iz.NODE_ENV!=="production"){const{identityFunctionCheck:Y,inputStabilityCheck:ce}=pz(U,_);if(Y.shouldRun&&Y.run(x,X,h),ce.shouldRun){const ie=vI(P,arguments);ce.run({inputSelectorResults:X,inputSelectorResultsCopy:ie},{memoize:w,memoizeOptions:I},arguments)}U&&(U=!1)}return h},...M);return Object.assign(F,{resultFunc:x,memoizedResultFunc:V,dependencies:P,dependencyRecomputations:()=>m,resetDependencyRecomputations:()=>{m=0},lastResult:()=>h,recomputations:()=>d,resetRecomputations:()=>{d=0},memoize:w,argsMemoize:A})};return Object.assign(l,{withTypes:()=>l}),l}var gz=OA(cR),yz=Object.assign((t,r=gz)=>{cz(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const i=Object.keys(t),l=i.map(d=>t[d]);return r(l,(...d)=>d.reduce((m,h,y)=>(m[i[y]]=h,m),{}))},{withTypes:()=>yz});function DA(t){return({dispatch:i,getState:l})=>u=>d=>typeof d=="function"?d(i,l,t):u(d)}var bz=DA(),xz=DA,Ft={},Cz=(...t)=>{const r=OA(...t),i=Object.assign((...l)=>{const u=r(...l),d=(m,...h)=>u(yc(m)?jA(m):m,...h);return Object.assign(d,u),d},{withTypes:()=>i});return i};Cz(cR);var Sz=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hx:hx.apply(null,arguments)},kA=t=>t&&typeof t.match=="function";function tu(t,r){function i(...l){if(r){let u=r(...l);if(!u)throw new Error(Ft.NODE_ENV==="production"?_n(0):"prepareAction did not return an object");return{type:t,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:t,payload:l[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=l=>wA(l)&&l.type===t,i}function Ez(t){return typeof t=="function"&&"type"in t&&kA(t)}function wz(t){const r=t?`${t}`.split("/"):[],i=r[r.length-1]||"actionCreator";return`Detected an action creator with type "${t||"unknown"}" being dispatched.
241
- Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${i}())\` instead of \`dispatch(${i})\`. This is necessary even if the action has no payload.`}function Rz(t={}){if(Ft.NODE_ENV==="production")return()=>i=>l=>i(l);const{isActionCreator:r=Ez}=t;return()=>i=>l=>(r(l)&&console.warn(wz(l.type)),i(l))}function MA(t,r){let i=0;return{measureTime(l){const u=Date.now();try{return l()}finally{const d=Date.now();i+=d-u}},warnIfExceeded(){i>t&&console.warn(`${r} took ${i}ms, which is more than the warning threshold of ${t}ms.
242
- If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
243
- It is disabled in production builds, so you don't need to worry about that.`)}}}var LA=class bm extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,bm.prototype)}static get[Symbol.species](){return bm}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new bm(...r[0].concat(this)):new bm(...r.concat(this))}};function gI(t){return ru(t)?wo(t,()=>{}):t}function yI(t,r,i){if(t.has(r)){let u=t.get(r);return i.update&&(u=i.update(u,r,t),t.set(r,u)),u}if(!i.insert)throw new Error(Ft.NODE_ENV==="production"?_n(10):"No insert provided for key not already in map");const l=i.insert(r,t);return t.set(r,l),l}function _z(t){return typeof t!="object"||t==null||Object.isFrozen(t)}function Tz(t,r,i){const l=PA(t,r,i);return{detectMutations(){return FA(t,r,l,i)}}}function PA(t,r=[],i,l="",u=new Set){const d={value:i};if(!t(i)&&!u.has(i)){u.add(i),d.children={};for(const m in i){const h=l?l+"."+m:m;r.length&&r.indexOf(h)!==-1||(d.children[m]=PA(t,r,i[m],h))}}return d}function FA(t,r=[],i,l,u=!1,d=""){const m=i?i.value:void 0,h=m===l;if(u&&!h&&!Number.isNaN(l))return{wasMutated:!0,path:d};if(t(m)||t(l))return{wasMutated:!1};const y={};for(let C in i.children)y[C]=!0;for(let C in l)y[C]=!0;const x=r.length>0;for(let C in y){const w=d?d+"."+C:C;if(x&&r.some(N=>N instanceof RegExp?N.test(w):w===N))continue;const R=FA(t,r,i.children[C],l[C],h,w);if(R.wasMutated)return R}return{wasMutated:!1}}function Nz(t={}){if(Ft.NODE_ENV==="production")return()=>r=>i=>r(i);{let r=function(h,y,x,C){return JSON.stringify(h,i(y,C),x)},i=function(h,y){let x=[],C=[];return y||(y=function(w,R){return x[0]===R?"[Circular ~]":"[Circular ~."+C.slice(0,x.indexOf(R)).join(".")+"]"}),function(w,R){if(x.length>0){var A=x.indexOf(this);~A?x.splice(A+1):x.push(this),~A?C.splice(A,1/0,w):C.push(w),~x.indexOf(R)&&(R=y.call(this,w,R))}else x.push(R);return h==null?R:h.call(this,w,R)}},{isImmutable:l=_z,ignoredPaths:u,warnAfter:d=32}=t;const m=Tz.bind(null,l,u);return({getState:h})=>{let y=h(),x=m(y),C;return w=>R=>{const A=MA(d,"ImmutableStateInvariantMiddleware");A.measureTime(()=>{if(y=h(),C=x.detectMutations(),x=m(y),C.wasMutated)throw new Error(Ft.NODE_ENV==="production"?_n(19):`A state mutation was detected between dispatches, in the path '${C.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const N=w(R);return A.measureTime(()=>{if(y=h(),C=x.detectMutations(),x=m(y),C.wasMutated)throw new Error(Ft.NODE_ENV==="production"?_n(20):`A state mutation was detected inside a dispatch, in the path: ${C.path||""}. Take a look at the reducer(s) handling the action ${r(R)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),A.warnIfExceeded(),N}}}}function VA(t){const r=typeof t;return t==null||r==="string"||r==="boolean"||r==="number"||Array.isArray(t)||Pm(t)}function Cw(t,r="",i=VA,l,u=[],d){let m;if(!i(t))return{keyPath:r||"<root>",value:t};if(typeof t!="object"||t===null||d!=null&&d.has(t))return!1;const h=l!=null?l(t):Object.entries(t),y=u.length>0;for(const[x,C]of h){const w=r?r+"."+x:x;if(!(y&&u.some(A=>A instanceof RegExp?A.test(w):w===A))){if(!i(C))return{keyPath:w,value:C};if(typeof C=="object"&&(m=Cw(C,w,i,l,u,d),m))return m}}return d&&BA(t)&&d.add(t),!1}function BA(t){if(!Object.isFrozen(t))return!1;for(const r of Object.values(t))if(!(typeof r!="object"||r===null)&&!BA(r))return!1;return!0}function Iz(t={}){if(Ft.NODE_ENV==="production")return()=>r=>i=>r(i);{const{isSerializable:r=VA,getEntries:i,ignoredActions:l=[],ignoredActionPaths:u=["meta.arg","meta.baseQueryMeta"],ignoredPaths:d=[],warnAfter:m=32,ignoreState:h=!1,ignoreActions:y=!1,disableCache:x=!1}=t,C=!x&&WeakSet?new WeakSet:void 0;return w=>R=>A=>{if(!wA(A))return R(A);const N=R(A),_=MA(m,"SerializableStateInvariantMiddleware");return!y&&!(l.length&&l.indexOf(A.type)!==-1)&&_.measureTime(()=>{const I=Cw(A,"",r,i,u,C);if(I){const{keyPath:M,value:P}=I;console.error(`A non-serializable value was detected in an action, in the path: \`${M}\`. Value:`,P,`
244
- Take a look at the logic that dispatched this action: `,A,`
245
- (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
246
- (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),h||(_.measureTime(()=>{const I=w.getState(),M=Cw(I,"",r,i,d,C);if(M){const{keyPath:P,value:V}=M;console.error(`A non-serializable value was detected in the state, in the path: \`${P}\`. Value:`,V,`
247
- Take a look at the reducer(s) handling this action type: ${A.type}.
248
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),_.warnIfExceeded()),N}}}function Pb(t){return typeof t=="boolean"}var jz=()=>function(r){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:d=!0}=r??{};let m=new LA;if(i&&(Pb(i)?m.push(bz):m.push(xz(i.extraArgument))),Ft.NODE_ENV!=="production"){if(l){let h={};Pb(l)||(h=l),m.unshift(Nz(h))}if(u){let h={};Pb(u)||(h=u),m.push(Iz(h))}if(d){let h={};Pb(d)||(h=d),m.unshift(Rz(h))}}return m},Az="RTK_autoBatch",$A=t=>r=>{setTimeout(r,t)},Oz=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$A(10),Dz=(t={type:"raf"})=>r=>(...i)=>{const l=r(...i);let u=!0,d=!1,m=!1;const h=new Set,y=t.type==="tick"?queueMicrotask:t.type==="raf"?Oz:t.type==="callback"?t.queueNotification:$A(t.timeout),x=()=>{m=!1,d&&(d=!1,h.forEach(C=>C()))};return Object.assign({},l,{subscribe(C){const w=()=>u&&C(),R=l.subscribe(w);return h.add(C),()=>{R(),h.delete(C)}},dispatch(C){var w;try{return u=!((w=C==null?void 0:C.meta)!=null&&w[Az]),d=!u,d&&(m||(m=!0,y(x))),l.dispatch(C)}finally{u=!0}}})},kz=t=>function(i){const{autoBatch:l=!0}=i??{};let u=new LA(t);return l&&u.push(Dz(typeof l=="object"?l:void 0)),u},hc=Ft.NODE_ENV==="production";function rh(t){const r=jz(),{reducer:i=void 0,middleware:l,devTools:u=!0,preloadedState:d=void 0,enhancers:m=void 0}=t||{};let h;if(typeof i=="function")h=i;else if(Pm(i))h=X$(i);else throw new Error(Ft.NODE_ENV==="production"?_n(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(!hc&&l&&typeof l!="function")throw new Error(Ft.NODE_ENV==="production"?_n(2):"`middleware` field must be a callback");let y;if(typeof l=="function"){if(y=l(r),!hc&&!Array.isArray(y))throw new Error(Ft.NODE_ENV==="production"?_n(3):"when using a middleware builder function, an array of middleware must be returned")}else y=r();if(!hc&&y.some(N=>typeof N!="function"))throw new Error(Ft.NODE_ENV==="production"?_n(4):"each middleware provided to configureStore must be a function");let x=hx;u&&(x=Sz({trace:!hc,...typeof u=="object"&&u}));const C=Y$(...y),w=kz(C);if(!hc&&m&&typeof m!="function")throw new Error(Ft.NODE_ENV==="production"?_n(5):"`enhancers` field must be a callback");let R=typeof m=="function"?m(w):w();if(!hc&&!Array.isArray(R))throw new Error(Ft.NODE_ENV==="production"?_n(6):"`enhancers` callback must return an array");if(!hc&&R.some(N=>typeof N!="function"))throw new Error(Ft.NODE_ENV==="production"?_n(7):"each enhancer provided to configureStore must be a function");!hc&&y.length&&!R.includes(C)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const A=x(...R);return EA(h,d,A)}function zA(t){const r={},i=[];let l;const u={addCase(d,m){if(Ft.NODE_ENV!=="production"){if(i.length>0)throw new Error(Ft.NODE_ENV==="production"?_n(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(l)throw new Error(Ft.NODE_ENV==="production"?_n(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const h=typeof d=="string"?d:d.type;if(!h)throw new Error(Ft.NODE_ENV==="production"?_n(28):"`builder.addCase` cannot be called with an empty action type");if(h in r)throw new Error(Ft.NODE_ENV==="production"?_n(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${h}'`);return r[h]=m,u},addMatcher(d,m){if(Ft.NODE_ENV!=="production"&&l)throw new Error(Ft.NODE_ENV==="production"?_n(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return i.push({matcher:d,reducer:m}),u},addDefaultCase(d){if(Ft.NODE_ENV!=="production"&&l)throw new Error(Ft.NODE_ENV==="production"?_n(31):"`builder.addDefaultCase` can only be called once");return l=d,u}};return t(u),[r,i,l]}function Mz(t){return typeof t=="function"}function Lz(t,r){if(Ft.NODE_ENV!=="production"&&typeof r=="object")throw new Error(Ft.NODE_ENV==="production"?_n(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[i,l,u]=zA(r),d;if(Mz(t))d=()=>gI(t());else{const h=gI(t);d=()=>h}function m(h=d(),y){let x=[i[y.type],...l.filter(({matcher:C})=>C(y)).map(({reducer:C})=>C)];return x.filter(C=>!!C).length===0&&(x=[u]),x.reduce((C,w)=>{if(w)if(yc(C)){const A=w(C,y);return A===void 0?C:A}else{if(ru(C))return wo(C,R=>w(R,y));{const R=w(C,y);if(R===void 0){if(C===null)return C;throw new Error(Ft.NODE_ENV==="production"?_n(9):"A case reducer on a non-draftable value must not return undefined")}return R}}return C},h)}return m.getInitialState=d,m}var Pz="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",UA=(t=21)=>{let r="",i=t;for(;i--;)r+=Pz[Math.random()*64|0];return r},Fz=(t,r)=>kA(t)?t.match(r):t(r);function Vz(...t){return r=>t.some(i=>Fz(i,r))}var Bz=["name","message","stack","code"],PE=class{constructor(t,r){AE(this,"_type");this.payload=t,this.meta=r}},bI=class{constructor(t,r){AE(this,"_type");this.payload=t,this.meta=r}},$z=t=>{if(typeof t=="object"&&t!==null){const r={};for(const i of Bz)typeof t[i]=="string"&&(r[i]=t[i]);return r}return{message:String(t)}},ya=(()=>{function t(r,i,l){const u=tu(r+"/fulfilled",(y,x,C,w)=>({payload:y,meta:{...w||{},arg:C,requestId:x,requestStatus:"fulfilled"}})),d=tu(r+"/pending",(y,x,C)=>({payload:void 0,meta:{...C||{},arg:x,requestId:y,requestStatus:"pending"}})),m=tu(r+"/rejected",(y,x,C,w,R)=>({payload:w,error:(l&&l.serializeError||$z)(y||"Rejected"),meta:{...R||{},arg:C,requestId:x,rejectedWithValue:!!w,requestStatus:"rejected",aborted:(y==null?void 0:y.name)==="AbortError",condition:(y==null?void 0:y.name)==="ConditionError"}}));function h(y){return(x,C,w)=>{const R=l!=null&&l.idGenerator?l.idGenerator(y):UA(),A=new AbortController;let N,_;function I(P){_=P,A.abort()}const M=async function(){var U,F;let P;try{let z=(U=l==null?void 0:l.condition)==null?void 0:U.call(l,y,{getState:C,extra:w});if(Uz(z)&&(z=await z),z===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const X=new Promise((Y,ce)=>{N=()=>{ce({name:"AbortError",message:_||"Aborted"})},A.signal.addEventListener("abort",N)});x(d(R,y,(F=l==null?void 0:l.getPendingMeta)==null?void 0:F.call(l,{requestId:R,arg:y},{getState:C,extra:w}))),P=await Promise.race([X,Promise.resolve(i(y,{dispatch:x,getState:C,extra:w,requestId:R,signal:A.signal,abort:I,rejectWithValue:(Y,ce)=>new PE(Y,ce),fulfillWithValue:(Y,ce)=>new bI(Y,ce)})).then(Y=>{if(Y instanceof PE)throw Y;return Y instanceof bI?u(Y.payload,R,y,Y.meta):u(Y,R,y)})])}catch(z){P=z instanceof PE?m(null,R,y,z.payload,z.meta):m(z,R,y)}finally{N&&A.signal.removeEventListener("abort",N)}return l&&!l.dispatchConditionRejection&&m.match(P)&&P.meta.condition||x(P),P}();return Object.assign(M,{abort:I,requestId:R,arg:y,unwrap(){return M.then(zz)}})}}return Object.assign(h,{pending:d,rejected:m,fulfilled:u,settled:Vz(m,u),typePrefix:r})}return t.withTypes=()=>t,t})();function zz(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Uz(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Hz=Symbol.for("rtk-slice-createasyncthunk");function Gz(t,r){return`${t}/${r}`}function Wz({creators:t}={}){var i;const r=(i=t==null?void 0:t.asyncThunk)==null?void 0:i[Hz];return function(u){const{name:d,reducerPath:m=d}=u;if(!d)throw new Error(Ft.NODE_ENV==="production"?_n(11):"`name` is a required option for createSlice");typeof process<"u"&&Ft.NODE_ENV==="development"&&u.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const h=(typeof u.reducers=="function"?u.reducers(Yz()):u.reducers)||{},y=Object.keys(h),x={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},C={addCase(V,U){const F=typeof V=="string"?V:V.type;if(!F)throw new Error(Ft.NODE_ENV==="production"?_n(12):"`context.addCase` cannot be called with an empty action type");if(F in x.sliceCaseReducersByType)throw new Error(Ft.NODE_ENV==="production"?_n(13):"`context.addCase` cannot be called with two reducers for the same action type: "+F);return x.sliceCaseReducersByType[F]=U,C},addMatcher(V,U){return x.sliceMatchers.push({matcher:V,reducer:U}),C},exposeAction(V,U){return x.actionCreators[V]=U,C},exposeCaseReducer(V,U){return x.sliceCaseReducersByName[V]=U,C}};y.forEach(V=>{const U=h[V],F={reducerName:V,type:Gz(d,V),createNotation:typeof u.reducers=="function"};qz(U)?Qz(F,U,C,r):Zz(F,U,C)});function w(){if(Ft.NODE_ENV!=="production"&&typeof u.extraReducers=="object")throw new Error(Ft.NODE_ENV==="production"?_n(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[V={},U=[],F=void 0]=typeof u.extraReducers=="function"?zA(u.extraReducers):[u.extraReducers],z={...V,...x.sliceCaseReducersByType};return Lz(u.initialState,X=>{for(let Y in z)X.addCase(Y,z[Y]);for(let Y of x.sliceMatchers)X.addMatcher(Y.matcher,Y.reducer);for(let Y of U)X.addMatcher(Y.matcher,Y.reducer);F&&X.addDefaultCase(F)})}const R=V=>V,A=new Map;let N;function _(V,U){return N||(N=w()),N(V,U)}function I(){return N||(N=w()),N.getInitialState()}function M(V,U=!1){function F(X){let Y=X[V];if(typeof Y>"u"){if(U)Y=I();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?_n(15):"selectSlice returned undefined for an uninjected slice reducer")}return Y}function z(X=R){const Y=yI(A,U,{insert:()=>new WeakMap});return yI(Y,X,{insert:()=>{const ce={};for(const[ie,me]of Object.entries(u.selectors??{}))ce[ie]=Xz(me,X,I,U);return ce}})}return{reducerPath:V,getSelectors:z,get selectors(){return z(F)},selectSlice:F}}const P={name:d,reducer:_,actions:x.actionCreators,caseReducers:x.sliceCaseReducersByName,getInitialState:I,...M(m),injectInto(V,{reducerPath:U,...F}={}){const z=U??m;return V.inject({reducerPath:z,reducer:_},F),{...P,...M(z,!0)}}};return P}}function Xz(t,r,i,l){function u(d,...m){let h=r(d);if(typeof h>"u"){if(l)h=i();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?_n(16):"selectState returned undefined for an uninjected slice reducer")}return t(h,...m)}return u.unwrapped=t,u}var Vm=Wz();function Yz(){function t(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return t.withTypes=()=>t,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:t}}function Zz({type:t,reducerName:r,createNotation:i},l,u){let d,m;if("reducer"in l){if(i&&!Jz(l))throw new Error(Ft.NODE_ENV==="production"?_n(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");d=l.reducer,m=l.prepare}else d=l;u.addCase(t,d).exposeCaseReducer(r,d).exposeAction(r,m?tu(t,m):tu(t))}function qz(t){return t._reducerDefinitionType==="asyncThunk"}function Jz(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Qz({type:t,reducerName:r},i,l,u){if(!u)throw new Error(Ft.NODE_ENV==="production"?_n(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:d,fulfilled:m,pending:h,rejected:y,settled:x,options:C}=i,w=u(t,d,C);l.exposeAction(r,w),m&&l.addCase(w.fulfilled,m),h&&l.addCase(w.pending,h),y&&l.addCase(w.rejected,y),x&&l.addMatcher(w.settled,x),l.exposeCaseReducer(r,{fulfilled:m||Fb,pending:h||Fb,rejected:y||Fb,settled:x||Fb})}function Fb(){}var Kz=(t,r)=>{if(typeof t!="function")throw new Error(Ft.NODE_ENV==="production"?_n(32):`${r} is not a function`)},dR="listenerMiddleware",eU=t=>{let{type:r,actionCreator:i,matcher:l,predicate:u,effect:d}=t;if(r)u=tu(r).match;else if(i)r=i.type,u=i.match;else if(l)u=l;else if(!u)throw new Error(Ft.NODE_ENV==="production"?_n(21):"Creating or removing a listener requires one of the known fields for matching an action");return Kz(d,"options.listener"),{predicate:u,type:r,effect:d}},tU=Object.assign(t=>{const{type:r,predicate:i,effect:l}=eU(t);return{id:UA(),effect:l,type:r,predicate:i,pending:new Set,unsubscribe:()=>{throw new Error(Ft.NODE_ENV==="production"?_n(22):"Unsubscribe not initialized")}}},{withTypes:()=>tU}),nU=Object.assign(tu(`${dR}/add`),{withTypes:()=>nU});tu(`${dR}/removeAll`);var rU=Object.assign(tu(`${dR}/remove`),{withTypes:()=>rU});function _n(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var k=nf();const ir=nh(k),gx=N$({__proto__:null,default:ir},[k]);var Sw={exports:{}},FE={};/**
33
+ */var Ug=w,St=d1;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Vg=new Set,Cs={};function Fr(e,t){vo(e,t),vo(e+"Capture",t)}function vo(e,t){for(Cs[e]=t,e=0;e<t.length;e++)Vg.add(t[e])}var On=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zc=Object.prototype.hasOwnProperty,f1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Pp={},Ip={};function p1(e){return Zc.call(Ip,e)?!0:Zc.call(Pp,e)?!1:f1.test(e)?Ip[e]=!0:(Pp[e]=!0,!1)}function h1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function m1(e,t,n,r){if(t===null||typeof t>"u"||h1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function st(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ye[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ye[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ye[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ye[e]=new st(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ye[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ye[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ye[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ye[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ye[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ad=/[\-:]([a-z])/g;function Md(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ad,Md);Ye[t]=new st(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ad,Md);Ye[t]=new st(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ad,Md);Ye[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ye[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Ye.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ye[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function Dd(e,t,n,r){var o=Ye.hasOwnProperty(t)?Ye[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(m1(t,n,o,r)&&(n=null),r||o===null?p1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ln=Ug.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fi=Symbol.for("react.element"),Gr=Symbol.for("react.portal"),Yr=Symbol.for("react.fragment"),Ld=Symbol.for("react.strict_mode"),Jc=Symbol.for("react.profiler"),Bg=Symbol.for("react.provider"),zg=Symbol.for("react.context"),Fd=Symbol.for("react.forward_ref"),eu=Symbol.for("react.suspense"),tu=Symbol.for("react.suspense_list"),Ud=Symbol.for("react.memo"),qn=Symbol.for("react.lazy"),qg=Symbol.for("react.offscreen"),$p=Symbol.iterator;function qo(e){return e===null||typeof e!="object"?null:(e=$p&&e[$p]||e["@@iterator"],typeof e=="function"?e:null)}var Re=Object.assign,rc;function ss(e){if(rc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);rc=t&&t[1]||""}return`
34
+ `+rc+e}var oc=!1;function sc(e,t){if(!e||oc)return"";oc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35
+ `),s=r.stack.split(`
36
+ `),i=o.length-1,l=s.length-1;1<=i&&0<=l&&o[i]!==s[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==s[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==s[l]){var c=`
37
+ `+o[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{oc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ss(e):""}function g1(e){switch(e.tag){case 5:return ss(e.type);case 16:return ss("Lazy");case 13:return ss("Suspense");case 19:return ss("SuspenseList");case 0:case 2:case 15:return e=sc(e.type,!1),e;case 11:return e=sc(e.type.render,!1),e;case 1:return e=sc(e.type,!0),e;default:return""}}function nu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yr:return"Fragment";case Gr:return"Portal";case Jc:return"Profiler";case Ld:return"StrictMode";case eu:return"Suspense";case tu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zg:return(e.displayName||"Context")+".Consumer";case Bg:return(e._context.displayName||"Context")+".Provider";case Fd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ud:return t=e.displayName||null,t!==null?t:nu(e.type)||"Memo";case qn:t=e._payload,e=e._init;try{return nu(e(t))}catch{}}return null}function v1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nu(t);case 8:return t===Ld?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ir(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function y1(e){var t=Hg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pi(e){e._valueTracker||(e._valueTracker=y1(e))}function Wg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Hg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ga(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ru(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ap(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ir(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Kg(e,t){t=t.checked,t!=null&&Dd(e,"checked",t,!1)}function ou(e,t){Kg(e,t);var n=ir(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?su(e,t.type,n):t.hasOwnProperty("defaultValue")&&su(e,t.type,ir(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Mp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function su(e,t,n){(t!=="number"||ga(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var is=Array.isArray;function ao(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ir(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function iu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return Re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Dp(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if(is(n)){if(1<n.length)throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ir(n)}}function Gg(e,t){var n=ir(t.value),r=ir(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Lp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Yg(e){switch(e){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 au(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Yg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hi,Qg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(hi=hi||document.createElement("div"),hi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function js(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fs={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},x1=["Webkit","ms","Moz","O"];Object.keys(fs).forEach(function(e){x1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fs[t]=fs[e]})});function Xg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fs.hasOwnProperty(e)&&fs[e]?(""+t).trim():t+"px"}function Zg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Xg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var b1=Re({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 lu(e,t){if(t){if(b1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function cu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 uu=null;function Vd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var du=null,lo=null,co=null;function Fp(e){if(e=ti(e)){if(typeof du!="function")throw Error(I(280));var t=e.stateNode;t&&(t=vl(t),du(e.stateNode,e.type,t))}}function Jg(e){lo?co?co.push(e):co=[e]:lo=e}function ev(){if(lo){var e=lo,t=co;if(co=lo=null,Fp(e),t)for(e=0;e<t.length;e++)Fp(t[e])}}function tv(e,t){return e(t)}function nv(){}var ic=!1;function rv(e,t,n){if(ic)return e(t,n);ic=!0;try{return tv(e,t,n)}finally{ic=!1,(lo!==null||co!==null)&&(nv(),ev())}}function Es(e,t){var n=e.stateNode;if(n===null)return null;var r=vl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var fu=!1;if(On)try{var Ho={};Object.defineProperty(Ho,"passive",{get:function(){fu=!0}}),window.addEventListener("test",Ho,Ho),window.removeEventListener("test",Ho,Ho)}catch{fu=!1}function w1(e,t,n,r,o,s,i,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var ps=!1,va=null,ya=!1,pu=null,S1={onError:function(e){ps=!0,va=e}};function _1(e,t,n,r,o,s,i,l,c){ps=!1,va=null,w1.apply(S1,arguments)}function C1(e,t,n,r,o,s,i,l,c){if(_1.apply(this,arguments),ps){if(ps){var u=va;ps=!1,va=null}else throw Error(I(198));ya||(ya=!0,pu=u)}}function Ur(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ov(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Up(e){if(Ur(e)!==e)throw Error(I(188))}function j1(e){var t=e.alternate;if(!t){if(t=Ur(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Up(o),e;if(s===r)return Up(o),t;s=s.sibling}throw Error(I(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function sv(e){return e=j1(e),e!==null?iv(e):null}function iv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=iv(e);if(t!==null)return t;e=e.sibling}return null}var av=St.unstable_scheduleCallback,Vp=St.unstable_cancelCallback,E1=St.unstable_shouldYield,R1=St.unstable_requestPaint,Pe=St.unstable_now,N1=St.unstable_getCurrentPriorityLevel,Bd=St.unstable_ImmediatePriority,lv=St.unstable_UserBlockingPriority,xa=St.unstable_NormalPriority,k1=St.unstable_LowPriority,cv=St.unstable_IdlePriority,pl=null,cn=null;function O1(e){if(cn&&typeof cn.onCommitFiberRoot=="function")try{cn.onCommitFiberRoot(pl,e,void 0,(e.current.flags&128)===128)}catch{}}var Yt=Math.clz32?Math.clz32:I1,T1=Math.log,P1=Math.LN2;function I1(e){return e>>>=0,e===0?32:31-(T1(e)/P1|0)|0}var mi=64,gi=4194304;function as(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ba(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=as(l):(s&=i,s!==0&&(r=as(s)))}else i=n&~o,i!==0?r=as(i):s!==0&&(r=as(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Yt(t),o=1<<n,r|=e[n],t&=~o;return r}function $1(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 A1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Yt(s),l=1<<i,c=o[i];c===-1?(!(l&n)||l&r)&&(o[i]=$1(l,t)):c<=t&&(e.expiredLanes|=l),s&=~l}}function hu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function uv(){var e=mi;return mi<<=1,!(mi&4194240)&&(mi=64),e}function ac(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Js(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Yt(t),e[t]=n}function M1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Yt(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function zd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Yt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var he=0;function dv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var fv,qd,pv,hv,mv,mu=!1,vi=[],Zn=null,Jn=null,er=null,Rs=new Map,Ns=new Map,Kn=[],D1="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 Bp(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":er=null;break;case"pointerover":case"pointerout":Rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ns.delete(t.pointerId)}}function Wo(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=ti(t),t!==null&&qd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function L1(e,t,n,r,o){switch(t){case"focusin":return Zn=Wo(Zn,e,t,n,r,o),!0;case"dragenter":return Jn=Wo(Jn,e,t,n,r,o),!0;case"mouseover":return er=Wo(er,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Rs.set(s,Wo(Rs.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Ns.set(s,Wo(Ns.get(s)||null,e,t,n,r,o)),!0}return!1}function gv(e){var t=yr(e.target);if(t!==null){var n=Ur(t);if(n!==null){if(t=n.tag,t===13){if(t=ov(n),t!==null){e.blockedOn=t,mv(e.priority,function(){pv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=gu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);uu=r,n.target.dispatchEvent(r),uu=null}else return t=ti(n),t!==null&&qd(t),e.blockedOn=n,!1;t.shift()}return!0}function zp(e,t,n){qi(e)&&n.delete(t)}function F1(){mu=!1,Zn!==null&&qi(Zn)&&(Zn=null),Jn!==null&&qi(Jn)&&(Jn=null),er!==null&&qi(er)&&(er=null),Rs.forEach(zp),Ns.forEach(zp)}function Ko(e,t){e.blockedOn===t&&(e.blockedOn=null,mu||(mu=!0,St.unstable_scheduleCallback(St.unstable_NormalPriority,F1)))}function ks(e){function t(o){return Ko(o,e)}if(0<vi.length){Ko(vi[0],e);for(var n=1;n<vi.length;n++){var r=vi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Zn!==null&&Ko(Zn,e),Jn!==null&&Ko(Jn,e),er!==null&&Ko(er,e),Rs.forEach(t),Ns.forEach(t),n=0;n<Kn.length;n++)r=Kn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Kn.length&&(n=Kn[0],n.blockedOn===null);)gv(n),n.blockedOn===null&&Kn.shift()}var uo=Ln.ReactCurrentBatchConfig,wa=!0;function U1(e,t,n,r){var o=he,s=uo.transition;uo.transition=null;try{he=1,Hd(e,t,n,r)}finally{he=o,uo.transition=s}}function V1(e,t,n,r){var o=he,s=uo.transition;uo.transition=null;try{he=4,Hd(e,t,n,r)}finally{he=o,uo.transition=s}}function Hd(e,t,n,r){if(wa){var o=gu(e,t,n,r);if(o===null)vc(e,t,r,Sa,n),Bp(e,r);else if(L1(o,e,t,n,r))r.stopPropagation();else if(Bp(e,r),t&4&&-1<D1.indexOf(e)){for(;o!==null;){var s=ti(o);if(s!==null&&fv(s),s=gu(e,t,n,r),s===null&&vc(e,t,r,Sa,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else vc(e,t,r,null,n)}}var Sa=null;function gu(e,t,n,r){if(Sa=null,e=Vd(r),e=yr(e),e!==null)if(t=Ur(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ov(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Sa=e,null}function vv(e){switch(e){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(N1()){case Bd:return 1;case lv:return 4;case xa:case k1:return 16;case cv:return 536870912;default:return 16}default:return 16}}var Qn=null,Wd=null,Hi=null;function yv(){if(Hi)return Hi;var e,t=Wd,n=t.length,r,o="value"in Qn?Qn.value:Qn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return Hi=o.slice(e,1<r?1-r:void 0)}function Wi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function yi(){return!0}function qp(){return!1}function Nt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?yi:qp,this.isPropagationStopped=qp,this}return Re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=yi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=yi)},persist:function(){},isPersistent:yi}),t}var $o={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kd=Nt($o),ei=Re({},$o,{view:0,detail:0}),B1=Nt(ei),lc,cc,Go,hl=Re({},ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Go&&(Go&&e.type==="mousemove"?(lc=e.screenX-Go.screenX,cc=e.screenY-Go.screenY):cc=lc=0,Go=e),lc)},movementY:function(e){return"movementY"in e?e.movementY:cc}}),Hp=Nt(hl),z1=Re({},hl,{dataTransfer:0}),q1=Nt(z1),H1=Re({},ei,{relatedTarget:0}),uc=Nt(H1),W1=Re({},$o,{animationName:0,elapsedTime:0,pseudoElement:0}),K1=Nt(W1),G1=Re({},$o,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Y1=Nt(G1),Q1=Re({},$o,{data:0}),Wp=Nt(Q1),X1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z1={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"},J1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=J1[e])?!!t[e]:!1}function Gd(){return eS}var tS=Re({},ei,{key:function(e){if(e.key){var t=X1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Z1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gd,charCode:function(e){return e.type==="keypress"?Wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nS=Nt(tS),rS=Re({},hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kp=Nt(rS),oS=Re({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gd}),sS=Nt(oS),iS=Re({},$o,{propertyName:0,elapsedTime:0,pseudoElement:0}),aS=Nt(iS),lS=Re({},hl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),cS=Nt(lS),uS=[9,13,27,32],Yd=On&&"CompositionEvent"in window,hs=null;On&&"documentMode"in document&&(hs=document.documentMode);var dS=On&&"TextEvent"in window&&!hs,xv=On&&(!Yd||hs&&8<hs&&11>=hs),Gp=" ",Yp=!1;function bv(e,t){switch(e){case"keyup":return uS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qr=!1;function fS(e,t){switch(e){case"compositionend":return wv(t);case"keypress":return t.which!==32?null:(Yp=!0,Gp);case"textInput":return e=t.data,e===Gp&&Yp?null:e;default:return null}}function pS(e,t){if(Qr)return e==="compositionend"||!Yd&&bv(e,t)?(e=yv(),Hi=Wd=Qn=null,Qr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return xv&&t.locale!=="ko"?null:t.data;default:return null}}var hS={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 Qp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hS[e.type]:t==="textarea"}function Sv(e,t,n,r){Jg(r),t=_a(t,"onChange"),0<t.length&&(n=new Kd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ms=null,Os=null;function mS(e){Iv(e,0)}function ml(e){var t=Jr(e);if(Wg(t))return e}function gS(e,t){if(e==="change")return t}var _v=!1;if(On){var dc;if(On){var fc="oninput"in document;if(!fc){var Xp=document.createElement("div");Xp.setAttribute("oninput","return;"),fc=typeof Xp.oninput=="function"}dc=fc}else dc=!1;_v=dc&&(!document.documentMode||9<document.documentMode)}function Zp(){ms&&(ms.detachEvent("onpropertychange",Cv),Os=ms=null)}function Cv(e){if(e.propertyName==="value"&&ml(Os)){var t=[];Sv(t,Os,e,Vd(e)),rv(mS,t)}}function vS(e,t,n){e==="focusin"?(Zp(),ms=t,Os=n,ms.attachEvent("onpropertychange",Cv)):e==="focusout"&&Zp()}function yS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ml(Os)}function xS(e,t){if(e==="click")return ml(t)}function bS(e,t){if(e==="input"||e==="change")return ml(t)}function wS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:wS;function Ts(e,t){if(Zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Zc.call(t,o)||!Zt(e[o],t[o]))return!1}return!0}function Jp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function eh(e,t){var n=Jp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jp(n)}}function jv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ev(){for(var e=window,t=ga();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ga(e.document)}return t}function Qd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function SS(e){var t=Ev(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jv(n.ownerDocument.documentElement,n)){if(r!==null&&Qd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=eh(n,s);var i=eh(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var _S=On&&"documentMode"in document&&11>=document.documentMode,Xr=null,vu=null,gs=null,yu=!1;function th(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yu||Xr==null||Xr!==ga(r)||(r=Xr,"selectionStart"in r&&Qd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),gs&&Ts(gs,r)||(gs=r,r=_a(vu,"onSelect"),0<r.length&&(t=new Kd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Xr)))}function xi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zr={animationend:xi("Animation","AnimationEnd"),animationiteration:xi("Animation","AnimationIteration"),animationstart:xi("Animation","AnimationStart"),transitionend:xi("Transition","TransitionEnd")},pc={},Rv={};On&&(Rv=document.createElement("div").style,"AnimationEvent"in window||(delete Zr.animationend.animation,delete Zr.animationiteration.animation,delete Zr.animationstart.animation),"TransitionEvent"in window||delete Zr.transitionend.transition);function gl(e){if(pc[e])return pc[e];if(!Zr[e])return e;var t=Zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rv)return pc[e]=t[n];return e}var Nv=gl("animationend"),kv=gl("animationiteration"),Ov=gl("animationstart"),Tv=gl("transitionend"),Pv=new Map,nh="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 dr(e,t){Pv.set(e,t),Fr(t,[e])}for(var hc=0;hc<nh.length;hc++){var mc=nh[hc],CS=mc.toLowerCase(),jS=mc[0].toUpperCase()+mc.slice(1);dr(CS,"on"+jS)}dr(Nv,"onAnimationEnd");dr(kv,"onAnimationIteration");dr(Ov,"onAnimationStart");dr("dblclick","onDoubleClick");dr("focusin","onFocus");dr("focusout","onBlur");dr(Tv,"onTransitionEnd");vo("onMouseEnter",["mouseout","mouseover"]);vo("onMouseLeave",["mouseout","mouseover"]);vo("onPointerEnter",["pointerout","pointerover"]);vo("onPointerLeave",["pointerout","pointerover"]);Fr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ls="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(" "),ES=new Set("cancel close invalid load scroll toggle".split(" ").concat(ls));function rh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,C1(r,t,void 0,e),e.currentTarget=null}function Iv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==s&&o.isPropagationStopped())break e;rh(o,l,u),s=c}else for(i=0;i<r.length;i++){if(l=r[i],c=l.instance,u=l.currentTarget,l=l.listener,c!==s&&o.isPropagationStopped())break e;rh(o,l,u),s=c}}}if(ya)throw e=pu,ya=!1,pu=null,e}function xe(e,t){var n=t[_u];n===void 0&&(n=t[_u]=new Set);var r=e+"__bubble";n.has(r)||($v(t,e,2,!1),n.add(r))}function gc(e,t,n){var r=0;t&&(r|=4),$v(n,e,r,t)}var bi="_reactListening"+Math.random().toString(36).slice(2);function Ps(e){if(!e[bi]){e[bi]=!0,Vg.forEach(function(n){n!=="selectionchange"&&(ES.has(n)||gc(n,!1,e),gc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bi]||(t[bi]=!0,gc("selectionchange",!1,t))}}function $v(e,t,n,r){switch(vv(t)){case 1:var o=U1;break;case 4:o=V1;break;default:o=Hd}n=o.bind(null,t,n,e),o=void 0,!fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function vc(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;i=i.return}for(;l!==null;){if(i=yr(l),i===null)return;if(c=i.tag,c===5||c===6){r=s=i;continue e}l=l.parentNode}}r=r.return}rv(function(){var u=s,d=Vd(n),f=[];e:{var p=Pv.get(e);if(p!==void 0){var y=Kd,m=e;switch(e){case"keypress":if(Wi(n)===0)break e;case"keydown":case"keyup":y=nS;break;case"focusin":m="focus",y=uc;break;case"focusout":m="blur",y=uc;break;case"beforeblur":case"afterblur":y=uc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Hp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=q1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=sS;break;case Nv:case kv:case Ov:y=K1;break;case Tv:y=aS;break;case"scroll":y=B1;break;case"wheel":y=cS;break;case"copy":case"cut":case"paste":y=Y1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Kp}var h=(t&4)!==0,x=!h&&e==="scroll",g=h?p!==null?p+"Capture":null:p;h=[];for(var v=u,b;v!==null;){b=v;var S=b.stateNode;if(b.tag===5&&S!==null&&(b=S,g!==null&&(S=Es(v,g),S!=null&&h.push(Is(v,S,b)))),x)break;v=v.return}0<h.length&&(p=new y(p,m,null,n,d),f.push({event:p,listeners:h}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",p&&n!==uu&&(m=n.relatedTarget||n.fromElement)&&(yr(m)||m[Tn]))break e;if((y||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,y?(m=n.relatedTarget||n.toElement,y=u,m=m?yr(m):null,m!==null&&(x=Ur(m),m!==x||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=u),y!==m)){if(h=Hp,S="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(h=Kp,S="onPointerLeave",g="onPointerEnter",v="pointer"),x=y==null?p:Jr(y),b=m==null?p:Jr(m),p=new h(S,v+"leave",y,n,d),p.target=x,p.relatedTarget=b,S=null,yr(d)===u&&(h=new h(g,v+"enter",m,n,d),h.target=b,h.relatedTarget=x,S=h),x=S,y&&m)t:{for(h=y,g=m,v=0,b=h;b;b=zr(b))v++;for(b=0,S=g;S;S=zr(S))b++;for(;0<v-b;)h=zr(h),v--;for(;0<b-v;)g=zr(g),b--;for(;v--;){if(h===g||g!==null&&h===g.alternate)break t;h=zr(h),g=zr(g)}h=null}else h=null;y!==null&&oh(f,p,y,h,!1),m!==null&&x!==null&&oh(f,x,m,h,!0)}}e:{if(p=u?Jr(u):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var _=gS;else if(Qp(p))if(_v)_=bS;else{_=yS;var C=vS}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(_=xS);if(_&&(_=_(e,u))){Sv(f,_,n,d);break e}C&&C(e,p,u),e==="focusout"&&(C=p._wrapperState)&&C.controlled&&p.type==="number"&&su(p,"number",p.value)}switch(C=u?Jr(u):window,e){case"focusin":(Qp(C)||C.contentEditable==="true")&&(Xr=C,vu=u,gs=null);break;case"focusout":gs=vu=Xr=null;break;case"mousedown":yu=!0;break;case"contextmenu":case"mouseup":case"dragend":yu=!1,th(f,n,d);break;case"selectionchange":if(_S)break;case"keydown":case"keyup":th(f,n,d)}var j;if(Yd)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Qr?bv(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(xv&&n.locale!=="ko"&&(Qr||E!=="onCompositionStart"?E==="onCompositionEnd"&&Qr&&(j=yv()):(Qn=d,Wd="value"in Qn?Qn.value:Qn.textContent,Qr=!0)),C=_a(u,E),0<C.length&&(E=new Wp(E,e,null,n,d),f.push({event:E,listeners:C}),j?E.data=j:(j=wv(n),j!==null&&(E.data=j)))),(j=dS?fS(e,n):pS(e,n))&&(u=_a(u,"onBeforeInput"),0<u.length&&(d=new Wp("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=j))}Iv(f,t)})}function Is(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _a(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Es(e,n),s!=null&&r.unshift(Is(e,s,o)),s=Es(e,t),s!=null&&r.push(Is(e,s,o))),e=e.return}return r}function zr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oh(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,o?(c=Es(n,s),c!=null&&i.unshift(Is(n,c,l))):o||(c=Es(n,s),c!=null&&i.push(Is(n,c,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var RS=/\r\n?/g,NS=/\u0000|\uFFFD/g;function sh(e){return(typeof e=="string"?e:""+e).replace(RS,`
38
+ `).replace(NS,"")}function wi(e,t,n){if(t=sh(t),sh(e)!==t&&n)throw Error(I(425))}function Ca(){}var xu=null,bu=null;function wu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Su=typeof setTimeout=="function"?setTimeout:void 0,kS=typeof clearTimeout=="function"?clearTimeout:void 0,ih=typeof Promise=="function"?Promise:void 0,OS=typeof queueMicrotask=="function"?queueMicrotask:typeof ih<"u"?function(e){return ih.resolve(null).then(e).catch(TS)}:Su;function TS(e){setTimeout(function(){throw e})}function yc(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ks(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ks(t)}function tr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ah(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ao=Math.random().toString(36).slice(2),ln="__reactFiber$"+Ao,$s="__reactProps$"+Ao,Tn="__reactContainer$"+Ao,_u="__reactEvents$"+Ao,PS="__reactListeners$"+Ao,IS="__reactHandles$"+Ao;function yr(e){var t=e[ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tn]||n[ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ah(e);e!==null;){if(n=e[ln])return n;e=ah(e)}return t}e=n,n=e.parentNode}return null}function ti(e){return e=e[ln]||e[Tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Jr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function vl(e){return e[$s]||null}var Cu=[],eo=-1;function fr(e){return{current:e}}function be(e){0>eo||(e.current=Cu[eo],Cu[eo]=null,eo--)}function ye(e,t){eo++,Cu[eo]=e.current,e.current=t}var ar={},tt=fr(ar),dt=fr(!1),Or=ar;function yo(e,t){var n=e.type.contextTypes;if(!n)return ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ft(e){return e=e.childContextTypes,e!=null}function ja(){be(dt),be(tt)}function lh(e,t,n){if(tt.current!==ar)throw Error(I(168));ye(tt,t),ye(dt,n)}function Av(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(I(108,v1(e)||"Unknown",o));return Re({},n,r)}function Ea(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ar,Or=tt.current,ye(tt,e),ye(dt,dt.current),!0}function ch(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=Av(e,t,Or),r.__reactInternalMemoizedMergedChildContext=e,be(dt),be(tt),ye(tt,e)):be(dt),ye(dt,n)}var wn=null,yl=!1,xc=!1;function Mv(e){wn===null?wn=[e]:wn.push(e)}function $S(e){yl=!0,Mv(e)}function pr(){if(!xc&&wn!==null){xc=!0;var e=0,t=he;try{var n=wn;for(he=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wn=null,yl=!1}catch(o){throw wn!==null&&(wn=wn.slice(e+1)),av(Bd,pr),o}finally{he=t,xc=!1}}return null}var to=[],no=0,Ra=null,Na=0,Pt=[],It=0,Tr=null,Cn=1,jn="";function mr(e,t){to[no++]=Na,to[no++]=Ra,Ra=e,Na=t}function Dv(e,t,n){Pt[It++]=Cn,Pt[It++]=jn,Pt[It++]=Tr,Tr=e;var r=Cn;e=jn;var o=32-Yt(r)-1;r&=~(1<<o),n+=1;var s=32-Yt(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Cn=1<<32-Yt(t)+o|n<<o|r,jn=s+e}else Cn=1<<s|n<<o|r,jn=e}function Xd(e){e.return!==null&&(mr(e,1),Dv(e,1,0))}function Zd(e){for(;e===Ra;)Ra=to[--no],to[no]=null,Na=to[--no],to[no]=null;for(;e===Tr;)Tr=Pt[--It],Pt[It]=null,jn=Pt[--It],Pt[It]=null,Cn=Pt[--It],Pt[It]=null}var bt=null,xt=null,we=!1,Kt=null;function Lv(e,t){var n=At(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function uh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,bt=e,xt=tr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,bt=e,xt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Tr!==null?{id:Cn,overflow:jn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=At(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,bt=e,xt=null,!0):!1;default:return!1}}function ju(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Eu(e){if(we){var t=xt;if(t){var n=t;if(!uh(e,t)){if(ju(e))throw Error(I(418));t=tr(n.nextSibling);var r=bt;t&&uh(e,t)?Lv(r,n):(e.flags=e.flags&-4097|2,we=!1,bt=e)}}else{if(ju(e))throw Error(I(418));e.flags=e.flags&-4097|2,we=!1,bt=e}}}function dh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;bt=e}function Si(e){if(e!==bt)return!1;if(!we)return dh(e),we=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!wu(e.type,e.memoizedProps)),t&&(t=xt)){if(ju(e))throw Fv(),Error(I(418));for(;t;)Lv(e,t),t=tr(t.nextSibling)}if(dh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xt=tr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xt=null}}else xt=bt?tr(e.stateNode.nextSibling):null;return!0}function Fv(){for(var e=xt;e;)e=tr(e.nextSibling)}function xo(){xt=bt=null,we=!1}function Jd(e){Kt===null?Kt=[e]:Kt.push(e)}var AS=Ln.ReactCurrentBatchConfig;function qt(e,t){if(e&&e.defaultProps){t=Re({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ka=fr(null),Oa=null,ro=null,ef=null;function tf(){ef=ro=Oa=null}function nf(e){var t=ka.current;be(ka),e._currentValue=t}function Ru(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function fo(e,t){Oa=e,ef=ro=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ut=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(ef!==e)if(e={context:e,memoizedValue:t,next:null},ro===null){if(Oa===null)throw Error(I(308));ro=e,Oa.dependencies={lanes:0,firstContext:e}}else ro=ro.next=e;return t}var xr=null;function rf(e){xr===null?xr=[e]:xr.push(e)}function Uv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,rf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pn(e,r)}function Pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Hn=!1;function of(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pn(e,n)}return o=r.interleaved,o===null?(t.next=t,rf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pn(e,n)}function Ki(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zd(e,n)}}function fh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ta(e,t,n,r){var o=e.updateQueue;Hn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,i===null?s=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(s!==null){var f=o.baseState;i=0,d=u=c=null,l=s;do{var p=l.lane,y=l.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(p=t,y=n,h.tag){case 1:if(m=h.payload,typeof m=="function"){f=m.call(y,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,p=typeof m=="function"?m.call(y,f,p):m,p==null)break e;f=Re({},f,p);break e;case 2:Hn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[l]:p.push(l))}else y={eventTime:y,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=y,c=f):d=d.next=y,i|=p;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;p=l,l=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Ir|=i,e.lanes=i,e.memoizedState=f}}function ph(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(I(191,o));o.call(r)}}}var Bv=new Ug.Component().refs;function Nu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xl={isMounted:function(e){return(e=e._reactInternals)?Ur(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rt(),o=or(e),s=Rn(r,o);s.payload=t,n!=null&&(s.callback=n),t=nr(e,s,o),t!==null&&(Qt(t,e,o,r),Ki(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rt(),o=or(e),s=Rn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=nr(e,s,o),t!==null&&(Qt(t,e,o,r),Ki(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rt(),r=or(e),o=Rn(n,r);o.tag=2,t!=null&&(o.callback=t),t=nr(e,o,r),t!==null&&(Qt(t,e,r,n),Ki(t,e,r))}};function hh(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Ts(n,r)||!Ts(o,s):!0}function zv(e,t,n){var r=!1,o=ar,s=t.contextType;return typeof s=="object"&&s!==null?s=Lt(s):(o=ft(t)?Or:tt.current,r=t.contextTypes,s=(r=r!=null)?yo(e,o):ar),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function mh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xl.enqueueReplaceState(t,t.state,null)}function ku(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Bv,of(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Lt(s):(s=ft(t)?Or:tt.current,o.context=yo(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Nu(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&xl.enqueueReplaceState(o,o.state,null),Ta(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Yo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var r=n.stateNode}if(!r)throw Error(I(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var l=o.refs;l===Bv&&(l=o.refs={}),i===null?delete l[s]:l[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function _i(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gh(e){var t=e._init;return t(e._payload)}function qv(e){function t(g,v){if(e){var b=g.deletions;b===null?(g.deletions=[v],g.flags|=16):b.push(v)}}function n(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function r(g,v){for(g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function o(g,v){return g=sr(g,v),g.index=0,g.sibling=null,g}function s(g,v,b){return g.index=b,e?(b=g.alternate,b!==null?(b=b.index,b<v?(g.flags|=2,v):b):(g.flags|=2,v)):(g.flags|=1048576,v)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,v,b,S){return v===null||v.tag!==6?(v=Ec(b,g.mode,S),v.return=g,v):(v=o(v,b),v.return=g,v)}function c(g,v,b,S){var _=b.type;return _===Yr?d(g,v,b.props.children,S,b.key):v!==null&&(v.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===qn&&gh(_)===v.type)?(S=o(v,b.props),S.ref=Yo(g,v,b),S.return=g,S):(S=Ji(b.type,b.key,b.props,null,g.mode,S),S.ref=Yo(g,v,b),S.return=g,S)}function u(g,v,b,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==b.containerInfo||v.stateNode.implementation!==b.implementation?(v=Rc(b,g.mode,S),v.return=g,v):(v=o(v,b.children||[]),v.return=g,v)}function d(g,v,b,S,_){return v===null||v.tag!==7?(v=_r(b,g.mode,S,_),v.return=g,v):(v=o(v,b),v.return=g,v)}function f(g,v,b){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Ec(""+v,g.mode,b),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case fi:return b=Ji(v.type,v.key,v.props,null,g.mode,b),b.ref=Yo(g,null,v),b.return=g,b;case Gr:return v=Rc(v,g.mode,b),v.return=g,v;case qn:var S=v._init;return f(g,S(v._payload),b)}if(is(v)||qo(v))return v=_r(v,g.mode,b,null),v.return=g,v;_i(g,v)}return null}function p(g,v,b,S){var _=v!==null?v.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return _!==null?null:l(g,v,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case fi:return b.key===_?c(g,v,b,S):null;case Gr:return b.key===_?u(g,v,b,S):null;case qn:return _=b._init,p(g,v,_(b._payload),S)}if(is(b)||qo(b))return _!==null?null:d(g,v,b,S,null);_i(g,b)}return null}function y(g,v,b,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(b)||null,l(v,g,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case fi:return g=g.get(S.key===null?b:S.key)||null,c(v,g,S,_);case Gr:return g=g.get(S.key===null?b:S.key)||null,u(v,g,S,_);case qn:var C=S._init;return y(g,v,b,C(S._payload),_)}if(is(S)||qo(S))return g=g.get(b)||null,d(v,g,S,_,null);_i(v,S)}return null}function m(g,v,b,S){for(var _=null,C=null,j=v,E=v=0,N=null;j!==null&&E<b.length;E++){j.index>E?(N=j,j=null):N=j.sibling;var R=p(g,j,b[E],S);if(R===null){j===null&&(j=N);break}e&&j&&R.alternate===null&&t(g,j),v=s(R,v,E),C===null?_=R:C.sibling=R,C=R,j=N}if(E===b.length)return n(g,j),we&&mr(g,E),_;if(j===null){for(;E<b.length;E++)j=f(g,b[E],S),j!==null&&(v=s(j,v,E),C===null?_=j:C.sibling=j,C=j);return we&&mr(g,E),_}for(j=r(g,j);E<b.length;E++)N=y(j,g,E,b[E],S),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?E:N.key),v=s(N,v,E),C===null?_=N:C.sibling=N,C=N);return e&&j.forEach(function(O){return t(g,O)}),we&&mr(g,E),_}function h(g,v,b,S){var _=qo(b);if(typeof _!="function")throw Error(I(150));if(b=_.call(b),b==null)throw Error(I(151));for(var C=_=null,j=v,E=v=0,N=null,R=b.next();j!==null&&!R.done;E++,R=b.next()){j.index>E?(N=j,j=null):N=j.sibling;var O=p(g,j,R.value,S);if(O===null){j===null&&(j=N);break}e&&j&&O.alternate===null&&t(g,j),v=s(O,v,E),C===null?_=O:C.sibling=O,C=O,j=N}if(R.done)return n(g,j),we&&mr(g,E),_;if(j===null){for(;!R.done;E++,R=b.next())R=f(g,R.value,S),R!==null&&(v=s(R,v,E),C===null?_=R:C.sibling=R,C=R);return we&&mr(g,E),_}for(j=r(g,j);!R.done;E++,R=b.next())R=y(j,g,E,R.value,S),R!==null&&(e&&R.alternate!==null&&j.delete(R.key===null?E:R.key),v=s(R,v,E),C===null?_=R:C.sibling=R,C=R);return e&&j.forEach(function(k){return t(g,k)}),we&&mr(g,E),_}function x(g,v,b,S){if(typeof b=="object"&&b!==null&&b.type===Yr&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case fi:e:{for(var _=b.key,C=v;C!==null;){if(C.key===_){if(_=b.type,_===Yr){if(C.tag===7){n(g,C.sibling),v=o(C,b.props.children),v.return=g,g=v;break e}}else if(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===qn&&gh(_)===C.type){n(g,C.sibling),v=o(C,b.props),v.ref=Yo(g,C,b),v.return=g,g=v;break e}n(g,C);break}else t(g,C);C=C.sibling}b.type===Yr?(v=_r(b.props.children,g.mode,S,b.key),v.return=g,g=v):(S=Ji(b.type,b.key,b.props,null,g.mode,S),S.ref=Yo(g,v,b),S.return=g,g=S)}return i(g);case Gr:e:{for(C=b.key;v!==null;){if(v.key===C)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){n(g,v.sibling),v=o(v,b.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Rc(b,g.mode,S),v.return=g,g=v}return i(g);case qn:return C=b._init,x(g,v,C(b._payload),S)}if(is(b))return m(g,v,b,S);if(qo(b))return h(g,v,b,S);_i(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(n(g,v.sibling),v=o(v,b),v.return=g,g=v):(n(g,v),v=Ec(b,g.mode,S),v.return=g,g=v),i(g)):n(g,v)}return x}var bo=qv(!0),Hv=qv(!1),ni={},un=fr(ni),As=fr(ni),Ms=fr(ni);function br(e){if(e===ni)throw Error(I(174));return e}function sf(e,t){switch(ye(Ms,t),ye(As,e),ye(un,ni),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:au(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=au(t,e)}be(un),ye(un,t)}function wo(){be(un),be(As),be(Ms)}function Wv(e){br(Ms.current);var t=br(un.current),n=au(t,e.type);t!==n&&(ye(As,e),ye(un,n))}function af(e){As.current===e&&(be(un),be(As))}var Ce=fr(0);function Pa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bc=[];function lf(){for(var e=0;e<bc.length;e++)bc[e]._workInProgressVersionPrimary=null;bc.length=0}var Gi=Ln.ReactCurrentDispatcher,wc=Ln.ReactCurrentBatchConfig,Pr=0,Ee=null,Ae=null,Ve=null,Ia=!1,vs=!1,Ds=0,MS=0;function Xe(){throw Error(I(321))}function cf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zt(e[n],t[n]))return!1;return!0}function uf(e,t,n,r,o,s){if(Pr=s,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gi.current=e===null||e.memoizedState===null?US:VS,e=n(r,o),vs){s=0;do{if(vs=!1,Ds=0,25<=s)throw Error(I(301));s+=1,Ve=Ae=null,t.updateQueue=null,Gi.current=BS,e=n(r,o)}while(vs)}if(Gi.current=$a,t=Ae!==null&&Ae.next!==null,Pr=0,Ve=Ae=Ee=null,Ia=!1,t)throw Error(I(300));return e}function df(){var e=Ds!==0;return Ds=0,e}function rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?Ee.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Ft(){if(Ae===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Ve===null?Ee.memoizedState:Ve.next;if(t!==null)Ve=t,Ae=e;else{if(e===null)throw Error(I(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Ve===null?Ee.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Ls(e,t){return typeof t=="function"?t(e):t}function Sc(e){var t=Ft(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=Ae,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var l=i=null,c=null,u=s;do{var d=u.lane;if((Pr&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=f,i=r):c=c.next=f,Ee.lanes|=d,Ir|=d}u=u.next}while(u!==null&&u!==s);c===null?i=r:c.next=l,Zt(r,t.memoizedState)||(ut=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Ee.lanes|=s,Ir|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _c(e){var t=Ft(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);Zt(s,t.memoizedState)||(ut=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Kv(){}function Gv(e,t){var n=Ee,r=Ft(),o=t(),s=!Zt(r.memoizedState,o);if(s&&(r.memoizedState=o,ut=!0),r=r.queue,ff(Xv.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ve!==null&&Ve.memoizedState.tag&1){if(n.flags|=2048,Fs(9,Qv.bind(null,n,r,o,t),void 0,null),Be===null)throw Error(I(349));Pr&30||Yv(n,t,o)}return o}function Yv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Qv(e,t,n,r){t.value=n,t.getSnapshot=r,Zv(t)&&Jv(e)}function Xv(e,t,n){return n(function(){Zv(t)&&Jv(e)})}function Zv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zt(e,n)}catch{return!0}}function Jv(e){var t=Pn(e,1);t!==null&&Qt(t,e,1,-1)}function vh(e){var t=rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ls,lastRenderedState:e},t.queue=e,e=e.dispatch=FS.bind(null,Ee,e),[t.memoizedState,e]}function Fs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ey(){return Ft().memoizedState}function Yi(e,t,n,r){var o=rn();Ee.flags|=e,o.memoizedState=Fs(1|t,n,void 0,r===void 0?null:r)}function bl(e,t,n,r){var o=Ft();r=r===void 0?null:r;var s=void 0;if(Ae!==null){var i=Ae.memoizedState;if(s=i.destroy,r!==null&&cf(r,i.deps)){o.memoizedState=Fs(t,n,s,r);return}}Ee.flags|=e,o.memoizedState=Fs(1|t,n,s,r)}function yh(e,t){return Yi(8390656,8,e,t)}function ff(e,t){return bl(2048,8,e,t)}function ty(e,t){return bl(4,2,e,t)}function ny(e,t){return bl(4,4,e,t)}function ry(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function oy(e,t,n){return n=n!=null?n.concat([e]):null,bl(4,4,ry.bind(null,t,e),n)}function pf(){}function sy(e,t){var n=Ft();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function iy(e,t){var n=Ft();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ay(e,t,n){return Pr&21?(Zt(n,t)||(n=uv(),Ee.lanes|=n,Ir|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ut=!0),e.memoizedState=n)}function DS(e,t){var n=he;he=n!==0&&4>n?n:4,e(!0);var r=wc.transition;wc.transition={};try{e(!1),t()}finally{he=n,wc.transition=r}}function ly(){return Ft().memoizedState}function LS(e,t,n){var r=or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cy(e))uy(t,n);else if(n=Uv(e,t,n,r),n!==null){var o=rt();Qt(n,e,r,o),dy(n,t,r)}}function FS(e,t,n){var r=or(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cy(e))uy(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,Zt(l,i)){var c=t.interleaved;c===null?(o.next=o,rf(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=Uv(e,t,o,r),n!==null&&(o=rt(),Qt(n,e,r,o),dy(n,t,r))}}function cy(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function uy(e,t){vs=Ia=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zd(e,n)}}var $a={readContext:Lt,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useInsertionEffect:Xe,useLayoutEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useMutableSource:Xe,useSyncExternalStore:Xe,useId:Xe,unstable_isNewReconciler:!1},US={readContext:Lt,useCallback:function(e,t){return rn().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:yh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yi(4194308,4,ry.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yi(4,2,e,t)},useMemo:function(e,t){var n=rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=LS.bind(null,Ee,e),[r.memoizedState,e]},useRef:function(e){var t=rn();return e={current:e},t.memoizedState=e},useState:vh,useDebugValue:pf,useDeferredValue:function(e){return rn().memoizedState=e},useTransition:function(){var e=vh(!1),t=e[0];return e=DS.bind(null,e[1]),rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ee,o=rn();if(we){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Be===null)throw Error(I(349));Pr&30||Yv(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,yh(Xv.bind(null,r,s,e),[e]),r.flags|=2048,Fs(9,Qv.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=rn(),t=Be.identifierPrefix;if(we){var n=jn,r=Cn;n=(r&~(1<<32-Yt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ds++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=MS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},VS={readContext:Lt,useCallback:sy,useContext:Lt,useEffect:ff,useImperativeHandle:oy,useInsertionEffect:ty,useLayoutEffect:ny,useMemo:iy,useReducer:Sc,useRef:ey,useState:function(){return Sc(Ls)},useDebugValue:pf,useDeferredValue:function(e){var t=Ft();return ay(t,Ae.memoizedState,e)},useTransition:function(){var e=Sc(Ls)[0],t=Ft().memoizedState;return[e,t]},useMutableSource:Kv,useSyncExternalStore:Gv,useId:ly,unstable_isNewReconciler:!1},BS={readContext:Lt,useCallback:sy,useContext:Lt,useEffect:ff,useImperativeHandle:oy,useInsertionEffect:ty,useLayoutEffect:ny,useMemo:iy,useReducer:_c,useRef:ey,useState:function(){return _c(Ls)},useDebugValue:pf,useDeferredValue:function(e){var t=Ft();return Ae===null?t.memoizedState=e:ay(t,Ae.memoizedState,e)},useTransition:function(){var e=_c(Ls)[0],t=Ft().memoizedState;return[e,t]},useMutableSource:Kv,useSyncExternalStore:Gv,useId:ly,unstable_isNewReconciler:!1};function So(e,t){try{var n="",r=t;do n+=g1(r),r=r.return;while(r);var o=n}catch(s){o=`
39
+ Error generating stack: `+s.message+`
40
+ `+s.stack}return{value:e,source:t,stack:o,digest:null}}function Cc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ou(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var zS=typeof WeakMap=="function"?WeakMap:Map;function fy(e,t,n){n=Rn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ma||(Ma=!0,Uu=r),Ou(e,t)},n}function py(e,t,n){n=Rn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ou(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ou(e,t),typeof r!="function"&&(rr===null?rr=new Set([this]):rr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function xh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zS;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=r_.bind(null,e,t,n),t.then(e,e))}function bh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function wh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Rn(-1,1),t.tag=2,nr(n,t,1))),n.lanes|=1),e)}var qS=Ln.ReactCurrentOwner,ut=!1;function nt(e,t,n,r){t.child=e===null?Hv(t,null,n,r):bo(t,e.child,n,r)}function Sh(e,t,n,r,o){n=n.render;var s=t.ref;return fo(t,o),r=uf(e,t,n,r,s,o),n=df(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,In(e,t,o)):(we&&n&&Xd(t),t.flags|=1,nt(e,t,r,o),t.child)}function _h(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!wf(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,hy(e,t,s,r,o)):(e=Ji(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ts,n(i,r)&&e.ref===t.ref)return In(e,t,o)}return t.flags|=1,e=sr(s,r),e.ref=t.ref,e.return=t,t.child=e}function hy(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Ts(s,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(ut=!0);else return t.lanes=e.lanes,In(e,t,o)}return Tu(e,t,n,r,o)}function my(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(so,yt),yt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ye(so,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ye(so,yt),yt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ye(so,yt),yt|=r;return nt(e,t,o,n),t.child}function gy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tu(e,t,n,r,o){var s=ft(n)?Or:tt.current;return s=yo(t,s),fo(t,o),n=uf(e,t,n,r,s,o),r=df(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,In(e,t,o)):(we&&r&&Xd(t),t.flags|=1,nt(e,t,n,o),t.child)}function Ch(e,t,n,r,o){if(ft(n)){var s=!0;Ea(t)}else s=!1;if(fo(t,o),t.stateNode===null)Qi(e,t),zv(t,n,r),ku(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Lt(u):(u=ft(n)?Or:tt.current,u=yo(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||c!==u)&&mh(t,i,r,u),Hn=!1;var p=t.memoizedState;i.state=p,Ta(t,r,i,o),c=t.memoizedState,l!==r||p!==c||dt.current||Hn?(typeof d=="function"&&(Nu(t,n,d,r),c=t.memoizedState),(l=Hn||hh(t,n,l,r,p,c,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Vv(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:qt(t.type,l),i.props=u,f=t.pendingProps,p=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=Lt(c):(c=ft(n)?Or:tt.current,c=yo(t,c));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==f||p!==c)&&mh(t,i,r,c),Hn=!1,p=t.memoizedState,i.state=p,Ta(t,r,i,o);var m=t.memoizedState;l!==f||p!==m||dt.current||Hn?(typeof y=="function"&&(Nu(t,n,y,r),m=t.memoizedState),(u=Hn||hh(t,n,u,r,p,m,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,m,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,m,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Pu(e,t,n,r,s,o)}function Pu(e,t,n,r,o,s){gy(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&ch(t,n,!1),In(e,t,s);r=t.stateNode,qS.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=bo(t,e.child,null,s),t.child=bo(t,null,l,s)):nt(e,t,l,s),t.memoizedState=r.state,o&&ch(t,n,!0),t.child}function vy(e){var t=e.stateNode;t.pendingContext?lh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&lh(e,t.context,!1),sf(e,t.containerInfo)}function jh(e,t,n,r,o){return xo(),Jd(o),t.flags|=256,nt(e,t,n,r),t.child}var Iu={dehydrated:null,treeContext:null,retryLane:0};function $u(e){return{baseLanes:e,cachePool:null,transitions:null}}function yy(e,t,n){var r=t.pendingProps,o=Ce.current,s=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ye(Ce,o&1),e===null)return Eu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=_l(i,r,0,null),e=_r(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=$u(n),t.memoizedState=Iu,e):hf(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return HS(e,t,i,r,l,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,l=o.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=sr(o,c),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=sr(l,s):(s=_r(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?$u(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=Iu,r}return s=e.child,e=s.sibling,r=sr(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function hf(e,t){return t=_l({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ci(e,t,n,r){return r!==null&&Jd(r),bo(t,e.child,null,n),e=hf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function HS(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Cc(Error(I(422))),Ci(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=_l({mode:"visible",children:r.children},o,0,null),s=_r(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&bo(t,e.child,null,i),t.child.memoizedState=$u(i),t.memoizedState=Iu,s);if(!(t.mode&1))return Ci(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(I(419)),r=Cc(s,r,void 0),Ci(e,t,i,r)}if(l=(i&e.childLanes)!==0,ut||l){if(r=Be,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Pn(e,o),Qt(r,e,o,-1))}return bf(),r=Cc(Error(I(421))),Ci(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=o_.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,xt=tr(o.nextSibling),bt=t,we=!0,Kt=null,e!==null&&(Pt[It++]=Cn,Pt[It++]=jn,Pt[It++]=Tr,Cn=e.id,jn=e.overflow,Tr=t),t=hf(t,r.children),t.flags|=4096,t)}function Eh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ru(e.return,t,n)}function jc(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function xy(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(nt(e,t,r.children,n),r=Ce.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Eh(e,n,t);else if(e.tag===19)Eh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ye(Ce,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Pa(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),jc(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Pa(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}jc(t,!0,n,null,s);break;case"together":jc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function In(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ir|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=sr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function WS(e,t,n){switch(t.tag){case 3:vy(t),xo();break;case 5:Wv(t);break;case 1:ft(t.type)&&Ea(t);break;case 4:sf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ye(ka,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ye(Ce,Ce.current&1),t.flags|=128,null):n&t.child.childLanes?yy(e,t,n):(ye(Ce,Ce.current&1),e=In(e,t,n),e!==null?e.sibling:null);ye(Ce,Ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xy(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ye(Ce,Ce.current),r)break;return null;case 22:case 23:return t.lanes=0,my(e,t,n)}return In(e,t,n)}var by,Au,wy,Sy;by=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Au=function(){};wy=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,br(un.current);var s=null;switch(n){case"input":o=ru(e,o),r=ru(e,r),s=[];break;case"select":o=Re({},o,{value:void 0}),r=Re({},r,{value:void 0}),s=[];break;case"textarea":o=iu(e,o),r=iu(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ca)}lu(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Cs.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(s||(s=[]),s.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(s=s||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Cs.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&xe("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Sy=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qo(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function KS(e,t,n){var r=t.pendingProps;switch(Zd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return ft(t.type)&&ja(),Ze(t),null;case 3:return r=t.stateNode,wo(),be(dt),be(tt),lf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Si(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Kt!==null&&(zu(Kt),Kt=null))),Au(e,t),Ze(t),null;case 5:af(t);var o=br(Ms.current);if(n=t.type,e!==null&&t.stateNode!=null)wy(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(I(166));return Ze(t),null}if(e=br(un.current),Si(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ln]=t,r[$s]=s,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("load",r);break;case"video":case"audio":for(o=0;o<ls.length;o++)xe(ls[o],r);break;case"source":xe("error",r);break;case"img":case"image":case"link":xe("error",r),xe("load",r);break;case"details":xe("toggle",r);break;case"input":Ap(r,s),xe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},xe("invalid",r);break;case"textarea":Dp(r,s),xe("invalid",r)}lu(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&wi(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&wi(r.textContent,l,e),o=["children",""+l]):Cs.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&xe("scroll",r)}switch(n){case"input":pi(r),Mp(r,s,!0);break;case"textarea":pi(r),Lp(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ca)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Yg(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ln]=t,e[$s]=r,by(e,t,!1,!1),t.stateNode=e;e:{switch(i=cu(n,r),n){case"dialog":xe("cancel",e),xe("close",e),o=r;break;case"iframe":case"object":case"embed":xe("load",e),o=r;break;case"video":case"audio":for(o=0;o<ls.length;o++)xe(ls[o],e);o=r;break;case"source":xe("error",e),o=r;break;case"img":case"image":case"link":xe("error",e),xe("load",e),o=r;break;case"details":xe("toggle",e),o=r;break;case"input":Ap(e,r),o=ru(e,r),xe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Re({},r,{value:void 0}),xe("invalid",e);break;case"textarea":Dp(e,r),o=iu(e,r),xe("invalid",e);break;default:o=r}lu(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];s==="style"?Zg(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Qg(e,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&js(e,c):typeof c=="number"&&js(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Cs.hasOwnProperty(s)?c!=null&&s==="onScroll"&&xe("scroll",e):c!=null&&Dd(e,s,c,i))}switch(n){case"input":pi(e),Mp(e,r,!1);break;case"textarea":pi(e),Lp(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ir(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?ao(e,!!r.multiple,s,!1):r.defaultValue!=null&&ao(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ca)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ze(t),null;case 6:if(e&&t.stateNode!=null)Sy(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(n=br(Ms.current),br(un.current),Si(t)){if(r=t.stateNode,n=t.memoizedProps,r[ln]=t,(s=r.nodeValue!==n)&&(e=bt,e!==null))switch(e.tag){case 3:wi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ln]=t,t.stateNode=r}return Ze(t),null;case 13:if(be(Ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(we&&xt!==null&&t.mode&1&&!(t.flags&128))Fv(),xo(),t.flags|=98560,s=!1;else if(s=Si(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(I(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(I(317));s[ln]=t}else xo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ze(t),s=!1}else Kt!==null&&(zu(Kt),Kt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ce.current&1?Me===0&&(Me=3):bf())),t.updateQueue!==null&&(t.flags|=4),Ze(t),null);case 4:return wo(),Au(e,t),e===null&&Ps(t.stateNode.containerInfo),Ze(t),null;case 10:return nf(t.type._context),Ze(t),null;case 17:return ft(t.type)&&ja(),Ze(t),null;case 19:if(be(Ce),s=t.memoizedState,s===null)return Ze(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Qo(s,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Pa(e),i!==null){for(t.flags|=128,Qo(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ye(Ce,Ce.current&1|2),t.child}e=e.sibling}s.tail!==null&&Pe()>_o&&(t.flags|=128,r=!0,Qo(s,!1),t.lanes=4194304)}else{if(!r)if(e=Pa(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!we)return Ze(t),null}else 2*Pe()-s.renderingStartTime>_o&&n!==1073741824&&(t.flags|=128,r=!0,Qo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Pe(),t.sibling=null,n=Ce.current,ye(Ce,r?n&1|2:n&1),t):(Ze(t),null);case 22:case 23:return xf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function GS(e,t){switch(Zd(t),t.tag){case 1:return ft(t.type)&&ja(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wo(),be(dt),be(tt),lf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return af(t),null;case 13:if(be(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));xo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return be(Ce),null;case 4:return wo(),null;case 10:return nf(t.type._context),null;case 22:case 23:return xf(),null;case 24:return null;default:return null}}var ji=!1,et=!1,YS=typeof WeakSet=="function"?WeakSet:Set,B=null;function oo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ne(e,t,r)}else n.current=null}function Mu(e,t,n){try{n()}catch(r){Ne(e,t,r)}}var Rh=!1;function QS(e,t){if(xu=wa,e=Ev(),Qd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(l=i+o),f!==s||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=i),p===s&&++d===r&&(c=i),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(bu={focusedElem:e,selectionRange:n},wa=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var h=m.memoizedProps,x=m.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?h:qt(t.type,h),x);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.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(I(163))}}catch(S){Ne(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return m=Rh,Rh=!1,m}function ys(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Mu(t,n,s)}o=o.next}while(o!==r)}}function wl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Du(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _y(e){var t=e.alternate;t!==null&&(e.alternate=null,_y(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ln],delete t[$s],delete t[_u],delete t[PS],delete t[IS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Cy(e){return e.tag===5||e.tag===3||e.tag===4}function Nh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ca));else if(r!==4&&(e=e.child,e!==null))for(Lu(e,t,n),e=e.sibling;e!==null;)Lu(e,t,n),e=e.sibling}function Fu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fu(e,t,n),e=e.sibling;e!==null;)Fu(e,t,n),e=e.sibling}var He=null,Ht=!1;function zn(e,t,n){for(n=n.child;n!==null;)jy(e,t,n),n=n.sibling}function jy(e,t,n){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(pl,n)}catch{}switch(n.tag){case 5:et||oo(n,t);case 6:var r=He,o=Ht;He=null,zn(e,t,n),He=r,Ht=o,He!==null&&(Ht?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Ht?(e=He,n=n.stateNode,e.nodeType===8?yc(e.parentNode,n):e.nodeType===1&&yc(e,n),ks(e)):yc(He,n.stateNode));break;case 4:r=He,o=Ht,He=n.stateNode.containerInfo,Ht=!0,zn(e,t,n),He=r,Ht=o;break;case 0:case 11:case 14:case 15:if(!et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Mu(n,t,i),o=o.next}while(o!==r)}zn(e,t,n);break;case 1:if(!et&&(oo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ne(n,t,l)}zn(e,t,n);break;case 21:zn(e,t,n);break;case 22:n.mode&1?(et=(r=et)||n.memoizedState!==null,zn(e,t,n),et=r):zn(e,t,n);break;default:zn(e,t,n)}}function kh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new YS),t.forEach(function(r){var o=s_.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Bt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:He=l.stateNode,Ht=!1;break e;case 3:He=l.stateNode.containerInfo,Ht=!0;break e;case 4:He=l.stateNode.containerInfo,Ht=!0;break e}l=l.return}if(He===null)throw Error(I(160));jy(s,i,o),He=null,Ht=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){Ne(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ey(t,e),t=t.sibling}function Ey(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Bt(t,e),tn(e),r&4){try{ys(3,e,e.return),wl(3,e)}catch(h){Ne(e,e.return,h)}try{ys(5,e,e.return)}catch(h){Ne(e,e.return,h)}}break;case 1:Bt(t,e),tn(e),r&512&&n!==null&&oo(n,n.return);break;case 5:if(Bt(t,e),tn(e),r&512&&n!==null&&oo(n,n.return),e.flags&32){var o=e.stateNode;try{js(o,"")}catch(h){Ne(e,e.return,h)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&Kg(o,s),cu(l,i);var u=cu(l,s);for(i=0;i<c.length;i+=2){var d=c[i],f=c[i+1];d==="style"?Zg(o,f):d==="dangerouslySetInnerHTML"?Qg(o,f):d==="children"?js(o,f):Dd(o,d,f,u)}switch(l){case"input":ou(o,s);break;case"textarea":Gg(o,s);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?ao(o,!!s.multiple,y,!1):p!==!!s.multiple&&(s.defaultValue!=null?ao(o,!!s.multiple,s.defaultValue,!0):ao(o,!!s.multiple,s.multiple?[]:"",!1))}o[$s]=s}catch(h){Ne(e,e.return,h)}}break;case 6:if(Bt(t,e),tn(e),r&4){if(e.stateNode===null)throw Error(I(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(h){Ne(e,e.return,h)}}break;case 3:if(Bt(t,e),tn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ks(t.containerInfo)}catch(h){Ne(e,e.return,h)}break;case 4:Bt(t,e),tn(e);break;case 13:Bt(t,e),tn(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(vf=Pe())),r&4&&kh(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(et=(u=et)||d,Bt(t,e),et=u):Bt(t,e),tn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(B=e,d=e.child;d!==null;){for(f=B=d;B!==null;){switch(p=B,y=p.child,p.tag){case 0:case 11:case 14:case 15:ys(4,p,p.return);break;case 1:oo(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(h){Ne(r,n,h)}}break;case 5:oo(p,p.return);break;case 22:if(p.memoizedState!==null){Th(f);continue}}y!==null?(y.return=p,B=y):Th(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=f.stateNode,c=f.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=Xg("display",i))}catch(h){Ne(e,e.return,h)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(h){Ne(e,e.return,h)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Bt(t,e),tn(e),r&4&&kh(e);break;case 21:break;default:Bt(t,e),tn(e)}}function tn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Cy(n)){var r=n;break e}n=n.return}throw Error(I(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(js(o,""),r.flags&=-33);var s=Nh(e);Fu(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=Nh(e);Lu(e,l,i);break;default:throw Error(I(161))}}catch(c){Ne(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function XS(e,t,n){B=e,Ry(e)}function Ry(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var o=B,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||ji;if(!i){var l=o.alternate,c=l!==null&&l.memoizedState!==null||et;l=ji;var u=et;if(ji=i,(et=c)&&!u)for(B=o;B!==null;)i=B,c=i.child,i.tag===22&&i.memoizedState!==null?Ph(o):c!==null?(c.return=i,B=c):Ph(o);for(;s!==null;)B=s,Ry(s),s=s.sibling;B=o,ji=l,et=u}Oh(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,B=s):Oh(e)}}function Oh(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:et||wl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!et)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:qt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&ph(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ph(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&ks(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}et||t.flags&512&&Du(t)}catch(p){Ne(t,t.return,p)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function Th(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function Ph(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wl(4,t)}catch(c){Ne(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Ne(t,o,c)}}var s=t.return;try{Du(t)}catch(c){Ne(t,s,c)}break;case 5:var i=t.return;try{Du(t)}catch(c){Ne(t,i,c)}}}catch(c){Ne(t,t.return,c)}if(t===e){B=null;break}var l=t.sibling;if(l!==null){l.return=t.return,B=l;break}B=t.return}}var ZS=Math.ceil,Aa=Ln.ReactCurrentDispatcher,mf=Ln.ReactCurrentOwner,Mt=Ln.ReactCurrentBatchConfig,le=0,Be=null,$e=null,Ge=0,yt=0,so=fr(0),Me=0,Us=null,Ir=0,Sl=0,gf=0,xs=null,ct=null,vf=0,_o=1/0,bn=null,Ma=!1,Uu=null,rr=null,Ei=!1,Xn=null,Da=0,bs=0,Vu=null,Xi=-1,Zi=0;function rt(){return le&6?Pe():Xi!==-1?Xi:Xi=Pe()}function or(e){return e.mode&1?le&2&&Ge!==0?Ge&-Ge:AS.transition!==null?(Zi===0&&(Zi=uv()),Zi):(e=he,e!==0||(e=window.event,e=e===void 0?16:vv(e.type)),e):1}function Qt(e,t,n,r){if(50<bs)throw bs=0,Vu=null,Error(I(185));Js(e,n,r),(!(le&2)||e!==Be)&&(e===Be&&(!(le&2)&&(Sl|=n),Me===4&&Gn(e,Ge)),pt(e,r),n===1&&le===0&&!(t.mode&1)&&(_o=Pe()+500,yl&&pr()))}function pt(e,t){var n=e.callbackNode;A1(e,t);var r=ba(e,e===Be?Ge:0);if(r===0)n!==null&&Vp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Vp(n),t===1)e.tag===0?$S(Ih.bind(null,e)):Mv(Ih.bind(null,e)),OS(function(){!(le&6)&&pr()}),n=null;else{switch(dv(r)){case 1:n=Bd;break;case 4:n=lv;break;case 16:n=xa;break;case 536870912:n=cv;break;default:n=xa}n=Ay(n,Ny.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ny(e,t){if(Xi=-1,Zi=0,le&6)throw Error(I(327));var n=e.callbackNode;if(po()&&e.callbackNode!==n)return null;var r=ba(e,e===Be?Ge:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=La(e,r);else{t=r;var o=le;le|=2;var s=Oy();(Be!==e||Ge!==t)&&(bn=null,_o=Pe()+500,Sr(e,t));do try{t_();break}catch(l){ky(e,l)}while(!0);tf(),Aa.current=s,le=o,$e!==null?t=0:(Be=null,Ge=0,t=Me)}if(t!==0){if(t===2&&(o=hu(e),o!==0&&(r=o,t=Bu(e,o))),t===1)throw n=Us,Sr(e,0),Gn(e,r),pt(e,Pe()),n;if(t===6)Gn(e,r);else{if(o=e.current.alternate,!(r&30)&&!JS(o)&&(t=La(e,r),t===2&&(s=hu(e),s!==0&&(r=s,t=Bu(e,s))),t===1))throw n=Us,Sr(e,0),Gn(e,r),pt(e,Pe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(I(345));case 2:gr(e,ct,bn);break;case 3:if(Gn(e,r),(r&130023424)===r&&(t=vf+500-Pe(),10<t)){if(ba(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){rt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Su(gr.bind(null,e,ct,bn),t);break}gr(e,ct,bn);break;case 4:if(Gn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Yt(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ZS(r/1960))-r,10<r){e.timeoutHandle=Su(gr.bind(null,e,ct,bn),r);break}gr(e,ct,bn);break;case 5:gr(e,ct,bn);break;default:throw Error(I(329))}}}return pt(e,Pe()),e.callbackNode===n?Ny.bind(null,e):null}function Bu(e,t){var n=xs;return e.current.memoizedState.isDehydrated&&(Sr(e,t).flags|=256),e=La(e,t),e!==2&&(t=ct,ct=n,t!==null&&zu(t)),e}function zu(e){ct===null?ct=e:ct.push.apply(ct,e)}function JS(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!Zt(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Gn(e,t){for(t&=~gf,t&=~Sl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Yt(t),r=1<<n;e[n]=-1,t&=~r}}function Ih(e){if(le&6)throw Error(I(327));po();var t=ba(e,0);if(!(t&1))return pt(e,Pe()),null;var n=La(e,t);if(e.tag!==0&&n===2){var r=hu(e);r!==0&&(t=r,n=Bu(e,r))}if(n===1)throw n=Us,Sr(e,0),Gn(e,t),pt(e,Pe()),n;if(n===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gr(e,ct,bn),pt(e,Pe()),null}function yf(e,t){var n=le;le|=1;try{return e(t)}finally{le=n,le===0&&(_o=Pe()+500,yl&&pr())}}function $r(e){Xn!==null&&Xn.tag===0&&!(le&6)&&po();var t=le;le|=1;var n=Mt.transition,r=he;try{if(Mt.transition=null,he=1,e)return e()}finally{he=r,Mt.transition=n,le=t,!(le&6)&&pr()}}function xf(){yt=so.current,be(so)}function Sr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,kS(n)),$e!==null)for(n=$e.return;n!==null;){var r=n;switch(Zd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ja();break;case 3:wo(),be(dt),be(tt),lf();break;case 5:af(r);break;case 4:wo();break;case 13:be(Ce);break;case 19:be(Ce);break;case 10:nf(r.type._context);break;case 22:case 23:xf()}n=n.return}if(Be=e,$e=e=sr(e.current,null),Ge=yt=t,Me=0,Us=null,gf=Sl=Ir=0,ct=xs=null,xr!==null){for(t=0;t<xr.length;t++)if(n=xr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}xr=null}return e}function ky(e,t){do{var n=$e;try{if(tf(),Gi.current=$a,Ia){for(var r=Ee.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ia=!1}if(Pr=0,Ve=Ae=Ee=null,vs=!1,Ds=0,mf.current=null,n===null||n.return===null){Me=1,Us=t,$e=null;break}e:{var s=e,i=n.return,l=n,c=t;if(t=Ge,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var y=bh(i);if(y!==null){y.flags&=-257,wh(y,i,l,s,t),y.mode&1&&xh(s,u,t),t=y,c=u;var m=t.updateQueue;if(m===null){var h=new Set;h.add(c),t.updateQueue=h}else m.add(c);break e}else{if(!(t&1)){xh(s,u,t),bf();break e}c=Error(I(426))}}else if(we&&l.mode&1){var x=bh(i);if(x!==null){!(x.flags&65536)&&(x.flags|=256),wh(x,i,l,s,t),Jd(So(c,l));break e}}s=c=So(c,l),Me!==4&&(Me=2),xs===null?xs=[s]:xs.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=fy(s,c,t);fh(s,g);break e;case 1:l=c;var v=s.type,b=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(rr===null||!rr.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=py(s,l,t);fh(s,S);break e}}s=s.return}while(s!==null)}Py(n)}catch(_){t=_,$e===n&&n!==null&&($e=n=n.return);continue}break}while(!0)}function Oy(){var e=Aa.current;return Aa.current=$a,e===null?$a:e}function bf(){(Me===0||Me===3||Me===2)&&(Me=4),Be===null||!(Ir&268435455)&&!(Sl&268435455)||Gn(Be,Ge)}function La(e,t){var n=le;le|=2;var r=Oy();(Be!==e||Ge!==t)&&(bn=null,Sr(e,t));do try{e_();break}catch(o){ky(e,o)}while(!0);if(tf(),le=n,Aa.current=r,$e!==null)throw Error(I(261));return Be=null,Ge=0,Me}function e_(){for(;$e!==null;)Ty($e)}function t_(){for(;$e!==null&&!E1();)Ty($e)}function Ty(e){var t=$y(e.alternate,e,yt);e.memoizedProps=e.pendingProps,t===null?Py(e):$e=t,mf.current=null}function Py(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=GS(n,t),n!==null){n.flags&=32767,$e=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,$e=null;return}}else if(n=KS(n,t,yt),n!==null){$e=n;return}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);Me===0&&(Me=5)}function gr(e,t,n){var r=he,o=Mt.transition;try{Mt.transition=null,he=1,n_(e,t,n,r)}finally{Mt.transition=o,he=r}return null}function n_(e,t,n,r){do po();while(Xn!==null);if(le&6)throw Error(I(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(M1(e,s),e===Be&&($e=Be=null,Ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ei||(Ei=!0,Ay(xa,function(){return po(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Mt.transition,Mt.transition=null;var i=he;he=1;var l=le;le|=4,mf.current=null,QS(e,n),Ey(n,e),SS(bu),wa=!!xu,bu=xu=null,e.current=n,XS(n),R1(),le=l,he=i,Mt.transition=s}else e.current=n;if(Ei&&(Ei=!1,Xn=e,Da=o),s=e.pendingLanes,s===0&&(rr=null),O1(n.stateNode),pt(e,Pe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ma)throw Ma=!1,e=Uu,Uu=null,e;return Da&1&&e.tag!==0&&po(),s=e.pendingLanes,s&1?e===Vu?bs++:(bs=0,Vu=e):bs=0,pr(),null}function po(){if(Xn!==null){var e=dv(Da),t=Mt.transition,n=he;try{if(Mt.transition=null,he=16>e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,Da=0,le&6)throw Error(I(331));var o=le;for(le|=4,B=e.current;B!==null;){var s=B,i=s.child;if(B.flags&16){var l=s.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(B=u;B!==null;){var d=B;switch(d.tag){case 0:case 11:case 15:ys(8,d,s)}var f=d.child;if(f!==null)f.return=d,B=f;else for(;B!==null;){d=B;var p=d.sibling,y=d.return;if(_y(d),d===u){B=null;break}if(p!==null){p.return=y,B=p;break}B=y}}}var m=s.alternate;if(m!==null){var h=m.child;if(h!==null){m.child=null;do{var x=h.sibling;h.sibling=null,h=x}while(h!==null)}}B=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,B=i;else e:for(;B!==null;){if(s=B,s.flags&2048)switch(s.tag){case 0:case 11:case 15:ys(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,B=g;break e}B=s.return}}var v=e.current;for(B=v;B!==null;){i=B;var b=i.child;if(i.subtreeFlags&2064&&b!==null)b.return=i,B=b;else e:for(i=v;B!==null;){if(l=B,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:wl(9,l)}}catch(_){Ne(l,l.return,_)}if(l===i){B=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,B=S;break e}B=l.return}}if(le=o,pr(),cn&&typeof cn.onPostCommitFiberRoot=="function")try{cn.onPostCommitFiberRoot(pl,e)}catch{}r=!0}return r}finally{he=n,Mt.transition=t}}return!1}function $h(e,t,n){t=So(n,t),t=fy(e,t,1),e=nr(e,t,1),t=rt(),e!==null&&(Js(e,1,t),pt(e,t))}function Ne(e,t,n){if(e.tag===3)$h(e,e,n);else for(;t!==null;){if(t.tag===3){$h(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(rr===null||!rr.has(r))){e=So(n,e),e=py(t,e,1),t=nr(t,e,1),e=rt(),t!==null&&(Js(t,1,e),pt(t,e));break}}t=t.return}}function r_(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&n,Be===e&&(Ge&n)===n&&(Me===4||Me===3&&(Ge&130023424)===Ge&&500>Pe()-vf?Sr(e,0):gf|=n),pt(e,t)}function Iy(e,t){t===0&&(e.mode&1?(t=gi,gi<<=1,!(gi&130023424)&&(gi=4194304)):t=1);var n=rt();e=Pn(e,t),e!==null&&(Js(e,t,n),pt(e,n))}function o_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Iy(e,n)}function s_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),Iy(e,n)}var $y;$y=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ut=!1,WS(e,t,n);ut=!!(e.flags&131072)}else ut=!1,we&&t.flags&1048576&&Dv(t,Na,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qi(e,t),e=t.pendingProps;var o=yo(t,tt.current);fo(t,n),o=uf(null,t,r,e,o,n);var s=df();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(s=!0,Ea(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,of(t),o.updater=xl,t.stateNode=o,o._reactInternals=t,ku(t,r,e,n),t=Pu(null,t,r,!0,s,n)):(t.tag=0,we&&s&&Xd(t),nt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=a_(r),e=qt(r,e),o){case 0:t=Tu(null,t,r,e,n);break e;case 1:t=Ch(null,t,r,e,n);break e;case 11:t=Sh(null,t,r,e,n);break e;case 14:t=_h(null,t,r,qt(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),Tu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),Ch(e,t,r,o,n);case 3:e:{if(vy(t),e===null)throw Error(I(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Vv(e,t),Ta(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=So(Error(I(423)),t),t=jh(e,t,r,n,o);break e}else if(r!==o){o=So(Error(I(424)),t),t=jh(e,t,r,n,o);break e}else for(xt=tr(t.stateNode.containerInfo.firstChild),bt=t,we=!0,Kt=null,n=Hv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xo(),r===o){t=In(e,t,n);break e}nt(e,t,r,n)}t=t.child}return t;case 5:return Wv(t),e===null&&Eu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,wu(r,o)?i=null:s!==null&&wu(r,s)&&(t.flags|=32),gy(e,t),nt(e,t,i,n),t.child;case 6:return e===null&&Eu(t),null;case 13:return yy(e,t,n);case 4:return sf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bo(t,null,r,n):nt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),Sh(e,t,r,o,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,ye(ka,r._currentValue),r._currentValue=i,s!==null)if(Zt(s.value,i)){if(s.children===o.children&&!dt.current){t=In(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=Rn(-1,n&-n),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Ru(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(I(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ru(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}nt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,fo(t,n),o=Lt(o),r=r(o),t.flags|=1,nt(e,t,r,n),t.child;case 14:return r=t.type,o=qt(r,t.pendingProps),o=qt(r.type,o),_h(e,t,r,o,n);case 15:return hy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),Qi(e,t),t.tag=1,ft(r)?(e=!0,Ea(t)):e=!1,fo(t,n),zv(t,r,o),ku(t,r,o,n),Pu(null,t,r,!0,e,n);case 19:return xy(e,t,n);case 22:return my(e,t,n)}throw Error(I(156,t.tag))};function Ay(e,t){return av(e,t)}function i_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,r){return new i_(e,t,n,r)}function wf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function a_(e){if(typeof e=="function")return wf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fd)return 11;if(e===Ud)return 14}return 2}function sr(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ji(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")wf(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Yr:return _r(n.children,o,s,t);case Ld:i=8,o|=8;break;case Jc:return e=At(12,n,t,o|2),e.elementType=Jc,e.lanes=s,e;case eu:return e=At(13,n,t,o),e.elementType=eu,e.lanes=s,e;case tu:return e=At(19,n,t,o),e.elementType=tu,e.lanes=s,e;case qg:return _l(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bg:i=10;break e;case zg:i=9;break e;case Fd:i=11;break e;case Ud:i=14;break e;case qn:i=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=At(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function _r(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function _l(e,t,n,r){return e=At(22,e,r,t),e.elementType=qg,e.lanes=n,e.stateNode={isHidden:!1},e}function Ec(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function Rc(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function l_(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ac(0),this.expirationTimes=ac(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ac(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Sf(e,t,n,r,o,s,i,l,c){return e=new l_(e,t,n,l,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=At(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},of(s),e}function c_(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Gr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function My(e){if(!e)return ar;e=e._reactInternals;e:{if(Ur(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var n=e.type;if(ft(n))return Av(e,n,t)}return t}function Dy(e,t,n,r,o,s,i,l,c){return e=Sf(n,r,!0,e,o,s,i,l,c),e.context=My(null),n=e.current,r=rt(),o=or(n),s=Rn(r,o),s.callback=t??null,nr(n,s,o),e.current.lanes=o,Js(e,o,r),pt(e,r),e}function Cl(e,t,n,r){var o=t.current,s=rt(),i=or(o);return n=My(n),t.context===null?t.context=n:t.pendingContext=n,t=Rn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=nr(o,t,i),e!==null&&(Qt(e,o,i,s),Ki(e,o,i)),i}function Fa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ah(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _f(e,t){Ah(e,t),(e=e.alternate)&&Ah(e,t)}function u_(){return null}var Ly=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cf(e){this._internalRoot=e}jl.prototype.render=Cf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));Cl(e,t,null,null)};jl.prototype.unmount=Cf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$r(function(){Cl(null,e,null,null)}),t[Tn]=null}};function jl(e){this._internalRoot=e}jl.prototype.unstable_scheduleHydration=function(e){if(e){var t=hv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kn.length&&t!==0&&t<Kn[n].priority;n++);Kn.splice(n,0,e),n===0&&gv(e)}};function jf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function El(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Mh(){}function d_(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=Fa(i);s.call(u)}}var i=Dy(t,r,e,0,null,!1,!1,"",Mh);return e._reactRootContainer=i,e[Tn]=i.current,Ps(e.nodeType===8?e.parentNode:e),$r(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Fa(c);l.call(u)}}var c=Sf(e,0,!1,null,null,!1,!1,"",Mh);return e._reactRootContainer=c,e[Tn]=c.current,Ps(e.nodeType===8?e.parentNode:e),$r(function(){Cl(t,c,n,r)}),c}function Rl(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var l=o;o=function(){var c=Fa(i);l.call(c)}}Cl(t,i,e,o)}else i=d_(n,t,e,o,r);return Fa(i)}fv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=as(t.pendingLanes);n!==0&&(zd(t,n|1),pt(t,Pe()),!(le&6)&&(_o=Pe()+500,pr()))}break;case 13:$r(function(){var r=Pn(e,1);if(r!==null){var o=rt();Qt(r,e,1,o)}}),_f(e,1)}};qd=function(e){if(e.tag===13){var t=Pn(e,134217728);if(t!==null){var n=rt();Qt(t,e,134217728,n)}_f(e,134217728)}};pv=function(e){if(e.tag===13){var t=or(e),n=Pn(e,t);if(n!==null){var r=rt();Qt(n,e,t,r)}_f(e,t)}};hv=function(){return he};mv=function(e,t){var n=he;try{return he=e,t()}finally{he=n}};du=function(e,t,n){switch(t){case"input":if(ou(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=vl(r);if(!o)throw Error(I(90));Wg(r),ou(r,o)}}}break;case"textarea":Gg(e,n);break;case"select":t=n.value,t!=null&&ao(e,!!n.multiple,t,!1)}};tv=yf;nv=$r;var f_={usingClientEntryPoint:!1,Events:[ti,Jr,vl,Jg,ev,yf]},Xo={findFiberByHostInstance:yr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},p_={bundleType:Xo.bundleType,version:Xo.version,rendererPackageName:Xo.rendererPackageName,rendererConfig:Xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ln.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=sv(e),e===null?null:e.stateNode},findFiberByHostInstance:Xo.findFiberByHostInstance||u_,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 Ri=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ri.isDisabled&&Ri.supportsFiber)try{pl=Ri.inject(p_),cn=Ri}catch{}}Rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f_;Rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jf(t))throw Error(I(200));return c_(e,t,null,n)};Rt.createRoot=function(e,t){if(!jf(e))throw Error(I(299));var n=!1,r="",o=Ly;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Sf(e,1,!1,null,null,n,!1,r,o),e[Tn]=t.current,Ps(e.nodeType===8?e.parentNode:e),new Cf(t)};Rt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=sv(t),e=e===null?null:e.stateNode,e};Rt.flushSync=function(e){return $r(e)};Rt.hydrate=function(e,t,n){if(!El(t))throw Error(I(200));return Rl(null,e,t,!0,n)};Rt.hydrateRoot=function(e,t,n){if(!jf(e))throw Error(I(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=Ly;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Dy(t,null,e,1,n??null,o,!1,s,i),e[Tn]=t.current,Ps(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new jl(t)};Rt.render=function(e,t,n){if(!El(t))throw Error(I(200));return Rl(null,e,t,!1,n)};Rt.unmountComponentAtNode=function(e){if(!El(e))throw Error(I(40));return e._reactRootContainer?($r(function(){Rl(null,null,e,!1,function(){e._reactRootContainer=null,e[Tn]=null})}),!0):!1};Rt.unstable_batchedUpdates=yf;Rt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!El(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return Rl(e,t,n,!1,r)};Rt.version="18.2.0-next-9e3b772b8-20220608";function Fy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fy)}catch(e){console.error(e)}}Fy(),Dg.exports=Rt;var Ef=Dg.exports;const wr=Xs(Ef);var Dh=Ef;Dt.createRoot=Dh.createRoot,Dt.hydrateRoot=Dh.hydrateRoot;function qe(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var h_=typeof Symbol=="function"&&Symbol.observable||"@@observable",Lh=h_,Nc=()=>Math.random().toString(36).substring(7).split("").join("."),m_={INIT:`@@redux/INIT${Nc()}`,REPLACE:`@@redux/REPLACE${Nc()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Nc()}`},Ua=m_;function Rf(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Uy(e,t,n){if(typeof e!="function")throw new Error(qe(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(qe(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(qe(1));return n(Uy)(e,t)}let r=e,o=t,s=new Map,i=s,l=0,c=!1;function u(){i===s&&(i=new Map,s.forEach((x,g)=>{i.set(g,x)}))}function d(){if(c)throw new Error(qe(3));return o}function f(x){if(typeof x!="function")throw new Error(qe(4));if(c)throw new Error(qe(5));let g=!0;u();const v=l++;return i.set(v,x),function(){if(g){if(c)throw new Error(qe(6));g=!1,u(),i.delete(v),s=null}}}function p(x){if(!Rf(x))throw new Error(qe(7));if(typeof x.type>"u")throw new Error(qe(8));if(typeof x.type!="string")throw new Error(qe(17));if(c)throw new Error(qe(9));try{c=!0,o=r(o,x)}finally{c=!1}return(s=i).forEach(v=>{v()}),x}function y(x){if(typeof x!="function")throw new Error(qe(10));r=x,p({type:Ua.REPLACE})}function m(){const x=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(qe(11));function v(){const S=g;S.next&&S.next(d())}return v(),{unsubscribe:x(v)}},[Lh](){return this}}}return p({type:Ua.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:y,[Lh]:m}}function g_(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ua.INIT})>"u")throw new Error(qe(12));if(typeof n(void 0,{type:Ua.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(qe(13))})}function v_(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const i=t[s];typeof e[i]=="function"&&(n[i]=e[i])}const r=Object.keys(n);let o;try{g_(n)}catch(s){o=s}return function(i={},l){if(o)throw o;let c=!1;const u={};for(let d=0;d<r.length;d++){const f=r[d],p=n[f],y=i[f],m=p(y,l);if(typeof m>"u")throw l&&l.type,new Error(qe(14));u[f]=m,c=c||m!==y}return c=c||r.length!==Object.keys(i).length,c?u:i}}function Va(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function y_(...e){return t=>(n,r)=>{const o=t(n,r);let s=()=>{throw new Error(qe(15))};const i={getState:o.getState,dispatch:(c,...u)=>s(c,...u)},l=e.map(c=>c(i));return s=Va(...l)(o.dispatch),{...o,dispatch:s}}}function x_(e){return Rf(e)&&"type"in e&&typeof e.type=="string"}var Vy=Symbol.for("immer-nothing"),Fh=Symbol.for("immer-draftable"),_t=Symbol.for("immer-state");function Gt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Co=Object.getPrototypeOf;function lr(e){return!!e&&!!e[_t]}function $n(e){var t;return e?By(e)||Array.isArray(e)||!!e[Fh]||!!((t=e.constructor)!=null&&t[Fh])||kl(e)||Ol(e):!1}var b_=Object.prototype.constructor.toString();function By(e){if(!e||typeof e!="object")return!1;const t=Co(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===b_}function Vs(e,t){Nl(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Nl(e){const t=e[_t];return t?t.type_:Array.isArray(e)?1:kl(e)?2:Ol(e)?3:0}function qu(e,t){return Nl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function zy(e,t,n){const r=Nl(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function w_(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function kl(e){return e instanceof Map}function Ol(e){return e instanceof Set}function vr(e){return e.copy_||e.base_}function Hu(e,t){if(kl(e))return new Map(e);if(Ol(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&By(e))return Co(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[_t];let r=Reflect.ownKeys(n);for(let o=0;o<r.length;o++){const s=r[o],i=n[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Co(e),n)}function Nf(e,t=!1){return Tl(e)||lr(e)||!$n(e)||(Nl(e)>1&&(e.set=e.add=e.clear=e.delete=S_),Object.freeze(e),t&&Vs(e,(n,r)=>Nf(r,!0))),e}function S_(){Gt(2)}function Tl(e){return Object.isFrozen(e)}var __={};function Ar(e){const t=__[e];return t||Gt(0,e),t}var Bs;function qy(){return Bs}function C_(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Uh(e,t){t&&(Ar("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Wu(e){Ku(e),e.drafts_.forEach(j_),e.drafts_=null}function Ku(e){e===Bs&&(Bs=e.parent_)}function Vh(e){return Bs=C_(Bs,e)}function j_(e){const t=e[_t];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Bh(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[_t].modified_&&(Wu(t),Gt(4)),$n(e)&&(e=Ba(t,e),t.parent_||za(t,e)),t.patches_&&Ar("Patches").generateReplacementPatches_(n[_t].base_,e,t.patches_,t.inversePatches_)):e=Ba(t,n,[]),Wu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Vy?e:void 0}function Ba(e,t,n){if(Tl(t))return t;const r=t[_t];if(!r)return Vs(t,(o,s)=>zh(e,r,t,o,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return za(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let s=o,i=!1;r.type_===3&&(s=new Set(o),o.clear(),i=!0),Vs(s,(l,c)=>zh(e,r,o,l,c,n,i)),za(e,o,!1),n&&e.patches_&&Ar("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function zh(e,t,n,r,o,s,i){if(lr(o)){const l=s&&t&&t.type_!==3&&!qu(t.assigned_,r)?s.concat(r):void 0,c=Ba(e,o,l);if(zy(n,r,c),lr(c))e.canAutoFreeze_=!1;else return}else i&&n.add(o);if($n(o)&&!Tl(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ba(e,o),(!t||!t.scope_.parent_)&&za(e,o)}}function za(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Nf(t,n)}function E_(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:qy(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,s=kf;n&&(o=[r],s=zs);const{revoke:i,proxy:l}=Proxy.revocable(o,s);return r.draft_=l,r.revoke_=i,l}var kf={get(e,t){if(t===_t)return e;const n=vr(e);if(!qu(n,t))return R_(e,n,t);const r=n[t];return e.finalized_||!$n(r)?r:r===kc(e.base_,t)?(Oc(e),e.copy_[t]=Yu(r,e)):r},has(e,t){return t in vr(e)},ownKeys(e){return Reflect.ownKeys(vr(e))},set(e,t,n){const r=Hy(vr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=kc(vr(e),t),s=o==null?void 0:o[_t];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(w_(n,o)&&(n!==void 0||qu(e.base_,t)))return!0;Oc(e),Gu(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return kc(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Oc(e),Gu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=vr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Gt(11)},getPrototypeOf(e){return Co(e.base_)},setPrototypeOf(){Gt(12)}},zs={};Vs(kf,(e,t)=>{zs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});zs.deleteProperty=function(e,t){return zs.set.call(this,e,t,void 0)};zs.set=function(e,t,n){return kf.set.call(this,e[0],t,n,e[0])};function kc(e,t){const n=e[_t];return(n?vr(n):e)[t]}function R_(e,t,n){var o;const r=Hy(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Hy(e,t){if(!(t in e))return;let n=Co(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Co(n)}}function Gu(e){e.modified_||(e.modified_=!0,e.parent_&&Gu(e.parent_))}function Oc(e){e.copy_||(e.copy_=Hu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var N_=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const i=this;return function(c=s,...u){return i.produce(c,d=>n.call(this,d,...u))}}typeof n!="function"&&Gt(6),r!==void 0&&typeof r!="function"&&Gt(7);let o;if($n(t)){const s=Vh(this),i=Yu(t,void 0);let l=!0;try{o=n(i),l=!1}finally{l?Wu(s):Ku(s)}return Uh(s,r),Bh(o,s)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Vy&&(o=void 0),this.autoFreeze_&&Nf(o,!0),r){const s=[],i=[];Ar("Patches").generateReplacementPatches_(t,o,s,i),r(s,i)}return o}else Gt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(i,...l)=>this.produceWithPatches(i,c=>t(c,...l));let r,o;return[this.produce(t,n,(i,l)=>{r=i,o=l}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){$n(e)||Gt(8),lr(e)&&(e=Wy(e));const t=Vh(this),n=Yu(e,void 0);return n[_t].isManual_=!0,Ku(t),n}finishDraft(e,t){const n=e&&e[_t];(!n||!n.isManual_)&&Gt(9);const{scope_:r}=n;return Uh(r,t),Bh(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Ar("Patches").applyPatches_;return lr(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Yu(e,t){const n=kl(e)?Ar("MapSet").proxyMap_(e,t):Ol(e)?Ar("MapSet").proxySet_(e,t):E_(e,t);return(t?t.scope_:qy()).drafts_.push(n),n}function Wy(e){return lr(e)||Gt(10,e),Ky(e)}function Ky(e){if(!$n(e)||Tl(e))return e;const t=e[_t];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Hu(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Hu(e,!0);return Vs(n,(r,o)=>{zy(n,r,Ky(o))}),t&&(t.finalized_=!1),n}var Ct=new N_,Tt=Ct.produce;Ct.produceWithPatches.bind(Ct);Ct.setAutoFreeze.bind(Ct);Ct.setUseStrictShallowCopy.bind(Ct);Ct.applyPatches.bind(Ct);Ct.createDraft.bind(Ct);Ct.finishDraft.bind(Ct);function k_(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function O_(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function T_(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var qh=e=>Array.isArray(e)?e:[e];function P_(e){const t=Array.isArray(e[0])?e[0]:e;return T_(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function I_(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var $_=class{constructor(e){this.value=e}deref(){return this.value}},A_=typeof WeakRef<"u"?WeakRef:$_,M_=0,Hh=1;function Ni(){return{s:M_,v:void 0,o:null,p:null}}function Of(e,t={}){let n=Ni();const{resultEqualityCheck:r}=t;let o,s=0;function i(){var f;let l=n;const{length:c}=arguments;for(let p=0,y=c;p<y;p++){const m=arguments[p];if(typeof m=="function"||typeof m=="object"&&m!==null){let h=l.o;h===null&&(l.o=h=new WeakMap);const x=h.get(m);x===void 0?(l=Ni(),h.set(m,l)):l=x}else{let h=l.p;h===null&&(l.p=h=new Map);const x=h.get(m);x===void 0?(l=Ni(),h.set(m,l)):l=x}}const u=l;let d;if(l.s===Hh?d=l.v:(d=e.apply(null,arguments),s++),u.s=Hh,r){const p=((f=o==null?void 0:o.deref)==null?void 0:f.call(o))??o;p!=null&&r(p,d)&&(d=p,s!==0&&s--),o=typeof d=="object"&&d!==null||typeof d=="function"?new A_(d):d}return u.v=d,d}return i.clearCache=()=>{n=Ni(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function Gy(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let s=0,i=0,l,c={},u=o.pop();typeof u=="object"&&(c=u,u=o.pop()),k_(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...c},{memoize:f,memoizeOptions:p=[],argsMemoize:y=Of,argsMemoizeOptions:m=[],devModeChecks:h={}}=d,x=qh(p),g=qh(m),v=P_(o),b=f(function(){return s++,u.apply(null,arguments)},...x),S=y(function(){i++;const C=I_(v,arguments);return l=b.apply(null,C),l},...g);return Object.assign(S,{resultFunc:u,memoizedResultFunc:b,dependencies:v,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>l,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var D_=Gy(Of),L_=Object.assign((e,t=D_)=>{O_(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((i,l,c)=>(i[n[c]]=l,i),{}))},{withTypes:()=>L_});function Yy(e){return({dispatch:n,getState:r})=>o=>s=>typeof s=="function"?s(n,r,e):o(s)}var F_=Yy(),U_=Yy,V_=(...e)=>{const t=Gy(...e),n=Object.assign((...r)=>{const o=t(...r),s=(i,...l)=>o(lr(i)?Wy(i):i,...l);return Object.assign(s,o),s},{withTypes:()=>n});return n};V_(Of);var B_=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Va:Va.apply(null,arguments)},z_=e=>e&&typeof e.match=="function";function Nn(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(ht(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>x_(r)&&r.type===e,n}var Qy=class cs extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,cs.prototype)}static get[Symbol.species](){return cs}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new cs(...t[0].concat(this)):new cs(...t.concat(this))}};function Wh(e){return $n(e)?Tt(e,()=>{}):e}function Kh(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(ht(10));const r=n.insert(t,e);return e.set(t,r),r}function q_(e){return typeof e=="boolean"}var H_=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let i=new Qy;return n&&(q_(n)?i.push(F_):i.push(U_(n.extraArgument))),i},W_="RTK_autoBatch",Xy=e=>t=>{setTimeout(t,e)},K_=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Xy(10),G_=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,s=!1,i=!1;const l=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?K_:e.type==="callback"?e.queueNotification:Xy(e.timeout),u=()=>{i=!1,s&&(s=!1,l.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>o&&d(),p=r.subscribe(f);return l.add(d),()=>{p(),l.delete(d)}},dispatch(d){var f;try{return o=!((f=d==null?void 0:d.meta)!=null&&f[W_]),s=!o,s&&(i||(i=!0,c(u))),r.dispatch(d)}finally{o=!0}}})},Y_=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new Qy(e);return r&&o.push(G_(typeof r=="object"?r:void 0)),o},Q_=!0;function Mo(e){const t=H_(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:s=void 0,enhancers:i=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(Rf(n))l=v_(n);else throw new Error(ht(1));let c;typeof r=="function"?c=r(t):c=t();let u=Va;o&&(u=B_({trace:!Q_,...typeof o=="object"&&o}));const d=y_(...c),f=Y_(d);let p=typeof i=="function"?i(f):f();const y=u(...p);return Uy(l,s,y)}function Zy(e){const t={},n=[];let r;const o={addCase(s,i){const l=typeof s=="string"?s:s.type;if(!l)throw new Error(ht(28));if(l in t)throw new Error(ht(29));return t[l]=i,o},addMatcher(s,i){return n.push({matcher:s,reducer:i}),o},addDefaultCase(s){return r=s,o}};return e(o),[t,n,r]}function X_(e){return typeof e=="function"}function Z_(e,t){let[n,r,o]=Zy(t),s;if(X_(e))s=()=>Wh(e());else{const l=Wh(e);s=()=>l}function i(l=s(),c){let u=[n[c.type],...r.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[o]),u.reduce((d,f)=>{if(f)if(lr(d)){const y=f(d,c);return y===void 0?d:y}else{if($n(d))return Tt(d,p=>f(p,c));{const p=f(d,c);if(p===void 0){if(d===null)return d;throw new Error(ht(9))}return p}}return d},l)}return i.getInitialState=s,i}var J_="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jy=(e=21)=>{let t="",n=e;for(;n--;)t+=J_[Math.random()*64|0];return t},eC=(e,t)=>z_(e)?e.match(t):e(t);function tC(...e){return t=>e.some(n=>eC(n,t))}var nC=["name","message","stack","code"],Tc=class{constructor(e,t){tc(this,"_type");this.payload=e,this.meta=t}},Gh=class{constructor(e,t){tc(this,"_type");this.payload=e,this.meta=t}},rC=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of nC)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Qe=(()=>{function e(t,n,r){const o=Nn(t+"/fulfilled",(c,u,d,f)=>({payload:c,meta:{...f||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),s=Nn(t+"/pending",(c,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:c,requestStatus:"pending"}})),i=Nn(t+"/rejected",(c,u,d,f,p)=>({payload:f,error:(r&&r.serializeError||rC)(c||"Rejected"),meta:{...p||{},arg:d,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function l(c){return(u,d,f)=>{const p=r!=null&&r.idGenerator?r.idGenerator(c):Jy(),y=new AbortController;let m,h;function x(v){h=v,y.abort()}const g=async function(){var S,_;let v;try{let C=(S=r==null?void 0:r.condition)==null?void 0:S.call(r,c,{getState:d,extra:f});if(sC(C)&&(C=await C),C===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const j=new Promise((E,N)=>{m=()=>{N({name:"AbortError",message:h||"Aborted"})},y.signal.addEventListener("abort",m)});u(s(p,c,(_=r==null?void 0:r.getPendingMeta)==null?void 0:_.call(r,{requestId:p,arg:c},{getState:d,extra:f}))),v=await Promise.race([j,Promise.resolve(n(c,{dispatch:u,getState:d,extra:f,requestId:p,signal:y.signal,abort:x,rejectWithValue:(E,N)=>new Tc(E,N),fulfillWithValue:(E,N)=>new Gh(E,N)})).then(E=>{if(E instanceof Tc)throw E;return E instanceof Gh?o(E.payload,p,c,E.meta):o(E,p,c)})])}catch(C){v=C instanceof Tc?i(null,p,c,C.payload,C.meta):i(C,p,c)}finally{m&&y.signal.removeEventListener("abort",m)}return r&&!r.dispatchConditionRejection&&i.match(v)&&v.meta.condition||u(v),v}();return Object.assign(g,{abort:x,requestId:p,arg:c,unwrap(){return g.then(oC)}})}}return Object.assign(l,{pending:s,rejected:i,fulfilled:o,settled:tC(i,o),typePrefix:t})}return e.withTypes=()=>e,e})();function oC(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function sC(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var iC=Symbol.for("rtk-slice-createasyncthunk");function aC(e,t){return`${e}/${t}`}function lC({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[iC];return function(o){const{name:s,reducerPath:i=s}=o;if(!s)throw new Error(ht(11));typeof process<"u";const l=(typeof o.reducers=="function"?o.reducers(uC()):o.reducers)||{},c=Object.keys(l),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(b,S){const _=typeof b=="string"?b:b.type;if(!_)throw new Error(ht(12));if(_ in u.sliceCaseReducersByType)throw new Error(ht(13));return u.sliceCaseReducersByType[_]=S,d},addMatcher(b,S){return u.sliceMatchers.push({matcher:b,reducer:S}),d},exposeAction(b,S){return u.actionCreators[b]=S,d},exposeCaseReducer(b,S){return u.sliceCaseReducersByName[b]=S,d}};c.forEach(b=>{const S=l[b],_={reducerName:b,type:aC(s,b),createNotation:typeof o.reducers=="function"};fC(S)?hC(_,S,d,t):dC(_,S,d)});function f(){const[b={},S=[],_=void 0]=typeof o.extraReducers=="function"?Zy(o.extraReducers):[o.extraReducers],C={...b,...u.sliceCaseReducersByType};return Z_(o.initialState,j=>{for(let E in C)j.addCase(E,C[E]);for(let E of u.sliceMatchers)j.addMatcher(E.matcher,E.reducer);for(let E of S)j.addMatcher(E.matcher,E.reducer);_&&j.addDefaultCase(_)})}const p=b=>b,y=new Map;let m;function h(b,S){return m||(m=f()),m(b,S)}function x(){return m||(m=f()),m.getInitialState()}function g(b,S=!1){function _(j){let E=j[b];return typeof E>"u"&&S&&(E=x()),E}function C(j=p){const E=Kh(y,S,{insert:()=>new WeakMap});return Kh(E,j,{insert:()=>{const N={};for(const[R,O]of Object.entries(o.selectors??{}))N[R]=cC(O,j,x,S);return N}})}return{reducerPath:b,getSelectors:C,get selectors(){return C(_)},selectSlice:_}}const v={name:s,reducer:h,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:x,...g(i),injectInto(b,{reducerPath:S,..._}={}){const C=S??i;return b.inject({reducerPath:C,reducer:h},_),{...v,...g(C,!0)}}};return v}}function cC(e,t,n,r){function o(s,...i){let l=t(s);return typeof l>"u"&&r&&(l=n()),e(l,...i)}return o.unwrapped=e,o}var ri=lC();function uC(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function dC({type:e,reducerName:t,createNotation:n},r,o){let s,i;if("reducer"in r){if(n&&!pC(r))throw new Error(ht(17));s=r.reducer,i=r.prepare}else s=r;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,i?Nn(e,i):Nn(e))}function fC(e){return e._reducerDefinitionType==="asyncThunk"}function pC(e){return e._reducerDefinitionType==="reducerWithPrepare"}function hC({type:e,reducerName:t},n,r,o){if(!o)throw new Error(ht(18));const{payloadCreator:s,fulfilled:i,pending:l,rejected:c,settled:u,options:d}=n,f=o(e,s,d);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),l&&r.addCase(f.pending,l),c&&r.addCase(f.rejected,c),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:i||ki,pending:l||ki,rejected:c||ki,settled:u||ki})}function ki(){}var mC=(e,t)=>{if(typeof e!="function")throw new Error(ht(32))},Tf="listenerMiddleware",gC=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:s}=e;if(t)o=Nn(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(ht(21));return mC(s),{predicate:o,type:t,effect:s}},vC=Object.assign(e=>{const{type:t,predicate:n,effect:r}=gC(e);return{id:Jy(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(ht(22))}}},{withTypes:()=>vC}),yC=Object.assign(Nn(`${Tf}/add`),{withTypes:()=>yC});Nn(`${Tf}/removeAll`);var xC=Object.assign(Nn(`${Tf}/remove`),{withTypes:()=>xC});function ht(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ex={exports:{}},tx={};/**
249
41
  * @license React
250
42
  * use-sync-external-store-with-selector.production.min.js
251
43
  *
@@ -253,59 +45,26 @@ Take a look at the reducer(s) handling this action type: ${A.type}.
253
45
  *
254
46
  * This source code is licensed under the MIT license found in the
255
47
  * LICENSE file in the root directory of this source tree.
256
- */var xI;function aU(){if(xI)return FE;xI=1;var t=nf();function r(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var i=typeof Object.is=="function"?Object.is:r,l=t.useSyncExternalStore,u=t.useRef,d=t.useEffect,m=t.useMemo,h=t.useDebugValue;return FE.useSyncExternalStoreWithSelector=function(y,x,C,w,R){var A=u(null);if(A.current===null){var N={hasValue:!1,value:null};A.current=N}else N=A.current;A=m(function(){function I(F){if(!M){if(M=!0,P=F,F=w(F),R!==void 0&&N.hasValue){var z=N.value;if(R(z,F))return V=z}return V=F}if(z=V,i(P,F))return z;var X=w(F);return R!==void 0&&R(z,X)?z:(P=F,V=X)}var M=!1,P,V,U=C===void 0?null:C;return[function(){return I(x())},U===null?void 0:function(){return I(U())}]},[x,C,w,R]);var _=l(y,A[0],A[1]);return d(function(){N.hasValue=!0,N.value=_},[_]),h(_),_},FE}var VE={},CI;function iU(){if(CI)return VE;CI=1;var t={};/**
257
- * @license React
258
- * use-sync-external-store-with-selector.development.js
259
- *
260
- * Copyright (c) Facebook, Inc. and its affiliates.
261
- *
262
- * This source code is licensed under the MIT license found in the
263
- * LICENSE file in the root directory of this source tree.
264
- */return t.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=nf();function i(C,w){return C===w&&(C!==0||1/C===1/w)||C!==C&&w!==w}var l=typeof Object.is=="function"?Object.is:i,u=r.useSyncExternalStore,d=r.useRef,m=r.useEffect,h=r.useMemo,y=r.useDebugValue;function x(C,w,R,A,N){var _=d(null),I;_.current===null?(I={hasValue:!1,value:null},_.current=I):I=_.current;var M=h(function(){var F=!1,z,X,Y=function(ae){if(!F){F=!0,z=ae;var we=A(ae);if(N!==void 0&&I.hasValue){var ge=I.value;if(N(ge,we))return X=ge,ge}return X=we,we}var xe=z,je=X;if(l(xe,ae))return je;var Le=A(ae);return N!==void 0&&N(je,Le)?je:(z=ae,X=Le,Le)},ce=R===void 0?null:R,ie=function(){return Y(w())},me=ce===null?void 0:function(){return Y(ce())};return[ie,me]},[w,R,A,N]),P=M[0],V=M[1],U=u(C,P,V);return m(function(){I.hasValue=!0,I.value=U},[U]),y(U),U}VE.useSyncExternalStoreWithSelector=x,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),VE}var oU={};oU.NODE_ENV==="production"?Sw.exports=aU():Sw.exports=iU();var sU=Sw.exports,ds={},Kt="default"in gx?ir:gx,SI=Symbol.for("react-redux-context"),EI=typeof globalThis<"u"?globalThis:{};function lU(){if(!Kt.createContext)return{};const t=EI[SI]??(EI[SI]=new Map);let r=t.get(Kt.createContext);return r||(r=Kt.createContext(null),ds.NODE_ENV!=="production"&&(r.displayName="ReactRedux"),t.set(Kt.createContext,r)),r}var au=lU(),HA=()=>{throw new Error("uSES not initialized!")};function fR(t=au){return function(){const i=Kt.useContext(t);if(ds.NODE_ENV!=="production"&&!i)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return i}}var GA=fR(),WA=HA,uU=t=>{WA=t},cU=(t,r)=>t===r;function dU(t=au){const r=t===au?GA:fR(t),i=(l,u={})=>{const{equalityFn:d=cU,devModeChecks:m={}}=typeof u=="function"?{equalityFn:u}:u;if(ds.NODE_ENV!=="production"){if(!l)throw new Error("You must pass a selector to useSelector");if(typeof l!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof d!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:h,subscription:y,getServerState:x,stabilityCheck:C,identityFunctionCheck:w}=r(),R=Kt.useRef(!0),A=Kt.useCallback({[l.name](_){const I=l(_);if(ds.NODE_ENV!=="production"){const{identityFunctionCheck:M,stabilityCheck:P}={stabilityCheck:C,identityFunctionCheck:w,...m};if(P==="always"||P==="once"&&R.current){const V=l(_);if(!d(I,V)){let U;try{throw new Error}catch(F){({stack:U}=F)}console.warn("Selector "+(l.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
265
- Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:_,selected:I,selected2:V,stack:U})}}if((M==="always"||M==="once"&&R.current)&&I===_){let V;try{throw new Error}catch(U){({stack:V}=U)}console.warn("Selector "+(l.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
266
- Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:V})}R.current&&(R.current=!1)}return I}}[l.name],[l,C,m.stabilityCheck]),N=WA(y.addNestedSub,h.getState,x||h.getState,A,d);return Kt.useDebugValue(N),N};return Object.assign(i,{withTypes:()=>i}),i}var Tn=dU(),fU=Symbol.for("react.element"),pU=Symbol.for("react.portal"),XA=Symbol.for("react.fragment"),YA=Symbol.for("react.strict_mode"),ZA=Symbol.for("react.profiler"),qA=Symbol.for("react.provider"),pR=Symbol.for("react.context"),hU=Symbol.for("react.server_context"),hR=Symbol.for("react.forward_ref"),JA=Symbol.for("react.suspense"),QA=Symbol.for("react.suspense_list"),Gx=Symbol.for("react.memo"),KA=Symbol.for("react.lazy"),vU=Symbol.for("react.offscreen"),mU=Symbol.for("react.client.reference"),gU=hR,yU=Gx;function bU(t){return typeof t=="string"||typeof t=="function"||t===XA||t===ZA||t===YA||t===JA||t===QA||t===vU||typeof t=="object"&&t!==null&&(t.$$typeof===KA||t.$$typeof===Gx||t.$$typeof===qA||t.$$typeof===pR||t.$$typeof===hR||t.$$typeof===mU||t.getModuleId!==void 0)}function eO(t){if(typeof t=="object"&&t!==null){const r=t.$$typeof;switch(r){case fU:{const i=t.type;switch(i){case XA:case ZA:case YA:case JA:case QA:return i;default:{const l=i&&i.$$typeof;switch(l){case hU:case pR:case hR:case KA:case Gx:case qA:return l;default:return r}}}}case pU:return r}}}function xU(t){return eO(t)===pR}function CU(t){return eO(t)===Gx}function vR(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function BE(t,r){if(t)(r==="mapStateToProps"||r==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(t,"dependsOnOwnProps")||vR(`The selector for ${r} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${r} in connect.`)}function SU(t,r,i){BE(t,"mapStateToProps"),BE(r,"mapDispatchToProps"),BE(i,"mergeProps")}function EU(t,r,i,l,{areStatesEqual:u,areOwnPropsEqual:d,areStatePropsEqual:m}){let h=!1,y,x,C,w,R;function A(P,V){return y=P,x=V,C=t(y,x),w=r(l,x),R=i(C,w,x),h=!0,R}function N(){return C=t(y,x),r.dependsOnOwnProps&&(w=r(l,x)),R=i(C,w,x),R}function _(){return t.dependsOnOwnProps&&(C=t(y,x)),r.dependsOnOwnProps&&(w=r(l,x)),R=i(C,w,x),R}function I(){const P=t(y,x),V=!m(P,C);return C=P,V&&(R=i(C,w,x)),R}function M(P,V){const U=!d(V,x),F=!u(P,y,V,x);return y=P,x=V,U&&F?N():U?_():F?I():R}return function(V,U){return h?M(V,U):A(V,U)}}function wU(t,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:l,...u}){const d=r(t,u),m=i(t,u),h=l(t,u);return ds.NODE_ENV!=="production"&&SU(d,m,h),EU(d,m,h,t,u)}function RU(t,r){const i={};for(const l in t){const u=t[l];typeof u=="function"&&(i[l]=(...d)=>r(u(...d)))}return i}function _U(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);if(r===null)return!0;let i=r;for(;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return r===i}function tO(t,r,i){_U(t)||vR(`${i}() in ${r} must return a plain object. Instead received ${t}.`)}function Ew(t){return function(i){const l=t(i);function u(){return l}return u.dependsOnOwnProps=!1,u}}function wI(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function nO(t,r){return function(l,{displayName:u}){const d=function(h,y){return d.dependsOnOwnProps?d.mapToProps(h,y):d.mapToProps(h,void 0)};return d.dependsOnOwnProps=!0,d.mapToProps=function(h,y){d.mapToProps=t,d.dependsOnOwnProps=wI(t);let x=d(h,y);return typeof x=="function"&&(d.mapToProps=x,d.dependsOnOwnProps=wI(x),x=d(h,y)),ds.NODE_ENV!=="production"&&tO(x,u,r),x},d}}function mR(t,r){return(i,l)=>{throw new Error(`Invalid value of type ${typeof t} for ${r} argument when connecting component ${l.wrappedComponentName}.`)}}function TU(t){return t&&typeof t=="object"?Ew(r=>RU(t,r)):t?typeof t=="function"?nO(t,"mapDispatchToProps"):mR(t,"mapDispatchToProps"):Ew(r=>({dispatch:r}))}function NU(t){return t?typeof t=="function"?nO(t,"mapStateToProps"):mR(t,"mapStateToProps"):Ew(()=>({}))}function IU(t,r,i){return{...i,...t,...r}}function jU(t){return function(i,{displayName:l,areMergedPropsEqual:u}){let d=!1,m;return function(y,x,C){const w=t(y,x,C);return d?u(w,m)||(m=w):(d=!0,m=w,ds.NODE_ENV!=="production"&&tO(m,l,"mergeProps")),m}}}function AU(t){return t?typeof t=="function"?jU(t):mR(t,"mergeProps"):()=>IU}function OU(t){t()}function DU(){let t=null,r=null;return{clear(){t=null,r=null},notify(){OU(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){const i=[];let l=t;for(;l;)i.push(l),l=l.next;return i},subscribe(i){let l=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:t=u,function(){!l||t===null||(l=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:t=u.next)}}}}var RI={notify(){},get:()=>[]};function rO(t,r){let i,l=RI,u=0,d=!1;function m(_){C();const I=l.subscribe(_);let M=!1;return()=>{M||(M=!0,I(),w())}}function h(){l.notify()}function y(){N.onStateChange&&N.onStateChange()}function x(){return d}function C(){u++,i||(i=r?r.addNestedSub(y):t.subscribe(y),l=DU())}function w(){u--,i&&u===0&&(i(),i=void 0,l.clear(),l=RI)}function R(){d||(d=!0,C())}function A(){d&&(d=!1,w())}const N={addNestedSub:m,notifyNestedSubs:h,handleChangeWrapper:y,isSubscribed:x,trySubscribe:R,tryUnsubscribe:A,getListeners:()=>l};return N}var kU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yx=kU?Kt.useLayoutEffect:Kt.useEffect;function _I(t,r){return t===r?t!==0||r!==0||1/t===1/r:t!==t&&r!==r}function $E(t,r){if(_I(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;const i=Object.keys(t),l=Object.keys(r);if(i.length!==l.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(r,i[u])||!_I(t[i[u]],r[i[u]]))return!1;return!0}var MU={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},LU={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},PU={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},aO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},FU={[gU]:PU,[yU]:aO};function TI(t){return CU(t)?aO:FU[t.$$typeof]||MU}var VU=Object.defineProperty,BU=Object.getOwnPropertyNames,NI=Object.getOwnPropertySymbols,$U=Object.getOwnPropertyDescriptor,zU=Object.getPrototypeOf,II=Object.prototype;function ww(t,r){if(typeof r!="string"){if(II){const d=zU(r);d&&d!==II&&ww(t,d)}let i=BU(r);NI&&(i=i.concat(NI(r)));const l=TI(t),u=TI(r);for(let d=0;d<i.length;++d){const m=i[d];if(!LU[m]&&!(u&&u[m])&&!(l&&l[m])){const h=$U(r,m);try{VU(t,m,h)}catch{}}}}return t}var iO=HA,UU=t=>{iO=t},HU=[null,null],GU=t=>{try{return JSON.stringify(t)}catch{return String(t)}};function WU(t,r,i){yx(()=>t(...r),i)}function XU(t,r,i,l,u,d){t.current=l,i.current=!1,u.current&&(u.current=null,d())}function YU(t,r,i,l,u,d,m,h,y,x,C){if(!t)return()=>{};let w=!1,R=null;const A=()=>{if(w||!h.current)return;const _=r.getState();let I,M;try{I=l(_,u.current)}catch(P){M=P,R=P}M||(R=null),I===d.current?m.current||x():(d.current=I,y.current=I,m.current=!0,C())};return i.onStateChange=A,i.trySubscribe(),A(),()=>{if(w=!0,i.tryUnsubscribe(),i.onStateChange=null,R)throw R}}function ZU(t,r){return t===r}var jI=!1;function qU(t,r,i,{pure:l,areStatesEqual:u=ZU,areOwnPropsEqual:d=$E,areStatePropsEqual:m=$E,areMergedPropsEqual:h=$E,forwardRef:y=!1,context:x=au}={}){ds.NODE_ENV!=="production"&&l!==void 0&&!jI&&(jI=!0,vR('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const C=x,w=NU(t),R=TU(r),A=AU(i),N=!!t;return I=>{if(ds.NODE_ENV!=="production"&&!bU(I))throw new Error(`You must pass a component to the function returned by connect. Instead received ${GU(I)}`);const M=I.displayName||I.name||"Component",P=`Connect(${M})`,V={shouldHandleStateChanges:N,displayName:P,wrappedComponentName:M,WrappedComponent:I,initMapStateToProps:w,initMapDispatchToProps:R,initMergeProps:A,areStatesEqual:u,areStatePropsEqual:m,areOwnPropsEqual:d,areMergedPropsEqual:h};function U(X){const[Y,ce,ie]=Kt.useMemo(()=>{const{reactReduxForwardedRef:qe,...Ae}=X;return[X.context,qe,Ae]},[X]),me=Kt.useMemo(()=>{let qe=C;if(Y!=null&&Y.Consumer&&ds.NODE_ENV!=="production"){if(!xU(Kt.createElement(Y.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");qe=Y}return qe},[Y,C]),ae=Kt.useContext(me),we=!!X.store&&!!X.store.getState&&!!X.store.dispatch,ge=!!ae&&!!ae.store;if(ds.NODE_ENV!=="production"&&!we&&!ge)throw new Error(`Could not find "store" in the context of "${P}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${P} in connect options.`);const xe=we?X.store:ae.store,je=ge?ae.getServerState:xe.getState,Le=Kt.useMemo(()=>wU(xe.dispatch,V),[xe]),[re,De]=Kt.useMemo(()=>{if(!N)return HU;const qe=rO(xe,we?void 0:ae.subscription),Ae=qe.notifyNestedSubs.bind(qe);return[qe,Ae]},[xe,we,ae]),G=Kt.useMemo(()=>we?ae:{...ae,subscription:re},[we,ae,re]),Z=Kt.useRef(),ne=Kt.useRef(ie),be=Kt.useRef(),Ee=Kt.useRef(!1);Kt.useRef(!1);const _e=Kt.useRef(!1),Ne=Kt.useRef();yx(()=>(_e.current=!0,()=>{_e.current=!1}),[]);const ke=Kt.useMemo(()=>()=>be.current&&ie===ne.current?be.current:Le(xe.getState(),ie),[xe,ie]),Oe=Kt.useMemo(()=>Ae=>re?YU(N,xe,re,Le,ne,Z,Ee,_e,be,De,Ae):()=>{},[re]);WU(XU,[ne,Z,Ee,ie,be,De]);let ve;try{ve=iO(Oe,ke,je?()=>Le(je(),ie):ke)}catch(qe){throw Ne.current&&(qe.message+=`
48
+ */var oi=w;function bC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wC=typeof Object.is=="function"?Object.is:bC,SC=oi.useSyncExternalStore,_C=oi.useRef,CC=oi.useEffect,jC=oi.useMemo,EC=oi.useDebugValue;tx.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var s=_C(null);if(s.current===null){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=jC(function(){function c(y){if(!u){if(u=!0,d=y,y=r(y),o!==void 0&&i.hasValue){var m=i.value;if(o(m,y))return f=m}return f=y}if(m=f,wC(d,y))return m;var h=r(y);return o!==void 0&&o(m,h)?m:(d=y,f=h)}var u=!1,d,f,p=n===void 0?null:n;return[function(){return c(t())},p===null?void 0:function(){return c(p())}]},[t,n,r,o]);var l=SC(e,s[0],s[1]);return CC(function(){i.hasValue=!0,i.value=l},[l]),EC(l),l};ex.exports=tx;var RC=ex.exports,oe="default"in ma?Se:ma,Yh=Symbol.for("react-redux-context"),Qh=typeof globalThis<"u"?globalThis:{};function NC(){if(!oe.createContext)return{};const e=Qh[Yh]??(Qh[Yh]=new Map);let t=e.get(oe.createContext);return t||(t=oe.createContext(null),e.set(oe.createContext,t)),t}var An=NC(),nx=()=>{throw new Error("uSES not initialized!")};function Pf(e=An){return function(){return oe.useContext(e)}}var rx=Pf(),ox=nx,kC=e=>{ox=e},OC=(e,t)=>e===t;function TC(e=An){const t=e===An?rx:Pf(e),n=(r,o={})=>{const{equalityFn:s=OC,devModeChecks:i={}}=typeof o=="function"?{equalityFn:o}:o,{store:l,subscription:c,getServerState:u,stabilityCheck:d,identityFunctionCheck:f}=t();oe.useRef(!0);const p=oe.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,i.stabilityCheck]),y=ox(c.addNestedSub,l.getState,u||l.getState,p,s);return oe.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var fe=TC(),PC=Symbol.for("react.element"),IC=Symbol.for("react.portal"),$C=Symbol.for("react.fragment"),AC=Symbol.for("react.strict_mode"),MC=Symbol.for("react.profiler"),DC=Symbol.for("react.provider"),LC=Symbol.for("react.context"),FC=Symbol.for("react.server_context"),sx=Symbol.for("react.forward_ref"),UC=Symbol.for("react.suspense"),VC=Symbol.for("react.suspense_list"),If=Symbol.for("react.memo"),BC=Symbol.for("react.lazy"),zC=sx,qC=If;function HC(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case PC:{const n=e.type;switch(n){case $C:case MC:case AC:case UC:case VC:return n;default:{const r=n&&n.$$typeof;switch(r){case FC:case LC:case sx:case BC:case If:case DC:return r;default:return t}}}}case IC:return t}}}function WC(e){return HC(e)===If}function KC(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:s,areStatePropsEqual:i}){let l=!1,c,u,d,f,p;function y(v,b){return c=v,u=b,d=e(c,u),f=t(r,u),p=n(d,f,u),l=!0,p}function m(){return d=e(c,u),t.dependsOnOwnProps&&(f=t(r,u)),p=n(d,f,u),p}function h(){return e.dependsOnOwnProps&&(d=e(c,u)),t.dependsOnOwnProps&&(f=t(r,u)),p=n(d,f,u),p}function x(){const v=e(c,u),b=!i(v,d);return d=v,b&&(p=n(d,f,u)),p}function g(v,b){const S=!s(b,u),_=!o(v,c,b,u);return c=v,u=b,S&&_?m():S?h():_?x():p}return function(b,S){return l?g(b,S):y(b,S)}}function GC(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){const s=t(e,o),i=n(e,o),l=r(e,o);return KC(s,i,l,e,o)}function YC(e,t){const n={};for(const r in e){const o=e[r];typeof o=="function"&&(n[r]=(...s)=>t(o(...s)))}return n}function Qu(e){return function(n){const r=e(n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function Xh(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function ix(e,t){return function(r,{displayName:o}){const s=function(l,c){return s.dependsOnOwnProps?s.mapToProps(l,c):s.mapToProps(l,void 0)};return s.dependsOnOwnProps=!0,s.mapToProps=function(l,c){s.mapToProps=e,s.dependsOnOwnProps=Xh(e);let u=s(l,c);return typeof u=="function"&&(s.mapToProps=u,s.dependsOnOwnProps=Xh(u),u=s(l,c)),u},s}}function $f(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function QC(e){return e&&typeof e=="object"?Qu(t=>YC(e,t)):e?typeof e=="function"?ix(e):$f(e,"mapDispatchToProps"):Qu(t=>({dispatch:t}))}function XC(e){return e?typeof e=="function"?ix(e):$f(e,"mapStateToProps"):Qu(()=>({}))}function ZC(e,t,n){return{...n,...e,...t}}function JC(e){return function(n,{displayName:r,areMergedPropsEqual:o}){let s=!1,i;return function(c,u,d){const f=e(c,u,d);return s?o(f,i)||(i=f):(s=!0,i=f),i}}}function ej(e){return e?typeof e=="function"?JC(e):$f(e,"mergeProps"):()=>ZC}function tj(e){e()}function nj(){let e=null,t=null;return{clear(){e=null,t=null},notify(){tj(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Zh={notify(){},get:()=>[]};function ax(e,t){let n,r=Zh,o=0,s=!1;function i(h){d();const x=r.subscribe(h);let g=!1;return()=>{g||(g=!0,x(),f())}}function l(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function u(){return s}function d(){o++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=nj())}function f(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=Zh)}function p(){s||(s=!0,d())}function y(){s&&(s=!1,f())}const m={addNestedSub:i,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:u,trySubscribe:p,tryUnsubscribe:y,getListeners:()=>r};return m}var rj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qa=rj?oe.useLayoutEffect:oe.useEffect;function Jh(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Pc(e,t){if(Jh(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!Jh(e[n[o]],t[n[o]]))return!1;return!0}var oj={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},sj={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ij={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lx={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},aj={[zC]:ij,[qC]:lx};function em(e){return WC(e)?lx:aj[e.$$typeof]||oj}var lj=Object.defineProperty,cj=Object.getOwnPropertyNames,tm=Object.getOwnPropertySymbols,uj=Object.getOwnPropertyDescriptor,dj=Object.getPrototypeOf,nm=Object.prototype;function Xu(e,t){if(typeof t!="string"){if(nm){const s=dj(t);s&&s!==nm&&Xu(e,s)}let n=cj(t);tm&&(n=n.concat(tm(t)));const r=em(e),o=em(t);for(let s=0;s<n.length;++s){const i=n[s];if(!sj[i]&&!(o&&o[i])&&!(r&&r[i])){const l=uj(t,i);try{lj(e,i,l)}catch{}}}}return e}var cx=nx,fj=e=>{cx=e},pj=[null,null];function hj(e,t,n){qa(()=>e(...t),n)}function mj(e,t,n,r,o,s){e.current=r,n.current=!1,o.current&&(o.current=null,s())}function gj(e,t,n,r,o,s,i,l,c,u,d){if(!e)return()=>{};let f=!1,p=null;const y=()=>{if(f||!l.current)return;const h=t.getState();let x,g;try{x=r(h,o.current)}catch(v){g=v,p=v}g||(p=null),x===s.current?i.current||u():(s.current=x,c.current=x,i.current=!0,d())};return n.onStateChange=y,n.trySubscribe(),y(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function vj(e,t){return e===t}function yj(e,t,n,{pure:r,areStatesEqual:o=vj,areOwnPropsEqual:s=Pc,areStatePropsEqual:i=Pc,areMergedPropsEqual:l=Pc,forwardRef:c=!1,context:u=An}={}){const d=u,f=XC(e),p=QC(t),y=ej(n),m=!!e;return x=>{const g=x.displayName||x.name||"Component",v=`Connect(${g})`,b={shouldHandleStateChanges:m,displayName:v,wrappedComponentName:g,WrappedComponent:x,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:y,areStatesEqual:o,areStatePropsEqual:i,areOwnPropsEqual:s,areMergedPropsEqual:l};function S(j){const[E,N,R]=oe.useMemo(()=>{const{reactReduxForwardedRef:ee,...Te}=j;return[j.context,ee,Te]},[j]),O=oe.useMemo(()=>{let ee=d;return E!=null&&E.Consumer,ee},[E,d]),k=oe.useContext(O),P=!!j.store&&!!j.store.getState&&!!j.store.dispatch,D=!!k&&!!k.store,L=P?j.store:k.store,V=D?k.getServerState:L.getState,Q=oe.useMemo(()=>GC(L.dispatch,b),[L]),[T,F]=oe.useMemo(()=>{if(!m)return pj;const ee=ax(L,P?void 0:k.subscription),Te=ee.notifyNestedSubs.bind(ee);return[ee,Te]},[L,P,k]),A=oe.useMemo(()=>P?k:{...k,subscription:T},[P,k,T]),W=oe.useRef(),U=oe.useRef(R),Y=oe.useRef(),Z=oe.useRef(!1);oe.useRef(!1);const J=oe.useRef(!1),X=oe.useRef();qa(()=>(J.current=!0,()=>{J.current=!1}),[]);const se=oe.useMemo(()=>()=>Y.current&&R===U.current?Y.current:Q(L.getState(),R),[L,R]),pe=oe.useMemo(()=>Te=>T?gj(m,L,T,Q,U,W,Z,J,Y,F,Te):()=>{},[T]);hj(mj,[U,W,Z,R,Y,F]);let M;try{M=cx(pe,se,V?()=>Q(V(),R):se)}catch(ee){throw X.current&&(ee.message+=`
267
49
  The error may be correlated with this previous error:
268
- ${Ne.current.stack}
50
+ ${X.current.stack}
269
51
 
270
- `),qe}yx(()=>{Ne.current=void 0,be.current=void 0,Z.current=ve});const Ie=Kt.useMemo(()=>Kt.createElement(I,{...ve,ref:ce}),[ce,I,ve]);return Kt.useMemo(()=>N?Kt.createElement(me.Provider,{value:G},Ie):Ie,[me,Ie,G])}const z=Kt.memo(U);if(z.WrappedComponent=I,z.displayName=U.displayName=P,y){const Y=Kt.forwardRef(function(ie,me){return Kt.createElement(z,{...ie,reactReduxForwardedRef:me})});return Y.displayName=P,Y.WrappedComponent=I,ww(Y,I)}return ww(z,I)}}var ps=qU;function JU({store:t,context:r,children:i,serverState:l,stabilityCheck:u="once",identityFunctionCheck:d="once"}){const m=Kt.useMemo(()=>{const x=rO(t);return{store:t,subscription:x,getServerState:l?()=>l:void 0,stabilityCheck:u,identityFunctionCheck:d}},[t,l,u,d]),h=Kt.useMemo(()=>t.getState(),[t]);yx(()=>{const{subscription:x}=m;return x.onStateChange=x.notifyNestedSubs,x.trySubscribe(),h!==t.getState()&&x.notifyNestedSubs(),()=>{x.tryUnsubscribe(),x.onStateChange=void 0}},[m,h]);const y=r||au;return Kt.createElement(y.Provider,{value:m},i)}var rf=JU;function oO(t=au){const r=t===au?GA:fR(t),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var QU=oO();function KU(t=au){const r=t===au?QU:oO(t),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var ai=KU();uU(sU.useSyncExternalStoreWithSelector);UU(k.useSyncExternalStore);const Ks="https://allocations.access-ci.org",qt={creditAlertThreshold:1e3,resourceTypeIcons:{credit:"cash-coin",compute:"cpu-fill",storage:"hdd-fill",program:"person-square"},routes:{edit_request_action_path:(t,r)=>`/requests/${t}/actions/${r}/edit`,edit_request_path:t=>`/requests/${t}/edit`,how_to_path:()=>"/how-to",get_your_first_project_path:()=>`${Ks}/get-your-first-project`,profile_path:()=>`${Ks}/profile`,project_types_path:()=>`${Ks}/project-types`,projects_path:()=>`${Ks}/projects`,projects_save_users_path:()=>"/projects/save_users",renew_request_path:t=>`${Ks}/requests/${t}/renew`,request_action_path:(t,r)=>`${Ks}/requests/${t}/actions/${r}`,request_actions_path:t=>`${Ks}/requests/${t}/actions`,request_path:t=>`${Ks}/requests/${t}`,resources_path:()=>`${Ks}/resources`,search_people_path:()=>`${Ks}/search/people`,usage_detail_path:(t,r)=>`/usage/${t}/${r}`},roleIcons:{PI:"person-fill-check","Co-PI":"person-fill-add","Allocation Manager":"person-fill-gear",User:"people-fill"}},Hp=(t,r,i="round")=>{const l=Math.pow(10,r||0);return Math[i](t*l)/l},eH=t=>new Date(`${t}T00:00:00`),tH={year:"numeric",month:"short",day:"numeric"},Hd=(t,r)=>eH(t).toLocaleString("en-us",r||tH),ga=(t,{abbreviate:r=!1,decimalPlaces:i=void 0}={})=>{if(r){let l=0;for(;Math.abs(t)/Math.pow(1e3,l)>=1e3;)l+=1;const u=["","K","M","B","T","Q"][l];return`${(t/Math.pow(1e3,l)).toLocaleString("en-US",{maximumSignificantDigits:3})}${u}`}return t.toLocaleString("en-US",{maximumFractionDigits:i,minimumFractionDigits:i})},gR=(t,r)=>{if(t.startDate&&t.endDate){const u=Hd(t.startDate,r),d=Hd(t.endDate,r);return`${t.allocationType}: ${u} to ${d}`}const i=Hd(t.entryDate,r),l=t.status=="Incomplete"?"Started":"Submitted";return`${t.allocationType}: ${l} ${i}`},bc=t=>v.jsx("i",{className:`bi bi-${t}`}),Wx=t=>{const r=t.match(/^([^\(\)]+) (\(([^\)]+)\))?$/);return{full:t,short:r&&r[3]||null}},AI=t=>{const r=Wx(t.name);return r.short||r.full},bx=(t,r)=>t.isCredit>r.isCredit||t.isActive>r.isActive||AI(t)<AI(r)?-1:1,OI=(...t)=>{for(let r of t)if(r!=null)return r;return null},sO=(t,r="and",i=", ")=>t.reduce((l,u,d)=>v.jsxs(v.Fragment,{children:[l,t.length-1>d?i:` ${r} `,u]})),yR=t=>t?v.jsxs(v.Fragment,{children:[bc("check-circle")," Yes"]}):v.jsxs(v.Fragment,{children:[bc("x-circle")," No"]}),bR=t=>sO(t.users.filter(({role:r})=>["pi","co_pi","allocation_manager"].includes(r)).map(r=>`${r.firstName} ${r.lastName}`),"or"),xx=(t,r)=>r==1&&t.endsWith("s")?t.slice(0,-1):t,lO=(t,r,i)=>`1 ${xx(t,1)} = ${ga(r)} ${xx(i,r)}`,uO=t=>{let r=0,i=0;for(let l of t.resources){if(l.isBoolean)continue;let{unitCost:u}=l.exchangeRates.base;r+=l.allocated*u,i+=Math.min(l.used,l.allocated)*u}return r>0?i/r:0},Xx=[{role:"pi",name:"PI",xrasRole:"PI"},{role:"co_pi",name:"Co-PI",xrasRole:"CoPI"},{role:"allocation_manager",name:"Allocation Manager",xrasRole:"Allocation Manager"},{role:"user",name:"User",xrasRole:"User"}],cO={};for(let t of Xx)cO[t.role]=t;const Rw={};for(let{role:t,xrasRole:r}of Xx)Rw[t]=r;const _w=["info","success","secondary","warning","danger"];function Tw(t,r="total"){const i=t.exchangeRates[t.requested<=t.allocated?"base":"current"].unitCost;let l=(t.requested-t.allocated)*i;return r!="total"?l:l+t.allocated*t.exchangeRates.base.unitCost}function xR(t){t&&(qt.routes={...qt.routes,...t})}const Nw={user:{colors:["#ffc42d","#fea92c","#f98f30","#f07537"]},rp:{colors:["#48c0b9","#2e9da4","#207b8b","#1a5b6e"]}},zE={};function dO(t,r=3){let i=0;for(;t/Math.pow(1e3,i)>1e3;)i+=1;const l=t.toString().length,u=Math.pow(10,l-r);return(Math.round(t/u)*u/Math.pow(1e3,i)).toString()+["","K","M","B","T"][i]}async function nH(){return await(await fetch("https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community?type=style&token=AAPK220079f462f24fda89c27fa210c3f887EJPCECuukKD8PnCIBqktgGTKZWPlVXWjRoSsZYGkOJ12QemGItZ4liRZkcUzYyme")).json()}async function rH(t){if(zE[t])return zE[t];const r=document.location,i=`${r.protocol}//${r.host}${r.pathname}`,u=await(await fetch(`${i}/${t}`)).json();return zE[t]=u,u}function aH(t){const r=[...t.creditLines.features.map(l=>l.properties.credits)],i=[...t.rpPoints.features.map(l=>l.properties.rpCredits),...t.userPoints.features.map(l=>l.properties.userCredits)];return{lines:kI(r),points:kI(i)}}function DI({activeOrg:t,basemapStyle:r,creditLevels:i,creditType:l,geoJSON:u,organizationType:d}){const m={},h=[];if(u&&i){const x=d==="user"?"rp":"user",C=u[`${d}Points`],w=u[`${x}Points`],R=`${d}Credits`,A=`${x}Credits`;m.organizations={type:"geojson",data:C};const N={user:[],rp:[]},_=[];i.points.forEach((M,P)=>{Object.keys(Nw).forEach(V=>{N[V].push(M[1],Nw[V].colors[P])}),_.push(M[1],5*(P+1))});const I=[];if(i.lines.forEach((M,P)=>{I.push(M[1],1*(P+1))}),h.push({id:"organizations",type:"circle",source:"organizations",paint:{"circle-radius":["interpolate",["linear"],["get",R],..._],"circle-color":["interpolate",["linear"],["get",R],...N[d]],"circle-opacity":t?["match",["id"],t.id,1,.3]:1,"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),t&&l!=="allocated"){m.opp={type:"geojson",data:w};const M=["get",t.id.toString(),["get",`${A}Map`]];h.push({id:"opp",type:"circle",source:"opp",filter:["has",t.id.toString(),["get",`${A}Map`]],paint:{"circle-radius":["interpolate",["linear"],M,..._],"circle-color":["interpolate",["linear"],M,...N[x]],"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),m.credits={type:"geojson",data:u.creditLines},h.push({id:"credits",type:"line",source:"credits",filter:["==",["get",`${d}_organization_id`],t.id],paint:{"line-color":"#444444","line-opacity":.4,"line-width":["interpolate",["linear"],["get","credits"],...I]}})}}const y=r||{version:8,sources:{},layers:[]};return{...y,sources:{...y.sources,...m},layers:[...y.layers.filter(x=>x.id!=="Marine waterbody/label/2x large"),...h]}}function iH(t,r,i,l,u=20){return[...Array(u+1).keys()].map(d=>d/u).map(d=>{let m=d*(i-t)+t,h=d*(l-r)+r+Math.abs(Math.sin(d*Math.PI)*(i-t)*.1);return[m,h]})}function oH(t,r,i){const l={};return t.features.forEach(d=>l[d.id]={type:d.type,geometry:d.geometry,id:d.id,properties:{name:d.properties.name,abbr:d.properties.abbr,userCredits:0,userCreditsMap:{},rpCredits:0,rpCreditsMap:{}}},{}),{creditLines:{type:"FeatureCollection",features:r.result.filter(d=>l[d.user_organization_id]!==void 0&&(i==="allocated"||l[d.rp_organization_id]!==void 0)).map(d=>{const m=l[d.user_organization_id],h=l[d.rp_organization_id];if(m.properties.userCredits+=d.credits,h&&(h.properties.rpCredits+=d.credits),m.properties.userCreditsMap[d.rp_organization_id]=(m.properties.userCreditsMap[d.rp_organization_id]||0)+d.credits,h&&(h.properties.rpCreditsMap[d.user_organization_id]=(h.properties.rpCreditsMap[d.user_organization_id]||0)+d.credits),i!=="allocated")return{type:"Feature",geometry:{type:"LineString",coordinates:iH(...l[d.user_organization_id].geometry.coordinates,...l[d.rp_organization_id].geometry.coordinates)},properties:d}}).filter(d=>d!==void 0)},userPoints:{type:"FeatureCollection",features:Object.values(l).filter(d=>d.properties.userCredits>0).sort((d,m)=>d.properties.userCredits>m.properties.userCredits?-1:1)},rpPoints:{type:"FeatureCollection",features:Object.values(l).filter(d=>d.properties.rpCredits>0).sort((d,m)=>d.properties.rpCredits>m.properties.rpCredits?-1:1)}}}function kI(t,r=[0,.3,.6,.9]){return r.map((i,l)=>{const u=sH(t,i),d=l===r.length-1?"+":"";return[`${dO(Math.round(u))}${d}`,u]})}function sH(t,r){t.sort((d,m)=>d-m);const i=(t.length-1)*r,l=Math.floor(i),u=i-l;return t[l+1]!==void 0?t[l]+u*(t[l+1]-t[l]):t[l]}const lH="_fullscreen_1iid9_6",uH="_map_1iid9_14",Vb={"allocations-map":"_allocations-map_1iid9_1",fullscreen:lH,map:uH},cH="_group_11k83_1",dH="_button_11k83_6",fH="_icon_11k83_16",UE={group:cH,button:dH,icon:fH};function MI({choices:t,disabledValues:r=[],label:i,value:l,setValue:u}){const d=[];return t.forEach(([m,h])=>d.push(v.jsx("input",{type:"radio",className:"btn-check",name:m,id:m,autoComplete:"off",checked:l===m,onChange:()=>u(m),disabled:r.includes(m)},m),v.jsxs("label",{className:`btn btn-outline-primary ${UE.button}`,htmlFor:m,disabled:r.includes(m),children:[l===m?v.jsx("i",{className:`bi bi-check ${UE.icon}`}):null," ",h]},`${m}-label`))),v.jsx("div",{className:"mb-2",children:v.jsx("div",{className:`btn-group ${UE.group}`,role:"group","aria-label":i,children:d})})}const pH="_controls_1be4t_1",hH={controls:pH};function vH({creditType:t,organizationType:r,setCreditType:i,setOrganizationType:l}){return v.jsxs("div",{className:hH.controls,children:[v.jsx("h2",{children:"ACCESS Allocations"}),v.jsx(MI,{choices:[["allocated","Allocations"],["exchanged","Exchanges"],["used","Usage"]],label:"Credit Type",value:t,setValue:i}),v.jsx(MI,{choices:[["user","By Research Institution"],["rp","By Resource Provider"]],disabledValues:t==="allocated"?["rp"]:[],label:"Organization Type",value:r,setValue:l})]})}const mH="_legend_odgg9_1",gH="_symbols_odgg9_17",yH="_symbol_odgg9_17",Kb={legend:mH,symbols:gH,symbol:yH};function bH(t,r){const i=2*t+2;return v.jsx("svg",{viewBox:`0 0 ${i} ${i}`,xmlns:"http://www.w3.org/2000/svg",stroke:"white",strokeWidth:"1",height:i,width:i,children:v.jsx("circle",{fill:r,cx:t+1,cy:t+1,r:t})})}function xH({activeOrg:t,creditLevels:r,organizationType:i}){if(t||!r)return;const l=r.points.map((u,d)=>v.jsxs("div",{className:Kb.symbol,children:[bH(5*(d+1),Nw[i].colors[d]),v.jsx("br",{}),v.jsx("span",{className:"label",children:u[0]})]},u[0]));return v.jsxs("div",{className:Kb.legend,children:[v.jsxs("h2",{className:"fs-6 mt-0 mb-0",children:["ACCESS Credits ",v.jsx("small",{children:"or credit equivalents"})]}),v.jsx("div",{className:Kb.symbols,children:l})]})}const CH="_info_oxxoh_1",SH="_user_oxxoh_7",EH="_rp_oxxoh_10",wH="_credits_oxxoh_15",ex={info:CH,user:SH,rp:EH,credits:wH};function LI(t,r,i){t.sort((u,d)=>d[1]-u[1]);const l=t.slice(0,3).map(u=>u[0]);return t.length>3&&(l[2]=`${t.length-2} other ${i}s`),l.reduce((u,d,m,h)=>[u,v.jsx("span",{className:`name ${ex[r]}`,children:d},d),[""," and ",", "][h.length-m-1]],[])}function RH({activeOrg:t,creditType:r,organizationMap:i,organizationType:l}){if(!t||!i)return;const u=t.properties,d=u[`${l}Credits`],m=l==="rp"?"user":"rp",h=JSON.parse(u[`${l}CreditsMap`]),y={user:[],rp:[]};return y[l].push([u.name,d]),Object.keys(h).forEach(x=>y[m].push([i[x],h[x]])),v.jsx("div",{className:`${Kb.legend} ${ex.info}`,children:v.jsxs("p",{className:ex[l],children:["Researchers at ",LI(y.user,"user","research institution")," ",r==="allocated"?"were ":"",r," ",v.jsxs("span",{className:ex.credits,children:[dO(d)," ACCESS Credits"]}),r!=="allocated"?v.jsxs(v.Fragment,{children:[" ",r==="exchanged"?"for":"on"," resources at"," ",LI(y.rp,"rp","resource provider")]}):"","."]})})}function _H(){const t=k.useRef(null),r=k.useRef(null),[i,l]=k.useState(null),[u,d]=k.useState(null),[m,h]=k.useState(null),[y,x]=k.useState(!1),[C,w]=k.useState(null),[R,A]=k.useState(null),[N,_]=k.useState(null),[I,M]=k.useState("user"),[P,V]=k.useState("exchanged");return k.useEffect(()=>{(async()=>d(await nH()))()},[]),k.useEffect(()=>{(async U=>{const[F,z]=await Promise.all(["organizations",`credits_${U}`].map(rH));if(!N){const Y={};F.features.forEach(ce=>Y[ce.id.toString()]=ce.properties.name),_(Y)}const X=oH(F,z,P);w(X),U==="exchanged"&&!m&&h(aH(X))})(P)},[P]),k.useEffect(()=>{R&&R.setStyle(DI({activeOrg:i,basemapStyle:u,creditLevels:m,creditType:P,geoJSON:C,organizationType:I}))},[i,C,R,I]),k.useEffect(()=>{R&&(R.on("mousemove","organizations",U=>l(U.features.length?U.features[0]:null)),R.on("mouseleave","organizations",()=>l(null)))},[R]),k.useEffect(()=>{R&&R.resize()},[y]),k.useEffect(()=>{P==="allocated"&&M("user")},[P]),k.useLayoutEffect(()=>A(new maplibregl.Map({container:r.current,style:DI({activeOrg:i,basemapStyle:u,creditLevels:m,creditType:P,geoJSON:C,organizationType:I}),center:[-111.01,38.88],zoom:3.4,hash:!0})),[]),k.useLayoutEffect(()=>t.current.addEventListener("keydown",U=>{U.key==="Escape"&&x(!1)}),[]),v.jsxs("section",{className:`${Vb["allocations-map"]} ${y?Vb.fullscreen:"border border-3 border-primary"}`,ref:t,children:[v.jsx("div",{className:Vb.map,ref:r}),v.jsx(vH,{creditType:P,fullscreen:y,organizationType:I,setCreditType:V,setFullscreen:x,setOrganizationType:M}),v.jsx(xH,{activeOrg:i,creditLevels:m,organizationType:I}),v.jsx(RH,{activeOrg:i,creditType:P,organizationMap:N,organizationType:I}),v.jsx("button",{title:`${y?"Exit":"Enter"} Fullscreen`,className:Vb.fullscreen,onClick:()=>x(!y),children:v.jsx("i",{className:`bi ${y?"bi-fullscreen-exit":"bi-arrows-fullscreen"}`,"aria-label":"Fullscreen"})})]})}const TH=async(t,r)=>{try{const i=await fetch(`${t}/resources`,{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({resources:r.map((u,d)=>({resource_id:u.resource_id,relative_order:d+1}))})});if(!i.ok){const u=await i.json();throw new Error(u.error||"Failed to update resource order")}const l=await i.json();console.log(l.message)}catch(i){console.error("Error updating resource order:",i)}},NH=t=>[...t].sort((r,i)=>r.relative_order===null&&i.relative_order===null?r.display_resource_name.localeCompare(i.display_resource_name):r.relative_order===null?1:i.relative_order===null?-1:r.relative_order-i.relative_order),PI=(t,r)=>{r.current||(r.current=setInterval(()=>{window.scrollBy(0,t*10)},16))},HE=t=>{t.current&&(clearInterval(t.current),t.current=null)},IH="_dragging_1vb1t_45",ls={"resources-container":"_resources-container_1vb1t_1","drag-instruction":"_drag-instruction_1vb1t_6","resources-list":"_resources-list_1vb1t_12","resources-header":"_resources-header_1vb1t_18","resources-item":"_resources-item_1vb1t_28",dragging:IH,"drag-handle":"_drag-handle_1vb1t_52","resource-name":"_resource-name_1vb1t_61","resource-repo":"_resource-repo_1vb1t_65","resource-link":"_resource-link_1vb1t_71"};var Iw={exports:{}},Bb={exports:{}},wn={};/** @license React v16.13.1
52
+ `),ee}qa(()=>{X.current=void 0,Y.current=void 0,W.current=M});const z=oe.useMemo(()=>oe.createElement(x,{...M,ref:N}),[N,x,M]);return oe.useMemo(()=>m?oe.createElement(O.Provider,{value:A},z):z,[O,z,A])}const C=oe.memo(S);if(C.WrappedComponent=x,C.displayName=S.displayName=v,c){const E=oe.forwardRef(function(R,O){return oe.createElement(C,{...R,reactReduxForwardedRef:O})});return E.displayName=v,E.WrappedComponent=x,Xu(E,x)}return Xu(C,x)}}var Jt=yj;function xj({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:s="once"}){const i=oe.useMemo(()=>{const u=ax(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:s}},[e,r,o,s]),l=oe.useMemo(()=>e.getState(),[e]);qa(()=>{const{subscription:u}=i;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),l!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[i,l]);const c=t||An;return oe.createElement(c.Provider,{value:i},n)}var Vr=xj;function ux(e=An){const t=e===An?rx:Pf(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var bj=ux();function wj(e=An){const t=e===An?bj:ux(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var it=wj();kC(RC.useSyncExternalStoreWithSelector);fj(w.useSyncExternalStore);const nn="https://allocations.access-ci.org",te={creditAlertThreshold:1e3,resourceTypeIcons:{credit:"cash-coin",compute:"cpu-fill",storage:"hdd-fill",program:"person-square"},routes:{edit_request_action_path:(e,t)=>`/requests/${e}/actions/${t}/edit`,edit_request_path:e=>`/requests/${e}/edit`,how_to_path:()=>"/how-to",get_your_first_project_path:()=>`${nn}/get-your-first-project`,profile_path:()=>`${nn}/profile`,project_types_path:()=>`${nn}/project-types`,projects_path:()=>`${nn}/projects`,projects_save_users_path:()=>"/projects/save_users",renew_request_path:e=>`${nn}/requests/${e}/renew`,request_action_path:(e,t)=>`${nn}/requests/${e}/actions/${t}`,request_actions_path:e=>`${nn}/requests/${e}/actions`,request_path:e=>`${nn}/requests/${e}`,resources_path:()=>`${nn}/resources`,search_people_path:()=>`${nn}/search/people`,usage_detail_path:(e,t)=>`/usage/${e}/${t}`},roleIcons:{PI:"person-fill-check","Co-PI":"person-fill-add","Allocation Manager":"person-fill-gear",User:"people-fill"}},ho=(e,t,n="round")=>{const r=Math.pow(10,t||0);return Math[n](e*r)/r},Sj=e=>new Date(`${e}T00:00:00`),_j={year:"numeric",month:"short",day:"numeric"},Cr=(e,t)=>Sj(e).toLocaleString("en-us",t||_j),Ke=(e,{abbreviate:t=!1,decimalPlaces:n=void 0}={})=>{if(t){let r=0;for(;Math.abs(e)/Math.pow(1e3,r)>=1e3;)r+=1;const o=["","K","M","B","T","Q"][r];return`${(e/Math.pow(1e3,r)).toLocaleString("en-US",{maximumSignificantDigits:3})}${o}`}return e.toLocaleString("en-US",{maximumFractionDigits:n,minimumFractionDigits:n})},Af=(e,t)=>{if(e.startDate&&e.endDate){const o=Cr(e.startDate,t),s=Cr(e.endDate,t);return`${e.allocationType}: ${o} to ${s}`}const n=Cr(e.entryDate,t),r=e.status=="Incomplete"?"Started":"Submitted";return`${e.allocationType}: ${r} ${n}`},cr=e=>a.jsx("i",{className:`bi bi-${e}`}),Pl=e=>{const t=e.match(/^([^\(\)]+) (\(([^\)]+)\))?$/);return{full:e,short:t&&t[3]||null}},rm=e=>{const t=Pl(e.name);return t.short||t.full},Ha=(e,t)=>e.isCredit>t.isCredit||e.isActive>t.isActive||rm(e)<rm(t)?-1:1,om=(...e)=>{for(let t of e)if(t!=null)return t;return null},dx=(e,t="and",n=", ")=>e.reduce((r,o,s)=>a.jsxs(a.Fragment,{children:[r,e.length-1>s?n:` ${t} `,o]})),Mf=e=>e?a.jsxs(a.Fragment,{children:[cr("check-circle")," Yes"]}):a.jsxs(a.Fragment,{children:[cr("x-circle")," No"]}),Df=e=>dx(e.users.filter(({role:t})=>["pi","co_pi","allocation_manager"].includes(t)).map(t=>`${t.firstName} ${t.lastName}`),"or"),Wa=(e,t)=>t==1&&e.endsWith("s")?e.slice(0,-1):e,fx=(e,t,n)=>`1 ${Wa(e,1)} = ${Ke(t)} ${Wa(n,t)}`,px=e=>{let t=0,n=0;for(let r of e.resources){if(r.isBoolean)continue;let{unitCost:o}=r.exchangeRates.base;t+=r.allocated*o,n+=Math.min(r.used,r.allocated)*o}return t>0?n/t:0},Il=[{role:"pi",name:"PI",xrasRole:"PI"},{role:"co_pi",name:"Co-PI",xrasRole:"CoPI"},{role:"allocation_manager",name:"Allocation Manager",xrasRole:"Allocation Manager"},{role:"user",name:"User",xrasRole:"User"}],hx={};for(let e of Il)hx[e.role]=e;const Zu={};for(let{role:e,xrasRole:t}of Il)Zu[e]=t;const Ju=["info","success","secondary","warning","danger"];function ed(e,t="total"){const n=e.exchangeRates[e.requested<=e.allocated?"base":"current"].unitCost;let r=(e.requested-e.allocated)*n;return t!="total"?r:r+e.allocated*e.exchangeRates.base.unitCost}function Lf(e){e&&(te.routes={...te.routes,...e})}const td={user:{colors:["#ffc42d","#fea92c","#f98f30","#f07537"]},rp:{colors:["#48c0b9","#2e9da4","#207b8b","#1a5b6e"]}},Ic={};function mx(e,t=3){let n=0;for(;e/Math.pow(1e3,n)>1e3;)n+=1;const r=e.toString().length,o=Math.pow(10,r-t);return(Math.round(e/o)*o/Math.pow(1e3,n)).toString()+["","K","M","B","T"][n]}async function Cj(){return await(await fetch("https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community?type=style&token=AAPK220079f462f24fda89c27fa210c3f887EJPCECuukKD8PnCIBqktgGTKZWPlVXWjRoSsZYGkOJ12QemGItZ4liRZkcUzYyme")).json()}async function jj(e){if(Ic[e])return Ic[e];const t=document.location,n=`${t.protocol}//${t.host}${t.pathname}`,o=await(await fetch(`${n}/${e}`)).json();return Ic[e]=o,o}function Ej(e){const t=[...e.creditLines.features.map(r=>r.properties.credits)],n=[...e.rpPoints.features.map(r=>r.properties.rpCredits),...e.userPoints.features.map(r=>r.properties.userCredits)];return{lines:im(t),points:im(n)}}function sm({activeOrg:e,basemapStyle:t,creditLevels:n,creditType:r,geoJSON:o,organizationType:s}){const i={},l=[];if(o&&n){const u=s==="user"?"rp":"user",d=o[`${s}Points`],f=o[`${u}Points`],p=`${s}Credits`,y=`${u}Credits`;i.organizations={type:"geojson",data:d};const m={user:[],rp:[]},h=[];n.points.forEach((g,v)=>{Object.keys(td).forEach(b=>{m[b].push(g[1],td[b].colors[v])}),h.push(g[1],5*(v+1))});const x=[];if(n.lines.forEach((g,v)=>{x.push(g[1],1*(v+1))}),l.push({id:"organizations",type:"circle",source:"organizations",paint:{"circle-radius":["interpolate",["linear"],["get",p],...h],"circle-color":["interpolate",["linear"],["get",p],...m[s]],"circle-opacity":e?["match",["id"],e.id,1,.3]:1,"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),e&&r!=="allocated"){i.opp={type:"geojson",data:f};const g=["get",e.id.toString(),["get",`${y}Map`]];l.push({id:"opp",type:"circle",source:"opp",filter:["has",e.id.toString(),["get",`${y}Map`]],paint:{"circle-radius":["interpolate",["linear"],g,...h],"circle-color":["interpolate",["linear"],g,...m[u]],"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),i.credits={type:"geojson",data:o.creditLines},l.push({id:"credits",type:"line",source:"credits",filter:["==",["get",`${s}_organization_id`],e.id],paint:{"line-color":"#444444","line-opacity":.4,"line-width":["interpolate",["linear"],["get","credits"],...x]}})}}const c=t||{version:8,sources:{},layers:[]};return{...c,sources:{...c.sources,...i},layers:[...c.layers.filter(u=>u.id!=="Marine waterbody/label/2x large"),...l]}}function Rj(e,t,n,r,o=20){return[...Array(o+1).keys()].map(s=>s/o).map(s=>{let i=s*(n-e)+e,l=s*(r-t)+t+Math.abs(Math.sin(s*Math.PI)*(n-e)*.1);return[i,l]})}function Nj(e,t,n){const r={};return e.features.forEach(s=>r[s.id]={type:s.type,geometry:s.geometry,id:s.id,properties:{name:s.properties.name,abbr:s.properties.abbr,userCredits:0,userCreditsMap:{},rpCredits:0,rpCreditsMap:{}}},{}),{creditLines:{type:"FeatureCollection",features:t.result.filter(s=>r[s.user_organization_id]!==void 0&&(n==="allocated"||r[s.rp_organization_id]!==void 0)).map(s=>{const i=r[s.user_organization_id],l=r[s.rp_organization_id];if(i.properties.userCredits+=s.credits,l&&(l.properties.rpCredits+=s.credits),i.properties.userCreditsMap[s.rp_organization_id]=(i.properties.userCreditsMap[s.rp_organization_id]||0)+s.credits,l&&(l.properties.rpCreditsMap[s.user_organization_id]=(l.properties.rpCreditsMap[s.user_organization_id]||0)+s.credits),n!=="allocated")return{type:"Feature",geometry:{type:"LineString",coordinates:Rj(...r[s.user_organization_id].geometry.coordinates,...r[s.rp_organization_id].geometry.coordinates)},properties:s}}).filter(s=>s!==void 0)},userPoints:{type:"FeatureCollection",features:Object.values(r).filter(s=>s.properties.userCredits>0).sort((s,i)=>s.properties.userCredits>i.properties.userCredits?-1:1)},rpPoints:{type:"FeatureCollection",features:Object.values(r).filter(s=>s.properties.rpCredits>0).sort((s,i)=>s.properties.rpCredits>i.properties.rpCredits?-1:1)}}}function im(e,t=[0,.3,.6,.9]){return t.map((n,r)=>{const o=kj(e,n),s=r===t.length-1?"+":"";return[`${mx(Math.round(o))}${s}`,o]})}function kj(e,t){e.sort((s,i)=>s-i);const n=(e.length-1)*t,r=Math.floor(n),o=n-r;return e[r+1]!==void 0?e[r]+o*(e[r+1]-e[r]):e[r]}const Oj="_fullscreen_1iid9_6",Tj="_map_1iid9_14",Oi={"allocations-map":"_allocations-map_1iid9_1",fullscreen:Oj,map:Tj},Pj="_group_11k83_1",Ij="_button_11k83_6",$j="_icon_11k83_16",$c={group:Pj,button:Ij,icon:$j};function am({choices:e,disabledValues:t=[],label:n,value:r,setValue:o}){const s=[];return e.forEach(([i,l])=>s.push(a.jsx("input",{type:"radio",className:"btn-check",name:i,id:i,autoComplete:"off",checked:r===i,onChange:()=>o(i),disabled:t.includes(i)},i),a.jsxs("label",{className:`btn btn-outline-primary ${$c.button}`,htmlFor:i,disabled:t.includes(i),children:[r===i?a.jsx("i",{className:`bi bi-check ${$c.icon}`}):null," ",l]},`${i}-label`))),a.jsx("div",{className:"mb-2",children:a.jsx("div",{className:`btn-group ${$c.group}`,role:"group","aria-label":n,children:s})})}const Aj="_controls_1be4t_1",Mj={controls:Aj};function Dj({creditType:e,organizationType:t,setCreditType:n,setOrganizationType:r}){return a.jsxs("div",{className:Mj.controls,children:[a.jsx("h2",{children:"ACCESS Allocations"}),a.jsx(am,{choices:[["allocated","Allocations"],["exchanged","Exchanges"],["used","Usage"]],label:"Credit Type",value:e,setValue:n}),a.jsx(am,{choices:[["user","By Research Institution"],["rp","By Resource Provider"]],disabledValues:e==="allocated"?["rp"]:[],label:"Organization Type",value:t,setValue:r})]})}const Lj="_legend_odgg9_1",Fj="_symbols_odgg9_17",Uj="_symbol_odgg9_17",ea={legend:Lj,symbols:Fj,symbol:Uj};function Vj(e,t){const n=2*e+2;return a.jsx("svg",{viewBox:`0 0 ${n} ${n}`,xmlns:"http://www.w3.org/2000/svg",stroke:"white",strokeWidth:"1",height:n,width:n,children:a.jsx("circle",{fill:t,cx:e+1,cy:e+1,r:e})})}function Bj({activeOrg:e,creditLevels:t,organizationType:n}){if(e||!t)return;const r=t.points.map((o,s)=>a.jsxs("div",{className:ea.symbol,children:[Vj(5*(s+1),td[n].colors[s]),a.jsx("br",{}),a.jsx("span",{className:"label",children:o[0]})]},o[0]));return a.jsxs("div",{className:ea.legend,children:[a.jsxs("h2",{className:"fs-6 mt-0 mb-0",children:["ACCESS Credits ",a.jsx("small",{children:"or credit equivalents"})]}),a.jsx("div",{className:ea.symbols,children:r})]})}const zj="_info_oxxoh_1",qj="_user_oxxoh_7",Hj="_rp_oxxoh_10",Wj="_credits_oxxoh_15",ta={info:zj,user:qj,rp:Hj,credits:Wj};function lm(e,t,n){e.sort((o,s)=>s[1]-o[1]);const r=e.slice(0,3).map(o=>o[0]);return e.length>3&&(r[2]=`${e.length-2} other ${n}s`),r.reduce((o,s,i,l)=>[o,a.jsx("span",{className:`name ${ta[t]}`,children:s},s),[""," and ",", "][l.length-i-1]],[])}function Kj({activeOrg:e,creditType:t,organizationMap:n,organizationType:r}){if(!e||!n)return;const o=e.properties,s=o[`${r}Credits`],i=r==="rp"?"user":"rp",l=JSON.parse(o[`${r}CreditsMap`]),c={user:[],rp:[]};return c[r].push([o.name,s]),Object.keys(l).forEach(u=>c[i].push([n[u],l[u]])),a.jsx("div",{className:`${ea.legend} ${ta.info}`,children:a.jsxs("p",{className:ta[r],children:["Researchers at ",lm(c.user,"user","research institution")," ",t==="allocated"?"were ":"",t," ",a.jsxs("span",{className:ta.credits,children:[mx(s)," ACCESS Credits"]}),t!=="allocated"?a.jsxs(a.Fragment,{children:[" ",t==="exchanged"?"for":"on"," resources at"," ",lm(c.rp,"rp","resource provider")]}):"","."]})})}function Gj(){const e=w.useRef(null),t=w.useRef(null),[n,r]=w.useState(null),[o,s]=w.useState(null),[i,l]=w.useState(null),[c,u]=w.useState(!1),[d,f]=w.useState(null),[p,y]=w.useState(null),[m,h]=w.useState(null),[x,g]=w.useState("user"),[v,b]=w.useState("exchanged");return w.useEffect(()=>{(async()=>s(await Cj()))()},[]),w.useEffect(()=>{(async S=>{const[_,C]=await Promise.all(["organizations",`credits_${S}`].map(jj));if(!m){const E={};_.features.forEach(N=>E[N.id.toString()]=N.properties.name),h(E)}const j=Nj(_,C,v);f(j),S==="exchanged"&&!i&&l(Ej(j))})(v)},[v]),w.useEffect(()=>{p&&p.setStyle(sm({activeOrg:n,basemapStyle:o,creditLevels:i,creditType:v,geoJSON:d,organizationType:x}))},[n,d,p,x]),w.useEffect(()=>{p&&(p.on("mousemove","organizations",S=>r(S.features.length?S.features[0]:null)),p.on("mouseleave","organizations",()=>r(null)))},[p]),w.useEffect(()=>{p&&p.resize()},[c]),w.useEffect(()=>{v==="allocated"&&g("user")},[v]),w.useLayoutEffect(()=>y(new maplibregl.Map({container:t.current,style:sm({activeOrg:n,basemapStyle:o,creditLevels:i,creditType:v,geoJSON:d,organizationType:x}),center:[-111.01,38.88],zoom:3.4,hash:!0})),[]),w.useLayoutEffect(()=>e.current.addEventListener("keydown",S=>{S.key==="Escape"&&u(!1)}),[]),a.jsxs("section",{className:`${Oi["allocations-map"]} ${c?Oi.fullscreen:"border border-3 border-primary"}`,ref:e,children:[a.jsx("div",{className:Oi.map,ref:t}),a.jsx(Dj,{creditType:v,fullscreen:c,organizationType:x,setCreditType:b,setFullscreen:u,setOrganizationType:g}),a.jsx(Bj,{activeOrg:n,creditLevels:i,organizationType:x}),a.jsx(Kj,{activeOrg:n,creditType:v,organizationMap:m,organizationType:x}),a.jsx("button",{title:`${c?"Exit":"Enter"} Fullscreen`,className:Oi.fullscreen,onClick:()=>u(!c),children:a.jsx("i",{className:`bi ${c?"bi-fullscreen-exit":"bi-arrows-fullscreen"}`,"aria-label":"Fullscreen"})})]})}const Yj=async(e,t)=>{try{const n=await fetch(`${e}/resources`,{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({resources:t.map((o,s)=>({resource_id:o.resource_id,relative_order:s+1}))})});if(!n.ok){const o=await n.json();throw new Error(o.error||"Failed to update resource order")}const r=await n.json();console.log(r.message)}catch(n){console.error("Error updating resource order:",n)}},Qj=e=>[...e].sort((t,n)=>t.relative_order===null&&n.relative_order===null?t.display_resource_name.localeCompare(n.display_resource_name):t.relative_order===null?1:n.relative_order===null?-1:t.relative_order-n.relative_order),cm=(e,t)=>{t.current||(t.current=setInterval(()=>{window.scrollBy(0,e*10)},16))},Ac=e=>{e.current&&(clearInterval(e.current),e.current=null)},Xj="_dragging_1vb1t_45",zt={"resources-container":"_resources-container_1vb1t_1","drag-instruction":"_drag-instruction_1vb1t_6","resources-list":"_resources-list_1vb1t_12","resources-header":"_resources-header_1vb1t_18","resources-item":"_resources-item_1vb1t_28",dragging:Xj,"drag-handle":"_drag-handle_1vb1t_52","resource-name":"_resource-name_1vb1t_61","resource-repo":"_resource-repo_1vb1t_65","resource-link":"_resource-link_1vb1t_71"};var gx={exports:{}},Zj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Jj=Zj,eE=Jj;function vx(){}function yx(){}yx.resetWarningCache=vx;var tE=function(){function e(r,o,s,i,l,c){if(c!==eE){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:yx,resetWarningCache:vx};return n.PropTypes=n,n};gx.exports=tE();var nE=gx.exports;const q=Xs(nE),rE=(e,t)=>{switch(t.type){case"SET_RESOURCE_DATA":return{...e,resourceData:t.payload,loading:!1};case"SET_LOADING":return{...e,loading:t.payload};case"SET_SUCCESS_MESSAGE":return{...e,successMessage:t.payload};case"SET_ERRORS":return{...e,errors:Array.isArray(t.payload)?t.payload:[t.payload],loading:!1};case"UPDATE_RESOURCE_FIELD":return{...e,resourceData:{...e.resourceData,resource_details:{...e.resourceData.resource_details,[t.field]:t.value}}};case"UPDATE_ALLOCATION":return{...e,resourceData:{...e.resourceData,resource_details:{...e.resourceData.resource_details,allocation_types:e.resourceData.resource_details.allocation_types.map(n=>n.allocation_type_id===t.payload.allocationTypeId?{...n,...t.payload.updates}:n)}}};case"UPDATE_BASE_RATE":return console.log("Reducer: Updating base rate to:",t.payload),{...e,resourceData:{...e.resourceData,resource_details:{...e.resourceData.resource_details,exchange_rates:{...e.resourceData.resource_details.exchange_rates,base_rate:t.payload}}}};case"UPDATE_EXCHANGE_RATE":return{...e,resourceData:{...e.resourceData,resource_details:{...e.resourceData.resource_details,exchange_rates:{...e.resourceData.resource_details.exchange_rates,discount_rates:e.resourceData.resource_details.exchange_rates.discount_rates.map(n=>n.id===t.payload.rateId?{...n,...t.payload.changes}:n)}}}};case"ADD_EXCHANGE_RATE":return console.log("Reducer: Adding new discount rate:",t.payload),{...e,resourceData:{...e.resourceData,resource_details:{...e.resourceData.resource_details,exchange_rates:{...e.resourceData.resource_details.exchange_rates,discount_rates:[...e.resourceData.resource_details.exchange_rates.discount_rates||[],t.payload]}}}};case"DELETE_EXCHANGE_RATE":return{...e,resourceData:{...e.resourceData,resource_details:{...e.resourceData.resource_details,exchange_rates:{...e.resourceData.resource_details.exchange_rates,discount_rates:e.resourceData.resource_details.exchange_rates.discount_rates.filter(n=>n.id!==t.payload)}}}};default:return e}},nd=e=>({type:"SET_RESOURCE_DATA",payload:e}),oE=e=>({type:"SET_LOADING",payload:e}),um=(e,t)=>({type:"SET_SUCCESS_MESSAGE",payload:{message:e,color:t}}),Zo=(e,t)=>({type:"UPDATE_RESOURCE_FIELD",field:e,value:t}),Mc=(e,t)=>({type:"UPDATE_ALLOCATION",payload:{allocationTypeId:e,updates:t}}),sE=async(e,t)=>await(await fetch(`${t}/resources/${e}.json`)).json(),iE=async(e,t,n,r)=>(console.log("update resource",n),await fetch(`${t}/resources/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({resource:n,required_resources:r})})),aE=(e,t)=>{const[n,r]=w.useReducer(rE,{resourceData:null,loading:!0,errors:[],successMessage:{message:"",color:""}}),o=w.useCallback(async(i,l)=>{let c=[l];try{const u=await i.json();u.errors?c=u.errors:u.message&&(c=[u.message])}catch(u){console.error("Error parsing error response:",u)}r({type:"SET_ERRORS",payload:c})},[]),s=w.useCallback(async()=>{r(oE(!0));try{const i=await sE(e,t);r(nd(i))}catch(i){console.error("Failed to fetch resource data:",i),r({type:"SET_ERRORS",payload:"Failed to fetch resource data. Please try again later."})}},[e,t]);return w.useEffect(()=>{s()},[s]),{state:n,dispatch:r,handleError:o,fetchData:s}},Ff=e=>{var t,n,r;return{allowedActionsOptions:((t=e==null?void 0:e.resource_state_types_available)==null?void 0:t.map(o=>({value:o.resource_state_type_id,label:o.display_resource_state_type,additionalInfo:o.action_types.map(s=>s.display_action_type).join(", ")})))||[],resourceTypesOptions:((n=e==null?void 0:e.resource_types_available)==null?void 0:n.map(o=>({value:o.resource_type_id,label:o.display_resource_type})))||[],unitTypesOptions:((r=e==null?void 0:e.unit_types_available)==null?void 0:r.map(o=>({value:o.unit_type_id,label:o.display_unit_type})))||[],availableResources:(e==null?void 0:e.required_resources_available)||[],availableAllocationTypes:(e==null?void 0:e.unassigned_allocation_types)||[]}},lE=(e,t,n,r,o,s,i)=>{const c=(()=>{var p;if(!e)return[];const f=new Set;return(p=e.allocation_types)==null||p.forEach(y=>{var m;(m=y.required_resources)==null||m.forEach(h=>{f.add(h.resource_name)})}),Array.from(f).sort((y,m)=>y.localeCompare(m)).map(y=>({key:y,name:`Require ${y}`,width:150,type:"checkbox"}))})();return{allocationColumns:[{key:"display_name",name:"Allocation Type",width:200},{key:"allowed_actions",name:"Allowed Actions",width:200,type:"select"},{key:"comment",name:"Descriptive Text",width:200,type:"input",tooltip:"Appears below the resource name and allocations description in the form when making a new request"},...c],allocationRows:e!=null&&e.allocation_types?e.allocation_types.map(f=>{var p;return{display_name:f.display_name,allocation_type_id:f.allocation_type_id,allowed_actions:{options:r,value:((p=f.allowed_action)==null?void 0:p.resource_state_type_id)||"",onChange:y=>o(f.allocation_type_id,y)},comment:{value:f.comment||"",onChange:y=>s(f.allocation_type_id,y)},...Object.fromEntries(c.map(y=>{var m;return[y.key,{checked:((m=f.required_resources)==null?void 0:m.some(h=>h.resource_name===y.key))||!1,onChange:h=>i(f.allocation_type_id,y.key,h,f)}]}))}}):[],requiredResourcesColumns:c}},cE=(e,t,n)=>{const{availableResources:r,availableAllocationTypes:o,allowedActionsOptions:s}=Ff(e),[i,l]=w.useState(!1),[c,u]=w.useState(!1),[d,f]=w.useState([]),[p,y]=w.useState(""),m=w.useCallback((_,C)=>{n(Mc(_,{allowed_action:{resource_state_type_id:C}}))},[n]),h=w.useCallback((_,C)=>{n(Mc(_,{comment:C}))},[n]),x=w.useCallback((_,C,j,E)=>{const N=j?[...E.required_resources||[],{resource_name:C,required_resource_id:e.required_resources_available.find(R=>R.resource_name===C).resource_id}]:(E.required_resources||[]).filter(R=>R.resource_name!==C);n(Mc(_,{required_resources:N}))},[e,n]);w.useEffect(()=>{if(i&&t){const _=t.allocation_types.flatMap(C=>C.required_resources||[]).map(C=>C.required_resource_id);f(_)}},[i,t]);const g=w.useCallback((_,C)=>{f(j=>C?[...j,_]:j.filter(E=>E!==_))},[]),v=w.useCallback(()=>{const _=t.allocation_types.flatMap(N=>N.required_resources||[]).map(N=>N.required_resource_id),C=d.filter(N=>!_.includes(N)),j=_.filter(N=>!d.includes(N)),E=t.allocation_types.map(N=>{const R=N.required_resources||[],O=C.map(P=>{const D=r.find(L=>L.resource_id===P);return{resource_name:D.resource_name,required_resource_id:D.resource_id}}),k=R.filter(P=>!j.includes(P.required_resource_id)).concat(O.filter(P=>!R.some(D=>D.required_resource_id===P.required_resource_id)));return{...N,required_resources:k}});n(nd({...e,resource_details:{...t,allocation_types:E}})),f([]),l(!1)},[d,r,t,e,n]),b=w.useCallback(_=>{const C=_.target.value;y(C)},[]),S=w.useCallback(()=>{var j,E;if(!p)return;const _=o.find(N=>N.allocation_type_id.toString()===p),C=(j=t.allocation_types)==null?void 0:j.some(N=>N.allocation_type_id===_.allocation_type_id);if(_&&!C){const N=(E=s[0])==null?void 0:E.value,R=[...t.allocation_types||[],{allocation_type_id:_.allocation_type_id,display_name:_.display_name,allowed_action:{resource_state_type_id:N},comment:"",required_resources:[]}];n(nd({...e,resource_details:{...t,allocation_types:R}})),u(!1)}},[p,o,t,e,n,s]);return{showAddResourceModal:i,setShowAddResourceModal:l,showAddAllocationTypeModal:c,setShowAddAllocationTypeModal:u,selectedNewResource:d,handleSelectNewResource:g,handleSaveResources:v,selectedNewAllocationType:p,handleSelectNewAllocationType:b,handleSaveAllocationType:S,handleAllowedActionChange:m,handleCommentChange:h,handleRequiredResourceChange:x}},uE=(e,t,n,r,o,s)=>w.useCallback(async()=>{var c,u,d;if(!e)return;const i={resource_name:e.resource_name,description:e.description,resource_type_id:e.resource_type_id,unit_type_id:e.unit_type_id,dollar_value:e.dollar_value,allocation_types:e.allocation_types.map(f=>{var p;return{allocation_type_id:f.allocation_type_id,allowed_action:{resource_state_type_id:(p=f.allowed_action)==null?void 0:p.resource_state_type_id},comment:f.comment||""}}),exchange_rates:{base_rate:(c=e.exchange_rates)==null?void 0:c.base_rate,discount_rates:(d=(u=e.exchange_rates)==null?void 0:u.discount_rates)==null?void 0:d.map(f=>({id:f.id,exchange_rate:f.exchange_rate,begin_date:f.begin_date,end_date:f.end_date}))}},l={};e.allocation_types.forEach(f=>{f.required_resources.forEach(p=>{l[p.required_resource_id]||(l[p.required_resource_id]=[]),l[p.required_resource_id].push(f.allocation_type_id)})});try{const f=await iE(t,n,i,l);if(f.ok){const p=await f.json();return s(um(p.message||"Resource updated successfully!","success")),await r(),!0}else return await o(f,"Failed to update resource"),!1}catch{return s(um("Error updating resource. Please try again later.","danger")),!1}},[e,t,n,r,o]),dE=(e=!1)=>{const[t,n]=w.useState(e);return{isEditing:t,handleEditingChange:o=>{n(o)}}},fE={"form-wrapper":"_form-wrapper_mu0yh_1"},Ka=({show:e,onClose:t,title:n,children:r,onSave:o,buttonText:s,cancelText:i="Cancel",canSave:l=!0})=>e?a.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",display:"flex",alignItems:"center",zIndex:1050},children:a.jsx("div",{className:"modal fade in",tabIndex:"-1",role:"dialog","aria-hidden":"true",style:{width:"90%",maxWidth:"600px",maxHeight:"90%",overflow:"auto",backgroundColor:"white",position:"relative"},children:a.jsx("div",{className:"modal-dialog",role:"document",children:a.jsxs("div",{className:"modal-content",children:[a.jsxs("div",{className:"modal-header",children:[a.jsx("button",{type:"button",className:"close","data-dismiss":"modal",onClick:t,"aria-label":"Close",children:a.jsx("h3",{"aria-hidden":"true",className:"text-danger",children:"×"})}),a.jsx("h3",{className:"modal-title",children:n})]}),a.jsx("div",{className:"modal-body",children:r}),a.jsxs("div",{className:"modal-footer",style:{padding:"15px",textAlign:"right",borderTop:"1px solid #e5e5e5",backgroundColor:"#f8f9fa"},children:[a.jsx("button",{className:"btn btn-danger",onClick:t,children:i}),a.jsx("button",{className:"btn btn-success",onClick:o,disabled:!l,children:s})]})]})})})}):null;Ka.propTypes={show:q.bool.isRequired,onClose:q.func.isRequired,title:q.string.isRequired,children:q.node.isRequired,onSave:q.func.isRequired,buttonText:q.string,cancelText:q.string,canSave:q.bool};const je=({children:e,color:t,dismissable:n=!1})=>a.jsxs("div",{className:`alert alert-${t} mt-3 alert-dismissible show`,role:"alert",children:[e,n&&a.jsx("button",{type:"button",className:"close","data-dismiss":"alert","aria-label":"Close",children:a.jsx("span",{"aria-hidden":"true",children:"×"})})]}),jo=({label:e,options:t,value:n,onChange:r,...o})=>a.jsxs("div",{className:"form-group",children:[e&&a.jsx("label",{children:e}),a.jsx("select",{className:"form-control",value:n,onChange:r,...o,children:t.map(s=>a.jsxs("option",{value:s.value,children:[s.label,s.additionalInfo&&` - ${s.additionalInfo}`]},s.value))})]});jo.propTypes={label:q.string,options:q.arrayOf(q.shape({value:q.oneOfType([q.string,q.number]).isRequired,label:q.string.isRequired,additionalInfo:q.string})).isRequired,value:q.oneOfType([q.string,q.number]),onChange:q.func.isRequired};function us({label:e,type:t="text",value:n,onChange:r,disabled:o=!1,infoText:s="",style:i,inputClassName:l,inputAddon:c}){return a.jsxs(a.Fragment,{children:[e&&a.jsx("label",{children:e}),s&&a.jsx("small",{className:"form-text help-block",children:s}),t==="textarea"?a.jsx("textarea",{className:`form-control ${l||""}`,value:n,onChange:r,disabled:o,rows:"6"}):c?a.jsxs("div",{className:"input-prepend",children:[a.jsx("span",{className:"add-on",children:c}),a.jsx("input",{type:t,className:`form-control ${l||""}`,style:i,value:n,onChange:r,disabled:o})]}):a.jsx("input",{type:t,className:`form-control ${l||""}`,style:i,value:n,onChange:r,disabled:o})]})}const pE="_blurred_16xcy_16",yn={"advanced-settings":"_advanced-settings_16xcy_1","header-wrapper":"_header-wrapper_16xcy_5","content-container":"_content-container_16xcy_11",blurred:pE,"warning-banner":"_warning-banner_16xcy_21","alt-warning-banner":"_alt-warning-banner_16xcy_40 _warning-banner_16xcy_21"},Uf=({headerText:e,header:t,children:n,isEditing:r=!1,onEditingChange:o,warningMessage:s=""})=>{const i=e&&e.type==="label";return a.jsxs("div",{className:yn["advanced-settings"],children:[(e||t)&&a.jsxs("div",{className:yn["header-wrapper"],children:[e,t&&a.jsx("div",{className:`${yn["header-buttons-container"]} ${r?"":yn.blurred}`,children:t})]}),a.jsxs("div",{style:{width:"100%"},children:[!r&&a.jsxs("div",{className:i?`${yn["alt-warning-banner"]}`:yn["warning-banner"],children:[a.jsxs("span",{className:yn["warning-text"],children:[a.jsx("strong",{children:"CAUTION! "})," ",s]}),a.jsx("button",{className:"btn btn-danger",onClick:()=>o(!0),children:"I understand the risks"})]}),a.jsx("div",{className:`${yn["content-container"]} ${r?"":yn.blurred}`,children:n})]})]})};Uf.propTypes={headerText:q.node,header:q.node,children:q.node.isRequired,isEditing:q.bool,onEditingChange:q.func.isRequired,warningMessage:q.string};const Vf=Se.memo(function({resourceDetails:t,resourceTypesOptions:n,unitTypesOptions:r,dispatch:o,isDollarValueEditing:s,onDollarValueEditingChange:i,showDollarValue:l=!0,showResourceId:c=!0,useAdvancedSettings:u=!0}){const d="Dollar Value per SUs",f=l?a.jsx(us,{label:u?null:d,value:t.dollar_value,onChange:p=>o(Zo("dollar_value",p.target.value)),type:"number",inputAddon:"$",inputClassName:"span4"}):null;return a.jsxs(a.Fragment,{children:[a.jsx(us,{label:"Resource Name",value:t.resource_name,onChange:p=>o(Zo("resource_name",p.target.value)),inputClassName:"span8"}),c&&a.jsx(us,{label:"Resource Repository Key",value:t.resource_repository_key,disabled:!0,inputClassName:"span8"}),u&&l?a.jsx(Uf,{headerText:a.jsx("label",{children:d}),isEditing:s,onEditingChange:i,warningMessage:"Dollar value is for reporting and should only be modified if the SU rate changes.",children:f}):f,a.jsx(us,{label:"Allocations Description",type:"textarea",value:t.description,infoText:"Appears below the resource name in the form when making a new request, as well as under the header Allocations Description in resource catalogs",onChange:p=>o(Zo("description",p.target.value)),inputClassName:"span8"}),a.jsx(jo,{label:"Resource Type",options:n,value:t.resource_type_id,onChange:p=>o(Zo("resource_type_id",p.target.value)),className:"span8"}),a.jsx(jo,{label:"Unit Type",options:r,value:t.unit_type_id,onChange:p=>o(Zo("unit_type_id",p.target.value)),className:"span8"})]})});Vf.propTypes={resourceDetails:q.object.isRequired,resourceTypesOptions:q.array.isRequired,unitTypesOptions:q.array.isRequired,dispatch:q.func.isRequired,isDollarValueEditing:q.bool,onDollarValueEditingChange:q.func,showDollarValue:q.bool,showResourceId:q.bool,useAdvancedSettings:q.bool};function xx({onClose:e}){const[t,n]=w.useState(!0),[r,o]=w.useState([]),[s,i]=w.useState(null),[l,c]=w.useState(-1),[u,d]=w.useState(null),f=Ff(u);f.resourceTypesOptions.unshift({value:0,label:"Select a resource type..."}),f.unitTypesOptions.unshift({value:0,label:"Select a unit type..."}),w.useEffect(()=>{(async()=>{const v=await fetch("/resources/addable.json");n(!1),v.status==200?o(await v.json()):i("Error retrieving resource list.")})()},[]),w.useEffect(()=>{if(l===-1)return d(null);(async()=>{const v=await fetch(`/resources/addable/${l}.json`);v.status==200?d(await v.json()):i("Error retrieving resource details.")})()},[l]);let p=null;t?p=a.jsx("p",{children:"Loading…"}):s!==null?p=a.jsx(je,{color:"danger",children:s}):r.length==0&&(p=a.jsx(je,{children:"There are currently no resources available to add."}));const y=[{value:-1,label:"Select a resource..."}].concat(r.map(v=>({value:v.xras_cider_resource_id,label:v.resource_descriptive_name}))),m=u?u.resource_details:null,h=!s&&m&&m.resource_name.length>0&&m.resource_type_id>0&&m.unit_type_id>0,x=v=>{v.type=="UPDATE_RESOURCE_FIELD"&&d({...u,resource_details:{...u.resource_details,[v.field]:v.value}})},g=()=>{(async()=>{const v=await fetch("/resources",{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({...m,resource_repository_key:l})});if(v.status==200){const b=await v.json();window.location=`/resources/${b.resource_id}`}else i("Error saving resource.")})()};return p===null&&(p=a.jsxs(a.Fragment,{children:[a.jsx("h2",{children:"Select a Resource to Add"}),a.jsx(jo,{options:y,onChange:v=>c(parseInt(v.target.value))}),!u&&l!==-1?a.jsx("p",{children:"Loading…"}):null,u&&a.jsxs(a.Fragment,{children:[a.jsx("h2",{children:"Resource Properties"}),a.jsx("p",{style:{fontStyle:"italic",fontWeight:"bold"},children:"Any modifications to these resource properties will be applied globally and impact resources on other all allocations process"}),a.jsx("div",{className:fE["form-wrapper"],children:a.jsx(Vf,{resourceDetails:m,resourceTypesOptions:f.resourceTypesOptions,unitTypesOptions:f.unitTypesOptions,showResourceId:!1,showDollarValue:!1,dispatch:x})})]})]})),a.jsx(Ka,{show:!0,onClose:e,title:"Add a Resource from CIDeR",onSave:g,buttonText:"Save",canSave:h,children:p})}xx.propTypes={onClose:q.func.isRequired};function hE({availableResources:e,canAdd:t=!1,relativeUrlRoot:n}){const r=w.useMemo(()=>Qj(e),[e]),[o,s]=w.useState(r),[i,l]=w.useState(!1),c=w.useRef(null),u=w.useRef(null);w.useEffect(()=>{s(r)},[r]);const d=(y,m)=>{c.current=m},f=(y,m)=>{if(y.preventDefault(),c.current===m)return;const h=[...o],x=h[c.current];h.splice(c.current,1),h.splice(m,0,x),c.current=m,s(h);const{clientY:g}=y,v=130;g<v?cm(-1,u):window.innerHeight-g<v?cm(1,u):Ac(u)},p=()=>{c.current=null,Ac(u),Yj(n,o)};return w.useEffect(()=>()=>Ac(u),[]),a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:zt["resources-container"],children:[t&&a.jsx("button",{className:"btn btn-primary pull-right",onClick:()=>l(!0),children:"Add a Resource from CIDeR"}),a.jsx("h2",{children:"Select a resource from the list to modify"}),a.jsx("p",{className:zt["drag-instruction"],children:"Drag items to reorder the list."}),a.jsxs("div",{className:zt["resources-list"],children:[a.jsxs("div",{className:zt["resources-header"],children:[a.jsx("span",{className:zt["header-name"],children:"Resource Name"}),a.jsx("span",{className:zt["header-repo"],children:"Repository Key"})]}),o.map((y,m)=>a.jsxs("div",{className:`${zt["resources-item"]}`,draggable:!0,onDragStart:h=>d(h,m),onDragOver:h=>f(h,m),onDrop:p,children:[a.jsx("span",{className:zt["drag-handle"]}),a.jsx("span",{className:zt["resource-name"],children:a.jsx("a",{href:`${n}/resources/${y.resource_id}`,className:zt["resource-link"],children:y.display_resource_name})}),a.jsx("span",{className:zt["resource-repo"],children:y.resource_repository_key||"N/A"})]},y.resource_id))]})]}),i&&a.jsx(xx,{onClose:()=>l(!1)})]})}function Do(){return a.jsx("div",{className:"spinner-border",role:"status",children:a.jsx("span",{className:"visually-hidden",children:"Loading..."})})}const mE="_grid_afccc_1",gE="_important_afccc_30",vE="_input_afccc_34",yE="_edited_afccc_38",xE="_disabled_afccc_46",bE="_scroll_afccc_59",jr={grid:mE,important:gE,input:vE,edited:yE,disabled:xE,scroll:bE};function wE({column:e,row:t,style:n={}}){const r=e.format?e.format(t[e.key],t):t[e.key],o=["cell"];return e.class&&o.push(e.class),e.rowClass&&o.push(e.rowClass(t)),a.jsx("td",{className:o.join(" "),style:n,children:r})}const Bf=({title:e,placement:t,children:n})=>(w.useEffect(()=>($('[data-toggle="tooltip"]').tooltip(),()=>{$('[data-toggle="tooltip"]').tooltip("destroy")}),[]),a.jsx("span",{"data-toggle":"tooltip","data-placement":t,title:e,style:{margin:"10px"},children:n}));Bf.propTypes={title:q.string.isRequired,placement:q.oneOf(["top","bottom","left","right"]),children:q.node.isRequired};Bf.defaultProps={placement:"top"};const SE="_datepicker_19wnv_1",_E="_error_19wnv_1",dm={datepicker:SE,error:_E},CE=({value:e,onChange:t,disabled:n=!1,style:r,className:o="",minDate:s="",maxDate:i="",error:l=""})=>{const c=l;return a.jsx("div",{className:`w-full ${o}`,children:a.jsx("input",{type:"date",style:r,className:`${dm.datepicker} ${c?dm.error:""}`,value:e||"",onChange:u=>t(u.target.value),disabled:n,min:s||"1900-01-01",max:i||"2100-12-31"})})},Jo=(e,t,n)=>{if(t.onChange){t.onChange(n,e);return}const r=e[t.key];r!=null&&r.onChange&&r.onChange(n)},jE={text:wE,select:({column:e,row:t,style:n})=>a.jsx("td",{style:n,children:a.jsx(jo,{label:"",options:t[e.key].options,value:t[e.key].value,onChange:r=>Jo(t,e,r.target.value),style:{width:"100%",margin:0}})}),input:({column:e,row:t,style:n})=>a.jsx("td",{style:n,children:a.jsx(us,{label:"",type:"text",disabled:t[e.key].disabled,value:t[e.key].value,onChange:r=>Jo(t,e,r.target.value),style:{width:"92%",margin:0}})}),checkbox:({column:e,row:t,style:n})=>a.jsx("td",{style:n,children:a.jsx("input",{type:"checkbox",checked:t[e.key].checked,onChange:r=>Jo(t,e,r.target.checked)})}),date:({column:e,row:t,style:n})=>{const r=t[e.key];return!(r!=null&&r.value)&&typeof r!="object"?a.jsx("td",{style:n,children:r||""}):a.jsx("td",{style:n,children:a.jsx(CE,{value:r.value,onChange:o=>Jo(t,e,o),disabled:r.disabled,style:{width:"92%",margin:0},minDate:e.minDate,maxDate:e.maxDate,error:r.error})})},action:({column:e,row:t,style:n})=>a.jsx("td",{style:n,children:t.rate_type==="Discount"&&a.jsx("button",{className:"btn btn-link text-danger",onClick:()=>{var r;return Jo(t,e,(r=t[e.key])==null?void 0:r.id)},children:a.jsx("i",{className:"fa fa-trash"})})})};function Fn({columns:e,rows:t,classes:n,frozenColumns:r=0,minWidth:o,rowClasses:s=[],scroll:i=!0,scrollBehavior:l="smooth",scrollRowIndex:c=0}){const u=w.useRef();w.useLayoutEffect(()=>{if(!i||!u.current)return;const h=u.current.querySelector(`tbody tr:nth-child(${c+1})`);h&&h.scrollIntoView({behavior:l,block:"nearest",inline:"nearest"})},[i,c,l]);const d=[0];for(let h=0;h<r;h++)d[h+1]=d[h]+(e[h].width||100);const f=(h,x)=>h<r?{position:"sticky",left:`${d[h]}px`,minWidth:`${e[h].width||100}px`,width:`${e[h].width||100}px`,zIndex:x||1}:{},p=e.map((h,x)=>a.jsxs("th",{className:h.headerClass||h.class||"",style:f(x,100),children:[h.formatHeader?h.formatHeader(h.name,h):h.name,h.tooltip&&a.jsx(Bf,{title:h.tooltip,placement:"bottom",children:a.jsx("i",{className:"icon-info-sign"})})]},h.key)),y=t.map((h,x)=>{const g=e.map((v,b)=>{const S=jE[v.type||"text"];return a.jsx(S,{column:v,row:h,style:f(b)},v.key)});return a.jsx("tr",{className:s[x]||"",children:g},x)}),m={};return o&&(m.minWidth=o),a.jsx("div",{className:`${jr.grid} ${i?jr.scroll:""} ${n||""}`,ref:u,children:a.jsxs("table",{className:"table table-bordered",style:m,children:[a.jsx("thead",{children:a.jsx("tr",{children:p})}),a.jsx("tbody",{children:y})]})})}const rd={"header-buttons":"_header-buttons_15oxx_1","allocation-types-grid":"_allocation-types-grid_15oxx_6","vertical-align-center":"_vertical-align-center_15oxx_10"},bx=({onAddAllocationType:e,onAddRequiredResource:t})=>a.jsxs("div",{className:rd["header-buttons"],children:[a.jsxs("button",{className:"btn btn-primary",onClick:e,children:[a.jsx("i",{className:"fa fa-plus"})," Add Allocation Type"]}),a.jsxs("button",{className:"btn btn-primary",onClick:t,children:[a.jsx("i",{className:"fa fa-plus"})," Add Required Resource"]})]});bx.propTypes={headerText:q.node,onAddAllocationType:q.func.isRequired,onAddRequiredResource:q.func.isRequired};const wx=Se.memo(function({columns:t,rows:n}){return a.jsxs("div",{className:rd["allocation-types-grid"],children:[a.jsx(Fn,{columns:t,rows:n,rowClasses:Array(n.length).fill(rd["vertical-align-center"]),scroll:!1}),a.jsx("p",{style:{margin:"0",fontStyle:"italic",fontWeight:"bold"},children:"Note: You may need to contact your Allocations Coordinator if you have added this resource to an allocation type."})]})});wx.propTypes={columns:q.array.isRequired,rows:q.array.isRequired};const qr={"exchange-rates-grid":"_exchange-rates-grid_5qkd5_1","header-container":"_header-container_5qkd5_5","header-buttons":"_header-buttons_5qkd5_11","vertical-align-center":"_vertical-align-center_5qkd5_18","error-summary":"_error-summary_5qkd5_35"},Sx=Se.memo(function({columns:t,rows:n,onAddDiscountRate:r,dateErrors:o=[]}){return a.jsxs("div",{className:qr["exchange-rates-grid"],children:[a.jsxs("div",{className:qr["header-container"],children:[a.jsx("h2",{className:qr["header-title"],children:"Exchange Rates"}),a.jsx("div",{className:qr["header-buttons"],children:a.jsxs("button",{className:"btn btn-primary",onClick:r,children:[a.jsx("i",{className:"fa fa-plus"})," Add Discount Rate"]})})]}),a.jsx(Fn,{columns:t,rows:n,rowClasses:Array(n.length).fill(qr["vertical-align-center"]),scroll:!1}),o.length>0&&a.jsx("div",{className:qr["error-summary"],children:a.jsx("ul",{children:o.map((s,i)=>a.jsx("li",{children:s},i))})})]})});Sx.propTypes={columns:q.array.isRequired,rows:q.array.isRequired,onAddDiscountRate:q.func.isRequired,dateErrors:q.array};const EE=(e,t)=>{const n=w.useCallback(y=>{var h,x;t({type:"DELETE_EXCHANGE_RATE",payload:y}),(((x=(h=e==null?void 0:e.resource_details)==null?void 0:h.exchange_rates)==null?void 0:x.discount_rates.filter(g=>g.id!==y))||[]).forEach(g=>{g.begin_date&&g.end_date&&t({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:g.id,changes:{start_date_error:"",end_date_error:""}}})})},[t,e]),r=[{key:"rate_type",name:"Rate Type",width:150},{key:"rate",name:"Exchange Rate",width:100,type:"input",tooltip:"Exchange rate is the cost in ACCESS Credits of one resource unit. ACCESS Credits / exchange rate = resource units"},{key:"conversion",name:"Resource Units per ACCESS Credit",width:150},{key:"start_date",name:"Start Date",width:150,type:"date",minDate:new Date().toISOString().split("T")[0]},{key:"end_date",name:"End Date",width:150,type:"date",minDate:new Date().toISOString().split("T")[0]},{key:"actions",name:"",width:80,type:"action",onChange:n}],o=y=>{t({type:"UPDATE_BASE_RATE",payload:y})},s=(y,m)=>{const h={exchange_rate:m},x={};m?x.rate_error="":x.rate_error="Exchange Rate cannot be empty",t({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:y,changes:{...h,...x}}})},i=()=>{var h,x;const y=[];return(((x=(h=e==null?void 0:e.resource_details)==null?void 0:h.exchange_rates)==null?void 0:x.discount_rates)||[]).forEach(g=>{g.start_date_error&&y.push(g.start_date_error),g.end_date_error&&y.push(g.end_date_error),g.rate_error&&y.push(g.rate_error)}),y.filter((g,v)=>g&&g!==""&&(!g.includes("overlaps")||y.indexOf(g)===v))},l=y=>{const m=new Date(y);return new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"numeric",day:"numeric",year:"numeric"}).format(m)},c=(y,m,h,x)=>{const g=new Date(y).getTime(),v=new Date(m).getTime(),b=new Date(h).getTime(),S=new Date(x).getTime();return g<=S&&b<=v},u=(y,m)=>{let h="";if(y.begin_date&&y.end_date){const x=m.filter(g=>g.id!==y.id);for(const g of x)if(g.begin_date&&g.end_date&&c(y.begin_date,y.end_date,g.begin_date,g.end_date)){h=`The selected date range (${l(y.begin_date)} to ${l(y.end_date)}) overlaps with an existing discount rate (${l(g.begin_date)} to ${l(g.end_date)})`;break}}return h},d=(y,m,h)=>{var R,O;const x={start_date:"begin_date",end_date:"end_date"},g=k=>{const P=new Date(k);return new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"numeric",day:"numeric",year:"numeric"}).format(P)},v=((O=(R=e==null?void 0:e.resource_details)==null?void 0:R.exchange_rates)==null?void 0:O.discount_rates)||[],b=v.find(k=>k.id===y);if(!b)return;const S={[x[m]]:h},_={},C=m==="end_date",j=()=>{if(!h)return _[`${m}_error`]="Date cannot be empty or invalid",!1;const k=r.find(V=>V.key===m),P=(k==null?void 0:k.minDate)||"1900-01-01",D=(k==null?void 0:k.maxDate)||"2100-12-31",L=C&&b.begin_date?b.begin_date:P;return h<L?(_[`${m}_error`]=`${m.replace("_"," ")} ${g(h)} cannot be before ${g(L)}`,!1):h>D?(_[`${m}_error`]=`${m.replace("_"," ")} cannot be after ${g(D)}`,!1):(_[`${m}_error`]="",!0)},E=()=>{const k=m==="end_date"?h:b.end_date;if(m==="start_date"&&k){if(h>k)return _.end_date_error=`end date ${g(k)} cannot be before ${g(h)}`,!1;_.end_date_error=_.end_date_error||""}return!0},N=()=>{console.log("validating overlaps");const k=m==="start_date"?h:b.begin_date,P=m==="end_date"?h:b.end_date;if(k&&P){const D=u({...b,begin_date:k,end_date:P},v);return _.start_date_error=D,_.end_date_error=D,!D}return!0};if(!j()){t({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:y,changes:{...S,..._}}});return}E(),N(),C&&!b.begin_date?_.start_date_error="Date cannot be empty or invalid":!C&&!b.end_date&&(_.end_date_error="Date cannot be empty or invalid"),t({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:y,changes:{...S,..._}}})},f=()=>{var _,C;const y=((C=(_=e==null?void 0:e.resource_details)==null?void 0:_.exchange_rates)==null?void 0:C.discount_rates)||[];let h=new Date;y.forEach(j=>{if(j.end_date){const E=new Date(j.end_date);E>h&&(h=E)}});const x=new Date(h);x.setDate(x.getDate()+1);const g=x.toISOString().split("T")[0],v=new Date(x);v.setDate(v.getDate()+15);const b=v.toISOString().split("T")[0],S={id:Date.now(),exchange_rate:"1.0",begin_date:g,end_date:b,is_new:!0};t({type:"ADD_EXCHANGE_RATE",payload:S})};return{exchangeRateColumns:r,exchangeRateRows:(()=>{var b,S;const y=(b=e==null?void 0:e.resource_details)==null?void 0:b.exchange_rates,m=(y==null?void 0:y.base_rate)??"",h=(y==null?void 0:y.discount_rates)||[],x=new Date().toISOString().split("T")[0],g=((S=e==null?void 0:e.resource_details)==null?void 0:S.unit_type)||"Resource Units",v=_=>!_||Number(_)===0?"-":`${(1/Number(_)).toFixed(2)} ${g}`;return[{rate_type:"Base Rate",rate:{value:m.toString(),onChange:_=>o(_)},conversion:v(m)},...h.map(_=>{var N;const C=_.is_new||_.begin_date>x,j=C||_.begin_date==="",E=_.is_new||_.end_date>=x||_.end_date==="";return{rate_type:"Discount",rate:{value:((N=_.exchange_rate)==null?void 0:N.toString())||"",onChange:C?R=>s(_.id,R):null,disabled:!C},conversion:v(_.exchange_rate),start_date:{value:_.begin_date||"",onChange:R=>d(_.id,"start_date",R),error:_.start_date_error,disabled:!j},end_date:{value:_.end_date||"",onChange:R=>d(_.id,"end_date",R),error:_.end_date_error,disabled:!E},actions:{id:_.id}}})]})(),handleAddDiscountRate:f,handleDeleteRate:n,dateErrors:i()}};function _x({resourceId:e,relativeUrlRoot:t,setExternalSubmit:n}){const{state:r,dispatch:o,handleError:s,fetchData:i}=aE(e,t),{isEditing:l,handleEditingChange:c}=dE(),{resourceData:u,loading:d,errors:f,successMessage:p}=r,y=u==null?void 0:u.resource_details,m=u==null?void 0:u.uses_exchange_rates,{allowedActionsOptions:h,resourceTypesOptions:x,unitTypesOptions:g,availableResources:v,availableAllocationTypes:b}=Ff(u),{showAddResourceModal:S,setShowAddResourceModal:_,showAddAllocationTypeModal:C,setShowAddAllocationTypeModal:j,selectedNewResource:E,handleSelectNewResource:N,handleSaveResources:R,selectedNewAllocationType:O,handleSelectNewAllocationType:k,handleSaveAllocationType:P,handleAllowedActionChange:D,handleCommentChange:L,handleRequiredResourceChange:V}=cE(u,y,o),{exchangeRateColumns:Q,exchangeRateRows:T,handleAddDiscountRate:F,dateErrors:A}=EE(u,o),W=uE(y,e,t,i,s,o);w.useEffect(()=>{n&&A.length==0?n(W):n(null)},[W,n,A]);const{allocationColumns:U,allocationRows:Y}=lE(y,v,E,h,D,L,V),[Z,J]=w.useState(!1);return d?a.jsx(Do,{}):f.length>0?a.jsx("div",{children:f.map((X,se)=>a.jsx(je,{color:"danger",dismissable:!0,children:X},se))}):u?a.jsxs("div",{className:"edit-resource",children:[p.message&&a.jsx(je,{color:p.color,dismissable:!0,children:p.message}),a.jsxs("div",{children:[a.jsx("h2",{children:"Resource Propeties"}),a.jsx("div",{style:{marginBottom:"0.75rem"},children:a.jsx("p",{style:{margin:"0",fontStyle:"italic",fontWeight:"bold"},children:"Any modifications to these resource properties will be applied globally and impact resources on other all allocations process"})}),a.jsx(Vf,{resourceDetails:y,resourceTypesOptions:x,unitTypesOptions:g,dispatch:o,isDollarValueEditing:Z,onDollarValueEditingChange:J})]}),m&&a.jsx(Sx,{columns:Q,rows:T,onAddDiscountRate:F,dateErrors:A}),a.jsx(Uf,{headerText:a.jsx("h2",{children:"Allocation Types"}),header:a.jsx(bx,{onAddAllocationType:()=>l&&j(!0),onAddRequiredResource:()=>l&&_(!0)}),isEditing:l,onEditingChange:c,warningMessage:`Incorrect allocations
53
+ process settings can make a resource unavailable for allocation.
54
+ Please proceed with caution.`,children:a.jsx(wx,{columns:U,rows:Y})}),a.jsx(Ka,{show:S,onClose:()=>_(!1),title:"Add Required Resource",onSave:R,buttonText:"Save",children:a.jsx("div",{children:v.map(X=>a.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("input",{type:"checkbox",style:{margin:0},checked:E.includes(X.resource_id),onChange:se=>N(X.resource_id,se.target.checked)}),X.resource_name]},X.resource_id))})}),a.jsx(Ka,{show:C,onClose:()=>j(!1),title:"Add Allocation Type",onSave:P,buttonText:"Save",children:a.jsx(jo,{label:"Select Allocation Type",options:[{value:"",label:"Select an allocation type to add",disabled:!0},...b.map(X=>({value:X.allocation_type_id,label:X.display_name}))],value:O,onChange:k})})]}):a.jsx("div",{children:"No resource data available."})}_x.propTypes={resourceId:q.number.isRequired,relativeUrlRoot:q.string.isRequired,setExternalSubmit:q.func};const Fe={error:"error",pending:"pending",success:"success"},Ga=e=>e.endDate||e.startDate||(e.actions[0]||{}).entryDate,fm=e=>`${{pi:"01",co_pi:"02",allocation_manager:"03"}[e.role]||"04"} ${e.lastName}, ${e.firstName}`,RE=(e,{grantNumber:t,projectManager:n,requestMasterId:r,requests:o,title:s,users:i},l)=>{t=t||r,o.sort((d,f)=>Ga(d)>Ga(f)?-1:1);const c=o.find(d=>d.timeStatus=="current"),u=c?c.requestId:null;e.projects[t]={currentRequestId:u,grantNumber:t,isManager:n,requestsList:o.map(d=>{const{actions:f,allocationType:p,endDate:y,requestId:m,startDate:h,status:x}=d,g=f.map(({entryDate:v})=>v).sort()[0].split("T")[0];return NE(e,d,{entryDate:g,grantNumber:t}),{allocationType:p,endDate:y,entryDate:g,requestId:m,startDate:h,status:x}}),selectedRequestId:u||o[0].requestId,status:l,tab:"overview",title:s,users:i.map(({email:d,firstName:f,lastName:p,organization:y,resources:m,role:h,username:x})=>{const g=m.filter(C=>C.userAccountState=="active"&&C.unitType!="ACCESS Credits"),v=g.map(C=>C.xrasResourceId),b=g.filter(C=>C.resourceProviderState=="pending-active").map(C=>C.xrasResourceId),S=m.filter(C=>C.userAccountState!="active").map(C=>C.xrasResourceId),_={};for(let C of g)_[C.xrasResourceId]=C.resourceUsername;return{email:d,firstName:f,initialResourceIds:[...v],initialRole:h,lastName:p,organization:y,resourceAccountPendingIds:b,resourceAccountInactiveIds:S,resourceIds:v,resourceUsernames:_,role:h,username:x}}).sort((d,f)=>fm(d)<fm(f)?-1:1),usersNewRowIndex:0,usersStatus:null},e.projects[t].currentUser=e.projects[t].users.find(({username:d})=>d==e.username)},NE=(e,{actions:t,allocationType:n,allowedActions:r,endDate:o,requestId:s,requestType:i,resources:l,startDate:c,status:u,timeStatus:d},{entryDate:f,grantNumber:p})=>{l=l||[];const y={actions:t.map(({actionId:x,actionStatusType:g,actionType:v,allowedOperations:b,approvedStartDate:S,detailAvailable:_,entryDate:C,isRequest:j,requestedStartDate:E,resources:N})=>({actionId:x,allowedOperations:b,detailAvailable:_,date:(C||S||E).split("T")[0],deleteStatus:null,isRequest:j,resources:N.map(od).sort(Ha),showDeleteModal:!1,status:g,type:v})),allocationType:n,allowedActions:kE(r),endDate:o,entryDate:f,exchangeActionId:null,exchangeActionEditable:!0,exchangeErrors:[],exchangeStatus:null,grantNumber:p,isMaximize:n=="Maximize",requestId:s,resources:l.map(od).filter(x=>x.isCredit||x.allocated>0).sort(Ha),resourcesReason:"",returnedForCorrections:!!t.find(x=>x.returnedForCorrections),returnedForCorrectionsNotes:t.map(x=>x.adminComments).join(","),showActionsModal:!1,showConfirmModal:!1,showResourcesModal:!1,startDate:c,status:u,timeStatus:d,type:i,usageDetail:null,usageDetailStatus:null,usesCredits:["Explore","Discover","Accelerate"].includes(n)};let m={};for(let x of y.actions)if(["Exchange","Transfer"].includes(x.type)&&["Submitted","Under Review","Incomplete"].includes(x.status)){y.exchangeActionId=x.actionId,y.exchangeActionEditable=x.status==="Incomplete";for(let g of x.resources)m[g.resourceId]=g;for(let g of y.resources)g.resourceId in m&&(g.requested+=m[g.resourceId].requested,delete m[g.resourceId]);y.resources.push(...Object.values(m).map(g=>({...g,isNew:!0})));break}const h=y.allowedActions.Exchange||y.allowedActions.Transfer;if(h){m={};for(let x of h.resources)m[x.resourceId]=x;for(let x of y.resources)x.resourceId in m&&(x.questions=m[x.resourceId].questions||[])}y.resources.length&&!y.resources.find(x=>x.isCredit)&&y.resources.push(h&&h.resources.find(x=>x.isCredit)||{allocated:0,decimalPlaces:0,exchangeRates:{base:{type:"base",unitCost:1},current:{type:"base",unitCost:1}},icon:"credit",isActive:!0,isBoolean:!1,isCredit:!0,isFake:!0,name:"Credit Equivalents",requested:0,requires:[],resourceId:0,unit:"Credit Equivalents",used:0}),e.requests[s]=y},kE=e=>{const t={};for(let{actionType:n,allowedResources:r,opportunityId:o,opportunityName:s}of e){let i={name:n,resources:r.map(od).sort(Ha),opportunityId:o,opportunityName:s};n in t?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(i)):t[n]=i}return"Transfer"in t&&!("Exchange"in t)&&(t.Exchange=t.Transfer),t},pm=(e,t)=>e.relativeOrder<t.relativeOrder?-1:1,od=({allocationState:e,amountAllocated:t,amountApproved:n,amountRequested:r,amountUsed:o,attributeSets:s,baseExchangeRate:i,currentExchangeRate:l,currentExchangeRateEndDate:c,currentExchangeRateType:u,dependentResourceXrasIds:d,displayResourceName:f,endDate:p,exchangeRate:y,organizationId:m,organizationFaviconUrl:h,organizationName:x,resourceRepositoryKey:g,resourceType:v,startDate:b,unitType:S,userGuideUrl:_,xrasResourceId:C})=>{const j=S=="[Yes = 1, No = 0]",E=S=="ACCESS Credits";return{allocated:ho(om(t,n)||0,0,"floor"),decimalPlaces:0,endDate:p,exchangeRates:{base:{type:"base",unitCost:j?0:i||y},current:{endDate:c,type:(u||"base").toLowerCase(),unitCost:j?0:l||y}},icon:E?"credit":v.toLowerCase(),isActive:e=="active",isBoolean:j,isCredit:E,isFake:!1,isUnderReview:!1,isNew:!1,name:f.trim(),questions:(s||[]).filter(({isActive:N})=>N).sort(pm).map(N=>({attributeSetId:N.attributeSetId,attributes:N.attributes.sort(pm).map(R=>({required:R.isRequired,resourceAttributeId:R.resourceAttributeId,label:R.attributeName})),fieldType:N.attributeSetRelationType,label:N.attributeSetName,resourceId:C,values:[]})),resourceProvider:{organizationId:m,name:x,favicon:h},requested:ho(om(r,t)||0,0,"floor"),requires:d||[],resourceId:C,resourceRepositoryKey:g,startDate:b,type:v,unit:S,used:ho(o||0,0,"ceil"),userGuideUrl:_}},Cx=(e,t)=>(e=[...e].sort(),t=[...t].sort(),e.length===t.length&&e.every((n,r)=>n===t[r])),Ti=(e,t)=>{const n=Le(e,t);for(let r of n.actions)if(r.actionId==t.payload.actionId)return r},on=(e,t)=>e.projects[t.payload.grantNumber],Le=(e,t)=>e.requests[t.payload.requestId],OE=(e,t)=>on(e,t).users.find(({username:n})=>n==t.payload.username),sd=({allocated:e,isActive:t,isCredit:n})=>e>0&&t&&!n,hm=e=>e.hasChanges=e.isNew||e.role!=e.initialRole||!Cx(e.resourceIds,e.initialResourceIds),jx=()=>document.querySelector("meta[name=csrf-token]").content,TE=async e=>{const t=new URLSearchParams({q:e});return(await(await fetch(`${te.routes.search_people_path()}?${t}`)).json()).map(({email:r,first_name:o,last_name:s,username:i,organization:l})=>({email:r,firstName:o,lastName:s,username:i,organization:l}))},na=Qe("api/fetchProjectsList",async(e,{rejectWithValue:t})=>{const n=await fetch(`${te.routes.projects_path()}.json`);return n.status==200?{username:e,projectsList:(await n.json()).result}:t({})}),Ex=Qe("api/fetchProjectDetail",async({grantNumber:e},{rejectWithValue:t})=>t({grantNumber:e})),Rx=Qe("api/fetchRequestDetail",async({grantNumber:e,requestId:t},{rejectWithValue:n})=>n({grantNumber:e,requestId:t})),ra=Qe("api/fetchUsageDetail",async({grantNumber:e,requestId:t,resourceRepositoryKey:n},{rejectWithValue:r})=>{const o=await fetch(`${te.routes.usage_detail_path(e,n)}.json`);return o.status==200?{grantNumber:e,requestId:t,resourceRepositoryKey:n,usageDetail:(await o.json()).usage}:r({grantNumber:e,requestId:t,resourceRepositoryKey:n})}),oa=Qe("api/deleteAction",async({actionId:e,requestId:t},{getState:n,rejectWithValue:r})=>{const o=n().api.requests[t],s=o.actions.find(u=>u.actionId==e);if(!s||!s.allowedOperations||!s.allowedOperations.includes("Delete"))return r({actionId:e,requestId:t});const i=te.routes.request_action_path(o.requestId,s.actionId),l={_method:"delete",authenticity_token:jx()};return(await fetch(i,{body:Object.keys(l).map(u=>`${encodeURIComponent(u)}=${encodeURIComponent(l[u])}`).join("&"),headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})).status==200?{actionId:e,requestId:t}:r({actionId:e,requestId:t})}),sa=Qe("api/saveResources",async({requestId:e},{getState:t,rejectWithValue:n})=>{const r=t().api.requests[e],o={},s={};for(let{allocated:f,isFake:p,questions:y,requested:m,resourceId:h}of r.resources)if(m!=f&&!p){o[h]={resource_id:h,requested:1,amount:m-f};for(let{attributes:x,values:g,fieldType:v}of y)if(g.length){let b=x[0].resourceAttributeId,S=["drop_down","single_sel","multi_sel"].includes(v),C={resource_attribute_id:v=="multi_sel"?g:S?g[0]:b};S||(C.attribute_value=g[0]),s[b]=C}}const i={authenticity_token:jx(),request_action:{action_type:r.allowedActions.Exchange.name,user_comments:r.resourcesReason,resource_attributes:s},requested_resources:o},l=r.exchangeActionId?te.routes.request_action_path(r.requestId,r.exchangeActionId):te.routes.request_actions_path(r.requestId),c=await fetch(`${l}.json`,{body:JSON.stringify(i),headers:{"Content-Type":"application/json"},method:r.exchangeActionId?"PUT":"POST"});let u,d;try{const f=await c.json();u=f.errors,d=f.actionId}catch{u=["Unable to save exchange"],d=null}return c.status==200?{requestId:e,exchangeActionId:d}:n({requestId:e,exchangeActionId:d,errors:u})}),ia=Qe("api/saveUsers",async({grantNumber:e},{getState:t,rejectWithValue:n})=>{const o=t().api.projects[e].users,s=o.filter(u=>!Cx(u.resourceIds,u.initialResourceIds)||u.isNew).length==0?[]:o.map(u=>({username:u.username,resources:u.resourceIds})),i=o.filter(u=>u.role!=u.initialRole).map(u=>({username:u.username,role:Zu[u.role],initialRole:Zu[u.initialRole]})),l={grantNumber:e,resourceChanges:s,roleChanges:i,authenticity_token:document.querySelector("meta[name=csrf-token]").content};return(await fetch(te.routes.projects_save_users_path(),{method:"POST",body:JSON.stringify(l),headers:{"Content-Type":"application/json"}})).status==200?{grantNumber:e}:n({grantNumber:e})}),Nx=ri({name:"api",initialState:{error:null,projectsList:[],projectListLoading:!1,projects:{},requests:{},username:null},reducers:{addResource:(e,t)=>{const{resourceId:n}=t.payload,r=Le(e,t),o=r.allowedActions.Exchange;if(!o)return;const s={};for(let c of o.resources)s[c.resourceId]=c;const i=r.resources.map(c=>c.resourceId),l=[n,...s[n].requires||[]].filter(c=>c in s&&!i.includes(c));r.resources.push(...l.map(c=>({...s[c],allocated:0,isNew:!0,used:0,requested:0})))},addUser:(e,t)=>{const n=on(e,t),r=e.requests[n.currentRequestId],{user:o}=t.payload;n.users.map(({username:s})=>s).includes(o.username)||(n.users.push({...o,resourceIds:r.resources.filter(sd).map(s=>s.resourceId),role:"user",initialResourceIds:[],initialRole:"user",hasChanges:!0,isNew:!0}),n.usersNewRowIndex=n.users.length-1)},closeUsageDetailModal:(e,t)=>{const n=Le(e,t);n.usageDetail=null,n.usageDetailStatus=null},resetResources:(e,t)=>{const n=Le(e,t);n.resourcesReason="",n.resources=n.resources.filter(r=>r.isCredit||r.allocated).map(r=>({...r,requested:r.allocated}))},resetUsers:(e,t)=>{const n=on(e,t);n.users=n.users.filter(({isNew:r})=>!r).map(r=>({...r,resourceIds:[...r.initialResourceIds],role:r.initialRole,hasChanges:!1}))},setRequest:(e,t)=>{const n=on(e,t);n&&(n.selectedRequestId=t.payload.requestId,n.tab=="users"&&n.currentRequestId!=n.selectedRequestId&&(n.tab="overview"))},setResourceQuestionValues:(e,t)=>{const{attributeSetId:n,resourceId:r,values:o}=t.payload,s=Le(e,t);for(let i of s.resources)if(i.resourceId==r){for(let l of i.questions)if(l.attributeSetId==n){l.values=o;break}break}},setResourceRequest:(e,t)=>{const{resourceId:n,requested:r}=t.payload,o=Le(e,t);let s,i=0;for(let l of o.resources)l.resourceId==n&&(l.requested=r),l.isCredit?(s=l,i+=l.allocated*l.exchangeRates.base.unitCost):i-=ed(l,"difference");s&&(s.requested=ho(i,s.decimalPlaces,"floor"))},setResourcesReason:(e,t)=>{const n=Le(e,t);n.resourcesReason=t.payload.reason},setTab:(e,t)=>{const n=on(e,t);n&&(n.tab=t.payload.tab)},setUserRole:(e,t)=>{const n=OE(e,t);n.role=t.payload.role,hm(n)},toggleActionsModal:(e,t)=>{const n=Le(e,t);n.showActionsModal=!n.showActionsModal},toggleConfirmModal:(e,t)=>{const n=Le(e,t);n.showConfirmModal=!n.showConfirmModal},toggleDeleteModal:(e,t)=>{const n=Ti(e,t);n.showDeleteModal=!n.showDeleteModal},toggleResourcesModal:(e,t)=>{const n=Le(e,t);n.showResourcesModal=!n.showResourcesModal},toggleUsersResources:(e,t)=>{const n=on(e,t),r=e.requests[n.currentRequestId],{username:o,resourceId:s,checked:i}=t.payload,l=o?[n.users.find(c=>c.username==o)]:n.users;for(let c of l){if(s){let u=c.resourceIds.indexOf(s);i&&u==-1?c.resourceIds.push(s):!i&&u>=0&&c.resourceIds.splice(u,1)}else c.resourceIds=i?r.resources.filter(sd).map(({resourceId:u})=>u):[];hm(c)}}},extraReducers:e=>{e.addCase(na.pending,t=>{t.projectListLoading=!0}).addCase(na.fulfilled,(t,n)=>{n.payload.projectsList.sort((r,o)=>Ga(r.requests[0])>Ga(o.requests[0])?-1:1),t.username=n.payload.username,t.projectsList=n.payload.projectsList.map(r=>{const{grantNumber:o,requestMasterId:s,requests:i,status:l,title:c}=r,d=r.requests.filter(f=>f.actions.filter(p=>p.returnedForCorrections).length>0).length>0?"Returned for Corrections":l||i&&(i.find(({timeStatus:f})=>f=="current")?"Active":i[0].timeStatus=="past"?"Inactive":i[0].status);return i&&RE(t,r,d),{grantNumber:o||s,status:d,title:c}}),t.projectListLoading=!1}).addCase(na.rejected,t=>{t.error="Failed to load project list.",t.projectListLoading=!1}).addCase(Ex.rejected,(t,n)=>{const{grantNumber:r}=n.payload;t.projects[r]={error:"Failed to load project data."}}).addCase(Rx.rejected,(t,n)=>{const{requestId:r}=n.payload;t.requests[r]={error:"Failed to load request data."}}).addCase(ra.pending,(t,n)=>{const r=Le(t,{payload:n.meta.arg});r.usageDetailStatus=Fe.pending}).addCase(ra.fulfilled,(t,n)=>{const r=Le(t,n);r.usageDetail=n.payload.usageDetail,r.usageDetailStatus=Fe.success}).addCase(ra.rejected,(t,n)=>{const r=Le(t,n);r.usageDetailStatus=Fe.error}).addCase(oa.pending,(t,n)=>{const r=Ti(t,{payload:n.meta.arg});r.deleteStatus=Fe.pending}).addCase(oa.fulfilled,(t,n)=>{const r=Le(t,n),o=Ti(t,n);o.isRequest?(r.error="This request has been deleted.",o.allowedOperations=[]):r.actions=r.actions.filter(s=>s.actionId!=o.actionId),o.deleteStatus=Fe.success,o.showDeleteModal=!1}).addCase(oa.rejected,(t,n)=>{const r=Ti(t,n);r.deleteStatus=Fe.error}).addCase(sa.pending,(t,n)=>{const r=Le(t,{payload:n.meta.arg});r.exchangeStatus=Fe.pending,r.showResourcesModal=!1}).addCase(sa.fulfilled,(t,n)=>{const r=Le(t,n);r.exchangeActionId=n.payload.exchangeActionId,r.exchangeActionEditable=!1,r.exchangeErrors=[],r.exchangeStatus=Fe.success}).addCase(sa.rejected,(t,n)=>{const r=Le(t,n);r.exchangeActionId=n.payload.exchangeActionId,r.exchangeActionEditable=!0,r.exchangeErrors=n.payload.errors,r.exchangeStatus=Fe.error}).addCase(ia.pending,(t,n)=>{const r=on(t,{payload:n.meta.arg});r.usersStatus=Fe.pending}).addCase(ia.fulfilled,(t,n)=>{const r=on(t,n);r.users=r.users.map(o=>({...o,initialResourceIds:[...o.resourceIds],initialRole:o.role,hasChanges:!1,isNew:!1})),r.usersStatus=Fe.success}).addCase(ia.rejected,(t,n)=>{const r=on(t,n);r.usersStatus=Fe.error})}}),PE=e=>e.api.error,IE=e=>e.api.projectsList,$E=e=>e.api.projectListLoading,AE=(e,t)=>on(e.api,{payload:{grantNumber:t}}),ME=(e,t)=>Le(e.api,{payload:{requestId:t}}),DE=e=>e.api.username,{addResource:LE,addUser:FE,closeUsageDetailModal:UE,hideAlert:lD,resetResources:VE,resetUsers:BE,setRequest:zE,setResourceQuestionValues:qE,setResourceRequest:HE,setResourcesReason:WE,setTab:KE,setUserRole:GE,toggleActionsModal:YE,toggleConfirmModal:QE,toggleDeleteModal:XE,toggleResourcesModal:ZE,toggleUsersResources:JE}=Nx.actions,eR=Nx.reducer,tR=e=>{const t=fe(PE),n=fe($E),r=fe(IE),o=it();return w.useEffect(()=>{o(na(e))},[]),{error:t,loading:n,projects:r}},jt=(e,t)=>{const n=fe(s=>AE(s,e)),r=fe(DE),o=it();return w.useEffect(()=>{!n&&!t&&o(Ex({grantNumber:e}))},[t]),{project:n,addUser:s=>o(FE({grantNumber:e,user:s})),resetUsers:()=>o(BE({grantNumber:e})),saveUsers:()=>o(ia({grantNumber:e})),setRequest:s=>o(zE({grantNumber:e,requestId:s})),setTab:s=>o(KE({grantNumber:e,tab:s})),setUserRole:(s,i)=>o(GE({grantNumber:e,username:s,role:i})),statuses:Fe,toggleUsersResources:(s,i,l)=>o(JE({grantNumber:e,username:i,resourceId:l,checked:s})),username:r}},at=(e,t)=>{const n=fe(o=>ME(o,e)),r=it();return w.useEffect(()=>{n||r(Rx({grantNumber:t,requestId:e}))},[t,e]),{request:n,addResource:o=>r(LE({requestId:e,resourceId:o})),closeUsageDetailModal:()=>r(UE({requestId:e})),deleteAction:o=>r(oa({actionId:o,requestId:e})),openUsageDetailModal:o=>r(ra({grantNumber:n.grantNumber,requestId:e,resourceRepositoryKey:o})),resetResources:()=>r(VE({requestId:e})),saveResources:()=>r(sa({requestId:e})),setResourceQuestionValues:(o,s,i)=>r(qE({requestId:e,resourceId:o,attributeSetId:s,values:i})),setResourceRequest:(o,s)=>r(HE({requestId:e,resourceId:o,requested:s})),setResourcesReason:o=>r(WE({requestId:e,reason:o})),statuses:Fe,toggleActionsModal:()=>r(YE({requestId:e})),toggleConfirmModal:()=>r(QE({requestId:e})),toggleDeleteModal:o=>r(XE({requestId:e,actionId:o})),toggleResourcesModal:()=>r(ZE({requestId:e}))}},nR="_project_qqnbz_1",rR="_expand_qqnbz_5",mm={project:nR,expand:rR},oR="_returnedForCorrectionsNotes_jujbd_1",sR={returnedForCorrectionsNotes:oR};function kx(e,t,n){const r=w.useRef(e!==void 0),[o,s]=w.useState(t),i=e!==void 0,l=r.current;return r.current=i,!i&&l&&o!==t&&s(t),[i?e:o,w.useCallback((...c)=>{const[u,...d]=c;let f=n==null?void 0:n(u,...d);return s(u),f},[n])]}const Ya={prefix:String(Math.round(Math.random()*1e10)),current:0},Ox=Se.createContext(Ya),iR=Se.createContext(!1);let aR=!!(typeof window<"u"&&window.document&&window.document.createElement),Dc=new WeakMap;function lR(e=!1){let t=w.useContext(Ox),n=w.useRef(null);if(n.current===null&&!e){var r,o;let s=(o=Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let i=Dc.get(s);i==null?Dc.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==i.state&&(t.current=i.id,Dc.delete(s))}n.current=++t.current}return n.current}function cR(e){let t=w.useContext(Ox);t===Ya&&!aR&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=lR(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function uR(e){let t=Se.useId(),[n]=w.useState(hR()),r=n?"react-aria":`react-aria${Ya.prefix}`;return e||`${r}-${t}`}const Tx=typeof Se.useId=="function"?uR:cR;function dR(){return!1}function fR(){return!0}function pR(e){return()=>{}}function hR(){return typeof Se.useSyncExternalStore=="function"?Se.useSyncExternalStore(pR,dR,fR):w.useContext(iR)}const mR=w.createContext(null),Lo=mR,gR=w.createContext(null),Mr=(e,t=null)=>e!=null?String(e):t||null,Mn=gR;function vR(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e},[e]),t}function ke(e){const t=vR(e);return w.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const gm=e=>!e||typeof e=="function"?e:t=>{e.current=t};function yR(e,t){const n=gm(e),r=gm(t);return o=>{n&&n(o),r&&r(o)}}function hn(e,t){return w.useMemo(()=>yR(e,t),[e,t])}function zf({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:o}){const s=w.useRef(null),i=w.useRef(t),l=ke(n);w.useEffect(()=>{t?i.current=!0:l(s.current)},[t,l]);const c=hn(s,e.ref),u=w.cloneElement(e,{ref:c});return t?u:o||!i.current&&r?null:u}const xR=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],bR=["activeKey","getControlledId","getControllerId"],wR=["as"];function id(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Px(e){let{active:t,eventKey:n,mountOnEnter:r,transition:o,unmountOnExit:s,role:i="tabpanel",onEnter:l,onEntering:c,onEntered:u,onExit:d,onExiting:f,onExited:p}=e,y=id(e,xR);const m=w.useContext(Lo);if(!m)return[Object.assign({},y,{role:i}),{eventKey:n,isActive:t,mountOnEnter:r,transition:o,unmountOnExit:s,onEnter:l,onEntering:c,onEntered:u,onExit:d,onExiting:f,onExited:p}];const{activeKey:h,getControlledId:x,getControllerId:g}=m,v=id(m,bR),b=Mr(n);return[Object.assign({},y,{role:i,id:x(n),"aria-labelledby":g(n)}),{eventKey:n,isActive:t==null&&b!=null?Mr(h)===b:t,transition:o||v.transition,mountOnEnter:r??v.mountOnEnter,unmountOnExit:s??v.unmountOnExit,onEnter:l,onEntering:c,onEntered:u,onExit:d,onExiting:f,onExited:p}]}const Ix=w.forwardRef((e,t)=>{let{as:n="div"}=e,r=id(e,wR);const[o,{isActive:s,onEnter:i,onEntering:l,onEntered:c,onExit:u,onExiting:d,onExited:f,mountOnEnter:p,unmountOnExit:y,transition:m=zf}]=Px(r);return a.jsx(Lo.Provider,{value:null,children:a.jsx(Mn.Provider,{value:null,children:a.jsx(m,{in:s,onEnter:i,onEntering:l,onEntered:c,onExit:u,onExiting:d,onExited:f,mountOnEnter:p,unmountOnExit:y,children:a.jsx(n,Object.assign({},o,{ref:t,hidden:!s,"aria-hidden":!s}))})})})});Ix.displayName="TabPanel";const $x=e=>{const{id:t,generateChildId:n,onSelect:r,activeKey:o,defaultActiveKey:s,transition:i,mountOnEnter:l,unmountOnExit:c,children:u}=e,[d,f]=kx(o,s,r),p=Tx(t),y=w.useMemo(()=>n||((h,x)=>p?`${p}-${x}-${h}`:null),[p,n]),m=w.useMemo(()=>({onSelect:f,activeKey:d,transition:i,mountOnEnter:l||!1,unmountOnExit:c||!1,getControlledId:h=>y(h,"tabpane"),getControllerId:h=>y(h,"tab")}),[f,d,i,l,c,y]);return a.jsx(Lo.Provider,{value:m,children:a.jsx(Mn.Provider,{value:f||null,children:u})})};$x.Panel=Ix;const Ax=$x;var Mx={exports:{}};/*!
55
+ Copyright (c) 2018 Jed Watson.
56
+ Licensed under the MIT License (MIT), see
57
+ http://jedwatson.github.io/classnames
58
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(s=o(s,r(l)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var i="";for(var l in s)t.call(s,l)&&s[l]&&(i=o(i,l));return i}function o(s,i){return i?s?s+" "+i:s+i:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Mx);var SR=Mx.exports;const ne=Xs(SR);function qf(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Qa(e,t){return Qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Qa(e,t)}function _R(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qa(e,t)}const vm={disabled:!1},Dx=Se.createContext(null);var CR=function(t){return t.scrollTop},ds="unmounted",Wn="exited",Sn="entering",Yn="entered",Xa="exiting",Un=function(e){_R(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=Wn,s.appearStatus=Sn):c=Yn:r.unmountOnExit||r.mountOnEnter?c=ds:c=Wn,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===ds?{status:Wn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Sn&&i!==Yn&&(s=Sn):(i===Sn||i===Yn)&&(s=Xa)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,l;return s=i=l=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Sn){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:wr.findDOMNode(this);i&&CR(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wn&&this.setState({status:ds})},n.performEnter=function(o){var s=this,i=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[wr.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!o&&!i||vm.disabled){this.safeSetState({status:Yn},function(){s.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Sn},function(){s.props.onEntering(u,d),s.onTransitionEnd(p,function(){s.safeSetState({status:Yn},function(){s.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:wr.findDOMNode(this);if(!s||vm.disabled){this.safeSetState({status:Wn},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Xa},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Wn},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:wr.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ds)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=qf(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Se.createElement(Dx.Provider,{value:null},typeof i=="function"?i(o,l):Se.cloneElement(Se.Children.only(i),l))},t}(Se.Component);Un.contextType=Dx;Un.propTypes={};function Hr(){}Un.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Hr,onEntering:Hr,onEntered:Hr,onExit:Hr,onExiting:Hr,onExited:Hr};Un.UNMOUNTED=ds;Un.EXITED=Wn;Un.ENTERING=Sn;Un.ENTERED=Yn;Un.EXITING=Xa;const jR=Un;function Fo(e){return e&&e.ownerDocument||document}function ER(e){var t=Fo(e);return t&&t.defaultView||window}function RR(e,t){return ER(e).getComputedStyle(e,t)}var NR=/([A-Z])/g;function kR(e){return e.replace(NR,"-$1").toLowerCase()}var OR=/^ms-/;function Pi(e){return kR(e).replace(OR,"-ms-")}var TR=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function PR(e){return!!(e&&TR.test(e))}function kn(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Pi(t))||RR(e).getPropertyValue(Pi(t));Object.keys(t).forEach(function(o){var s=t[o];!s&&s!==0?e.style.removeProperty(Pi(o)):PR(o)?r+=o+"("+s+") ":n+=Pi(o)+": "+s+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}const Uo=!!(typeof window<"u"&&window.document&&window.document.createElement);var ad=!1,ld=!1;try{var Lc={get passive(){return ad=!0},get once(){return ld=ad=!0}};Uo&&(window.addEventListener("test",Lc,Lc),window.removeEventListener("test",Lc,!0))}catch{}function Hf(e,t,n,r){if(r&&typeof r!="boolean"&&!ld){var o=r.once,s=r.capture,i=n;!ld&&o&&(i=n.__once||function l(c){this.removeEventListener(t,l,s),n.call(this,c)},n.__once=i),e.addEventListener(t,i,ad?r:s)}e.addEventListener(t,n,r)}function cd(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function En(e,t,n,r){return Hf(e,t,n,r),function(){cd(e,t,n,r)}}function IR(e,t,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}function $R(e){var t=kn(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function AR(e,t,n){n===void 0&&(n=5);var r=!1,o=setTimeout(function(){r||IR(e,"transitionend",!0)},t+n),s=En(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),s()}}function Lx(e,t,n,r){n==null&&(n=$R(e)||0);var o=AR(e,n,r),s=En(e,"transitionend",t);return function(){o(),s()}}function ym(e,t){const n=kn(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Fx(e,t){const n=ym(e,"transitionDuration"),r=ym(e,"transitionDelay"),o=Lx(e,s=>{s.target===e&&(o(),t(s))},n+r)}function Ux(e){e.offsetHeight}function Za(e){return e&&"setState"in e?wr.findDOMNode(e):e??null}const MR=Se.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,onExited:s,addEndListener:i,children:l,childRef:c,...u},d)=>{const f=w.useRef(null),p=hn(f,c),y=C=>{p(Za(C))},m=C=>j=>{C&&f.current&&C(f.current,j)},h=w.useCallback(m(e),[e]),x=w.useCallback(m(t),[t]),g=w.useCallback(m(n),[n]),v=w.useCallback(m(r),[r]),b=w.useCallback(m(o),[o]),S=w.useCallback(m(s),[s]),_=w.useCallback(m(i),[i]);return a.jsx(jR,{ref:d,...u,onEnter:h,onEntered:g,onEntering:x,onExit:v,onExited:S,onExiting:b,addEndListener:_,nodeRef:f,children:typeof l=="function"?(C,j)=>l(C,{...j,ref:y}):Se.cloneElement(l,{ref:y})})}),Vx=MR,DR={[Sn]:"show",[Yn]:"show"},Bx=w.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...o},s)=>{const i={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},l=w.useCallback((c,u)=>{Ux(c),r==null||r(c,u)},[r]);return a.jsx(Vx,{ref:s,addEndListener:Fx,...i,onEnter:l,childRef:t.ref,children:(c,u)=>w.cloneElement(t,{...u,className:ne("fade",e,t.props.className,DR[c],n[c])})})});Bx.displayName="Fade";const Eo=Bx;function Wf(e){return typeof e=="boolean"?e?Eo:zf:e}const zx=({transition:e,...t})=>a.jsx(Ax,{...t,transition:Wf(e)});zx.displayName="TabContainer";const LR=zx,FR=["xxl","xl","lg","md","sm","xs"],UR="xs",qx=w.createContext({prefixes:{},breakpoints:FR,minBreakpoint:UR});function de(e,t){const{prefixes:n}=w.useContext(qx);return e||n[t]||t}function $l(){const{dir:e}=w.useContext(qx);return e==="rtl"}const Hx=w.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=de(t,"tab-content"),a.jsx(n,{ref:o,className:ne(e,t),...r})));Hx.displayName="TabContent";const Wx=Hx,Kx=w.forwardRef(({bsPrefix:e,transition:t,...n},r)=>{const[{className:o,as:s="div",...i},{isActive:l,onEnter:c,onEntering:u,onEntered:d,onExit:f,onExiting:p,onExited:y,mountOnEnter:m,unmountOnExit:h,transition:x=Eo}]=Px({...n,transition:Wf(t)}),g=de(e,"tab-pane");return a.jsx(Lo.Provider,{value:null,children:a.jsx(Mn.Provider,{value:null,children:a.jsx(x,{in:l,onEnter:c,onEntering:u,onEntered:d,onExit:f,onExiting:p,onExited:y,mountOnEnter:m,unmountOnExit:h,children:a.jsx(s,{...i,ref:r,className:ne(o,g,l&&"active")})})})})});Kx.displayName="TabPane";const Gx=Kx,VR={eventKey:q.oneOfType([q.string,q.number]),title:q.node.isRequired,disabled:q.bool,tabClassName:q.string,tabAttrs:q.object},Yx=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};Yx.propTypes=VR;const Ii=Object.assign(Yx,{Container:LR,Content:Wx,Pane:Gx});function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}function xm(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function BR(e){var t=zR(e,"string");return typeof t=="symbol"?t:String(t)}function zR(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qx(e,t,n){var r=w.useRef(e!==void 0),o=w.useState(t),s=o[0],i=o[1],l=e!==void 0,c=r.current;return r.current=l,!l&&c&&s!==t&&i(t),[l?e:s,w.useCallback(function(u){for(var d=arguments.length,f=new Array(d>1?d-1:0),p=1;p<d;p++)f[p-1]=arguments[p];n&&n.apply(void 0,[u].concat(f)),i(u)},[n])]}function Al(e,t){return Object.keys(t).reduce(function(n,r){var o,s=n,i=s[xm(r)],l=s[r],c=qf(s,[xm(r),r].map(BR)),u=t[r],d=Qx(l,i,e[u]),f=d[0],p=d[1];return G({},c,(o={},o[r]=f,o[u]=p,o))},e)}var bm={exports:{}},ud={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){function o(i,l,c,u,d,f){var p=u||"<<anonymous>>",y=f||c;if(l[c]==null)return i?new Error("Required "+d+" `"+y+"` was not specified "+("in `"+p+"`.")):null;for(var m=arguments.length,h=Array(m>6?m-6:0),x=6;x<m;x++)h[x-6]=arguments[x];return r.apply(void 0,[l,c,p,d,y].concat(h))}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}e.exports=t.default})(ud,ud.exports);var qR=ud.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=qR,r=o(n);function o(i){return i&&i.__esModule?i:{default:i}}function s(){for(var i=arguments.length,l=Array(i),c=0;c<i;c++)l[c]=arguments[c];function u(){for(var d=arguments.length,f=Array(d),p=0;p<d;p++)f[p]=arguments[p];var y=null;return l.forEach(function(m){if(y==null){var h=m.apply(void 0,f);h!=null&&(y=h)}}),y}return(0,r.default)(u)}e.exports=t.default})(bm,bm.exports);var HR=Function.prototype.bind.call(Function.prototype.call,[].slice);function _n(e,t){return HR(e.querySelectorAll(t))}function Xx(){const[,e]=w.useReducer(t=>!t,!1);return e}const Zx=w.createContext(null);Zx.displayName="NavContext";const Kf=Zx,WR="data-rr-ui-",KR="rrUi";function Vo(e){return`${WR}${e}`}function GR(e){return`${KR}${e}`}const YR=["as","disabled"];function QR(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function XR(e){return!e||e.trim()==="#"}function Gf({tagName:e,disabled:t,href:n,target:r,rel:o,role:s,onClick:i,tabIndex:l=0,type:c}){e||(n!=null||r!=null||o!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:c||"button",disabled:t},u];const d=p=>{if((t||e==="a"&&XR(n))&&p.preventDefault(),t){p.stopPropagation();return}i==null||i(p)},f=p=>{p.key===" "&&(p.preventDefault(),d(p))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:s??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:d,onKeyDown:f},u]}const Yf=w.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=QR(e,YR);const[s,{tagName:i}]=Gf(Object.assign({tagName:n,disabled:r},o));return a.jsx(i,Object.assign({},o,s,{ref:t}))});Yf.displayName="Button";const ZR=["as","active","eventKey"];function JR(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Jx({key:e,onClick:t,active:n,id:r,role:o,disabled:s}){const i=w.useContext(Mn),l=w.useContext(Kf),c=w.useContext(Lo);let u=n;const d={role:o};if(l){!o&&l.role==="tablist"&&(d.role="tab");const f=l.getControllerId(e??null),p=l.getControlledId(e??null);d[Vo("event-key")]=e,d.id=f||r,u=n==null&&e!=null?l.activeKey===e:n,(u||!(c!=null&&c.unmountOnExit)&&!(c!=null&&c.mountOnEnter))&&(d["aria-controls"]=p)}return d.role==="tab"&&(d["aria-selected"]=u,u||(d.tabIndex=-1),s&&(d.tabIndex=-1,d["aria-disabled"]=!0)),d.onClick=ke(f=>{s||(t==null||t(f),e!=null&&i&&!f.isPropagationStopped()&&i(e,f))}),[d,{isActive:u}]}const e0=w.forwardRef((e,t)=>{let{as:n=Yf,active:r,eventKey:o}=e,s=JR(e,ZR);const[i,l]=Jx(Object.assign({key:Mr(o,s.href),active:r},s));return i[Vo("active")]=l.isActive,a.jsx(n,Object.assign({},s,i,{ref:t}))});e0.displayName="NavItem";const eN=e0,tN=["as","onSelect","activeKey","role","onKeyDown"];function nN(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const wm=()=>{},Sm=Vo("event-key"),t0=w.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:o,role:s,onKeyDown:i}=e,l=nN(e,tN);const c=Xx(),u=w.useRef(!1),d=w.useContext(Mn),f=w.useContext(Lo);let p,y;f&&(s=s||"tablist",o=f.activeKey,p=f.getControlledId,y=f.getControllerId);const m=w.useRef(null),h=b=>{const S=m.current;if(!S)return null;const _=_n(S,`[${Sm}]:not([aria-disabled=true])`),C=S.querySelector("[aria-selected=true]");if(!C||C!==document.activeElement)return null;const j=_.indexOf(C);if(j===-1)return null;let E=j+b;return E>=_.length&&(E=0),E<0&&(E=_.length-1),_[E]},x=(b,S)=>{b!=null&&(r==null||r(b,S),d==null||d(b,S))},g=b=>{if(i==null||i(b),!f)return;let S;switch(b.key){case"ArrowLeft":case"ArrowUp":S=h(-1);break;case"ArrowRight":case"ArrowDown":S=h(1);break;default:return}S&&(b.preventDefault(),x(S.dataset[GR("EventKey")]||null,b),u.current=!0,c())};w.useEffect(()=>{if(m.current&&u.current){const b=m.current.querySelector(`[${Sm}][aria-selected=true]`);b==null||b.focus()}u.current=!1});const v=hn(t,m);return a.jsx(Mn.Provider,{value:x,children:a.jsx(Kf.Provider,{value:{role:s,activeKey:Mr(o),getControlledId:p||wm,getControllerId:y||wm},children:a.jsx(n,Object.assign({},l,{onKeyDown:g,ref:v,role:s}))})})});t0.displayName="Nav";const rN=Object.assign(t0,{Item:eN}),n0=w.createContext(null);n0.displayName="NavbarContext";const r0=n0,o0=w.createContext(null);o0.displayName="CardHeaderContext";const oN=o0,s0=w.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=de(t,"nav-item"),a.jsx(n,{ref:o,className:ne(e,t),...r})));s0.displayName="NavItem";const i0=s0;function Ja(){return w.useState(null)}function sN(e,t,n,r=!1){const o=ke(n);w.useEffect(()=>{const s=typeof e=="function"?e():e;return s.addEventListener(t,o,r),()=>s.removeEventListener(t,o,r)},[e])}function Qf(){const e=w.useRef(!0),t=w.useRef(()=>e.current);return w.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function a0(e){const t=w.useRef(null);return w.useEffect(()=>{t.current=e}),t.current}const iN=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",aN=typeof document<"u",el=aN||iN?w.useLayoutEffect:w.useEffect,lN=["onKeyDown"];function cN(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function uN(e){return!e||e.trim()==="#"}const l0=w.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=cN(e,lN);const[o]=Gf(Object.assign({tagName:"a"},r)),s=ke(i=>{o.onKeyDown(i),n==null||n(i)});return uN(r.href)||r.role==="button"?a.jsx("a",Object.assign({ref:t},r,o,{onKeyDown:s})):a.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});l0.displayName="Anchor";const c0=l0,u0=w.forwardRef(({bsPrefix:e,className:t,as:n=c0,active:r,eventKey:o,disabled:s=!1,...i},l)=>{e=de(e,"nav-link");const[c,u]=Jx({key:Mr(o,i.href),active:r,disabled:s,...i});return a.jsx(n,{...i,...c,ref:l,disabled:s,className:ne(t,e,s&&"disabled",u.isActive&&"active")})});u0.displayName="NavLink";const d0=u0,f0=w.forwardRef((e,t)=>{const{as:n="div",bsPrefix:r,variant:o,fill:s=!1,justify:i=!1,navbar:l,navbarScroll:c,className:u,activeKey:d,...f}=Al(e,{activeKey:"onSelect"}),p=de(r,"nav");let y,m,h=!1;const x=w.useContext(r0),g=w.useContext(oN);return x?(y=x.bsPrefix,h=l??!0):g&&({cardHeaderBsPrefix:m}=g),a.jsx(rN,{as:n,ref:t,activeKey:d,className:ne(u,{[p]:!h,[`${y}-nav`]:h,[`${y}-nav-scroll`]:h&&c,[`${m}-${o}`]:!!m,[`${p}-${o}`]:!!o,[`${p}-fill`]:s,[`${p}-justified`]:i}),...f})});f0.displayName="Nav";const dN=Object.assign(f0,{Item:i0,Link:d0});function _m(e,t){let n=0;return w.Children.map(e,r=>w.isValidElement(r)?t(r,n++):r)}function fN(e,t){let n=0;w.Children.forEach(e,r=>{w.isValidElement(r)&&t(r,n++)})}function pN(e){let t;return fN(e,n=>{t==null&&(t=n.props.eventKey)}),t}function hN(e){const{title:t,eventKey:n,disabled:r,tabClassName:o,tabAttrs:s,id:i}=e.props;return t==null?null:a.jsx(i0,{as:"li",role:"presentation",children:a.jsx(d0,{as:"button",type:"button",eventKey:n,disabled:r,id:i,className:o,...s,children:t})})}const p0=e=>{const{id:t,onSelect:n,transition:r,mountOnEnter:o=!1,unmountOnExit:s=!1,variant:i="tabs",children:l,activeKey:c=pN(l),...u}=Al(e,{activeKey:"onSelect"});return a.jsxs(Ax,{id:t,activeKey:c,onSelect:n,transition:Wf(r),mountOnEnter:o,unmountOnExit:s,children:[a.jsx(dN,{...u,role:"tablist",as:"ul",variant:i,children:_m(l,hN)}),a.jsx(Wx,{children:_m(l,d=>{const f={...d.props};return delete f.title,delete f.disabled,delete f.tabClassName,delete f.tabAttrs,a.jsx(Gx,{...f})})})]})};p0.displayName="Tabs";const mN=p0,gN=w.createContext(null),Ml=gN;var Cm=Object.prototype.hasOwnProperty;function jm(e,t,n){for(n of e.keys())if(ws(n,t))return n}function ws(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&ws(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=jm(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=jm(t,o),!o)||!ws(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Cm.call(e,n)&&++r&&!Cm.call(t,n)||!(n in t)||!ws(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function vN(e){const t=Qf();return[e[0],w.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var mt="top",Ut="bottom",Vt="right",gt="left",Xf="auto",si=[mt,Ut,Vt,gt],Ro="start",qs="end",yN="clippingParents",h0="viewport",es="popper",xN="reference",Em=si.reduce(function(e,t){return e.concat([t+"-"+Ro,t+"-"+qs])},[]),m0=[].concat(si,[Xf]).reduce(function(e,t){return e.concat([t,t+"-"+Ro,t+"-"+qs])},[]),bN="beforeRead",wN="read",SN="afterRead",_N="beforeMain",CN="main",jN="afterMain",EN="beforeWrite",RN="write",NN="afterWrite",kN=[bN,wN,SN,_N,CN,jN,EN,RN,NN];function dn(e){return e.split("-")[0]}function Et(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dr(e){var t=Et(e).Element;return e instanceof t||e instanceof Element}function fn(e){var t=Et(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Zf(e){if(typeof ShadowRoot>"u")return!1;var t=Et(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Er=Math.max,tl=Math.min,No=Math.round;function dd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function g0(){return!/^((?!chrome|android).)*safari/i.test(dd())}function ko(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&fn(e)&&(o=e.offsetWidth>0&&No(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&No(r.height)/e.offsetHeight||1);var i=Dr(e)?Et(e):window,l=i.visualViewport,c=!g0()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/o,d=(r.top+(c&&l?l.offsetTop:0))/s,f=r.width/o,p=r.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Jf(e){var t=ko(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function v0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ur(e){return e?(e.nodeName||"").toLowerCase():null}function Dn(e){return Et(e).getComputedStyle(e)}function ON(e){return["table","td","th"].indexOf(ur(e))>=0}function hr(e){return((Dr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dl(e){return ur(e)==="html"?e:e.assignedSlot||e.parentNode||(Zf(e)?e.host:null)||hr(e)}function Rm(e){return!fn(e)||Dn(e).position==="fixed"?null:e.offsetParent}function TN(e){var t=/firefox/i.test(dd()),n=/Trident/i.test(dd());if(n&&fn(e)){var r=Dn(e);if(r.position==="fixed")return null}var o=Dl(e);for(Zf(o)&&(o=o.host);fn(o)&&["html","body"].indexOf(ur(o))<0;){var s=Dn(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ii(e){for(var t=Et(e),n=Rm(e);n&&ON(n)&&Dn(n).position==="static";)n=Rm(n);return n&&(ur(n)==="html"||ur(n)==="body"&&Dn(n).position==="static")?t:n||TN(e)||t}function ep(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ss(e,t,n){return Er(e,tl(t,n))}function PN(e,t,n){var r=Ss(e,t,n);return r>n?n:r}function y0(){return{top:0,right:0,bottom:0,left:0}}function x0(e){return Object.assign({},y0(),e)}function b0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var IN=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,x0(typeof t!="number"?t:b0(t,si))};function $N(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=dn(n.placement),c=ep(l),u=[gt,Vt].indexOf(l)>=0,d=u?"height":"width";if(!(!s||!i)){var f=IN(o.padding,n),p=Jf(s),y=c==="y"?mt:gt,m=c==="y"?Ut:Vt,h=n.rects.reference[d]+n.rects.reference[c]-i[c]-n.rects.popper[d],x=i[c]-n.rects.reference[c],g=ii(s),v=g?c==="y"?g.clientHeight||0:g.clientWidth||0:0,b=h/2-x/2,S=f[y],_=v-p[d]-f[m],C=v/2-p[d]/2+b,j=Ss(S,C,_),E=c;n.modifiersData[r]=(t={},t[E]=j,t.centerOffset=j-C,t)}}function AN(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||v0(t.elements.popper,o)&&(t.elements.arrow=o))}const MN={name:"arrow",enabled:!0,phase:"main",fn:$N,effect:AN,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oo(e){return e.split("-")[1]}var DN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function LN(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:No(n*o)/o||0,y:No(r*o)/o||0}}function Nm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=i.x,y=p===void 0?0:p,m=i.y,h=m===void 0?0:m,x=typeof d=="function"?d({x:y,y:h}):{x:y,y:h};y=x.x,h=x.y;var g=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),b=gt,S=mt,_=window;if(u){var C=ii(n),j="clientHeight",E="clientWidth";if(C===Et(n)&&(C=hr(n),Dn(C).position!=="static"&&l==="absolute"&&(j="scrollHeight",E="scrollWidth")),C=C,o===mt||(o===gt||o===Vt)&&s===qs){S=Ut;var N=f&&C===_&&_.visualViewport?_.visualViewport.height:C[j];h-=N-r.height,h*=c?1:-1}if(o===gt||(o===mt||o===Ut)&&s===qs){b=Vt;var R=f&&C===_&&_.visualViewport?_.visualViewport.width:C[E];y-=R-r.width,y*=c?1:-1}}var O=Object.assign({position:l},u&&DN),k=d===!0?LN({x:y,y:h},Et(n)):{x:y,y:h};if(y=k.x,h=k.y,c){var P;return Object.assign({},O,(P={},P[S]=v?"0":"",P[b]=g?"0":"",P.transform=(_.devicePixelRatio||1)<=1?"translate("+y+"px, "+h+"px)":"translate3d("+y+"px, "+h+"px, 0)",P))}return Object.assign({},O,(t={},t[S]=v?h+"px":"",t[b]=g?y+"px":"",t.transform="",t))}function FN(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:dn(t.placement),variation:Oo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Nm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const UN={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:FN,data:{}};var $i={passive:!0};function VN(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,l=i===void 0?!0:i,c=Et(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,$i)}),l&&c.addEventListener("resize",n.update,$i),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,$i)}),l&&c.removeEventListener("resize",n.update,$i)}}const BN={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:VN,data:{}};var zN={left:"right",right:"left",bottom:"top",top:"bottom"};function aa(e){return e.replace(/left|right|bottom|top/g,function(t){return zN[t]})}var qN={start:"end",end:"start"};function km(e){return e.replace(/start|end/g,function(t){return qN[t]})}function tp(e){var t=Et(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function np(e){return ko(hr(e)).left+tp(e).scrollLeft}function HN(e,t){var n=Et(e),r=hr(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;var u=g0();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:l+np(e),y:c}}function WN(e){var t,n=hr(e),r=tp(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Er(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Er(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+np(e),c=-r.scrollTop;return Dn(o||n).direction==="rtl"&&(l+=Er(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:c}}function rp(e){var t=Dn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function w0(e){return["html","body","#document"].indexOf(ur(e))>=0?e.ownerDocument.body:fn(e)&&rp(e)?e:w0(Dl(e))}function _s(e,t){var n;t===void 0&&(t=[]);var r=w0(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Et(r),i=o?[s].concat(s.visualViewport||[],rp(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(_s(Dl(i)))}function fd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function KN(e,t){var n=ko(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Om(e,t,n){return t===h0?fd(HN(e,n)):Dr(t)?KN(t,n):fd(WN(hr(e)))}function GN(e){var t=_s(Dl(e)),n=["absolute","fixed"].indexOf(Dn(e).position)>=0,r=n&&fn(e)?ii(e):e;return Dr(r)?t.filter(function(o){return Dr(o)&&v0(o,r)&&ur(o)!=="body"}):[]}function YN(e,t,n,r){var o=t==="clippingParents"?GN(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(c,u){var d=Om(e,u,r);return c.top=Er(d.top,c.top),c.right=tl(d.right,c.right),c.bottom=tl(d.bottom,c.bottom),c.left=Er(d.left,c.left),c},Om(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function S0(e){var t=e.reference,n=e.element,r=e.placement,o=r?dn(r):null,s=r?Oo(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case mt:c={x:i,y:t.y-n.height};break;case Ut:c={x:i,y:t.y+t.height};break;case Vt:c={x:t.x+t.width,y:l};break;case gt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?ep(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case Ro:c[u]=c[u]-(t[d]/2-n[d]/2);break;case qs:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Hs(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?yN:l,u=n.rootBoundary,d=u===void 0?h0:u,f=n.elementContext,p=f===void 0?es:f,y=n.altBoundary,m=y===void 0?!1:y,h=n.padding,x=h===void 0?0:h,g=x0(typeof x!="number"?x:b0(x,si)),v=p===es?xN:es,b=e.rects.popper,S=e.elements[m?v:p],_=YN(Dr(S)?S:S.contextElement||hr(e.elements.popper),c,d,i),C=ko(e.elements.reference),j=S0({reference:C,element:b,strategy:"absolute",placement:o}),E=fd(Object.assign({},b,j)),N=p===es?E:C,R={top:_.top-N.top+g.top,bottom:N.bottom-_.bottom+g.bottom,left:_.left-N.left+g.left,right:N.right-_.right+g.right},O=e.modifiersData.offset;if(p===es&&O){var k=O[o];Object.keys(R).forEach(function(P){var D=[Vt,Ut].indexOf(P)>=0?1:-1,L=[mt,Ut].indexOf(P)>=0?"y":"x";R[P]+=k[L]*D})}return R}function QN(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?m0:c,d=Oo(r),f=d?l?Em:Em.filter(function(m){return Oo(m)===d}):si,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var y=p.reduce(function(m,h){return m[h]=Hs(e,{placement:h,boundary:o,rootBoundary:s,padding:i})[dn(h)],m},{});return Object.keys(y).sort(function(m,h){return y[m]-y[h]})}function XN(e){if(dn(e)===Xf)return[];var t=aa(e);return[km(e),t,km(t)]}function ZN(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!0:i,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,m=y===void 0?!0:y,h=n.allowedAutoPlacements,x=t.options.placement,g=dn(x),v=g===x,b=c||(v||!m?[aa(x)]:XN(x)),S=[x].concat(b).reduce(function(Z,J){return Z.concat(dn(J)===Xf?QN(t,{placement:J,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:h}):J)},[]),_=t.rects.reference,C=t.rects.popper,j=new Map,E=!0,N=S[0],R=0;R<S.length;R++){var O=S[R],k=dn(O),P=Oo(O)===Ro,D=[mt,Ut].indexOf(k)>=0,L=D?"width":"height",V=Hs(t,{placement:O,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),Q=D?P?Vt:gt:P?Ut:mt;_[L]>C[L]&&(Q=aa(Q));var T=aa(Q),F=[];if(s&&F.push(V[k]<=0),l&&F.push(V[Q]<=0,V[T]<=0),F.every(function(Z){return Z})){N=O,E=!1;break}j.set(O,F)}if(E)for(var A=m?3:1,W=function(J){var X=S.find(function(se){var pe=j.get(se);if(pe)return pe.slice(0,J).every(function(M){return M})});if(X)return N=X,"break"},U=A;U>0;U--){var Y=W(U);if(Y==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const JN={name:"flip",enabled:!0,phase:"main",fn:ZN,requiresIfExists:["offset"],data:{_skip:!1}};function Tm(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Pm(e){return[mt,Vt,Ut,gt].some(function(t){return e[t]>=0})}function ek(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=Hs(t,{elementContext:"reference"}),l=Hs(t,{altBoundary:!0}),c=Tm(i,r),u=Tm(l,o,s),d=Pm(c),f=Pm(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const tk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ek};function nk(e,t,n){var r=dn(e),o=[gt,mt].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],l=s[1];return i=i||0,l=(l||0)*o,[gt,Vt].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function rk(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=m0.reduce(function(d,f){return d[f]=nk(f,t.rects,s),d},{}),l=i[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}const ok={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rk};function sk(e){var t=e.state,n=e.name;t.modifiersData[n]=S0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ik={name:"popperOffsets",enabled:!0,phase:"read",fn:sk,data:{}};function ak(e){return e==="x"?"y":"x"}function lk(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!1:i,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,y=p===void 0?!0:p,m=n.tetherOffset,h=m===void 0?0:m,x=Hs(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),g=dn(t.placement),v=Oo(t.placement),b=!v,S=ep(g),_=ak(S),C=t.modifiersData.popperOffsets,j=t.rects.reference,E=t.rects.popper,N=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,R=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(C){if(s){var P,D=S==="y"?mt:gt,L=S==="y"?Ut:Vt,V=S==="y"?"height":"width",Q=C[S],T=Q+x[D],F=Q-x[L],A=y?-E[V]/2:0,W=v===Ro?j[V]:E[V],U=v===Ro?-E[V]:-j[V],Y=t.elements.arrow,Z=y&&Y?Jf(Y):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:y0(),X=J[D],se=J[L],pe=Ss(0,j[V],Z[V]),M=b?j[V]/2-A-pe-X-R.mainAxis:W-pe-X-R.mainAxis,z=b?-j[V]/2+A+pe+se+R.mainAxis:U+pe+se+R.mainAxis,ve=t.elements.arrow&&ii(t.elements.arrow),ee=ve?S==="y"?ve.clientTop||0:ve.clientLeft||0:0,Te=(P=O==null?void 0:O[S])!=null?P:0,De=Q+M-Te-ee,ie=Q+z-Te,Ot=Ss(y?tl(T,De):T,Q,y?Er(F,ie):F);C[S]=Ot,k[S]=Ot-Q}if(l){var lt,gn=S==="x"?mt:gt,en=S==="x"?Ut:Vt,_e=C[_],Vn=_==="y"?"height":"width",Bn=_e+x[gn],ci=_e-x[en],Br=[mt,gt].indexOf(g)!==-1,ui=(lt=O==null?void 0:O[_])!=null?lt:0,ae=Br?Bn:_e-j[Vn]-E[Vn]-ui+R.altAxis,vn=Br?_e+j[Vn]+E[Vn]-ui-R.altAxis:ci,zo=y&&Br?PN(ae,_e,vn):Ss(y?ae:Bn,_e,y?vn:ci);C[_]=zo,k[_]=zo-_e}t.modifiersData[r]=k}}const ck={name:"preventOverflow",enabled:!0,phase:"main",fn:lk,requiresIfExists:["offset"]};function uk(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dk(e){return e===Et(e)||!fn(e)?tp(e):uk(e)}function fk(e){var t=e.getBoundingClientRect(),n=No(t.width)/e.offsetWidth||1,r=No(t.height)/e.offsetHeight||1;return n!==1||r!==1}function pk(e,t,n){n===void 0&&(n=!1);var r=fn(t),o=fn(t)&&fk(t),s=hr(t),i=ko(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ur(t)!=="body"||rp(s))&&(l=dk(t)),fn(t)?(c=ko(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=np(s))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function hk(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function mk(e){var t=hk(e);return kN.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function gk(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function vk(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Im={placement:"bottom",modifiers:[],strategy:"absolute"};function $m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function yk(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?Im:o;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Im,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,y={state:d,setOptions:function(g){var v=typeof g=="function"?g(d.options):g;h(),d.options=Object.assign({},s,d.options,v),d.scrollParents={reference:Dr(l)?_s(l):l.contextElement?_s(l.contextElement):[],popper:_s(c)};var b=mk(vk([].concat(r,d.options.modifiers)));return d.orderedModifiers=b.filter(function(S){return S.enabled}),m(),y.update()},forceUpdate:function(){if(!p){var g=d.elements,v=g.reference,b=g.popper;if($m(v,b)){d.rects={reference:pk(v,ii(b),d.options.strategy==="fixed"),popper:Jf(b)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(R){return d.modifiersData[R.name]=Object.assign({},R.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var _=d.orderedModifiers[S],C=_.fn,j=_.options,E=j===void 0?{}:j,N=_.name;typeof C=="function"&&(d=C({state:d,options:E,name:N,instance:y})||d)}}}},update:gk(function(){return new Promise(function(x){y.forceUpdate(),x(d)})}),destroy:function(){h(),p=!0}};if(!$m(l,c))return y;y.setOptions(u).then(function(x){!p&&u.onFirstUpdate&&u.onFirstUpdate(x)});function m(){d.orderedModifiers.forEach(function(x){var g=x.name,v=x.options,b=v===void 0?{}:v,S=x.effect;if(typeof S=="function"){var _=S({state:d,name:g,instance:y,options:b}),C=function(){};f.push(_||C)}})}function h(){f.forEach(function(x){return x()}),f=[]}return y}}const xk=yk({defaultModifiers:[tk,ik,UN,BN,ok,JN,ck,MN]}),bk=["enabled","placement","strategy","modifiers"];function wk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const Sk={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},_k={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const s=r.getAttribute("aria-describedby");if(s&&s.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",s?`${s},${n.id}`:n.id)}}},Ck=[];function _0(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:s="absolute",modifiers:i=Ck}=n,l=wk(n,bk);const c=w.useRef(i),u=w.useRef(),d=w.useCallback(()=>{var x;(x=u.current)==null||x.update()},[]),f=w.useCallback(()=>{var x;(x=u.current)==null||x.forceUpdate()},[]),[p,y]=vN(w.useState({placement:o,update:d,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),m=w.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:x})=>{const g={},v={};Object.keys(x.elements).forEach(b=>{g[b]=x.styles[b],v[b]=x.attributes[b]}),y({state:x,styles:g,attributes:v,update:d,forceUpdate:f,placement:x.placement})}}),[d,f,y]),h=w.useMemo(()=>(ws(c.current,i)||(c.current=i),c.current),[i]);return w.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:o,strategy:s,modifiers:[...h,m,Sk]})},[s,o,m,r,h]),w.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=xk(e,t,Object.assign({},l,{placement:o,strategy:s,modifiers:[...h,_k,m]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,y(x=>Object.assign({},x,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),p}function Ws(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var jk=function(){},Ek=jk;const Rk=Xs(Ek),Am=()=>{};function Nk(e){return e.button===0}function kk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const la=e=>e&&("current"in e?e.current:e),Mm={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function C0(e,t=Am,{disabled:n,clickTrigger:r="click"}={}){const o=w.useRef(!1),s=w.useRef(!1),i=w.useCallback(u=>{const d=la(e);Rk(!!d,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!d||kk(u)||!Nk(u)||!!Ws(d,u.target)||s.current,s.current=!1},[e]),l=ke(u=>{const d=la(e);d&&Ws(d,u.target)&&(s.current=!0)}),c=ke(u=>{o.current||t(u)});w.useEffect(()=>{var u,d;if(n||e==null)return;const f=Fo(la(e)),p=f.defaultView||window;let y=(u=p.event)!=null?u:(d=p.parent)==null?void 0:d.event,m=null;Mm[r]&&(m=En(f,Mm[r],l,!0));const h=En(f,r,i,!0),x=En(f,r,v=>{if(v===y){y=void 0;return}c(v)});let g=[];return"ontouchstart"in f.documentElement&&(g=[].slice.call(f.body.children).map(v=>En(v,"mousemove",Am))),()=>{m==null||m(),h(),x(),g.forEach(v=>v())}},[e,n,r,i,l,c])}function Ok(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Tk(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function j0({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:s,containerPadding:i,arrowElement:l,popperConfig:c={}}){var u,d,f,p,y;const m=Ok(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:s?"fixed":c.strategy,modifiers:Tk(Object.assign({},m,{eventListeners:{enabled:t,options:(u=m.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},m.preventOverflow,{options:i?Object.assign({padding:i},(d=m.preventOverflow)==null?void 0:d.options):(f=m.preventOverflow)==null?void 0:f.options}),offset:{options:Object.assign({offset:o},(p=m.offset)==null?void 0:p.options)},arrow:Object.assign({},m.arrow,{enabled:!!l,options:Object.assign({},(y=m.arrow)==null?void 0:y.options,{element:l})}),flip:Object.assign({enabled:!!r},m.flip)}))})}const Pk=["children"];function Ik(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const $k=()=>{};function E0(e={}){const t=w.useContext(Ml),[n,r]=Ja(),o=w.useRef(!1),{flip:s,offset:i,rootCloseEvent:l,fixed:c=!1,placement:u,popperConfig:d={},enableEventListeners:f=!0,usePopper:p=!!t}=e,y=(t==null?void 0:t.show)==null?!!e.show:t.show;y&&!o.current&&(o.current=!0);const m=C=>{t==null||t.toggle(!1,C)},{placement:h,setMenu:x,menuElement:g,toggleElement:v}=t||{},b=_0(v,g,j0({placement:u||h||"bottom-start",enabled:p,enableEvents:f??y,offset:i,flip:s,fixed:c,arrowElement:n,popperConfig:d})),S=Object.assign({ref:x||$k,"aria-labelledby":v==null?void 0:v.id},b.attributes.popper,{style:b.styles.popper}),_={show:y,placement:h,hasShown:o.current,toggle:t==null?void 0:t.toggle,popper:p?b:null,arrowProps:p?Object.assign({ref:r},b.attributes.arrow,{style:b.styles.arrow}):{}};return C0(g,m,{clickTrigger:l,disabled:!y}),[S,_]}const Ak={usePopper:!0};function op(e){let{children:t}=e,n=Ik(e,Pk);const[r,o]=E0(n);return a.jsx(a.Fragment,{children:t(r,o)})}op.displayName="DropdownMenu";op.defaultProps=Ak;const R0=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Dm=()=>{};function N0(){const e=Tx(),{show:t=!1,toggle:n=Dm,setToggle:r,menuElement:o}=w.useContext(Ml)||{},s=w.useCallback(l=>{n(!t,l)},[t,n]),i={id:e,ref:r||Dm,onClick:s,"aria-expanded":!!t};return o&&R0(o)&&(i["aria-haspopup"]=!0),[i,{show:t,toggle:n}]}function k0({children:e}){const[t,n]=N0();return a.jsx(a.Fragment,{children:e(t,n)})}k0.displayName="DropdownToggle";const Mk=["eventKey","disabled","onClick","active","as"];function Dk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function O0({key:e,href:t,active:n,disabled:r,onClick:o}){const s=w.useContext(Mn),i=w.useContext(Kf),{activeKey:l}=i||{},c=Mr(e,t),u=n==null&&e!=null?Mr(l)===c:n;return[{onClick:ke(f=>{r||(o==null||o(f),s&&!f.isPropagationStopped()&&s(c,f))}),"aria-disabled":r||void 0,"aria-selected":u,[Vo("dropdown-item")]:""},{isActive:u}]}const T0=w.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:s,as:i=Yf}=e,l=Dk(e,Mk);const[c]=O0({key:n,href:l.href,disabled:r,onClick:o,active:s});return a.jsx(i,Object.assign({},l,{ref:t},c))});T0.displayName="DropdownItem";const P0=w.createContext(Uo?window:void 0);P0.Provider;function Ll(){return w.useContext(P0)}function Lm(){const e=Xx(),t=w.useRef(null),n=w.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function ai({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:o=`* [${Vo("dropdown-item")}]`,focusFirstItemOnShow:s,placement:i="bottom-start",children:l}){const c=Ll(),[u,d]=kx(t,e,r),[f,p]=Lm(),y=f.current,[m,h]=Lm(),x=m.current,g=a0(u),v=w.useRef(null),b=w.useRef(!1),S=w.useContext(Mn),_=w.useCallback((O,k,P=k==null?void 0:k.type)=>{d(O,{originalEvent:k,source:P})},[d]),C=ke((O,k)=>{n==null||n(O,k),_(!1,k,"select"),k.isPropagationStopped()||S==null||S(O,k)}),j=w.useMemo(()=>({toggle:_,placement:i,show:u,menuElement:y,toggleElement:x,setMenu:p,setToggle:h}),[_,i,u,y,x,p,h]);y&&g&&!u&&(b.current=y.contains(y.ownerDocument.activeElement));const E=ke(()=>{x&&x.focus&&x.focus()}),N=ke(()=>{const O=v.current;let k=s;if(k==null&&(k=f.current&&R0(f.current)?"keyboard":!1),k===!1||k==="keyboard"&&!/^key.+$/.test(O))return;const P=_n(f.current,o)[0];P&&P.focus&&P.focus()});w.useEffect(()=>{u?N():b.current&&(b.current=!1,E())},[u,b,E,N]),w.useEffect(()=>{v.current=null});const R=(O,k)=>{if(!f.current)return null;const P=_n(f.current,o);let D=P.indexOf(O)+k;return D=Math.max(0,Math.min(D,P.length)),P[D]};return sN(w.useCallback(()=>c.document,[c]),"keydown",O=>{var k,P;const{key:D}=O,L=O.target,V=(k=f.current)==null?void 0:k.contains(L),Q=(P=m.current)==null?void 0:P.contains(L);if(/input|textarea/i.test(L.tagName)&&(D===" "||D!=="Escape"&&V||D==="Escape"&&L.type==="search")||!V&&!Q||D==="Tab"&&(!f.current||!u))return;v.current=O.type;const F={originalEvent:O,source:O.type};switch(D){case"ArrowUp":{const A=R(L,-1);A&&A.focus&&A.focus(),O.preventDefault();return}case"ArrowDown":if(O.preventDefault(),!u)d(!0,F);else{const A=R(L,1);A&&A.focus&&A.focus()}return;case"Tab":Hf(L.ownerDocument,"keyup",A=>{var W;(A.key==="Tab"&&!A.target||!((W=f.current)!=null&&W.contains(A.target)))&&d(!1,F)},{once:!0});break;case"Escape":D==="Escape"&&(O.preventDefault(),O.stopPropagation()),d(!1,F);break}}),a.jsx(Mn.Provider,{value:C,children:a.jsx(Ml.Provider,{value:j,children:l})})}ai.displayName="Dropdown";ai.Menu=op;ai.Toggle=k0;ai.Item=T0;const I0=w.createContext({});I0.displayName="DropdownContext";const $0=I0,A0=w.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...o},s)=>(t=de(t,"dropdown-divider"),a.jsx(n,{ref:s,className:ne(e,t),role:r,...o})));A0.displayName="DropdownDivider";const Lk=A0,M0=w.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...o},s)=>(t=de(t,"dropdown-header"),a.jsx(n,{ref:s,className:ne(e,t),role:r,...o})));M0.displayName="DropdownHeader";const Fk=M0,D0=w.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:o,active:s,as:i=c0,...l},c)=>{const u=de(e,"dropdown-item"),[d,f]=O0({key:n,href:l.href,disabled:r,onClick:o,active:s});return a.jsx(i,{...l,...d,ref:c,className:ne(t,u,f.isActive&&"active",r&&"disabled")})});D0.displayName="DropdownItem";const Uk=D0,L0=w.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=de(t,"dropdown-item-text"),a.jsx(n,{ref:o,className:ne(e,t),...r})));L0.displayName="DropdownItemText";const Vk=L0,F0=w.createContext(null);F0.displayName="InputGroupContext";const U0=F0;function V0(e,t){return e}function B0(e,t,n){const r=n?"top-end":"top-start",o=n?"top-start":"top-end",s=n?"bottom-end":"bottom-start",i=n?"bottom-start":"bottom-end",l=n?"right-start":"left-start",c=n?"right-end":"left-end",u=n?"left-start":"right-start",d=n?"left-end":"right-end";let f=e?i:s;return t==="up"?f=e?o:r:t==="end"?f=e?d:u:t==="start"?f=e?c:l:t==="down-centered"?f="bottom":t==="up-centered"&&(f="top"),f}const z0=w.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:o=!0,show:s,renderOnMount:i,as:l="div",popperConfig:c,variant:u,...d},f)=>{let p=!1;const y=w.useContext(r0),m=de(e,"dropdown-menu"),{align:h,drop:x,isRTL:g}=w.useContext($0);n=n||h;const v=w.useContext(U0),b=[];if(n)if(typeof n=="object"){const O=Object.keys(n);if(O.length){const k=O[0],P=n[k];p=P==="start",b.push(`${m}-${k}-${P}`)}}else n==="end"&&(p=!0);const S=B0(p,x,g),[_,{hasShown:C,popper:j,show:E,toggle:N}]=E0({flip:o,rootCloseEvent:r,show:s,usePopper:!y&&b.length===0,offset:[0,2],popperConfig:c,placement:S});if(_.ref=hn(V0(f),_.ref),el(()=>{E&&(j==null||j.update())},[E]),!C&&!i&&!v)return null;typeof l!="string"&&(_.show=E,_.close=()=>N==null?void 0:N(!1),_.align=n);let R=d.style;return j!=null&&j.placement&&(R={...d.style,..._.style},d["x-placement"]=j.placement),a.jsx(l,{...d,..._,style:R,...(b.length||y)&&{"data-bs-popper":"static"},className:ne(t,m,E&&"show",p&&`${m}-end`,u&&`${m}-${u}`,...b)})});z0.displayName="DropdownMenu";const Bk=z0,q0=w.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:s=!1,className:i,...l},c)=>{const u=de(t,"btn"),[d,{tagName:f}]=Gf({tagName:e,disabled:s,...l}),p=f;return a.jsx(p,{...d,...l,ref:c,disabled:s,className:ne(i,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,l.href&&s&&"disabled")})});q0.displayName="Button";const zk=q0,H0=w.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:o=zk,...s},i)=>{const l=de(e,"dropdown-toggle"),c=w.useContext(Ml);r!==void 0&&(s.bsPrefix=r);const[u]=N0();return u.ref=hn(u.ref,V0(i)),a.jsx(o,{className:ne(n,l,t&&`${l}-split`,(c==null?void 0:c.show)&&"show"),...u,...s})});H0.displayName="DropdownToggle";const qk=H0,W0=w.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:o,className:s,align:i="start",onSelect:l,onToggle:c,focusFirstItemOnShow:u,as:d="div",navbar:f,autoClose:p=!0,...y}=Al(e,{show:"onToggle"}),m=w.useContext(U0),h=de(n,"dropdown"),x=$l(),g=j=>p===!1?j==="click":p==="inside"?j!=="rootClose":p==="outside"?j!=="select":!0,v=ke((j,E)=>{var N,R;!((N=E.originalEvent)==null||(R=N.target)==null)&&R.classList.contains("dropdown-toggle")&&E.source==="mousedown"||(E.originalEvent.currentTarget===document&&(E.source!=="keydown"||E.originalEvent.key==="Escape")&&(E.source="rootClose"),g(E.source)&&(c==null||c(j,E)))}),S=B0(i==="end",r,x),_=w.useMemo(()=>({align:i,drop:r,isRTL:x}),[i,r,x]),C={down:h,"down-centered":`${h}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return a.jsx($0.Provider,{value:_,children:a.jsx(ai,{placement:S,show:o,onSelect:l,onToggle:v,focusFirstItemOnShow:u,itemSelector:`.${h}-item:not(.disabled):not(:disabled)`,children:m?y.children:a.jsx(d,{...y,ref:t,className:ne(s,o&&"show",C[r])})})})});W0.displayName="Dropdown";const Ai=Object.assign(W0,{Toggle:qk,Menu:Bk,Item:Uk,ItemText:Vk,Divider:Lk,Header:Fk});var Mi;function Fm(e){if((!Mi&&Mi!==0||e)&&Uo){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Mi=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Mi}function Hk(e){const t=w.useRef(e);return t.current=e,t}function sp(e){const t=Hk(e);w.useEffect(()=>()=>t.current(),[])}function Fc(e){e===void 0&&(e=Fo());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function Wk(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Um=Vo("modal-open");class Kk{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return Wk(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[r]:o.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(kn(o,r)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Um,""),kn(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Um),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const ip=Kk,Uc=(e,t)=>Uo?e==null?(t||Fo()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function pd(e,t){const n=Ll(),[r,o]=w.useState(()=>Uc(e,n==null?void 0:n.document));if(!r){const s=Uc(e);s&&o(s)}return w.useEffect(()=>{t&&r&&t(r)},[t,r]),w.useEffect(()=>{const s=Uc(e);s!==r&&o(s)},[e,r]),r}function Gk({in:e,onTransition:t}){const n=w.useRef(null),r=w.useRef(!0),o=ke(t);return el(()=>{if(!n.current)return;let s=!1;return o({in:e,element:n.current,initial:r.current,isStale:()=>s}),()=>{s=!0}},[e,o]),el(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function Yk({children:e,in:t,onExited:n,onEntered:r,transition:o}){const[s,i]=w.useState(!t);t&&s&&i(!1);const l=Gk({in:!!t,onTransition:u=>{const d=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(i(!0),n==null||n(u.element)))};Promise.resolve(o(u)).then(d,f=>{throw u.in||i(!0),f})}}),c=hn(l,e.ref);return s&&!t?null:w.cloneElement(e,{ref:c})}function hd(e,t,n){return e?a.jsx(e,Object.assign({},n)):t?a.jsx(Yk,Object.assign({},n,{transition:t})):a.jsx(zf,Object.assign({},n))}function K0(e){return e.code==="Escape"||e.keyCode===27}const Qk=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Xk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}let Vc;function Zk(e){return Vc||(Vc=new ip({ownerDocument:e==null?void 0:e.document})),Vc}function Jk(e){const t=Ll(),n=e||Zk(t),r=w.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:w.useCallback(o=>{r.current.dialog=o},[]),setBackdropRef:w.useCallback(o=>{r.current.backdrop=o},[])})}const G0=w.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:s,children:i,backdrop:l=!0,keyboard:c=!0,onBackdropClick:u,onEscapeKeyDown:d,transition:f,runTransition:p,backdropTransition:y,runBackdropTransition:m,autoFocus:h=!0,enforceFocus:x=!0,restoreFocus:g=!0,restoreFocusOptions:v,renderDialog:b,renderBackdrop:S=ie=>a.jsx("div",Object.assign({},ie)),manager:_,container:C,onShow:j,onHide:E=()=>{},onExit:N,onExited:R,onExiting:O,onEnter:k,onEntering:P,onEntered:D}=e,L=Xk(e,Qk);const V=Ll(),Q=pd(C),T=Jk(_),F=Qf(),A=a0(n),[W,U]=w.useState(!n),Y=w.useRef(null);w.useImperativeHandle(t,()=>T,[T]),Uo&&!A&&n&&(Y.current=Fc(V==null?void 0:V.document)),n&&W&&U(!1);const Z=ke(()=>{if(T.add(),z.current=En(document,"keydown",pe),M.current=En(document,"focus",()=>setTimeout(X),!0),j&&j(),h){var ie,Ot;const lt=Fc((ie=(Ot=T.dialog)==null?void 0:Ot.ownerDocument)!=null?ie:V==null?void 0:V.document);T.dialog&&lt&&!Ws(T.dialog,lt)&&(Y.current=lt,T.dialog.focus())}}),J=ke(()=>{if(T.remove(),z.current==null||z.current(),M.current==null||M.current(),g){var ie;(ie=Y.current)==null||ie.focus==null||ie.focus(v),Y.current=null}});w.useEffect(()=>{!n||!Q||Z()},[n,Q,Z]),w.useEffect(()=>{W&&J()},[W,J]),sp(()=>{J()});const X=ke(()=>{if(!x||!F()||!T.isTopModal())return;const ie=Fc(V==null?void 0:V.document);T.dialog&&ie&&!Ws(T.dialog,ie)&&T.dialog.focus()}),se=ke(ie=>{ie.target===ie.currentTarget&&(u==null||u(ie),l===!0&&E())}),pe=ke(ie=>{c&&K0(ie)&&T.isTopModal()&&(d==null||d(ie),ie.defaultPrevented||E())}),M=w.useRef(),z=w.useRef(),ve=(...ie)=>{U(!0),R==null||R(...ie)};if(!Q)return null;const ee=Object.assign({role:r,ref:T.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},L,{style:s,className:o,tabIndex:-1});let Te=b?b(ee):a.jsx("div",Object.assign({},ee,{children:w.cloneElement(i,{role:"document"})}));Te=hd(f,p,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:N,onExiting:O,onExited:ve,onEnter:k,onEntering:P,onEntered:D,children:Te});let De=null;return l&&(De=S({ref:T.setBackdropRef,onClick:se}),De=hd(y,m,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:De})),a.jsx(a.Fragment,{children:wr.createPortal(a.jsxs(a.Fragment,{children:[De,Te]}),Q)})});G0.displayName="Modal";const eO=Object.assign(G0,{Manager:ip});function md(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function tO(e,t){e.classList?e.classList.add(t):md(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Vm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function nO(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Vm(e.className,t):e.setAttribute("class",Vm(e.className&&e.className.baseVal||"",t))}const Wr={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class rO extends ip{adjustAndStore(t,n,r){const o=n.style[t];n.dataset[t]=o,kn(n,{[t]:`${parseFloat(kn(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],kn(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(tO(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";_n(n,Wr.FIXED_CONTENT).forEach(s=>this.adjustAndStore(r,s,t.scrollBarWidth)),_n(n,Wr.STICKY_CONTENT).forEach(s=>this.adjustAndStore(o,s,-t.scrollBarWidth)),_n(n,Wr.NAVBAR_TOGGLER).forEach(s=>this.adjustAndStore(o,s,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();nO(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";_n(n,Wr.FIXED_CONTENT).forEach(s=>this.restore(r,s)),_n(n,Wr.STICKY_CONTENT).forEach(s=>this.restore(o,s)),_n(n,Wr.NAVBAR_TOGGLER).forEach(s=>this.restore(o,s))}}let Bc;function oO(e){return Bc||(Bc=new rO(e)),Bc}const Y0=w.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=de(t,"modal-body"),a.jsx(n,{ref:o,className:ne(e,t),...r})));Y0.displayName="ModalBody";const sO=Y0,iO=w.createContext({onHide(){}}),Q0=iO,X0=w.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:o,fullscreen:s,children:i,scrollable:l,...c},u)=>{e=de(e,"modal");const d=`${e}-dialog`,f=typeof s=="string"?`${e}-fullscreen-${s}`:`${e}-fullscreen`;return a.jsx("div",{...c,ref:u,className:ne(d,t,o&&`${e}-${o}`,r&&`${d}-centered`,l&&`${d}-scrollable`,s&&f),children:a.jsx("div",{className:ne(`${e}-content`,n),children:i})})});X0.displayName="ModalDialog";const Z0=X0,J0=w.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=de(t,"modal-footer"),a.jsx(n,{ref:o,className:ne(e,t),...r})));J0.displayName="ModalFooter";const aO=J0,lO={"aria-label":q.string,onClick:q.func,variant:q.oneOf(["white"])},ap=w.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},o)=>a.jsx("button",{ref:o,type:"button",className:ne("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));ap.displayName="CloseButton";ap.propTypes=lO;const cO=ap,uO=w.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...s},i)=>{const l=w.useContext(Q0),c=ke(()=>{l==null||l.onHide(),r==null||r()});return a.jsxs("div",{ref:i,...s,children:[o,n&&a.jsx(cO,{"aria-label":e,variant:t,onClick:c})]})}),dO=uO,eb=w.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},s)=>(e=de(e,"modal-header"),a.jsx(dO,{ref:s,...o,className:ne(t,e),closeLabel:n,closeButton:r})));eb.displayName="ModalHeader";const fO=eb,pO=e=>w.forwardRef((t,n)=>a.jsx("div",{...t,ref:n,className:ne(t.className,e)})),hO=pO("h4"),tb=w.forwardRef(({className:e,bsPrefix:t,as:n=hO,...r},o)=>(t=de(t,"modal-title"),a.jsx(n,{ref:o,className:ne(e,t),...r})));tb.displayName="ModalTitle";const mO=tb;function gO(e){return a.jsx(Eo,{...e,timeout:null})}function vO(e){return a.jsx(Eo,{...e,timeout:null})}const nb=w.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:o,children:s,dialogAs:i=Z0,"data-bs-theme":l,"aria-labelledby":c,"aria-describedby":u,"aria-label":d,show:f=!1,animation:p=!0,backdrop:y=!0,keyboard:m=!0,onEscapeKeyDown:h,onShow:x,onHide:g,container:v,autoFocus:b=!0,enforceFocus:S=!0,restoreFocus:_=!0,restoreFocusOptions:C,onEntered:j,onExit:E,onExiting:N,onEnter:R,onEntering:O,onExited:k,backdropClassName:P,manager:D,...L},V)=>{const[Q,T]=w.useState({}),[F,A]=w.useState(!1),W=w.useRef(!1),U=w.useRef(!1),Y=w.useRef(null),[Z,J]=Ja(),X=hn(V,J),se=ke(g),pe=$l();e=de(e,"modal");const M=w.useMemo(()=>({onHide:se}),[se]);function z(){return D||oO({isRTL:pe})}function ve(ae){if(!Uo)return;const vn=z().getScrollbarWidth()>0,zo=ae.scrollHeight>Fo(ae).documentElement.clientHeight;T({paddingRight:vn&&!zo?Fm():void 0,paddingLeft:!vn&&zo?Fm():void 0})}const ee=ke(()=>{Z&&ve(Z.dialog)});sp(()=>{cd(window,"resize",ee),Y.current==null||Y.current()});const Te=()=>{W.current=!0},De=ae=>{W.current&&Z&&ae.target===Z.dialog&&(U.current=!0),W.current=!1},ie=()=>{A(!0),Y.current=Lx(Z.dialog,()=>{A(!1)})},Ot=ae=>{ae.target===ae.currentTarget&&ie()},lt=ae=>{if(y==="static"){Ot(ae);return}if(U.current||ae.target!==ae.currentTarget){U.current=!1;return}g==null||g()},gn=ae=>{m?h==null||h(ae):(ae.preventDefault(),y==="static"&&ie())},en=(ae,vn)=>{ae&&ve(ae),R==null||R(ae,vn)},_e=ae=>{Y.current==null||Y.current(),E==null||E(ae)},Vn=(ae,vn)=>{O==null||O(ae,vn),Hf(window,"resize",ee)},Bn=ae=>{ae&&(ae.style.display=""),k==null||k(ae),cd(window,"resize",ee)},ci=w.useCallback(ae=>a.jsx("div",{...ae,className:ne(`${e}-backdrop`,P,!p&&"show")}),[p,P,e]),Br={...n,...Q};Br.display="block";const ui=ae=>a.jsx("div",{role:"dialog",...ae,style:Br,className:ne(t,e,F&&`${e}-static`,!p&&"show"),onClick:y?lt:void 0,onMouseUp:De,"data-bs-theme":l,"aria-label":d,"aria-labelledby":c,"aria-describedby":u,children:a.jsx(i,{...L,onMouseDown:Te,className:r,contentClassName:o,children:s})});return a.jsx(Q0.Provider,{value:M,children:a.jsx(eO,{show:f,ref:X,backdrop:y,container:v,keyboard:!0,autoFocus:b,enforceFocus:S,restoreFocus:_,restoreFocusOptions:C,onEscapeKeyDown:gn,onShow:x,onHide:g,onEnter:en,onEntering:Vn,onEntered:j,onExit:_e,onExiting:N,onExited:Bn,manager:z(),transition:p?gO:void 0,backdropTransition:p?vO:void 0,renderBackdrop:ci,renderDialog:ui})})});nb.displayName="Modal";const ge=Object.assign(nb,{Body:sO,Header:fO,Title:mO,Footer:aO,Dialog:Z0,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),yO=Se.forwardRef(({children:e,onClick:t},n)=>a.jsx("a",{className:"btn btn-secondary d-flex flex-column justify-content-center flex-grow-1",href:"",ref:n,onClick:r=>{r.preventDefault(),t(r)},children:a.jsx("span",{className:"dropdown-toggle",children:e})}));function xO({requestId:e,grantNumber:t}){const{request:n,toggleActionsModal:r}=at(e,t),{project:o}=jt(t||n.grantNumber);if(!n||!o||n.error||o.error)return;const s=te.routes.request_action_path(e,"new"),i=n.allowedActions.Renewal?Array.isArray(n.allowedActions.Renewal)?[...n.allowedActions.Renewal]:[n.allowedActions.Renewal]:[];i.sort((u,d)=>u.opportunityId<d.opportunityId?-1:1);const l=[{id:"extension",action:`${s}?action_type=Extension`,isEnabled:"Extension"in n.allowedActions,button:"Request an Extension",enabled:n.usesCredits?a.jsx("p",{children:"Need more time to use your current credits and allocations? You can extend your project's end date up to six months past your funding end date, or up to 12 months at a time for projects not supported by a funding award."}):a.jsx("p",{children:"Need more time to use your current allocations? A one-time extension can extend your project end date by up to six months."}),disabled:a.jsxs("p",{children:["Your project is not currently eligible for an extension of its end date.",n.usesCredits?a.jsxs(a.Fragment,{children:[" ","Extensions can be requested starting 90 days before your project's current end date."]}):null]})},{id:"supplement",action:`${s}?action_type=Supplement`,isEnabled:"Supplement"in n.allowedActions,button:"Request a Supplement",enabled:n.usesCredits?a.jsxs("p",{children:["Need more credits to complete your project? Great news! Your"," ",n.allocationType," project is eligible for a supplement of"," ",{Explore:"200,000",Discover:"750,000",Accelerate:"1,500,000"}[n.allocationType]," ","additional ACCESS credits."]}):a.jsxs("p",{children:["Need more units to complete your research? Great news! Your"," ",n.allocationType," project is eligible for a supplement of additional units."]}),disabled:a.jsxs("p",{children:["Your project is not currently eligible for a supplement of additional"," ",n.usesCredits?"ACCESS Credits":"units","."]})},{id:"renewal",action:i.map(u=>[u.opportunityName,`${te.routes.renew_request_path(e)}?opportunity_id=${u.opportunityId}`,"post"]),isEnabled:"Renewal"in n.allowedActions,button:"Request a Renewal",enabled:a.jsxs("p",{children:["Your ",n.allocationType," project can be renewed! The requirements for renewing your project depend on the"," ",a.jsx("a",{href:te.routes.project_types_path(),target:"_blank",children:"new project type you select"}),"."]}),disabled:a.jsxs("p",{children:["Your project is not currently eligible for renewal.",n.usesCredits&&a.jsxs(a.Fragment,{children:[" ","Renewals are available starting 30 days before the project's current end date."]}),n.isMaximize&&a.jsxs(a.Fragment,{children:[" ","You can submit a renewal request to the Maximize ACCESS opportunity closest to your project's current end date."]})]})},{id:"help",action:[["Learn How to Manage Allocations",te.routes.how_to_path(),"get"],["Open a Help Ticket","https://support.access-ci.org/open-a-ticket","get"]],isEnabled:!0,button:"Request Help",enabled:a.jsxs("p",{children:["Need to change something else about your project or expecting another option? Submit a help ticket that includes"," ",a.jsxs("em",{children:["grant number ",o.grantNumber]})," and a detailed description of the problem."]})}];l.sort((u,d)=>u.isEnabled<d.isEnabled?1:-1);const c=l.map(({id:u,action:d,isEnabled:f,button:p,enabled:y,disabled:m})=>a.jsxs("div",{className:"row",children:[a.jsx("div",{className:"col-sm-4 mb-2 d-grid",children:Array.isArray(d)&&d.length?a.jsxs(Ai,{className:"d-flex flex-column",children:[a.jsx(Ai.Toggle,{as:yO,children:p}),a.jsx(Ai.Menu,{children:d.map(([h,x,g])=>a.jsx(Ai.Item,{href:x,onClick:v=>{g!=="get"&&(v.preventDefault(),v.target.dataset.method=g,$&&$.rails&&$.rails.handleMethod($(v.target)))},children:h},x))})]}):a.jsx("a",{className:`btn btn-secondary d-flex flex-column justify-content-center ${f?"":"disabled"}`,href:f?d:"",children:a.jsx("span",{children:p})})}),a.jsx("div",{className:"col-sm-8 mb-2",children:f?y:m})]},u));return a.jsxs(ge,{size:"lg",show:n.showActionsModal,onHide:r,children:[a.jsx(ge.Header,{closeButton:!0,children:a.jsx(ge.Title,{children:"Manage Your Project"})}),a.jsxs(ge.Body,{children:[a.jsxs("p",{children:["Please select an action to manage your project"," ",a.jsxs("strong",{children:[o.grantNumber,": ",o.title]}),"."]}),c]})]})}function bO({requestId:e,grantNumber:t}){const{request:n,toggleActionsModal:r,toggleConfirmModal:o}=at(e,t),{project:s}=jt(t||n.grantNumber);if(!n||!s||n.error||s.error)return;const i=n.usesCredits?"credits":"units",l=(1-px(n))*100;return a.jsxs(ge,{size:"lg",show:n.showConfirmModal,onHide:o,scrollable:!0,children:[a.jsx(ge.Header,{closeButton:!0,children:a.jsx(ge.Title,{children:"Consider Requesting an Exchange"})}),a.jsx(ge.Body,{children:a.jsxs("p",{children:[a.jsxs("strong",{children:[Math.round(l),"% of your allocation is unused."]})," ","Are you sure you want to request more ",i,"? You can exchange"," ",n.usesCredits?"credits for resources or ":""," one resource for another by changing the ",a.jsx("strong",{children:"balance"})," numbers in the table on the previous screen."]})}),a.jsx(ge.Footer,{children:a.jsxs("div",{className:"d-flex",children:[a.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:o,children:"Return to Exchange"}),a.jsxs("button",{type:"button",className:"btn btn-secondary",onClick:()=>{o(),r()},children:["Request More ",i]})]})})]})}function wO({requestId:e,grantNumber:t,actionId:n}){const{deleteAction:r,request:o,toggleDeleteModal:s}=at(e,t);if(!o||o.error)return;const i=o.actions.find(p=>p.actionId==n);if(!i)return;const{deleteStatus:l,isRequest:c}=i,u=l==Fe.pending,d=l==Fe.error,f=()=>s(n);return a.jsxs(ge,{show:i.showDeleteModal,onHide:f,scrollable:!0,children:[a.jsx(ge.Header,{closeButton:!0,children:a.jsx(ge.Title,{children:"Confirm Deletion"})}),a.jsxs(ge.Body,{children:[d&&a.jsxs(je,{color:"danger",children:["Deletion of the ",c?"request":"action"," failed."]}),a.jsxs("p",{children:["Are you sure you want to delete"," ",!c&&a.jsxs(a.Fragment,{children:["action"," ",a.jsxs("strong",{children:[i.type,": ",Cr(i.date)]})," ","on"," "]}),"request ",a.jsx("strong",{children:Af(o)}),"? Deletions cannot be undone."]})]}),a.jsx(ge.Footer,{children:a.jsxs("div",{className:"d-flex",children:[a.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:f,disabled:u,children:"Cancel"}),a.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>r(n),disabled:u,children:u?"Deleting...":"Delete"})]})})]})}function nl({color:e="primary",href:t,icon:n,onClick:r,target:o,title:s}){const i=a.jsx("i",{className:`bi bi-${n}`}),l={className:`btn btn-sm ms-1 text-${e}`,href:t,onClick:r,style:{"--bs-btn-padding-x":"0.1rem","--bs-btn-padding-y":"0.1rem","--bs-btn-line-height":"1"},target:o,title:s};return t?a.jsx("a",{...l,children:i}):a.jsx("button",{...l,children:i})}function rb({action:e,request:t,toggleDeleteModal:n}){const r=e.allowedOperations||[],o=["Exchange","Transfer"].includes(e.type),s=[];r.includes("Edit")&&!o&&s.push(a.jsx(nl,{href:e.isRequest?te.routes.edit_request_path(t.requestId):te.routes.edit_request_action_path(t.requestId,e.actionId),icon:"pencil",title:"Edit action"},"edit")),r.includes("Delete")&&!o&&s.push(a.jsx(nl,{color:"danger",icon:"trash",onClick:()=>n(e.actionId),title:"Edit action"},"delete"));const i=`${e.type}: ${Cr(e.date)}`;return a.jsxs(a.Fragment,{children:[e.detailAvailable&&!o?a.jsx("a",{href:te.routes.request_action_path(t.requestId,e.actionId),children:i}):i,s]})}function Rr({resource:e,userGuide:t=!0}){const{full:n,short:r}=Pl(e.name),o=r?a.jsx("abbr",{title:n,children:r}):n;return a.jsxs(a.Fragment,{children:[cr(te.resourceTypeIcons[e.icon])," ",o,!e.isCredit&&e.userGuideUrl&&t?a.jsx(nl,{icon:"book",href:e.userGuideUrl,target:"_blank",title:`${e.name} User Guide`}):null]})}function To({status:e,title:t}){const n={Active:"primary",Approved:"primary",New:"secondary",Pending:"secondary","Under Review":"secondary","Returned for Corrections":"secondary"}[e]||"dark";return a.jsx("span",{className:`badge text-bg-${n} align-self-center`,title:t,children:e})}const SO=e=>a.jsx("span",{className:e<0?"text-danger":"",children:e===0?"":e.toLocaleString()});function _O({requestId:e,grantNumber:t}){const{request:n,toggleDeleteModal:r}=at(e,t),{project:o,setRequest:s}=jt(t||n.grantNumber);if(!n||!o)return;const i=o.requestsList;let l=0;for(;l<i.length&&i[l].requestId!==e;)l++;const c=i[l+1],u=i[l-1],d=(h,x)=>h?a.jsxs("button",{type:"button",className:"btn btn-light btn-sm",onClick:()=>s(h.requestId),children:[x=="prev"?a.jsx("i",{className:"bi bi-chevron-left"}):null,Af(h),x=="next"?a.jsx("i",{className:"bi bi-chevron-right"}):null]}):a.jsx("span",{}),f=new Set,p=[];for(let h of n.actions)for(let x of h.resources)f.has(x.resourceId)||(f.add(x.resourceId),p.push(x));p.sort(Ha);const y=[{key:"action",name:"Action Details",format:(h,x)=>a.jsx(rb,{action:x,request:n,toggleDeleteModal:r})},{key:"status",name:"Status",format:h=>a.jsx(To,{status:h})},...p.map(h=>({key:`resource${h.resourceId}`,name:h.name,icon:h.icon,class:"text-end",format:h.isBoolean?x=>x?Mf(x):null:SO,formatHeader:(x,g)=>a.jsx(Rr,{resource:g,userGuide:!1})}))],m=n.actions.map(h=>{const x={...h};for(let{resourceId:g}of p)x[`resource${g}`]=0;for(let{resourceId:g,approved:v,requested:b}of h.resources)x[`resource${g}`]=v||b||0;return x});return a.jsxs("div",{className:"history",children:[a.jsx(Fn,{columns:y,rows:m}),a.jsxs("div",{className:"buttons d-flex justify-content-between",children:[d(c,"prev"),d(u,"next")]})]})}function CO({requestId:e,grantNumber:t}){const{request:n,toggleDeleteModal:r}=at(e,t);if(!n)return;const o=[{key:"type",name:"Action Details",format:(s,i)=>a.jsx(rb,{action:i,request:n,toggleDeleteModal:r})},{key:"status",name:"Status",format:s=>a.jsx(To,{status:s})}];if(n.actions&&n.actions.length)return a.jsx(Fn,{rows:n.actions,columns:o})}function ts(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...o){t.apply(this,o),n.apply(this,o)}},null)}const jO={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function EO(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],o=jO[e];return r+parseInt(kn(t,o[0]),10)+parseInt(kn(t,o[1]),10)}const RO={[Wn]:"collapse",[Xa]:"collapsing",[Sn]:"collapsing",[Yn]:"collapse show"},NO=Se.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,className:s,children:i,dimension:l="height",in:c=!1,timeout:u=300,mountOnEnter:d=!1,unmountOnExit:f=!1,appear:p=!1,getDimensionValue:y=EO,...m},h)=>{const x=typeof l=="function"?l():l,g=w.useMemo(()=>ts(C=>{C.style[x]="0"},e),[x,e]),v=w.useMemo(()=>ts(C=>{const j=`scroll${x[0].toUpperCase()}${x.slice(1)}`;C.style[x]=`${C[j]}px`},t),[x,t]),b=w.useMemo(()=>ts(C=>{C.style[x]=null},n),[x,n]),S=w.useMemo(()=>ts(C=>{C.style[x]=`${y(x,C)}px`,Ux(C)},r),[r,y,x]),_=w.useMemo(()=>ts(C=>{C.style[x]=null},o),[x,o]);return a.jsx(Vx,{ref:h,addEndListener:Fx,...m,"aria-expanded":m.role?c:null,onEnter:g,onEntering:v,onEntered:b,onExit:S,onExiting:_,childRef:i.ref,in:c,timeout:u,mountOnEnter:d,unmountOnExit:f,appear:p,children:(C,j)=>Se.cloneElement(i,{...j,className:ne(s,i.props.className,RO[C],x==="width"&&"collapse-horizontal")})})}),kO=NO;function ob(e,t){return Array.isArray(e)?e.includes(t):e===t}const sb=w.createContext({});sb.displayName="AccordionContext";const Fl=sb,ib=w.forwardRef(({as:e="div",bsPrefix:t,className:n,children:r,eventKey:o,...s},i)=>{const{activeEventKey:l}=w.useContext(Fl);return t=de(t,"accordion-collapse"),a.jsx(kO,{ref:i,in:ob(l,o),...s,className:ne(n,t),children:a.jsx(e,{children:w.Children.only(r)})})});ib.displayName="AccordionCollapse";const ab=ib,lb=w.createContext({eventKey:""});lb.displayName="AccordionItemContext";const lp=lb,cb=w.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:r,onEntering:o,onEntered:s,onExit:i,onExiting:l,onExited:c,...u},d)=>{t=de(t,"accordion-body");const{eventKey:f}=w.useContext(lp);return a.jsx(ab,{eventKey:f,onEnter:r,onEntering:o,onEntered:s,onExit:i,onExiting:l,onExited:c,children:a.jsx(e,{ref:d,...u,className:ne(n,t)})})});cb.displayName="AccordionBody";const OO=cb;function TO(e,t){const{activeEventKey:n,onSelect:r,alwaysOpen:o}=w.useContext(Fl);return s=>{let i=e===n?null:e;o&&(Array.isArray(n)?n.includes(e)?i=n.filter(l=>l!==e):i=[...n,e]:i=[e]),r==null||r(i,s),t==null||t(s)}}const ub=w.forwardRef(({as:e="button",bsPrefix:t,className:n,onClick:r,...o},s)=>{t=de(t,"accordion-button");const{eventKey:i}=w.useContext(lp),l=TO(i,r),{activeEventKey:c}=w.useContext(Fl);return e==="button"&&(o.type="button"),a.jsx(e,{ref:s,onClick:l,...o,"aria-expanded":Array.isArray(c)?c.includes(i):i===c,className:ne(n,t,!ob(c,i)&&"collapsed")})});ub.displayName="AccordionButton";const db=ub,fb=w.forwardRef(({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...s},i)=>(t=de(t,"accordion-header"),a.jsx(e,{ref:i,...s,className:ne(n,t),children:a.jsx(db,{onClick:o,children:r})})));fb.displayName="AccordionHeader";const PO=fb,pb=w.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:r,...o},s)=>{t=de(t,"accordion-item");const i=w.useMemo(()=>({eventKey:r}),[r]);return a.jsx(lp.Provider,{value:i,children:a.jsx(e,{ref:s,...o,className:ne(n,t)})})});pb.displayName="AccordionItem";const IO=pb,hb=w.forwardRef((e,t)=>{const{as:n="div",activeKey:r,bsPrefix:o,className:s,onSelect:i,flush:l,alwaysOpen:c,...u}=Al(e,{activeKey:"onSelect"}),d=de(o,"accordion"),f=w.useMemo(()=>({activeEventKey:r,onSelect:i,alwaysOpen:c}),[r,i,c]);return a.jsx(Fl.Provider,{value:f,children:a.jsx(n,{ref:t,...u,className:ne(s,d,l&&`${d}-flush`)})})});hb.displayName="Accordion";const Wt=Object.assign(hb,{Button:db,Collapse:ab,Item:IO,Header:PO,Body:OO}),gd=2**31-1;function mb(e,t,n){const r=n-Date.now();e.current=r<=gd?setTimeout(t,r):setTimeout(()=>mb(e,t,n),gd)}function $O(){const e=Qf(),t=w.useRef();return sp(()=>clearTimeout(t.current)),w.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(o,s=0){e()&&(n(),s<=gd?t.current=setTimeout(o,s):mb(t,o,Date.now()+s))}return{set:r,clear:n,handleRef:t}},[])}const AO=()=>{};function MO(e,t,{disabled:n,clickTrigger:r}={}){const o=t||AO;C0(e,o,{disabled:n,clickTrigger:r});const s=ke(i=>{K0(i)&&o(i)});w.useEffect(()=>{if(n||e==null)return;const i=Fo(la(e));let l=(i.defaultView||window).event;const c=En(i,"keyup",u=>{if(u===l){l=void 0;return}s(u)});return()=>{c()}},[e,n,s])}const gb=w.forwardRef((e,t)=>{const{flip:n,offset:r,placement:o,containerPadding:s,popperConfig:i={},transition:l,runTransition:c}=e,[u,d]=Ja(),[f,p]=Ja(),y=hn(d,t),m=pd(e.container),h=pd(e.target),[x,g]=w.useState(!e.show),v=_0(h,u,j0({placement:o,enableEvents:!!e.show,containerPadding:s||5,flip:n,offset:r,arrowElement:f,popperConfig:i}));e.show&&x&&g(!1);const b=(...O)=>{g(!0),e.onExited&&e.onExited(...O)},S=e.show||!x;if(MO(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!S)return null;const{onExit:_,onExiting:C,onEnter:j,onEntering:E,onEntered:N}=e;let R=e.children(Object.assign({},v.attributes.popper,{style:v.styles.popper,ref:y}),{popper:v,placement:o,show:!!e.show,arrowProps:Object.assign({},v.attributes.arrow,{style:v.styles.arrow,ref:p})});return R=hd(l,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:R,onExit:_,onExiting:C,onExited:b,onEnter:j,onEntering:E,onEntered:N}),m?wr.createPortal(R,m):null});gb.displayName="Overlay";const DO=gb,vb=w.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=de(t,"popover-header"),a.jsx(n,{ref:o,className:ne(e,t),...r})));vb.displayName="PopoverHeader";const LO=vb,yb=w.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=de(t,"popover-body"),a.jsx(n,{ref:o,className:ne(e,t),...r})));yb.displayName="PopoverBody";const xb=yb;function bb(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function wb(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const FO=w.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:s,arrowProps:i,hasDoneInitialMeasure:l,popper:c,show:u,...d},f)=>{const p=de(e,"popover"),y=$l(),[m]=(t==null?void 0:t.split("-"))||[],h=bb(m,y);let x=r;return u&&!l&&(x={...r,...wb(c==null?void 0:c.strategy)}),a.jsxs("div",{ref:f,role:"tooltip",style:x,"x-placement":m,className:ne(n,p,m&&`bs-popover-${h}`),...d,children:[a.jsx("div",{className:"popover-arrow",...i}),s?a.jsx(xb,{children:o}):o]})}),UO=Object.assign(FO,{Header:LO,Body:xb,POPPER_OFFSET:[0,8]}),Sb=w.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:s,hasDoneInitialMeasure:i,popper:l,show:c,...u},d)=>{e=de(e,"tooltip");const f=$l(),[p]=(t==null?void 0:t.split("-"))||[],y=bb(p,f);let m=r;return c&&!i&&(m={...r,...wb(l==null?void 0:l.strategy)}),a.jsxs("div",{ref:d,style:m,role:"tooltip","x-placement":p,className:ne(n,e,`bs-tooltip-${y}`),...u,children:[a.jsx("div",{className:"tooltip-arrow",...s}),a.jsx("div",{className:`${e}-inner`,children:o})]})});Sb.displayName="Tooltip";const Ul=Object.assign(Sb,{TOOLTIP_OFFSET:[0,6]});function VO(e){const t=w.useRef(null),n=de(void 0,"popover"),r=de(void 0,"tooltip"),o=w.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(md(t.current,n))return UO.POPPER_OFFSET;if(md(t.current,r))return Ul.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}function BO(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=o=>n(Za(o))),t.ref=r.__wrapped||(r.__wrapped=o=>r(Za(o)))}const _b=w.forwardRef(({children:e,transition:t=Eo,popperConfig:n={},rootClose:r=!1,placement:o="top",show:s=!1,...i},l)=>{const c=w.useRef({}),[u,d]=w.useState(null),[f,p]=VO(i.offset),y=hn(l,f),m=t===!0?Eo:t||void 0,h=ke(x=>{d(x),n==null||n.onFirstUpdate==null||n.onFirstUpdate(x)});return el(()=>{u&&i.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[u,i.target]),w.useEffect(()=>{s||d(null)},[s]),a.jsx(DO,{...i,ref:y,popperConfig:{...n,modifiers:p.concat(n.modifiers||[]),onFirstUpdate:h},transition:m,rootClose:r,placement:o,show:s,children:(x,{arrowProps:g,popper:v,show:b})=>{var S,_;BO(x,g);const C=v==null?void 0:v.placement,j=Object.assign(c.current,{state:v==null?void 0:v.state,scheduleUpdate:v==null?void 0:v.update,placement:C,outOfBoundaries:(v==null||(S=v.state)==null||(_=S.modifiersData.hide)==null?void 0:_.isReferenceHidden)||!1,strategy:n.strategy}),E=!!u;return typeof e=="function"?e({...x,placement:C,show:b,...!t&&b&&{className:"show"},popper:j,arrowProps:g,hasDoneInitialMeasure:E}):w.cloneElement(e,{...x,placement:C,arrowProps:g,popper:j,hasDoneInitialMeasure:E,className:ne(e.props.className,!t&&b&&"show"),style:{...e.props.style,...x.style}})}})});_b.displayName="Overlay";const Cb=_b;function zO(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Bm(e,t,n){const[r]=t,o=r.currentTarget,s=r.relatedTarget||r.nativeEvent[n];(!s||s!==o)&&!Ws(o,s)&&e(...t)}q.oneOf(["click","hover","focus"]);const qO=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:o,defaultShow:s=!1,onToggle:i,delay:l,placement:c,flip:u=c&&c.indexOf("auto")!==-1,...d})=>{const f=w.useRef(null),p=hn(f,n.ref),y=$O(),m=w.useRef(""),[h,x]=Qx(o,s,i),g=zO(l),{onFocus:v,onBlur:b,onClick:S}=typeof n!="function"?w.Children.only(n).props:{},_=L=>{p(Za(L))},C=w.useCallback(()=>{if(y.clear(),m.current="show",!g.show){x(!0);return}y.set(()=>{m.current==="show"&&x(!0)},g.show)},[g.show,x,y]),j=w.useCallback(()=>{if(y.clear(),m.current="hide",!g.hide){x(!1);return}y.set(()=>{m.current==="hide"&&x(!1)},g.hide)},[g.hide,x,y]),E=w.useCallback((...L)=>{C(),v==null||v(...L)},[C,v]),N=w.useCallback((...L)=>{j(),b==null||b(...L)},[j,b]),R=w.useCallback((...L)=>{x(!h),S==null||S(...L)},[S,x,h]),O=w.useCallback((...L)=>{Bm(C,L,"fromElement")},[C]),k=w.useCallback((...L)=>{Bm(j,L,"toElement")},[j]),P=e==null?[]:[].concat(e),D={ref:_};return P.indexOf("click")!==-1&&(D.onClick=R),P.indexOf("focus")!==-1&&(D.onFocus=E,D.onBlur=N),P.indexOf("hover")!==-1&&(D.onMouseOver=O,D.onMouseOut=k),a.jsxs(a.Fragment,{children:[typeof n=="function"?n(D):w.cloneElement(n,D),a.jsx(Cb,{...d,show:h,onHide:j,flip:u,placement:c,popperConfig:r,target:f.current,children:t})]})},cp=qO;function HO({requestId:e,grantNumber:t}){const{request:n}=at(e,t),{project:r}=jt(t||n.grantNumber),{setTab:o}=jt(t||n.grantNumber);if(!n||!r)return;let s;const i={};for(let p of r.users||[])for(let y of p.resourceIds)i[y]=i[y]||0,i[y]+=1;const l=(n.resources||[]).filter(p=>p.isCredit?(s=p,!1):p.allocated>0).map((p,y)=>({...p,userCount:i[p.resourceId]||0,color:Ju[y%Ju.length]})),c=s?s.allocated:0,u="Exchange"in n.allowedActions,d=n.exchangeActionId!==null,f=[{key:"name",name:"Resource",format:(p,y)=>a.jsx(Rr,{resource:y})},{key:"isActive",name:"Status",format:p=>a.jsx(To,{status:p?"Active":"Inactive"})},{key:"used",name:"Balance",class:"position-relative",format:(p,y)=>{if(y.isBoolean)return Mf(y.allocated);const m=y.allocated-p,h=Math.max(m,0)*100/y.allocated;return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:`usage bg-${y.color}`,style:{width:`${Math.min(h,100)}%`}}),Ke(m,{abbreviate:!0})," of"," ",Ke(y.allocated,{abbreviate:!0})," ",y.unit," ","remaining (",Math.round(h),"%)"]})}},{key:"endDate",name:"End Date",format:p=>Cr(p)}];return r.isManager&&f.push({key:"userCount",name:"Users",class:"text-end",format:Ke}),r.currentUser&&f.push({key:"resourceUsername",name:"My Username",format:(p,y)=>{const m=r.currentUser.resourceUsernames[y.resourceId];if(m)return m;if(r.currentUser.resourceAccountPendingIds.includes(y.resourceId))return a.jsx(To,{status:"Pending",title:"Creation of your account by the resource provider is pending."});if(r.currentUser.resourceIds.includes(y.resourceId)||!y.isActive)return a.jsx(a.Fragment,{children:"—"});if(r.isManager)return a.jsx("a",{href:"#",onClick:x=>{x.preventDefault(),o("users")},children:"Grant access"});const h=a.jsxs(Ul,{children:["Please contact ",Df(r)," to request access to this resource."]});return a.jsx(cp,{overlay:h,children:a.jsx("a",{href:"#",onClick:x=>{x.preventDefault()},children:"Request access"})})}}),a.jsxs("div",{className:"overview",children:[u&&!d&&c>te.creditAlertThreshold?a.jsxs("button",{onClick:()=>o("resources"),className:"alert alert-info d-flex justify-content-between align-items-center w-100",children:[a.jsxs("span",{children:[a.jsxs("span",{className:"fs-3",children:[cr(te.resourceTypeIcons[s.icon])," ",Ke(c)]})," ",s.unit," available"]}),a.jsxs("span",{className:"align-middle d-flex align-items-center",children:["Exchange credits for resources!"," ",a.jsx("span",{className:"fs-3",children:cr("chevron-right")})]})]}):null,l.length?a.jsx(Fn,{columns:f,rows:l}):null]})}const WO=[{key:"role",name:"Role",format:e=>a.jsxs(a.Fragment,{children:[cr(te.roleIcons[e])," ",e]})},{key:"users",name:"Users",format:e=>{const t=e.slice(0,3);return e.length>4&&(t[2]=`${Ke(e.length-3)} others`),t.map((n,r)=>{const o=t.length-r;return`${n}${o>2?",":o==2&&t.length>1?" and":""}`}).join(" ")}}],KO=({requestId:e,grantNumber:t})=>{const{project:n}=jt(t);if(!n)return;const r=Il.map(({role:o,name:s})=>({role:s,users:(n.users||[]).filter(i=>i.role===o).map(i=>`${i.firstName} ${i.lastName}`)})).filter(o=>o.users.length>0);return r.length?a.jsx(Fn,{rows:r,columns:WO}):null};function GO({requestId:e,grantNumber:t}){const{request:n}=at(e,t),{project:r,username:o}=jt(t||n.grantNumber);if(!(!n||!r||n.error||r.error)&&n)return a.jsxs("div",{className:"overview",children:[a.jsx(HO,{requestId:e,grantNumber:t}),r.isManager?a.jsxs("div",{className:"row",children:[a.jsx("div",{className:"col-lg-6",children:a.jsx(KO,{requestId:e,grantNumber:t})}),a.jsx("div",{className:"col-lg-6",children:a.jsx(CO,{requestId:e})})]}):null]})}function Lr(e){"@babel/helpers - typeof";return Lr=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},Lr(e)}function YO(e,t){if(Lr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jb(e){var t=YO(e,"string");return Lr(t)=="symbol"?t:String(t)}function io(e,t,n){return t=jb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zm(Object(n),!0).forEach(function(r){io(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QO(e){if(Array.isArray(e))return e}function XO(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,i,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}function vd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Eb(e,t){if(e){if(typeof e=="string")return vd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vd(e,t)}}function ZO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
59
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ue(e,t){return QO(e)||XO(e,t)||Eb(e,t)||ZO()}function mn(e,t){if(e==null)return{};var n=qf(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var JO=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Rb(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,s=e.defaultValue,i=s===void 0?null:s,l=e.inputValue,c=e.menuIsOpen,u=e.onChange,d=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,y=e.value,m=mn(e,JO),h=w.useState(l!==void 0?l:n),x=Ue(h,2),g=x[0],v=x[1],b=w.useState(c!==void 0?c:o),S=Ue(b,2),_=S[0],C=S[1],j=w.useState(y!==void 0?y:i),E=Ue(j,2),N=E[0],R=E[1],O=w.useCallback(function(T,F){typeof u=="function"&&u(T,F),R(T)},[u]),k=w.useCallback(function(T,F){var A;typeof d=="function"&&(A=d(T,F)),v(A!==void 0?A:T)},[d]),P=w.useCallback(function(){typeof p=="function"&&p(),C(!0)},[p]),D=w.useCallback(function(){typeof f=="function"&&f(),C(!1)},[f]),L=l!==void 0?l:g,V=c!==void 0?c:_,Q=y!==void 0?y:N;return H(H({},m),{},{inputValue:L,menuIsOpen:V,onChange:O,onInputChange:k,onMenuClose:D,onMenuOpen:P,value:Q})}function eT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jb(r.key),r)}}function tT(e,t,n){return t&&qm(e.prototype,t),n&&qm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qa(e,t)}function rl(e){return rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rl(e)}function Nb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nb=function(){return!!e})()}function rT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oT(e,t){if(t&&(Lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rT(e)}function sT(e){var t=Nb();return function(){var r=rl(e),o;if(t){var s=rl(this).constructor;o=Reflect.construct(r,arguments,s)}else o=r.apply(this,arguments);return oT(this,o)}}function iT(e){if(Array.isArray(e))return vd(e)}function aT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
60
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function up(e){return iT(e)||aT(e)||Eb(e)||lT()}function cT(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function uT(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var dT=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(uT(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=cT(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Je="-ms-",ol="-moz-",ce="-webkit-",kb="comm",dp="rule",fp="decl",fT="@import",Ob="@keyframes",pT="@layer",hT=Math.abs,Vl=String.fromCharCode,mT=Object.assign;function gT(e,t){return We(e,0)^45?(((t<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3):0}function Tb(e){return e.trim()}function vT(e,t){return(e=t.exec(e))?e[0]:e}function ue(e,t,n){return e.replace(t,n)}function yd(e,t){return e.indexOf(t)}function We(e,t){return e.charCodeAt(t)|0}function Ks(e,t,n){return e.slice(t,n)}function sn(e){return e.length}function pp(e){return e.length}function Di(e,t){return t.push(e),e}function yT(e,t){return e.map(t).join("")}var Bl=1,Po=1,Pb=0,vt=0,Ie=0,Bo="";function zl(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Bl,column:Po,length:i,return:""}}function ns(e,t){return mT(zl("",null,null,"",null,null,0),e,{length:-e.length},t)}function xT(){return Ie}function bT(){return Ie=vt>0?We(Bo,--vt):0,Po--,Ie===10&&(Po=1,Bl--),Ie}function wt(){return Ie=vt<Pb?We(Bo,vt++):0,Po++,Ie===10&&(Po=1,Bl++),Ie}function pn(){return We(Bo,vt)}function ca(){return vt}function li(e,t){return Ks(Bo,e,t)}function Gs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ib(e){return Bl=Po=1,Pb=sn(Bo=e),vt=0,[]}function $b(e){return Bo="",e}function ua(e){return Tb(li(vt-1,xd(e===91?e+2:e===40?e+1:e)))}function wT(e){for(;(Ie=pn())&&Ie<33;)wt();return Gs(e)>2||Gs(Ie)>3?"":" "}function ST(e,t){for(;--t&&wt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return li(e,ca()+(t<6&&pn()==32&&wt()==32))}function xd(e){for(;wt();)switch(Ie){case e:return vt;case 34:case 39:e!==34&&e!==39&&xd(Ie);break;case 40:e===41&&xd(e);break;case 92:wt();break}return vt}function _T(e,t){for(;wt()&&e+Ie!==57;)if(e+Ie===84&&pn()===47)break;return"/*"+li(t,vt-1)+"*"+Vl(e===47?e:wt())}function CT(e){for(;!Gs(pn());)wt();return li(e,vt)}function jT(e){return $b(da("",null,null,null,[""],e=Ib(e),0,[0],e))}function da(e,t,n,r,o,s,i,l,c){for(var u=0,d=0,f=i,p=0,y=0,m=0,h=1,x=1,g=1,v=0,b="",S=o,_=s,C=r,j=b;x;)switch(m=v,v=wt()){case 40:if(m!=108&&We(j,f-1)==58){yd(j+=ue(ua(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:j+=ua(v);break;case 9:case 10:case 13:case 32:j+=wT(m);break;case 92:j+=ST(ca()-1,7);continue;case 47:switch(pn()){case 42:case 47:Di(ET(_T(wt(),ca()),t,n),c);break;default:j+="/"}break;case 123*h:l[u++]=sn(j)*g;case 125*h:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+d:g==-1&&(j=ue(j,/\f/g,"")),y>0&&sn(j)-f&&Di(y>32?Wm(j+";",r,n,f-1):Wm(ue(j," ","")+";",r,n,f-2),c);break;case 59:j+=";";default:if(Di(C=Hm(j,t,n,u,d,o,l,b,S=[],_=[],f),s),v===123)if(d===0)da(j,t,C,C,S,s,f,l,_);else switch(p===99&&We(j,3)===110?100:p){case 100:case 108:case 109:case 115:da(e,C,C,r&&Di(Hm(e,C,C,0,0,o,l,b,o,S=[],f),_),o,_,f,l,r?S:_);break;default:da(j,C,C,C,[""],_,0,l,_)}}u=d=y=0,h=g=1,b=j="",f=i;break;case 58:f=1+sn(j),y=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&bT()==125)continue}switch(j+=Vl(v),v*h){case 38:g=d>0?1:(j+="\f",-1);break;case 44:l[u++]=(sn(j)-1)*g,g=1;break;case 64:pn()===45&&(j+=ua(wt())),p=pn(),d=f=sn(b=j+=CT(ca())),v++;break;case 45:m===45&&sn(j)==2&&(h=0)}}return s}function Hm(e,t,n,r,o,s,i,l,c,u,d){for(var f=o-1,p=o===0?s:[""],y=pp(p),m=0,h=0,x=0;m<r;++m)for(var g=0,v=Ks(e,f+1,f=hT(h=i[m])),b=e;g<y;++g)(b=Tb(h>0?p[g]+" "+v:ue(v,/&\f/g,p[g])))&&(c[x++]=b);return zl(e,t,n,o===0?dp:l,c,u,d)}function ET(e,t,n){return zl(e,t,n,kb,Vl(xT()),Ks(e,2,-2),0)}function Wm(e,t,n,r){return zl(e,t,n,fp,Ks(e,0,r),Ks(e,r+1,-1),r)}function mo(e,t){for(var n="",r=pp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function RT(e,t,n,r){switch(e.type){case pT:if(e.children.length)break;case fT:case fp:return e.return=e.return||e.value;case kb:return"";case Ob:return e.return=e.value+"{"+mo(e.children,r)+"}";case dp:e.value=e.props.join(",")}return sn(n=mo(e.children,r))?e.return=e.value+"{"+n+"}":""}function NT(e){var t=pp(e);return function(n,r,o,s){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,s)||"";return i}}function kT(e){return function(t){t.root||(t=t.return)&&e(t)}}function OT(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var TT=function(t,n,r){for(var o=0,s=0;o=s,s=pn(),o===38&&s===12&&(n[r]=1),!Gs(s);)wt();return li(t,vt)},PT=function(t,n){var r=-1,o=44;do switch(Gs(o)){case 0:o===38&&pn()===12&&(n[r]=1),t[r]+=TT(vt-1,n,r);break;case 2:t[r]+=ua(o);break;case 4:if(o===44){t[++r]=pn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Vl(o)}while(o=wt());return t},IT=function(t,n){return $b(PT(Ib(t),n))},Km=new WeakMap,$T=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Km.get(r))&&!o){Km.set(t,!0);for(var s=[],i=IT(n,s),l=r.props,c=0,u=0;c<i.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=s[c]?i[c].replace(/&\f/g,l[d]):l[d]+" "+i[c]}}},AT=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ab(e,t){switch(gT(e,t)){case 5103:return ce+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ce+e+ol+e+Je+e+e;case 6828:case 4268:return ce+e+Je+e+e;case 6165:return ce+e+Je+"flex-"+e+e;case 5187:return ce+e+ue(e,/(\w+).+(:[^]+)/,ce+"box-$1$2"+Je+"flex-$1$2")+e;case 5443:return ce+e+Je+"flex-item-"+ue(e,/flex-|-self/,"")+e;case 4675:return ce+e+Je+"flex-line-pack"+ue(e,/align-content|flex-|-self/,"")+e;case 5548:return ce+e+Je+ue(e,"shrink","negative")+e;case 5292:return ce+e+Je+ue(e,"basis","preferred-size")+e;case 6060:return ce+"box-"+ue(e,"-grow","")+ce+e+Je+ue(e,"grow","positive")+e;case 4554:return ce+ue(e,/([^-])(transform)/g,"$1"+ce+"$2")+e;case 6187:return ue(ue(ue(e,/(zoom-|grab)/,ce+"$1"),/(image-set)/,ce+"$1"),e,"")+e;case 5495:case 3959:return ue(e,/(image-set\([^]*)/,ce+"$1$`$1");case 4968:return ue(ue(e,/(.+:)(flex-)?(.*)/,ce+"box-pack:$3"+Je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ce+e+e;case 4095:case 3583:case 4068:case 2532:return ue(e,/(.+)-inline(.+)/,ce+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(sn(e)-1-t>6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+ce+"$2-$3$1"+ol+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~yd(e,"stretch")?Ab(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,sn(e)-3-(~yd(e,"!important")&&10))){case 107:return ue(e,":",":"+ce)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ce+(We(e,14)===45?"inline-":"")+"box$3$1"+ce+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return ce+e+Je+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ce+e+Je+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ce+e+Je+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ce+e+Je+e+e}return e}var MT=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case fp:t.return=Ab(t.value,t.length);break;case Ob:return mo([ns(t,{value:ue(t.value,"@","@"+ce)})],o);case dp:if(t.length)return yT(t.props,function(s){switch(vT(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mo([ns(t,{props:[ue(s,/:(read-\w+)/,":"+ol+"$1")]})],o);case"::placeholder":return mo([ns(t,{props:[ue(s,/:(plac\w+)/,":"+ce+"input-$1")]}),ns(t,{props:[ue(s,/:(plac\w+)/,":"+ol+"$1")]}),ns(t,{props:[ue(s,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},DT=[MT],LT=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var x=h.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||DT,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var x=h.getAttribute("data-emotion").split(" "),g=1;g<x.length;g++)s[x[g]]=!0;l.push(h)});var c,u=[$T,AT];{var d,f=[RT,kT(function(h){d.insert(h)})],p=NT(u.concat(o,f)),y=function(x){return mo(jT(x),p)};c=function(x,g,v,b){d=v,y(x?x+"{"+g.styles+"}":g.styles),b&&(m.inserted[g.name]=!0)}}var m={key:n,sheet:new dT({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return m.sheet.hydrate(l),m},Mb={exports:{}},me={};/** @license React v16.13.1
271
61
  * react-is.production.min.js
272
62
  *
273
63
  * Copyright (c) Facebook, Inc. and its affiliates.
274
64
  *
275
65
  * This source code is licensed under the MIT license found in the
276
66
  * LICENSE file in the root directory of this source tree.
277
- */var FI;function jH(){if(FI)return wn;FI=1;var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,l=t?Symbol.for("react.fragment"):60107,u=t?Symbol.for("react.strict_mode"):60108,d=t?Symbol.for("react.profiler"):60114,m=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,y=t?Symbol.for("react.async_mode"):60111,x=t?Symbol.for("react.concurrent_mode"):60111,C=t?Symbol.for("react.forward_ref"):60112,w=t?Symbol.for("react.suspense"):60113,R=t?Symbol.for("react.suspense_list"):60120,A=t?Symbol.for("react.memo"):60115,N=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,I=t?Symbol.for("react.fundamental"):60117,M=t?Symbol.for("react.responder"):60118,P=t?Symbol.for("react.scope"):60119;function V(F){if(typeof F=="object"&&F!==null){var z=F.$$typeof;switch(z){case r:switch(F=F.type,F){case y:case x:case l:case d:case u:case w:return F;default:switch(F=F&&F.$$typeof,F){case h:case C:case N:case A:case m:return F;default:return z}}case i:return z}}}function U(F){return V(F)===x}return wn.AsyncMode=y,wn.ConcurrentMode=x,wn.ContextConsumer=h,wn.ContextProvider=m,wn.Element=r,wn.ForwardRef=C,wn.Fragment=l,wn.Lazy=N,wn.Memo=A,wn.Portal=i,wn.Profiler=d,wn.StrictMode=u,wn.Suspense=w,wn.isAsyncMode=function(F){return U(F)||V(F)===y},wn.isConcurrentMode=U,wn.isContextConsumer=function(F){return V(F)===h},wn.isContextProvider=function(F){return V(F)===m},wn.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===r},wn.isForwardRef=function(F){return V(F)===C},wn.isFragment=function(F){return V(F)===l},wn.isLazy=function(F){return V(F)===N},wn.isMemo=function(F){return V(F)===A},wn.isPortal=function(F){return V(F)===i},wn.isProfiler=function(F){return V(F)===d},wn.isStrictMode=function(F){return V(F)===u},wn.isSuspense=function(F){return V(F)===w},wn.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===l||F===x||F===d||F===u||F===w||F===R||typeof F=="object"&&F!==null&&(F.$$typeof===N||F.$$typeof===A||F.$$typeof===m||F.$$typeof===h||F.$$typeof===C||F.$$typeof===I||F.$$typeof===M||F.$$typeof===P||F.$$typeof===_)},wn.typeOf=V,wn}var Rn={},VI;function AH(){if(VI)return Rn;VI=1;var t={};/** @license React v16.13.1
278
- * react-is.development.js
279
- *
280
- * Copyright (c) Facebook, Inc. and its affiliates.
281
- *
282
- * This source code is licensed under the MIT license found in the
283
- * LICENSE file in the root directory of this source tree.
284
- */return t.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,u=r?Symbol.for("react.fragment"):60107,d=r?Symbol.for("react.strict_mode"):60108,m=r?Symbol.for("react.profiler"):60114,h=r?Symbol.for("react.provider"):60109,y=r?Symbol.for("react.context"):60110,x=r?Symbol.for("react.async_mode"):60111,C=r?Symbol.for("react.concurrent_mode"):60111,w=r?Symbol.for("react.forward_ref"):60112,R=r?Symbol.for("react.suspense"):60113,A=r?Symbol.for("react.suspense_list"):60120,N=r?Symbol.for("react.memo"):60115,_=r?Symbol.for("react.lazy"):60116,I=r?Symbol.for("react.block"):60121,M=r?Symbol.for("react.fundamental"):60117,P=r?Symbol.for("react.responder"):60118,V=r?Symbol.for("react.scope"):60119;function U(Ae){return typeof Ae=="string"||typeof Ae=="function"||Ae===u||Ae===C||Ae===m||Ae===d||Ae===R||Ae===A||typeof Ae=="object"&&Ae!==null&&(Ae.$$typeof===_||Ae.$$typeof===N||Ae.$$typeof===h||Ae.$$typeof===y||Ae.$$typeof===w||Ae.$$typeof===M||Ae.$$typeof===P||Ae.$$typeof===V||Ae.$$typeof===I)}function F(Ae){if(typeof Ae=="object"&&Ae!==null){var xt=Ae.$$typeof;switch(xt){case i:var ht=Ae.type;switch(ht){case x:case C:case u:case m:case d:case R:return ht;default:var Ht=ht&&ht.$$typeof;switch(Ht){case y:case w:case _:case N:case h:return Ht;default:return xt}}case l:return xt}}}var z=x,X=C,Y=y,ce=h,ie=i,me=w,ae=u,we=_,ge=N,xe=l,je=m,Le=d,re=R,De=!1;function G(Ae){return De||(De=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(Ae)||F(Ae)===x}function Z(Ae){return F(Ae)===C}function ne(Ae){return F(Ae)===y}function be(Ae){return F(Ae)===h}function Ee(Ae){return typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===i}function _e(Ae){return F(Ae)===w}function Ne(Ae){return F(Ae)===u}function ke(Ae){return F(Ae)===_}function Oe(Ae){return F(Ae)===N}function ve(Ae){return F(Ae)===l}function Ie(Ae){return F(Ae)===m}function Xe(Ae){return F(Ae)===d}function qe(Ae){return F(Ae)===R}Rn.AsyncMode=z,Rn.ConcurrentMode=X,Rn.ContextConsumer=Y,Rn.ContextProvider=ce,Rn.Element=ie,Rn.ForwardRef=me,Rn.Fragment=ae,Rn.Lazy=we,Rn.Memo=ge,Rn.Portal=xe,Rn.Profiler=je,Rn.StrictMode=Le,Rn.Suspense=re,Rn.isAsyncMode=G,Rn.isConcurrentMode=Z,Rn.isContextConsumer=ne,Rn.isContextProvider=be,Rn.isElement=Ee,Rn.isForwardRef=_e,Rn.isFragment=Ne,Rn.isLazy=ke,Rn.isMemo=Oe,Rn.isPortal=ve,Rn.isProfiler=Ie,Rn.isStrictMode=Xe,Rn.isSuspense=qe,Rn.isValidElementType=U,Rn.typeOf=F}(),Rn}var BI;function CR(){if(BI)return Bb.exports;BI=1;var t={};return t.NODE_ENV==="production"?Bb.exports=jH():Bb.exports=AH(),Bb.exports}/*
285
- object-assign
286
- (c) Sindre Sorhus
287
- @license MIT
288
- */var GE,$I;function OH(){if($I)return GE;$I=1;var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function l(d){if(d==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(d)}function u(){try{if(!Object.assign)return!1;var d=new String("abc");if(d[5]="de",Object.getOwnPropertyNames(d)[0]==="5")return!1;for(var m={},h=0;h<10;h++)m["_"+String.fromCharCode(h)]=h;var y=Object.getOwnPropertyNames(m).map(function(C){return m[C]});if(y.join("")!=="0123456789")return!1;var x={};return"abcdefghijklmnopqrst".split("").forEach(function(C){x[C]=C}),Object.keys(Object.assign({},x)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return GE=u()?Object.assign:function(d,m){for(var h,y=l(d),x,C=1;C<arguments.length;C++){h=Object(arguments[C]);for(var w in h)r.call(h,w)&&(y[w]=h[w]);if(t){x=t(h);for(var R=0;R<x.length;R++)i.call(h,x[R])&&(y[x[R]]=h[x[R]])}}return y},GE}var WE,zI;function SR(){if(zI)return WE;zI=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return WE=t,WE}var XE,UI;function fO(){return UI||(UI=1,XE=Function.call.bind(Object.prototype.hasOwnProperty)),XE}var YE,HI;function DH(){if(HI)return YE;HI=1;var t={},r=function(){};if(t.NODE_ENV!=="production"){var i=SR(),l={},u=fO();r=function(m){var h="Warning: "+m;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}}}function d(m,h,y,x,C){if(t.NODE_ENV!=="production"){for(var w in m)if(u(m,w)){var R;try{if(typeof m[w]!="function"){var A=Error((x||"React class")+": "+y+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}R=m[w](h,w,x,y,null,i)}catch(_){R=_}if(R&&!(R instanceof Error)&&r((x||"React class")+": type specification of "+y+" `"+w+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof R+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),R instanceof Error&&!(R.message in l)){l[R.message]=!0;var N=C?C():"";r("Failed "+y+" type: "+R.message+(N??""))}}}}return d.resetWarningCache=function(){t.NODE_ENV!=="production"&&(l={})},YE=d,YE}var ZE,GI;function kH(){if(GI)return ZE;GI=1;var t={},r=CR(),i=OH(),l=SR(),u=fO(),d=DH(),m=function(){};t.NODE_ENV!=="production"&&(m=function(y){var x="Warning: "+y;typeof console<"u"&&console.error(x);try{throw new Error(x)}catch{}});function h(){return null}return ZE=function(y,x){var C=typeof Symbol=="function"&&Symbol.iterator,w="@@iterator";function R(Z){var ne=Z&&(C&&Z[C]||Z[w]);if(typeof ne=="function")return ne}var A="<<anonymous>>",N={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:V(),arrayOf:U,element:F(),elementType:z(),instanceOf:X,node:me(),objectOf:ce,oneOf:Y,oneOfType:ie,shape:we,exact:ge};function _(Z,ne){return Z===ne?Z!==0||1/Z===1/ne:Z!==Z&&ne!==ne}function I(Z,ne){this.message=Z,this.data=ne&&typeof ne=="object"?ne:{},this.stack=""}I.prototype=Error.prototype;function M(Z){if(t.NODE_ENV!=="production")var ne={},be=0;function Ee(Ne,ke,Oe,ve,Ie,Xe,qe){if(ve=ve||A,Xe=Xe||Oe,qe!==l){if(x){var Ae=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 Ae.name="Invariant Violation",Ae}else if(t.NODE_ENV!=="production"&&typeof console<"u"){var xt=ve+":"+Oe;!ne[xt]&&be<3&&(m("You are manually calling a React.PropTypes validation function for the `"+Xe+"` prop on `"+ve+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ne[xt]=!0,be++)}}return ke[Oe]==null?Ne?ke[Oe]===null?new I("The "+Ie+" `"+Xe+"` is marked as required "+("in `"+ve+"`, but its value is `null`.")):new I("The "+Ie+" `"+Xe+"` is marked as required in "+("`"+ve+"`, but its value is `undefined`.")):null:Z(ke,Oe,ve,Ie,Xe)}var _e=Ee.bind(null,!1);return _e.isRequired=Ee.bind(null,!0),_e}function P(Z){function ne(be,Ee,_e,Ne,ke,Oe){var ve=be[Ee],Ie=Le(ve);if(Ie!==Z){var Xe=re(ve);return new I("Invalid "+Ne+" `"+ke+"` of type "+("`"+Xe+"` supplied to `"+_e+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return M(ne)}function V(){return M(h)}function U(Z){function ne(be,Ee,_e,Ne,ke){if(typeof Z!="function")return new I("Property `"+ke+"` of component `"+_e+"` has invalid PropType notation inside arrayOf.");var Oe=be[Ee];if(!Array.isArray(Oe)){var ve=Le(Oe);return new I("Invalid "+Ne+" `"+ke+"` of type "+("`"+ve+"` supplied to `"+_e+"`, expected an array."))}for(var Ie=0;Ie<Oe.length;Ie++){var Xe=Z(Oe,Ie,_e,Ne,ke+"["+Ie+"]",l);if(Xe instanceof Error)return Xe}return null}return M(ne)}function F(){function Z(ne,be,Ee,_e,Ne){var ke=ne[be];if(!y(ke)){var Oe=Le(ke);return new I("Invalid "+_e+" `"+Ne+"` of type "+("`"+Oe+"` supplied to `"+Ee+"`, expected a single ReactElement."))}return null}return M(Z)}function z(){function Z(ne,be,Ee,_e,Ne){var ke=ne[be];if(!r.isValidElementType(ke)){var Oe=Le(ke);return new I("Invalid "+_e+" `"+Ne+"` of type "+("`"+Oe+"` supplied to `"+Ee+"`, expected a single ReactElement type."))}return null}return M(Z)}function X(Z){function ne(be,Ee,_e,Ne,ke){if(!(be[Ee]instanceof Z)){var Oe=Z.name||A,ve=G(be[Ee]);return new I("Invalid "+Ne+" `"+ke+"` of type "+("`"+ve+"` supplied to `"+_e+"`, expected ")+("instance of `"+Oe+"`."))}return null}return M(ne)}function Y(Z){if(!Array.isArray(Z))return t.NODE_ENV!=="production"&&(arguments.length>1?m("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):m("Invalid argument supplied to oneOf, expected an array.")),h;function ne(be,Ee,_e,Ne,ke){for(var Oe=be[Ee],ve=0;ve<Z.length;ve++)if(_(Oe,Z[ve]))return null;var Ie=JSON.stringify(Z,function(qe,Ae){var xt=re(Ae);return xt==="symbol"?String(Ae):Ae});return new I("Invalid "+Ne+" `"+ke+"` of value `"+String(Oe)+"` "+("supplied to `"+_e+"`, expected one of "+Ie+"."))}return M(ne)}function ce(Z){function ne(be,Ee,_e,Ne,ke){if(typeof Z!="function")return new I("Property `"+ke+"` of component `"+_e+"` has invalid PropType notation inside objectOf.");var Oe=be[Ee],ve=Le(Oe);if(ve!=="object")return new I("Invalid "+Ne+" `"+ke+"` of type "+("`"+ve+"` supplied to `"+_e+"`, expected an object."));for(var Ie in Oe)if(u(Oe,Ie)){var Xe=Z(Oe,Ie,_e,Ne,ke+"."+Ie,l);if(Xe instanceof Error)return Xe}return null}return M(ne)}function ie(Z){if(!Array.isArray(Z))return t.NODE_ENV!=="production"&&m("Invalid argument supplied to oneOfType, expected an instance of array."),h;for(var ne=0;ne<Z.length;ne++){var be=Z[ne];if(typeof be!="function")return m("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+De(be)+" at index "+ne+"."),h}function Ee(_e,Ne,ke,Oe,ve){for(var Ie=[],Xe=0;Xe<Z.length;Xe++){var qe=Z[Xe],Ae=qe(_e,Ne,ke,Oe,ve,l);if(Ae==null)return null;Ae.data&&u(Ae.data,"expectedType")&&Ie.push(Ae.data.expectedType)}var xt=Ie.length>0?", expected one of type ["+Ie.join(", ")+"]":"";return new I("Invalid "+Oe+" `"+ve+"` supplied to "+("`"+ke+"`"+xt+"."))}return M(Ee)}function me(){function Z(ne,be,Ee,_e,Ne){return xe(ne[be])?null:new I("Invalid "+_e+" `"+Ne+"` supplied to "+("`"+Ee+"`, expected a ReactNode."))}return M(Z)}function ae(Z,ne,be,Ee,_e){return new I((Z||"React class")+": "+ne+" type `"+be+"."+Ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_e+"`.")}function we(Z){function ne(be,Ee,_e,Ne,ke){var Oe=be[Ee],ve=Le(Oe);if(ve!=="object")return new I("Invalid "+Ne+" `"+ke+"` of type `"+ve+"` "+("supplied to `"+_e+"`, expected `object`."));for(var Ie in Z){var Xe=Z[Ie];if(typeof Xe!="function")return ae(_e,Ne,ke,Ie,re(Xe));var qe=Xe(Oe,Ie,_e,Ne,ke+"."+Ie,l);if(qe)return qe}return null}return M(ne)}function ge(Z){function ne(be,Ee,_e,Ne,ke){var Oe=be[Ee],ve=Le(Oe);if(ve!=="object")return new I("Invalid "+Ne+" `"+ke+"` of type `"+ve+"` "+("supplied to `"+_e+"`, expected `object`."));var Ie=i({},be[Ee],Z);for(var Xe in Ie){var qe=Z[Xe];if(u(Z,Xe)&&typeof qe!="function")return ae(_e,Ne,ke,Xe,re(qe));if(!qe)return new I("Invalid "+Ne+" `"+ke+"` key `"+Xe+"` supplied to `"+_e+"`.\nBad object: "+JSON.stringify(be[Ee],null," ")+`
289
- Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var Ae=qe(Oe,Xe,_e,Ne,ke+"."+Xe,l);if(Ae)return Ae}return null}return M(ne)}function xe(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(xe);if(Z===null||y(Z))return!0;var ne=R(Z);if(ne){var be=ne.call(Z),Ee;if(ne!==Z.entries){for(;!(Ee=be.next()).done;)if(!xe(Ee.value))return!1}else for(;!(Ee=be.next()).done;){var _e=Ee.value;if(_e&&!xe(_e[1]))return!1}}else return!1;return!0;default:return!1}}function je(Z,ne){return Z==="symbol"?!0:ne?ne["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ne instanceof Symbol:!1}function Le(Z){var ne=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":je(ne,Z)?"symbol":ne}function re(Z){if(typeof Z>"u"||Z===null)return""+Z;var ne=Le(Z);if(ne==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return ne}function De(Z){var ne=re(Z);switch(ne){case"array":case"object":return"an "+ne;case"boolean":case"date":case"regexp":return"a "+ne;default:return ne}}function G(Z){return!Z.constructor||!Z.constructor.name?A:Z.constructor.name}return N.checkPropTypes=d,N.resetWarningCache=d.resetWarningCache,N.PropTypes=N,N},ZE}var qE,WI;function MH(){if(WI)return qE;WI=1;var t=SR();function r(){}function i(){}return i.resetWarningCache=r,qE=function(){function l(m,h,y,x,C,w){if(w!==t){var R=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 R.name="Invariant Violation",R}}l.isRequired=l;function u(){return l}var d={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:u,element:l,elementType:l,instanceOf:u,node:l,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:i,resetWarningCache:r};return d.PropTypes=d,d},qE}var LH={};if(LH.NODE_ENV!=="production"){var PH=CR(),FH=!0;Iw.exports=kH()(PH.isElement,FH)}else Iw.exports=MH()();var VH=Iw.exports;const Ve=nh(VH),BH=(t,r)=>{switch(r.type){case"SET_RESOURCE_DATA":return{...t,resourceData:r.payload,loading:!1};case"SET_LOADING":return{...t,loading:r.payload};case"SET_SUCCESS_MESSAGE":return{...t,successMessage:r.payload};case"SET_ERRORS":return{...t,errors:Array.isArray(r.payload)?r.payload:[r.payload],loading:!1};case"UPDATE_RESOURCE_FIELD":return{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,[r.field]:r.value}}};case"UPDATE_ALLOCATION":return{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,allocation_types:t.resourceData.resource_details.allocation_types.map(i=>i.allocation_type_id===r.payload.allocationTypeId?{...i,...r.payload.updates}:i)}}};case"UPDATE_BASE_RATE":return console.log("Reducer: Updating base rate to:",r.payload),{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,exchange_rates:{...t.resourceData.resource_details.exchange_rates,base_rate:r.payload}}}};case"UPDATE_EXCHANGE_RATE":return{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,exchange_rates:{...t.resourceData.resource_details.exchange_rates,discount_rates:t.resourceData.resource_details.exchange_rates.discount_rates.map(i=>i.id===r.payload.rateId?{...i,...r.payload.changes}:i)}}}};case"ADD_EXCHANGE_RATE":return console.log("Reducer: Adding new discount rate:",r.payload),{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,exchange_rates:{...t.resourceData.resource_details.exchange_rates,discount_rates:[...t.resourceData.resource_details.exchange_rates.discount_rates||[],r.payload]}}}};case"DELETE_EXCHANGE_RATE":return{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,exchange_rates:{...t.resourceData.resource_details.exchange_rates,discount_rates:t.resourceData.resource_details.exchange_rates.discount_rates.filter(i=>i.id!==r.payload)}}}};default:return t}},jw=t=>({type:"SET_RESOURCE_DATA",payload:t}),$H=t=>({type:"SET_LOADING",payload:t}),XI=(t,r)=>({type:"SET_SUCCESS_MESSAGE",payload:{message:t,color:r}}),cm=(t,r)=>({type:"UPDATE_RESOURCE_FIELD",field:t,value:r}),JE=(t,r)=>({type:"UPDATE_ALLOCATION",payload:{allocationTypeId:t,updates:r}}),zH=async(t,r)=>await(await fetch(`${r}/resources/${t}.json`)).json(),UH=async(t,r,i,l)=>(console.log("update resource",i),await fetch(`${r}/resources/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({resource:i,required_resources:l})})),HH=(t,r)=>{const[i,l]=k.useReducer(BH,{resourceData:null,loading:!0,errors:[],successMessage:{message:"",color:""}}),u=k.useCallback(async(m,h)=>{let y=[h];try{const x=await m.json();x.errors?y=x.errors:x.message&&(y=[x.message])}catch(x){console.error("Error parsing error response:",x)}l({type:"SET_ERRORS",payload:y})},[]),d=k.useCallback(async()=>{l($H(!0));try{const m=await zH(t,r);l(jw(m))}catch(m){console.error("Failed to fetch resource data:",m),l({type:"SET_ERRORS",payload:"Failed to fetch resource data. Please try again later."})}},[t,r]);return k.useEffect(()=>{d()},[d]),{state:i,dispatch:l,handleError:u,fetchData:d}},ER=t=>{var r,i,l;return{allowedActionsOptions:((r=t==null?void 0:t.resource_state_types_available)==null?void 0:r.map(u=>({value:u.resource_state_type_id,label:u.display_resource_state_type,additionalInfo:u.action_types.map(d=>d.display_action_type).join(", ")})))||[],resourceTypesOptions:((i=t==null?void 0:t.resource_types_available)==null?void 0:i.map(u=>({value:u.resource_type_id,label:u.display_resource_type})))||[],unitTypesOptions:((l=t==null?void 0:t.unit_types_available)==null?void 0:l.map(u=>({value:u.unit_type_id,label:u.display_unit_type})))||[],availableResources:(t==null?void 0:t.required_resources_available)||[],availableAllocationTypes:(t==null?void 0:t.unassigned_allocation_types)||[]}},GH=(t,r,i,l,u,d,m)=>{const y=(()=>{var R;if(!t)return[];const w=new Set;return(R=t.allocation_types)==null||R.forEach(A=>{var N;(N=A.required_resources)==null||N.forEach(_=>{w.add(_.resource_name)})}),Array.from(w).sort((A,N)=>A.localeCompare(N)).map(A=>({key:A,name:`Require ${A}`,width:150,type:"checkbox"}))})();return{allocationColumns:[{key:"display_name",name:"Allocation Type",width:200},{key:"allowed_actions",name:"Allowed Actions",width:200,type:"select"},{key:"comment",name:"Descriptive Text",width:200,type:"input",tooltip:"Appears below the resource name and allocations description in the form when making a new request"},...y],allocationRows:t!=null&&t.allocation_types?t.allocation_types.map(w=>{var R;return{display_name:w.display_name,allocation_type_id:w.allocation_type_id,allowed_actions:{options:l,value:((R=w.allowed_action)==null?void 0:R.resource_state_type_id)||"",onChange:A=>u(w.allocation_type_id,A)},comment:{value:w.comment||"",onChange:A=>d(w.allocation_type_id,A)},...Object.fromEntries(y.map(A=>{var N;return[A.key,{checked:((N=w.required_resources)==null?void 0:N.some(_=>_.resource_name===A.key))||!1,onChange:_=>m(w.allocation_type_id,A.key,_,w)}]}))}}):[],requiredResourcesColumns:y}},WH=(t,r,i)=>{const{availableResources:l,availableAllocationTypes:u,allowedActionsOptions:d}=ER(t),[m,h]=k.useState(!1),[y,x]=k.useState(!1),[C,w]=k.useState([]),[R,A]=k.useState(""),N=k.useCallback((F,z)=>{i(JE(F,{allowed_action:{resource_state_type_id:z}}))},[i]),_=k.useCallback((F,z)=>{i(JE(F,{comment:z}))},[i]),I=k.useCallback((F,z,X,Y)=>{const ce=X?[...Y.required_resources||[],{resource_name:z,required_resource_id:t.required_resources_available.find(ie=>ie.resource_name===z).resource_id}]:(Y.required_resources||[]).filter(ie=>ie.resource_name!==z);i(JE(F,{required_resources:ce}))},[t,i]);k.useEffect(()=>{if(m&&r){const F=r.allocation_types.flatMap(z=>z.required_resources||[]).map(z=>z.required_resource_id);w(F)}},[m,r]);const M=k.useCallback((F,z)=>{w(X=>z?[...X,F]:X.filter(Y=>Y!==F))},[]),P=k.useCallback(()=>{const F=r.allocation_types.flatMap(ce=>ce.required_resources||[]).map(ce=>ce.required_resource_id),z=C.filter(ce=>!F.includes(ce)),X=F.filter(ce=>!C.includes(ce)),Y=r.allocation_types.map(ce=>{const ie=ce.required_resources||[],me=z.map(we=>{const ge=l.find(xe=>xe.resource_id===we);return{resource_name:ge.resource_name,required_resource_id:ge.resource_id}}),ae=ie.filter(we=>!X.includes(we.required_resource_id)).concat(me.filter(we=>!ie.some(ge=>ge.required_resource_id===we.required_resource_id)));return{...ce,required_resources:ae}});i(jw({...t,resource_details:{...r,allocation_types:Y}})),w([]),h(!1)},[C,l,r,t,i]),V=k.useCallback(F=>{const z=F.target.value;A(z)},[]),U=k.useCallback(()=>{var X,Y;if(!R)return;const F=u.find(ce=>ce.allocation_type_id.toString()===R),z=(X=r.allocation_types)==null?void 0:X.some(ce=>ce.allocation_type_id===F.allocation_type_id);if(F&&!z){const ce=(Y=d[0])==null?void 0:Y.value,ie=[...r.allocation_types||[],{allocation_type_id:F.allocation_type_id,display_name:F.display_name,allowed_action:{resource_state_type_id:ce},comment:"",required_resources:[]}];i(jw({...t,resource_details:{...r,allocation_types:ie}})),x(!1)}},[R,u,r,t,i,d]);return{showAddResourceModal:m,setShowAddResourceModal:h,showAddAllocationTypeModal:y,setShowAddAllocationTypeModal:x,selectedNewResource:C,handleSelectNewResource:M,handleSaveResources:P,selectedNewAllocationType:R,handleSelectNewAllocationType:V,handleSaveAllocationType:U,handleAllowedActionChange:N,handleCommentChange:_,handleRequiredResourceChange:I}},XH=(t,r,i,l,u,d)=>k.useCallback(async()=>{var y,x,C;if(!t)return;const m={resource_name:t.resource_name,description:t.description,resource_type_id:t.resource_type_id,unit_type_id:t.unit_type_id,dollar_value:t.dollar_value,allocation_types:t.allocation_types.map(w=>{var R;return{allocation_type_id:w.allocation_type_id,allowed_action:{resource_state_type_id:(R=w.allowed_action)==null?void 0:R.resource_state_type_id},comment:w.comment||""}}),exchange_rates:{base_rate:(y=t.exchange_rates)==null?void 0:y.base_rate,discount_rates:(C=(x=t.exchange_rates)==null?void 0:x.discount_rates)==null?void 0:C.map(w=>({id:w.id,exchange_rate:w.exchange_rate,begin_date:w.begin_date,end_date:w.end_date}))}},h={};t.allocation_types.forEach(w=>{w.required_resources.forEach(R=>{h[R.required_resource_id]||(h[R.required_resource_id]=[]),h[R.required_resource_id].push(w.allocation_type_id)})});try{const w=await UH(r,i,m,h);if(w.ok){const R=await w.json();return d(XI(R.message||"Resource updated successfully!","success")),await l(),!0}else return await u(w,"Failed to update resource"),!1}catch{return d(XI("Error updating resource. Please try again later.","danger")),!1}},[t,r,i,l,u]),YH=(t=!1)=>{const[r,i]=k.useState(t);return{isEditing:r,handleEditingChange:u=>{i(u)}}},ZH={"form-wrapper":"_form-wrapper_mu0yh_1"},Cx=({show:t,onClose:r,title:i,children:l,onSave:u,buttonText:d,cancelText:m="Cancel",canSave:h=!0})=>t?v.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",display:"flex",alignItems:"center",zIndex:1050},children:v.jsx("div",{className:"modal fade in",tabIndex:"-1",role:"dialog","aria-hidden":"true",style:{width:"90%",maxWidth:"600px",maxHeight:"90%",overflow:"auto",backgroundColor:"white",position:"relative"},children:v.jsx("div",{className:"modal-dialog",role:"document",children:v.jsxs("div",{className:"modal-content",children:[v.jsxs("div",{className:"modal-header",children:[v.jsx("button",{type:"button",className:"close","data-dismiss":"modal",onClick:r,"aria-label":"Close",children:v.jsx("h3",{"aria-hidden":"true",className:"text-danger",children:"×"})}),v.jsx("h3",{className:"modal-title",children:i})]}),v.jsx("div",{className:"modal-body",children:l}),v.jsxs("div",{className:"modal-footer",style:{padding:"15px",textAlign:"right",borderTop:"1px solid #e5e5e5",backgroundColor:"#f8f9fa"},children:[v.jsx("button",{className:"btn btn-danger",onClick:r,children:m}),v.jsx("button",{className:"btn btn-success",onClick:u,disabled:!h,children:d})]})]})})})}):null;Cx.propTypes={show:Ve.bool.isRequired,onClose:Ve.func.isRequired,title:Ve.string.isRequired,children:Ve.node.isRequired,onSave:Ve.func.isRequired,buttonText:Ve.string,cancelText:Ve.string,canSave:Ve.bool};const hr=({children:t,color:r,dismissable:i=!1})=>v.jsxs("div",{className:`alert alert-${r} mt-3 alert-dismissible show`,role:"alert",children:[t,i&&v.jsx("button",{type:"button",className:"close","data-dismiss":"alert","aria-label":"Close",children:v.jsx("span",{"aria-hidden":"true",children:"×"})})]}),Yp=({label:t,options:r,value:i,onChange:l,...u})=>v.jsxs("div",{className:"form-group",children:[t&&v.jsx("label",{children:t}),v.jsx("select",{className:"form-control",value:i,onChange:l,...u,children:r.map(d=>v.jsxs("option",{value:d.value,children:[d.label,d.additionalInfo&&` - ${d.additionalInfo}`]},d.value))})]});Yp.propTypes={label:Ve.string,options:Ve.arrayOf(Ve.shape({value:Ve.oneOfType([Ve.string,Ve.number]).isRequired,label:Ve.string.isRequired,additionalInfo:Ve.string})).isRequired,value:Ve.oneOfType([Ve.string,Ve.number]),onChange:Ve.func.isRequired};function xm({label:t,type:r="text",value:i,onChange:l,disabled:u=!1,infoText:d="",style:m,inputClassName:h,inputAddon:y}){return v.jsxs(v.Fragment,{children:[t&&v.jsx("label",{children:t}),d&&v.jsx("small",{className:"form-text help-block",children:d}),r==="textarea"?v.jsx("textarea",{className:`form-control ${h||""}`,value:i,onChange:l,disabled:u,rows:"6"}):y?v.jsxs("div",{className:"input-prepend",children:[v.jsx("span",{className:"add-on",children:y}),v.jsx("input",{type:r,className:`form-control ${h||""}`,style:m,value:i,onChange:l,disabled:u})]}):v.jsx("input",{type:r,className:`form-control ${h||""}`,style:m,value:i,onChange:l,disabled:u})]})}const qH="_blurred_16xcy_16",ql={"advanced-settings":"_advanced-settings_16xcy_1","header-wrapper":"_header-wrapper_16xcy_5","content-container":"_content-container_16xcy_11",blurred:qH,"warning-banner":"_warning-banner_16xcy_21","alt-warning-banner":"_alt-warning-banner_16xcy_40 _warning-banner_16xcy_21"},wR=({headerText:t,header:r,children:i,isEditing:l=!1,onEditingChange:u,warningMessage:d=""})=>{const m=t&&t.type==="label";return v.jsxs("div",{className:ql["advanced-settings"],children:[(t||r)&&v.jsxs("div",{className:ql["header-wrapper"],children:[t,r&&v.jsx("div",{className:`${ql["header-buttons-container"]} ${l?"":ql.blurred}`,children:r})]}),v.jsxs("div",{style:{width:"100%"},children:[!l&&v.jsxs("div",{className:m?`${ql["alt-warning-banner"]}`:ql["warning-banner"],children:[v.jsxs("span",{className:ql["warning-text"],children:[v.jsx("strong",{children:"CAUTION! "})," ",d]}),v.jsx("button",{className:"btn btn-danger",onClick:()=>u(!0),children:"I understand the risks"})]}),v.jsx("div",{className:`${ql["content-container"]} ${l?"":ql.blurred}`,children:i})]})]})};wR.propTypes={headerText:Ve.node,header:Ve.node,children:Ve.node.isRequired,isEditing:Ve.bool,onEditingChange:Ve.func.isRequired,warningMessage:Ve.string};const RR=ir.memo(function({resourceDetails:r,resourceTypesOptions:i,unitTypesOptions:l,dispatch:u,isDollarValueEditing:d,onDollarValueEditingChange:m,showDollarValue:h=!0,showResourceId:y=!0,useAdvancedSettings:x=!0}){const C="Dollar Value per SUs",w=h?v.jsx(xm,{label:x?null:C,value:r.dollar_value,onChange:R=>u(cm("dollar_value",R.target.value)),type:"number",inputAddon:"$",inputClassName:"span4"}):null;return v.jsxs(v.Fragment,{children:[v.jsx(xm,{label:"Resource Name",value:r.resource_name,onChange:R=>u(cm("resource_name",R.target.value)),inputClassName:"span8"}),y&&v.jsx(xm,{label:"Resource Repository Key",value:r.resource_repository_key,disabled:!0,inputClassName:"span8"}),x&&h?v.jsx(wR,{headerText:v.jsx("label",{children:C}),isEditing:d,onEditingChange:m,warningMessage:"Dollar value is for reporting and should only be modified if the SU rate changes.",children:w}):w,v.jsx(xm,{label:"Allocations Description",type:"textarea",value:r.description,infoText:"Appears below the resource name in the form when making a new request, as well as under the header Allocations Description in resource catalogs",onChange:R=>u(cm("description",R.target.value)),inputClassName:"span8"}),v.jsx(Yp,{label:"Resource Type",options:i,value:r.resource_type_id,onChange:R=>u(cm("resource_type_id",R.target.value)),className:"span8"}),v.jsx(Yp,{label:"Unit Type",options:l,value:r.unit_type_id,onChange:R=>u(cm("unit_type_id",R.target.value)),className:"span8"})]})});RR.propTypes={resourceDetails:Ve.object.isRequired,resourceTypesOptions:Ve.array.isRequired,unitTypesOptions:Ve.array.isRequired,dispatch:Ve.func.isRequired,isDollarValueEditing:Ve.bool,onDollarValueEditingChange:Ve.func,showDollarValue:Ve.bool,showResourceId:Ve.bool,useAdvancedSettings:Ve.bool};function pO({onClose:t}){const[r,i]=k.useState(!0),[l,u]=k.useState([]),[d,m]=k.useState(null),[h,y]=k.useState(-1),[x,C]=k.useState(null),w=ER(x);w.resourceTypesOptions.unshift({value:0,label:"Select a resource type..."}),w.unitTypesOptions.unshift({value:0,label:"Select a unit type..."}),k.useEffect(()=>{(async()=>{const P=await fetch("/resources/addable.json");i(!1),P.status==200?u(await P.json()):m("Error retrieving resource list.")})()},[]),k.useEffect(()=>{if(h===-1)return C(null);(async()=>{const P=await fetch(`/resources/addable/${h}.json`);P.status==200?C(await P.json()):m("Error retrieving resource details.")})()},[h]);let R=null;r?R=v.jsx("p",{children:"Loading…"}):d!==null?R=v.jsx(hr,{color:"danger",children:d}):l.length==0&&(R=v.jsx(hr,{children:"There are currently no resources available to add."}));const A=[{value:-1,label:"Select a resource..."}].concat(l.map(P=>({value:P.xras_cider_resource_id,label:P.resource_descriptive_name}))),N=x?x.resource_details:null,_=!d&&N&&N.resource_name.length>0&&N.resource_type_id>0&&N.unit_type_id>0,I=P=>{P.type=="UPDATE_RESOURCE_FIELD"&&C({...x,resource_details:{...x.resource_details,[P.field]:P.value}})},M=()=>{(async()=>{const P=await fetch("/resources",{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({...N,resource_repository_key:h})});if(P.status==200){const V=await P.json();window.location=`/resources/${V.resource_id}`}else m("Error saving resource.")})()};return R===null&&(R=v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:"Select a Resource to Add"}),v.jsx(Yp,{options:A,onChange:P=>y(parseInt(P.target.value))}),!x&&h!==-1?v.jsx("p",{children:"Loading…"}):null,x&&v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:"Resource Properties"}),v.jsx("p",{style:{fontStyle:"italic",fontWeight:"bold"},children:"Any modifications to these resource properties will be applied globally and impact resources on other all allocations process"}),v.jsx("div",{className:ZH["form-wrapper"],children:v.jsx(RR,{resourceDetails:N,resourceTypesOptions:w.resourceTypesOptions,unitTypesOptions:w.unitTypesOptions,showResourceId:!1,showDollarValue:!1,dispatch:I})})]})]})),v.jsx(Cx,{show:!0,onClose:t,title:"Add a Resource from CIDeR",onSave:M,buttonText:"Save",canSave:_,children:R})}pO.propTypes={onClose:Ve.func.isRequired};function JH({availableResources:t,canAdd:r=!1,relativeUrlRoot:i}){const l=k.useMemo(()=>NH(t),[t]),[u,d]=k.useState(l),[m,h]=k.useState(!1),y=k.useRef(null),x=k.useRef(null);k.useEffect(()=>{d(l)},[l]);const C=(A,N)=>{y.current=N},w=(A,N)=>{if(A.preventDefault(),y.current===N)return;const _=[...u],I=_[y.current];_.splice(y.current,1),_.splice(N,0,I),y.current=N,d(_);const{clientY:M}=A,P=130;M<P?PI(-1,x):window.innerHeight-M<P?PI(1,x):HE(x)},R=()=>{y.current=null,HE(x),TH(i,u)};return k.useEffect(()=>()=>HE(x),[]),v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:ls["resources-container"],children:[r&&v.jsx("button",{className:"btn btn-primary pull-right",onClick:()=>h(!0),children:"Add a Resource from CIDeR"}),v.jsx("h2",{children:"Select a resource from the list to modify"}),v.jsx("p",{className:ls["drag-instruction"],children:"Drag items to reorder the list."}),v.jsxs("div",{className:ls["resources-list"],children:[v.jsxs("div",{className:ls["resources-header"],children:[v.jsx("span",{className:ls["header-name"],children:"Resource Name"}),v.jsx("span",{className:ls["header-repo"],children:"Repository Key"})]}),u.map((A,N)=>v.jsxs("div",{className:`${ls["resources-item"]}`,draggable:!0,onDragStart:_=>C(_,N),onDragOver:_=>w(_,N),onDrop:R,children:[v.jsx("span",{className:ls["drag-handle"]}),v.jsx("span",{className:ls["resource-name"],children:v.jsx("a",{href:`${i}/resources/${A.resource_id}`,className:ls["resource-link"],children:A.display_resource_name})}),v.jsx("span",{className:ls["resource-repo"],children:A.resource_repository_key||"N/A"})]},A.resource_id))]})]}),m&&v.jsx(pO,{onClose:()=>h(!1)})]})}function ah(){return v.jsx("div",{className:"spinner-border",role:"status",children:v.jsx("span",{className:"visually-hidden",children:"Loading..."})})}const QH="_grid_afccc_1",KH="_important_afccc_30",e3="_input_afccc_34",t3="_edited_afccc_38",n3="_disabled_afccc_46",r3="_scroll_afccc_59",Gd={grid:QH,important:KH,input:e3,edited:t3,disabled:n3,scroll:r3};function a3({column:t,row:r,style:i={}}){const l=t.format?t.format(r[t.key],r):r[t.key],u=["cell"];return t.class&&u.push(t.class),t.rowClass&&u.push(t.rowClass(r)),v.jsx("td",{className:u.join(" "),style:i,children:l})}const _R=({title:t,placement:r,children:i})=>(k.useEffect(()=>($('[data-toggle="tooltip"]').tooltip(),()=>{$('[data-toggle="tooltip"]').tooltip("destroy")}),[]),v.jsx("span",{"data-toggle":"tooltip","data-placement":r,title:t,style:{margin:"10px"},children:i}));_R.propTypes={title:Ve.string.isRequired,placement:Ve.oneOf(["top","bottom","left","right"]),children:Ve.node.isRequired};_R.defaultProps={placement:"top"};const i3="_datepicker_19wnv_1",o3="_error_19wnv_1",YI={datepicker:i3,error:o3},s3=({value:t,onChange:r,disabled:i=!1,style:l,className:u="",minDate:d="",maxDate:m="",error:h=""})=>{const y=h;return v.jsx("div",{className:`w-full ${u}`,children:v.jsx("input",{type:"date",style:l,className:`${YI.datepicker} ${y?YI.error:""}`,value:t||"",onChange:x=>r(x.target.value),disabled:i,min:d||"1900-01-01",max:m||"2100-12-31"})})},dm=(t,r,i)=>{if(r.onChange){r.onChange(i,t);return}const l=t[r.key];l!=null&&l.onChange&&l.onChange(i)},l3={text:a3,select:({column:t,row:r,style:i})=>v.jsx("td",{style:i,children:v.jsx(Yp,{label:"",options:r[t.key].options,value:r[t.key].value,onChange:l=>dm(r,t,l.target.value),style:{width:"100%",margin:0}})}),input:({column:t,row:r,style:i})=>v.jsx("td",{style:i,children:v.jsx(xm,{label:"",type:"text",disabled:r[t.key].disabled,value:r[t.key].value,onChange:l=>dm(r,t,l.target.value),style:{width:"92%",margin:0}})}),checkbox:({column:t,row:r,style:i})=>v.jsx("td",{style:i,children:v.jsx("input",{type:"checkbox",checked:r[t.key].checked,onChange:l=>dm(r,t,l.target.checked)})}),date:({column:t,row:r,style:i})=>{const l=r[t.key];return!(l!=null&&l.value)&&typeof l!="object"?v.jsx("td",{style:i,children:l||""}):v.jsx("td",{style:i,children:v.jsx(s3,{value:l.value,onChange:u=>dm(r,t,u),disabled:l.disabled,style:{width:"92%",margin:0},minDate:t.minDate,maxDate:t.maxDate,error:l.error})})},action:({column:t,row:r,style:i})=>v.jsx("td",{style:i,children:r.rate_type==="Discount"&&v.jsx("button",{className:"btn btn-link text-danger",onClick:()=>{var l;return dm(r,t,(l=r[t.key])==null?void 0:l.id)},children:v.jsx("i",{className:"fa fa-trash"})})})};function su({columns:t,rows:r,classes:i,frozenColumns:l=0,minWidth:u,rowClasses:d=[],scroll:m=!0,scrollBehavior:h="smooth",scrollRowIndex:y=0}){const x=k.useRef();k.useLayoutEffect(()=>{if(!m||!x.current)return;const _=x.current.querySelector(`tbody tr:nth-child(${y+1})`);_&&_.scrollIntoView({behavior:h,block:"nearest",inline:"nearest"})},[m,y,h]);const C=[0];for(let _=0;_<l;_++)C[_+1]=C[_]+(t[_].width||100);const w=(_,I)=>_<l?{position:"sticky",left:`${C[_]}px`,minWidth:`${t[_].width||100}px`,width:`${t[_].width||100}px`,zIndex:I||1}:{},R=t.map((_,I)=>v.jsxs("th",{className:_.headerClass||_.class||"",style:w(I,100),children:[_.formatHeader?_.formatHeader(_.name,_):_.name,_.tooltip&&v.jsx(_R,{title:_.tooltip,placement:"bottom",children:v.jsx("i",{className:"icon-info-sign"})})]},_.key)),A=r.map((_,I)=>{const M=t.map((P,V)=>{const U=l3[P.type||"text"];return v.jsx(U,{column:P,row:_,style:w(V)},P.key)});return v.jsx("tr",{className:d[I]||"",children:M},I)}),N={};return u&&(N.minWidth=u),v.jsx("div",{className:`${Gd.grid} ${m?Gd.scroll:""} ${i||""}`,ref:x,children:v.jsxs("table",{className:"table table-bordered",style:N,children:[v.jsx("thead",{children:v.jsx("tr",{children:R})}),v.jsx("tbody",{children:A})]})})}const Aw={"header-buttons":"_header-buttons_15oxx_1","allocation-types-grid":"_allocation-types-grid_15oxx_6","vertical-align-center":"_vertical-align-center_15oxx_10"},hO=({onAddAllocationType:t,onAddRequiredResource:r})=>v.jsxs("div",{className:Aw["header-buttons"],children:[v.jsxs("button",{className:"btn btn-primary",onClick:t,children:[v.jsx("i",{className:"fa fa-plus"})," Add Allocation Type"]}),v.jsxs("button",{className:"btn btn-primary",onClick:r,children:[v.jsx("i",{className:"fa fa-plus"})," Add Required Resource"]})]});hO.propTypes={headerText:Ve.node,onAddAllocationType:Ve.func.isRequired,onAddRequiredResource:Ve.func.isRequired};const vO=ir.memo(function({columns:r,rows:i}){return v.jsxs("div",{className:Aw["allocation-types-grid"],children:[v.jsx(su,{columns:r,rows:i,rowClasses:Array(i.length).fill(Aw["vertical-align-center"]),scroll:!1}),v.jsx("p",{style:{margin:"0",fontStyle:"italic",fontWeight:"bold"},children:"Note: You may need to contact your Allocations Coordinator if you have added this resource to an allocation type."})]})});vO.propTypes={columns:Ve.array.isRequired,rows:Ve.array.isRequired};const Vp={"exchange-rates-grid":"_exchange-rates-grid_5qkd5_1","header-container":"_header-container_5qkd5_5","header-buttons":"_header-buttons_5qkd5_11","vertical-align-center":"_vertical-align-center_5qkd5_18","error-summary":"_error-summary_5qkd5_35"},mO=ir.memo(function({columns:r,rows:i,onAddDiscountRate:l,dateErrors:u=[]}){return v.jsxs("div",{className:Vp["exchange-rates-grid"],children:[v.jsxs("div",{className:Vp["header-container"],children:[v.jsx("h2",{className:Vp["header-title"],children:"Exchange Rates"}),v.jsx("div",{className:Vp["header-buttons"],children:v.jsxs("button",{className:"btn btn-primary",onClick:l,children:[v.jsx("i",{className:"fa fa-plus"})," Add Discount Rate"]})})]}),v.jsx(su,{columns:r,rows:i,rowClasses:Array(i.length).fill(Vp["vertical-align-center"]),scroll:!1}),u.length>0&&v.jsx("div",{className:Vp["error-summary"],children:v.jsx("ul",{children:u.map((d,m)=>v.jsx("li",{children:d},m))})})]})});mO.propTypes={columns:Ve.array.isRequired,rows:Ve.array.isRequired,onAddDiscountRate:Ve.func.isRequired,dateErrors:Ve.array};const u3=(t,r)=>{const i=k.useCallback(A=>{var _,I;r({type:"DELETE_EXCHANGE_RATE",payload:A}),(((I=(_=t==null?void 0:t.resource_details)==null?void 0:_.exchange_rates)==null?void 0:I.discount_rates.filter(M=>M.id!==A))||[]).forEach(M=>{M.begin_date&&M.end_date&&r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:M.id,changes:{start_date_error:"",end_date_error:""}}})})},[r,t]),l=[{key:"rate_type",name:"Rate Type",width:150},{key:"rate",name:"Exchange Rate",width:100,type:"input",tooltip:"Exchange rate is the cost in ACCESS Credits of one resource unit. ACCESS Credits / exchange rate = resource units"},{key:"conversion",name:"Resource Units per ACCESS Credit",width:150},{key:"start_date",name:"Start Date",width:150,type:"date",minDate:new Date().toISOString().split("T")[0]},{key:"end_date",name:"End Date",width:150,type:"date",minDate:new Date().toISOString().split("T")[0]},{key:"actions",name:"",width:80,type:"action",onChange:i}],u=A=>{r({type:"UPDATE_BASE_RATE",payload:A})},d=(A,N)=>{const _={exchange_rate:N},I={};N?I.rate_error="":I.rate_error="Exchange Rate cannot be empty",r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:A,changes:{..._,...I}}})},m=()=>{var _,I;const A=[];return(((I=(_=t==null?void 0:t.resource_details)==null?void 0:_.exchange_rates)==null?void 0:I.discount_rates)||[]).forEach(M=>{M.start_date_error&&A.push(M.start_date_error),M.end_date_error&&A.push(M.end_date_error),M.rate_error&&A.push(M.rate_error)}),A.filter((M,P)=>M&&M!==""&&(!M.includes("overlaps")||A.indexOf(M)===P))},h=A=>{const N=new Date(A);return new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"numeric",day:"numeric",year:"numeric"}).format(N)},y=(A,N,_,I)=>{const M=new Date(A).getTime(),P=new Date(N).getTime(),V=new Date(_).getTime(),U=new Date(I).getTime();return M<=U&&V<=P},x=(A,N)=>{let _="";if(A.begin_date&&A.end_date){const I=N.filter(M=>M.id!==A.id);for(const M of I)if(M.begin_date&&M.end_date&&y(A.begin_date,A.end_date,M.begin_date,M.end_date)){_=`The selected date range (${h(A.begin_date)} to ${h(A.end_date)}) overlaps with an existing discount rate (${h(M.begin_date)} to ${h(M.end_date)})`;break}}return _},C=(A,N,_)=>{var ie,me;const I={start_date:"begin_date",end_date:"end_date"},M=ae=>{const we=new Date(ae);return new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"numeric",day:"numeric",year:"numeric"}).format(we)},P=((me=(ie=t==null?void 0:t.resource_details)==null?void 0:ie.exchange_rates)==null?void 0:me.discount_rates)||[],V=P.find(ae=>ae.id===A);if(!V)return;const U={[I[N]]:_},F={},z=N==="end_date",X=()=>{if(!_)return F[`${N}_error`]="Date cannot be empty or invalid",!1;const ae=l.find(je=>je.key===N),we=(ae==null?void 0:ae.minDate)||"1900-01-01",ge=(ae==null?void 0:ae.maxDate)||"2100-12-31",xe=z&&V.begin_date?V.begin_date:we;return _<xe?(F[`${N}_error`]=`${N.replace("_"," ")} ${M(_)} cannot be before ${M(xe)}`,!1):_>ge?(F[`${N}_error`]=`${N.replace("_"," ")} cannot be after ${M(ge)}`,!1):(F[`${N}_error`]="",!0)},Y=()=>{const ae=N==="end_date"?_:V.end_date;if(N==="start_date"&&ae){if(_>ae)return F.end_date_error=`end date ${M(ae)} cannot be before ${M(_)}`,!1;F.end_date_error=F.end_date_error||""}return!0},ce=()=>{console.log("validating overlaps");const ae=N==="start_date"?_:V.begin_date,we=N==="end_date"?_:V.end_date;if(ae&&we){const ge=x({...V,begin_date:ae,end_date:we},P);return F.start_date_error=ge,F.end_date_error=ge,!ge}return!0};if(!X()){r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:A,changes:{...U,...F}}});return}Y(),ce(),z&&!V.begin_date?F.start_date_error="Date cannot be empty or invalid":!z&&!V.end_date&&(F.end_date_error="Date cannot be empty or invalid"),r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:A,changes:{...U,...F}}})},w=()=>{var F,z;const A=((z=(F=t==null?void 0:t.resource_details)==null?void 0:F.exchange_rates)==null?void 0:z.discount_rates)||[];let _=new Date;A.forEach(X=>{if(X.end_date){const Y=new Date(X.end_date);Y>_&&(_=Y)}});const I=new Date(_);I.setDate(I.getDate()+1);const M=I.toISOString().split("T")[0],P=new Date(I);P.setDate(P.getDate()+15);const V=P.toISOString().split("T")[0],U={id:Date.now(),exchange_rate:"1.0",begin_date:M,end_date:V,is_new:!0};r({type:"ADD_EXCHANGE_RATE",payload:U})};return{exchangeRateColumns:l,exchangeRateRows:(()=>{var V,U;const A=(V=t==null?void 0:t.resource_details)==null?void 0:V.exchange_rates,N=(A==null?void 0:A.base_rate)??"",_=(A==null?void 0:A.discount_rates)||[],I=new Date().toISOString().split("T")[0],M=((U=t==null?void 0:t.resource_details)==null?void 0:U.unit_type)||"Resource Units",P=F=>!F||Number(F)===0?"-":`${(1/Number(F)).toFixed(2)} ${M}`;return[{rate_type:"Base Rate",rate:{value:N.toString(),onChange:F=>u(F)},conversion:P(N)},..._.map(F=>{var ce;const z=F.is_new||F.begin_date>I,X=z||F.begin_date==="",Y=F.is_new||F.end_date>=I||F.end_date==="";return{rate_type:"Discount",rate:{value:((ce=F.exchange_rate)==null?void 0:ce.toString())||"",onChange:z?ie=>d(F.id,ie):null,disabled:!z},conversion:P(F.exchange_rate),start_date:{value:F.begin_date||"",onChange:ie=>C(F.id,"start_date",ie),error:F.start_date_error,disabled:!X},end_date:{value:F.end_date||"",onChange:ie=>C(F.id,"end_date",ie),error:F.end_date_error,disabled:!Y},actions:{id:F.id}}})]})(),handleAddDiscountRate:w,handleDeleteRate:i,dateErrors:m()}};function gO({resourceId:t,relativeUrlRoot:r,setExternalSubmit:i}){const{state:l,dispatch:u,handleError:d,fetchData:m}=HH(t,r),{isEditing:h,handleEditingChange:y}=YH(),{resourceData:x,loading:C,errors:w,successMessage:R}=l,A=x==null?void 0:x.resource_details,N=x==null?void 0:x.uses_exchange_rates,{allowedActionsOptions:_,resourceTypesOptions:I,unitTypesOptions:M,availableResources:P,availableAllocationTypes:V}=ER(x),{showAddResourceModal:U,setShowAddResourceModal:F,showAddAllocationTypeModal:z,setShowAddAllocationTypeModal:X,selectedNewResource:Y,handleSelectNewResource:ce,handleSaveResources:ie,selectedNewAllocationType:me,handleSelectNewAllocationType:ae,handleSaveAllocationType:we,handleAllowedActionChange:ge,handleCommentChange:xe,handleRequiredResourceChange:je}=WH(x,A,u),{exchangeRateColumns:Le,exchangeRateRows:re,handleAddDiscountRate:De,dateErrors:G}=u3(x,u),Z=XH(A,t,r,m,d,u);k.useEffect(()=>{i&&G.length==0?i(Z):i(null)},[Z,i,G]);const{allocationColumns:ne,allocationRows:be}=GH(A,P,Y,_,ge,xe,je),[Ee,_e]=k.useState(!1);return C?v.jsx(ah,{}):w.length>0?v.jsx("div",{children:w.map((Ne,ke)=>v.jsx(hr,{color:"danger",dismissable:!0,children:Ne},ke))}):x?v.jsxs("div",{className:"edit-resource",children:[R.message&&v.jsx(hr,{color:R.color,dismissable:!0,children:R.message}),v.jsxs("div",{children:[v.jsx("h2",{children:"Resource Propeties"}),v.jsx("div",{style:{marginBottom:"0.75rem"},children:v.jsx("p",{style:{margin:"0",fontStyle:"italic",fontWeight:"bold"},children:"Any modifications to these resource properties will be applied globally and impact resources on other all allocations process"})}),v.jsx(RR,{resourceDetails:A,resourceTypesOptions:I,unitTypesOptions:M,dispatch:u,isDollarValueEditing:Ee,onDollarValueEditingChange:_e})]}),N&&v.jsx(mO,{columns:Le,rows:re,onAddDiscountRate:De,dateErrors:G}),v.jsx(wR,{headerText:v.jsx("h2",{children:"Allocation Types"}),header:v.jsx(hO,{onAddAllocationType:()=>h&&X(!0),onAddRequiredResource:()=>h&&F(!0)}),isEditing:h,onEditingChange:y,warningMessage:`Incorrect allocations
290
- process settings can make a resource unavailable for allocation.
291
- Please proceed with caution.`,children:v.jsx(vO,{columns:ne,rows:be})}),v.jsx(Cx,{show:U,onClose:()=>F(!1),title:"Add Required Resource",onSave:ie,buttonText:"Save",children:v.jsx("div",{children:P.map(Ne=>v.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[v.jsx("input",{type:"checkbox",style:{margin:0},checked:Y.includes(Ne.resource_id),onChange:ke=>ce(Ne.resource_id,ke.target.checked)}),Ne.resource_name]},Ne.resource_id))})}),v.jsx(Cx,{show:z,onClose:()=>X(!1),title:"Add Allocation Type",onSave:we,buttonText:"Save",children:v.jsx(Yp,{label:"Select Allocation Type",options:[{value:"",label:"Select an allocation type to add",disabled:!0},...V.map(Ne=>({value:Ne.allocation_type_id,label:Ne.display_name}))],value:me,onChange:ae})})]}):v.jsx("div",{children:"No resource data available."})}gO.propTypes={resourceId:Ve.number.isRequired,relativeUrlRoot:Ve.string.isRequired,setExternalSubmit:Ve.func};const ta={error:"error",pending:"pending",success:"success"},Sx=t=>t.endDate||t.startDate||(t.actions[0]||{}).entryDate,ZI=t=>`${{pi:"01",co_pi:"02",allocation_manager:"03"}[t.role]||"04"} ${t.lastName}, ${t.firstName}`,c3=(t,{grantNumber:r,projectManager:i,requestMasterId:l,requests:u,title:d,users:m},h)=>{r=r||l,u.sort((C,w)=>Sx(C)>Sx(w)?-1:1);const y=u.find(C=>C.timeStatus=="current"),x=y?y.requestId:null;t.projects[r]={currentRequestId:x,grantNumber:r,isManager:i,requestsList:u.map(C=>{const{actions:w,allocationType:R,endDate:A,requestId:N,startDate:_,status:I}=C,M=w.map(({entryDate:P})=>P).sort()[0].split("T")[0];return d3(t,C,{entryDate:M,grantNumber:r}),{allocationType:R,endDate:A,entryDate:M,requestId:N,startDate:_,status:I}}),selectedRequestId:x||u[0].requestId,status:h,tab:"overview",title:d,users:m.map(({email:C,firstName:w,lastName:R,organization:A,resources:N,role:_,username:I})=>{const M=N.filter(z=>z.userAccountState=="active"&&z.unitType!="ACCESS Credits"),P=M.map(z=>z.xrasResourceId),V=M.filter(z=>z.resourceProviderState=="pending-active").map(z=>z.xrasResourceId),U=N.filter(z=>z.userAccountState!="active").map(z=>z.xrasResourceId),F={};for(let z of M)F[z.xrasResourceId]=z.resourceUsername;return{email:C,firstName:w,initialResourceIds:[...P],initialRole:_,lastName:R,organization:A,resourceAccountPendingIds:V,resourceAccountInactiveIds:U,resourceIds:P,resourceUsernames:F,role:_,username:I}}).sort((C,w)=>ZI(C)<ZI(w)?-1:1),usersNewRowIndex:0,usersStatus:null},t.projects[r].currentUser=t.projects[r].users.find(({username:C})=>C==t.username)},d3=(t,{actions:r,allocationType:i,allowedActions:l,endDate:u,requestId:d,requestType:m,resources:h,startDate:y,status:x,timeStatus:C},{entryDate:w,grantNumber:R})=>{h=h||[];const A={actions:r.map(({actionId:I,actionStatusType:M,actionType:P,allowedOperations:V,approvedStartDate:U,detailAvailable:F,entryDate:z,isRequest:X,requestedStartDate:Y,resources:ce})=>({actionId:I,allowedOperations:V,detailAvailable:F,date:(z||U||Y).split("T")[0],deleteStatus:null,isRequest:X,resources:ce.map(Ow).sort(bx),showDeleteModal:!1,status:M,type:P})),allocationType:i,allowedActions:f3(l),endDate:u,entryDate:w,exchangeActionId:null,exchangeActionEditable:!0,exchangeErrors:[],exchangeStatus:null,grantNumber:R,isMaximize:i=="Maximize",requestId:d,resources:h.map(Ow).filter(I=>I.isCredit||I.allocated>0).sort(bx),resourcesReason:"",returnedForCorrections:!!r.find(I=>I.returnedForCorrections),returnedForCorrectionsNotes:r.map(I=>I.adminComments).join(","),showActionsModal:!1,showConfirmModal:!1,showResourcesModal:!1,startDate:y,status:x,timeStatus:C,type:m,usageDetail:null,usageDetailStatus:null,usesCredits:["Explore","Discover","Accelerate"].includes(i)};let N={};for(let I of A.actions)if(["Exchange","Transfer"].includes(I.type)&&["Submitted","Under Review","Incomplete"].includes(I.status)){A.exchangeActionId=I.actionId,A.exchangeActionEditable=I.status==="Incomplete";for(let M of I.resources)N[M.resourceId]=M;for(let M of A.resources)M.resourceId in N&&(M.requested+=N[M.resourceId].requested,delete N[M.resourceId]);A.resources.push(...Object.values(N).map(M=>({...M,isNew:!0})));break}const _=A.allowedActions.Exchange||A.allowedActions.Transfer;if(_){N={};for(let I of _.resources)N[I.resourceId]=I;for(let I of A.resources)I.resourceId in N&&(I.questions=N[I.resourceId].questions||[])}_&&A.resources.length&&!A.resources.find(I=>I.isCredit)&&A.resources.push(_.resources.find(I=>I.isCredit)||{allocated:0,decimalPlaces:0,exchangeRates:{base:{type:"base",unitCost:1},current:{type:"base",unitCost:1}},icon:"credit",isActive:!0,isBoolean:!1,isCredit:!0,isFake:!0,name:"Credit Equivalents",requested:0,requires:[],resourceId:0,unit:"Credit Equivalents",used:0}),t.requests[d]=A},f3=t=>{const r={};for(let{actionType:i,allowedResources:l,opportunityId:u,opportunityName:d}of t){let m={name:i,resources:l.map(Ow).sort(bx),opportunityId:u,opportunityName:d};i in r?(Array.isArray(r[i])||(r[i]=[r[i]]),r[i].push(m)):r[i]=m}return"Transfer"in r&&!("Exchange"in r)&&(r.Exchange=r.Transfer),r},qI=(t,r)=>t.relativeOrder<r.relativeOrder?-1:1,Ow=({allocationState:t,amountAllocated:r,amountApproved:i,amountRequested:l,amountUsed:u,attributeSets:d,baseExchangeRate:m,currentExchangeRate:h,currentExchangeRateEndDate:y,currentExchangeRateType:x,dependentResourceXrasIds:C,displayResourceName:w,endDate:R,exchangeRate:A,organizationId:N,organizationFaviconUrl:_,organizationName:I,resourceRepositoryKey:M,resourceType:P,startDate:V,unitType:U,userGuideUrl:F,xrasResourceId:z})=>{const X=U=="[Yes = 1, No = 0]",Y=U=="ACCESS Credits";return{allocated:Hp(OI(r,i)||0,0,"floor"),decimalPlaces:0,endDate:R,exchangeRates:{base:{type:"base",unitCost:X?0:m||A},current:{endDate:y,type:(x||"base").toLowerCase(),unitCost:X?0:h||A}},icon:Y?"credit":P.toLowerCase(),isActive:t=="active",isBoolean:X,isCredit:Y,isFake:!1,isUnderReview:!1,isNew:!1,name:w.trim(),questions:(d||[]).filter(({isActive:ce})=>ce).sort(qI).map(ce=>({attributeSetId:ce.attributeSetId,attributes:ce.attributes.sort(qI).map(ie=>({required:ie.isRequired,resourceAttributeId:ie.resourceAttributeId,label:ie.attributeName})),fieldType:ce.attributeSetRelationType,label:ce.attributeSetName,resourceId:z,values:[]})),resourceProvider:{organizationId:N,name:I,favicon:_},requested:Hp(OI(l,r)||0,0,"floor"),requires:C||[],resourceId:z,resourceRepositoryKey:M,startDate:V,type:P,unit:U,used:Hp(u||0,0,"ceil"),userGuideUrl:F}},yO=(t,r)=>(t=[...t].sort(),r=[...r].sort(),t.length===r.length&&t.every((i,l)=>i===r[l])),$b=(t,r)=>{const i=ea(t,r);for(let l of i.actions)if(l.actionId==r.payload.actionId)return l},el=(t,r)=>t.projects[r.payload.grantNumber],ea=(t,r)=>t.requests[r.payload.requestId],p3=(t,r)=>el(t,r).users.find(({username:i})=>i==r.payload.username),Dw=({allocated:t,isActive:r,isCredit:i})=>t>0&&r&&!i,JI=t=>t.hasChanges=t.isNew||t.role!=t.initialRole||!yO(t.resourceIds,t.initialResourceIds),bO=()=>document.querySelector("meta[name=csrf-token]").content,h3=async t=>{const r=new URLSearchParams({q:t});return(await(await fetch(`${qt.routes.search_people_path()}?${r}`)).json()).map(({email:l,first_name:u,last_name:d,username:m,organization:h})=>({email:l,firstName:u,lastName:d,username:m,organization:h}))},tx=ya("api/fetchProjectsList",async(t,{rejectWithValue:r})=>{const i=await fetch(`${qt.routes.projects_path()}.json`);return i.status==200?{username:t,projectsList:(await i.json()).result}:r({})}),xO=ya("api/fetchProjectDetail",async({grantNumber:t},{rejectWithValue:r})=>r({grantNumber:t})),CO=ya("api/fetchRequestDetail",async({grantNumber:t,requestId:r},{rejectWithValue:i})=>i({grantNumber:t,requestId:r})),nx=ya("api/fetchUsageDetail",async({grantNumber:t,requestId:r,resourceRepositoryKey:i},{rejectWithValue:l})=>{const u=await fetch(`${qt.routes.usage_detail_path(t,i)}.json`);return u.status==200?{grantNumber:t,requestId:r,resourceRepositoryKey:i,usageDetail:(await u.json()).usage}:l({grantNumber:t,requestId:r,resourceRepositoryKey:i})}),rx=ya("api/deleteAction",async({actionId:t,requestId:r},{getState:i,rejectWithValue:l})=>{const u=i().api.requests[r],d=u.actions.find(x=>x.actionId==t);if(!d||!d.allowedOperations||!d.allowedOperations.includes("Delete"))return l({actionId:t,requestId:r});const m=qt.routes.request_action_path(u.requestId,d.actionId),h={_method:"delete",authenticity_token:bO()};return(await fetch(m,{body:Object.keys(h).map(x=>`${encodeURIComponent(x)}=${encodeURIComponent(h[x])}`).join("&"),headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})).status==200?{actionId:t,requestId:r}:l({actionId:t,requestId:r})}),ax=ya("api/saveResources",async({requestId:t},{getState:r,rejectWithValue:i})=>{const l=r().api.requests[t],u={},d={};for(let{allocated:w,isFake:R,questions:A,requested:N,resourceId:_}of l.resources)if(N!=w&&!R){u[_]={resource_id:_,requested:1,amount:N-w};for(let{attributes:I,values:M,fieldType:P}of A)if(M.length){let V=I[0].resourceAttributeId,U=["drop_down","single_sel","multi_sel"].includes(P),z={resource_attribute_id:P=="multi_sel"?M:U?M[0]:V};U||(z.attribute_value=M[0]),d[V]=z}}const m={authenticity_token:bO(),request_action:{action_type:l.allowedActions.Exchange.name,user_comments:l.resourcesReason,resource_attributes:d},requested_resources:u},h=l.exchangeActionId?qt.routes.request_action_path(l.requestId,l.exchangeActionId):qt.routes.request_actions_path(l.requestId),y=await fetch(`${h}.json`,{body:JSON.stringify(m),headers:{"Content-Type":"application/json"},method:l.exchangeActionId?"PUT":"POST"});let x,C;try{const w=await y.json();x=w.errors,C=w.actionId}catch{x=["Unable to save exchange"],C=null}return y.status==200?{requestId:t,exchangeActionId:C}:i({requestId:t,exchangeActionId:C,errors:x})}),ix=ya("api/saveUsers",async({grantNumber:t},{getState:r,rejectWithValue:i})=>{const u=r().api.projects[t].users,d=u.filter(x=>!yO(x.resourceIds,x.initialResourceIds)||x.isNew).length==0?[]:u.map(x=>({username:x.username,resources:x.resourceIds})),m=u.filter(x=>x.role!=x.initialRole).map(x=>({username:x.username,role:Rw[x.role],initialRole:Rw[x.initialRole]})),h={grantNumber:t,resourceChanges:d,roleChanges:m,authenticity_token:document.querySelector("meta[name=csrf-token]").content};return(await fetch(qt.routes.projects_save_users_path(),{method:"POST",body:JSON.stringify(h),headers:{"Content-Type":"application/json"}})).status==200?{grantNumber:t}:i({grantNumber:t})}),SO=Vm({name:"api",initialState:{error:null,projectsList:[],projectListLoading:!1,projects:{},requests:{},username:null},reducers:{addResource:(t,r)=>{const{resourceId:i}=r.payload,l=ea(t,r),u=l.allowedActions.Exchange;if(!u)return;const d={};for(let y of u.resources)d[y.resourceId]=y;const m=l.resources.map(y=>y.resourceId),h=[i,...d[i].requires||[]].filter(y=>y in d&&!m.includes(y));l.resources.push(...h.map(y=>({...d[y],allocated:0,isNew:!0,used:0,requested:0})))},addUser:(t,r)=>{const i=el(t,r),l=t.requests[i.currentRequestId],{user:u}=r.payload;i.users.map(({username:d})=>d).includes(u.username)||(i.users.push({...u,resourceIds:l.resources.filter(Dw).map(d=>d.resourceId),role:"user",initialResourceIds:[],initialRole:"user",hasChanges:!0,isNew:!0}),i.usersNewRowIndex=i.users.length-1)},closeUsageDetailModal:(t,r)=>{const i=ea(t,r);i.usageDetail=null,i.usageDetailStatus=null},resetResources:(t,r)=>{const i=ea(t,r);i.resourcesReason="",i.resources=i.resources.filter(l=>l.isCredit||l.allocated).map(l=>({...l,requested:l.allocated}))},resetUsers:(t,r)=>{const i=el(t,r);i.users=i.users.filter(({isNew:l})=>!l).map(l=>({...l,resourceIds:[...l.initialResourceIds],role:l.initialRole,hasChanges:!1}))},setRequest:(t,r)=>{const i=el(t,r);i&&(i.selectedRequestId=r.payload.requestId,i.tab=="users"&&i.currentRequestId!=i.selectedRequestId&&(i.tab="overview"))},setResourceQuestionValues:(t,r)=>{const{attributeSetId:i,resourceId:l,values:u}=r.payload,d=ea(t,r);for(let m of d.resources)if(m.resourceId==l){for(let h of m.questions)if(h.attributeSetId==i){h.values=u;break}break}},setResourceRequest:(t,r)=>{const{resourceId:i,requested:l}=r.payload,u=ea(t,r);let d,m=0;for(let h of u.resources)h.resourceId==i&&(h.requested=l),h.isCredit?(d=h,m+=h.allocated*h.exchangeRates.base.unitCost):m-=Tw(h,"difference");d&&(d.requested=Hp(m,d.decimalPlaces,"floor"))},setResourcesReason:(t,r)=>{const i=ea(t,r);i.resourcesReason=r.payload.reason},setTab:(t,r)=>{const i=el(t,r);i&&(i.tab=r.payload.tab)},setUserRole:(t,r)=>{const i=p3(t,r);i.role=r.payload.role,JI(i)},toggleActionsModal:(t,r)=>{const i=ea(t,r);i.showActionsModal=!i.showActionsModal},toggleConfirmModal:(t,r)=>{const i=ea(t,r);i.showConfirmModal=!i.showConfirmModal},toggleDeleteModal:(t,r)=>{const i=$b(t,r);i.showDeleteModal=!i.showDeleteModal},toggleResourcesModal:(t,r)=>{const i=ea(t,r);i.showResourcesModal=!i.showResourcesModal},toggleUsersResources:(t,r)=>{const i=el(t,r),l=t.requests[i.currentRequestId],{username:u,resourceId:d,checked:m}=r.payload,h=u?[i.users.find(y=>y.username==u)]:i.users;for(let y of h){if(d){let x=y.resourceIds.indexOf(d);m&&x==-1?y.resourceIds.push(d):!m&&x>=0&&y.resourceIds.splice(x,1)}else y.resourceIds=m?l.resources.filter(Dw).map(({resourceId:x})=>x):[];JI(y)}}},extraReducers:t=>{t.addCase(tx.pending,r=>{r.projectListLoading=!0}).addCase(tx.fulfilled,(r,i)=>{i.payload.projectsList.sort((l,u)=>Sx(l.requests[0])>Sx(u.requests[0])?-1:1),r.username=i.payload.username,r.projectsList=i.payload.projectsList.map(l=>{const{grantNumber:u,requestMasterId:d,requests:m,status:h,title:y}=l,C=l.requests.filter(w=>w.actions.filter(R=>R.returnedForCorrections).length>0).length>0?"Returned for Corrections":h||m&&(m.find(({timeStatus:w})=>w=="current")?"Active":m[0].timeStatus=="past"?"Inactive":m[0].status);return m&&c3(r,l,C),{grantNumber:u||d,status:C,title:y}}),r.projectListLoading=!1}).addCase(tx.rejected,r=>{r.error="Failed to load project list.",r.projectListLoading=!1}).addCase(xO.rejected,(r,i)=>{const{grantNumber:l}=i.payload;r.projects[l]={error:"Failed to load project data."}}).addCase(CO.rejected,(r,i)=>{const{requestId:l}=i.payload;r.requests[l]={error:"Failed to load request data."}}).addCase(nx.pending,(r,i)=>{const l=ea(r,{payload:i.meta.arg});l.usageDetailStatus=ta.pending}).addCase(nx.fulfilled,(r,i)=>{const l=ea(r,i);l.usageDetail=i.payload.usageDetail,l.usageDetailStatus=ta.success}).addCase(nx.rejected,(r,i)=>{const l=ea(r,i);l.usageDetailStatus=ta.error}).addCase(rx.pending,(r,i)=>{const l=$b(r,{payload:i.meta.arg});l.deleteStatus=ta.pending}).addCase(rx.fulfilled,(r,i)=>{const l=ea(r,i),u=$b(r,i);u.isRequest?(l.error="This request has been deleted.",u.allowedOperations=[]):l.actions=l.actions.filter(d=>d.actionId!=u.actionId),u.deleteStatus=ta.success,u.showDeleteModal=!1}).addCase(rx.rejected,(r,i)=>{const l=$b(r,i);l.deleteStatus=ta.error}).addCase(ax.pending,(r,i)=>{const l=ea(r,{payload:i.meta.arg});l.exchangeStatus=ta.pending,l.showResourcesModal=!1}).addCase(ax.fulfilled,(r,i)=>{const l=ea(r,i);l.exchangeActionId=i.payload.exchangeActionId,l.exchangeActionEditable=!1,l.exchangeErrors=[],l.exchangeStatus=ta.success}).addCase(ax.rejected,(r,i)=>{const l=ea(r,i);l.exchangeActionId=i.payload.exchangeActionId,l.exchangeActionEditable=!0,l.exchangeErrors=i.payload.errors,l.exchangeStatus=ta.error}).addCase(ix.pending,(r,i)=>{const l=el(r,{payload:i.meta.arg});l.usersStatus=ta.pending}).addCase(ix.fulfilled,(r,i)=>{const l=el(r,i);l.users=l.users.map(u=>({...u,initialResourceIds:[...u.resourceIds],initialRole:u.role,hasChanges:!1,isNew:!1})),l.usersStatus=ta.success}).addCase(ix.rejected,(r,i)=>{const l=el(r,i);l.usersStatus=ta.error})}}),v3=t=>t.api.error,m3=t=>t.api.projectsList,g3=t=>t.api.projectListLoading,y3=(t,r)=>el(t.api,{payload:{grantNumber:r}}),b3=(t,r)=>ea(t.api,{payload:{requestId:r}}),x3=t=>t.api.username,{addResource:C3,addUser:S3,closeUsageDetailModal:E3,hideAlert:hJ,resetResources:w3,resetUsers:R3,setRequest:_3,setResourceQuestionValues:T3,setResourceRequest:N3,setResourcesReason:I3,setTab:j3,setUserRole:A3,toggleActionsModal:O3,toggleConfirmModal:D3,toggleDeleteModal:k3,toggleResourcesModal:M3,toggleUsersResources:L3}=SO.actions,P3=SO.reducer,F3=t=>{const r=Tn(v3),i=Tn(g3),l=Tn(m3),u=ai();return k.useEffect(()=>{u(tx(t))},[]),{error:r,loading:i,projects:l}},Qi=(t,r)=>{const i=Tn(d=>y3(d,t)),l=Tn(x3),u=ai();return k.useEffect(()=>{!i&&!r&&u(xO({grantNumber:t}))},[r]),{project:i,addUser:d=>u(S3({grantNumber:t,user:d})),resetUsers:()=>u(R3({grantNumber:t})),saveUsers:()=>u(ix({grantNumber:t})),setRequest:d=>u(_3({grantNumber:t,requestId:d})),setTab:d=>u(j3({grantNumber:t,tab:d})),setUserRole:(d,m)=>u(A3({grantNumber:t,username:d,role:m})),statuses:ta,toggleUsersResources:(d,m,h)=>u(L3({grantNumber:t,username:m,resourceId:h,checked:d})),username:l}},ii=(t,r)=>{const i=Tn(u=>b3(u,t)),l=ai();return k.useEffect(()=>{i||l(CO({grantNumber:r,requestId:t}))},[r,t]),{request:i,addResource:u=>l(C3({requestId:t,resourceId:u})),closeUsageDetailModal:()=>l(E3({requestId:t})),deleteAction:u=>l(rx({actionId:u,requestId:t})),openUsageDetailModal:u=>l(nx({grantNumber:i.grantNumber,requestId:t,resourceRepositoryKey:u})),resetResources:()=>l(w3({requestId:t})),saveResources:()=>l(ax({requestId:t})),setResourceQuestionValues:(u,d,m)=>l(T3({requestId:t,resourceId:u,attributeSetId:d,values:m})),setResourceRequest:(u,d)=>l(N3({requestId:t,resourceId:u,requested:d})),setResourcesReason:u=>l(I3({requestId:t,reason:u})),statuses:ta,toggleActionsModal:()=>l(O3({requestId:t})),toggleConfirmModal:()=>l(D3({requestId:t})),toggleDeleteModal:u=>l(k3({requestId:t,actionId:u})),toggleResourcesModal:()=>l(M3({requestId:t}))}},V3="_project_qqnbz_1",B3="_expand_qqnbz_5",QI={project:V3,expand:B3},$3="_returnedForCorrectionsNotes_jujbd_1",z3={returnedForCorrectionsNotes:$3};function EO(t,r,i){const l=k.useRef(t!==void 0),[u,d]=k.useState(r),m=t!==void 0,h=l.current;return l.current=m,!m&&h&&u!==r&&d(r),[m?t:u,k.useCallback((...y)=>{const[x,...C]=y;let w=i==null?void 0:i(x,...C);return d(x),w},[i])]}var wO={};const Ex={prefix:String(Math.round(Math.random()*1e10)),current:0},RO=ir.createContext(Ex),U3=ir.createContext(!1);let H3=!!(typeof window<"u"&&window.document&&window.document.createElement),QE=new WeakMap;function G3(t=!1){let r=k.useContext(RO),i=k.useRef(null);if(i.current===null&&!t){var l,u;let d=(u=ir.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||u===void 0||(l=u.ReactCurrentOwner)===null||l===void 0?void 0:l.current;if(d){let m=QE.get(d);m==null?QE.set(d,{id:r.current,state:d.memoizedState}):d.memoizedState!==m.state&&(r.current=m.id,QE.delete(d))}i.current=++r.current}return i.current}function W3(t){let r=k.useContext(RO);r===Ex&&!H3&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let i=G3(!!t),l=r===Ex&&wO.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return t||`${l}-${i}`}function X3(t){let r=ir.useId(),[i]=k.useState(J3()),l=i||wO.NODE_ENV==="test"?"react-aria":`react-aria${Ex.prefix}`;return t||`${l}-${r}`}const _O=typeof ir.useId=="function"?X3:W3;function Y3(){return!1}function Z3(){return!0}function q3(t){return()=>{}}function J3(){return typeof ir.useSyncExternalStore=="function"?ir.useSyncExternalStore(q3,Y3,Z3):k.useContext(U3)}const Q3=k.createContext(null),ih=Q3,K3=k.createContext(null),Jd=(t,r=null)=>t!=null?String(t):r||null,iu=K3;function eG(t){const r=k.useRef(t);return k.useEffect(()=>{r.current=t},[t]),r}function br(t){const r=eG(t);return k.useCallback(function(...i){return r.current&&r.current(...i)},[r])}const KI=t=>!t||typeof t=="function"?t:r=>{t.current=r};function tG(t,r){const i=KI(t),l=KI(r);return u=>{i&&i(u),l&&l(u)}}function hs(t,r){return k.useMemo(()=>tG(t,r),[t,r])}function TR({children:t,in:r,onExited:i,mountOnEnter:l,unmountOnExit:u}){const d=k.useRef(null),m=k.useRef(r),h=br(i);k.useEffect(()=>{r?m.current=!0:h(d.current)},[r,h]);const y=hs(d,t.ref),x=k.cloneElement(t,{ref:y});return r?x:u||!m.current&&l?null:x}const nG=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],rG=["activeKey","getControlledId","getControllerId"],aG=["as"];function kw(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function TO(t){let{active:r,eventKey:i,mountOnEnter:l,transition:u,unmountOnExit:d,role:m="tabpanel",onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}=t,A=kw(t,nG);const N=k.useContext(ih);if(!N)return[Object.assign({},A,{role:m}),{eventKey:i,isActive:r,mountOnEnter:l,transition:u,unmountOnExit:d,onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}];const{activeKey:_,getControlledId:I,getControllerId:M}=N,P=kw(N,rG),V=Jd(i);return[Object.assign({},A,{role:m,id:I(i),"aria-labelledby":M(i)}),{eventKey:i,isActive:r==null&&V!=null?Jd(_)===V:r,transition:u||P.transition,mountOnEnter:l??P.mountOnEnter,unmountOnExit:d??P.unmountOnExit,onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}]}const NO=k.forwardRef((t,r)=>{let{as:i="div"}=t,l=kw(t,aG);const[u,{isActive:d,onEnter:m,onEntering:h,onEntered:y,onExit:x,onExiting:C,onExited:w,mountOnEnter:R,unmountOnExit:A,transition:N=TR}]=TO(l);return v.jsx(ih.Provider,{value:null,children:v.jsx(iu.Provider,{value:null,children:v.jsx(N,{in:d,onEnter:m,onEntering:h,onEntered:y,onExit:x,onExiting:C,onExited:w,mountOnEnter:R,unmountOnExit:A,children:v.jsx(i,Object.assign({},u,{ref:r,hidden:!d,"aria-hidden":!d}))})})})});NO.displayName="TabPanel";const IO=t=>{const{id:r,generateChildId:i,onSelect:l,activeKey:u,defaultActiveKey:d,transition:m,mountOnEnter:h,unmountOnExit:y,children:x}=t,[C,w]=EO(u,d,l),R=_O(r),A=k.useMemo(()=>i||((_,I)=>R?`${R}-${I}-${_}`:null),[R,i]),N=k.useMemo(()=>({onSelect:w,activeKey:C,transition:m,mountOnEnter:h||!1,unmountOnExit:y||!1,getControlledId:_=>A(_,"tabpane"),getControllerId:_=>A(_,"tab")}),[w,C,m,h,y,A]);return v.jsx(ih.Provider,{value:N,children:v.jsx(iu.Provider,{value:w||null,children:x})})};IO.Panel=NO;const jO=IO;var AO={exports:{}};/*!
292
- Copyright (c) 2018 Jed Watson.
293
- Licensed under the MIT License (MIT), see
294
- http://jedwatson.github.io/classnames
295
- */(function(t){(function(){var r={}.hasOwnProperty;function i(){for(var d="",m=0;m<arguments.length;m++){var h=arguments[m];h&&(d=u(d,l(h)))}return d}function l(d){if(typeof d=="string"||typeof d=="number")return d;if(typeof d!="object")return"";if(Array.isArray(d))return i.apply(null,d);if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]"))return d.toString();var m="";for(var h in d)r.call(d,h)&&d[h]&&(m=u(m,h));return m}function u(d,m){return m?d?d+" "+m:d+m:d}t.exports?(i.default=i,t.exports=i):window.classNames=i})()})(AO);var iG=AO.exports;const en=nh(iG);function NR(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function wx(t,r){return wx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,u){return l.__proto__=u,l},wx(t,r)}function oG(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,wx(t,r)}const ej={disabled:!1};var OO={},sG=OO.NODE_ENV!=="production"?Ve.oneOfType([Ve.number,Ve.shape({enter:Ve.number,exit:Ve.number,appear:Ve.number}).isRequired]):null;OO.NODE_ENV!=="production"&&Ve.oneOfType([Ve.string,Ve.shape({enter:Ve.string,exit:Ve.string,active:Ve.string}),Ve.shape({enter:Ve.string,enterDone:Ve.string,enterActive:Ve.string,exit:Ve.string,exitDone:Ve.string,exitActive:Ve.string})]);const DO=ir.createContext(null);var lG=function(r){return r.scrollTop},uG={},Cm="unmounted",mc="exited",Ql="entering",gc="entered",Rx="exiting",lu=function(t){oG(r,t);function r(l,u){var d;d=t.call(this,l,u)||this;var m=u,h=m&&!m.isMounting?l.enter:l.appear,y;return d.appearStatus=null,l.in?h?(y=mc,d.appearStatus=Ql):y=gc:l.unmountOnExit||l.mountOnEnter?y=Cm:y=mc,d.state={status:y},d.nextCallback=null,d}r.getDerivedStateFromProps=function(u,d){var m=u.in;return m&&d.status===Cm?{status:mc}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(u){var d=null;if(u!==this.props){var m=this.state.status;this.props.in?m!==Ql&&m!==gc&&(d=Ql):(m===Ql||m===gc)&&(d=Rx)}this.updateStatus(!1,d)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var u=this.props.timeout,d,m,h;return d=m=h=u,u!=null&&typeof u!="number"&&(d=u.exit,m=u.enter,h=u.appear!==void 0?u.appear:m),{exit:d,enter:m,appear:h}},i.updateStatus=function(u,d){if(u===void 0&&(u=!1),d!==null)if(this.cancelNextCallback(),d===Ql){if(this.props.unmountOnExit||this.props.mountOnEnter){var m=this.props.nodeRef?this.props.nodeRef.current:zd.findDOMNode(this);m&&lG(m)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mc&&this.setState({status:Cm})},i.performEnter=function(u){var d=this,m=this.props.enter,h=this.context?this.context.isMounting:u,y=this.props.nodeRef?[h]:[zd.findDOMNode(this),h],x=y[0],C=y[1],w=this.getTimeouts(),R=h?w.appear:w.enter;if(!u&&!m||ej.disabled){this.safeSetState({status:gc},function(){d.props.onEntered(x)});return}this.props.onEnter(x,C),this.safeSetState({status:Ql},function(){d.props.onEntering(x,C),d.onTransitionEnd(R,function(){d.safeSetState({status:gc},function(){d.props.onEntered(x,C)})})})},i.performExit=function(){var u=this,d=this.props.exit,m=this.getTimeouts(),h=this.props.nodeRef?void 0:zd.findDOMNode(this);if(!d||ej.disabled){this.safeSetState({status:mc},function(){u.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:Rx},function(){u.props.onExiting(h),u.onTransitionEnd(m.exit,function(){u.safeSetState({status:mc},function(){u.props.onExited(h)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(u,d){d=this.setNextCallback(d),this.setState(u,d)},i.setNextCallback=function(u){var d=this,m=!0;return this.nextCallback=function(h){m&&(m=!1,d.nextCallback=null,u(h))},this.nextCallback.cancel=function(){m=!1},this.nextCallback},i.onTransitionEnd=function(u,d){this.setNextCallback(d);var m=this.props.nodeRef?this.props.nodeRef.current:zd.findDOMNode(this),h=u==null&&!this.props.addEndListener;if(!m||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var y=this.props.nodeRef?[this.nextCallback]:[m,this.nextCallback],x=y[0],C=y[1];this.props.addEndListener(x,C)}u!=null&&setTimeout(this.nextCallback,u)},i.render=function(){var u=this.state.status;if(u===Cm)return null;var d=this.props,m=d.children;d.in,d.mountOnEnter,d.unmountOnExit,d.appear,d.enter,d.exit,d.timeout,d.addEndListener,d.onEnter,d.onEntering,d.onEntered,d.onExit,d.onExiting,d.onExited,d.nodeRef;var h=NR(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ir.createElement(DO.Provider,{value:null},typeof m=="function"?m(u,h):ir.cloneElement(ir.Children.only(m),h))},r}(ir.Component);lu.contextType=DO;lu.propTypes=uG.NODE_ENV!=="production"?{nodeRef:Ve.shape({current:typeof Element>"u"?Ve.any:function(t,r,i,l,u,d){var m=t[r];return Ve.instanceOf(m&&"ownerDocument"in m?m.ownerDocument.defaultView.Element:Element)(t,r,i,l,u,d)}}),children:Ve.oneOfType([Ve.func.isRequired,Ve.element.isRequired]).isRequired,in:Ve.bool,mountOnEnter:Ve.bool,unmountOnExit:Ve.bool,appear:Ve.bool,enter:Ve.bool,exit:Ve.bool,timeout:function(r){var i=sG;r.addEndListener||(i=i.isRequired);for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];return i.apply(void 0,[r].concat(u))},addEndListener:Ve.func,onEnter:Ve.func,onEntering:Ve.func,onEntered:Ve.func,onExit:Ve.func,onExiting:Ve.func,onExited:Ve.func}:{};function Bp(){}lu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Bp,onEntering:Bp,onEntered:Bp,onExit:Bp,onExiting:Bp,onExited:Bp};lu.UNMOUNTED=Cm;lu.EXITED=mc;lu.ENTERING=Ql;lu.ENTERED=gc;lu.EXITING=Rx;const cG=lu;function oh(t){return t&&t.ownerDocument||document}function dG(t){var r=oh(t);return r&&r.defaultView||window}function fG(t,r){return dG(t).getComputedStyle(t,r)}var pG=/([A-Z])/g;function hG(t){return t.replace(pG,"-$1").toLowerCase()}var vG=/^ms-/;function zb(t){return hG(t).replace(vG,"-ms-")}var mG=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function gG(t){return!!(t&&mG.test(t))}function nu(t,r){var i="",l="";if(typeof r=="string")return t.style.getPropertyValue(zb(r))||fG(t).getPropertyValue(zb(r));Object.keys(r).forEach(function(u){var d=r[u];!d&&d!==0?t.style.removeProperty(zb(u)):gG(u)?l+=u+"("+d+") ":i+=zb(u)+": "+d+";"}),l&&(i+="transform: "+l+";"),t.style.cssText+=";"+i}const sh=!!(typeof window<"u"&&window.document&&window.document.createElement);var Mw=!1,Lw=!1;try{var KE={get passive(){return Mw=!0},get once(){return Lw=Mw=!0}};sh&&(window.addEventListener("test",KE,KE),window.removeEventListener("test",KE,!0))}catch{}function IR(t,r,i,l){if(l&&typeof l!="boolean"&&!Lw){var u=l.once,d=l.capture,m=i;!Lw&&u&&(m=i.__once||function h(y){this.removeEventListener(r,h,d),i.call(this,y)},i.__once=m),t.addEventListener(r,m,Mw?l:d)}t.addEventListener(r,i,l)}function Pw(t,r,i,l){var u=l&&typeof l!="boolean"?l.capture:l;t.removeEventListener(r,i,u),i.__once&&t.removeEventListener(r,i.__once,u)}function eu(t,r,i,l){return IR(t,r,i,l),function(){Pw(t,r,i,l)}}function yG(t,r,i,l){if(i===void 0&&(i=!1),l===void 0&&(l=!0),t){var u=document.createEvent("HTMLEvents");u.initEvent(r,i,l),t.dispatchEvent(u)}}function bG(t){var r=nu(t,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function xG(t,r,i){i===void 0&&(i=5);var l=!1,u=setTimeout(function(){l||yG(t,"transitionend",!0)},r+i),d=eu(t,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(u),d()}}function kO(t,r,i,l){i==null&&(i=bG(t)||0);var u=xG(t,i,l),d=eu(t,"transitionend",r);return function(){u(),d()}}function tj(t,r){const i=nu(t,r)||"",l=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*l}function MO(t,r){const i=tj(t,"transitionDuration"),l=tj(t,"transitionDelay"),u=kO(t,d=>{d.target===t&&(u(),r(d))},i+l)}function LO(t){t.offsetHeight}function _x(t){return t&&"setState"in t?zd.findDOMNode(t):t??null}const CG=ir.forwardRef(({onEnter:t,onEntering:r,onEntered:i,onExit:l,onExiting:u,onExited:d,addEndListener:m,children:h,childRef:y,...x},C)=>{const w=k.useRef(null),R=hs(w,y),A=z=>{R(_x(z))},N=z=>X=>{z&&w.current&&z(w.current,X)},_=k.useCallback(N(t),[t]),I=k.useCallback(N(r),[r]),M=k.useCallback(N(i),[i]),P=k.useCallback(N(l),[l]),V=k.useCallback(N(u),[u]),U=k.useCallback(N(d),[d]),F=k.useCallback(N(m),[m]);return v.jsx(cG,{ref:C,...x,onEnter:_,onEntered:M,onEntering:I,onExit:P,onExited:U,onExiting:V,addEndListener:F,nodeRef:w,children:typeof h=="function"?(z,X)=>h(z,{...X,ref:A}):ir.cloneElement(h,{ref:A})})}),PO=CG,SG={[Ql]:"show",[gc]:"show"},FO=k.forwardRef(({className:t,children:r,transitionClasses:i={},onEnter:l,...u},d)=>{const m={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...u},h=k.useCallback((y,x)=>{LO(y),l==null||l(y,x)},[l]);return v.jsx(PO,{ref:d,addEndListener:MO,...m,onEnter:h,childRef:r.ref,children:(y,x)=>k.cloneElement(r,{...x,className:en("fade",t,r.props.className,SG[y],i[y])})})});FO.displayName="Fade";const Zp=FO;function jR(t){return typeof t=="boolean"?t?Zp:TR:t}const VO=({transition:t,...r})=>v.jsx(jO,{...r,transition:jR(t)});VO.displayName="TabContainer";const EG=VO,wG=["xxl","xl","lg","md","sm","xs"],RG="xs",BO=k.createContext({prefixes:{},breakpoints:wG,minBreakpoint:RG});function xn(t,r){const{prefixes:i}=k.useContext(BO);return t||i[r]||r}function Yx(){const{dir:t}=k.useContext(BO);return t==="rtl"}const $O=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"tab-content"),v.jsx(i,{ref:u,className:en(t,r),...l})));$O.displayName="TabContent";const zO=$O,UO=k.forwardRef(({bsPrefix:t,transition:r,...i},l)=>{const[{className:u,as:d="div",...m},{isActive:h,onEnter:y,onEntering:x,onEntered:C,onExit:w,onExiting:R,onExited:A,mountOnEnter:N,unmountOnExit:_,transition:I=Zp}]=TO({...i,transition:jR(r)}),M=xn(t,"tab-pane");return v.jsx(ih.Provider,{value:null,children:v.jsx(iu.Provider,{value:null,children:v.jsx(I,{in:h,onEnter:y,onEntering:x,onEntered:C,onExit:w,onExiting:R,onExited:A,mountOnEnter:N,unmountOnExit:_,children:v.jsx(d,{...m,ref:l,className:en(u,M,h&&"active")})})})})});UO.displayName="TabPane";const HO=UO,_G={eventKey:Ve.oneOfType([Ve.string,Ve.number]),title:Ve.node.isRequired,disabled:Ve.bool,tabClassName:Ve.string,tabAttrs:Ve.object},GO=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};GO.propTypes=_G;const Ub=Object.assign(GO,{Container:EG,Content:zO,Pane:HO});function Tt(){return Tt=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},Tt.apply(this,arguments)}var TG={},NG=function(t,r,i,l,u,d,m,h){if(TG.NODE_ENV!=="production"&&r===void 0)throw new Error("invariant requires an error message argument");if(!t){var y;if(r===void 0)y=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var x=[i,l,u,d,m,h],C=0;y=new Error(r.replace(/%s/g,function(){return x[C++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}},IG=NG;const nj=nh(IG);function rj(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function jG(t){var r=AG(t,"string");return typeof r=="symbol"?r:String(r)}function AG(t,r){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var l=i.call(t,r||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function WO(t,r,i){var l=k.useRef(t!==void 0),u=k.useState(r),d=u[0],m=u[1],h=t!==void 0,y=l.current;return l.current=h,!h&&y&&d!==r&&m(r),[h?t:d,k.useCallback(function(x){for(var C=arguments.length,w=new Array(C>1?C-1:0),R=1;R<C;R++)w[R-1]=arguments[R];i&&i.apply(void 0,[x].concat(w)),m(x)},[i])]}function Zx(t,r){return Object.keys(r).reduce(function(i,l){var u,d=i,m=d[rj(l)],h=d[l],y=NR(d,[rj(l),l].map(jG)),x=r[l],C=WO(h,m,t[x]),w=C[0],R=C[1];return Tt({},y,(u={},u[l]=w,u[x]=R,u))},t)}var aj={exports:{}},Fw={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;function i(l){function u(m,h,y,x,C,w){var R=x||"<<anonymous>>",A=w||y;if(h[y]==null)return m?new Error("Required "+C+" `"+A+"` was not specified "+("in `"+R+"`.")):null;for(var N=arguments.length,_=Array(N>6?N-6:0),I=6;I<N;I++)_[I-6]=arguments[I];return l.apply(void 0,[h,y,R,C,A].concat(_))}var d=u.bind(null,!1);return d.isRequired=u.bind(null,!0),d}t.exports=r.default})(Fw,Fw.exports);var OG=Fw.exports;(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var i=OG,l=u(i);function u(m){return m&&m.__esModule?m:{default:m}}function d(){for(var m=arguments.length,h=Array(m),y=0;y<m;y++)h[y]=arguments[y];function x(){for(var C=arguments.length,w=Array(C),R=0;R<C;R++)w[R]=arguments[R];var A=null;return h.forEach(function(N){if(A==null){var _=N.apply(void 0,w);_!=null&&(A=_)}}),A}return(0,l.default)(x)}t.exports=r.default})(aj,aj.exports);var DG=Function.prototype.bind.call(Function.prototype.call,[].slice);function Kl(t,r){return DG(t.querySelectorAll(r))}function XO(){const[,t]=k.useReducer(r=>!r,!1);return t}const YO=k.createContext(null);YO.displayName="NavContext";const AR=YO,kG="data-rr-ui-",MG="rrUi";function lh(t){return`${kG}${t}`}function LG(t){return`${MG}${t}`}const PG=["as","disabled"];function FG(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function VG(t){return!t||t.trim()==="#"}function OR({tagName:t,disabled:r,href:i,target:l,rel:u,role:d,onClick:m,tabIndex:h=0,type:y}){t||(i!=null||l!=null||u!=null?t="a":t="button");const x={tagName:t};if(t==="button")return[{type:y||"button",disabled:r},x];const C=R=>{if((r||t==="a"&&VG(i))&&R.preventDefault(),r){R.stopPropagation();return}m==null||m(R)},w=R=>{R.key===" "&&(R.preventDefault(),C(R))};return t==="a"&&(i||(i="#"),r&&(i=void 0)),[{role:d??"button",disabled:void 0,tabIndex:r?void 0:h,href:i,target:t==="a"?l:void 0,"aria-disabled":r||void 0,rel:t==="a"?u:void 0,onClick:C,onKeyDown:w},x]}const DR=k.forwardRef((t,r)=>{let{as:i,disabled:l}=t,u=FG(t,PG);const[d,{tagName:m}]=OR(Object.assign({tagName:i,disabled:l},u));return v.jsx(m,Object.assign({},u,d,{ref:r}))});DR.displayName="Button";const BG=["as","active","eventKey"];function $G(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function ZO({key:t,onClick:r,active:i,id:l,role:u,disabled:d}){const m=k.useContext(iu),h=k.useContext(AR),y=k.useContext(ih);let x=i;const C={role:u};if(h){!u&&h.role==="tablist"&&(C.role="tab");const w=h.getControllerId(t??null),R=h.getControlledId(t??null);C[lh("event-key")]=t,C.id=w||l,x=i==null&&t!=null?h.activeKey===t:i,(x||!(y!=null&&y.unmountOnExit)&&!(y!=null&&y.mountOnEnter))&&(C["aria-controls"]=R)}return C.role==="tab"&&(C["aria-selected"]=x,x||(C.tabIndex=-1),d&&(C.tabIndex=-1,C["aria-disabled"]=!0)),C.onClick=br(w=>{d||(r==null||r(w),t!=null&&m&&!w.isPropagationStopped()&&m(t,w))}),[C,{isActive:x}]}const qO=k.forwardRef((t,r)=>{let{as:i=DR,active:l,eventKey:u}=t,d=$G(t,BG);const[m,h]=ZO(Object.assign({key:Jd(u,d.href),active:l},d));return m[lh("active")]=h.isActive,v.jsx(i,Object.assign({},d,m,{ref:r}))});qO.displayName="NavItem";const zG=qO,UG=["as","onSelect","activeKey","role","onKeyDown"];function HG(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const ij=()=>{},oj=lh("event-key"),JO=k.forwardRef((t,r)=>{let{as:i="div",onSelect:l,activeKey:u,role:d,onKeyDown:m}=t,h=HG(t,UG);const y=XO(),x=k.useRef(!1),C=k.useContext(iu),w=k.useContext(ih);let R,A;w&&(d=d||"tablist",u=w.activeKey,R=w.getControlledId,A=w.getControllerId);const N=k.useRef(null),_=V=>{const U=N.current;if(!U)return null;const F=Kl(U,`[${oj}]:not([aria-disabled=true])`),z=U.querySelector("[aria-selected=true]");if(!z||z!==document.activeElement)return null;const X=F.indexOf(z);if(X===-1)return null;let Y=X+V;return Y>=F.length&&(Y=0),Y<0&&(Y=F.length-1),F[Y]},I=(V,U)=>{V!=null&&(l==null||l(V,U),C==null||C(V,U))},M=V=>{if(m==null||m(V),!w)return;let U;switch(V.key){case"ArrowLeft":case"ArrowUp":U=_(-1);break;case"ArrowRight":case"ArrowDown":U=_(1);break;default:return}U&&(V.preventDefault(),I(U.dataset[LG("EventKey")]||null,V),x.current=!0,y())};k.useEffect(()=>{if(N.current&&x.current){const V=N.current.querySelector(`[${oj}][aria-selected=true]`);V==null||V.focus()}x.current=!1});const P=hs(r,N);return v.jsx(iu.Provider,{value:I,children:v.jsx(AR.Provider,{value:{role:d,activeKey:Jd(u),getControlledId:R||ij,getControllerId:A||ij},children:v.jsx(i,Object.assign({},h,{onKeyDown:M,ref:P,role:d}))})})});JO.displayName="Nav";const GG=Object.assign(JO,{Item:zG}),QO=k.createContext(null);QO.displayName="NavbarContext";const KO=QO,eD=k.createContext(null);eD.displayName="CardHeaderContext";const WG=eD,tD=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"nav-item"),v.jsx(i,{ref:u,className:en(t,r),...l})));tD.displayName="NavItem";const nD=tD;function Tx(){return k.useState(null)}function XG(t,r,i,l=!1){const u=br(i);k.useEffect(()=>{const d=typeof t=="function"?t():t;return d.addEventListener(r,u,l),()=>d.removeEventListener(r,u,l)},[t])}function kR(){const t=k.useRef(!0),r=k.useRef(()=>t.current);return k.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),r.current}function rD(t){const r=k.useRef(null);return k.useEffect(()=>{r.current=t}),r.current}const YG=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",ZG=typeof document<"u",Nx=ZG||YG?k.useLayoutEffect:k.useEffect,qG=["onKeyDown"];function JG(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function QG(t){return!t||t.trim()==="#"}const aD=k.forwardRef((t,r)=>{let{onKeyDown:i}=t,l=JG(t,qG);const[u]=OR(Object.assign({tagName:"a"},l)),d=br(m=>{u.onKeyDown(m),i==null||i(m)});return QG(l.href)||l.role==="button"?v.jsx("a",Object.assign({ref:r},l,u,{onKeyDown:d})):v.jsx("a",Object.assign({ref:r},l,{onKeyDown:i}))});aD.displayName="Anchor";const iD=aD,oD=k.forwardRef(({bsPrefix:t,className:r,as:i=iD,active:l,eventKey:u,disabled:d=!1,...m},h)=>{t=xn(t,"nav-link");const[y,x]=ZO({key:Jd(u,m.href),active:l,disabled:d,...m});return v.jsx(i,{...m,...y,ref:h,disabled:d,className:en(r,t,d&&"disabled",x.isActive&&"active")})});oD.displayName="NavLink";const sD=oD,lD=k.forwardRef((t,r)=>{const{as:i="div",bsPrefix:l,variant:u,fill:d=!1,justify:m=!1,navbar:h,navbarScroll:y,className:x,activeKey:C,...w}=Zx(t,{activeKey:"onSelect"}),R=xn(l,"nav");let A,N,_=!1;const I=k.useContext(KO),M=k.useContext(WG);return I?(A=I.bsPrefix,_=h??!0):M&&({cardHeaderBsPrefix:N}=M),v.jsx(GG,{as:i,ref:r,activeKey:C,className:en(x,{[R]:!_,[`${A}-nav`]:_,[`${A}-nav-scroll`]:_&&y,[`${N}-${u}`]:!!N,[`${R}-${u}`]:!!u,[`${R}-fill`]:d,[`${R}-justified`]:m}),...w})});lD.displayName="Nav";const KG=Object.assign(lD,{Item:nD,Link:sD});function sj(t,r){let i=0;return k.Children.map(t,l=>k.isValidElement(l)?r(l,i++):l)}function e9(t,r){let i=0;k.Children.forEach(t,l=>{k.isValidElement(l)&&r(l,i++)})}function t9(t){let r;return e9(t,i=>{r==null&&(r=i.props.eventKey)}),r}function n9(t){const{title:r,eventKey:i,disabled:l,tabClassName:u,tabAttrs:d,id:m}=t.props;return r==null?null:v.jsx(nD,{as:"li",role:"presentation",children:v.jsx(sD,{as:"button",type:"button",eventKey:i,disabled:l,id:m,className:u,...d,children:r})})}const uD=t=>{const{id:r,onSelect:i,transition:l,mountOnEnter:u=!1,unmountOnExit:d=!1,variant:m="tabs",children:h,activeKey:y=t9(h),...x}=Zx(t,{activeKey:"onSelect"});return v.jsxs(jO,{id:r,activeKey:y,onSelect:i,transition:jR(l),mountOnEnter:u,unmountOnExit:d,children:[v.jsx(KG,{...x,role:"tablist",as:"ul",variant:m,children:sj(h,n9)}),v.jsx(zO,{children:sj(h,C=>{const w={...C.props};return delete w.title,delete w.disabled,delete w.tabClassName,delete w.tabAttrs,v.jsx(HO,{...w})})})]})};uD.displayName="Tabs";const r9=uD,a9=k.createContext(null),qx=a9;var lj=Object.prototype.hasOwnProperty;function uj(t,r,i){for(i of t.keys())if(Sm(i,r))return i}function Sm(t,r){var i,l,u;if(t===r)return!0;if(t&&r&&(i=t.constructor)===r.constructor){if(i===Date)return t.getTime()===r.getTime();if(i===RegExp)return t.toString()===r.toString();if(i===Array){if((l=t.length)===r.length)for(;l--&&Sm(t[l],r[l]););return l===-1}if(i===Set){if(t.size!==r.size)return!1;for(l of t)if(u=l,u&&typeof u=="object"&&(u=uj(r,u),!u)||!r.has(u))return!1;return!0}if(i===Map){if(t.size!==r.size)return!1;for(l of t)if(u=l[0],u&&typeof u=="object"&&(u=uj(r,u),!u)||!Sm(l[1],r.get(u)))return!1;return!0}if(i===ArrayBuffer)t=new Uint8Array(t),r=new Uint8Array(r);else if(i===DataView){if((l=t.byteLength)===r.byteLength)for(;l--&&t.getInt8(l)===r.getInt8(l););return l===-1}if(ArrayBuffer.isView(t)){if((l=t.byteLength)===r.byteLength)for(;l--&&t[l]===r[l];);return l===-1}if(!i||typeof t=="object"){l=0;for(i in t)if(lj.call(t,i)&&++l&&!lj.call(r,i)||!(i in r)||!Sm(t[i],r[i]))return!1;return Object.keys(r).length===l}}return t!==t&&r!==r}function i9(t){const r=kR();return[t[0],k.useCallback(i=>{if(r())return t[1](i)},[r,t[1]])]}var Di="top",To="bottom",No="right",ki="left",MR="auto",Bm=[Di,To,No,ki],qp="start",Nm="end",o9="clippingParents",cD="viewport",fm="popper",s9="reference",cj=Bm.reduce(function(t,r){return t.concat([r+"-"+qp,r+"-"+Nm])},[]),dD=[].concat(Bm,[MR]).reduce(function(t,r){return t.concat([r,r+"-"+qp,r+"-"+Nm])},[]),l9="beforeRead",u9="read",c9="afterRead",d9="beforeMain",f9="main",p9="afterMain",h9="beforeWrite",v9="write",m9="afterWrite",g9=[l9,u9,c9,d9,f9,p9,h9,v9,m9];function nl(t){return t.split("-")[0]}function Ki(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}function Qd(t){var r=Ki(t).Element;return t instanceof r||t instanceof Element}function rl(t){var r=Ki(t).HTMLElement;return t instanceof r||t instanceof HTMLElement}function LR(t){if(typeof ShadowRoot>"u")return!1;var r=Ki(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}var Wd=Math.max,Ix=Math.min,Jp=Math.round;function Vw(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function fD(){return!/^((?!chrome|android).)*safari/i.test(Vw())}function Qp(t,r,i){r===void 0&&(r=!1),i===void 0&&(i=!1);var l=t.getBoundingClientRect(),u=1,d=1;r&&rl(t)&&(u=t.offsetWidth>0&&Jp(l.width)/t.offsetWidth||1,d=t.offsetHeight>0&&Jp(l.height)/t.offsetHeight||1);var m=Qd(t)?Ki(t):window,h=m.visualViewport,y=!fD()&&i,x=(l.left+(y&&h?h.offsetLeft:0))/u,C=(l.top+(y&&h?h.offsetTop:0))/d,w=l.width/u,R=l.height/d;return{width:w,height:R,top:C,right:x+w,bottom:C+R,left:x,x,y:C}}function PR(t){var r=Qp(t),i=t.offsetWidth,l=t.offsetHeight;return Math.abs(r.width-i)<=1&&(i=r.width),Math.abs(r.height-l)<=1&&(l=r.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:l}}function pD(t,r){var i=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(i&&LR(i)){var l=r;do{if(l&&t.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function xc(t){return t?(t.nodeName||"").toLowerCase():null}function ou(t){return Ki(t).getComputedStyle(t)}function y9(t){return["table","td","th"].indexOf(xc(t))>=0}function Cc(t){return((Qd(t)?t.ownerDocument:t.document)||window.document).documentElement}function Jx(t){return xc(t)==="html"?t:t.assignedSlot||t.parentNode||(LR(t)?t.host:null)||Cc(t)}function dj(t){return!rl(t)||ou(t).position==="fixed"?null:t.offsetParent}function b9(t){var r=/firefox/i.test(Vw()),i=/Trident/i.test(Vw());if(i&&rl(t)){var l=ou(t);if(l.position==="fixed")return null}var u=Jx(t);for(LR(u)&&(u=u.host);rl(u)&&["html","body"].indexOf(xc(u))<0;){var d=ou(u);if(d.transform!=="none"||d.perspective!=="none"||d.contain==="paint"||["transform","perspective"].indexOf(d.willChange)!==-1||r&&d.willChange==="filter"||r&&d.filter&&d.filter!=="none")return u;u=u.parentNode}return null}function $m(t){for(var r=Ki(t),i=dj(t);i&&y9(i)&&ou(i).position==="static";)i=dj(i);return i&&(xc(i)==="html"||xc(i)==="body"&&ou(i).position==="static")?r:i||b9(t)||r}function FR(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Em(t,r,i){return Wd(t,Ix(r,i))}function x9(t,r,i){var l=Em(t,r,i);return l>i?i:l}function hD(){return{top:0,right:0,bottom:0,left:0}}function vD(t){return Object.assign({},hD(),t)}function mD(t,r){return r.reduce(function(i,l){return i[l]=t,i},{})}var C9=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,vD(typeof r!="number"?r:mD(r,Bm))};function S9(t){var r,i=t.state,l=t.name,u=t.options,d=i.elements.arrow,m=i.modifiersData.popperOffsets,h=nl(i.placement),y=FR(h),x=[ki,No].indexOf(h)>=0,C=x?"height":"width";if(!(!d||!m)){var w=C9(u.padding,i),R=PR(d),A=y==="y"?Di:ki,N=y==="y"?To:No,_=i.rects.reference[C]+i.rects.reference[y]-m[y]-i.rects.popper[C],I=m[y]-i.rects.reference[y],M=$m(d),P=M?y==="y"?M.clientHeight||0:M.clientWidth||0:0,V=_/2-I/2,U=w[A],F=P-R[C]-w[N],z=P/2-R[C]/2+V,X=Em(U,z,F),Y=y;i.modifiersData[l]=(r={},r[Y]=X,r.centerOffset=X-z,r)}}function E9(t){var r=t.state,i=t.options,l=i.element,u=l===void 0?"[data-popper-arrow]":l;u!=null&&(typeof u=="string"&&(u=r.elements.popper.querySelector(u),!u)||pD(r.elements.popper,u)&&(r.elements.arrow=u))}const w9={name:"arrow",enabled:!0,phase:"main",fn:S9,effect:E9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Kp(t){return t.split("-")[1]}var R9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _9(t,r){var i=t.x,l=t.y,u=r.devicePixelRatio||1;return{x:Jp(i*u)/u||0,y:Jp(l*u)/u||0}}function fj(t){var r,i=t.popper,l=t.popperRect,u=t.placement,d=t.variation,m=t.offsets,h=t.position,y=t.gpuAcceleration,x=t.adaptive,C=t.roundOffsets,w=t.isFixed,R=m.x,A=R===void 0?0:R,N=m.y,_=N===void 0?0:N,I=typeof C=="function"?C({x:A,y:_}):{x:A,y:_};A=I.x,_=I.y;var M=m.hasOwnProperty("x"),P=m.hasOwnProperty("y"),V=ki,U=Di,F=window;if(x){var z=$m(i),X="clientHeight",Y="clientWidth";if(z===Ki(i)&&(z=Cc(i),ou(z).position!=="static"&&h==="absolute"&&(X="scrollHeight",Y="scrollWidth")),z=z,u===Di||(u===ki||u===No)&&d===Nm){U=To;var ce=w&&z===F&&F.visualViewport?F.visualViewport.height:z[X];_-=ce-l.height,_*=y?1:-1}if(u===ki||(u===Di||u===To)&&d===Nm){V=No;var ie=w&&z===F&&F.visualViewport?F.visualViewport.width:z[Y];A-=ie-l.width,A*=y?1:-1}}var me=Object.assign({position:h},x&&R9),ae=C===!0?_9({x:A,y:_},Ki(i)):{x:A,y:_};if(A=ae.x,_=ae.y,y){var we;return Object.assign({},me,(we={},we[U]=P?"0":"",we[V]=M?"0":"",we.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+_+"px)":"translate3d("+A+"px, "+_+"px, 0)",we))}return Object.assign({},me,(r={},r[U]=P?_+"px":"",r[V]=M?A+"px":"",r.transform="",r))}function T9(t){var r=t.state,i=t.options,l=i.gpuAcceleration,u=l===void 0?!0:l,d=i.adaptive,m=d===void 0?!0:d,h=i.roundOffsets,y=h===void 0?!0:h,x={placement:nl(r.placement),variation:Kp(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:u,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,fj(Object.assign({},x,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:m,roundOffsets:y})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,fj(Object.assign({},x,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const N9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:T9,data:{}};var Hb={passive:!0};function I9(t){var r=t.state,i=t.instance,l=t.options,u=l.scroll,d=u===void 0?!0:u,m=l.resize,h=m===void 0?!0:m,y=Ki(r.elements.popper),x=[].concat(r.scrollParents.reference,r.scrollParents.popper);return d&&x.forEach(function(C){C.addEventListener("scroll",i.update,Hb)}),h&&y.addEventListener("resize",i.update,Hb),function(){d&&x.forEach(function(C){C.removeEventListener("scroll",i.update,Hb)}),h&&y.removeEventListener("resize",i.update,Hb)}}const j9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:I9,data:{}};var A9={left:"right",right:"left",bottom:"top",top:"bottom"};function ox(t){return t.replace(/left|right|bottom|top/g,function(r){return A9[r]})}var O9={start:"end",end:"start"};function pj(t){return t.replace(/start|end/g,function(r){return O9[r]})}function VR(t){var r=Ki(t),i=r.pageXOffset,l=r.pageYOffset;return{scrollLeft:i,scrollTop:l}}function BR(t){return Qp(Cc(t)).left+VR(t).scrollLeft}function D9(t,r){var i=Ki(t),l=Cc(t),u=i.visualViewport,d=l.clientWidth,m=l.clientHeight,h=0,y=0;if(u){d=u.width,m=u.height;var x=fD();(x||!x&&r==="fixed")&&(h=u.offsetLeft,y=u.offsetTop)}return{width:d,height:m,x:h+BR(t),y}}function k9(t){var r,i=Cc(t),l=VR(t),u=(r=t.ownerDocument)==null?void 0:r.body,d=Wd(i.scrollWidth,i.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),m=Wd(i.scrollHeight,i.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),h=-l.scrollLeft+BR(t),y=-l.scrollTop;return ou(u||i).direction==="rtl"&&(h+=Wd(i.clientWidth,u?u.clientWidth:0)-d),{width:d,height:m,x:h,y}}function $R(t){var r=ou(t),i=r.overflow,l=r.overflowX,u=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+u+l)}function gD(t){return["html","body","#document"].indexOf(xc(t))>=0?t.ownerDocument.body:rl(t)&&$R(t)?t:gD(Jx(t))}function wm(t,r){var i;r===void 0&&(r=[]);var l=gD(t),u=l===((i=t.ownerDocument)==null?void 0:i.body),d=Ki(l),m=u?[d].concat(d.visualViewport||[],$R(l)?l:[]):l,h=r.concat(m);return u?h:h.concat(wm(Jx(m)))}function Bw(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function M9(t,r){var i=Qp(t,!1,r==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function hj(t,r,i){return r===cD?Bw(D9(t,i)):Qd(r)?M9(r,i):Bw(k9(Cc(t)))}function L9(t){var r=wm(Jx(t)),i=["absolute","fixed"].indexOf(ou(t).position)>=0,l=i&&rl(t)?$m(t):t;return Qd(l)?r.filter(function(u){return Qd(u)&&pD(u,l)&&xc(u)!=="body"}):[]}function P9(t,r,i,l){var u=r==="clippingParents"?L9(t):[].concat(r),d=[].concat(u,[i]),m=d[0],h=d.reduce(function(y,x){var C=hj(t,x,l);return y.top=Wd(C.top,y.top),y.right=Ix(C.right,y.right),y.bottom=Ix(C.bottom,y.bottom),y.left=Wd(C.left,y.left),y},hj(t,m,l));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function yD(t){var r=t.reference,i=t.element,l=t.placement,u=l?nl(l):null,d=l?Kp(l):null,m=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,y;switch(u){case Di:y={x:m,y:r.y-i.height};break;case To:y={x:m,y:r.y+r.height};break;case No:y={x:r.x+r.width,y:h};break;case ki:y={x:r.x-i.width,y:h};break;default:y={x:r.x,y:r.y}}var x=u?FR(u):null;if(x!=null){var C=x==="y"?"height":"width";switch(d){case qp:y[x]=y[x]-(r[C]/2-i[C]/2);break;case Nm:y[x]=y[x]+(r[C]/2-i[C]/2);break}}return y}function Im(t,r){r===void 0&&(r={});var i=r,l=i.placement,u=l===void 0?t.placement:l,d=i.strategy,m=d===void 0?t.strategy:d,h=i.boundary,y=h===void 0?o9:h,x=i.rootBoundary,C=x===void 0?cD:x,w=i.elementContext,R=w===void 0?fm:w,A=i.altBoundary,N=A===void 0?!1:A,_=i.padding,I=_===void 0?0:_,M=vD(typeof I!="number"?I:mD(I,Bm)),P=R===fm?s9:fm,V=t.rects.popper,U=t.elements[N?P:R],F=P9(Qd(U)?U:U.contextElement||Cc(t.elements.popper),y,C,m),z=Qp(t.elements.reference),X=yD({reference:z,element:V,strategy:"absolute",placement:u}),Y=Bw(Object.assign({},V,X)),ce=R===fm?Y:z,ie={top:F.top-ce.top+M.top,bottom:ce.bottom-F.bottom+M.bottom,left:F.left-ce.left+M.left,right:ce.right-F.right+M.right},me=t.modifiersData.offset;if(R===fm&&me){var ae=me[u];Object.keys(ie).forEach(function(we){var ge=[No,To].indexOf(we)>=0?1:-1,xe=[Di,To].indexOf(we)>=0?"y":"x";ie[we]+=ae[xe]*ge})}return ie}function F9(t,r){r===void 0&&(r={});var i=r,l=i.placement,u=i.boundary,d=i.rootBoundary,m=i.padding,h=i.flipVariations,y=i.allowedAutoPlacements,x=y===void 0?dD:y,C=Kp(l),w=C?h?cj:cj.filter(function(N){return Kp(N)===C}):Bm,R=w.filter(function(N){return x.indexOf(N)>=0});R.length===0&&(R=w);var A=R.reduce(function(N,_){return N[_]=Im(t,{placement:_,boundary:u,rootBoundary:d,padding:m})[nl(_)],N},{});return Object.keys(A).sort(function(N,_){return A[N]-A[_]})}function V9(t){if(nl(t)===MR)return[];var r=ox(t);return[pj(t),r,pj(r)]}function B9(t){var r=t.state,i=t.options,l=t.name;if(!r.modifiersData[l]._skip){for(var u=i.mainAxis,d=u===void 0?!0:u,m=i.altAxis,h=m===void 0?!0:m,y=i.fallbackPlacements,x=i.padding,C=i.boundary,w=i.rootBoundary,R=i.altBoundary,A=i.flipVariations,N=A===void 0?!0:A,_=i.allowedAutoPlacements,I=r.options.placement,M=nl(I),P=M===I,V=y||(P||!N?[ox(I)]:V9(I)),U=[I].concat(V).reduce(function(Ee,_e){return Ee.concat(nl(_e)===MR?F9(r,{placement:_e,boundary:C,rootBoundary:w,padding:x,flipVariations:N,allowedAutoPlacements:_}):_e)},[]),F=r.rects.reference,z=r.rects.popper,X=new Map,Y=!0,ce=U[0],ie=0;ie<U.length;ie++){var me=U[ie],ae=nl(me),we=Kp(me)===qp,ge=[Di,To].indexOf(ae)>=0,xe=ge?"width":"height",je=Im(r,{placement:me,boundary:C,rootBoundary:w,altBoundary:R,padding:x}),Le=ge?we?No:ki:we?To:Di;F[xe]>z[xe]&&(Le=ox(Le));var re=ox(Le),De=[];if(d&&De.push(je[ae]<=0),h&&De.push(je[Le]<=0,je[re]<=0),De.every(function(Ee){return Ee})){ce=me,Y=!1;break}X.set(me,De)}if(Y)for(var G=N?3:1,Z=function(_e){var Ne=U.find(function(ke){var Oe=X.get(ke);if(Oe)return Oe.slice(0,_e).every(function(ve){return ve})});if(Ne)return ce=Ne,"break"},ne=G;ne>0;ne--){var be=Z(ne);if(be==="break")break}r.placement!==ce&&(r.modifiersData[l]._skip=!0,r.placement=ce,r.reset=!0)}}const $9={name:"flip",enabled:!0,phase:"main",fn:B9,requiresIfExists:["offset"],data:{_skip:!1}};function vj(t,r,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-r.height-i.y,right:t.right-r.width+i.x,bottom:t.bottom-r.height+i.y,left:t.left-r.width-i.x}}function mj(t){return[Di,No,To,ki].some(function(r){return t[r]>=0})}function z9(t){var r=t.state,i=t.name,l=r.rects.reference,u=r.rects.popper,d=r.modifiersData.preventOverflow,m=Im(r,{elementContext:"reference"}),h=Im(r,{altBoundary:!0}),y=vj(m,l),x=vj(h,u,d),C=mj(y),w=mj(x);r.modifiersData[i]={referenceClippingOffsets:y,popperEscapeOffsets:x,isReferenceHidden:C,hasPopperEscaped:w},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":w})}const U9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:z9};function H9(t,r,i){var l=nl(t),u=[ki,Di].indexOf(l)>=0?-1:1,d=typeof i=="function"?i(Object.assign({},r,{placement:t})):i,m=d[0],h=d[1];return m=m||0,h=(h||0)*u,[ki,No].indexOf(l)>=0?{x:h,y:m}:{x:m,y:h}}function G9(t){var r=t.state,i=t.options,l=t.name,u=i.offset,d=u===void 0?[0,0]:u,m=dD.reduce(function(C,w){return C[w]=H9(w,r.rects,d),C},{}),h=m[r.placement],y=h.x,x=h.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=y,r.modifiersData.popperOffsets.y+=x),r.modifiersData[l]=m}const W9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:G9};function X9(t){var r=t.state,i=t.name;r.modifiersData[i]=yD({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const Y9={name:"popperOffsets",enabled:!0,phase:"read",fn:X9,data:{}};function Z9(t){return t==="x"?"y":"x"}function q9(t){var r=t.state,i=t.options,l=t.name,u=i.mainAxis,d=u===void 0?!0:u,m=i.altAxis,h=m===void 0?!1:m,y=i.boundary,x=i.rootBoundary,C=i.altBoundary,w=i.padding,R=i.tether,A=R===void 0?!0:R,N=i.tetherOffset,_=N===void 0?0:N,I=Im(r,{boundary:y,rootBoundary:x,padding:w,altBoundary:C}),M=nl(r.placement),P=Kp(r.placement),V=!P,U=FR(M),F=Z9(U),z=r.modifiersData.popperOffsets,X=r.rects.reference,Y=r.rects.popper,ce=typeof _=="function"?_(Object.assign({},r.rects,{placement:r.placement})):_,ie=typeof ce=="number"?{mainAxis:ce,altAxis:ce}:Object.assign({mainAxis:0,altAxis:0},ce),me=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,ae={x:0,y:0};if(z){if(d){var we,ge=U==="y"?Di:ki,xe=U==="y"?To:No,je=U==="y"?"height":"width",Le=z[U],re=Le+I[ge],De=Le-I[xe],G=A?-Y[je]/2:0,Z=P===qp?X[je]:Y[je],ne=P===qp?-Y[je]:-X[je],be=r.elements.arrow,Ee=A&&be?PR(be):{width:0,height:0},_e=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:hD(),Ne=_e[ge],ke=_e[xe],Oe=Em(0,X[je],Ee[je]),ve=V?X[je]/2-G-Oe-Ne-ie.mainAxis:Z-Oe-Ne-ie.mainAxis,Ie=V?-X[je]/2+G+Oe+ke+ie.mainAxis:ne+Oe+ke+ie.mainAxis,Xe=r.elements.arrow&&$m(r.elements.arrow),qe=Xe?U==="y"?Xe.clientTop||0:Xe.clientLeft||0:0,Ae=(we=me==null?void 0:me[U])!=null?we:0,xt=Le+ve-Ae-qe,ht=Le+Ie-Ae,Ht=Em(A?Ix(re,xt):re,Le,A?Wd(De,ht):De);z[U]=Ht,ae[U]=Ht-Le}if(h){var Gt,ln=U==="x"?Di:ki,jn=U==="x"?To:No,Vt=z[F],Cn=F==="y"?"height":"width",Qn=Vt+I[ln],Tr=Vt-I[jn],Gn=[Di,ki].indexOf(M)!==-1,Nr=(Gt=me==null?void 0:me[F])!=null?Gt:0,Et=Gn?Qn:Vt-X[Cn]-Y[Cn]-Nr+ie.altAxis,Fn=Gn?Vt+X[Cn]+Y[Cn]-Nr-ie.altAxis:Tr,un=A&&Gn?x9(Et,Vt,Fn):Em(A?Et:Qn,Vt,A?Fn:Tr);z[F]=un,ae[F]=un-Vt}r.modifiersData[l]=ae}}const J9={name:"preventOverflow",enabled:!0,phase:"main",fn:q9,requiresIfExists:["offset"]};function Q9(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function K9(t){return t===Ki(t)||!rl(t)?VR(t):Q9(t)}function e4(t){var r=t.getBoundingClientRect(),i=Jp(r.width)/t.offsetWidth||1,l=Jp(r.height)/t.offsetHeight||1;return i!==1||l!==1}function t4(t,r,i){i===void 0&&(i=!1);var l=rl(r),u=rl(r)&&e4(r),d=Cc(r),m=Qp(t,u,i),h={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(l||!l&&!i)&&((xc(r)!=="body"||$R(d))&&(h=K9(r)),rl(r)?(y=Qp(r,!0),y.x+=r.clientLeft,y.y+=r.clientTop):d&&(y.x=BR(d))),{x:m.left+h.scrollLeft-y.x,y:m.top+h.scrollTop-y.y,width:m.width,height:m.height}}function n4(t){var r=new Map,i=new Set,l=[];t.forEach(function(d){r.set(d.name,d)});function u(d){i.add(d.name);var m=[].concat(d.requires||[],d.requiresIfExists||[]);m.forEach(function(h){if(!i.has(h)){var y=r.get(h);y&&u(y)}}),l.push(d)}return t.forEach(function(d){i.has(d.name)||u(d)}),l}function r4(t){var r=n4(t);return g9.reduce(function(i,l){return i.concat(r.filter(function(u){return u.phase===l}))},[])}function a4(t){var r;return function(){return r||(r=new Promise(function(i){Promise.resolve().then(function(){r=void 0,i(t())})})),r}}function i4(t){var r=t.reduce(function(i,l){var u=i[l.name];return i[l.name]=u?Object.assign({},u,l,{options:Object.assign({},u.options,l.options),data:Object.assign({},u.data,l.data)}):l,i},{});return Object.keys(r).map(function(i){return r[i]})}var gj={placement:"bottom",modifiers:[],strategy:"absolute"};function yj(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return!r.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function o4(t){t===void 0&&(t={});var r=t,i=r.defaultModifiers,l=i===void 0?[]:i,u=r.defaultOptions,d=u===void 0?gj:u;return function(h,y,x){x===void 0&&(x=d);var C={placement:"bottom",orderedModifiers:[],options:Object.assign({},gj,d),modifiersData:{},elements:{reference:h,popper:y},attributes:{},styles:{}},w=[],R=!1,A={state:C,setOptions:function(M){var P=typeof M=="function"?M(C.options):M;_(),C.options=Object.assign({},d,C.options,P),C.scrollParents={reference:Qd(h)?wm(h):h.contextElement?wm(h.contextElement):[],popper:wm(y)};var V=r4(i4([].concat(l,C.options.modifiers)));return C.orderedModifiers=V.filter(function(U){return U.enabled}),N(),A.update()},forceUpdate:function(){if(!R){var M=C.elements,P=M.reference,V=M.popper;if(yj(P,V)){C.rects={reference:t4(P,$m(V),C.options.strategy==="fixed"),popper:PR(V)},C.reset=!1,C.placement=C.options.placement,C.orderedModifiers.forEach(function(ie){return C.modifiersData[ie.name]=Object.assign({},ie.data)});for(var U=0;U<C.orderedModifiers.length;U++){if(C.reset===!0){C.reset=!1,U=-1;continue}var F=C.orderedModifiers[U],z=F.fn,X=F.options,Y=X===void 0?{}:X,ce=F.name;typeof z=="function"&&(C=z({state:C,options:Y,name:ce,instance:A})||C)}}}},update:a4(function(){return new Promise(function(I){A.forceUpdate(),I(C)})}),destroy:function(){_(),R=!0}};if(!yj(h,y))return A;A.setOptions(x).then(function(I){!R&&x.onFirstUpdate&&x.onFirstUpdate(I)});function N(){C.orderedModifiers.forEach(function(I){var M=I.name,P=I.options,V=P===void 0?{}:P,U=I.effect;if(typeof U=="function"){var F=U({state:C,name:M,instance:A,options:V}),z=function(){};w.push(F||z)}})}function _(){w.forEach(function(I){return I()}),w=[]}return A}}const s4=o4({defaultModifiers:[U9,Y9,N9,j9,W9,$9,J9,w9]}),l4=["enabled","placement","strategy","modifiers"];function u4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const c4={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},d4={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:r,popper:i}=t.elements;if("removeAttribute"in r){const l=(r.getAttribute("aria-describedby")||"").split(",").filter(u=>u.trim()!==i.id);l.length?r.setAttribute("aria-describedby",l.join(",")):r.removeAttribute("aria-describedby")}},fn:({state:t})=>{var r;const{popper:i,reference:l}=t.elements,u=(r=i.getAttribute("role"))==null?void 0:r.toLowerCase();if(i.id&&u==="tooltip"&&"setAttribute"in l){const d=l.getAttribute("aria-describedby");if(d&&d.split(",").indexOf(i.id)!==-1)return;l.setAttribute("aria-describedby",d?`${d},${i.id}`:i.id)}}},f4=[];function bD(t,r,i={}){let{enabled:l=!0,placement:u="bottom",strategy:d="absolute",modifiers:m=f4}=i,h=u4(i,l4);const y=k.useRef(m),x=k.useRef(),C=k.useCallback(()=>{var I;(I=x.current)==null||I.update()},[]),w=k.useCallback(()=>{var I;(I=x.current)==null||I.forceUpdate()},[]),[R,A]=i9(k.useState({placement:u,update:C,forceUpdate:w,attributes:{},styles:{popper:{},arrow:{}}})),N=k.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:I})=>{const M={},P={};Object.keys(I.elements).forEach(V=>{M[V]=I.styles[V],P[V]=I.attributes[V]}),A({state:I,styles:M,attributes:P,update:C,forceUpdate:w,placement:I.placement})}}),[C,w,A]),_=k.useMemo(()=>(Sm(y.current,m)||(y.current=m),y.current),[m]);return k.useEffect(()=>{!x.current||!l||x.current.setOptions({placement:u,strategy:d,modifiers:[..._,N,c4]})},[d,u,N,l,_]),k.useEffect(()=>{if(!(!l||t==null||r==null))return x.current=s4(t,r,Object.assign({},h,{placement:u,strategy:d,modifiers:[..._,d4,N]})),()=>{x.current!=null&&(x.current.destroy(),x.current=void 0,A(I=>Object.assign({},I,{attributes:{},styles:{popper:{}}})))}},[l,t,r]),R}function jm(t,r){if(t.contains)return t.contains(r);if(t.compareDocumentPosition)return t===r||!!(t.compareDocumentPosition(r)&16)}var p4={},h4=p4.NODE_ENV!=="production",xD=function(){};if(h4){var v4=function(r,i){var l=arguments.length;i=new Array(l>1?l-1:0);for(var u=1;u<l;u++)i[u-1]=arguments[u];var d=0,m="Warning: "+r.replace(/%s/g,function(){return i[d++]});typeof console<"u"&&console.error(m);try{throw new Error(m)}catch{}};xD=function(t,r,i){var l=arguments.length;i=new Array(l>2?l-2:0);for(var u=2;u<l;u++)i[u-2]=arguments[u];if(r===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");t||v4.apply(null,[r].concat(i))}}var m4=xD;const zR=nh(m4),bj=()=>{};function g4(t){return t.button===0}function y4(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const sx=t=>t&&("current"in t?t.current:t),xj={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function CD(t,r=bj,{disabled:i,clickTrigger:l="click"}={}){const u=k.useRef(!1),d=k.useRef(!1),m=k.useCallback(x=>{const C=sx(t);zR(!!C,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),u.current=!C||y4(x)||!g4(x)||!!jm(C,x.target)||d.current,d.current=!1},[t]),h=br(x=>{const C=sx(t);C&&jm(C,x.target)&&(d.current=!0)}),y=br(x=>{u.current||r(x)});k.useEffect(()=>{var x,C;if(i||t==null)return;const w=oh(sx(t)),R=w.defaultView||window;let A=(x=R.event)!=null?x:(C=R.parent)==null?void 0:C.event,N=null;xj[l]&&(N=eu(w,xj[l],h,!0));const _=eu(w,l,m,!0),I=eu(w,l,P=>{if(P===A){A=void 0;return}y(P)});let M=[];return"ontouchstart"in w.documentElement&&(M=[].slice.call(w.body.children).map(P=>eu(P,"mousemove",bj))),()=>{N==null||N(),_(),I(),M.forEach(P=>P())}},[t,i,l,m,h,y])}function b4(t){const r={};return Array.isArray(t)?(t==null||t.forEach(i=>{r[i.name]=i}),r):t||r}function x4(t={}){return Array.isArray(t)?t:Object.keys(t).map(r=>(t[r].name=r,t[r]))}function SD({enabled:t,enableEvents:r,placement:i,flip:l,offset:u,fixed:d,containerPadding:m,arrowElement:h,popperConfig:y={}}){var x,C,w,R,A;const N=b4(y.modifiers);return Object.assign({},y,{placement:i,enabled:t,strategy:d?"fixed":y.strategy,modifiers:x4(Object.assign({},N,{eventListeners:{enabled:r,options:(x=N.eventListeners)==null?void 0:x.options},preventOverflow:Object.assign({},N.preventOverflow,{options:m?Object.assign({padding:m},(C=N.preventOverflow)==null?void 0:C.options):(w=N.preventOverflow)==null?void 0:w.options}),offset:{options:Object.assign({offset:u},(R=N.offset)==null?void 0:R.options)},arrow:Object.assign({},N.arrow,{enabled:!!h,options:Object.assign({},(A=N.arrow)==null?void 0:A.options,{element:h})}),flip:Object.assign({enabled:!!l},N.flip)}))})}const C4=["children"];function S4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const E4=()=>{};function ED(t={}){const r=k.useContext(qx),[i,l]=Tx(),u=k.useRef(!1),{flip:d,offset:m,rootCloseEvent:h,fixed:y=!1,placement:x,popperConfig:C={},enableEventListeners:w=!0,usePopper:R=!!r}=t,A=(r==null?void 0:r.show)==null?!!t.show:r.show;A&&!u.current&&(u.current=!0);const N=z=>{r==null||r.toggle(!1,z)},{placement:_,setMenu:I,menuElement:M,toggleElement:P}=r||{},V=bD(P,M,SD({placement:x||_||"bottom-start",enabled:R,enableEvents:w??A,offset:m,flip:d,fixed:y,arrowElement:i,popperConfig:C})),U=Object.assign({ref:I||E4,"aria-labelledby":P==null?void 0:P.id},V.attributes.popper,{style:V.styles.popper}),F={show:A,placement:_,hasShown:u.current,toggle:r==null?void 0:r.toggle,popper:R?V:null,arrowProps:R?Object.assign({ref:l},V.attributes.arrow,{style:V.styles.arrow}):{}};return CD(M,N,{clickTrigger:h,disabled:!A}),[U,F]}const w4={usePopper:!0};function UR(t){let{children:r}=t,i=S4(t,C4);const[l,u]=ED(i);return v.jsx(v.Fragment,{children:r(l,u)})}UR.displayName="DropdownMenu";UR.defaultProps=w4;const wD=t=>{var r;return((r=t.getAttribute("role"))==null?void 0:r.toLowerCase())==="menu"},Cj=()=>{};function RD(){const t=_O(),{show:r=!1,toggle:i=Cj,setToggle:l,menuElement:u}=k.useContext(qx)||{},d=k.useCallback(h=>{i(!r,h)},[r,i]),m={id:t,ref:l||Cj,onClick:d,"aria-expanded":!!r};return u&&wD(u)&&(m["aria-haspopup"]=!0),[m,{show:r,toggle:i}]}function _D({children:t}){const[r,i]=RD();return v.jsx(v.Fragment,{children:t(r,i)})}_D.displayName="DropdownToggle";const R4=["eventKey","disabled","onClick","active","as"];function _4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function TD({key:t,href:r,active:i,disabled:l,onClick:u}){const d=k.useContext(iu),m=k.useContext(AR),{activeKey:h}=m||{},y=Jd(t,r),x=i==null&&t!=null?Jd(h)===y:i;return[{onClick:br(w=>{l||(u==null||u(w),d&&!w.isPropagationStopped()&&d(y,w))}),"aria-disabled":l||void 0,"aria-selected":x,[lh("dropdown-item")]:""},{isActive:x}]}const ND=k.forwardRef((t,r)=>{let{eventKey:i,disabled:l,onClick:u,active:d,as:m=DR}=t,h=_4(t,R4);const[y]=TD({key:i,href:h.href,disabled:l,onClick:u,active:d});return v.jsx(m,Object.assign({},h,{ref:r},y))});ND.displayName="DropdownItem";const ID=k.createContext(sh?window:void 0);ID.Provider;function Qx(){return k.useContext(ID)}function Sj(){const t=XO(),r=k.useRef(null),i=k.useCallback(l=>{r.current=l,t()},[t]);return[r,i]}function zm({defaultShow:t,show:r,onSelect:i,onToggle:l,itemSelector:u=`* [${lh("dropdown-item")}]`,focusFirstItemOnShow:d,placement:m="bottom-start",children:h}){const y=Qx(),[x,C]=EO(r,t,l),[w,R]=Sj(),A=w.current,[N,_]=Sj(),I=N.current,M=rD(x),P=k.useRef(null),V=k.useRef(!1),U=k.useContext(iu),F=k.useCallback((me,ae,we=ae==null?void 0:ae.type)=>{C(me,{originalEvent:ae,source:we})},[C]),z=br((me,ae)=>{i==null||i(me,ae),F(!1,ae,"select"),ae.isPropagationStopped()||U==null||U(me,ae)}),X=k.useMemo(()=>({toggle:F,placement:m,show:x,menuElement:A,toggleElement:I,setMenu:R,setToggle:_}),[F,m,x,A,I,R,_]);A&&M&&!x&&(V.current=A.contains(A.ownerDocument.activeElement));const Y=br(()=>{I&&I.focus&&I.focus()}),ce=br(()=>{const me=P.current;let ae=d;if(ae==null&&(ae=w.current&&wD(w.current)?"keyboard":!1),ae===!1||ae==="keyboard"&&!/^key.+$/.test(me))return;const we=Kl(w.current,u)[0];we&&we.focus&&we.focus()});k.useEffect(()=>{x?ce():V.current&&(V.current=!1,Y())},[x,V,Y,ce]),k.useEffect(()=>{P.current=null});const ie=(me,ae)=>{if(!w.current)return null;const we=Kl(w.current,u);let ge=we.indexOf(me)+ae;return ge=Math.max(0,Math.min(ge,we.length)),we[ge]};return XG(k.useCallback(()=>y.document,[y]),"keydown",me=>{var ae,we;const{key:ge}=me,xe=me.target,je=(ae=w.current)==null?void 0:ae.contains(xe),Le=(we=N.current)==null?void 0:we.contains(xe);if(/input|textarea/i.test(xe.tagName)&&(ge===" "||ge!=="Escape"&&je||ge==="Escape"&&xe.type==="search")||!je&&!Le||ge==="Tab"&&(!w.current||!x))return;P.current=me.type;const De={originalEvent:me,source:me.type};switch(ge){case"ArrowUp":{const G=ie(xe,-1);G&&G.focus&&G.focus(),me.preventDefault();return}case"ArrowDown":if(me.preventDefault(),!x)C(!0,De);else{const G=ie(xe,1);G&&G.focus&&G.focus()}return;case"Tab":IR(xe.ownerDocument,"keyup",G=>{var Z;(G.key==="Tab"&&!G.target||!((Z=w.current)!=null&&Z.contains(G.target)))&&C(!1,De)},{once:!0});break;case"Escape":ge==="Escape"&&(me.preventDefault(),me.stopPropagation()),C(!1,De);break}}),v.jsx(iu.Provider,{value:z,children:v.jsx(qx.Provider,{value:X,children:h})})}zm.displayName="Dropdown";zm.Menu=UR;zm.Toggle=_D;zm.Item=ND;const jD=k.createContext({});jD.displayName="DropdownContext";const AD=jD,OD=k.forwardRef(({className:t,bsPrefix:r,as:i="hr",role:l="separator",...u},d)=>(r=xn(r,"dropdown-divider"),v.jsx(i,{ref:d,className:en(t,r),role:l,...u})));OD.displayName="DropdownDivider";const T4=OD,DD=k.forwardRef(({className:t,bsPrefix:r,as:i="div",role:l="heading",...u},d)=>(r=xn(r,"dropdown-header"),v.jsx(i,{ref:d,className:en(t,r),role:l,...u})));DD.displayName="DropdownHeader";const N4=DD,kD=k.forwardRef(({bsPrefix:t,className:r,eventKey:i,disabled:l=!1,onClick:u,active:d,as:m=iD,...h},y)=>{const x=xn(t,"dropdown-item"),[C,w]=TD({key:i,href:h.href,disabled:l,onClick:u,active:d});return v.jsx(m,{...h,...C,ref:y,className:en(r,x,w.isActive&&"active",l&&"disabled")})});kD.displayName="DropdownItem";const I4=kD,MD=k.forwardRef(({className:t,bsPrefix:r,as:i="span",...l},u)=>(r=xn(r,"dropdown-item-text"),v.jsx(i,{ref:u,className:en(t,r),...l})));MD.displayName="DropdownItemText";const j4=MD,LD=k.createContext(null);LD.displayName="InputGroupContext";const PD=LD;var Ej={};function FD(t,r){if(Ej.NODE_ENV==="production")return t;const i=k.useCallback(l=>{l==null||!l.isReactComponent||(Ej.NODE_ENV!=="production"?nj(!1,`${r} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):nj(!1))},[r]);return hs(i,t)}var A4={};function VD(t,r,i){const l=i?"top-end":"top-start",u=i?"top-start":"top-end",d=i?"bottom-end":"bottom-start",m=i?"bottom-start":"bottom-end",h=i?"right-start":"left-start",y=i?"right-end":"left-end",x=i?"left-start":"right-start",C=i?"left-end":"right-end";let w=t?m:d;return r==="up"?w=t?u:l:r==="end"?w=t?C:x:r==="start"?w=t?y:h:r==="down-centered"?w="bottom":r==="up-centered"&&(w="top"),w}const BD=k.forwardRef(({bsPrefix:t,className:r,align:i,rootCloseEvent:l,flip:u=!0,show:d,renderOnMount:m,as:h="div",popperConfig:y,variant:x,...C},w)=>{let R=!1;const A=k.useContext(KO),N=xn(t,"dropdown-menu"),{align:_,drop:I,isRTL:M}=k.useContext(AD);i=i||_;const P=k.useContext(PD),V=[];if(i)if(typeof i=="object"){const me=Object.keys(i);if(A4.NODE_ENV!=="production"&&zR(me.length===1,"There should only be 1 breakpoint when passing an object to `align`"),me.length){const ae=me[0],we=i[ae];R=we==="start",V.push(`${N}-${ae}-${we}`)}}else i==="end"&&(R=!0);const U=VD(R,I,M),[F,{hasShown:z,popper:X,show:Y,toggle:ce}]=ED({flip:u,rootCloseEvent:l,show:d,usePopper:!A&&V.length===0,offset:[0,2],popperConfig:y,placement:U});if(F.ref=hs(FD(w,"DropdownMenu"),F.ref),Nx(()=>{Y&&(X==null||X.update())},[Y]),!z&&!m&&!P)return null;typeof h!="string"&&(F.show=Y,F.close=()=>ce==null?void 0:ce(!1),F.align=i);let ie=C.style;return X!=null&&X.placement&&(ie={...C.style,...F.style},C["x-placement"]=X.placement),v.jsx(h,{...C,...F,style:ie,...(V.length||A)&&{"data-bs-popper":"static"},className:en(r,N,Y&&"show",R&&`${N}-end`,x&&`${N}-${x}`,...V)})});BD.displayName="DropdownMenu";const O4=BD,$D=k.forwardRef(({as:t,bsPrefix:r,variant:i="primary",size:l,active:u=!1,disabled:d=!1,className:m,...h},y)=>{const x=xn(r,"btn"),[C,{tagName:w}]=OR({tagName:t,disabled:d,...h}),R=w;return v.jsx(R,{...C,...h,ref:y,disabled:d,className:en(m,x,u&&"active",i&&`${x}-${i}`,l&&`${x}-${l}`,h.href&&d&&"disabled")})});$D.displayName="Button";const D4=$D,zD=k.forwardRef(({bsPrefix:t,split:r,className:i,childBsPrefix:l,as:u=D4,...d},m)=>{const h=xn(t,"dropdown-toggle"),y=k.useContext(qx);l!==void 0&&(d.bsPrefix=l);const[x]=RD();return x.ref=hs(x.ref,FD(m,"DropdownToggle")),v.jsx(u,{className:en(i,h,r&&`${h}-split`,(y==null?void 0:y.show)&&"show"),...x,...d})});zD.displayName="DropdownToggle";const k4=zD,UD=k.forwardRef((t,r)=>{const{bsPrefix:i,drop:l="down",show:u,className:d,align:m="start",onSelect:h,onToggle:y,focusFirstItemOnShow:x,as:C="div",navbar:w,autoClose:R=!0,...A}=Zx(t,{show:"onToggle"}),N=k.useContext(PD),_=xn(i,"dropdown"),I=Yx(),M=X=>R===!1?X==="click":R==="inside"?X!=="rootClose":R==="outside"?X!=="select":!0,P=br((X,Y)=>{var ce,ie;!((ce=Y.originalEvent)==null||(ie=ce.target)==null)&&ie.classList.contains("dropdown-toggle")&&Y.source==="mousedown"||(Y.originalEvent.currentTarget===document&&(Y.source!=="keydown"||Y.originalEvent.key==="Escape")&&(Y.source="rootClose"),M(Y.source)&&(y==null||y(X,Y)))}),U=VD(m==="end",l,I),F=k.useMemo(()=>({align:m,drop:l,isRTL:I}),[m,l,I]),z={down:_,"down-centered":`${_}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return v.jsx(AD.Provider,{value:F,children:v.jsx(zm,{placement:U,show:u,onSelect:h,onToggle:P,focusFirstItemOnShow:x,itemSelector:`.${_}-item:not(.disabled):not(:disabled)`,children:N?A.children:v.jsx(C,{...A,ref:r,className:en(d,u&&"show",z[l])})})})});UD.displayName="Dropdown";const Gb=Object.assign(UD,{Toggle:k4,Menu:O4,Item:I4,ItemText:j4,Divider:T4,Header:N4});var Wb;function wj(t){if((!Wb&&Wb!==0||t)&&sh){var r=document.createElement("div");r.style.position="absolute",r.style.top="-9999px",r.style.width="50px",r.style.height="50px",r.style.overflow="scroll",document.body.appendChild(r),Wb=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return Wb}function M4(t){const r=k.useRef(t);return r.current=t,r}function HR(t){const r=M4(t);k.useEffect(()=>()=>r.current(),[])}function ew(t){t===void 0&&(t=oh());try{var r=t.activeElement;return!r||!r.nodeName?null:r}catch{return t.body}}function L4(t=document){const r=t.defaultView;return Math.abs(r.innerWidth-t.documentElement.clientWidth)}const Rj=lh("modal-open");class P4{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:l=!1}={}){this.handleContainerOverflow=i,this.isRTL=l,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return L4(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(r){}removeModalAttributes(r){}setContainerStyle(r){const i={overflow:"hidden"},l=this.isRTL?"paddingLeft":"paddingRight",u=this.getElement();r.style={overflow:u.style.overflow,[l]:u.style[l]},r.scrollBarWidth&&(i[l]=`${parseInt(nu(u,l)||"0",10)+r.scrollBarWidth}px`),u.setAttribute(Rj,""),nu(u,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(Rj),Object.assign(i.style,r.style)}add(r){let i=this.modals.indexOf(r);return i!==-1||(i=this.modals.length,this.modals.push(r),this.setModalAttributes(r),i!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),i}remove(r){const i=this.modals.indexOf(r);i!==-1&&(this.modals.splice(i,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(r))}isTopModal(r){return!!this.modals.length&&this.modals[this.modals.length-1]===r}}const GR=P4,tw=(t,r)=>sh?t==null?(r||oh()).body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),t&&("nodeType"in t||t.getBoundingClientRect)?t:null):null;function $w(t,r){const i=Qx(),[l,u]=k.useState(()=>tw(t,i==null?void 0:i.document));if(!l){const d=tw(t);d&&u(d)}return k.useEffect(()=>{r&&l&&r(l)},[r,l]),k.useEffect(()=>{const d=tw(t);d!==l&&u(d)},[t,l]),l}function F4({in:t,onTransition:r}){const i=k.useRef(null),l=k.useRef(!0),u=br(r);return Nx(()=>{if(!i.current)return;let d=!1;return u({in:t,element:i.current,initial:l.current,isStale:()=>d}),()=>{d=!0}},[t,u]),Nx(()=>(l.current=!1,()=>{l.current=!0}),[]),i}function V4({children:t,in:r,onExited:i,onEntered:l,transition:u}){const[d,m]=k.useState(!r);r&&d&&m(!1);const h=F4({in:!!r,onTransition:x=>{const C=()=>{x.isStale()||(x.in?l==null||l(x.element,x.initial):(m(!0),i==null||i(x.element)))};Promise.resolve(u(x)).then(C,w=>{throw x.in||m(!0),w})}}),y=hs(h,t.ref);return d&&!r?null:k.cloneElement(t,{ref:y})}function zw(t,r,i){return t?v.jsx(t,Object.assign({},i)):r?v.jsx(V4,Object.assign({},i,{transition:r})):v.jsx(TR,Object.assign({},i))}function HD(t){return t.code==="Escape"||t.keyCode===27}const B4=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function $4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}let nw;function z4(t){return nw||(nw=new GR({ownerDocument:t==null?void 0:t.document})),nw}function U4(t){const r=Qx(),i=t||z4(r),l=k.useRef({dialog:null,backdrop:null});return Object.assign(l.current,{add:()=>i.add(l.current),remove:()=>i.remove(l.current),isTopModal:()=>i.isTopModal(l.current),setDialogRef:k.useCallback(u=>{l.current.dialog=u},[]),setBackdropRef:k.useCallback(u=>{l.current.backdrop=u},[])})}const GD=k.forwardRef((t,r)=>{let{show:i=!1,role:l="dialog",className:u,style:d,children:m,backdrop:h=!0,keyboard:y=!0,onBackdropClick:x,onEscapeKeyDown:C,transition:w,runTransition:R,backdropTransition:A,runBackdropTransition:N,autoFocus:_=!0,enforceFocus:I=!0,restoreFocus:M=!0,restoreFocusOptions:P,renderDialog:V,renderBackdrop:U=ht=>v.jsx("div",Object.assign({},ht)),manager:F,container:z,onShow:X,onHide:Y=()=>{},onExit:ce,onExited:ie,onExiting:me,onEnter:ae,onEntering:we,onEntered:ge}=t,xe=$4(t,B4);const je=Qx(),Le=$w(z),re=U4(F),De=kR(),G=rD(i),[Z,ne]=k.useState(!i),be=k.useRef(null);k.useImperativeHandle(r,()=>re,[re]),sh&&!G&&i&&(be.current=ew(je==null?void 0:je.document)),i&&Z&&ne(!1);const Ee=br(()=>{if(re.add(),Ie.current=eu(document,"keydown",Oe),ve.current=eu(document,"focus",()=>setTimeout(Ne),!0),X&&X(),_){var ht,Ht;const Gt=ew((ht=(Ht=re.dialog)==null?void 0:Ht.ownerDocument)!=null?ht:je==null?void 0:je.document);re.dialog&&Gt&&!jm(re.dialog,Gt)&&(be.current=Gt,re.dialog.focus())}}),_e=br(()=>{if(re.remove(),Ie.current==null||Ie.current(),ve.current==null||ve.current(),M){var ht;(ht=be.current)==null||ht.focus==null||ht.focus(P),be.current=null}});k.useEffect(()=>{!i||!Le||Ee()},[i,Le,Ee]),k.useEffect(()=>{Z&&_e()},[Z,_e]),HR(()=>{_e()});const Ne=br(()=>{if(!I||!De()||!re.isTopModal())return;const ht=ew(je==null?void 0:je.document);re.dialog&&ht&&!jm(re.dialog,ht)&&re.dialog.focus()}),ke=br(ht=>{ht.target===ht.currentTarget&&(x==null||x(ht),h===!0&&Y())}),Oe=br(ht=>{y&&HD(ht)&&re.isTopModal()&&(C==null||C(ht),ht.defaultPrevented||Y())}),ve=k.useRef(),Ie=k.useRef(),Xe=(...ht)=>{ne(!0),ie==null||ie(...ht)};if(!Le)return null;const qe=Object.assign({role:l,ref:re.setDialogRef,"aria-modal":l==="dialog"?!0:void 0},xe,{style:d,className:u,tabIndex:-1});let Ae=V?V(qe):v.jsx("div",Object.assign({},qe,{children:k.cloneElement(m,{role:"document"})}));Ae=zw(w,R,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:ce,onExiting:me,onExited:Xe,onEnter:ae,onEntering:we,onEntered:ge,children:Ae});let xt=null;return h&&(xt=U({ref:re.setBackdropRef,onClick:ke}),xt=zw(A,N,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:xt})),v.jsx(v.Fragment,{children:zd.createPortal(v.jsxs(v.Fragment,{children:[xt,Ae]}),Le)})});GD.displayName="Modal";const H4=Object.assign(GD,{Manager:GR});function Uw(t,r){return t.classList?!!r&&t.classList.contains(r):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+r+" ")!==-1}function G4(t,r){t.classList?t.classList.add(r):Uw(t,r)||(typeof t.className=="string"?t.className=t.className+" "+r:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+r))}function _j(t,r){return t.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function W4(t,r){t.classList?t.classList.remove(r):typeof t.className=="string"?t.className=_j(t.className,r):t.setAttribute("class",_j(t.className&&t.className.baseVal||"",r))}const $p={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class X4 extends GR{adjustAndStore(r,i,l){const u=i.style[r];i.dataset[r]=u,nu(i,{[r]:`${parseFloat(nu(i,r))+l}px`})}restore(r,i){const l=i.dataset[r];l!==void 0&&(delete i.dataset[r],nu(i,{[r]:l}))}setContainerStyle(r){super.setContainerStyle(r);const i=this.getElement();if(G4(i,"modal-open"),!r.scrollBarWidth)return;const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";Kl(i,$p.FIXED_CONTENT).forEach(d=>this.adjustAndStore(l,d,r.scrollBarWidth)),Kl(i,$p.STICKY_CONTENT).forEach(d=>this.adjustAndStore(u,d,-r.scrollBarWidth)),Kl(i,$p.NAVBAR_TOGGLER).forEach(d=>this.adjustAndStore(u,d,r.scrollBarWidth))}removeContainerStyle(r){super.removeContainerStyle(r);const i=this.getElement();W4(i,"modal-open");const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";Kl(i,$p.FIXED_CONTENT).forEach(d=>this.restore(l,d)),Kl(i,$p.STICKY_CONTENT).forEach(d=>this.restore(u,d)),Kl(i,$p.NAVBAR_TOGGLER).forEach(d=>this.restore(u,d))}}let rw;function Y4(t){return rw||(rw=new X4(t)),rw}const WD=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"modal-body"),v.jsx(i,{ref:u,className:en(t,r),...l})));WD.displayName="ModalBody";const Z4=WD,q4=k.createContext({onHide(){}}),XD=q4,YD=k.forwardRef(({bsPrefix:t,className:r,contentClassName:i,centered:l,size:u,fullscreen:d,children:m,scrollable:h,...y},x)=>{t=xn(t,"modal");const C=`${t}-dialog`,w=typeof d=="string"?`${t}-fullscreen-${d}`:`${t}-fullscreen`;return v.jsx("div",{...y,ref:x,className:en(C,r,u&&`${t}-${u}`,l&&`${C}-centered`,h&&`${C}-scrollable`,d&&w),children:v.jsx("div",{className:en(`${t}-content`,i),children:m})})});YD.displayName="ModalDialog";const ZD=YD,qD=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"modal-footer"),v.jsx(i,{ref:u,className:en(t,r),...l})));qD.displayName="ModalFooter";const J4=qD,Q4={"aria-label":Ve.string,onClick:Ve.func,variant:Ve.oneOf(["white"])},WR=k.forwardRef(({className:t,variant:r,"aria-label":i="Close",...l},u)=>v.jsx("button",{ref:u,type:"button",className:en("btn-close",r&&`btn-close-${r}`,t),"aria-label":i,...l}));WR.displayName="CloseButton";WR.propTypes=Q4;const K4=WR,eW=k.forwardRef(({closeLabel:t="Close",closeVariant:r,closeButton:i=!1,onHide:l,children:u,...d},m)=>{const h=k.useContext(XD),y=br(()=>{h==null||h.onHide(),l==null||l()});return v.jsxs("div",{ref:m,...d,children:[u,i&&v.jsx(K4,{"aria-label":t,variant:r,onClick:y})]})}),tW=eW,JD=k.forwardRef(({bsPrefix:t,className:r,closeLabel:i="Close",closeButton:l=!1,...u},d)=>(t=xn(t,"modal-header"),v.jsx(tW,{ref:d,...u,className:en(r,t),closeLabel:i,closeButton:l})));JD.displayName="ModalHeader";const nW=JD,rW=t=>k.forwardRef((r,i)=>v.jsx("div",{...r,ref:i,className:en(r.className,t)})),aW=rW("h4"),QD=k.forwardRef(({className:t,bsPrefix:r,as:i=aW,...l},u)=>(r=xn(r,"modal-title"),v.jsx(i,{ref:u,className:en(t,r),...l})));QD.displayName="ModalTitle";const iW=QD;function oW(t){return v.jsx(Zp,{...t,timeout:null})}function sW(t){return v.jsx(Zp,{...t,timeout:null})}const KD=k.forwardRef(({bsPrefix:t,className:r,style:i,dialogClassName:l,contentClassName:u,children:d,dialogAs:m=ZD,"data-bs-theme":h,"aria-labelledby":y,"aria-describedby":x,"aria-label":C,show:w=!1,animation:R=!0,backdrop:A=!0,keyboard:N=!0,onEscapeKeyDown:_,onShow:I,onHide:M,container:P,autoFocus:V=!0,enforceFocus:U=!0,restoreFocus:F=!0,restoreFocusOptions:z,onEntered:X,onExit:Y,onExiting:ce,onEnter:ie,onEntering:me,onExited:ae,backdropClassName:we,manager:ge,...xe},je)=>{const[Le,re]=k.useState({}),[De,G]=k.useState(!1),Z=k.useRef(!1),ne=k.useRef(!1),be=k.useRef(null),[Ee,_e]=Tx(),Ne=hs(je,_e),ke=br(M),Oe=Yx();t=xn(t,"modal");const ve=k.useMemo(()=>({onHide:ke}),[ke]);function Ie(){return ge||Y4({isRTL:Oe})}function Xe(Et){if(!sh)return;const Fn=Ie().getScrollbarWidth()>0,un=Et.scrollHeight>oh(Et).documentElement.clientHeight;re({paddingRight:Fn&&!un?wj():void 0,paddingLeft:!Fn&&un?wj():void 0})}const qe=br(()=>{Ee&&Xe(Ee.dialog)});HR(()=>{Pw(window,"resize",qe),be.current==null||be.current()});const Ae=()=>{Z.current=!0},xt=Et=>{Z.current&&Ee&&Et.target===Ee.dialog&&(ne.current=!0),Z.current=!1},ht=()=>{G(!0),be.current=kO(Ee.dialog,()=>{G(!1)})},Ht=Et=>{Et.target===Et.currentTarget&&ht()},Gt=Et=>{if(A==="static"){Ht(Et);return}if(ne.current||Et.target!==Et.currentTarget){ne.current=!1;return}M==null||M()},ln=Et=>{N?_==null||_(Et):(Et.preventDefault(),A==="static"&&ht())},jn=(Et,Fn)=>{Et&&Xe(Et),ie==null||ie(Et,Fn)},Vt=Et=>{be.current==null||be.current(),Y==null||Y(Et)},Cn=(Et,Fn)=>{me==null||me(Et,Fn),IR(window,"resize",qe)},Qn=Et=>{Et&&(Et.style.display=""),ae==null||ae(Et),Pw(window,"resize",qe)},Tr=k.useCallback(Et=>v.jsx("div",{...Et,className:en(`${t}-backdrop`,we,!R&&"show")}),[R,we,t]),Gn={...i,...Le};Gn.display="block";const Nr=Et=>v.jsx("div",{role:"dialog",...Et,style:Gn,className:en(r,t,De&&`${t}-static`,!R&&"show"),onClick:A?Gt:void 0,onMouseUp:xt,"data-bs-theme":h,"aria-label":C,"aria-labelledby":y,"aria-describedby":x,children:v.jsx(m,{...xe,onMouseDown:Ae,className:l,contentClassName:u,children:d})});return v.jsx(XD.Provider,{value:ve,children:v.jsx(H4,{show:w,ref:Ne,backdrop:A,container:P,keyboard:!0,autoFocus:V,enforceFocus:U,restoreFocus:F,restoreFocusOptions:z,onEscapeKeyDown:ln,onShow:I,onHide:M,onEnter:jn,onEntering:Cn,onEntered:X,onExit:Vt,onExiting:ce,onExited:Qn,manager:Ie(),transition:R?oW:void 0,backdropTransition:R?sW:void 0,renderBackdrop:Tr,renderDialog:Nr})})});KD.displayName="Modal";const Pn=Object.assign(KD,{Body:Z4,Header:nW,Title:iW,Footer:J4,Dialog:ZD,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),lW=ir.forwardRef(({children:t,onClick:r},i)=>v.jsx("a",{className:"btn btn-secondary d-flex flex-column justify-content-center flex-grow-1",href:"",ref:i,onClick:l=>{l.preventDefault(),r(l)},children:v.jsx("span",{className:"dropdown-toggle",children:t})}));function uW({requestId:t,grantNumber:r}){const{request:i,toggleActionsModal:l}=ii(t,r),{project:u}=Qi(r||i.grantNumber);if(!i||!u||i.error||u.error)return;const d=qt.routes.request_action_path(t,"new"),m=i.allowedActions.Renewal?Array.isArray(i.allowedActions.Renewal)?[...i.allowedActions.Renewal]:[i.allowedActions.Renewal]:[];m.sort((x,C)=>x.opportunityId<C.opportunityId?-1:1);const h=[{id:"extension",action:`${d}?action_type=Extension`,isEnabled:"Extension"in i.allowedActions,button:"Request an Extension",enabled:i.usesCredits?v.jsx("p",{children:"Need more time to use your current credits and allocations? You can extend your project's end date up to six months past your funding end date, or up to 12 months at a time for projects not supported by a funding award."}):v.jsx("p",{children:"Need more time to use your current allocations? A one-time extension can extend your project end date by up to six months."}),disabled:v.jsxs("p",{children:["Your project is not currently eligible for an extension of its end date.",i.usesCredits?v.jsxs(v.Fragment,{children:[" ","Extensions can be requested starting 90 days before your project's current end date."]}):null]})},{id:"supplement",action:`${d}?action_type=Supplement`,isEnabled:"Supplement"in i.allowedActions,button:"Request a Supplement",enabled:i.usesCredits?v.jsxs("p",{children:["Need more credits to complete your project? Great news! Your"," ",i.allocationType," project is eligible for a supplement of"," ",{Explore:"200,000",Discover:"750,000",Accelerate:"1,500,000"}[i.allocationType]," ","additional ACCESS credits."]}):v.jsxs("p",{children:["Need more units to complete your research? Great news! Your"," ",i.allocationType," project is eligible for a supplement of additional units."]}),disabled:v.jsxs("p",{children:["Your project is not currently eligible for a supplement of additional"," ",i.usesCredits?"ACCESS Credits":"units","."]})},{id:"renewal",action:m.map(x=>[x.opportunityName,`${qt.routes.renew_request_path(t)}?opportunity_id=${x.opportunityId}`,"post"]),isEnabled:"Renewal"in i.allowedActions,button:"Request a Renewal",enabled:v.jsxs("p",{children:["Your ",i.allocationType," project can be renewed! The requirements for renewing your project depend on the"," ",v.jsx("a",{href:qt.routes.project_types_path(),target:"_blank",children:"new project type you select"}),"."]}),disabled:v.jsxs("p",{children:["Your project is not currently eligible for renewal.",i.usesCredits&&v.jsxs(v.Fragment,{children:[" ","Renewals are available starting 30 days before the project's current end date."]}),i.isMaximize&&v.jsxs(v.Fragment,{children:[" ","You can submit a renewal request to the Maximize ACCESS opportunity closest to your project's current end date."]})]})},{id:"help",action:[["Learn How to Manage Allocations",qt.routes.how_to_path(),"get"],["Open a Help Ticket","https://support.access-ci.org/open-a-ticket","get"]],isEnabled:!0,button:"Request Help",enabled:v.jsxs("p",{children:["Need to change something else about your project or expecting another option? Submit a help ticket that includes"," ",v.jsxs("em",{children:["grant number ",u.grantNumber]})," and a detailed description of the problem."]})}];h.sort((x,C)=>x.isEnabled<C.isEnabled?1:-1);const y=h.map(({id:x,action:C,isEnabled:w,button:R,enabled:A,disabled:N})=>v.jsxs("div",{className:"row",children:[v.jsx("div",{className:"col-sm-4 mb-2 d-grid",children:Array.isArray(C)&&C.length?v.jsxs(Gb,{className:"d-flex flex-column",children:[v.jsx(Gb.Toggle,{as:lW,children:R}),v.jsx(Gb.Menu,{children:C.map(([_,I,M])=>v.jsx(Gb.Item,{href:I,onClick:P=>{M!=="get"&&(P.preventDefault(),P.target.dataset.method=M,$&&$.rails&&$.rails.handleMethod($(P.target)))},children:_},I))})]}):v.jsx("a",{className:`btn btn-secondary d-flex flex-column justify-content-center ${w?"":"disabled"}`,href:w?C:"",children:v.jsx("span",{children:R})})}),v.jsx("div",{className:"col-sm-8 mb-2",children:w?A:N})]},x));return v.jsxs(Pn,{size:"lg",show:i.showActionsModal,onHide:l,children:[v.jsx(Pn.Header,{closeButton:!0,children:v.jsx(Pn.Title,{children:"Manage Your Project"})}),v.jsxs(Pn.Body,{children:[v.jsxs("p",{children:["Please select an action to manage your project"," ",v.jsxs("strong",{children:[u.grantNumber,": ",u.title]}),"."]}),y]})]})}function cW({requestId:t,grantNumber:r}){const{request:i,toggleActionsModal:l,toggleConfirmModal:u}=ii(t,r),{project:d}=Qi(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const m=i.usesCredits?"credits":"units",h=(1-uO(i))*100;return v.jsxs(Pn,{size:"lg",show:i.showConfirmModal,onHide:u,scrollable:!0,children:[v.jsx(Pn.Header,{closeButton:!0,children:v.jsx(Pn.Title,{children:"Consider Requesting an Exchange"})}),v.jsx(Pn.Body,{children:v.jsxs("p",{children:[v.jsxs("strong",{children:[Math.round(h),"% of your allocation is unused."]})," ","Are you sure you want to request more ",m,"? You can exchange"," ",i.usesCredits?"credits for resources or ":""," one resource for another by changing the ",v.jsx("strong",{children:"balance"})," numbers in the table on the previous screen."]})}),v.jsx(Pn.Footer,{children:v.jsxs("div",{className:"d-flex",children:[v.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:u,children:"Return to Exchange"}),v.jsxs("button",{type:"button",className:"btn btn-secondary",onClick:()=>{u(),l()},children:["Request More ",m]})]})})]})}function dW({requestId:t,grantNumber:r,actionId:i}){const{deleteAction:l,request:u,toggleDeleteModal:d}=ii(t,r);if(!u||u.error)return;const m=u.actions.find(R=>R.actionId==i);if(!m)return;const{deleteStatus:h,isRequest:y}=m,x=h==ta.pending,C=h==ta.error,w=()=>d(i);return v.jsxs(Pn,{show:m.showDeleteModal,onHide:w,scrollable:!0,children:[v.jsx(Pn.Header,{closeButton:!0,children:v.jsx(Pn.Title,{children:"Confirm Deletion"})}),v.jsxs(Pn.Body,{children:[C&&v.jsxs(hr,{color:"danger",children:["Deletion of the ",y?"request":"action"," failed."]}),v.jsxs("p",{children:["Are you sure you want to delete"," ",!y&&v.jsxs(v.Fragment,{children:["action"," ",v.jsxs("strong",{children:[m.type,": ",Hd(m.date)]})," ","on"," "]}),"request ",v.jsx("strong",{children:gR(u)}),"? Deletions cannot be undone."]})]}),v.jsx(Pn.Footer,{children:v.jsxs("div",{className:"d-flex",children:[v.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:w,disabled:x,children:"Cancel"}),v.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>l(i),disabled:x,children:x?"Deleting...":"Delete"})]})})]})}function jx({color:t="primary",href:r,icon:i,onClick:l,target:u,title:d}){const m=v.jsx("i",{className:`bi bi-${i}`}),h={className:`btn btn-sm ms-1 text-${t}`,href:r,onClick:l,style:{"--bs-btn-padding-x":"0.1rem","--bs-btn-padding-y":"0.1rem","--bs-btn-line-height":"1"},target:u,title:d};return r?v.jsx("a",{...h,children:m}):v.jsx("button",{...h,children:m})}function ek({action:t,request:r,toggleDeleteModal:i}){const l=t.allowedOperations||[],u=["Exchange","Transfer"].includes(t.type),d=[];l.includes("Edit")&&!u&&d.push(v.jsx(jx,{href:t.isRequest?qt.routes.edit_request_path(r.requestId):qt.routes.edit_request_action_path(r.requestId,t.actionId),icon:"pencil",title:"Edit action"},"edit")),l.includes("Delete")&&!u&&d.push(v.jsx(jx,{color:"danger",icon:"trash",onClick:()=>i(t.actionId),title:"Edit action"},"delete"));const m=`${t.type}: ${Hd(t.date)}`;return v.jsxs(v.Fragment,{children:[t.detailAvailable&&!u?v.jsx("a",{href:qt.routes.request_action_path(r.requestId,t.actionId),children:m}):m,d]})}function Xd({resource:t,userGuide:r=!0}){const{full:i,short:l}=Wx(t.name),u=l?v.jsx("abbr",{title:i,children:l}):i;return v.jsxs(v.Fragment,{children:[bc(qt.resourceTypeIcons[t.icon])," ",u,!t.isCredit&&t.userGuideUrl&&r?v.jsx(jx,{icon:"book",href:t.userGuideUrl,target:"_blank",title:`${t.name} User Guide`}):null]})}function eh({status:t,title:r}){const i={Active:"primary",Approved:"primary",New:"secondary",Pending:"secondary","Under Review":"secondary","Returned for Corrections":"secondary"}[t]||"dark";return v.jsx("span",{className:`badge text-bg-${i} align-self-center`,title:r,children:t})}const fW=t=>v.jsx("span",{className:t<0?"text-danger":"",children:t===0?"":t.toLocaleString()});function pW({requestId:t,grantNumber:r}){const{request:i,toggleDeleteModal:l}=ii(t,r),{project:u,setRequest:d}=Qi(r||i.grantNumber);if(!i||!u)return;const m=u.requestsList;let h=0;for(;h<m.length&&m[h].requestId!==t;)h++;const y=m[h+1],x=m[h-1],C=(_,I)=>_?v.jsxs("button",{type:"button",className:"btn btn-light btn-sm",onClick:()=>d(_.requestId),children:[I=="prev"?v.jsx("i",{className:"bi bi-chevron-left"}):null,gR(_),I=="next"?v.jsx("i",{className:"bi bi-chevron-right"}):null]}):v.jsx("span",{}),w=new Set,R=[];for(let _ of i.actions)for(let I of _.resources)w.has(I.resourceId)||(w.add(I.resourceId),R.push(I));R.sort(bx);const A=[{key:"action",name:"Action Details",format:(_,I)=>v.jsx(ek,{action:I,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:_=>v.jsx(eh,{status:_})},...R.map(_=>({key:`resource${_.resourceId}`,name:_.name,icon:_.icon,class:"text-end",format:_.isBoolean?I=>I?yR(I):null:fW,formatHeader:(I,M)=>v.jsx(Xd,{resource:M,userGuide:!1})}))],N=i.actions.map(_=>{const I={..._};for(let{resourceId:M}of R)I[`resource${M}`]=0;for(let{resourceId:M,approved:P,requested:V}of _.resources)I[`resource${M}`]=P||V||0;return I});return v.jsxs("div",{className:"history",children:[v.jsx(su,{columns:A,rows:N}),v.jsxs("div",{className:"buttons d-flex justify-content-between",children:[C(y,"prev"),C(x,"next")]})]})}function hW({requestId:t,grantNumber:r}){const{request:i,toggleDeleteModal:l}=ii(t,r);if(!i)return;const u=[{key:"type",name:"Action Details",format:(d,m)=>v.jsx(ek,{action:m,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:d=>v.jsx(eh,{status:d})}];if(i.actions&&i.actions.length)return v.jsx(su,{rows:i.actions,columns:u})}function pm(...t){return t.filter(r=>r!=null).reduce((r,i)=>{if(typeof i!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return r===null?i:function(...u){r.apply(this,u),i.apply(this,u)}},null)}const vW={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function mW(t,r){const i=`offset${t[0].toUpperCase()}${t.slice(1)}`,l=r[i],u=vW[t];return l+parseInt(nu(r,u[0]),10)+parseInt(nu(r,u[1]),10)}const gW={[mc]:"collapse",[Rx]:"collapsing",[Ql]:"collapsing",[gc]:"collapse show"},yW=ir.forwardRef(({onEnter:t,onEntering:r,onEntered:i,onExit:l,onExiting:u,className:d,children:m,dimension:h="height",in:y=!1,timeout:x=300,mountOnEnter:C=!1,unmountOnExit:w=!1,appear:R=!1,getDimensionValue:A=mW,...N},_)=>{const I=typeof h=="function"?h():h,M=k.useMemo(()=>pm(z=>{z.style[I]="0"},t),[I,t]),P=k.useMemo(()=>pm(z=>{const X=`scroll${I[0].toUpperCase()}${I.slice(1)}`;z.style[I]=`${z[X]}px`},r),[I,r]),V=k.useMemo(()=>pm(z=>{z.style[I]=null},i),[I,i]),U=k.useMemo(()=>pm(z=>{z.style[I]=`${A(I,z)}px`,LO(z)},l),[l,A,I]),F=k.useMemo(()=>pm(z=>{z.style[I]=null},u),[I,u]);return v.jsx(PO,{ref:_,addEndListener:MO,...N,"aria-expanded":N.role?y:null,onEnter:M,onEntering:P,onEntered:V,onExit:U,onExiting:F,childRef:m.ref,in:y,timeout:x,mountOnEnter:C,unmountOnExit:w,appear:R,children:(z,X)=>ir.cloneElement(m,{...X,className:en(d,m.props.className,gW[z],I==="width"&&"collapse-horizontal")})})}),bW=yW;function tk(t,r){return Array.isArray(t)?t.includes(r):t===r}const nk=k.createContext({});nk.displayName="AccordionContext";const Kx=nk,rk=k.forwardRef(({as:t="div",bsPrefix:r,className:i,children:l,eventKey:u,...d},m)=>{const{activeEventKey:h}=k.useContext(Kx);return r=xn(r,"accordion-collapse"),v.jsx(bW,{ref:m,in:tk(h,u),...d,className:en(i,r),children:v.jsx(t,{children:k.Children.only(l)})})});rk.displayName="AccordionCollapse";const ak=rk,ik=k.createContext({eventKey:""});ik.displayName="AccordionItemContext";const XR=ik,ok=k.forwardRef(({as:t="div",bsPrefix:r,className:i,onEnter:l,onEntering:u,onEntered:d,onExit:m,onExiting:h,onExited:y,...x},C)=>{r=xn(r,"accordion-body");const{eventKey:w}=k.useContext(XR);return v.jsx(ak,{eventKey:w,onEnter:l,onEntering:u,onEntered:d,onExit:m,onExiting:h,onExited:y,children:v.jsx(t,{ref:C,...x,className:en(i,r)})})});ok.displayName="AccordionBody";const xW=ok;function CW(t,r){const{activeEventKey:i,onSelect:l,alwaysOpen:u}=k.useContext(Kx);return d=>{let m=t===i?null:t;u&&(Array.isArray(i)?i.includes(t)?m=i.filter(h=>h!==t):m=[...i,t]:m=[t]),l==null||l(m,d),r==null||r(d)}}const sk=k.forwardRef(({as:t="button",bsPrefix:r,className:i,onClick:l,...u},d)=>{r=xn(r,"accordion-button");const{eventKey:m}=k.useContext(XR),h=CW(m,l),{activeEventKey:y}=k.useContext(Kx);return t==="button"&&(u.type="button"),v.jsx(t,{ref:d,onClick:h,...u,"aria-expanded":Array.isArray(y)?y.includes(m):m===y,className:en(i,r,!tk(y,m)&&"collapsed")})});sk.displayName="AccordionButton";const lk=sk,uk=k.forwardRef(({as:t="h2",bsPrefix:r,className:i,children:l,onClick:u,...d},m)=>(r=xn(r,"accordion-header"),v.jsx(t,{ref:m,...d,className:en(i,r),children:v.jsx(lk,{onClick:u,children:l})})));uk.displayName="AccordionHeader";const SW=uk,ck=k.forwardRef(({as:t="div",bsPrefix:r,className:i,eventKey:l,...u},d)=>{r=xn(r,"accordion-item");const m=k.useMemo(()=>({eventKey:l}),[l]);return v.jsx(XR.Provider,{value:m,children:v.jsx(t,{ref:d,...u,className:en(i,r)})})});ck.displayName="AccordionItem";const EW=ck,dk=k.forwardRef((t,r)=>{const{as:i="div",activeKey:l,bsPrefix:u,className:d,onSelect:m,flush:h,alwaysOpen:y,...x}=Zx(t,{activeKey:"onSelect"}),C=xn(u,"accordion"),w=k.useMemo(()=>({activeEventKey:l,onSelect:m,alwaysOpen:y}),[l,m,y]);return v.jsx(Kx.Provider,{value:w,children:v.jsx(i,{ref:r,...x,className:en(d,C,h&&`${C}-flush`)})})});dk.displayName="Accordion";const us=Object.assign(dk,{Button:lk,Collapse:ak,Item:EW,Header:SW,Body:xW}),Hw=2**31-1;function fk(t,r,i){const l=i-Date.now();t.current=l<=Hw?setTimeout(r,l):setTimeout(()=>fk(t,r,i),Hw)}function wW(){const t=kR(),r=k.useRef();return HR(()=>clearTimeout(r.current)),k.useMemo(()=>{const i=()=>clearTimeout(r.current);function l(u,d=0){t()&&(i(),d<=Hw?r.current=setTimeout(u,d):fk(r,u,Date.now()+d))}return{set:l,clear:i,handleRef:r}},[])}const RW=()=>{};function _W(t,r,{disabled:i,clickTrigger:l}={}){const u=r||RW;CD(t,u,{disabled:i,clickTrigger:l});const d=br(m=>{HD(m)&&u(m)});k.useEffect(()=>{if(i||t==null)return;const m=oh(sx(t));let h=(m.defaultView||window).event;const y=eu(m,"keyup",x=>{if(x===h){h=void 0;return}d(x)});return()=>{y()}},[t,i,d])}const pk=k.forwardRef((t,r)=>{const{flip:i,offset:l,placement:u,containerPadding:d,popperConfig:m={},transition:h,runTransition:y}=t,[x,C]=Tx(),[w,R]=Tx(),A=hs(C,r),N=$w(t.container),_=$w(t.target),[I,M]=k.useState(!t.show),P=bD(_,x,SD({placement:u,enableEvents:!!t.show,containerPadding:d||5,flip:i,offset:l,arrowElement:w,popperConfig:m}));t.show&&I&&M(!1);const V=(...me)=>{M(!0),t.onExited&&t.onExited(...me)},U=t.show||!I;if(_W(x,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!U)return null;const{onExit:F,onExiting:z,onEnter:X,onEntering:Y,onEntered:ce}=t;let ie=t.children(Object.assign({},P.attributes.popper,{style:P.styles.popper,ref:A}),{popper:P,placement:u,show:!!t.show,arrowProps:Object.assign({},P.attributes.arrow,{style:P.styles.arrow,ref:R})});return ie=zw(h,y,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ie,onExit:F,onExiting:z,onExited:V,onEnter:X,onEntering:Y,onEntered:ce}),N?zd.createPortal(ie,N):null});pk.displayName="Overlay";const TW=pk,hk=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"popover-header"),v.jsx(i,{ref:u,className:en(t,r),...l})));hk.displayName="PopoverHeader";const NW=hk,vk=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"popover-body"),v.jsx(i,{ref:u,className:en(t,r),...l})));vk.displayName="PopoverBody";const mk=vk;function gk(t,r){let i=t;return t==="left"?i=r?"end":"start":t==="right"&&(i=r?"start":"end"),i}function yk(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const IW=k.forwardRef(({bsPrefix:t,placement:r="right",className:i,style:l,children:u,body:d,arrowProps:m,hasDoneInitialMeasure:h,popper:y,show:x,...C},w)=>{const R=xn(t,"popover"),A=Yx(),[N]=(r==null?void 0:r.split("-"))||[],_=gk(N,A);let I=l;return x&&!h&&(I={...l,...yk(y==null?void 0:y.strategy)}),v.jsxs("div",{ref:w,role:"tooltip",style:I,"x-placement":N,className:en(i,R,N&&`bs-popover-${_}`),...C,children:[v.jsx("div",{className:"popover-arrow",...m}),d?v.jsx(mk,{children:u}):u]})}),jW=Object.assign(IW,{Header:NW,Body:mk,POPPER_OFFSET:[0,8]}),bk=k.forwardRef(({bsPrefix:t,placement:r="right",className:i,style:l,children:u,arrowProps:d,hasDoneInitialMeasure:m,popper:h,show:y,...x},C)=>{t=xn(t,"tooltip");const w=Yx(),[R]=(r==null?void 0:r.split("-"))||[],A=gk(R,w);let N=l;return y&&!m&&(N={...l,...yk(h==null?void 0:h.strategy)}),v.jsxs("div",{ref:C,style:N,role:"tooltip","x-placement":R,className:en(i,t,`bs-tooltip-${A}`),...x,children:[v.jsx("div",{className:"tooltip-arrow",...d}),v.jsx("div",{className:`${t}-inner`,children:u})]})});bk.displayName="Tooltip";const e0=Object.assign(bk,{TOOLTIP_OFFSET:[0,6]});function AW(t){const r=k.useRef(null),i=xn(void 0,"popover"),l=xn(void 0,"tooltip"),u=k.useMemo(()=>({name:"offset",options:{offset:()=>{if(t)return t;if(r.current){if(Uw(r.current,i))return jW.POPPER_OFFSET;if(Uw(r.current,l))return e0.TOOLTIP_OFFSET}return[0,0]}}}),[t,i,l]);return[r,[u]]}function OW(t,r){const{ref:i}=t,{ref:l}=r;t.ref=i.__wrapped||(i.__wrapped=u=>i(_x(u))),r.ref=l.__wrapped||(l.__wrapped=u=>l(_x(u)))}const xk=k.forwardRef(({children:t,transition:r=Zp,popperConfig:i={},rootClose:l=!1,placement:u="top",show:d=!1,...m},h)=>{const y=k.useRef({}),[x,C]=k.useState(null),[w,R]=AW(m.offset),A=hs(h,w),N=r===!0?Zp:r||void 0,_=br(I=>{C(I),i==null||i.onFirstUpdate==null||i.onFirstUpdate(I)});return Nx(()=>{x&&m.target&&(y.current.scheduleUpdate==null||y.current.scheduleUpdate())},[x,m.target]),k.useEffect(()=>{d||C(null)},[d]),v.jsx(TW,{...m,ref:A,popperConfig:{...i,modifiers:R.concat(i.modifiers||[]),onFirstUpdate:_},transition:N,rootClose:l,placement:u,show:d,children:(I,{arrowProps:M,popper:P,show:V})=>{var U,F;OW(I,M);const z=P==null?void 0:P.placement,X=Object.assign(y.current,{state:P==null?void 0:P.state,scheduleUpdate:P==null?void 0:P.update,placement:z,outOfBoundaries:(P==null||(U=P.state)==null||(F=U.modifiersData.hide)==null?void 0:F.isReferenceHidden)||!1,strategy:i.strategy}),Y=!!x;return typeof t=="function"?t({...I,placement:z,show:V,...!r&&V&&{className:"show"},popper:X,arrowProps:M,hasDoneInitialMeasure:Y}):k.cloneElement(t,{...I,placement:z,arrowProps:M,popper:X,hasDoneInitialMeasure:Y,className:en(t.props.className,!r&&V&&"show"),style:{...t.props.style,...I.style}})}})});xk.displayName="Overlay";const Ck=xk;var DW={};function kW(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function Tj(t,r,i){const[l]=r,u=l.currentTarget,d=l.relatedTarget||l.nativeEvent[i];(!d||d!==u)&&!jm(u,d)&&t(...r)}Ve.oneOf(["click","hover","focus"]);const MW=({trigger:t=["hover","focus"],overlay:r,children:i,popperConfig:l={},show:u,defaultShow:d=!1,onToggle:m,delay:h,placement:y,flip:x=y&&y.indexOf("auto")!==-1,...C})=>{const w=k.useRef(null),R=hs(w,i.ref),A=wW(),N=k.useRef(""),[_,I]=WO(u,d,m),M=kW(h),{onFocus:P,onBlur:V,onClick:U}=typeof i!="function"?k.Children.only(i).props:{},F=xe=>{R(_x(xe))},z=k.useCallback(()=>{if(A.clear(),N.current="show",!M.show){I(!0);return}A.set(()=>{N.current==="show"&&I(!0)},M.show)},[M.show,I,A]),X=k.useCallback(()=>{if(A.clear(),N.current="hide",!M.hide){I(!1);return}A.set(()=>{N.current==="hide"&&I(!1)},M.hide)},[M.hide,I,A]),Y=k.useCallback((...xe)=>{z(),P==null||P(...xe)},[z,P]),ce=k.useCallback((...xe)=>{X(),V==null||V(...xe)},[X,V]),ie=k.useCallback((...xe)=>{I(!_),U==null||U(...xe)},[U,I,_]),me=k.useCallback((...xe)=>{Tj(z,xe,"fromElement")},[z]),ae=k.useCallback((...xe)=>{Tj(X,xe,"toElement")},[X]),we=t==null?[]:[].concat(t),ge={ref:F};return we.indexOf("click")!==-1&&(ge.onClick=ie),we.indexOf("focus")!==-1&&(ge.onFocus=Y,ge.onBlur=ce),we.indexOf("hover")!==-1&&(DW.NODE_ENV!=="production"&&zR(we.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),ge.onMouseOver=me,ge.onMouseOut=ae),v.jsxs(v.Fragment,{children:[typeof i=="function"?i(ge):k.cloneElement(i,ge),v.jsx(Ck,{...C,show:_,onHide:X,flip:x,placement:y,popperConfig:l,target:w.current,children:r})]})},YR=MW;function LW({requestId:t,grantNumber:r}){const{request:i}=ii(t,r),{project:l}=Qi(r||i.grantNumber),{setTab:u}=Qi(r||i.grantNumber);if(!i||!l)return;let d;const m={};for(let R of l.users||[])for(let A of R.resourceIds)m[A]=m[A]||0,m[A]+=1;const h=(i.resources||[]).filter(R=>R.isCredit?(d=R,!1):R.allocated>0).map((R,A)=>({...R,userCount:m[R.resourceId]||0,color:_w[A%_w.length]})),y=d?d.allocated:0,x="Exchange"in i.allowedActions,C=i.exchangeActionId!==null,w=[{key:"name",name:"Resource",format:(R,A)=>v.jsx(Xd,{resource:A})},{key:"isActive",name:"Status",format:R=>v.jsx(eh,{status:R?"Active":"Inactive"})},{key:"used",name:"Balance",class:"position-relative",format:(R,A)=>{if(A.isBoolean)return yR(A.allocated);const N=A.allocated-R,_=Math.max(N,0)*100/A.allocated;return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:`usage bg-${A.color}`,style:{width:`${Math.min(_,100)}%`}}),ga(N,{abbreviate:!0})," of"," ",ga(A.allocated,{abbreviate:!0})," ",A.unit," ","remaining (",Math.round(_),"%)"]})}},{key:"endDate",name:"End Date",format:R=>Hd(R)}];return l.isManager&&w.push({key:"userCount",name:"Users",class:"text-end",format:ga}),l.currentUser&&w.push({key:"resourceUsername",name:"My Username",format:(R,A)=>{const N=l.currentUser.resourceUsernames[A.resourceId];if(N)return N;if(l.currentUser.resourceAccountPendingIds.includes(A.resourceId))return v.jsx(eh,{status:"Pending",title:"Creation of your account by the resource provider is pending."});if(l.currentUser.resourceIds.includes(A.resourceId)||!A.isActive)return v.jsx(v.Fragment,{children:"—"});if(l.isManager)return v.jsx("a",{href:"#",onClick:I=>{I.preventDefault(),u("users")},children:"Grant access"});const _=v.jsxs(e0,{children:["Please contact ",bR(l)," to request access to this resource."]});return v.jsx(YR,{overlay:_,children:v.jsx("a",{href:"#",onClick:I=>{I.preventDefault()},children:"Request access"})})}}),v.jsxs("div",{className:"overview",children:[x&&!C&&y>qt.creditAlertThreshold?v.jsxs("button",{onClick:()=>u("resources"),className:"alert alert-info d-flex justify-content-between align-items-center w-100",children:[v.jsxs("span",{children:[v.jsxs("span",{className:"fs-3",children:[bc(qt.resourceTypeIcons[d.icon])," ",ga(y)]})," ",d.unit," available"]}),v.jsxs("span",{className:"align-middle d-flex align-items-center",children:["Exchange credits for resources!"," ",v.jsx("span",{className:"fs-3",children:bc("chevron-right")})]})]}):null,h.length?v.jsx(su,{columns:w,rows:h}):null]})}const PW=[{key:"role",name:"Role",format:t=>v.jsxs(v.Fragment,{children:[bc(qt.roleIcons[t])," ",t]})},{key:"users",name:"Users",format:t=>{const r=t.slice(0,3);return t.length>4&&(r[2]=`${ga(t.length-3)} others`),r.map((i,l)=>{const u=r.length-l;return`${i}${u>2?",":u==2&&r.length>1?" and":""}`}).join(" ")}}],FW=({requestId:t,grantNumber:r})=>{const{project:i}=Qi(r);if(!i)return;const l=Xx.map(({role:u,name:d})=>({role:d,users:(i.users||[]).filter(m=>m.role===u).map(m=>`${m.firstName} ${m.lastName}`)})).filter(u=>u.users.length>0);return l.length?v.jsx(su,{rows:l,columns:PW}):null};function VW({requestId:t,grantNumber:r}){const{request:i}=ii(t,r),{project:l,username:u}=Qi(r||i.grantNumber);if(!(!i||!l||i.error||l.error)&&i)return v.jsxs("div",{className:"overview",children:[v.jsx(LW,{requestId:t,grantNumber:r}),l.isManager?v.jsxs("div",{className:"row",children:[v.jsx("div",{className:"col-lg-6",children:v.jsx(FW,{requestId:t,grantNumber:r})}),v.jsx("div",{className:"col-lg-6",children:v.jsx(hW,{requestId:t})})]}):null]})}function Kd(t){"@babel/helpers - typeof";return Kd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Kd(t)}function BW(t,r){if(Kd(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var l=i.call(t,r||"default");if(Kd(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Sk(t){var r=BW(t,"string");return Kd(r)=="symbol"?r:String(r)}function Up(t,r,i){return r=Sk(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function Nj(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),i.push.apply(i,l)}return i}function bt(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Nj(Object(i),!0).forEach(function(l){Up(t,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Nj(Object(i)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(i,l))})}return t}function $W(t){if(Array.isArray(t))return t}function zW(t,r){var i=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var l,u,d,m,h=[],y=!0,x=!1;try{if(d=(i=i.call(t)).next,r===0){if(Object(i)!==i)return;y=!1}else for(;!(y=(l=d.call(i)).done)&&(h.push(l.value),h.length!==r);y=!0);}catch(C){x=!0,u=C}finally{try{if(!y&&i.return!=null&&(m=i.return(),Object(m)!==m))return}finally{if(x)throw u}}return h}}function Gw(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,l=new Array(r);i<r;i++)l[i]=t[i];return l}function Ek(t,r){if(t){if(typeof t=="string")return Gw(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Gw(t,r)}}function UW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
296
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function na(t,r){return $W(t)||zW(t,r)||Ek(t,r)||UW()}function il(t,r){if(t==null)return{};var i=NR(t,r),l,u;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(u=0;u<d.length;u++)l=d[u],!(r.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(t,l)&&(i[l]=t[l])}return i}var HW=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function wk(t){var r=t.defaultInputValue,i=r===void 0?"":r,l=t.defaultMenuIsOpen,u=l===void 0?!1:l,d=t.defaultValue,m=d===void 0?null:d,h=t.inputValue,y=t.menuIsOpen,x=t.onChange,C=t.onInputChange,w=t.onMenuClose,R=t.onMenuOpen,A=t.value,N=il(t,HW),_=k.useState(h!==void 0?h:i),I=na(_,2),M=I[0],P=I[1],V=k.useState(y!==void 0?y:u),U=na(V,2),F=U[0],z=U[1],X=k.useState(A!==void 0?A:m),Y=na(X,2),ce=Y[0],ie=Y[1],me=k.useCallback(function(re,De){typeof x=="function"&&x(re,De),ie(re)},[x]),ae=k.useCallback(function(re,De){var G;typeof C=="function"&&(G=C(re,De)),P(G!==void 0?G:re)},[C]),we=k.useCallback(function(){typeof R=="function"&&R(),z(!0)},[R]),ge=k.useCallback(function(){typeof w=="function"&&w(),z(!1)},[w]),xe=h!==void 0?h:M,je=y!==void 0?y:F,Le=A!==void 0?A:ce;return bt(bt({},N),{},{inputValue:xe,menuIsOpen:je,onChange:me,onInputChange:ae,onMenuClose:ge,onMenuOpen:we,value:Le})}function GW(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Ij(t,r){for(var i=0;i<r.length;i++){var l=r[i];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,Sk(l.key),l)}}function WW(t,r,i){return r&&Ij(t.prototype,r),i&&Ij(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function XW(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&wx(t,r)}function Ax(t){return Ax=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ax(t)}function Rk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rk=function(){return!!t})()}function YW(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ZW(t,r){if(r&&(Kd(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YW(t)}function qW(t){var r=Rk();return function(){var l=Ax(t),u;if(r){var d=Ax(this).constructor;u=Reflect.construct(l,arguments,d)}else u=l.apply(this,arguments);return ZW(this,u)}}function JW(t){if(Array.isArray(t))return Gw(t)}function QW(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function KW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
297
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZR(t){return JW(t)||QW(t)||Ek(t)||KW()}var Xb={};function e5(t){if(t.sheet)return t.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===t)return document.styleSheets[r]}function t5(t){var r=document.createElement("style");return r.setAttribute("data-emotion",t.key),t.nonce!==void 0&&r.setAttribute("nonce",t.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var n5=function(){function t(i){var l=this;this._insertTag=function(u){var d;l.tags.length===0?l.insertionPoint?d=l.insertionPoint.nextSibling:l.prepend?d=l.container.firstChild:d=l.before:d=l.tags[l.tags.length-1].nextSibling,l.container.insertBefore(u,d),l.tags.push(u)},this.isSpeedy=i.speedy===void 0?Xb.NODE_ENV==="production":i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var r=t.prototype;return r.hydrate=function(l){l.forEach(this._insertTag)},r.insert=function(l){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(t5(this));var u=this.tags[this.tags.length-1];if(Xb.NODE_ENV!=="production"){var d=l.charCodeAt(0)===64&&l.charCodeAt(1)===105;d&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
298
- `+l+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!d}if(this.isSpeedy){var m=e5(u);try{m.insertRule(l,m.cssRules.length)}catch(h){Xb.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(l)&&console.error('There was a problem inserting the following rule: "'+l+'"',h)}}else u.appendChild(document.createTextNode(l));this.ctr++},r.flush=function(){this.tags.forEach(function(l){return l.parentNode&&l.parentNode.removeChild(l)}),this.tags=[],this.ctr=0,Xb.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),$a="-ms-",Ox="-moz-",yn="-webkit-",qR="comm",JR="rule",QR="decl",r5="@import",_k="@keyframes",a5="@layer",i5=Math.abs,t0=String.fromCharCode,o5=Object.assign;function s5(t,r){return ma(t,0)^45?(((r<<2^ma(t,0))<<2^ma(t,1))<<2^ma(t,2))<<2^ma(t,3):0}function Tk(t){return t.trim()}function l5(t,r){return(t=r.exec(t))?t[0]:t}function bn(t,r,i){return t.replace(r,i)}function Ww(t,r){return t.indexOf(r)}function ma(t,r){return t.charCodeAt(r)|0}function Am(t,r,i){return t.slice(r,i)}function tl(t){return t.length}function KR(t){return t.length}function Yb(t,r){return r.push(t),t}function u5(t,r){return t.map(r).join("")}var n0=1,th=1,Nk=0,Mi=0,Mr=0,uh="";function r0(t,r,i,l,u,d,m){return{value:t,root:r,parent:i,type:l,props:u,children:d,line:n0,column:th,length:m,return:""}}function hm(t,r){return o5(r0("",null,null,"",null,null,0),t,{length:-t.length},r)}function c5(){return Mr}function d5(){return Mr=Mi>0?ma(uh,--Mi):0,th--,Mr===10&&(th=1,n0--),Mr}function Zi(){return Mr=Mi<Nk?ma(uh,Mi++):0,th++,Mr===10&&(th=1,n0++),Mr}function al(){return ma(uh,Mi)}function lx(){return Mi}function Um(t,r){return Am(uh,t,r)}function Om(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ik(t){return n0=th=1,Nk=tl(uh=t),Mi=0,[]}function jk(t){return uh="",t}function ux(t){return Tk(Um(Mi-1,Xw(t===91?t+2:t===40?t+1:t)))}function f5(t){for(;(Mr=al())&&Mr<33;)Zi();return Om(t)>2||Om(Mr)>3?"":" "}function p5(t,r){for(;--r&&Zi()&&!(Mr<48||Mr>102||Mr>57&&Mr<65||Mr>70&&Mr<97););return Um(t,lx()+(r<6&&al()==32&&Zi()==32))}function Xw(t){for(;Zi();)switch(Mr){case t:return Mi;case 34:case 39:t!==34&&t!==39&&Xw(Mr);break;case 40:t===41&&Xw(t);break;case 92:Zi();break}return Mi}function h5(t,r){for(;Zi()&&t+Mr!==57;)if(t+Mr===84&&al()===47)break;return"/*"+Um(r,Mi-1)+"*"+t0(t===47?t:Zi())}function v5(t){for(;!Om(al());)Zi();return Um(t,Mi)}function m5(t){return jk(cx("",null,null,null,[""],t=Ik(t),0,[0],t))}function cx(t,r,i,l,u,d,m,h,y){for(var x=0,C=0,w=m,R=0,A=0,N=0,_=1,I=1,M=1,P=0,V="",U=u,F=d,z=l,X=V;I;)switch(N=P,P=Zi()){case 40:if(N!=108&&ma(X,w-1)==58){Ww(X+=bn(ux(P),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:X+=ux(P);break;case 9:case 10:case 13:case 32:X+=f5(N);break;case 92:X+=p5(lx()-1,7);continue;case 47:switch(al()){case 42:case 47:Yb(g5(h5(Zi(),lx()),r,i),y);break;default:X+="/"}break;case 123*_:h[x++]=tl(X)*M;case 125*_:case 59:case 0:switch(P){case 0:case 125:I=0;case 59+C:M==-1&&(X=bn(X,/\f/g,"")),A>0&&tl(X)-w&&Yb(A>32?Aj(X+";",l,i,w-1):Aj(bn(X," ","")+";",l,i,w-2),y);break;case 59:X+=";";default:if(Yb(z=jj(X,r,i,x,C,u,h,V,U=[],F=[],w),d),P===123)if(C===0)cx(X,r,z,z,U,d,w,h,F);else switch(R===99&&ma(X,3)===110?100:R){case 100:case 108:case 109:case 115:cx(t,z,z,l&&Yb(jj(t,z,z,0,0,u,h,V,u,U=[],w),F),u,F,w,h,l?U:F);break;default:cx(X,z,z,z,[""],F,0,h,F)}}x=C=A=0,_=M=1,V=X="",w=m;break;case 58:w=1+tl(X),A=N;default:if(_<1){if(P==123)--_;else if(P==125&&_++==0&&d5()==125)continue}switch(X+=t0(P),P*_){case 38:M=C>0?1:(X+="\f",-1);break;case 44:h[x++]=(tl(X)-1)*M,M=1;break;case 64:al()===45&&(X+=ux(Zi())),R=al(),C=w=tl(V=X+=v5(lx())),P++;break;case 45:N===45&&tl(X)==2&&(_=0)}}return d}function jj(t,r,i,l,u,d,m,h,y,x,C){for(var w=u-1,R=u===0?d:[""],A=KR(R),N=0,_=0,I=0;N<l;++N)for(var M=0,P=Am(t,w+1,w=i5(_=m[N])),V=t;M<A;++M)(V=Tk(_>0?R[M]+" "+P:bn(P,/&\f/g,R[M])))&&(y[I++]=V);return r0(t,r,i,u===0?JR:h,y,x,C)}function g5(t,r,i){return r0(t,r,i,qR,t0(c5()),Am(t,2,-2),0)}function Aj(t,r,i,l){return r0(t,r,i,QR,Am(t,0,l),Am(t,l+1,-1),l)}function Gp(t,r){for(var i="",l=KR(t),u=0;u<l;u++)i+=r(t[u],u,t,r)||"";return i}function y5(t,r,i,l){switch(t.type){case a5:if(t.children.length)break;case r5:case QR:return t.return=t.return||t.value;case qR:return"";case _k:return t.return=t.value+"{"+Gp(t.children,l)+"}";case JR:t.value=t.props.join(",")}return tl(i=Gp(t.children,l))?t.return=t.value+"{"+i+"}":""}function b5(t){var r=KR(t);return function(i,l,u,d){for(var m="",h=0;h<r;h++)m+=t[h](i,l,u,d)||"";return m}}function x5(t){return function(r){r.root||(r=r.return)&&t(r)}}function C5(t){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=t(i)),r[i]}}var vm={},S5=function(r,i,l){for(var u=0,d=0;u=d,d=al(),u===38&&d===12&&(i[l]=1),!Om(d);)Zi();return Um(r,Mi)},E5=function(r,i){var l=-1,u=44;do switch(Om(u)){case 0:u===38&&al()===12&&(i[l]=1),r[l]+=S5(Mi-1,i,l);break;case 2:r[l]+=ux(u);break;case 4:if(u===44){r[++l]=al()===58?"&\f":"",i[l]=r[l].length;break}default:r[l]+=t0(u)}while(u=Zi());return r},w5=function(r,i){return jk(E5(Ik(r),i))},Oj=new WeakMap,R5=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var i=r.value,l=r.parent,u=r.column===l.column&&r.line===l.line;l.type!=="rule";)if(l=l.parent,!l)return;if(!(r.props.length===1&&i.charCodeAt(0)!==58&&!Oj.get(l))&&!u){Oj.set(r,!0);for(var d=[],m=w5(i,d),h=l.props,y=0,x=0;y<m.length;y++)for(var C=0;C<h.length;C++,x++)r.props[x]=d[y]?m[y].replace(/&\f/g,h[C]):h[C]+" "+m[y]}}},_5=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}},T5="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",N5=function(r){return r.type==="comm"&&r.children.indexOf(T5)>-1},I5=function(r){return function(i,l,u){if(!(i.type!=="rule"||r.compat)){var d=i.value.match(/(:first|:nth|:nth-last)-child/g);if(d){for(var m=!!i.parent,h=m?i.parent.children:u,y=h.length-1;y>=0;y--){var x=h[y];if(x.line<i.line)break;if(x.column<i.column){if(N5(x))return;break}}d.forEach(function(C){console.error('The pseudo class "'+C+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+C.split("-child")[0]+'-of-type".')})}}}},Ak=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},j5=function(r,i){for(var l=r-1;l>=0;l--)if(!Ak(i[l]))return!0;return!1},Dj=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},A5=function(r,i,l){Ak(r)&&(r.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Dj(r)):j5(i,l)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Dj(r)))};function Ok(t,r){switch(s5(t,r)){case 5103:return yn+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return yn+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return yn+t+Ox+t+$a+t+t;case 6828:case 4268:return yn+t+$a+t+t;case 6165:return yn+t+$a+"flex-"+t+t;case 5187:return yn+t+bn(t,/(\w+).+(:[^]+)/,yn+"box-$1$2"+$a+"flex-$1$2")+t;case 5443:return yn+t+$a+"flex-item-"+bn(t,/flex-|-self/,"")+t;case 4675:return yn+t+$a+"flex-line-pack"+bn(t,/align-content|flex-|-self/,"")+t;case 5548:return yn+t+$a+bn(t,"shrink","negative")+t;case 5292:return yn+t+$a+bn(t,"basis","preferred-size")+t;case 6060:return yn+"box-"+bn(t,"-grow","")+yn+t+$a+bn(t,"grow","positive")+t;case 4554:return yn+bn(t,/([^-])(transform)/g,"$1"+yn+"$2")+t;case 6187:return bn(bn(bn(t,/(zoom-|grab)/,yn+"$1"),/(image-set)/,yn+"$1"),t,"")+t;case 5495:case 3959:return bn(t,/(image-set\([^]*)/,yn+"$1$`$1");case 4968:return bn(bn(t,/(.+:)(flex-)?(.*)/,yn+"box-pack:$3"+$a+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yn+t+t;case 4095:case 3583:case 4068:case 2532:return bn(t,/(.+)-inline(.+)/,yn+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tl(t)-1-r>6)switch(ma(t,r+1)){case 109:if(ma(t,r+4)!==45)break;case 102:return bn(t,/(.+:)(.+)-([^]+)/,"$1"+yn+"$2-$3$1"+Ox+(ma(t,r+3)==108?"$3":"$2-$3"))+t;case 115:return~Ww(t,"stretch")?Ok(bn(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(ma(t,r+1)!==115)break;case 6444:switch(ma(t,tl(t)-3-(~Ww(t,"!important")&&10))){case 107:return bn(t,":",":"+yn)+t;case 101:return bn(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yn+(ma(t,14)===45?"inline-":"")+"box$3$1"+yn+"$2$3$1"+$a+"$2box$3")+t}break;case 5936:switch(ma(t,r+11)){case 114:return yn+t+$a+bn(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return yn+t+$a+bn(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return yn+t+$a+bn(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return yn+t+$a+t+t}return t}var O5=function(r,i,l,u){if(r.length>-1&&!r.return)switch(r.type){case QR:r.return=Ok(r.value,r.length);break;case _k:return Gp([hm(r,{value:bn(r.value,"@","@"+yn)})],u);case JR:if(r.length)return u5(r.props,function(d){switch(l5(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Gp([hm(r,{props:[bn(d,/:(read-\w+)/,":"+Ox+"$1")]})],u);case"::placeholder":return Gp([hm(r,{props:[bn(d,/:(plac\w+)/,":"+yn+"input-$1")]}),hm(r,{props:[bn(d,/:(plac\w+)/,":"+Ox+"$1")]}),hm(r,{props:[bn(d,/:(plac\w+)/,$a+"input-$1")]})],u)}return""})}},D5=[O5],k5=function(r){var i=r.key;if(vm.NODE_ENV!=="production"&&!i)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
299
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(i==="css"){var l=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(l,function(_){var I=_.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var u=r.stylisPlugins||D5;if(vm.NODE_ENV!=="production"&&/[^a-z-]/.test(i))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+i+'" was passed');var d={},m,h=[];m=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(_){for(var I=_.getAttribute("data-emotion").split(" "),M=1;M<I.length;M++)d[I[M]]=!0;h.push(_)});var y,x=[R5,_5];vm.NODE_ENV!=="production"&&x.push(I5({get compat(){return N.compat}}),A5);{var C,w=[y5,vm.NODE_ENV!=="production"?function(_){_.root||(_.return?C.insert(_.return):_.value&&_.type!==qR&&C.insert(_.value+"{}"))}:x5(function(_){C.insert(_)})],R=b5(x.concat(u,w)),A=function(I){return Gp(m5(I),R)};y=function(I,M,P,V){C=P,vm.NODE_ENV!=="production"&&M.map!==void 0&&(C={insert:function(F){P.insert(F+M.map)}}),A(I?I+"{"+M.styles+"}":M.styles),V&&(N.inserted[M.name]=!0)}}var N={key:i,sheet:new n5({key:i,container:m,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:d,registered:{},insert:y};return N.sheet.hydrate(h),N},Dk=CR(),M5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},L5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kk={};kk[Dk.ForwardRef]=M5;kk[Dk.Memo]=L5;var P5=!0;function Mk(t,r,i){var l="";return i.split(" ").forEach(function(u){t[u]!==void 0?r.push(t[u]+";"):l+=u+" "}),l}var e_=function(r,i,l){var u=r.key+"-"+i.name;(l===!1||P5===!1)&&r.registered[u]===void 0&&(r.registered[u]=i.styles)},t_=function(r,i,l){e_(r,i,l);var u=r.key+"-"+i.name;if(r.inserted[i.name]===void 0){var d=i;do r.insert(i===d?"."+u:"",d,r.sheet,!0),d=d.next;while(d!==void 0)}};function F5(t){for(var r=0,i,l=0,u=t.length;u>=4;++l,u-=4)i=t.charCodeAt(l)&255|(t.charCodeAt(++l)&255)<<8|(t.charCodeAt(++l)&255)<<16|(t.charCodeAt(++l)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,r=(i&65535)*1540483477+((i>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(t.charCodeAt(l+2)&255)<<16;case 2:r^=(t.charCodeAt(l+1)&255)<<8;case 1:r^=t.charCodeAt(l)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var V5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_o={},kj=`You have illegal escape sequence in your template literal, most likely inside content's property value.
300
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
301
- You can read more about this here:
302
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,B5="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",$5=/[A-Z]|^ms/g,Lk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,n_=function(r){return r.charCodeAt(1)===45},Mj=function(r){return r!=null&&typeof r!="boolean"},aw=C5(function(t){return n_(t)?t:t.replace($5,"-$&").toLowerCase()}),Dx=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(Lk,function(l,u,d){return cs={name:u,styles:d,next:cs},u})}return V5[r]!==1&&!n_(r)&&typeof i=="number"&&i!==0?i+"px":i};if(_o.NODE_ENV!=="production"){var z5=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,U5=["normal","none","initial","inherit","unset"],H5=Dx,G5=/^-ms-/,W5=/-(.)/g,Lj={};Dx=function(r,i){if(r==="content"&&(typeof i!="string"||U5.indexOf(i)===-1&&!z5.test(i)&&(i.charAt(0)!==i.charAt(i.length-1)||i.charAt(0)!=='"'&&i.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+i+"\"'`");var l=H5(r,i);return l!==""&&!n_(r)&&r.indexOf("-")!==-1&&Lj[r]===void 0&&(Lj[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(G5,"ms-").replace(W5,function(u,d){return d.toUpperCase()})+"?")),l}}var Pk="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Dm(t,r,i){if(i==null)return"";if(i.__emotion_styles!==void 0){if(_o.NODE_ENV!=="production"&&i.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Pk);return i}switch(typeof i){case"boolean":return"";case"object":{if(i.anim===1)return cs={name:i.name,styles:i.styles,next:cs},i.name;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)cs={name:l.name,styles:l.styles,next:cs},l=l.next;var u=i.styles+";";return _o.NODE_ENV!=="production"&&i.map!==void 0&&(u+=i.map),u}return X5(t,r,i)}case"function":{if(t!==void 0){var d=cs,m=i(t);return cs=d,Dm(t,r,m)}else _o.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(_o.NODE_ENV!=="production"){var h=[],y=i.replace(Lk,function(C,w,R){var A="animation"+h.length;return h.push("const "+A+" = keyframes`"+R.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+A+"}"});h.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(h,["`"+y+"`"]).join(`
303
- `)+`
304
-
305
- You should wrap it with \`css\` like this:
306
-
307
- `+("css`"+y+"`"))}break}if(r==null)return i;var x=r[i];return x!==void 0?x:i}function X5(t,r,i){var l="";if(Array.isArray(i))for(var u=0;u<i.length;u++)l+=Dm(t,r,i[u])+";";else for(var d in i){var m=i[d];if(typeof m!="object")r!=null&&r[m]!==void 0?l+=d+"{"+r[m]+"}":Mj(m)&&(l+=aw(d)+":"+Dx(d,m)+";");else{if(d==="NO_COMPONENT_SELECTOR"&&_o.NODE_ENV!=="production")throw new Error(Pk);if(Array.isArray(m)&&typeof m[0]=="string"&&(r==null||r[m[0]]===void 0))for(var h=0;h<m.length;h++)Mj(m[h])&&(l+=aw(d)+":"+Dx(d,m[h])+";");else{var y=Dm(t,r,m);switch(d){case"animation":case"animationName":{l+=aw(d)+":"+y+";";break}default:_o.NODE_ENV!=="production"&&d==="undefined"&&console.error(B5),l+=d+"{"+y+"}"}}}}return l}var Pj=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Fk;_o.NODE_ENV!=="production"&&(Fk=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var cs,km=function(r,i,l){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var u=!0,d="";cs=void 0;var m=r[0];m==null||m.raw===void 0?(u=!1,d+=Dm(l,i,m)):(_o.NODE_ENV!=="production"&&m[0]===void 0&&console.error(kj),d+=m[0]);for(var h=1;h<r.length;h++)d+=Dm(l,i,r[h]),u&&(_o.NODE_ENV!=="production"&&m[h]===void 0&&console.error(kj),d+=m[h]);var y;_o.NODE_ENV!=="production"&&(d=d.replace(Fk,function(R){return y=R,""})),Pj.lastIndex=0;for(var x="",C;(C=Pj.exec(d))!==null;)x+="-"+C[1];var w=F5(d)+x;return _o.NODE_ENV!=="production"?{name:w,styles:d,map:y,next:cs,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:w,styles:d,next:cs}},Y5=function(r){return r()},Vk=gx.useInsertionEffect?gx.useInsertionEffect:!1,Bk=Vk||Y5,Fj=Vk||k.useLayoutEffect,ef={},r_={}.hasOwnProperty,a_=k.createContext(typeof HTMLElement<"u"?k5({key:"css"}):null);ef.NODE_ENV!=="production"&&(a_.displayName="EmotionCacheContext");a_.Provider;var i_=function(r){return k.forwardRef(function(i,l){var u=k.useContext(a_);return r(i,u,l)})},a0=k.createContext({});ef.NODE_ENV!=="production"&&(a0.displayName="EmotionThemeContext");var Vj=function(r){var i=r.split(".");return i[i.length-1]},Z5=function(r){var i=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(r);if(i||(i=/^([A-Za-z0-9$.]+)@/.exec(r),i))return Vj(i[1])},q5=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),J5=function(r){return r.replace(/\$/g,"-")},Q5=function(r){if(r)for(var i=r.split(`
308
- `),l=0;l<i.length;l++){var u=Z5(i[l]);if(u){if(q5.has(u))break;if(/^[A-Z]/.test(u))return J5(u)}}},Yw="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zw="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",K5=function(r,i){if(ef.NODE_ENV!=="production"&&typeof i.css=="string"&&i.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+i.css+"`");var l={};for(var u in i)r_.call(i,u)&&(l[u]=i[u]);if(l[Yw]=r,ef.NODE_ENV!=="production"&&i.css&&(typeof i.css!="object"||typeof i.css.name!="string"||i.css.name.indexOf("-")===-1)){var d=Q5(new Error().stack);d&&(l[Zw]=d)}return l},eX=function(r){var i=r.cache,l=r.serialized,u=r.isStringTag;return e_(i,l,u),Bk(function(){return t_(i,l,u)}),null},$k=i_(function(t,r,i){var l=t.css;typeof l=="string"&&r.registered[l]!==void 0&&(l=r.registered[l]);var u=t[Yw],d=[l],m="";typeof t.className=="string"?m=Mk(r.registered,d,t.className):t.className!=null&&(m=t.className+" ");var h=km(d,void 0,k.useContext(a0));if(ef.NODE_ENV!=="production"&&h.name.indexOf("-")===-1){var y=t[Zw];y&&(h=km([h,"label:"+y+";"]))}m+=r.key+"-"+h.name;var x={};for(var C in t)r_.call(t,C)&&C!=="css"&&C!==Yw&&(ef.NODE_ENV==="production"||C!==Zw)&&(x[C]=t[C]);return x.ref=i,x.className=m,k.createElement(k.Fragment,null,k.createElement(eX,{cache:r,serialized:h,isStringTag:typeof u=="string"}),k.createElement(u,x))});ef.NODE_ENV!=="production"&&($k.displayName="EmotionCssPropInternal");var tX=$k,tf={},nX={name:"@emotion/react",version:"11.11.3",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},Rt=function(r,i){var l=arguments;if(i==null||!r_.call(i,"css"))return k.createElement.apply(void 0,l);var u=l.length,d=new Array(u);d[0]=tX,d[1]=K5(r,i);for(var m=2;m<u;m++)d[m]=l[m];return k.createElement.apply(null,d)},Bj=!1,rX=i_(function(t,r){tf.NODE_ENV!=="production"&&!Bj&&(t.className||t.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Bj=!0);var i=t.styles,l=km([i],void 0,k.useContext(a0)),u=k.useRef();return Fj(function(){var d=r.key+"-global",m=new r.sheet.constructor({key:d,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),h=!1,y=document.querySelector('style[data-emotion="'+d+" "+l.name+'"]');return r.sheet.tags.length&&(m.before=r.sheet.tags[0]),y!==null&&(h=!0,y.setAttribute("data-emotion",d),m.hydrate([y])),u.current=[m,h],function(){m.flush()}},[r]),Fj(function(){var d=u.current,m=d[0],h=d[1];if(h){d[1]=!1;return}if(l.next!==void 0&&t_(r,l.next,!0),m.tags.length){var y=m.tags[m.tags.length-1].nextElementSibling;m.before=y,m.flush()}r.insert("",l,m,!1)},[r,l.name]),null});tf.NODE_ENV!=="production"&&(rX.displayName="EmotionGlobal");function o_(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return km(r)}var aX=function(){var r=o_.apply(void 0,arguments),i="animation-"+r.name;return{name:i,styles:"@keyframes "+i+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},iX=function t(r){for(var i=r.length,l=0,u="";l<i;l++){var d=r[l];if(d!=null){var m=void 0;switch(typeof d){case"boolean":break;case"object":{if(Array.isArray(d))m=t(d);else{tf.NODE_ENV!=="production"&&d.styles!==void 0&&d.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),m="";for(var h in d)d[h]&&h&&(m&&(m+=" "),m+=h)}break}default:m=d}m&&(u&&(u+=" "),u+=m)}}return u};function oX(t,r,i){var l=[],u=Mk(t,l,i);return l.length<2?i:u+r(l)}var sX=function(r){var i=r.cache,l=r.serializedArr;return Bk(function(){for(var u=0;u<l.length;u++)t_(i,l[u],!1)}),null},lX=i_(function(t,r){var i=!1,l=[],u=function(){if(i&&tf.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var x=arguments.length,C=new Array(x),w=0;w<x;w++)C[w]=arguments[w];var R=km(C,r.registered);return l.push(R),e_(r,R,!1),r.key+"-"+R.name},d=function(){if(i&&tf.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var x=arguments.length,C=new Array(x),w=0;w<x;w++)C[w]=arguments[w];return oX(r.registered,u,iX(C))},m={css:u,cx:d,theme:k.useContext(a0)},h=t.children(m);return i=!0,k.createElement(k.Fragment,null,k.createElement(sX,{cache:r,serializedArr:l}),h)});tf.NODE_ENV!=="production"&&(lX.displayName="EmotionClassNames");if(tf.NODE_ENV!=="production"){var $j=!0,uX=typeof jest<"u"||typeof vi<"u";if($j&&!uX){var zj=typeof globalThis<"u"?globalThis:$j?window:global,Uj="__EMOTION_REACT_"+nX.version.split(".")[0]+"__";zj[Uj]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),zj[Uj]=!0}}function cX(t,r){return r||(r=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(r)}}))}const dX=Math.min,fX=Math.max,kx=Math.round,Zb=Math.floor,Mx=t=>({x:t,y:t});function pX(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function zk(t){return Hk(t)?(t.nodeName||"").toLowerCase():"#document"}function fs(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Uk(t){var r;return(r=(Hk(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Hk(t){return t instanceof Node||t instanceof fs(t).Node}function qw(t){return t instanceof Element||t instanceof fs(t).Element}function s_(t){return t instanceof HTMLElement||t instanceof fs(t).HTMLElement}function Hj(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof fs(t).ShadowRoot}function Gk(t){const{overflow:r,overflowX:i,overflowY:l,display:u}=l_(t);return/auto|scroll|overlay|hidden|clip/.test(r+l+i)&&!["inline","contents"].includes(u)}function hX(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vX(t){return["html","body","#document"].includes(zk(t))}function l_(t){return fs(t).getComputedStyle(t)}function mX(t){if(zk(t)==="html")return t;const r=t.assignedSlot||t.parentNode||Hj(t)&&t.host||Uk(t);return Hj(r)?r.host:r}function Wk(t){const r=mX(t);return vX(r)?t.ownerDocument?t.ownerDocument.body:t.body:s_(r)&&Gk(r)?r:Wk(r)}function Lx(t,r,i){var l;r===void 0&&(r=[]),i===void 0&&(i=!0);const u=Wk(t),d=u===((l=t.ownerDocument)==null?void 0:l.body),m=fs(u);return d?r.concat(m,m.visualViewport||[],Gk(u)?u:[],m.frameElement&&i?Lx(m.frameElement):[]):r.concat(u,Lx(u,[],i))}function gX(t){const r=l_(t);let i=parseFloat(r.width)||0,l=parseFloat(r.height)||0;const u=s_(t),d=u?t.offsetWidth:i,m=u?t.offsetHeight:l,h=kx(i)!==d||kx(l)!==m;return h&&(i=d,l=m),{width:i,height:l,$:h}}function u_(t){return qw(t)?t:t.contextElement}function iw(t){const r=u_(t);if(!s_(r))return Mx(1);const i=r.getBoundingClientRect(),{width:l,height:u,$:d}=gX(r);let m=(d?kx(i.width):i.width)/l,h=(d?kx(i.height):i.height)/u;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const yX=Mx(0);function bX(t){const r=fs(t);return!hX()||!r.visualViewport?yX:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function xX(t,r,i){return r===void 0&&(r=!1),!i||r&&i!==fs(t)?!1:r}function Gj(t,r,i,l){r===void 0&&(r=!1),i===void 0&&(i=!1);const u=t.getBoundingClientRect(),d=u_(t);let m=Mx(1);r&&(l?qw(l)&&(m=iw(l)):m=iw(t));const h=xX(d,i,l)?bX(d):Mx(0);let y=(u.left+h.x)/m.x,x=(u.top+h.y)/m.y,C=u.width/m.x,w=u.height/m.y;if(d){const R=fs(d),A=l&&qw(l)?fs(l):l;let N=R.frameElement;for(;N&&l&&A!==R;){const _=iw(N),I=N.getBoundingClientRect(),M=l_(N),P=I.left+(N.clientLeft+parseFloat(M.paddingLeft))*_.x,V=I.top+(N.clientTop+parseFloat(M.paddingTop))*_.y;y*=_.x,x*=_.y,C*=_.x,w*=_.y,y+=P,x+=V,N=fs(N).frameElement}}return pX({width:C,height:w,x:y,y:x})}function CX(t,r){let i=null,l;const u=Uk(t);function d(){var h;clearTimeout(l),(h=i)==null||h.disconnect(),i=null}function m(h,y){h===void 0&&(h=!1),y===void 0&&(y=1),d();const{left:x,top:C,width:w,height:R}=t.getBoundingClientRect();if(h||r(),!w||!R)return;const A=Zb(C),N=Zb(u.clientWidth-(x+w)),_=Zb(u.clientHeight-(C+R)),I=Zb(x),P={rootMargin:-A+"px "+-N+"px "+-_+"px "+-I+"px",threshold:fX(0,dX(1,y))||1};let V=!0;function U(F){const z=F[0].intersectionRatio;if(z!==y){if(!V)return m();z?m(!1,z):l=setTimeout(()=>{m(!1,1e-7)},100)}V=!1}try{i=new IntersectionObserver(U,{...P,root:u.ownerDocument})}catch{i=new IntersectionObserver(U,P)}i.observe(t)}return m(!0),d}function SX(t,r,i,l){l===void 0&&(l={});const{ancestorScroll:u=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:y=!1}=l,x=u_(t),C=u||d?[...x?Lx(x):[],...Lx(r)]:[];C.forEach(M=>{u&&M.addEventListener("scroll",i,{passive:!0}),d&&M.addEventListener("resize",i)});const w=x&&h?CX(x,i):null;let R=-1,A=null;m&&(A=new ResizeObserver(M=>{let[P]=M;P&&P.target===x&&A&&(A.unobserve(r),cancelAnimationFrame(R),R=requestAnimationFrame(()=>{var V;(V=A)==null||V.observe(r)})),i()}),x&&!y&&A.observe(x),A.observe(r));let N,_=y?Gj(t):null;y&&I();function I(){const M=Gj(t);_&&(M.x!==_.x||M.y!==_.y||M.width!==_.width||M.height!==_.height)&&i(),_=M,N=requestAnimationFrame(I)}return i(),()=>{var M;C.forEach(P=>{u&&P.removeEventListener("scroll",i),d&&P.removeEventListener("resize",i)}),w==null||w(),(M=A)==null||M.disconnect(),A=null,y&&cancelAnimationFrame(N)}}var Jw=k.useLayoutEffect,Qw={},EX=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Px=function(){};function wX(t,r){return r?r[0]==="-"?t+r:t+"__"+r:t}function RX(t,r){for(var i=arguments.length,l=new Array(i>2?i-2:0),u=2;u<i;u++)l[u-2]=arguments[u];var d=[].concat(l);if(r&&t)for(var m in r)r.hasOwnProperty(m)&&r[m]&&d.push("".concat(wX(t,m)));return d.filter(function(h){return h}).map(function(h){return String(h).trim()}).join(" ")}var Wj=function(r){return MX(r)?r.filter(Boolean):Kd(r)==="object"&&r!==null?[r]:[]},Xk=function(r){r.className,r.clearValue,r.cx,r.getStyles,r.getClassNames,r.getValue,r.hasValue,r.isMulti,r.isRtl,r.options,r.selectOption,r.selectProps,r.setValue,r.theme;var i=il(r,EX);return bt({},i)},xr=function(r,i,l){var u=r.cx,d=r.getStyles,m=r.getClassNames,h=r.className;return{css:d(i,r),className:u(l??{},m(i,r),h)}};function _X(t,r,i){if(i){var l=i(t,r);if(typeof l=="string")return l}return t}function i0(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function TX(t){return i0(t)?window.innerHeight:t.clientHeight}function Yk(t){return i0(t)?window.pageYOffset:t.scrollTop}function Fx(t,r){if(i0(t)){window.scrollTo(0,r);return}t.scrollTop=r}function NX(t){var r=getComputedStyle(t),i=r.position==="absolute",l=/(auto|scroll)/;if(r.position==="fixed")return document.documentElement;for(var u=t;u=u.parentElement;)if(r=getComputedStyle(u),!(i&&r.position==="static")&&l.test(r.overflow+r.overflowY+r.overflowX))return u;return document.documentElement}function IX(t,r,i,l){return i*((t=t/l-1)*t*t+1)+r}function qb(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Px,u=Yk(t),d=r-u,m=10,h=0;function y(){h+=m;var x=IX(h,u,d,i);Fx(t,x),h<i?window.requestAnimationFrame(y):l(t)}y()}function Xj(t,r){var i=t.getBoundingClientRect(),l=r.getBoundingClientRect(),u=r.offsetHeight/3;l.bottom+u>i.bottom?Fx(t,Math.min(r.offsetTop+r.clientHeight-t.offsetHeight+u,t.scrollHeight)):l.top-u<i.top&&Fx(t,Math.max(r.offsetTop-u,0))}function jX(t){var r=t.getBoundingClientRect();return{bottom:r.bottom,height:r.height,left:r.left,right:r.right,top:r.top,width:r.width}}function Yj(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function AX(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Zk=!1,OX={get passive(){return Zk=!0}},Jb=typeof window<"u"?window:{};Jb.addEventListener&&Jb.removeEventListener&&(Jb.addEventListener("p",Px,OX),Jb.removeEventListener("p",Px,!1));var DX=Zk;function kX(t){return t!=null}function MX(t){return Array.isArray(t)}function Qb(t,r,i){return t?r:i}var LX=function(r){for(var i=arguments.length,l=new Array(i>1?i-1:0),u=1;u<i;u++)l[u-1]=arguments[u];var d=Object.entries(r).filter(function(m){var h=na(m,1),y=h[0];return!l.includes(y)});return d.reduce(function(m,h){var y=na(h,2),x=y[0],C=y[1];return m[x]=C,m},{})},PX=["children","innerProps"],FX=["children","innerProps"];function VX(t){var r=t.maxHeight,i=t.menuEl,l=t.minHeight,u=t.placement,d=t.shouldScroll,m=t.isFixedPosition,h=t.controlHeight,y=NX(i),x={placement:"bottom",maxHeight:r};if(!i||!i.offsetParent)return x;var C=y.getBoundingClientRect(),w=C.height,R=i.getBoundingClientRect(),A=R.bottom,N=R.height,_=R.top,I=i.offsetParent.getBoundingClientRect(),M=I.top,P=m?window.innerHeight:TX(y),V=Yk(y),U=parseInt(getComputedStyle(i).marginBottom,10),F=parseInt(getComputedStyle(i).marginTop,10),z=M-F,X=P-_,Y=z+V,ce=w-V-_,ie=A-P+V+U,me=V+_-F,ae=160;switch(u){case"auto":case"bottom":if(X>=N)return{placement:"bottom",maxHeight:r};if(ce>=N&&!m)return d&&qb(y,ie,ae),{placement:"bottom",maxHeight:r};if(!m&&ce>=l||m&&X>=l){d&&qb(y,ie,ae);var we=m?X-U:ce-U;return{placement:"bottom",maxHeight:we}}if(u==="auto"||m){var ge=r,xe=m?z:Y;return xe>=l&&(ge=Math.min(xe-U-h,r)),{placement:"top",maxHeight:ge}}if(u==="bottom")return d&&Fx(y,ie),{placement:"bottom",maxHeight:r};break;case"top":if(z>=N)return{placement:"top",maxHeight:r};if(Y>=N&&!m)return d&&qb(y,me,ae),{placement:"top",maxHeight:r};if(!m&&Y>=l||m&&z>=l){var je=r;return(!m&&Y>=l||m&&z>=l)&&(je=m?z-F:Y-F),d&&qb(y,me,ae),{placement:"top",maxHeight:je}}return{placement:"bottom",maxHeight:r};default:throw new Error('Invalid placement provided "'.concat(u,'".'))}return x}function BX(t){var r={bottom:"top",top:"bottom"};return t?r[t]:"bottom"}var qk=function(r){return r==="auto"?"bottom":r},$X=function(r,i){var l,u=r.placement,d=r.theme,m=d.borderRadius,h=d.spacing,y=d.colors;return bt((l={label:"menu"},Up(l,BX(u),"100%"),Up(l,"position","absolute"),Up(l,"width","100%"),Up(l,"zIndex",1),l),i?{}:{backgroundColor:y.neutral0,borderRadius:m,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:h.menuGutter,marginTop:h.menuGutter})},Jk=k.createContext(null),zX=function(r){var i=r.children,l=r.minMenuHeight,u=r.maxMenuHeight,d=r.menuPlacement,m=r.menuPosition,h=r.menuShouldScrollIntoView,y=r.theme,x=k.useContext(Jk)||{},C=x.setPortalPlacement,w=k.useRef(null),R=k.useState(u),A=na(R,2),N=A[0],_=A[1],I=k.useState(null),M=na(I,2),P=M[0],V=M[1],U=y.spacing.controlHeight;return Jw(function(){var F=w.current;if(F){var z=m==="fixed",X=h&&!z,Y=VX({maxHeight:u,menuEl:F,minHeight:l,placement:d,shouldScroll:X,isFixedPosition:z,controlHeight:U});_(Y.maxHeight),V(Y.placement),C==null||C(Y.placement)}},[u,d,m,h,l,C,U]),i({ref:w,placerProps:bt(bt({},r),{},{placement:P||qk(d),maxHeight:N})})},UX=function(r){var i=r.children,l=r.innerRef,u=r.innerProps;return Rt("div",Tt({},xr(r,"menu",{menu:!0}),{ref:l},u),i)},HX=UX,GX=function(r,i){var l=r.maxHeight,u=r.theme.spacing.baseUnit;return bt({maxHeight:l,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},i?{}:{paddingBottom:u,paddingTop:u})},WX=function(r){var i=r.children,l=r.innerProps,u=r.innerRef,d=r.isMulti;return Rt("div",Tt({},xr(r,"menuList",{"menu-list":!0,"menu-list--is-multi":d}),{ref:u},l),i)},Qk=function(r,i){var l=r.theme,u=l.spacing.baseUnit,d=l.colors;return bt({textAlign:"center"},i?{}:{color:d.neutral40,padding:"".concat(u*2,"px ").concat(u*3,"px")})},XX=Qk,YX=Qk,ZX=function(r){var i=r.children,l=i===void 0?"No options":i,u=r.innerProps,d=il(r,PX);return Rt("div",Tt({},xr(bt(bt({},d),{},{children:l,innerProps:u}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),u),l)},qX=function(r){var i=r.children,l=i===void 0?"Loading...":i,u=r.innerProps,d=il(r,FX);return Rt("div",Tt({},xr(bt(bt({},d),{},{children:l,innerProps:u}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),u),l)},JX=function(r){var i=r.rect,l=r.offset,u=r.position;return{left:i.left,position:u,top:l,width:i.width,zIndex:1}},QX=function(r){var i=r.appendTo,l=r.children,u=r.controlElement,d=r.innerProps,m=r.menuPlacement,h=r.menuPosition,y=k.useRef(null),x=k.useRef(null),C=k.useState(qk(m)),w=na(C,2),R=w[0],A=w[1],N=k.useMemo(function(){return{setPortalPlacement:A}},[]),_=k.useState(null),I=na(_,2),M=I[0],P=I[1],V=k.useCallback(function(){if(u){var X=jX(u),Y=h==="fixed"?0:window.pageYOffset,ce=X[R]+Y;(ce!==(M==null?void 0:M.offset)||X.left!==(M==null?void 0:M.rect.left)||X.width!==(M==null?void 0:M.rect.width))&&P({offset:ce,rect:X})}},[u,h,R,M==null?void 0:M.offset,M==null?void 0:M.rect.left,M==null?void 0:M.rect.width]);Jw(function(){V()},[V]);var U=k.useCallback(function(){typeof x.current=="function"&&(x.current(),x.current=null),u&&y.current&&(x.current=SX(u,y.current,V,{elementResize:"ResizeObserver"in window}))},[u,V]);Jw(function(){U()},[U]);var F=k.useCallback(function(X){y.current=X,U()},[U]);if(!i&&h!=="fixed"||!M)return null;var z=Rt("div",Tt({ref:F},xr(bt(bt({},r),{},{offset:M.offset,position:h,rect:M.rect}),"menuPortal",{"menu-portal":!0}),d),l);return Rt(Jk.Provider,{value:N},i?sR.createPortal(z,i):z)},KX=function(r){var i=r.isDisabled,l=r.isRtl;return{label:"container",direction:l?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},eY=function(r){var i=r.children,l=r.innerProps,u=r.isDisabled,d=r.isRtl;return Rt("div",Tt({},xr(r,"container",{"--is-disabled":u,"--is-rtl":d}),l),i)},tY=function(r,i){var l=r.theme.spacing,u=r.isMulti,d=r.hasValue,m=r.selectProps.controlShouldRenderValue;return bt({alignItems:"center",display:u&&d&&m?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},i?{}:{padding:"".concat(l.baseUnit/2,"px ").concat(l.baseUnit*2,"px")})},nY=function(r){var i=r.children,l=r.innerProps,u=r.isMulti,d=r.hasValue;return Rt("div",Tt({},xr(r,"valueContainer",{"value-container":!0,"value-container--is-multi":u,"value-container--has-value":d}),l),i)},rY=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},aY=function(r){var i=r.children,l=r.innerProps;return Rt("div",Tt({},xr(r,"indicatorsContainer",{indicators:!0}),l),i)},Zj,iY=["size"],oY=["innerProps","isRtl","size"];function sY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var lY=Qw.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:sY},Kk=function(r){var i=r.size,l=il(r,iY);return Rt("svg",Tt({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:lY},l))},c_=function(r){return Rt(Kk,Tt({size:20},r),Rt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},eM=function(r){return Rt(Kk,Tt({size:20},r),Rt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},tM=function(r,i){var l=r.isFocused,u=r.theme,d=u.spacing.baseUnit,m=u.colors;return bt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},i?{}:{color:l?m.neutral60:m.neutral20,padding:d*2,":hover":{color:l?m.neutral80:m.neutral40}})},uY=tM,cY=function(r){var i=r.children,l=r.innerProps;return Rt("div",Tt({},xr(r,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),l),i||Rt(eM,null))},dY=tM,fY=function(r){var i=r.children,l=r.innerProps;return Rt("div",Tt({},xr(r,"clearIndicator",{indicator:!0,"clear-indicator":!0}),l),i||Rt(c_,null))},pY=function(r,i){var l=r.isDisabled,u=r.theme,d=u.spacing.baseUnit,m=u.colors;return bt({label:"indicatorSeparator",alignSelf:"stretch",width:1},i?{}:{backgroundColor:l?m.neutral10:m.neutral20,marginBottom:d*2,marginTop:d*2})},hY=function(r){var i=r.innerProps;return Rt("span",Tt({},i,xr(r,"indicatorSeparator",{"indicator-separator":!0})))},vY=aX(Zj||(Zj=cX([`
67
+ */var ze=typeof Symbol=="function"&&Symbol.for,hp=ze?Symbol.for("react.element"):60103,mp=ze?Symbol.for("react.portal"):60106,ql=ze?Symbol.for("react.fragment"):60107,Hl=ze?Symbol.for("react.strict_mode"):60108,Wl=ze?Symbol.for("react.profiler"):60114,Kl=ze?Symbol.for("react.provider"):60109,Gl=ze?Symbol.for("react.context"):60110,gp=ze?Symbol.for("react.async_mode"):60111,Yl=ze?Symbol.for("react.concurrent_mode"):60111,Ql=ze?Symbol.for("react.forward_ref"):60112,Xl=ze?Symbol.for("react.suspense"):60113,FT=ze?Symbol.for("react.suspense_list"):60120,Zl=ze?Symbol.for("react.memo"):60115,Jl=ze?Symbol.for("react.lazy"):60116,UT=ze?Symbol.for("react.block"):60121,VT=ze?Symbol.for("react.fundamental"):60117,BT=ze?Symbol.for("react.responder"):60118,zT=ze?Symbol.for("react.scope"):60119;function kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hp:switch(e=e.type,e){case gp:case Yl:case ql:case Wl:case Hl:case Xl:return e;default:switch(e=e&&e.$$typeof,e){case Gl:case Ql:case Jl:case Zl:case Kl:return e;default:return t}}case mp:return t}}}function Db(e){return kt(e)===Yl}me.AsyncMode=gp;me.ConcurrentMode=Yl;me.ContextConsumer=Gl;me.ContextProvider=Kl;me.Element=hp;me.ForwardRef=Ql;me.Fragment=ql;me.Lazy=Jl;me.Memo=Zl;me.Portal=mp;me.Profiler=Wl;me.StrictMode=Hl;me.Suspense=Xl;me.isAsyncMode=function(e){return Db(e)||kt(e)===gp};me.isConcurrentMode=Db;me.isContextConsumer=function(e){return kt(e)===Gl};me.isContextProvider=function(e){return kt(e)===Kl};me.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hp};me.isForwardRef=function(e){return kt(e)===Ql};me.isFragment=function(e){return kt(e)===ql};me.isLazy=function(e){return kt(e)===Jl};me.isMemo=function(e){return kt(e)===Zl};me.isPortal=function(e){return kt(e)===mp};me.isProfiler=function(e){return kt(e)===Wl};me.isStrictMode=function(e){return kt(e)===Hl};me.isSuspense=function(e){return kt(e)===Xl};me.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ql||e===Yl||e===Wl||e===Hl||e===Xl||e===FT||typeof e=="object"&&e!==null&&(e.$$typeof===Jl||e.$$typeof===Zl||e.$$typeof===Kl||e.$$typeof===Gl||e.$$typeof===Ql||e.$$typeof===VT||e.$$typeof===BT||e.$$typeof===zT||e.$$typeof===UT)};me.typeOf=kt;Mb.exports=me;var qT=Mb.exports,Lb=qT,HT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},WT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fb={};Fb[Lb.ForwardRef]=HT;Fb[Lb.Memo]=WT;var KT=!0;function GT(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var Ub=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||KT===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},YT=function(t,n,r){Ub(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function QT(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var XT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ZT=/[A-Z]|^ms/g,JT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vb=function(t){return t.charCodeAt(1)===45},Gm=function(t){return t!=null&&typeof t!="boolean"},zc=OT(function(e){return Vb(e)?e:e.replace(ZT,"-$&").toLowerCase()}),Ym=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(JT,function(r,o,s){return an={name:o,styles:s,next:an},o})}return XT[t]!==1&&!Vb(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ys(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return an={name:n.name,styles:n.styles,next:an},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)an={name:r.name,styles:r.styles,next:an},r=r.next;var o=n.styles+";";return o}return eP(e,t,n)}case"function":{if(e!==void 0){var s=an,i=n(e);return an=s,Ys(e,t,i)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function eP(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ys(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=s+"{"+t[i]+"}":Gm(i)&&(r+=zc(s)+":"+Ym(s,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)Gm(i[l])&&(r+=zc(s)+":"+Ym(s,i[l])+";");else{var c=Ys(e,t,i);switch(s){case"animation":case"animationName":{r+=zc(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var Qm=/label:\s*([^\s;\n{]+)\s*(;|$)/g,an,Bb=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,s="";an=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,s+=Ys(r,n,i)):s+=i[0];for(var l=1;l<t.length;l++)s+=Ys(r,n,t[l]),o&&(s+=i[l]);Qm.lastIndex=0;for(var c="",u;(u=Qm.exec(s))!==null;)c+="-"+u[1];var d=QT(s)+c;return{name:d,styles:s,next:an}},tP=function(t){return t()},nP=ma.useInsertionEffect?ma.useInsertionEffect:!1,rP=nP||tP,vp={}.hasOwnProperty,zb=w.createContext(typeof HTMLElement<"u"?LT({key:"css"}):null);zb.Provider;var oP=function(t){return w.forwardRef(function(n,r){var o=w.useContext(zb);return t(n,o,r)})},sP=w.createContext({}),bd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",iP=function(t,n){var r={};for(var o in n)vp.call(n,o)&&(r[o]=n[o]);return r[bd]=t,r},aP=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ub(n,r,o),rP(function(){return YT(n,r,o)}),null},lP=oP(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[bd],s=[r],i="";typeof e.className=="string"?i=GT(t.registered,s,e.className):e.className!=null&&(i=e.className+" ");var l=Bb(s,void 0,w.useContext(sP));i+=t.key+"-"+l.name;var c={};for(var u in e)vp.call(e,u)&&u!=="css"&&u!==bd&&(c[u]=e[u]);return c.ref=n,c.className=i,w.createElement(w.Fragment,null,w.createElement(aP,{cache:t,serialized:l,isStringTag:typeof o=="string"}),w.createElement(o,c))}),cP=lP,K=function(t,n){var r=arguments;if(n==null||!vp.call(n,"css"))return w.createElement.apply(void 0,r);var o=r.length,s=new Array(o);s[0]=cP,s[1]=iP(t,n);for(var i=2;i<o;i++)s[i]=r[i];return w.createElement.apply(null,s)};function yp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Bb(t)}var uP=function(){var t=yp.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function dP(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const fP=Math.min,pP=Math.max,sl=Math.round,Li=Math.floor,il=e=>({x:e,y:e});function hP(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function qb(e){return Wb(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hb(e){var t;return(t=(Wb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Wb(e){return e instanceof Node||e instanceof Xt(e).Node}function wd(e){return e instanceof Element||e instanceof Xt(e).Element}function xp(e){return e instanceof HTMLElement||e instanceof Xt(e).HTMLElement}function Xm(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}function Kb(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=bp(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function mP(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gP(e){return["html","body","#document"].includes(qb(e))}function bp(e){return Xt(e).getComputedStyle(e)}function vP(e){if(qb(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xm(e)&&e.host||Hb(e);return Xm(t)?t.host:t}function Gb(e){const t=vP(e);return gP(t)?e.ownerDocument?e.ownerDocument.body:e.body:xp(t)&&Kb(t)?t:Gb(t)}function al(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Gb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Xt(o);return s?t.concat(i,i.visualViewport||[],Kb(o)?o:[],i.frameElement&&n?al(i.frameElement):[]):t.concat(o,al(o,[],n))}function yP(e){const t=bp(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xp(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=sl(n)!==s||sl(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function wp(e){return wd(e)?e:e.contextElement}function qc(e){const t=wp(e);if(!xp(t))return il(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=yP(t);let i=(s?sl(n.width):n.width)/r,l=(s?sl(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const xP=il(0);function bP(e){const t=Xt(e);return!mP()||!t.visualViewport?xP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xt(e)?!1:t}function Zm(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=wp(e);let i=il(1);t&&(r?wd(r)&&(i=qc(r)):i=qc(e));const l=wP(s,n,r)?bP(s):il(0);let c=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const p=Xt(s),y=r&&wd(r)?Xt(r):r;let m=p.frameElement;for(;m&&r&&y!==p;){const h=qc(m),x=m.getBoundingClientRect(),g=bp(m),v=x.left+(m.clientLeft+parseFloat(g.paddingLeft))*h.x,b=x.top+(m.clientTop+parseFloat(g.paddingTop))*h.y;c*=h.x,u*=h.y,d*=h.x,f*=h.y,c+=v,u+=b,m=Xt(m).frameElement}}return hP({width:d,height:f,x:c,y:u})}function SP(e,t){let n=null,r;const o=Hb(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;const y=Li(d),m=Li(o.clientWidth-(u+f)),h=Li(o.clientHeight-(d+p)),x=Li(u),v={rootMargin:-y+"px "+-m+"px "+-h+"px "+-x+"px",threshold:pP(0,fP(1,c))||1};let b=!0;function S(_){const C=_[0].intersectionRatio;if(C!==c){if(!b)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return i(!0),s}function _P(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=wp(e),d=o||s?[...u?al(u):[],...al(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const f=u&&l?SP(u,n):null;let p=-1,y=null;i&&(y=new ResizeObserver(g=>{let[v]=g;v&&v.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=y)==null||b.observe(t)})),n()}),u&&!c&&y.observe(u),y.observe(t));let m,h=c?Zm(e):null;c&&x();function x(){const g=Zm(e);h&&(g.x!==h.x||g.y!==h.y||g.width!==h.width||g.height!==h.height)&&n(),h=g,m=requestAnimationFrame(x)}return n(),()=>{var g;d.forEach(v=>{o&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),f==null||f(),(g=y)==null||g.disconnect(),y=null,c&&cancelAnimationFrame(m)}}var Sd=w.useLayoutEffect,CP=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ll=function(){};function jP(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function EP(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&s.push("".concat(jP(e,i)));return s.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var Jm=function(t){return MP(t)?t.filter(Boolean):Lr(t)==="object"&&t!==null?[t]:[]},Yb=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=mn(t,CP);return H({},n)},Oe=function(t,n,r){var o=t.cx,s=t.getStyles,i=t.getClassNames,l=t.className;return{css:s(n,t),className:o(r??{},i(n,t),l)}};function RP(e,t,n){if(n){var r=n(e,t);if(typeof r=="string")return r}return e}function ec(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function NP(e){return ec(e)?window.innerHeight:e.clientHeight}function Qb(e){return ec(e)?window.pageYOffset:e.scrollTop}function cl(e,t){if(ec(e)){window.scrollTo(0,t);return}e.scrollTop=t}function kP(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function OP(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Fi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ll,o=Qb(e),s=t-o,i=10,l=0;function c(){l+=i;var u=OP(l,o,s,n);cl(e,u),l<n?window.requestAnimationFrame(c):r(e)}c()}function eg(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?cl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&cl(e,Math.max(t.offsetTop-o,0))}function TP(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function tg(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function PP(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Xb=!1,IP={get passive(){return Xb=!0}},Ui=typeof window<"u"?window:{};Ui.addEventListener&&Ui.removeEventListener&&(Ui.addEventListener("p",ll,IP),Ui.removeEventListener("p",ll,!1));var $P=Xb;function AP(e){return e!=null}function MP(e){return Array.isArray(e)}function Vi(e,t,n){return e?t:n}var DP=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=Object.entries(t).filter(function(i){var l=Ue(i,1),c=l[0];return!r.includes(c)});return s.reduce(function(i,l){var c=Ue(l,2),u=c[0],d=c[1];return i[u]=d,i},{})},LP=["children","innerProps"],FP=["children","innerProps"];function UP(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,s=e.shouldScroll,i=e.isFixedPosition,l=e.controlHeight,c=kP(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var d=c.getBoundingClientRect(),f=d.height,p=n.getBoundingClientRect(),y=p.bottom,m=p.height,h=p.top,x=n.offsetParent.getBoundingClientRect(),g=x.top,v=i?window.innerHeight:NP(c),b=Qb(c),S=parseInt(getComputedStyle(n).marginBottom,10),_=parseInt(getComputedStyle(n).marginTop,10),C=g-_,j=v-h,E=C+b,N=f-b-h,R=y-v+b+S,O=b+h-_,k=160;switch(o){case"auto":case"bottom":if(j>=m)return{placement:"bottom",maxHeight:t};if(N>=m&&!i)return s&&Fi(c,R,k),{placement:"bottom",maxHeight:t};if(!i&&N>=r||i&&j>=r){s&&Fi(c,R,k);var P=i?j-S:N-S;return{placement:"bottom",maxHeight:P}}if(o==="auto"||i){var D=t,L=i?C:E;return L>=r&&(D=Math.min(L-S-l,t)),{placement:"top",maxHeight:D}}if(o==="bottom")return s&&cl(c,R),{placement:"bottom",maxHeight:t};break;case"top":if(C>=m)return{placement:"top",maxHeight:t};if(E>=m&&!i)return s&&Fi(c,O,k),{placement:"top",maxHeight:t};if(!i&&E>=r||i&&C>=r){var V=t;return(!i&&E>=r||i&&C>=r)&&(V=i?C-_:E-_),s&&Fi(c,O,k),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}function VP(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Zb=function(t){return t==="auto"?"bottom":t},BP=function(t,n){var r,o=t.placement,s=t.theme,i=s.borderRadius,l=s.spacing,c=s.colors;return H((r={label:"menu"},io(r,VP(o),"100%"),io(r,"position","absolute"),io(r,"width","100%"),io(r,"zIndex",1),r),n?{}:{backgroundColor:c.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},Jb=w.createContext(null),zP=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,s=t.menuPlacement,i=t.menuPosition,l=t.menuShouldScrollIntoView,c=t.theme,u=w.useContext(Jb)||{},d=u.setPortalPlacement,f=w.useRef(null),p=w.useState(o),y=Ue(p,2),m=y[0],h=y[1],x=w.useState(null),g=Ue(x,2),v=g[0],b=g[1],S=c.spacing.controlHeight;return Sd(function(){var _=f.current;if(_){var C=i==="fixed",j=l&&!C,E=UP({maxHeight:o,menuEl:_,minHeight:r,placement:s,shouldScroll:j,isFixedPosition:C,controlHeight:S});h(E.maxHeight),b(E.placement),d==null||d(E.placement)}},[o,s,i,l,r,d,S]),n({ref:f,placerProps:H(H({},t),{},{placement:v||Zb(s),maxHeight:m})})},qP=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return K("div",G({},Oe(t,"menu",{menu:!0}),{ref:r},o),n)},HP=qP,WP=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return H({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},KP=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,s=t.isMulti;return K("div",G({},Oe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:o},r),n)},ew=function(t,n){var r=t.theme,o=r.spacing.baseUnit,s=r.colors;return H({textAlign:"center"},n?{}:{color:s.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},GP=ew,YP=ew,QP=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,s=mn(t,LP);return K("div",G({},Oe(H(H({},s),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},XP=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,s=mn(t,FP);return K("div",G({},Oe(H(H({},s),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},ZP=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},JP=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,s=t.innerProps,i=t.menuPlacement,l=t.menuPosition,c=w.useRef(null),u=w.useRef(null),d=w.useState(Zb(i)),f=Ue(d,2),p=f[0],y=f[1],m=w.useMemo(function(){return{setPortalPlacement:y}},[]),h=w.useState(null),x=Ue(h,2),g=x[0],v=x[1],b=w.useCallback(function(){if(o){var j=TP(o),E=l==="fixed"?0:window.pageYOffset,N=j[p]+E;(N!==(g==null?void 0:g.offset)||j.left!==(g==null?void 0:g.rect.left)||j.width!==(g==null?void 0:g.rect.width))&&v({offset:N,rect:j})}},[o,l,p,g==null?void 0:g.offset,g==null?void 0:g.rect.left,g==null?void 0:g.rect.width]);Sd(function(){b()},[b]);var S=w.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),o&&c.current&&(u.current=_P(o,c.current,b,{elementResize:"ResizeObserver"in window}))},[o,b]);Sd(function(){S()},[S]);var _=w.useCallback(function(j){c.current=j,S()},[S]);if(!n&&l!=="fixed"||!g)return null;var C=K("div",G({ref:_},Oe(H(H({},t),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),s),r);return K(Jb.Provider,{value:m},n?Ef.createPortal(C,n):C)},eI=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},tI=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,s=t.isRtl;return K("div",G({},Oe(t,"container",{"--is-disabled":o,"--is-rtl":s}),r),n)},nI=function(t,n){var r=t.theme.spacing,o=t.isMulti,s=t.hasValue,i=t.selectProps.controlShouldRenderValue;return H({alignItems:"center",display:o&&s&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},rI=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,s=t.hasValue;return K("div",G({},Oe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":s}),r),n)},oI=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},sI=function(t){var n=t.children,r=t.innerProps;return K("div",G({},Oe(t,"indicatorsContainer",{indicators:!0}),r),n)},ng,iI=["size"],aI=["innerProps","isRtl","size"],lI={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},tw=function(t){var n=t.size,r=mn(t,iI);return K("svg",G({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:lI},r))},Sp=function(t){return K(tw,G({size:20},t),K("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},nw=function(t){return K(tw,G({size:20},t),K("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},rw=function(t,n){var r=t.isFocused,o=t.theme,s=o.spacing.baseUnit,i=o.colors;return H({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?i.neutral60:i.neutral20,padding:s*2,":hover":{color:r?i.neutral80:i.neutral40}})},cI=rw,uI=function(t){var n=t.children,r=t.innerProps;return K("div",G({},Oe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||K(nw,null))},dI=rw,fI=function(t){var n=t.children,r=t.innerProps;return K("div",G({},Oe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||K(Sp,null))},pI=function(t,n){var r=t.isDisabled,o=t.theme,s=o.spacing.baseUnit,i=o.colors;return H({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?i.neutral10:i.neutral20,marginBottom:s*2,marginTop:s*2})},hI=function(t){var n=t.innerProps;return K("span",G({},n,Oe(t,"indicatorSeparator",{"indicator-separator":!0})))},mI=uP(ng||(ng=dP([`
309
68
  0%, 80%, 100% { opacity: 0; }
310
69
  40% { opacity: 1; }
311
- `]))),mY=function(r,i){var l=r.isFocused,u=r.size,d=r.theme,m=d.colors,h=d.spacing.baseUnit;return bt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:u,lineHeight:1,marginRight:u,textAlign:"center",verticalAlign:"middle"},i?{}:{color:l?m.neutral60:m.neutral20,padding:h*2})},ow=function(r){var i=r.delay,l=r.offset;return Rt("span",{css:o_({animation:"".concat(vY," 1s ease-in-out ").concat(i,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:l?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},Qw.NODE_ENV==="production"?"":";label:LoadingDot;",Qw.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},gY=function(r){var i=r.innerProps,l=r.isRtl,u=r.size,d=u===void 0?4:u,m=il(r,oY);return Rt("div",Tt({},xr(bt(bt({},m),{},{innerProps:i,isRtl:l,size:d}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),Rt(ow,{delay:0,offset:l}),Rt(ow,{delay:160,offset:!0}),Rt(ow,{delay:320,offset:!l}))},yY=function(r,i){var l=r.isDisabled,u=r.isFocused,d=r.theme,m=d.colors,h=d.borderRadius,y=d.spacing;return bt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:y.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},i?{}:{backgroundColor:l?m.neutral5:m.neutral0,borderColor:l?m.neutral10:u?m.primary:m.neutral20,borderRadius:h,borderStyle:"solid",borderWidth:1,boxShadow:u?"0 0 0 1px ".concat(m.primary):void 0,"&:hover":{borderColor:u?m.primary:m.neutral30}})},bY=function(r){var i=r.children,l=r.isDisabled,u=r.isFocused,d=r.innerRef,m=r.innerProps,h=r.menuIsOpen;return Rt("div",Tt({ref:d},xr(r,"control",{control:!0,"control--is-disabled":l,"control--is-focused":u,"control--menu-is-open":h}),m,{"aria-disabled":l||void 0}),i)},xY=bY,CY=["data"],SY=function(r,i){var l=r.theme.spacing;return i?{}:{paddingBottom:l.baseUnit*2,paddingTop:l.baseUnit*2}},EY=function(r){var i=r.children,l=r.cx,u=r.getStyles,d=r.getClassNames,m=r.Heading,h=r.headingProps,y=r.innerProps,x=r.label,C=r.theme,w=r.selectProps;return Rt("div",Tt({},xr(r,"group",{group:!0}),y),Rt(m,Tt({},h,{selectProps:w,theme:C,getStyles:u,getClassNames:d,cx:l}),x),Rt("div",null,i))},wY=function(r,i){var l=r.theme,u=l.colors,d=l.spacing;return bt({label:"group",cursor:"default",display:"block"},i?{}:{color:u.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:d.baseUnit*3,paddingRight:d.baseUnit*3,textTransform:"uppercase"})},RY=function(r){var i=Xk(r);i.data;var l=il(i,CY);return Rt("div",Tt({},xr(r,"groupHeading",{"group-heading":!0}),l))},_Y=EY,TY=["innerRef","isDisabled","isHidden","inputClassName"],NY=function(r,i){var l=r.isDisabled,u=r.value,d=r.theme,m=d.spacing,h=d.colors;return bt(bt({visibility:l?"hidden":"visible",transform:u?"translateZ(0)":""},IY),i?{}:{margin:m.baseUnit/2,paddingBottom:m.baseUnit/2,paddingTop:m.baseUnit/2,color:h.neutral80})},nM={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},IY={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":bt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},nM)},jY=function(r){return bt({label:"input",color:"inherit",background:0,opacity:r?0:1,width:"100%"},nM)},AY=function(r){var i=r.cx,l=r.value,u=Xk(r),d=u.innerRef,m=u.isDisabled,h=u.isHidden,y=u.inputClassName,x=il(u,TY);return Rt("div",Tt({},xr(r,"input",{"input-container":!0}),{"data-value":l||""}),Rt("input",Tt({className:i({input:!0},y),ref:d,style:jY(h),disabled:m},x)))},OY=AY,DY=function(r,i){var l=r.theme,u=l.spacing,d=l.borderRadius,m=l.colors;return bt({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:m.neutral10,borderRadius:d/2,margin:u.baseUnit/2})},kY=function(r,i){var l=r.theme,u=l.borderRadius,d=l.colors,m=r.cropWithEllipsis;return bt({overflow:"hidden",textOverflow:m||m===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:u/2,color:d.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},MY=function(r,i){var l=r.theme,u=l.spacing,d=l.borderRadius,m=l.colors,h=r.isFocused;return bt({alignItems:"center",display:"flex"},i?{}:{borderRadius:d/2,backgroundColor:h?m.dangerLight:void 0,paddingLeft:u.baseUnit,paddingRight:u.baseUnit,":hover":{backgroundColor:m.dangerLight,color:m.danger}})},rM=function(r){var i=r.children,l=r.innerProps;return Rt("div",l,i)},LY=rM,PY=rM;function FY(t){var r=t.children,i=t.innerProps;return Rt("div",Tt({role:"button"},i),r||Rt(c_,{size:14}))}var VY=function(r){var i=r.children,l=r.components,u=r.data,d=r.innerProps,m=r.isDisabled,h=r.removeProps,y=r.selectProps,x=l.Container,C=l.Label,w=l.Remove;return Rt(x,{data:u,innerProps:bt(bt({},xr(r,"multiValue",{"multi-value":!0,"multi-value--is-disabled":m})),d),selectProps:y},Rt(C,{data:u,innerProps:bt({},xr(r,"multiValueLabel",{"multi-value__label":!0})),selectProps:y},i),Rt(w,{data:u,innerProps:bt(bt({},xr(r,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},h),selectProps:y}))},BY=VY,$Y=function(r,i){var l=r.isDisabled,u=r.isFocused,d=r.isSelected,m=r.theme,h=m.spacing,y=m.colors;return bt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},i?{}:{backgroundColor:d?y.primary:u?y.primary25:"transparent",color:l?y.neutral20:d?y.neutral0:"inherit",padding:"".concat(h.baseUnit*2,"px ").concat(h.baseUnit*3,"px"),":active":{backgroundColor:l?void 0:d?y.primary:y.primary50}})},zY=function(r){var i=r.children,l=r.isDisabled,u=r.isFocused,d=r.isSelected,m=r.innerRef,h=r.innerProps;return Rt("div",Tt({},xr(r,"option",{option:!0,"option--is-disabled":l,"option--is-focused":u,"option--is-selected":d}),{ref:m,"aria-disabled":l},h),i)},UY=zY,HY=function(r,i){var l=r.theme,u=l.spacing,d=l.colors;return bt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:d.neutral50,marginLeft:u.baseUnit/2,marginRight:u.baseUnit/2})},GY=function(r){var i=r.children,l=r.innerProps;return Rt("div",Tt({},xr(r,"placeholder",{placeholder:!0}),l),i)},WY=GY,XY=function(r,i){var l=r.isDisabled,u=r.theme,d=u.spacing,m=u.colors;return bt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i?{}:{color:l?m.neutral40:m.neutral80,marginLeft:d.baseUnit/2,marginRight:d.baseUnit/2})},YY=function(r){var i=r.children,l=r.isDisabled,u=r.innerProps;return Rt("div",Tt({},xr(r,"singleValue",{"single-value":!0,"single-value--is-disabled":l}),u),i)},ZY=YY,qY={ClearIndicator:fY,Control:xY,DropdownIndicator:cY,DownChevron:eM,CrossIcon:c_,Group:_Y,GroupHeading:RY,IndicatorsContainer:aY,IndicatorSeparator:hY,Input:OY,LoadingIndicator:gY,Menu:HX,MenuList:WX,MenuPortal:QX,LoadingMessage:qX,NoOptionsMessage:ZX,MultiValue:BY,MultiValueContainer:LY,MultiValueLabel:PY,MultiValueRemove:FY,Option:UY,Placeholder:WY,SelectContainer:eY,SingleValue:ZY,ValueContainer:nY},JY=function(r){return bt(bt({},qY),r.components)},qj=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function QY(t,r){return!!(t===r||qj(t)&&qj(r))}function KY(t,r){if(t.length!==r.length)return!1;for(var i=0;i<t.length;i++)if(!QY(t[i],r[i]))return!1;return!0}function eZ(t,r){r===void 0&&(r=KY);var i=null;function l(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];if(i&&i.lastThis===this&&r(u,i.lastArgs))return i.lastResult;var m=t.apply(this,u);return i={lastResult:m,lastArgs:u,lastThis:this},m}return l.clear=function(){i=null},l}var Mm={};function tZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var nZ=Mm.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:tZ},rZ=function(r){return Rt("span",Tt({css:nZ},r))},Jj=rZ,aZ={guidance:function(r){var i=r.isSearchable,l=r.isMulti,u=r.tabSelectsValue,d=r.context,m=r.isInitialFocus;switch(d){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(u?", press Tab to select the option and exit the menu":"",".");case"input":return m?"".concat(r["aria-label"]||"Select"," is focused ").concat(i?",type to refine list":"",", press Down to open the menu, ").concat(l?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(r){var i=r.action,l=r.label,u=l===void 0?"":l,d=r.labels,m=r.isDisabled;switch(i){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(u,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(d.length>1?"s":""," ").concat(d.join(","),", selected.");case"select-option":return m?"option ".concat(u," is disabled. Select another option."):"option ".concat(u,", selected.");default:return""}},onFocus:function(r){var i=r.context,l=r.focused,u=r.options,d=r.label,m=d===void 0?"":d,h=r.selectValue,y=r.isDisabled,x=r.isSelected,C=r.isAppleDevice,w=function(_,I){return _&&_.length?"".concat(_.indexOf(I)+1," of ").concat(_.length):""};if(i==="value"&&h)return"value ".concat(m," focused, ").concat(w(h,l),".");if(i==="menu"&&C){var R=y?" disabled":"",A="".concat(x?" selected":"").concat(R);return"".concat(m).concat(A,", ").concat(w(u,l),".")}return""},onFilter:function(r){var i=r.inputValue,l=r.resultsMessage;return"".concat(l).concat(i?" for search term "+i:"",".")}},iZ=function(r){var i=r.ariaSelection,l=r.focusedOption,u=r.focusedValue,d=r.focusableOptions,m=r.isFocused,h=r.selectValue,y=r.selectProps,x=r.id,C=r.isAppleDevice,w=y.ariaLiveMessages,R=y.getOptionLabel,A=y.inputValue,N=y.isMulti,_=y.isOptionDisabled,I=y.isSearchable,M=y.menuIsOpen,P=y.options,V=y.screenReaderStatus,U=y.tabSelectsValue,F=y.isLoading,z=y["aria-label"],X=y["aria-live"],Y=k.useMemo(function(){return bt(bt({},aZ),w||{})},[w]),ce=k.useMemo(function(){var xe="";if(i&&Y.onChange){var je=i.option,Le=i.options,re=i.removedValue,De=i.removedValues,G=i.value,Z=function(Oe){return Array.isArray(Oe)?null:Oe},ne=re||je||Z(G),be=ne?R(ne):"",Ee=Le||De||void 0,_e=Ee?Ee.map(R):[],Ne=bt({isDisabled:ne&&_(ne,h),label:be,labels:_e},i);xe=Y.onChange(Ne)}return xe},[i,Y,_,h,R]),ie=k.useMemo(function(){var xe="",je=l||u,Le=!!(l&&h&&h.includes(l));if(je&&Y.onFocus){var re={focused:je,label:R(je),isDisabled:_(je,h),isSelected:Le,options:d,context:je===l?"menu":"value",selectValue:h,isAppleDevice:C};xe=Y.onFocus(re)}return xe},[l,u,R,_,Y,d,h,C]),me=k.useMemo(function(){var xe="";if(M&&P.length&&!F&&Y.onFilter){var je=V({count:d.length});xe=Y.onFilter({inputValue:A,resultsMessage:je})}return xe},[d,A,M,Y,P,V,F]),ae=(i==null?void 0:i.action)==="initial-input-focus",we=k.useMemo(function(){var xe="";if(Y.guidance){var je=u?"value":M?"menu":"input";xe=Y.guidance({"aria-label":z,context:je,isDisabled:l&&_(l,h),isMulti:N,isSearchable:I,tabSelectsValue:U,isInitialFocus:ae})}return xe},[z,l,u,N,_,I,M,Y,h,U,ae]),ge=Rt(k.Fragment,null,Rt("span",{id:"aria-selection"},ce),Rt("span",{id:"aria-focused"},ie),Rt("span",{id:"aria-results"},me),Rt("span",{id:"aria-guidance"},we));return Rt(k.Fragment,null,Rt(Jj,{id:x},ae&&ge),Rt(Jj,{"aria-live":X,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},m&&!ae&&ge))},oZ=iZ,Kw=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],sZ=new RegExp("["+Kw.map(function(t){return t.letters}).join("")+"]","g"),aM={};for(var sw=0;sw<Kw.length;sw++)for(var lw=Kw[sw],uw=0;uw<lw.letters.length;uw++)aM[lw.letters[uw]]=lw.base;var iM=function(r){return r.replace(sZ,function(i){return aM[i]})},lZ=eZ(iM),Qj=function(r){return r.replace(/^\s+|\s+$/g,"")},uZ=function(r){return"".concat(r.label," ").concat(r.value)},cZ=function(r){return function(i,l){if(i.data.__isNew__)return!0;var u=bt({ignoreCase:!0,ignoreAccents:!0,stringify:uZ,trim:!0,matchFrom:"any"},r),d=u.ignoreCase,m=u.ignoreAccents,h=u.stringify,y=u.trim,x=u.matchFrom,C=y?Qj(l):l,w=y?Qj(h(i)):h(i);return d&&(C=C.toLowerCase(),w=w.toLowerCase()),m&&(C=lZ(C),w=iM(w)),x==="start"?w.substr(0,C.length)===C:w.indexOf(C)>-1}},dZ=["innerRef"];function fZ(t){var r=t.innerRef,i=il(t,dZ),l=LX(i,"onExited","in","enter","exit","appear");return Rt("input",Tt({ref:r},l,{css:o_({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},Mm.NODE_ENV==="production"?"":";label:DummyInput;",Mm.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var pZ=function(r){r.cancelable&&r.preventDefault(),r.stopPropagation()};function hZ(t){var r=t.isEnabled,i=t.onBottomArrive,l=t.onBottomLeave,u=t.onTopArrive,d=t.onTopLeave,m=k.useRef(!1),h=k.useRef(!1),y=k.useRef(0),x=k.useRef(null),C=k.useCallback(function(I,M){if(x.current!==null){var P=x.current,V=P.scrollTop,U=P.scrollHeight,F=P.clientHeight,z=x.current,X=M>0,Y=U-F-V,ce=!1;Y>M&&m.current&&(l&&l(I),m.current=!1),X&&h.current&&(d&&d(I),h.current=!1),X&&M>Y?(i&&!m.current&&i(I),z.scrollTop=U,ce=!0,m.current=!0):!X&&-M>V&&(u&&!h.current&&u(I),z.scrollTop=0,ce=!0,h.current=!0),ce&&pZ(I)}},[i,l,u,d]),w=k.useCallback(function(I){C(I,I.deltaY)},[C]),R=k.useCallback(function(I){y.current=I.changedTouches[0].clientY},[]),A=k.useCallback(function(I){var M=y.current-I.changedTouches[0].clientY;C(I,M)},[C]),N=k.useCallback(function(I){if(I){var M=DX?{passive:!1}:!1;I.addEventListener("wheel",w,M),I.addEventListener("touchstart",R,M),I.addEventListener("touchmove",A,M)}},[A,R,w]),_=k.useCallback(function(I){I&&(I.removeEventListener("wheel",w,!1),I.removeEventListener("touchstart",R,!1),I.removeEventListener("touchmove",A,!1))},[A,R,w]);return k.useEffect(function(){if(r){var I=x.current;return N(I),function(){_(I)}}},[r,N,_]),function(I){x.current=I}}var Kj=["boxSizing","height","overflow","paddingRight","position"],eA={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function tA(t){t.preventDefault()}function nA(t){t.stopPropagation()}function rA(){var t=this.scrollTop,r=this.scrollHeight,i=t+this.offsetHeight;t===0?this.scrollTop=1:i===r&&(this.scrollTop=t-1)}function aA(){return"ontouchstart"in window||navigator.maxTouchPoints}var iA=!!(typeof window<"u"&&window.document&&window.document.createElement),mm=0,zp={capture:!1,passive:!1};function vZ(t){var r=t.isEnabled,i=t.accountForScrollbars,l=i===void 0?!0:i,u=k.useRef({}),d=k.useRef(null),m=k.useCallback(function(y){if(iA){var x=document.body,C=x&&x.style;if(l&&Kj.forEach(function(N){var _=C&&C[N];u.current[N]=_}),l&&mm<1){var w=parseInt(u.current.paddingRight,10)||0,R=document.body?document.body.clientWidth:0,A=window.innerWidth-R+w||0;Object.keys(eA).forEach(function(N){var _=eA[N];C&&(C[N]=_)}),C&&(C.paddingRight="".concat(A,"px"))}x&&aA()&&(x.addEventListener("touchmove",tA,zp),y&&(y.addEventListener("touchstart",rA,zp),y.addEventListener("touchmove",nA,zp))),mm+=1}},[l]),h=k.useCallback(function(y){if(iA){var x=document.body,C=x&&x.style;mm=Math.max(mm-1,0),l&&mm<1&&Kj.forEach(function(w){var R=u.current[w];C&&(C[w]=R)}),x&&aA()&&(x.removeEventListener("touchmove",tA,zp),y&&(y.removeEventListener("touchstart",rA,zp),y.removeEventListener("touchmove",nA,zp)))}},[l]);return k.useEffect(function(){if(r){var y=d.current;return m(y),function(){h(y)}}},[r,m,h]),function(y){d.current=y}}function mZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var gZ=function(r){var i=r.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},yZ=Mm.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:mZ};function bZ(t){var r=t.children,i=t.lockEnabled,l=t.captureEnabled,u=l===void 0?!0:l,d=t.onBottomArrive,m=t.onBottomLeave,h=t.onTopArrive,y=t.onTopLeave,x=hZ({isEnabled:u,onBottomArrive:d,onBottomLeave:m,onTopArrive:h,onTopLeave:y}),C=vZ({isEnabled:i}),w=function(A){x(A),C(A)};return Rt(k.Fragment,null,i&&Rt("div",{onClick:gZ,css:yZ}),r(w))}function xZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var CZ=Mm.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:xZ},SZ=function(r){var i=r.name,l=r.onFocus;return Rt("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:l,css:CZ,value:"",onChange:function(){}})},EZ=SZ;function d_(t){var r;return typeof window<"u"&&window.navigator!=null?t.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function wZ(){return d_(/^iPhone/i)}function oM(){return d_(/^Mac/i)}function RZ(){return d_(/^iPad/i)||oM()&&navigator.maxTouchPoints>1}function _Z(){return wZ()||RZ()}function TZ(){return oM()||_Z()}var NZ=function(r){return r.label},IZ=function(r){return r.label},jZ=function(r){return r.value},AZ=function(r){return!!r.isDisabled},OZ={clearIndicator:dY,container:KX,control:yY,dropdownIndicator:uY,group:SY,groupHeading:wY,indicatorsContainer:rY,indicatorSeparator:pY,input:NY,loadingIndicator:mY,loadingMessage:YX,menu:$X,menuList:GX,menuPortal:JX,multiValue:DY,multiValueLabel:kY,multiValueRemove:MY,noOptionsMessage:XX,option:$Y,placeholder:HY,singleValue:XY,valueContainer:tY},DZ={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},kZ=4,sM=4,MZ=38,LZ=sM*2,PZ={baseUnit:sM,controlHeight:MZ,menuGutter:LZ},cw={borderRadius:kZ,colors:DZ,spacing:PZ},FZ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Yj(),captureMenuScroll:!Yj(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:cZ(),formatGroupLabel:NZ,getOptionLabel:IZ,getOptionValue:jZ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:AZ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!AX(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(r){var i=r.count;return"".concat(i," result").concat(i!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function oA(t,r,i,l){var u=cM(t,r,i),d=dM(t,r,i),m=uM(t,r),h=Vx(t,r);return{type:"option",data:r,isDisabled:u,isSelected:d,label:m,value:h,index:l}}function dx(t,r){return t.options.map(function(i,l){if("options"in i){var u=i.options.map(function(m,h){return oA(t,m,r,h)}).filter(function(m){return lA(t,m)});return u.length>0?{type:"group",data:i,options:u,index:l}:void 0}var d=oA(t,i,r,l);return lA(t,d)?d:void 0}).filter(kX)}function lM(t){return t.reduce(function(r,i){return i.type==="group"?r.push.apply(r,ZR(i.options.map(function(l){return l.data}))):r.push(i.data),r},[])}function sA(t,r){return t.reduce(function(i,l){return l.type==="group"?i.push.apply(i,ZR(l.options.map(function(u){return{data:u.data,id:"".concat(r,"-").concat(l.index,"-").concat(u.index)}}))):i.push({data:l.data,id:"".concat(r,"-").concat(l.index)}),i},[])}function VZ(t,r){return lM(dx(t,r))}function lA(t,r){var i=t.inputValue,l=i===void 0?"":i,u=r.data,d=r.isSelected,m=r.label,h=r.value;return(!pM(t)||!d)&&fM(t,{label:m,value:h,data:u},l)}function BZ(t,r){var i=t.focusedValue,l=t.selectValue,u=l.indexOf(i);if(u>-1){var d=r.indexOf(i);if(d>-1)return i;if(u<r.length)return r[u]}return null}function $Z(t,r){var i=t.focusedOption;return i&&r.indexOf(i)>-1?i:r[0]}var dw=function(r,i){var l,u=(l=r.find(function(d){return d.data===i}))===null||l===void 0?void 0:l.id;return u||null},uM=function(r,i){return r.getOptionLabel(i)},Vx=function(r,i){return r.getOptionValue(i)};function cM(t,r,i){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(r,i):!1}function dM(t,r,i){if(i.indexOf(r)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(r,i);var l=Vx(t,r);return i.some(function(u){return Vx(t,u)===l})}function fM(t,r,i){return t.filterOption?t.filterOption(r,i):!0}var pM=function(r){var i=r.hideSelectedOptions,l=r.isMulti;return i===void 0?l:i},zZ=1,f_=function(t){XW(i,t);var r=qW(i);function i(l){var u;if(GW(this,i),u=r.call(this,l),u.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},u.blockOptionHover=!1,u.isComposing=!1,u.commonProps=void 0,u.initialTouchX=0,u.initialTouchY=0,u.openAfterFocus=!1,u.scrollToFocusedOptionOnUpdate=!1,u.userIsDragging=void 0,u.isAppleDevice=TZ(),u.controlRef=null,u.getControlRef=function(y){u.controlRef=y},u.focusedOptionRef=null,u.getFocusedOptionRef=function(y){u.focusedOptionRef=y},u.menuListRef=null,u.getMenuListRef=function(y){u.menuListRef=y},u.inputRef=null,u.getInputRef=function(y){u.inputRef=y},u.focus=u.focusInput,u.blur=u.blurInput,u.onChange=function(y,x){var C=u.props,w=C.onChange,R=C.name;x.name=R,u.ariaOnChange(y,x),w(y,x)},u.setValue=function(y,x,C){var w=u.props,R=w.closeMenuOnSelect,A=w.isMulti,N=w.inputValue;u.onInputChange("",{action:"set-value",prevInputValue:N}),R&&(u.setState({inputIsHiddenAfterUpdate:!A}),u.onMenuClose()),u.setState({clearFocusValueOnUpdate:!0}),u.onChange(y,{action:x,option:C})},u.selectOption=function(y){var x=u.props,C=x.blurInputOnSelect,w=x.isMulti,R=x.name,A=u.state.selectValue,N=w&&u.isOptionSelected(y,A),_=u.isOptionDisabled(y,A);if(N){var I=u.getOptionValue(y);u.setValue(A.filter(function(M){return u.getOptionValue(M)!==I}),"deselect-option",y)}else if(!_)w?u.setValue([].concat(ZR(A),[y]),"select-option",y):u.setValue(y,"select-option");else{u.ariaOnChange(y,{action:"select-option",option:y,name:R});return}C&&u.blurInput()},u.removeValue=function(y){var x=u.props.isMulti,C=u.state.selectValue,w=u.getOptionValue(y),R=C.filter(function(N){return u.getOptionValue(N)!==w}),A=Qb(x,R,R[0]||null);u.onChange(A,{action:"remove-value",removedValue:y}),u.focusInput()},u.clearValue=function(){var y=u.state.selectValue;u.onChange(Qb(u.props.isMulti,[],null),{action:"clear",removedValues:y})},u.popValue=function(){var y=u.props.isMulti,x=u.state.selectValue,C=x[x.length-1],w=x.slice(0,x.length-1),R=Qb(y,w,w[0]||null);u.onChange(R,{action:"pop-value",removedValue:C})},u.getFocusedOptionId=function(y){return dw(u.state.focusableOptionsWithIds,y)},u.getFocusableOptionsWithIds=function(){return sA(dx(u.props,u.state.selectValue),u.getElementId("option"))},u.getValue=function(){return u.state.selectValue},u.cx=function(){for(var y=arguments.length,x=new Array(y),C=0;C<y;C++)x[C]=arguments[C];return RX.apply(void 0,[u.props.classNamePrefix].concat(x))},u.getOptionLabel=function(y){return uM(u.props,y)},u.getOptionValue=function(y){return Vx(u.props,y)},u.getStyles=function(y,x){var C=u.props.unstyled,w=OZ[y](x,C);w.boxSizing="border-box";var R=u.props.styles[y];return R?R(w,x):w},u.getClassNames=function(y,x){var C,w;return(C=(w=u.props.classNames)[y])===null||C===void 0?void 0:C.call(w,x)},u.getElementId=function(y){return"".concat(u.state.instancePrefix,"-").concat(y)},u.getComponents=function(){return JY(u.props)},u.buildCategorizedOptions=function(){return dx(u.props,u.state.selectValue)},u.getCategorizedOptions=function(){return u.props.menuIsOpen?u.buildCategorizedOptions():[]},u.buildFocusableOptions=function(){return lM(u.buildCategorizedOptions())},u.getFocusableOptions=function(){return u.props.menuIsOpen?u.buildFocusableOptions():[]},u.ariaOnChange=function(y,x){u.setState({ariaSelection:bt({value:y},x)})},u.onMenuMouseDown=function(y){y.button===0&&(y.stopPropagation(),y.preventDefault(),u.focusInput())},u.onMenuMouseMove=function(y){u.blockOptionHover=!1},u.onControlMouseDown=function(y){if(!y.defaultPrevented){var x=u.props.openMenuOnClick;u.state.isFocused?u.props.menuIsOpen?y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&u.onMenuClose():x&&u.openMenu("first"):(x&&(u.openAfterFocus=!0),u.focusInput()),y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&y.preventDefault()}},u.onDropdownIndicatorMouseDown=function(y){if(!(y&&y.type==="mousedown"&&y.button!==0)&&!u.props.isDisabled){var x=u.props,C=x.isMulti,w=x.menuIsOpen;u.focusInput(),w?(u.setState({inputIsHiddenAfterUpdate:!C}),u.onMenuClose()):u.openMenu("first"),y.preventDefault()}},u.onClearIndicatorMouseDown=function(y){y&&y.type==="mousedown"&&y.button!==0||(u.clearValue(),y.preventDefault(),u.openAfterFocus=!1,y.type==="touchend"?u.focusInput():setTimeout(function(){return u.focusInput()}))},u.onScroll=function(y){typeof u.props.closeMenuOnScroll=="boolean"?y.target instanceof HTMLElement&&i0(y.target)&&u.props.onMenuClose():typeof u.props.closeMenuOnScroll=="function"&&u.props.closeMenuOnScroll(y)&&u.props.onMenuClose()},u.onCompositionStart=function(){u.isComposing=!0},u.onCompositionEnd=function(){u.isComposing=!1},u.onTouchStart=function(y){var x=y.touches,C=x&&x.item(0);C&&(u.initialTouchX=C.clientX,u.initialTouchY=C.clientY,u.userIsDragging=!1)},u.onTouchMove=function(y){var x=y.touches,C=x&&x.item(0);if(C){var w=Math.abs(C.clientX-u.initialTouchX),R=Math.abs(C.clientY-u.initialTouchY),A=5;u.userIsDragging=w>A||R>A}},u.onTouchEnd=function(y){u.userIsDragging||(u.controlRef&&!u.controlRef.contains(y.target)&&u.menuListRef&&!u.menuListRef.contains(y.target)&&u.blurInput(),u.initialTouchX=0,u.initialTouchY=0)},u.onControlTouchEnd=function(y){u.userIsDragging||u.onControlMouseDown(y)},u.onClearIndicatorTouchEnd=function(y){u.userIsDragging||u.onClearIndicatorMouseDown(y)},u.onDropdownIndicatorTouchEnd=function(y){u.userIsDragging||u.onDropdownIndicatorMouseDown(y)},u.handleInputChange=function(y){var x=u.props.inputValue,C=y.currentTarget.value;u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange(C,{action:"input-change",prevInputValue:x}),u.props.menuIsOpen||u.onMenuOpen()},u.onInputFocus=function(y){u.props.onFocus&&u.props.onFocus(y),u.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(u.openAfterFocus||u.props.openMenuOnFocus)&&u.openMenu("first"),u.openAfterFocus=!1},u.onInputBlur=function(y){var x=u.props.inputValue;if(u.menuListRef&&u.menuListRef.contains(document.activeElement)){u.inputRef.focus();return}u.props.onBlur&&u.props.onBlur(y),u.onInputChange("",{action:"input-blur",prevInputValue:x}),u.onMenuClose(),u.setState({focusedValue:null,isFocused:!1})},u.onOptionHover=function(y){if(!(u.blockOptionHover||u.state.focusedOption===y)){var x=u.getFocusableOptions(),C=x.indexOf(y);u.setState({focusedOption:y,focusedOptionId:C>-1?u.getFocusedOptionId(y):null})}},u.shouldHideSelectedOptions=function(){return pM(u.props)},u.onValueInputFocus=function(y){y.preventDefault(),y.stopPropagation(),u.focus()},u.onKeyDown=function(y){var x=u.props,C=x.isMulti,w=x.backspaceRemovesValue,R=x.escapeClearsValue,A=x.inputValue,N=x.isClearable,_=x.isDisabled,I=x.menuIsOpen,M=x.onKeyDown,P=x.tabSelectsValue,V=x.openMenuOnFocus,U=u.state,F=U.focusedOption,z=U.focusedValue,X=U.selectValue;if(!_&&!(typeof M=="function"&&(M(y),y.defaultPrevented))){switch(u.blockOptionHover=!0,y.key){case"ArrowLeft":if(!C||A)return;u.focusValue("previous");break;case"ArrowRight":if(!C||A)return;u.focusValue("next");break;case"Delete":case"Backspace":if(A)return;if(z)u.removeValue(z);else{if(!w)return;C?u.popValue():N&&u.clearValue()}break;case"Tab":if(u.isComposing||y.shiftKey||!I||!P||!F||V&&u.isOptionSelected(F,X))return;u.selectOption(F);break;case"Enter":if(y.keyCode===229)break;if(I){if(!F||u.isComposing)return;u.selectOption(F);break}return;case"Escape":I?(u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange("",{action:"menu-close",prevInputValue:A}),u.onMenuClose()):N&&R&&u.clearValue();break;case" ":if(A)return;if(!I){u.openMenu("first");break}if(!F)return;u.selectOption(F);break;case"ArrowUp":I?u.focusOption("up"):u.openMenu("last");break;case"ArrowDown":I?u.focusOption("down"):u.openMenu("first");break;case"PageUp":if(!I)return;u.focusOption("pageup");break;case"PageDown":if(!I)return;u.focusOption("pagedown");break;case"Home":if(!I)return;u.focusOption("first");break;case"End":if(!I)return;u.focusOption("last");break;default:return}y.preventDefault()}},u.state.instancePrefix="react-select-"+(u.props.instanceId||++zZ),u.state.selectValue=Wj(l.value),l.menuIsOpen&&u.state.selectValue.length){var d=u.getFocusableOptionsWithIds(),m=u.buildFocusableOptions(),h=m.indexOf(u.state.selectValue[0]);u.state.focusableOptionsWithIds=d,u.state.focusedOption=m[h],u.state.focusedOptionId=dw(d,m[h])}return u}return WW(i,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Xj(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(u){var d=this.props,m=d.isDisabled,h=d.menuIsOpen,y=this.state.isFocused;(y&&!m&&u.isDisabled||y&&h&&!u.menuIsOpen)&&this.focusInput(),y&&m&&!u.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!y&&!m&&u.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Xj(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(u,d){this.props.onInputChange(u,d)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(u){var d=this,m=this.state,h=m.selectValue,y=m.isFocused,x=this.buildFocusableOptions(),C=u==="first"?0:x.length-1;if(!this.props.isMulti){var w=x.indexOf(h[0]);w>-1&&(C=w)}this.scrollToFocusedOptionOnUpdate=!(y&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:x[C],focusedOptionId:this.getFocusedOptionId(x[C])},function(){return d.onMenuOpen()})}},{key:"focusValue",value:function(u){var d=this.state,m=d.selectValue,h=d.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var y=m.indexOf(h);h||(y=-1);var x=m.length-1,C=-1;if(m.length){switch(u){case"previous":y===0?C=0:y===-1?C=x:C=y-1;break;case"next":y>-1&&y<x&&(C=y+1);break}this.setState({inputIsHidden:C!==-1,focusedValue:m[C]})}}}},{key:"focusOption",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",d=this.props.pageSize,m=this.state.focusedOption,h=this.getFocusableOptions();if(h.length){var y=0,x=h.indexOf(m);m||(x=-1),u==="up"?y=x>0?x-1:h.length-1:u==="down"?y=(x+1)%h.length:u==="pageup"?(y=x-d,y<0&&(y=0)):u==="pagedown"?(y=x+d,y>h.length-1&&(y=h.length-1)):u==="last"&&(y=h.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:h[y],focusedValue:null,focusedOptionId:this.getFocusedOptionId(h[y])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(cw):bt(bt({},cw),this.props.theme):cw}},{key:"getCommonProps",value:function(){var u=this.clearValue,d=this.cx,m=this.getStyles,h=this.getClassNames,y=this.getValue,x=this.selectOption,C=this.setValue,w=this.props,R=w.isMulti,A=w.isRtl,N=w.options,_=this.hasValue();return{clearValue:u,cx:d,getStyles:m,getClassNames:h,getValue:y,hasValue:_,isMulti:R,isRtl:A,options:N,selectOption:x,selectProps:w,setValue:C,theme:this.getTheme()}}},{key:"hasValue",value:function(){var u=this.state.selectValue;return u.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var u=this.props,d=u.isClearable,m=u.isMulti;return d===void 0?m:d}},{key:"isOptionDisabled",value:function(u,d){return cM(this.props,u,d)}},{key:"isOptionSelected",value:function(u,d){return dM(this.props,u,d)}},{key:"filterOption",value:function(u,d){return fM(this.props,u,d)}},{key:"formatOptionLabel",value:function(u,d){if(typeof this.props.formatOptionLabel=="function"){var m=this.props.inputValue,h=this.state.selectValue;return this.props.formatOptionLabel(u,{context:d,inputValue:m,selectValue:h})}else return this.getOptionLabel(u)}},{key:"formatGroupLabel",value:function(u){return this.props.formatGroupLabel(u)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var u=this.props,d=u.isDisabled,m=u.isSearchable,h=u.inputId,y=u.inputValue,x=u.tabIndex,C=u.form,w=u.menuIsOpen,R=u.required,A=this.getComponents(),N=A.Input,_=this.state,I=_.inputIsHidden,M=_.ariaSelection,P=this.commonProps,V=h||this.getElementId("input"),U=bt(bt(bt({"aria-autocomplete":"list","aria-expanded":w,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":R,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},w&&{"aria-controls":this.getElementId("listbox")}),!m&&{"aria-readonly":!0}),this.hasValue()?(M==null?void 0:M.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return m?k.createElement(N,Tt({},P,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:V,innerRef:this.getInputRef,isDisabled:d,isHidden:I,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:x,form:C,type:"text",value:y},U)):k.createElement(fZ,Tt({id:V,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Px,onFocus:this.onInputFocus,disabled:d,tabIndex:x,inputMode:"none",form:C,value:""},U))}},{key:"renderPlaceholderOrValue",value:function(){var u=this,d=this.getComponents(),m=d.MultiValue,h=d.MultiValueContainer,y=d.MultiValueLabel,x=d.MultiValueRemove,C=d.SingleValue,w=d.Placeholder,R=this.commonProps,A=this.props,N=A.controlShouldRenderValue,_=A.isDisabled,I=A.isMulti,M=A.inputValue,P=A.placeholder,V=this.state,U=V.selectValue,F=V.focusedValue,z=V.isFocused;if(!this.hasValue()||!N)return M?null:k.createElement(w,Tt({},R,{key:"placeholder",isDisabled:_,isFocused:z,innerProps:{id:this.getElementId("placeholder")}}),P);if(I)return U.map(function(Y,ce){var ie=Y===F,me="".concat(u.getOptionLabel(Y),"-").concat(u.getOptionValue(Y));return k.createElement(m,Tt({},R,{components:{Container:h,Label:y,Remove:x},isFocused:ie,isDisabled:_,key:me,index:ce,removeProps:{onClick:function(){return u.removeValue(Y)},onTouchEnd:function(){return u.removeValue(Y)},onMouseDown:function(we){we.preventDefault()}},data:Y}),u.formatOptionLabel(Y,"value"))});if(M)return null;var X=U[0];return k.createElement(C,Tt({},R,{data:X,isDisabled:_}),this.formatOptionLabel(X,"value"))}},{key:"renderClearIndicator",value:function(){var u=this.getComponents(),d=u.ClearIndicator,m=this.commonProps,h=this.props,y=h.isDisabled,x=h.isLoading,C=this.state.isFocused;if(!this.isClearable()||!d||y||!this.hasValue()||x)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(d,Tt({},m,{innerProps:w,isFocused:C}))}},{key:"renderLoadingIndicator",value:function(){var u=this.getComponents(),d=u.LoadingIndicator,m=this.commonProps,h=this.props,y=h.isDisabled,x=h.isLoading,C=this.state.isFocused;if(!d||!x)return null;var w={"aria-hidden":"true"};return k.createElement(d,Tt({},m,{innerProps:w,isDisabled:y,isFocused:C}))}},{key:"renderIndicatorSeparator",value:function(){var u=this.getComponents(),d=u.DropdownIndicator,m=u.IndicatorSeparator;if(!d||!m)return null;var h=this.commonProps,y=this.props.isDisabled,x=this.state.isFocused;return k.createElement(m,Tt({},h,{isDisabled:y,isFocused:x}))}},{key:"renderDropdownIndicator",value:function(){var u=this.getComponents(),d=u.DropdownIndicator;if(!d)return null;var m=this.commonProps,h=this.props.isDisabled,y=this.state.isFocused,x={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(d,Tt({},m,{innerProps:x,isDisabled:h,isFocused:y}))}},{key:"renderMenu",value:function(){var u=this,d=this.getComponents(),m=d.Group,h=d.GroupHeading,y=d.Menu,x=d.MenuList,C=d.MenuPortal,w=d.LoadingMessage,R=d.NoOptionsMessage,A=d.Option,N=this.commonProps,_=this.state.focusedOption,I=this.props,M=I.captureMenuScroll,P=I.inputValue,V=I.isLoading,U=I.loadingMessage,F=I.minMenuHeight,z=I.maxMenuHeight,X=I.menuIsOpen,Y=I.menuPlacement,ce=I.menuPosition,ie=I.menuPortalTarget,me=I.menuShouldBlockScroll,ae=I.menuShouldScrollIntoView,we=I.noOptionsMessage,ge=I.onMenuScrollToTop,xe=I.onMenuScrollToBottom;if(!X)return null;var je=function(be,Ee){var _e=be.type,Ne=be.data,ke=be.isDisabled,Oe=be.isSelected,ve=be.label,Ie=be.value,Xe=_===Ne,qe=ke?void 0:function(){return u.onOptionHover(Ne)},Ae=ke?void 0:function(){return u.selectOption(Ne)},xt="".concat(u.getElementId("option"),"-").concat(Ee),ht={id:xt,onClick:Ae,onMouseMove:qe,onMouseOver:qe,tabIndex:-1,role:"option","aria-selected":u.isAppleDevice?void 0:Oe};return k.createElement(A,Tt({},N,{innerProps:ht,data:Ne,isDisabled:ke,isSelected:Oe,key:xt,label:ve,type:_e,value:Ie,isFocused:Xe,innerRef:Xe?u.getFocusedOptionRef:void 0}),u.formatOptionLabel(be.data,"menu"))},Le;if(this.hasOptions())Le=this.getCategorizedOptions().map(function(ne){if(ne.type==="group"){var be=ne.data,Ee=ne.options,_e=ne.index,Ne="".concat(u.getElementId("group"),"-").concat(_e),ke="".concat(Ne,"-heading");return k.createElement(m,Tt({},N,{key:Ne,data:be,options:Ee,Heading:h,headingProps:{id:ke,data:ne.data},label:u.formatGroupLabel(ne.data)}),ne.options.map(function(Oe){return je(Oe,"".concat(_e,"-").concat(Oe.index))}))}else if(ne.type==="option")return je(ne,"".concat(ne.index))});else if(V){var re=U({inputValue:P});if(re===null)return null;Le=k.createElement(w,N,re)}else{var De=we({inputValue:P});if(De===null)return null;Le=k.createElement(R,N,De)}var G={minMenuHeight:F,maxMenuHeight:z,menuPlacement:Y,menuPosition:ce,menuShouldScrollIntoView:ae},Z=k.createElement(zX,Tt({},N,G),function(ne){var be=ne.ref,Ee=ne.placerProps,_e=Ee.placement,Ne=Ee.maxHeight;return k.createElement(y,Tt({},N,G,{innerRef:be,innerProps:{onMouseDown:u.onMenuMouseDown,onMouseMove:u.onMenuMouseMove},isLoading:V,placement:_e}),k.createElement(bZ,{captureEnabled:M,onTopArrive:ge,onBottomArrive:xe,lockEnabled:me},function(ke){return k.createElement(x,Tt({},N,{innerRef:function(ve){u.getMenuListRef(ve),ke(ve)},innerProps:{role:"listbox","aria-multiselectable":N.isMulti,id:u.getElementId("listbox")},isLoading:V,maxHeight:Ne,focusedOption:_}),Le)}))});return ie||ce==="fixed"?k.createElement(C,Tt({},N,{appendTo:ie,controlElement:this.controlRef,menuPlacement:Y,menuPosition:ce}),Z):Z}},{key:"renderFormField",value:function(){var u=this,d=this.props,m=d.delimiter,h=d.isDisabled,y=d.isMulti,x=d.name,C=d.required,w=this.state.selectValue;if(C&&!this.hasValue()&&!h)return k.createElement(EZ,{name:x,onFocus:this.onValueInputFocus});if(!(!x||h))if(y)if(m){var R=w.map(function(_){return u.getOptionValue(_)}).join(m);return k.createElement("input",{name:x,type:"hidden",value:R})}else{var A=w.length>0?w.map(function(_,I){return k.createElement("input",{key:"i-".concat(I),name:x,type:"hidden",value:u.getOptionValue(_)})}):k.createElement("input",{name:x,type:"hidden",value:""});return k.createElement("div",null,A)}else{var N=w[0]?this.getOptionValue(w[0]):"";return k.createElement("input",{name:x,type:"hidden",value:N})}}},{key:"renderLiveRegion",value:function(){var u=this.commonProps,d=this.state,m=d.ariaSelection,h=d.focusedOption,y=d.focusedValue,x=d.isFocused,C=d.selectValue,w=this.getFocusableOptions();return k.createElement(oZ,Tt({},u,{id:this.getElementId("live-region"),ariaSelection:m,focusedOption:h,focusedValue:y,isFocused:x,selectValue:C,focusableOptions:w,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var u=this.getComponents(),d=u.Control,m=u.IndicatorsContainer,h=u.SelectContainer,y=u.ValueContainer,x=this.props,C=x.className,w=x.id,R=x.isDisabled,A=x.menuIsOpen,N=this.state.isFocused,_=this.commonProps=this.getCommonProps();return k.createElement(h,Tt({},_,{className:C,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:R,isFocused:N}),this.renderLiveRegion(),k.createElement(d,Tt({},_,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:R,isFocused:N,menuIsOpen:A}),k.createElement(y,Tt({},_,{isDisabled:R}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(m,Tt({},_,{isDisabled:R}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(u,d){var m=d.prevProps,h=d.clearFocusValueOnUpdate,y=d.inputIsHiddenAfterUpdate,x=d.ariaSelection,C=d.isFocused,w=d.prevWasFocused,R=d.instancePrefix,A=u.options,N=u.value,_=u.menuIsOpen,I=u.inputValue,M=u.isMulti,P=Wj(N),V={};if(m&&(N!==m.value||A!==m.options||_!==m.menuIsOpen||I!==m.inputValue)){var U=_?VZ(u,P):[],F=_?sA(dx(u,P),"".concat(R,"-option")):[],z=h?BZ(d,P):null,X=$Z(d,U),Y=dw(F,X);V={selectValue:P,focusedOption:X,focusedOptionId:Y,focusableOptionsWithIds:F,focusedValue:z,clearFocusValueOnUpdate:!1}}var ce=y!=null&&u!==m?{inputIsHidden:y,inputIsHiddenAfterUpdate:void 0}:{},ie=x,me=C&&w;return C&&!me&&(ie={value:Qb(M,P,P[0]||null),options:P,action:"initial-input-focus"},me=!w),(x==null?void 0:x.action)==="initial-input-focus"&&(ie=null),bt(bt(bt({},V),ce),{},{prevProps:u,ariaSelection:ie,prevWasFocused:me})}}]),i}(k.Component);f_.defaultProps=FZ;var UZ=k.forwardRef(function(t,r){var i=wk(t);return k.createElement(f_,Tt({ref:r},i))}),p_=UZ;const HZ=`, ${new Date().getFullYear()}`;function uA({creditResource:t,resource:r,short:i=!1}){const{base:l,current:u}=r.exchangeRates;if(u.unitCost>=l.unitCost)return;const d=u.endDate?"calendar3":"people-fill",m=u.endDate?"primary":"success";let y=`${Math.round(100*(l.unitCost-u.unitCost)/l.unitCost)}% off`,x=y;if(u.endDate){const C=u.endDate?` until ${Hd(u.endDate).replace(HZ,"")}`:"";i||(y+=C),x+=C}else i||(y+=" for you"),x+=u.institutionType?` for researchers from ${u.institutionType}`:" for you";return x+=`: ${lO(r.unit,u.unitCost,t.name)}`,v.jsxs("span",{className:`badge text-bg-${m} ms-2`,title:x,style:{cursor:"help"},children:[v.jsx("i",{className:`bi bi-${d} me-1`}),y]})}function Wp({bg:t="dark",children:r,color:i="light",fontWeight:l="bold",icon:u="info-circle-fill",initial:d=!1,maxWidth:m="200px",padding:h="10px",placement:y,target:x,trigger:C="click",visible:w=!0}){const R=typeof d=="string"||d instanceof String,[A,N]=k.useState(R?localStorage.getItem(d)!="true":d),[_,I]=k.useState(!1);k.useEffect(()=>{setTimeout(()=>I(!0),100)},[]);const M=()=>{R&&localStorage.setItem(d,"true")},P=v.jsxs(e0,{style:{"--bs-tooltip-bg":`var(--bs-${t})`,"--bs-tooltip-color":`var(--bs-${i})`,"--bs-tooltip-max-width":m,"--bs-tooltip-padding-x":h,"--bs-tooltip-padding-y":h,fontWeight:l},children:[v.jsx("button",{"aria-label":"Close",onClick:()=>{M(),N(!1)},style:{background:"transparent",border:"0 none transparent",float:"right"},children:v.jsx("i",{className:"bi bi-x-lg"})}),r]});return x&&x.current?v.jsx(Ck,{target:x.current,placement:y,show:A&&w&&_,children:P}):v.jsx(YR,{placement:y,onToggle:V=>{M(),N(V)},overlay:P,show:A&&w&&_,trigger:C,children:v.jsx("button",{className:"btn bnt-clear border-0",style:{backgroundColor:"transparent"},children:v.jsx("i",{className:`bi bi-${u}`})})})}function GZ({resources:t}){const r=t.filter(d=>{const{base:m,current:h}=d.exchangeRates;return h.unitCost<m.unitCost});if(!r.length)return;const i=[],l=[];for(let d of r){let{name:m,favicon:h}=d.resourceProvider;i.includes(m)||(i.push(m),l.push(h))}const u=l.map((d,m)=>v.jsx("span",{className:"d-inline-block border me-1",style:{backgroundColor:"white",backgroundImage:`url(${d})`,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"16px 16px",borderRadius:"24px",height:"24px",verticalAlign:"middle",width:"24px"},title:i[m]},i[m]));return v.jsx("span",{className:"d-flex justify-content-between align-items-center p-2 border-start border-end bg-secondary-subtle text-decoration-none fw-normal",children:v.jsxs("span",{children:[u,"Browse the list below to see discounts on"," ",ga(r.length)," ",xx("resources",r.length)," from"," ",ga(i.length)," ",xx("resource providers",i.length),"!"]})})}const WZ="_items_c2dbg_1",XZ="_item_c2dbg_1",YZ="_details_c2dbg_14",ZZ="_text_c2dbg_20",qZ="_number_c2dbg_35",JZ="_outer_c2dbg_50",QZ="_inner_c2dbg_61",Jl={items:WZ,item:XZ,details:YZ,text:ZZ,number:qZ,outer:JZ,inner:QZ},gm=(t,r)=>`${Math.cos(2*Math.PI*t)*r} ${Math.sin(2*Math.PI*t)*r}`;function KZ({requestId:t,grantNumber:r,creditColorClass:i="gray-300",colorClasses:l=_w}){const{request:u}=ii(t,r);if(!u)return;let d=0,m;const h=[];for(let R of u.resources)R.isBoolean||(R.isCredit?m=R:h.push(R),d+=Tw(R));const y=[],x=[];let C=-.25;const w=[...h,m].map((R,A)=>{if(!R)return null;const N=A+1,I=Tw(R)/d,M=R.requested-R.used,P=Math.max(0,M),V=R.isCredit?d/R.exchangeRates.base.unitCost:R.requested,U=V==0?0:100*P/V,z=`var(--bs-${R.isCredit?i:l[A%l.length]})`;if(I>0){const X=C,Y=C+I/2,ce=C+=I,ie=I>.5?1:0,me=[`M ${gm(X,100)}`,`A 100 100 0 ${ie} 1 ${gm(ce,100)}`,`L ${gm(ce,50)}`,`A 50 50 0 ${ie} 0 ${gm(X,50)}`].join(" "),[ae,we]=gm(Y,75).split(" ").map(ge=>parseFloat(ge));y.push(v.jsx("path",{d:me,style:{fill:z}},R.resourceId)),x.push(v.jsx("circle",{cx:ae,cy:we,r:"8",fill:"black"},`${R.resourceId}-circle`),v.jsx("text",{x:ae-4,y:we+4,fill:"white",className:Jl.number,children:N},`${R.resourceId}-text`))}return R.isCredit&&x.push(v.jsx("foreignObject",{x:"-50",y:"-50",width:"100",height:"100",children:v.jsx("div",{className:Jl.text,children:v.jsxs("div",{children:[v.jsx("strong",{children:ga(P,{abbreviate:!0})}),R.unit," available"]})})},"center-text")),v.jsxs("li",{className:Jl.item,children:[v.jsx("span",{className:Jl.number,children:N}),v.jsx("span",{className:`${Jl.outer} ms-2 me-2`,style:{borderColor:z},children:v.jsx("span",{className:Jl.inner,style:{backgroundColor:z,width:`${U}%`}})}),v.jsxs("strong",{className:Jl.name,children:[v.jsx(Xd,{resource:R,userGuide:!1}),": "]}),v.jsxs("span",{className:Jl.details,children:[ga(M,{abbreviate:!0})," ",R.isCredit?null:v.jsxs(v.Fragment,{children:["of ",ga(V,{abbreviate:!0})," "]}),R.unit," ",R.isCredit?"available":"remaining"," (",Math.round(U),"%)"]})]},R.resourceId)});return v.jsxs("div",{className:"row",children:[v.jsx("div",{className:"col-lg-3 mb-3 d-flex flex-row align-items-center justify-content-center",children:v.jsxs("svg",{version:"1.1",viewBox:"-100 -100 200 200",width:"200",height:"200",xmlns:"http://www.w3.org/2000/svg",children:[y,x]})}),v.jsx("div",{className:"col-lg-9 mb-3 d-flex flex-column justify-content-center",children:v.jsx("ul",{className:Jl.items,children:w})})]})}const cA=t=>t;function e6({classes:t,clean:r=cA,format:i=cA,label:l,setValue:u,style:d,value:m}){const h=i(m),[y,x]=k.useState(h);return k.useEffect(()=>{x(h)},[h]),v.jsx("input",{type:"text","aria-label":l,className:`form-control ${t}`,value:y,style:d,onChange:C=>x(C.target.value),onBlur:C=>{const w=r(C.target.value);x(i(w)),u(w)},onKeyDown:C=>{C.code=="Enter"&&(C.preventDefault(),C.target.blur())}})}function t6({requestId:t,grantNumber:r}){const{request:i,addResource:l,openUsageDetailModal:u,resetResources:d,setResourceRequest:m,setResourcesReason:h,statuses:y,toggleActionsModal:x,toggleConfirmModal:C,toggleResourcesModal:w}=ii(t,r),{project:R}=Qi(r||i&&i.grantNumber),A=k.useRef(null),N=k.useRef(null);if(!i||!R)return;const _="Exchange"in i.allowedActions,I="Renewal"in i.allowedActions,M="Supplement"in i.allowedActions,P=i.exchangeStatus==y.pending,V=i.exchangeStatus==y.success,U=i.exchangeStatus==y.error,F=i.exchangeErrors,z=i.exchangeActionId!==null,X=i.exchangeActionEditable,Y=i.resources,ce=i.resourcesReason,ie={};for(let ve of Y)ie[ve.resourceId]=ve;const me=()=>{uO(i)>=.75?x():C()},ae=[];for(let ve of Y){let Ie=[];if(ve.requested>0){for(let Xe of ve.requires||[]){let qe=ie[Xe];if(qe){if(qe.requested>0){Ie=[];break}Ie.push(qe)}}Ie.length&&ae.push(v.jsxs("span",{children:[v.jsx(Xd,{resource:ve,userGuide:!1})," requires"," ",sO(Ie.map(Xe=>v.jsx(Xd,{resource:Xe,userGuide:!1},Xe.resourceId)),"or"),"."]},ve.resourceId))}}const we=ae.length>0;let ge;V?ge=v.jsx(hr,{color:"info",children:"Your exchange request has been submitted."}):U&&F.length>0&&F[0].includes("PI")&&F[0].includes("person status Unknown")?ge=v.jsx(hr,{color:"danger",children:R.currentUser.role==="pi"?v.jsxs(v.Fragment,{children:["Please"," ",v.jsx("a",{href:qt.routes.profile_path(),children:"update your academic status"})," ","before making an exchange request."]}):v.jsxs(v.Fragment,{children:["The primary investigator for this project has an unknown academic status. Please ask"," ",R.users.filter(ve=>ve.role==="pi").map(ve=>`${ve.firstName} ${ve.lastName}`)," ","to update the academic status in their profile, and then try again."]})}):U?ge=v.jsxs(hr,{color:"danger",children:["Sorry, something went wrong: ",F.join(", "),". For assistance, please"," ",v.jsx("a",{href:"https://support.access-ci.org/open-a-ticket",children:"open a help ticket"})," ","and include this message."]}):z?ge=v.jsx(hr,{color:"warning",children:"You have an exchange request under review. The information below reflects the pending exchange request."}):i.timeStatus=="current"&&!R.isManager?ge=v.jsxs(hr,{color:"warning",children:["You do not have permission to manage resources for this project. Please contact ",bR(R)," to request a change."]}):we&&(ge=v.jsxs(hr,{color:"warning",children:[ae," Please adjust your balance values."]}));const xe=ce.length>0;let je=!1,Le=!1;for(let ve of Y)if(ve.isNew&&(je=!0),ve.allocated!=ve.requested&&(Le=!0),je&&Le)break;const re=Y.map(ve=>ve.resourceId),De={},G=_&&X?i.allowedActions.Exchange.resources.filter(ve=>!re.includes(ve.resourceId)).map(ve=>{De[ve.resourceId]=ve;const Ie=Wx(ve.name),Xe=Ie.short?`${Ie.short} (${Ie.full.replace(/ \([^(]+\)/,"")})`:Ie.full;return{value:ve.resourceId,label:Xe}}):[],Z=_?i.allowedActions.Exchange.resources.map(ve=>ve.resourceId):[];let ne;const be=[],Ee=[];for(let ve of Y)ve.isCredit?ne=ve:(be.push(ve),Ee.push(X&&(ve.isNew||ve.allocated!=ve.requested)?Gd.edited:Z.includes(ve.resourceId)?"":Gd.disabled));const _e=`Add ${be.length?"another":"a"} resource to your exchange...`,Ne=ve=>ve.requested-ve.used,ke=(ve,Ie)=>{const Xe=Ie.allocated-Ie.used,qe=Hp(Number(ve.replace(/[^0-9-.]/g,"")),Ie.decimalPlaces),Ae=Math.min(0,Xe);if(qe<Ae)return Ae;let xt=ne.requested*ne.exchangeRates.base.unitCost;const ht=(Ie.allocated-Ie.requested)*Ie.exchangeRates.base.unitCost,Ht=Math.min(xt,ht);xt-=Ht;let Gt=Ie.requested-Ie.used+Ht/Ie.exchangeRates.base.unitCost;return xt>0&&(Gt+=xt/Ie.exchangeRates.current.unitCost),qe>Gt?Hp(Gt,Ie.decimalPlaces,"floor"):qe},Oe=[{key:"name",name:"Resource",format:(ve,Ie)=>v.jsx(Xd,{resource:Ie}),width:Math.min(350,window.innerWidth*.3)},{key:"isActive",name:"Status",format:(ve,Ie)=>v.jsx(eh,{status:ve?"Active":Ie.isNew?"New":"Inactive"}),width:100},{key:"unit",name:"Unit",width:150,format:(ve,Ie)=>Ie.isBoolean?v.jsx(v.Fragment,{children:"—"}):[v.jsx("abbr",{title:lO(ve,Ie.exchangeRates.base.unitCost,ne.name),children:ve},"base"),v.jsx(uA,{creditResource:ne,resource:Ie,short:!0},"discount")]},{key:"used",name:"Usage",class:"text-end",format:(ve,Ie)=>Ie.isBoolean?v.jsx(v.Fragment,{children:"—"}):v.jsxs(v.Fragment,{children:[ga(ve),(R.currentUser.resourceIds.includes(Ie.resourceId)||R.currentUser.resourceAccountInactiveIds.includes(Ie.resourceId))&&v.jsx(jx,{icon:"table",onClick:()=>u(Ie.resourceRepositoryKey),target:"_blank",title:`${Ie.name} Usage Details`})]})}];return _&&Oe.push({key:"requested",name:"Balance",class:"text-end",rowClass:ve=>X&&Z.includes(ve.resourceId)?Gd.input:"",format:(ve,Ie)=>{const Xe=X&&Z.includes(Ie.resourceId);return Ie.isBoolean?v.jsx("input",{className:"form-check-input",type:"checkbox",checked:ve==1,disabled:!Xe,onChange:qe=>m(Ie.resourceId,qe.target.checked?1:0)}):Xe?v.jsx(e6,{classes:"text-end w-100",clean:qe=>ke(qe,Ie),format:ga,label:`Balance for ${Ie.name}`,setValue:qe=>{m(Ie.resourceId,qe+Ie.used)},style:{padding:"0.1rem 0.5rem"},value:Ne(Ie)}):ga(Ne(Ie))},formatHeader:ve=>v.jsxs(v.Fragment,{children:[ve,X?v.jsx(Wp,{bg:"secondary",color:"dark",initial:"myprojects.requestedAllocation",placement:"top-end",visible:R.tab=="resources",children:"You can increase or decrease the balance below to change your allocation on a resource. Enter the total amount you would like to have available once the exchange is complete."}):null]})}),v.jsxs("div",{className:"resources",children:[ge,Y.length?v.jsx(KZ,{requestId:t}):null,ne&&(_||I||M)?v.jsxs("h2",{className:"mb-1 mt-2 d-flex justify-content-between",children:[v.jsxs("span",{children:[bc(qt.resourceTypeIcons.credit)," ",ga(ne.requested,ne)," ",ne.unit," available to exchange"]}),I||M?v.jsxs("button",{type:"button",className:"btn btn-sm btn-primary ms-2",onClick:me,children:[bc(qt.resourceTypeIcons.credit)," Request More"," ",i.usesCredits?"Credits":"Units"]}):null]}):null,be.length?v.jsx(su,{columns:Oe,rows:be,rowClasses:Ee,classes:G.length?"mb-0":"",frozenColumns:2,minWidth:"800px"}):v.jsx("div",{className:"card p-2 text-bg-light p-3",children:"This project does not have any resources."}),G.length?v.jsxs(v.Fragment,{children:[v.jsx(GZ,{resources:_&&i.allowedActions.Exchange.resources||[]}),v.jsx("div",{className:"p-2",style:{backgroundColor:"var(--teal-200)",border:"1px solid #cccccc",marginTop:"-1px"},ref:A,children:v.jsx(p_,{classNames:{control:()=>"react-select mb-1"},options:G,onChange:ve=>l(ve.value),placeholder:_e,value:null,"aria-label":_e,formatOptionLabel:({value:ve,label:Ie})=>[Ie,v.jsx(uA,{creditResource:ne,resource:De[ve]},"discount")]})}),be.length?null:v.jsx(Wp,{bg:"secondary",color:"dark",visible:R.tab=="resources",initial:!0,target:A,children:"Ready to get started? Search for a resource to add it to your project."}),v.jsxs("p",{className:"text-black-50",style:{fontSize:"0.9rem"},children:["Need help choosing a resource? Visit our"," ",v.jsx("a",{href:qt.routes.resources_path(),children:"Resource Catalog"}),"."]})]}):null,_&&X?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"mb-3",children:[v.jsx("label",{htmlFor:"resources-reason",className:"form-label required",children:"Please briefly explain how the requested resources and amounts will contribute to your research."}),v.jsx("textarea",{className:"form-control",id:"resources-reason",rows:"2",value:ce,onChange:ve=>h(ve.target.value),style:{minHeight:"3rem"}})]}),v.jsxs("div",{className:"d-flex",children:[v.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:P||!Le&&!xe&&!je,onClick:d,children:"Reset Form"}),v.jsx("button",{ref:N,type:"button",className:"btn btn-secondary",disabled:P||!Le||!xe||we,onClick:w,children:P?"Submitting...":"Submit for Approval"})]}),Le&&!we?v.jsx(Wp,{bg:"secondary",color:"dark",initial:"myprojects.submitExchange",maxWidth:"390px",placement:"right",target:N,visible:R.tab=="resources",children:"When you are finished adding resources, enter a justification for the requested resources above. Then you can submit your exchange for approval."}):null]}):null]})}function n6({question:t,requestId:r,grantNumber:i}){const{request:l,setResourceQuestionValues:u}=ii(r,i),d=k.useId();if(!t||!l||l.error)return;const{attributeSetId:m,attributes:h,fieldType:y,label:x,resourceId:C,values:w}=t,R=h[0],A=R.required?"required":"",N=V=>u(C,m,V.target.value?[V.target.value]:[]),_=V=>{u(C,m,Array.from(V.target.options).filter(({selected:U})=>U).map(({value:U})=>parseInt(U,10)))},I=V=>{const U=parseInt(V.target.value,10),F=V.target.checked?[...w,U]:w.filter(z=>z!=U);u(C,m,F)},M=V=>{const U=parseInt(V.target.value);u(C,m,isNaN(U)?[]:[U])};let P;if(["calendar","integer_only","text"].includes(y)){const V={calendar:"date",integer_only:"number",text:"text"}[y];P=v.jsx("input",{className:"form-control",id:d,type:V,placeholder:R.label,required:R.required,value:w[0]||"",onChange:y=="integer_only"?M:N})}else if(y=="textarea")P=v.jsx("textarea",{className:"form-control",id:d,placeholder:R.label,required:R.required,value:w[0]||"",onChange:N});else if(y=="drop_down"||h.length>=10){const V=y=="multi_sel";P=v.jsxs("select",{id:d,className:"form-select",required:R.required,multiple:V,onChange:V?_:M,value:V?w:w[0]||"",children:[V?null:v.jsx("option",{}),h.map(U=>v.jsx("option",{value:U.resourceAttributeId,children:U.label},U.resourceAttributeId))]})}else P=v.jsx("div",{id:d,children:h.map(V=>{const U=`resource-attribute-${V.resourceAttributeId}`;return v.jsxs("div",{className:"form-check",children:[v.jsx("input",{className:"form-check-input",type:y=="single_sel"?"radio":"checkbox",id:U,value:V.resourceAttributeId,checked:w.includes(V.resourceAttributeId),onChange:y=="single_sel"?M:I}),v.jsx("label",{className:"form-check-label",htmlFor:U,children:V.label})]},V.resourceAttributeId)})});return v.jsxs("div",{className:"mb-3",children:[v.jsx("label",{htmlFor:d,className:`form-label ${A}`,children:x}),P]})}function r6({requestId:t,grantNumber:r}){const{request:i,saveResources:l,toggleResourcesModal:u}=ii(t,r),{project:d}=Qi(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const m=[],h=i.resources.filter(x=>x.allocated!=x.requested).map(x=>{const C=x.requested-x.allocated;return x.questions&&m.push(...x.questions),v.jsxs("li",{className:"list-group-item d-flex justify-content-between align-items-center mb-0",children:[x.name,v.jsx("span",{className:`badge bg-${C>0?"primary":"danger"} rounded-pill`,children:x.isBoolean?yR(x.requested):v.jsxs(v.Fragment,{children:[C>0?"+":"",ga(C,x)," ",x.unit]})})]},x.resourceId)}),y=m.some(({attributes:x,values:C})=>C.length==0&&x[0].required);return v.jsxs(Pn,{size:"lg",show:i.showResourcesModal,onHide:u,scrollable:!0,children:[v.jsx(Pn.Header,{closeButton:!0,children:v.jsx(Pn.Title,{children:"Complete Your Exchange"})}),v.jsxs(Pn.Body,{children:[v.jsx("p",{children:"Please review your exchange to make sure it includes all the resources you need. Once you submit it, you will not be able to request another exchange until this one has been processed by the resource providers."}),v.jsx("ul",{className:"list-group mb-3",children:h}),m.length?v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:"Resource Questions"}),v.jsx("p",{children:"Some of the resources you selected have associated questions. Please answer the questions below."}),m.map(x=>v.jsx(n6,{question:x,requestId:t,grantNumber:r},x.attributeSetId))]}):null]}),v.jsx(Pn.Footer,{children:v.jsxs("div",{className:"d-flex",children:[v.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:u,children:"Continue Editing"}),v.jsx("button",{type:"button",className:"btn btn-secondary",onClick:l,disabled:y,children:"Submit"})]})})]})}function hM({user:t}){const r=`${t.lastName}, ${t.firstName}`;let i=r,l=[t.organization,t.email].filter(u=>u).join(", ");return l&&(i+=`: ${l}`),v.jsx("abbr",{title:i,children:r})}function a6({requestId:t,grantNumber:r}){const{project:i}=Qi(r),{request:l,closeUsageDetailModal:u}=ii(t,r);if(!l||l.error||!i||i.error||!l.usageDetailStatus)return;let d,m="Usage";if(l.usageDetailStatus==ta.pending)d=v.jsx(ah,{});else if(l.usageDetailStatus==ta.error)d=v.jsx(hr,{color:"danger",children:"An error occurred while loading usage data."});else{const{projectTitle:h,resourceDisplayName:y,resourceRepositoryKey:x,users:C}=l.usageDetail,{full:w,short:R}=Wx(y),A=l.resources.find(M=>M.resourceRepositoryKey==x),N=M=>ga(M,{decimalPlaces:A?A.decimalPlaces:void 0}),_={};for(let M of i.users)_[M.username]=M;m=v.jsxs(v.Fragment,{children:["Usage: ",R||w," for ",h]});const I=[{key:"name",name:"Name",format:(M,{lastName:P,firstName:V,portalUsername:U})=>{const F=_[U];return F?v.jsx(hM,{user:F}):`${P}, ${V}`}},{key:"portalUsername",name:"Resource Username",format:M=>{const P=_[M],V=P?P.resourceUsernames[A.resourceId]:null;return V||v.jsx(v.Fragment,{children:"—"})}},{key:"role",name:"Role",format:M=>cO[M].name},{key:"lastWeek",name:"Last Week",class:"text-end",format:N},{key:"lastMonth",name:"Last Month",class:"text-end",format:N},{key:"lastQuarter",name:"Last 3 Months",class:"text-end",format:N},{key:"currentRequest",name:"Current Allocation",class:"text-end",format:N},{key:"total",name:"All Time",class:"text-end",format:N}];d=C.length?v.jsx(su,{rows:C,columns:I}):v.jsx(hr,{color:"info",children:"There is no usage for this resource."})}return v.jsxs(Pn,{show:!0,size:"lg",onHide:u,scrollable:!0,children:[v.jsx(Pn.Header,{closeButton:!0,children:v.jsx(Pn.Title,{children:m})}),v.jsx(Pn.Body,{children:d})]})}var i6=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function o6(t){var r=t.defaultOptions,i=r===void 0?!1:r,l=t.cacheOptions,u=l===void 0?!1:l,d=t.loadOptions;t.options;var m=t.isLoading,h=m===void 0?!1:m,y=t.onInputChange,x=t.filterOption,C=x===void 0?null:x,w=il(t,i6),R=w.inputValue,A=k.useRef(void 0),N=k.useRef(!1),_=k.useState(Array.isArray(i)?i:void 0),I=na(_,2),M=I[0],P=I[1],V=k.useState(typeof R<"u"?R:""),U=na(V,2),F=U[0],z=U[1],X=k.useState(i===!0),Y=na(X,2),ce=Y[0],ie=Y[1],me=k.useState(void 0),ae=na(me,2),we=ae[0],ge=ae[1],xe=k.useState([]),je=na(xe,2),Le=je[0],re=je[1],De=k.useState(!1),G=na(De,2),Z=G[0],ne=G[1],be=k.useState({}),Ee=na(be,2),_e=Ee[0],Ne=Ee[1],ke=k.useState(void 0),Oe=na(ke,2),ve=Oe[0],Ie=Oe[1],Xe=k.useState(void 0),qe=na(Xe,2),Ae=qe[0],xt=qe[1];u!==Ae&&(Ne({}),xt(u)),i!==ve&&(P(Array.isArray(i)?i:void 0),Ie(i)),k.useEffect(function(){return N.current=!0,function(){N.current=!1}},[]);var ht=k.useCallback(function(ln,jn){if(!d)return jn();var Vt=d(ln,jn);Vt&&typeof Vt.then=="function"&&Vt.then(jn,function(){return jn()})},[d]);k.useEffect(function(){i===!0&&ht(F,function(ln){N.current&&(P(ln||[]),ie(!!A.current))})},[]);var Ht=k.useCallback(function(ln,jn){var Vt=_X(ln,jn,y);if(!Vt){A.current=void 0,z(""),ge(""),re([]),ie(!1),ne(!1);return}if(u&&_e[Vt])z(Vt),ge(Vt),re(_e[Vt]),ie(!1),ne(!1);else{var Cn=A.current={};z(Vt),ie(!0),ne(!we),ht(Vt,function(Qn){N&&Cn===A.current&&(A.current=void 0,ie(!1),ge(Vt),re(Qn||[]),ne(!1),Ne(Qn?bt(bt({},_e),{},Up({},Vt,Qn)):_e))})}},[u,ht,we,_e,y]),Gt=Z?[]:F&&we?Le:M||[];return bt(bt({},w),{},{options:Gt,isLoading:ce||h,onInputChange:Ht,filterOption:C})}var s6=k.forwardRef(function(t,r){var i=o6(t),l=wk(i);return k.createElement(f_,Tt({ref:r},l))}),l6=s6;const dA=({description:t,disabled:r=!1,onChange:i,selectedLength:l,totalLength:u})=>{const d=k.useRef(),m=k.useId();let h=l==u,y=l>0&&!h;return k.useEffect(()=>{d.current&&(d.current.checked=h,d.current.indeterminate=y)},[h,y]),v.jsxs(v.Fragment,{children:[v.jsx("input",{className:"custom-checkbox form-check-input",disabled:r,id:m,onChange:x=>i(x.target.checked),ref:d,type:"checkbox"}),v.jsx("label",{className:"form-check-label",htmlFor:m,"aria-description":`${h?"Deselect":"Select"} ${t}`})]})};function u6({grantNumber:t,requestId:r}){const{project:i,addUser:l,resetUsers:u,saveUsers:d,setTab:m,setUserRole:h,statuses:y,toggleUsersResources:x}=Qi(t),{request:C}=i?ii(r||i.currentRequestId,t):{request:null};if(!i||!i.currentRequestId||!C||i.error||C.error)return;const w=i.isManager,R="Exchange"in C.allowedActions,A=i.usersStatus==y.pending,N=i.usersStatus==y.success,_=i.usersStatus==y.error,I=i.users,M=C.resources.filter(Dw),P=M.length==0,V=I.find(ie=>ie.hasChanges)!==void 0,U=I.find(ie=>ie.role!="pi")!==void 0;let F;N&&!V?F=v.jsx(hr,{color:"info",children:"Your changes have been saved. Creation of user accounts can take some time. Users can check the status of their accounts on the Overview tab of the My Projects page."}):_?F=v.jsx(hr,{color:"danger",children:"Sorry, your changes could not be saved. Please try again later."}):w?M.length?P&&(F=v.jsx(hr,{color:"warning",children:"This project does not have any active resources."})):F=v.jsxs(hr,{color:"warning",children:["This project does not have any resources."," ",R?v.jsx("a",{href:qt.routes.request_action_path(C.requestId,"new?action_type=Exchange"),onClick:ie=>{ie.preventDefault(),m("resources")},children:"Exchange credits for resources."}):null," ","Additional users can be added after an exchange is approved."]}):F=v.jsxs(hr,{color:"warning",children:["You do not have permission to manage users for this project. Please contact ",bR(i)," to request a change."]});const z=(ie,me)=>{let ae,we,ge,xe;if(me.key=="all"){ae="all resources for all users",we=je=>x(je),ge=0;for(let je of I)ge+=je.resourceIds.length;xe=I.length*M.length}else ae=`all users for ${me.name}`,we=je=>x(je,null,me.key),ge=I.filter(({resourceIds:je})=>je.includes(me.key)).length,xe=I.length;return v.jsxs(v.Fragment,{children:[me.key=="all"?ie:v.jsx(Xd,{resource:me,userGuide:!1}),v.jsx("br",{}),v.jsx(dA,{description:ae,disabled:me.disabled,onChange:we,selectedLength:ge,totalLength:xe})]})},X=Xx.map(({role:ie,name:me})=>v.jsx("option",{value:ie,children:me},ie)),Y=[{key:"name",name:"Name",width:200,format:(ie,me)=>v.jsx(hM,{user:me})},{key:"username",name:"ACCESS Username",width:100},{key:"role",name:"Role",width:100,format:(ie,me)=>v.jsx("select",{className:"form-select",value:ie,onChange:ae=>h(me.username,ae.target.value),disabled:!w||ie=="pi"||ie=="co_pi",style:{position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:0},children:X.filter(ae=>ae.key==ie||!["pi","co_pi"].includes(ae.key))})}];M.length&&Y.push({key:"all",name:"All Resources",class:`text-center ${Gd.important}`,disabled:!w||P,width:100,format:(ie,me)=>v.jsx(dA,{description:`all users for ${me.name}`,disabled:!w||P,onChange:ae=>x(ae,me.username),selectedLength:me.resourceIds.length,totalLength:M.length}),formatHeader:z});for(let ie of M)Y.push({key:ie.resourceId,name:ie.name,class:"text-center",disabled:!w||!ie.isActive,icon:ie.icon,format:(me,ae)=>v.jsx(v.Fragment,{children:v.jsx("input",{className:"form-check-input",disabled:!w||!ie.isActive,onChange:we=>x(we.target.checked,ae.username,ie.resourceId),type:"checkbox",checked:ae.resourceIds.includes(ie.resourceId)})}),formatHeader:z});const ce=I.map(ie=>ie.hasChanges?Gd.edited:"");return v.jsxs(v.Fragment,{children:[F,v.jsx(su,{rows:I,columns:Y,frozenColumns:M.length?4:3,classes:"mb-0",minWidth:"800px",rowClasses:ce,scrollRowIndex:i.usersNewRowIndex}),w&&M.length&&!P?v.jsx("div",{style:{marginTop:"-1px",position:"relative",zIndex:100},children:v.jsx(l6,{classNames:{control:()=>"react-select"},loadOptions:async ie=>(await h3(ie)).map(ae=>({value:ae,label:`${ae.username} (${ae.firstName} ${ae.lastName}, ${ae.organization}${ae.email?`, ${ae.email}`:""})`})),onChange:ie=>l(ie.value),placeholder:"Add another user...",value:null,"aria-label":"Add another user"})}):null,w&&(M.length&&!P||U)?v.jsxs("div",{className:"d-flex mt-3",children:[v.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:A||!V,onClick:u,children:"Reset Form"}),v.jsx("button",{type:"button",className:"btn btn-secondary",disabled:A||!V,onClick:d,children:A?"Saving...":"Save Changes"})]}):null]})}function c6({requestId:t,grantNumber:r}){const{request:i}=ii(t,r),{project:l,setRequest:u,setTab:d}=Qi(r||i.grantNumber);if(!i)return;if(i.error)return v.jsx(hr,{color:"danger",children:i.error});const m=i.timeStatus||i.actions[0].status.toLowerCase(),h=i.actions.find(({showDeleteModal:x})=>x),y=[];return i.resources.length||y.push("resources"),t!=l.currentRequestId&&y.push("users"),v.jsxs("div",{className:"request",children:[i.returnedForCorrections?v.jsxs(hr,{color:"warning",children:[v.jsx("p",{children:"Your request has been returned for corrections. These are the notes from the Allocations Team"}),v.jsx("div",{className:z3.returnedForCorrectionsNotes,children:i.returnedForCorrectionsNotes}),v.jsx("p",{className:"mt-3",children:"Please address these issues by clicking the Edit button to edit your request."})]}):"",i.timeStatus!="current"&&!i.returnedForCorrections?v.jsxs(hr,{color:"warning",children:["You are viewing ","aeiou".includes(m[0])?"an":"a"," ",m," request."," ",y.length?`You cannot manage ${y.join(" or ")} for this request.`:""," ",l.currentRequestId?v.jsx("a",{href:qt.routes.request_path(l.currentRequestId),onClick:x=>{x.preventDefault(),u(l.currentRequestId)},children:"Go to the current request."}):null]}):null,v.jsxs(r9,{activeKey:l.tab,onSelect:d,className:"mt-3 mb-3",children:[v.jsx(Ub,{eventKey:"overview",title:"Overview",className:"mb-0",children:v.jsx(VW,{requestId:t,grantNumber:r})}),v.jsx(Ub,{eventKey:"resources",title:i.usesCredits?"Credits + Resources":"Resources",disabled:y.includes("resources"),children:v.jsx(t6,{requestId:t})}),v.jsx(Ub,{eventKey:"users",title:"Users + Roles",disabled:y.includes("users"),children:v.jsx(u6,{grantNumber:r})}),v.jsx(Ub,{eventKey:"history",title:"History",children:v.jsx(pW,{requestId:t})})]}),v.jsx(uW,{grantNumber:r,requestId:t}),v.jsx(cW,{grantNumber:r,requestId:t}),v.jsx(dW,{grantNumber:r,requestId:t,actionId:h?h.actionId:null}),v.jsx(r6,{grantNumber:r,requestId:t}),v.jsx(a6,{grantNumber:r,requestId:t})]})}function d6({requestId:t,grantNumber:r}){const{request:i,toggleActionsModal:l,toggleDeleteModal:u}=ii(t,r);if(!i)return;const{actions:d,allowedActions:m}=i,h=[];m&&(("Extension"in m||"Renewal"in m)&&h.push(["Extend End Date",x=>{x.preventDefault(),l()},"calendar-plus"]),"Final Report"in m&&h.push(["Submit Final Report",`${qt.routes.request_action_path(t,"new")}?action_type=Final+Report`,"file-earmark-check"]));const y=d.find(x=>x.isRequest);if(y){const x=y.allowedOperations||[];x.includes("Edit")&&h.push(["Edit",qt.routes.edit_request_path(i.requestId),"pencil"]),x.includes("Delete")&&h.push(["Delete",C=>{C.preventDefault(),u(y.actionId)},"trash","danger"])}return h.map(([x,C,w,R])=>{const A=v.jsxs(v.Fragment,{children:[" ",w&&v.jsx("i",{className:`bi bi-${w} me-1`}),x]});return typeof C=="function"?v.jsx("button",{className:`btn btn-${R||"primary"} ms-2 text-nowrap`,onClick:C,children:A},x):v.jsx("a",{className:`btn btn-${R||"primary"} ms-2 text-nowrap`,href:C,children:A},x)})}function f6({open:t=!1,grantNumber:r,title:i,status:l}){const[u,d]=k.useState(t),{project:m,setRequest:h}=Qi(r,!u&&i&&l&&!0),y=`project-${r}`;let x=null;if(u&&m)if(m.error)x=v.jsx(hr,{color:"danger",children:m.error});else{let C;const w=m.requestsList.map(R=>(R.requestId==m.selectedRequestId&&(C=R),v.jsx("option",{value:R.requestId,children:gR(R)},R.requestId)));x=v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"d-flex",children:[v.jsx("select",{className:"form-select","aria-label":"Select a request to display",onChange:R=>h(parseInt(R.target.value,10)),value:m.selectedRequestId,disabled:w.length<2,children:w}),v.jsx(d6,{requestId:m.selectedRequestId,grantNumber:r})]}),C?v.jsx(c6,{...C,grantNumber:r}):null]})}return v.jsxs("div",{className:`${QI.project} card mb-3`,children:[v.jsxs("div",{className:`card-header d-flex justify-content-between ${u?"":"border-bottom-0"}`,children:[v.jsx("button",{"aria-expanded":u,"aria-controls":y,className:QI.expand,onClick:()=>d(!u),children:v.jsxs("h2",{className:"mb-1 mt-1 text-start",children:[v.jsx("i",{className:`bi bi-caret-${u?"down":"right"}-fill`})," ",/^[A-Z]/.test(r)?v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"grant-number",children:[r,":"]})," "]}):null,i||m.title]})}),v.jsx(eh,{status:l||m.status})]}),v.jsx("div",{className:"card-body",id:y,hidden:!u||!m,children:x})]})}function p6({username:t,openFirst:r=1}){const{error:i,loading:l,projects:u}=F3(t);if(l)return v.jsx(ah,{});if(i)return v.jsxs(hr,{color:"danger",children:[i," ",v.jsx("a",{href:"#",onClick:m=>{m.preventDefault(),window.location.reload()},children:"Reload the page"})," ","to try again."]});if(!u.length)return v.jsxs("div",{className:"pt-5 pb-5 text-bg-light border border-light-subtle",children:[v.jsx("p",{className:"fs-2 text-center mb-4",children:"You don't have any projects yet."}),v.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[v.jsxs("a",{className:"btn btn-primary w-25",href:qt.routes.project_types_path(),children:[v.jsx("i",{className:"bi bi-boxes fs-1 d-block"})," Learn about Project Types"]}),v.jsxs("a",{className:"btn btn-secondary w-25",href:qt.routes.get_your_first_project_path(),children:[v.jsx("i",{className:"bi bi-cpu fs-1 d-block"})," Learn How to Get Your"," ",v.jsx("br",{className:"d-none d-xxl-inline"})," First Project"]}),v.jsxs("a",{className:"btn btn-primary w-25",href:qt.routes.how_to_path(),children:[v.jsx("i",{className:"bi bi-person-plus fs-1 d-block"})," Learn How to Join an Existing Project"]})]})]});const d=new URLSearchParams(window.location.hash.slice(1)).get("grantNumber");return u.map((m,h)=>v.jsx(f6,{open:d?d==m.grantNumber:h<r,...m},m.grantNumber))}const vM={apiUrl:null,listIsFiltered:!1,pages:1,projects:[],projectsLoaded:!1,filtersLoaded:!0,showPagination:!1,singleEntry:!1,filters:{org:"",allocationType:"",allFosToggled:!0,resource:"",requestNumber:""},pageData:{current_page:1,last_page:1},typeLists:{orgs:[],fosTypes:[],allocationTypes:[],resources:[]}},h6=ya("projectsBrowser/initApp",async(t,{getState:r,dispatch:i})=>{const l=window.location.search,u=new URLSearchParams(l);u.has("_requestNumber")&&(i(nR({name:"requestNumber",value:u.get("_requestNumber")})),i(gM(!0))),await i(eR()),await i(Yd()),i(v6())}),v6=ya("projectsBrowser/filterCleanup",async(t,{getState:r,dispatch:i})=>{const u=r().projectsBrowser.typeLists;i(mM({...u,orgs:["-- ALL --"].concat(u.orgs)}))}),eR=ya("projectsBrowser/getFilters",async(t,{getState:r,dispatch:i})=>{const u=`${r().projectsBrowser.apiUrl}?filters=1`,m=await(await fetch(u)).json();i(mM(m.filters))}),Yd=ya("projectsBrowser/getProjects",async(t,{getState:r,dispatch:i})=>{const l=r().projectsBrowser,u=l.filters,d=l.typeLists,m=d.fosTypes.filter(C=>C.checked);let h=`${l.apiUrl}?page=${l.pageData.current_page}`;return u.requestNumber!=""?(h+=`&request_number=${u.requestNumber}`,i(fA(!0))):(i(fA(!1)),m.length!=d.fosTypes.length&&(h+=`&fos=${m.map(C=>C.fosTypeId).join(",")}`),u.org!=""&&u.org!="-- ALL --"&&(h+=`&org=${encodeURIComponent(u.org)}`),u.allocationType!=""&&(h+=`&allocation_type=${u.allocationType}`),u.resource!=""&&(h+=`&resources=${u.resource}`)),await(await fetch(h)).json()}),h_=Vm({name:"projectsBrowser",initialState:vM,reducers:{resetFilters:t=>{t.filters={org:"",allocationType:"",allFosToggled:!1,resource:"",requestNumber:""},t.singleEntry=!1,h_.caseReducers.toggleAllFos(t)},setApiUrl:(t,{payload:r})=>{t.apiUrl=r},setShowPagination:(t,{payload:r})=>{t.showPagination=r},setTypeLists:(t,{payload:r})=>{t.typeLists=r},toggleAllFos:t=>{t.typeLists.fosTypes.forEach(r=>r.checked=!t.filters.allFosToggled),t.filters.allFosToggled=!t.filters.allFosToggled},toggleFos:(t,{payload:r})=>{t.typeLists.fosTypes.forEach(i=>{i.fosTypeId==r.fosTypeId&&(i.checked=!i.checked)}),t.typeLists.fosTypes.filter(i=>i.checked).length!=t.typeLists.fosTypes.length?t.filters.allFosToggled=!1:t.filters.allFosToggled=!0},toggleListFiltered:(t,{payload:r})=>{t.listIsFiltered=r},toggleSingleEntry:(t,{payload:r})=>{t.singleEntry=r},updateFilter:(t,{payload:r})=>{t.filters[r.name]=r.value},updatePageData:(t,{payload:r})=>{r.current_page&&(t.pageData.current_page=r.current_page),r.last_page&&(t.pageData.last_page=r.last_page)}},extraReducers:t=>{t.addCase(Yd.pending,r=>{r.projectsLoaded=!1}).addCase(Yd.fulfilled,(r,i)=>{const l=i.payload;r.projectsLoaded=!0,r.projects=l.projects,l.pages!=r.pageData.last_page&&(r.pageData.current_page=1),r.showPagination=!0,r.pageData.last_page=l.pages}).addCase(Yd.rejected,(r,i)=>{console.log(i.error)}).addCase(eR.pending,r=>{r.filtersLoaded=!1}).addCase(eR.fulfilled,r=>{r.filtersLoaded=!0})}}),{resetFilters:m6,setApiUrl:vJ,setShowPagination:tR,setTypeLists:mM,toggleAllFos:g6,toggleFos:y6,toggleListFiltered:gM,toggleSingleEntry:fA,updateFilter:nR,updatePageData:Bx}=h_.actions,b6=t=>t.projectsBrowser.filters,x6=t=>t.projectsBrowser.filtersLoaded,C6=t=>t.projectsBrowser.listIsFiltered,S6=t=>t.projectsBrowser.singleEntry,E6=t=>t.projectsBrowser.projectsLoaded,w6=t=>t.projectsBrowser.pageData,R6=t=>t.projectsBrowser.projects,_6=t=>t.projectsBrowser.filtersLoaded&&t.projectsBrowser.projectsLoaded&&t.projectsBrowser.pageData.last_page>1,T6=t=>t.projectsBrowser.typeLists,N6=h_.reducer;const I6=()=>{const t=ai(),r=Tn(b6),i=Tn(T6),l=Tn(C6),u=i.orgs.map(_=>({label:_,value:_})),d=k.useRef(),[m,h]=k.useState(null),y={height:"200px",overflowX:"auto",padding:"2px"},x=_=>{t(nR({name:_.target.name,value:_.target.value}))},C=()=>{window.scrollTo(0,0),R(!0),t(tR(!1)),t(Bx({current_page:1})),t(Yd())},w=()=>{h(null),t(tR(!1)),t(Bx({current_page:1})),t(m6()),l&&(window.scrollTo(0,0),t(Yd()),R(!1))},R=_=>{t(gM(_))},A=_=>{h(_),t(nR({name:"org",value:_.value}))},N=()=>r.org==""&&r.allocationType==""&&r.allFosToggled&&r.resource==""&&r.requestNumber=="";return v.jsx("div",{className:"row sticky-top mb-2",children:v.jsxs("div",{className:"col",children:[v.jsx("h3",{className:"mb-2",children:"Filters"}),v.jsx("h5",{className:"mb-1",children:"Field of Science"}),v.jsxs("div",{className:"border mb-3",style:y,children:[v.jsxs("div",{className:"form-check",children:[v.jsx("input",{className:"form-check-input",type:"checkbox",value:"",id:"toggle_all",checked:r.allFosToggled,onChange:()=>{t(g6())}}),v.jsx("label",{className:"form-check-label",htmlFor:"toggle_all",children:"(Toggle All)"})]}),i.fosTypes.map(_=>v.jsxs("div",{className:"form-check",children:[v.jsx("input",{className:"form-check-input",type:"checkbox",value:_.fosTypeId,id:`fos_${_.fosTypeId}`,checked:_.checked,onChange:()=>t(y6(_))}),v.jsx("label",{className:"form-check-label",htmlFor:`fos_${_.fosTypeId}`,children:_.fosName})]},`fos_${_.fosTypeId}`))]}),v.jsx("h5",{id:"org_select_label",className:"mb-1",children:"Organization"}),v.jsx("div",{className:"mb-3",children:v.jsx(p_,{options:u,openMenuOnClick:!0,name:"org",inputId:"orgs_filter",ref:d,closeMenuOnSelect:!0,onChange:A,value:m,"aria-labelledby":"org_select_label"},"org_select")}),v.jsx("h5",{id:"project_type_label",className:"mb-1",children:v.jsx("abbr",{title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),v.jsx("div",{className:"mb-3",children:v.jsxs("select",{name:"allocationType",id:"project_type_select",value:r.allocationType,className:"form-control","aria-labelledby":"project_type_label",onChange:_=>x(_),children:[v.jsx("option",{value:"",children:"-- All --"}),i.allocationTypes.map((_,I)=>v.jsx("option",{value:_,children:_},`allocation_type_${I}`))]})}),v.jsx("h5",{id:"resource_filter_label",className:"mb-1",children:"Resource"}),v.jsx("div",{className:"mb-3",children:v.jsxs("select",{name:"resource",id:"resource_select",value:r.resource,className:"form-control","aria-labelledby":"resource_filter_label",onChange:_=>x(_),children:[v.jsx("option",{value:"",children:"-- All --"}),i.resources.map((_,I)=>v.jsx("option",{value:_.resourceId,children:_.resourceName},`resource_${I}`))]})}),v.jsx("h5",{id:"request_number_label",className:"mb-1",children:"Request Number"}),v.jsx("div",{className:"mb-3",children:v.jsx("input",{type:"text",className:"form-control",value:r.requestNumber,name:"requestNumber",id:"requestNumber","aria-labelledby":"request_number_label",onChange:_=>x(_)})}),v.jsxs("div",{className:"mt-2",children:[v.jsx("button",{className:"btn btn-primary me-2",onClick:C,children:"Submit"}),v.jsx("button",{className:"btn btn-secondary",disabled:N(),onClick:w,children:"Reset"})]})]})})};const j6=({project:t})=>{const r=t.resources,[i,l]=k.useState(!1),u=Tn(S6);let d={flush:!0,className:"mt-3 mb-1",alwaysOpen:!0};const m=_=>{let I=_.units?_.units:_.resourceUnits;const M=_.allocation?_.allocation:_.amount;if(I=="[Yes = 1, No = 0]"||I=="Yes / No")return M=="1.0"?"Yes":"No";{let P="0";return parseInt(M)&&(P=parseInt(M).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),I=="ACCESS Credits"&&(I=v.jsx("span",{className:"tooltip-underline",title:"universal currency that can be exchanged for resource units",children:"ACCESS Credits"})),I=="Dollars"?`$${P}`:v.jsxs(v.Fragment,{children:[P," ",I]})}},h=()=>{const{origin:_,pathname:I}=window.location,M=`${_}${I}?_requestNumber=${t.requestNumber}`;navigator.clipboard.writeText(M),setTimeout(()=>l(!1),2e3)},y=()=>t.requestNumber&&t.requestNumber!=""?`(${t.requestNumber})`:"",x=v.jsx(e0,{id:"link-tooltip",children:"Link Copied!"}),C=()=>{if(y()){const _={background:"none",border:"none",color:"#fff",fontSize:"24px"};return v.jsx(YR,{placement:"left",trigger:"click",defaultShow:i,show:i,onToggle:()=>l(!i),overlay:x,children:v.jsx("button",{onClick:h,style:_,children:v.jsx("i",{className:"bi bi-link-45deg",children:v.jsx("div",{className:"d-none",children:"Direct link to project"})})})})}return v.jsx(v.Fragment,{})},w=()=>!t.coPis||t.coPis.length<=0?"":v.jsxs(v.Fragment,{children:[v.jsx("br",{}),v.jsxs("small",{className:"fst-italic",children:["CoPI(s): ",t.coPis.map(_=>`${_.name} (${_.organization})`).join(";")]})]}),R=()=>!t.beginDate||!t.endDate?"-":v.jsxs(v.Fragment,{children:[t.beginDate," to ",t.endDate]}),A=v.jsxs("table",{className:"table table-striped table-bordered mt-2 mb-0",children:[v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("td",{children:v.jsx("span",{className:"m-0 p-0",children:"Resource"})}),v.jsx("td",{children:v.jsx("span",{className:"m-0 p-0 d-inline",children:"Allocation"})})]})}),v.jsx("tbody",{children:r.map((_,I)=>v.jsxs("tr",{children:[v.jsx("td",{children:_.resourceName}),v.jsx("td",{style:{whiteSpace:"nowrap"},children:m(_)})]},`resource_${t.requestId}_${I}`))})]}),N=()=>u?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"row mt-2 fw-bold",children:v.jsx("div",{className:"col-3 border-bottom",children:"Resources"})}),v.jsx("div",{className:"row",children:v.jsx("div",{className:"col",children:A})}),v.jsx("div",{className:"row mt-2 fw-bold",children:v.jsx("div",{className:"col-3 border-bottom",children:"Abstract"})}),v.jsx("div",{className:"row",children:v.jsx("div",{className:"col",children:v.jsx("div",{style:{whiteSpace:"pre-wrap",padding:"5px"},children:t.abstract})})})]}):v.jsxs(us,{...d,children:[v.jsxs(us.Item,{eventKey:"0",children:[v.jsx(us.Header,{children:"Resources"}),v.jsx(us.Body,{children:A})]}),v.jsxs(us.Item,{eventKey:"1",children:[v.jsx(us.Header,{children:"Abstract"}),v.jsx(us.Body,{children:v.jsx("div",{style:{whiteSpace:"pre-wrap",padding:"5px"},children:t.abstract})})]})]});return v.jsxs("div",{className:"card mb-4",children:[v.jsx("div",{className:"card-header bg-primary text-white",children:v.jsxs("div",{className:"d-flex justify-content-between",children:[v.jsxs("div",{children:[v.jsxs("span",{className:"fw-bold",children:[y()," ",t.requestTitle]})," ",v.jsx("br",{}),v.jsxs("span",{className:"fst-italic",children:[t.pi," ",v.jsxs("small",{children:[" (",t.piInstitution,") "]})]}),w()]}),v.jsx("div",{children:C()})]})}),v.jsxs("div",{className:"card-body",children:[v.jsxs("div",{className:"row fw-bold border-bottom",children:[v.jsx("div",{className:"col",children:v.jsx("span",{className:"mb-1 pb-0",children:"Field of Science"})}),v.jsx("div",{className:"col",children:v.jsx("span",{className:"mb-1 pb-0 tooltip-underline",title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),v.jsx("div",{className:"col",children:v.jsx("span",{className:"mb-1 pb-0",children:"Dates"})})]}),v.jsxs("div",{className:"row",children:[v.jsx("div",{className:"col",children:t.fos}),v.jsx("div",{className:"col",children:t.allocationType}),v.jsx("div",{className:"col",children:R()})]}),N()]})]})},A6=()=>{const t=Tn(R6);return t.length==0?v.jsx("div",{children:"No Projects Found"}):v.jsx("div",{children:t.map((r,i)=>v.jsx(j6,{project:r},`project_${i}`))})};const pA=()=>{const t=ai(),r=Tn(w6),[i,l]=k.useState([]),[u,d]=k.useState("0"),m=Array.from({length:r.last_page},(N,_)=>_),h=10,y={width:"50px",textAlign:"center"};k.useEffect(()=>{w()},[r]);const x=N=>{const _=parseInt(N);t(Bx({current_page:N})),t(Yd(_))},C=N=>(event.preventDefault(),d("0"),x(N),!1),w=()=>{const N=[];if(r.last_page>h)if(r.current_page>4){N.push(1),N.push("spacer");for(var _=1;_>0;_--)r.current_page-_>1&&N.push(r.current_page-_);N.push(["current",r.current_page]);for(var _=1;_<2;_++)r.current_page+_<=r.last_page&&N.push(r.current_page+_);r.last_page-r.current_page>1&&(N.push("spacer"),N.push(r.last_page))}else[1,2,3,4,5].forEach(I=>{I==r.current_page?N.push(["current",I]):N.push(I)}),N.push("spacer"),N.push(r.last_page);else for(var _=1;_<=r.last_page;_++)_==r.current_page?N.push(["current",_]):N.push(_);l(N)},R=N=>{let _="";return typeof N=="object"?[N,_]=N:_=N,N=="spacer"?v.jsx("li",{className:"page-item disabled",children:v.jsx("span",{className:"page-link",style:y,children:". . ."})}):N=="current"?v.jsx("li",{className:"page-item active","aria-current":"page",children:v.jsx("span",{className:"page-link",style:y,children:_})}):v.jsx("li",{className:"page-item",children:v.jsx("button",{className:"page-link",style:y,onClick:()=>x(N),children:_})})},A=()=>v.jsx("li",{className:"page-item",children:v.jsxs("select",{className:"page-link",style:{...y,height:"100%"},value:u,onChange:N=>C(N.target.value),children:[v.jsx("option",{value:"0",children:"Go To"}),m.map(N=>v.jsx("option",{value:N+1,children:N+1},`page_option_${N}`))]})});return v.jsx("div",{children:v.jsx("nav",{"aria-label":"Pages for the table",children:v.jsxs("ul",{className:"pagination",children:[v.jsx("li",{className:`page-item ${r.current_page==1?"disabled":""}`,children:v.jsx("button",{className:"page-link",style:{width:"50px",textAlign:"center"},onClick:()=>x(r.current_page-1),disabled:r.current_page==1,"aria-label":"Previous Page Button",children:"<"})}),i.map((N,_)=>v.jsx(ir.Fragment,{children:R(N)},`page_${_}`)),r.last_page>h?A():"",v.jsx("li",{className:`page-item ${r.current_page==r.last_page?"disabled":""}`,children:v.jsx("button",{className:"page-link",style:y,onClick:()=>x(r.current_page+1),disabled:r.current_page==r.last_page,"aria-label":"Next Page Button",children:">"})})]})})})},O6=({api_url:t})=>{const r=ai(),i=Tn(E6),l=Tn(x6),u=Tn(_6),d=v.jsx("div",{className:"loadingDiv",children:"Loading ..."});return k.useEffect(()=>{r(h6())},[]),v.jsx("div",{className:"container-fluid",children:v.jsxs("div",{className:"row",children:[v.jsx("div",{className:"col-sm-3",children:v.jsx(I6,{})}),v.jsxs("div",{className:"col-sm-9",children:[v.jsx("div",{className:"row",children:v.jsx("div",{className:"col",children:u?v.jsx(pA,{}):""})}),v.jsx("div",{className:"row",id:"projectListRow",children:v.jsx("div",{className:"col",children:i&&l?v.jsx(A6,{}):d})}),v.jsx("div",{className:"row",children:v.jsx("div",{className:"col",children:u?v.jsx(pA,{scroll:"projects_browser_app"}):""})})]})]})})},D6=t=>t.publications_store.publication,k6=t=>t.publications_store.publication.doi,M6=t=>t.publications_store.publication_types,yM=t=>t.publications_store.publication.authors,L6=t=>t.publications_store.tag_categories,P6=t=>t.publications_store.projects,F6=t=>t.publications_store.publication.tags,V6=t=>t.publications_store.errors,bM=t=>t.publications_store.data_loaded,xM=t=>t.publications_store.show_saved,v_=t=>t.publications_store.saving,B6=t=>t.publications_store.modal,CM=t=>t.publications_store.form_valid,SM=t=>!v_(t)&&bM(t)&&CM(t)&&EM(t)&&t.publications_store.projects.filter(r=>r.selected).length>0,EM=t=>{const r=yM(t);return r.length==0?!1:r.filter(i=>i.first_name==""||i.last_name=="").length==0},wM=t=>({type:"UPDATE_PUBLICATION",payload:t}),$6=t=>({type:"UPDATE_FIELD",payload:t}),rR=t=>({type:"CHANGE_PUB_TYPE",payload:t}),z6=t=>({type:"SET_PUBLICATION",payload:t}),U6=()=>({type:"ADD_AUTHOR"}),H6=t=>({type:"UPDATE_AUTHOR",payload:t}),G6=t=>({type:"TOGGLE_REQUEST",payload:t}),Lm=t=>({type:"UPDATE_ERRORS",payload:t}),RM=t=>({type:"HIDE_ERROR",payload:t}),W6=t=>({type:"UPDATE_SELECTED_TAGS",payload:t}),X6=t=>({type:"DELETE_AUTHOR",payload:t}),Y6=t=>({type:"DATA_LOADED",payload:t}),_M=t=>({type:"UPDATE_SHOW_SAVED",payload:t}),Z6=()=>({type:"RESET_STATE"}),fw=t=>({type:"UPDATE_SAVING",payload:t}),q6=t=>({type:"SET_FORM_VALID",payload:t}),TM=t=>({type:"SET_GRANT_NUMBER",payload:t}),J6=t=>({type:"ADD_PROJECT",payload:t}),Q6=(t,r,i)=>{let l=!0;const u=[];for(const m of r)t[m]||(l=!1,u.push(m));const d=t.authors||[];for(const m of d)for(const h of i)m[h]||(l=!1,u.includes(h)||u.push(h));return{formValid:l,missingFields:u}},K6=t=>t.length>0?v.jsxs("div",{role:"alert",children:[v.jsx("p",{children:"Please provide the following information before submitting:"}),v.jsx("ul",{children:t.map(r=>v.jsx("li",{children:e8(r)},r))})]}):null;function e8(t){return t.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}const t8=()=>async(t,r)=>{const i=r().publications_store.publication.doi,l=encodeURIComponent(i).replaceAll(".","%2E"),u="Unable to retrieve publication. Double check your DOI, or continue entering information manually.";fetch(`/publications/lookup?doi=${l}`).then(d=>d.json()).then(d=>{if(d.title!=""){let m=r().publications_store.publication_types.find(h=>h.citation_style_type==d.type);t(rR(m?m.publication_type:"Other")),t(z6(d))}else t(Lm(u))},d=>{t(Lm(u))})},n8=()=>async(t,r)=>{const i=r().publications_store.grant_number,l=qt.routes.publications_find_project_path();await fetch(`${l}?grant_number=${i}`).then(u=>u.json()).then(u=>{t(J6(u)),t(TM(""))},()=>{t(Lm("Unable to find a project with this grant number."))})},NM=()=>async t=>{const r=/^\/requests/.test(window.location.pathname)?qt.routes.publication_path("new.json"):window.location.href+".json";await fetch(r).then(i=>i.json()).then(i=>{t(Y6(i))})},IM=()=>async(t,r)=>{const i=r().publications_store,l=i.projects.filter(R=>R.selected),u=Object.keys(i.selected_tags).map(R=>i.selected_tags[R]).flat(),d={...i.publication},m=i.errors,{formValid:h,missingFields:y}=Q6(d,["title","publication_year","publication_month"],["first_name","last_name"]);if(!h){m.length>0&&Array.from(m).forEach(A=>{t(RM(A.id))});const R=K6(y);t(Lm(R));return}const x={authenticity_token:document.getElementsByName("authenticity_token")[0].value,publication:d,authors:d.authors.map(R=>({...R,order:0})),tags:u,projects:l};let C,w;d.publication_id?(C=qt.routes.publication_path(d.publication_id),w="PATCH"):(C=qt.routes.publications_path(),w="POST"),t(fw(!0)),await fetch(C,{method:w,headers:{"Content-Type":"application/json"},body:JSON.stringify(x)}).then(R=>{i.redirect?window.location.href=qt.routes.publications_path():(d.publication_id||(t(Z6()),t(NM())),t(_M(!0)),t(fw(!1)))},()=>{t(fw(!1)),t(Lm("There was an error saving this publication."))})},r8=({doi:t,updatePublication:r,doiLookup:i})=>v.jsx("div",{className:"row mb-3",children:v.jsxs("div",{className:"col",children:[v.jsx("label",{htmlFor:"doi",className:"form-label",children:"DOI"}),v.jsxs("div",{className:"input-group",children:[v.jsx("input",{type:"text",className:"form-control",id:"doi",name:"publication[doi]","aria-label":"DOI Input and Search box","aria-describedby":"doi_button",value:t,onChange:l=>r(l.target.value)}),v.jsx("button",{className:"btn btn-primary",type:"button",id:"doi_button",onClick:()=>i(),children:"Lookup Publication"})]})]})}),a8=t=>({doi:k6(t)}),i8=t=>({updatePublication:r=>t(wM({key:"doi",value:r})),doiLookup:()=>t(t8())}),o8=ps(a8,i8)(r8),s8=({author:t,authorKey:r,updateAuthor:i,deleteAuthor:l})=>{const u=h=>{i({key:h.target.name,value:h.target.value,idx:r})},d=h=>v.jsx("td",{children:v.jsx("input",{type:"text",className:"form-control",name:h,id:h,value:t[h],onChange:y=>u(y)})},`field_${h}`),m=["first_name","last_name","affiliation"];return v.jsxs("tr",{children:[m.map(h=>d(h)),v.jsx("td",{children:r!==0&&v.jsx("button",{className:"btn btn-sm btn-danger",onClick:()=>l(r),children:v.jsx("i",{className:"bi bi-trash"})})})]})},l8=t=>({updateAuthor:r=>t(H6(r)),deleteAuthor:r=>t(X6(r))}),hA=ps(null,l8)(s8),u8=({authors:t,addAuthor:r,authors_exist:i})=>{const l=t.length===0,u=()=>i?"":v.jsx("div",{className:"alert alert-danger",children:"You must add at least one author and each author must have a first and last name"});return v.jsxs("div",{children:[u(),v.jsxs("table",{className:"table",children:[v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("th",{children:"First Name"}),v.jsx("th",{children:"Last Name"}),v.jsx("th",{children:"Affiliation"}),v.jsx("th",{})]})}),v.jsxs("tbody",{children:[t.map((d,m)=>v.jsx(hA,{author:d,authorKey:m},`author_${m}`)),l&&v.jsx(hA,{author:r()})]})]}),v.jsx("button",{className:"btn btn-primary mt-3",onClick:()=>r(),children:"Add Author"})]})},c8=t=>({authors:yM(t),authors_exist:EM(t)}),d8=t=>({addAuthor:()=>t(U6())}),f8=ps(c8,d8)(u8),p8=({category:t,publication_tags:r,updateSelectedTags:i,index:l})=>{const u=k.useRef(null),d=()=>{const h=r.filter(y=>y.label==t.label)[0];return h?h.options:[]},m=h=>{i({category:t.label,tags:h})};return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"fw-bold mb-1",children:t.label}),v.jsx("div",{className:"mb-3",children:v.jsx(p_,{classNames:{control:h=>h.isFocused?"custom-select-selected":"border-grey-300"},defaultValue:d(),options:t.options,isMulti:!0,openMenuOnClick:!0,name:`tags_${l}`,inputId:`tags_${l}`,ref:u,closeMenuOnSelect:!1,onChange:m})})]})},h8=t=>({updateSelectedTags:r=>t(W6(r))}),v8=t=>({publication_tags:F6(t)}),m8=ps(v8,h8)(p8),g8=({projects:t,toggleProject:r})=>{const i=u=>`list-group-item list-group-item-action clickable ${u.selected?"list-group-item-success":""}`,l=()=>t.filter(u=>u.selected).length>0;return v.jsx("div",{className:"row",children:v.jsxs("div",{className:"col",children:[l()?"":v.jsx("div",{className:"alert alert-danger",children:"You must select at least one project"}),v.jsx("div",{className:"list-group",children:t.map((u,d)=>v.jsxs("div",{className:i(u),onClick:()=>r(d),children:[u.grant_number,": ",u.title]},`project_${u.grant_number}`))})]})})},y8=t=>({projects:P6(t)}),b8=t=>({toggleProject:r=>t(G6(r))}),x8=ps(y8,b8)(g8),C8=({grant_number:t,setGrantNumber:r,grantSearch:i})=>v.jsx("div",{className:"row",children:v.jsxs("div",{className:"col",children:["If your project isn't listed above, you can manually add it by entering the grant number below.",v.jsxs("div",{className:"input-group mt-1",children:[v.jsx("input",{type:"text",className:"form-control",value:t,onChange:l=>r(l.target.value),placeholder:"Enter a grant number"}),v.jsx("button",{className:"btn btn-primary",onClick:()=>i(),children:"Find Project"})]})]})}),S8=t=>({setGrantNumber:r=>t(TM(r)),grantSearch:()=>t(n8())}),E8=t=>({grant_number:t.publications_store.grant_number}),w8=ps(E8,S8)(C8),R8=({publication:t,updateField:r,publication_types:i,changePubType:l,updatePublication:u,tag_categories:d,savePublication:m,modal:h,save_enabled:y,setFormValid:x,form_valid:C})=>{const w=P=>{P.target.value.trim()==""?x(!1):x(!0),u({key:"title",value:P.target.value})},R=()=>t.fields.map((P,V)=>v.jsx("div",{className:"row mb-3",children:v.jsxs("div",{className:"col",children:[v.jsx("label",{htmlFor:`field_${P.csl_field_name}`,className:"form-label",children:P.name}),v.jsx("input",{type:"text",className:"form-control",name:`field_${P.csl_field_name}`,id:`field_${P.csl_field_name}`,value:P.field_value,onChange:U=>r({index:V,value:U.target.value})})]})},`field_${P.csl_field_name}`)),A=()=>{const P=new Date().getFullYear()+2;let V=1980;const U=[];for(;V<=P;)U.push(V++);const F=["January","February","March","April","May","June","July","August","September","October","November","December"],z=v.jsx("i",{className:"bi bi-asterisk text-danger"});return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"row mb-3",children:v.jsxs("div",{className:"col",children:[v.jsxs("label",{className:"form-label",htmlFor:"publication_title",children:["Title ",z]}),v.jsx("input",{name:"publication_title",id:"publication_title",type:"text",className:`form-control ${C?"":"is-invalid"}`,value:t.title,onChange:X=>w(X)})]})}),v.jsx("div",{className:"row mb-3",children:v.jsxs("div",{className:"col",children:[v.jsx("label",{className:"form-label",htmlFor:"publication_year",children:"Year Published"}),v.jsx("select",{name:"publication_year",id:"publication_year",className:"form-control",value:t.publication_year,onChange:X=>{u({key:"publication_year",value:X.target.value})},children:U.map(X=>v.jsx("option",{value:X,children:X},`year_${X}`))})]})}),v.jsx("div",{className:"row mb-3",children:v.jsxs("div",{className:"col",children:[v.jsx("label",{className:"form-label",htmlFor:"publication_month",children:"Month Published"}),v.jsx("select",{name:"publication_month",id:"publication_month",className:"form-control",value:t.publication_month,onChange:X=>{u({key:"publication_month",value:X.target.value})},children:F.map((X,Y)=>v.jsx("option",{value:Y+1,children:X},`month_${Y}`))})]})})]})},N=v.jsxs("div",{className:"card",children:[v.jsx("div",{className:"card-header",children:v.jsx("h2",{children:"Publication Information"})}),v.jsxs("div",{className:"card-body",children:[v.jsx("p",{className:"mb-2",children:'Enter information about this publication below. If you have a DOI, you may use the "Lookup Publication" button to attempt to find this information automatically.'}),v.jsx(o8,{}),v.jsx("div",{className:"row mb-3",children:v.jsxs("div",{className:"col",children:[v.jsx("label",{htmlFor:"publication_type",className:"form-label",children:"Publication Type"}),v.jsx("select",{name:"publication[publication_type]",id:"publication_type",className:"form-control",value:t.publication_type,onChange:P=>l(P.target.value),children:i.map(P=>v.jsx("option",{value:P.publication_type,children:P.publication_type},`pub_type_${P.type_id}`))})]})}),A(),R()]})]}),_=v.jsxs("div",{className:"card mt-3",children:[v.jsxs("div",{className:"card-header d-flex",children:[v.jsx("h2",{children:"Authors"}),v.jsxs(Wp,{children:[`Add authors by clicking the "Add Authors" button below and entering the author's details. You may also remove authors by clicking the `,v.jsx("i",{className:"bi bi-trash fw-bold text-danger"})," ","button"]})]}),v.jsx("div",{className:"card-body",children:v.jsx(f8,{})})]}),I=v.jsxs("div",{className:"card mt-3",children:[v.jsxs("div",{className:"card-header d-flex",children:[v.jsx("h2",{children:"Tags"}),v.jsx(Wp,{children:"Add related tags from the lists below. You may choose multiple tags per category."})]}),v.jsx("div",{className:"card-body",children:d.map((P,V)=>v.jsx(m8,{index:V,category:P},`tc_${V}`))})]}),M=v.jsxs("div",{className:"card mt-3",children:[v.jsxs("div",{className:"card-header d-flex",children:[v.jsx("h2",{children:"Associated Projects"}),v.jsx(Wp,{children:"Click/Tap each project that this publication is related to."})]}),v.jsxs("div",{className:"card-body",children:[v.jsx(x8,{}),v.jsx("hr",{}),v.jsx(w8,{})]})]});return v.jsxs(v.Fragment,{children:[N,_,I,M,h?null:v.jsx("p",{className:"mt-3",children:v.jsx("button",{onClick:()=>m(),className:"btn btn-success",disabled:!y,children:"Save Publication"})})]})},_8=t=>({publication:D6(t),publication_types:M6(t),tag_categories:L6(t),saving:v_(t),modal:B6(t),save_enabled:SM(t),form_valid:CM(t)}),T8=t=>({updateField:r=>t($6(r)),changePubType:r=>t(rR(r)),updatePublication:r=>t(wM(r)),savePublication:()=>t(IM()),setFormValid:r=>t(q6(r))}),N8=ps(_8,T8)(R8),I8=({errors:t,hideError:r})=>v.jsx(v.Fragment,{children:t.map(i=>v.jsxs("div",{className:"alert alert-danger alert-dismissible sticky-top",children:[i.message,v.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(i.id)})]},`err_${i.id}`))}),j8=t=>({errors:V6(t)}),A8=t=>({hideError:r=>t(RM(r))}),O8=ps(j8,A8)(I8),D8=({show_saved:t,updateShowSaved:r})=>{const i=v.jsxs("div",{className:"alert alert-success alert-dismissible sticky-top",children:["Publication Saved Successfully!",v.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(!1)})]});return t?i:v.jsx(v.Fragment,{})},k8=t=>({show_saved:xM(t)}),M8=t=>({updateShowSaved:r=>t(_M(r))}),L8=ps(k8,M8)(D8),P8=({getData:t,data_loaded:r})=>(k.useEffect(()=>{t()},[]),v.jsxs(v.Fragment,{children:[v.jsx(L8,{}),v.jsx(O8,{}),r?v.jsx(N8,{}):v.jsx(ah,{})]})),F8=t=>({data_loaded:bM(t)}),V8=t=>({getData:()=>t(NM())}),jM=ps(F8,V8)(P8),B8=({saving:t,savePublication:r,showSaved:i,updatePublications:l,save_enabled:u})=>{const[d,m]=k.useState(!1);return k.useEffect(()=>{!t&&i&&l()},[t,i]),v.jsxs(v.Fragment,{children:[v.jsxs(Pn,{size:"xl",show:d,onHide:()=>m(!1),scrollable:!0,children:[v.jsx(Pn.Header,{closeButton:!0,children:v.jsx(Pn.Title,{children:"Add Publication"})}),v.jsx(Pn.Body,{children:v.jsx(jM,{})}),v.jsx(Pn.Footer,{children:v.jsxs("div",{className:"d-flex",children:[v.jsx("button",{type:"button",className:"btn btn-danger me-2",onClick:()=>m(!1),children:"Cancel"}),v.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>{r(),m(!1)},children:"Save Publication"})]})})]}),v.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>m(!0),children:"Add a New Publication"})]})},$8=t=>({saving:v_(t),showSaved:xM(t),save_enabled:SM(t)}),z8=t=>({savePublication:()=>t(IM())}),U8=ps($8,z8)(B8),H8=({usernames:t=[],publication_ids:r=[]})=>{const[i,l]=k.useState(t),[u,d]=k.useState(r),[m,h]=k.useState([]),y=k.useRef(i),x=_=>{y.current=_,l(_)},C=async()=>{const I=await(await fetch(qt.routes.search_publications_path({usernames:i}))).json();h(I)};k.useEffect(()=>{C()},[i]),k.useEffect(()=>{addEventListener("requestAddRole",_=>x([...y.current,_.detail.username])),addEventListener("requestRemoveRole",_=>x(y.current.filter(I=>I!=_.detail.username)))},[]);let w=!1,R=!1;const A=m.map(_=>{const I=u.includes(_.publication_id);w=w||I,R=R||!I;const M=new Date(_.publication_year,_.publication_month-1);return v.jsxs("tr",{children:[v.jsx("td",{children:v.jsx("input",{type:"checkbox",name:"publication_ids[]",value:_.publication_id,checked:I,onChange:()=>d(I?u.filter(P=>P!=_.publication_id):[...u,_.publication_id])})}),v.jsx("td",{children:_.title}),v.jsx("td",{children:_.authors.map(P=>`${P.first_name} ${P.last_name}`).join(", ")}),v.jsx("td",{children:_.publication_type}),v.jsxs("td",{children:[M.toLocaleString("default",{month:"short"})," ",_.publication_year]})]},_.publication_id)}),N=`${R?"Select":"Deselect"} all`;return v.jsxs("div",{className:"publications-select",children:[v.jsxs("table",{className:"table",children:[v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("th",{children:v.jsx("input",{type:"checkbox",value:"","aria-label":N,title:N,checked:w&&!R,onChange:()=>d(R?m.map(_=>_.publication_id):[]),ref:_=>{_&&(_.indeterminate=w&&R)}})}),v.jsx("th",{children:"Title"}),v.jsx("th",{children:"Authors"}),v.jsx("th",{children:"Type"}),v.jsx("th",{children:"Date"})]})}),v.jsx("tbody",{children:A})]}),v.jsx(U8,{updatePublications:C})]})},G8=()=>`${Math.random().toString(36).slice(2)}`,aR=document.querySelector("#publications-react"),W8=aR?aR.dataset:{},vA={publication_types:[],tag_categories:[],publication:{},projects:[],errors:[],selected_tags:{},data_loaded:!1,saving:!1,show_saved:!1,redirect:W8.redirect||!1,modal:aR==null,form_valid:!1,grant_number:""},X8=(t=vA,r)=>{const{type:i,payload:l}=r;switch(i){case"UPDATE_FIELD":return wo(t,d=>(d.publication.fields[l.index].field_value=l.value,d));case"CHANGE_PUB_TYPE":return wo(t,d=>{let m=d.publication_types.find(h=>h.publication_type==l).fields;return m.forEach(h=>{const y=d.publication.fields.find(x=>x.csl_field_name==h.csl_field_name);y&&(h.value=y.value)}),d.publication.publication_type=l,d.publication.fields=m,d});case"UPDATE_PUBLICATION":return{...t,publication:{...t.publication,[l.key]:l.value}};case"SET_PUBLICATION":return wo(t,d=>(d.publication.fields.forEach(m=>{m.field_value=l[m.csl_field_name]}),Object.keys(d.publication).forEach(m=>{l[m]&&(d.publication[m]=l[m])}),d.form_valid=l.title.trim()!="",d));case"ADD_AUTHOR":{const u={portal_username:"",first_name:"",middle_name:"",last_name:"",prefix:"",suffix:"",initials:"",affiliation:"",hash:{}};return wo(t,m=>{m.publication.authors.push(u)})}case"UPDATE_AUTHOR":return wo(t,d=>{d.publication.authors[l.idx][l.key]=l.value});case"TOGGLE_TAG":return wo(t,d=>{let m=d.tag_categories.find(h=>h.publication_tags_category_id==l.publication_tags_category_id);m.tags[l.idx].selected=!m.tags[l.idx].selected});case"TOGGLE_REQUEST":return wo(t,d=>(d.projects[l].selected=!d.projects[l].selected,d));case"UPDATE_ERRORS":{const u={id:G8(),message:l};return{...t,errors:[...t.errors,u]}}case"HIDE_ERROR":{const u=t.errors.filter(d=>d.id!=l);return{...t,errors:u}}case"UPDATE_SELECTED_TAGS":return wo(t,d=>{const m=l.tags.map(h=>h.value);return d.selected_tags[l.category]=m,d});case"DELETE_AUTHOR":return wo(t,d=>(d.publication.authors.splice(l,1),d));case"DATA_LOADED":return wo(t,d=>(d.publication=l.publication,d.form_valid=l.publication.title.trim()!="",d.publication.authors.forEach(m=>{m.affiliation||(m.affiliation="")}),d.publication_types=l.publication_types,d.tag_categories=l.tag_categories,d.projects=l.publication.projects,l.publication.tags.forEach(m=>d.selected_tags[m.label]=m.options.map(h=>h.value)),d.data_loaded=!0,d));case"UPDATE_SHOW_SAVED":return{...t,show_saved:l};case"UPDATE_SAVING":return{...t,saving:l};case"RESET_STATE":return vA;case"SET_FORM_VALID":return{...t,form_valid:l};case"SET_GRANT_NUMBER":return{...t,grant_number:l};case"ADD_PROJECT":return{...t,projects:[...t.projects,l]};default:return t}},Y8={catalogs:{},filteredResources:[],filters:[],hasErrors:!1,onRamps:!1,resources:[],resourcesLoaded:!1,resourceSorting:{"NSF Capacity Resources":1,"NSF Innovative Testbeds":2,"Other NSF-funded Resources":3,"Services and Support":4}},fx=ya("resourceCatalog/getResources",async(t,{dispatch:r})=>{r(mA(!1));let i=[];t.catalogSources?i=t.catalogSources:i.push({...t,catalogLabel:"Default"}),t.onRamps&&i.push({apiUrl:"https://allocations.access-ci.org/resources.json",catalogLabel:"ACCESS",allowedCategories:[],allowedFilters:[],allowedResources:[],excludedCategories:["Resource Category"],excludedFilters:[],excludedResources:["ACCESS Credits"]});const l=await Promise.all(i.map(async u=>{const m=await(await fetch(u.apiUrl)).json();return{...u,data:m}}));r(Q8({data:l,params:t})),r(mA(!0))});ya("resourceCatalog/getResources",async(t,{dispatch:r})=>{r(eq(t)),r(OM())});const Z8=t=>{const r=[],i=t.filter(l=>l.features.filter(u=>u.selected).length>0);return t.forEach(l=>{l.features.forEach(u=>{u.selected&&r.push(u.featureId)})}),i.map(l=>({...l,features:l.features.filter(u=>u.selected)}))},q8=t=>{const r={},i={};let l={};return t.forEach(d=>{r[d.catalogLabel]={...d,resourceIds:[],selected:!1,catalogId:d.catalogLabel.replace(/[^(A-z)]/,"")},delete r[d.catalogLabel].data,d.data.forEach(m=>{if(iR(d.allowedResources,d.excludedResources,m.resourceName)){const{categories:h,formattedResource:y}=J8(d,m,l);i[m.resourceId]=y,r[d.catalogLabel].resourceIds.push(m.resourceId),l=h}})}),{resources:Object.keys(i).map(d=>i[d]),catalogs:r,categories:l}},iR=(t,r,i)=>!t&&!r||t&&t.length==0&&r&&r.length==0?!0:t&&t.length>0?t.find(l=>l==i):r&&r.length>0?!r.find(l=>l==i):!0,J8=(t,r,i)=>{const l=[];let u="";r.featureCategories.filter(h=>h.categoryIsFilter).forEach(h=>{const y=h.categoryId;h.categoryName=="ACCESS Resource Grouping"?u=h.features[0].name:(!i[y]&&iR(t.allowedCategories,t.excludedCategories,h.categoryName)&&(i[y]={categoryId:y,categoryName:h.categoryName,categoryDescription:h.categoryDescription,features:{}}),h.features.forEach(x=>{const C={featureId:x.featureId,name:x.name,description:x.description,categoryId:y,selected:!1},w=iR(t.allowedFilters,t.excludedFilters,C.name);w&&l.push(C),i[y]&&w&&!i[y].features[x.featureId]&&(i[y].features[x.featureId]=C)}))});const d=l.map(h=>h.name).sort((h,y)=>h>y);return{formattedResource:{...r,resourceName:r.resourceName.trim(),features:d,featureIds:l.map(h=>h.featureId),sortCategory:u},categories:i}},AM=Vm({name:"resourceCatalog",initialState:Y8,reducers:{handleResponse:(t,{payload:r})=>{const i=r.data,{resources:l,catalogs:u,categories:d}=q8(i);t.catalogs=u,t.onRamps=r.params.onRamps;for(const m in d){const h=d[m],y=[];for(const x in h.features)y.push(h.features[x]);t.filters.push({...h,features:y.sort((x,C)=>x.name>C.name)})}t.filters=t.filters.sort((m,h)=>m.categoryName.localeCompare(h.categoryName)),t.resources=l.sort((m,h)=>m.resourceName.localeCompare(h.resourceName)).sort((m,h)=>t.resourceSorting[m.sortCategory]>t.resourceSorting[h.sortCategory]),t.filteredResources=[...t.resources],t.resourcesLoaded=!0},resetFilters:t=>{t.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),t.filteredResources=[...t.resources]},setResourcesLoaded:(t,{payload:r})=>{t.resourcesLoaded=r},toggleCatalog:(t,{payload:r})=>{const{catalog:i,selected:l}=r;t.catalogs[i.catalogLabel].selected=l},toggleFilter:(t,{payload:r})=>{if(r){const m=r,y=t.filters.find(x=>x.categoryId==m.categoryId).features.find(x=>x.featureId==m.featureId);y.selected=!y.selected}const i=Z8(t.filters);let l=[];if(i.length>0){const m=i.map(h=>h.features.map(y=>y.featureId));t.resources.forEach(h=>{let y=0;m.forEach(x=>{let C=!1;h.featureIds.forEach(w=>{x.indexOf(w)>=0&&(C=!0)}),C&&(y+=1)}),y>=m.length&&l.push(h)})}else l=t.resources;const u=Object.keys(t.catalogs).map(m=>t.catalogs[m]),d=u.filter(m=>m.selected);if(d.length>0&&d.length<u.length){const m=d.map(h=>h.resourceIds).flat();l=l.filter(h=>m.indexOf(h.resourceId)>=0)}t.filteredResources=l}},extraReducers:t=>{t.addCase(fx.pending,r=>{}).addCase(fx.fulfilled,(r,i)=>{}).addCase(fx.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:Q8,processData:mJ,resetFilters:K8,setResourcesLoaded:mA,toggleCatalog:eq,toggleFilter:OM}=AM.actions,DM=t=>t.resourceCatalog.catalogs,tq=t=>t.resourceCatalog.filters,nq=t=>t.resourceCatalog.hasErrors,rq=t=>t.resourceCatalog.resourcesLoaded,aq=t=>t.resourceCatalog.filteredResources,iq=AM.reducer,oq="_access_1yrq0_2",sq="_resourceName_1yrq0_6",lq="_description_1yrq0_11",uq="_filterBar_1yrq0_15",cq="_cardBg_1yrq0_20",dq="_active_1yrq0_25",fq="_plainButton_1yrq0_30",pq="_btnSecondary_1yrq0_40",hq="_filtersHidden_1yrq0_51",vq="_filtersVisible_1yrq0_57",Ro={access:oq,resourceName:sq,description:lq,filterBar:uq,cardBg:cq,active:dq,plainButton:fq,btnSecondary:pq,filtersHidden:hq,filtersVisible:vq},mq=({resource:t})=>{const[r,i]=k.useState(!0),l=x=>{const C={"CPU Compute":"cpu-fill","GPU Compute":"gpu-card",Cloud:"cloud-fill","Commercial Cloud":"cloud-fill",Storage:"database-fill","Service / Other":"journal","Innovative / Novel Compute":"pc"};return C[x]?v.jsx("i",{title:x,className:`bi bi-${C[x]} me-2 `},`${t.resourceId}_${C[x]}`):""},u=()=>v.jsxs("span",{className:"float-end",children:[t.features.map(x=>l(x)),t.resourceType]}),d=x=>x.length==0?"":v.jsx(v.Fragment,{children:x.map((C,w)=>v.jsx("span",{className:"badge text-bg-secondary me-2",children:C},`feature_${t.resourceId}_${w}`))}),m=()=>{let x=t.resourceDescription;return x&&x!=""?(Ro.plainButton,v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"row",children:v.jsxs("div",{className:"col fw-bold",children:["About ",t.resourceName]})}),v.jsx("div",{className:"row mb-3",children:v.jsxs("div",{className:"col ",children:[v.jsx("div",{className:Ro.description,dangerouslySetInnerHTML:{__html:x}}),""]})})]})):""},h=()=>t.recommendedUse&&t.recommendedUse!=""?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"row",children:v.jsx("div",{className:"col fw-bold",children:"Recommended Use"})}),v.jsx("div",{className:"row mb-3",children:v.jsx("div",{className:"col",children:v.jsx("div",{className:Ro.description,dangerouslySetInnerHTML:{__html:t.recommendedUse}})})})]}):"",y=()=>Ro.cardBg;return v.jsx(v.Fragment,{children:v.jsx("div",{className:"row",children:v.jsx("div",{className:"col",children:v.jsxs("div",{className:"card mb-3",children:[v.jsxs("div",{className:`card-header ${y()}`,children:[v.jsx("span",{className:"",children:t.resourceName}),u()]}),v.jsxs("div",{className:"card-body",children:[v.jsx("div",{className:"row mb-3",children:v.jsx("div",{className:"col",children:d(t.features)})}),h(),m()]}),v.jsx("div",{className:"card-footer",children:v.jsxs("a",{target:"_blank",href:t.userGuideUrl,className:"btn btn-info me-2 fw-bold",children:["System Info ",v.jsx("i",{className:"bi bi-box-arrow-up-right"})]})})]})})})})},gq=({filter:t})=>{const r=ai(),i=()=>{r(OM(t))};return v.jsx("div",{className:"row",children:v.jsx("div",{className:"col",children:v.jsxs("div",{className:"form-check",children:[v.jsx("label",{className:"form-check-label",htmlFor:`filter_${t.featureId}`,children:t.name}),v.jsx("input",{className:"form-check-input",type:"checkbox",value:t.featureId,id:`filter_${t.featureId}`,checked:t.selected,onChange:i})]})})})},yq=({category:t})=>v.jsx("div",{className:"row",children:v.jsxs("div",{className:"col",children:[v.jsx("div",{className:"fw-bold mb-1 mt-1",children:v.jsx("abbr",{title:t.categoryDescription,children:t.categoryName})}),t.features.map(r=>v.jsx(gq,{filter:r},r.featureId))]})}),bq=({onReset:t})=>{const r=ai(),i=Tn(DM),l=Tn(tq),u=l.filter(d=>d.features.filter(m=>m.selected).length>0);return Object.keys(i).map(d=>i[d]),v.jsxs(v.Fragment,{children:[l.map(d=>v.jsx(yq,{category:d},d.categoryId)),v.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>r(K8()),disabled:u.length==0,children:"Reset Filters"}),v.jsx("button",{className:"btn btn-outline-primary ms-3 mt-2 mb-2",onClick:t,children:"Close Menu"})]})},xq=()=>{const[t,r]=k.useState(!1),i=k.useRef(null),l=()=>{const u=i.current;t?(u.style.height="0px",u.classList.remove(Ro.filtersVisible),u.classList.add(Ro.filtersHidden)):(u.style.height=u.scrollHeight+"px",u.classList.remove(Ro.filtersHidden),u.classList.add(Ro.filtersVisible)),r(!t)};return v.jsx("div",{className:Ro.filterBar,children:v.jsx("div",{className:"row mb-2",children:v.jsx("div",{className:"col pt-2 pb-2",children:v.jsxs("div",{className:"p-1 pb-0 border-bottom bg-white shadow",children:[v.jsxs("button",{className:"btn btn-outline-primary mb-1 mt-1",type:"button",onClick:l,children:[v.jsx("i",{className:"bi bi-filter"})," Filters"]}),v.jsx("div",{className:`${Ro.filtersHidden} pe-2 ps-2`,id:"filtersList",ref:i,children:v.jsx(bq,{onReset:l})})]})})})})},Cq=()=>{const t=Tn(aq);return t.length==0?v.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):v.jsx("div",{className:"card shadow",children:v.jsxs("div",{className:"card-body",children:[v.jsx(xq,{}),t.map(r=>v.jsx(mq,{resource:r},r.resourceId))]})})},Sq=({baseUrl:t})=>v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"row",children:v.jsx("div",{className:"col d-flex",children:v.jsx("img",{alt:"Access Logo",style:{height:"75px"},src:`${t}/access_logo.png`})})}),v.jsx("div",{className:"row",children:v.jsx("div",{className:"col",children:v.jsx("h3",{className:"border-bottom",children:"NSF ACCESS Resources"})})}),v.jsx("div",{className:"row",children:v.jsxs("div",{className:"col",children:[v.jsx("h4",{children:"Discover the nationwide NSF cyberinfrastructure"}),v.jsx("p",{children:"Need advanced computing and storage options for your research or classroom? The ACCESS program has been established and funded by the U.S. National Science Foundation to help you - the nation's researchers and educators - to use some of the country's most advanced computing systems and services - at no cost to you."}),v.jsx("p",{children:"Thousands of researchers, instructors, and students from institutions large and small use ACCESS-integrated resources every year. With more than 30 resources from more than 15 resource providers, there's bound to be a resource for you, your lab, or your class."}),v.jsx("p",{children:"Explore the resource catalog below - filter the list to discover the resources that have the features or services to accelerate your activities. The System Info button will take you to the resource's documentation for all the details."}),v.jsx("p",{children:'Ready to begin? Click the "Get Your First Project" button and join the ACCESS community!'}),v.jsx("p",{children:v.jsxs("a",{href:"https://allocations.access-ci.org/get-your-first-project",target:"_blank",className:`btn btn-secondary fw-bold ${Ro.btnSecondary}`,children:["Get Your First Project ",v.jsx("i",{className:"bi bi-box-arrow-up-right"})]})}),v.jsxs("p",{children:["If you have feedback for ACCESS, please complete our",v.jsx("a",{target:"_blank",href:"https://docs.google.com/forms/d/e/1FAIpQLSdn-SXokNB_5s0r2SA_S9ZIZWZFlVPRD2OHepTH5HY2YND_zw/viewform",children:" Feedback Form"}),".",v.jsx("br",{}),"If you have questions, please",v.jsx("a",{target:"_blank",href:"https://support.access-ci.org/user/login?destination=/open-a-ticket",children:" open a help ticket"}),"."]})]})})]}),Eq=({catalogSources:t=[],onRamps:r=!1,baseUrl:i})=>{const l=ai(),u=Tn(rq),d=Tn(nq),m=Tn(DM),h=Object.keys(m).map(x=>m[x]);k.useEffect(()=>{l(fx({catalogSources:t,onRamps:r}))},[]);const y=()=>r&&h.length>1?v.jsx(v.Fragment,{children:h.filter(x=>x.catalogLabel!="ACCESS").map((x,C)=>v.jsx("div",{className:"row mb-3",children:v.jsxs("div",{className:"col",children:[v.jsxs("h4",{className:"border-bottom",children:["About ",x.catalogLabel]}),v.jsx("div",{dangerouslySetInnerHTML:{__html:x.description}})]})},`catalog_${C}`))}):"";return d?v.jsx("div",{className:"row",children:v.jsx("div",{className:"col text-center mt-2",children:v.jsx("h4",{children:"Unable to Load Resources"})})}):u?v.jsxs("div",{className:`container mt-3 ${Ro.access}`,children:[r?v.jsx(Sq,{baseUrl:i}):"",y(),v.jsx("div",{className:"row",children:v.jsx("div",{className:"col",children:v.jsx(Cq,{})})})]}):v.jsx(ah,{})},wq={filters:[],resources:[],filteredResources:[],resourcesLoaded:!1,hasErrors:!1,resourceSorting:{"NSF Capacity Resources":1,"NSF Innovative Testbeds":2,"Other NSF-funded Resources":3,"Services and Support":4}},px=ya("resourceCatalog/getResources",async(t,{dispatch:r})=>{const l=await(await fetch(t.apiUrl)).json();r(_q({data:l,params:t}))}),Rq=t=>{const r=[],i=t.filter(l=>l.features.filter(u=>u.selected).length>0);return t.forEach(l=>{l.features.forEach(u=>{u.selected&&r.push(u.featureId)})}),i.map(l=>({...l,features:l.features.filter(u=>u.selected)}))},gA=(t,r,i)=>{if(t.length==0&&r.length==0)return!0;if(t.length>0)return t.find(l=>l==i);if(r.length>0)return!r.find(l=>l==i)},kM=Vm({name:"resourceCatalog",initialState:wq,reducers:{handleResponse:(t,{payload:r})=>{const i=r.data,l=r.params.excludedCategories,u=r.params.excludedFilters,d=r.params.excludedResources,m=r.params.allowedCategories,h=r.params.allowedFilters,y=[],x={};i.filter(C=>!d.includes(C.resourceName)).forEach(C=>{const w=[];let R="";C.featureCategories.filter(N=>N.categoryIsFilter).forEach(N=>{const _=N.categoryId;N.categoryName=="ACCESS Resource Grouping"?R=N.features[0].name:(!x[_]&&gA(m,l,N.categoryName)&&(x[_]={categoryId:_,categoryName:N.categoryName,categoryDescription:N.categoryDescription,features:{}}),N.features.forEach(I=>{const M={featureId:I.featureId,name:I.name,description:I.description,categoryId:_,selected:!1},P=gA(h,u,M.name);P&&w.push(M),x[_]&&P&&!x[_].features[I.featureId]&&(x[_].features[I.featureId]=M)}))});const A={resourceName:C.resourceName,resourceId:C.resourceId,resourceType:C.resourceType,organization:C.organization,units:C.units,userGuideUrl:C.userGuideUrl,resourceDescription:C.resourceDescription,description:C.description,recommendedUse:C.recommendedUse,features:w.map(N=>N.name).sort((N,_)=>N>_),featureIds:w.map(N=>N.featureId),sortCategory:R};y.push(A)});for(const C in x){const w=x[C],R=[];for(const A in w.features)R.push(w.features[A]);t.filters.push({...w,features:R.sort((A,N)=>A.name>N.name)})}m.length>0?t.filters=t.filters.sort((C,w)=>m.indexOf(C.categoryName)>m.indexOf(w.categoryName)):t.filters=t.filters.sort((C,w)=>C.categoryName.localeCompare(w.categoryName)),t.resources=y.sort((C,w)=>C.resourceName.localeCompare(w.resourceName)).sort((C,w)=>t.resourceSorting[C.sortCategory]>t.resourceSorting[w.sortCategory]),t.filteredResources=[...t.resources],t.resourcesLoaded=!0},resetFilters:t=>{t.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),t.filteredResources=[...t.resources]},toggleFilter:(t,{payload:r})=>{const i=r,u=t.filters.find(m=>m.categoryId==i.categoryId).features.find(m=>m.featureId==i.featureId);u.selected=!u.selected;const d=Rq(t.filters);if(d.length>0){const m=[],h=d.map(y=>y.features.map(x=>x.featureId));t.resources.forEach(y=>{let x=0;h.forEach(C=>{let w=!1;y.featureIds.forEach(R=>{C.indexOf(R)>=0&&(w=!0)}),w&&(x+=1)}),x>=h.length&&m.push(y)}),t.filteredResources=m}else t.filteredResources=[...t.resources]}},extraReducers:t=>{t.addCase(px.pending,r=>{}).addCase(px.fulfilled,(r,i)=>{}).addCase(px.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:_q,processData:gJ,resetFilters:Tq,toggleFilter:Nq}=kM.actions,Iq=t=>t.resourceCatalog.hasErrors,jq=t=>t.resourceCatalog.resourcesLoaded,Aq=t=>t.resourceCatalog.filters,Oq=t=>t.resourceCatalog.filteredResources,Dq=kM.reducer,kq=({resource:t})=>{const r=l=>l.length==0?"":v.jsx("ul",{children:l.map((u,d)=>v.jsx("li",{children:u},`feature_${t.resourceId}_${d}`))}),i=(l,u)=>u&&u!=""?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"row",children:v.jsx("div",{className:"col fw-bold",children:l})}),v.jsx("div",{className:"row mb-3",children:v.jsx("div",{className:"col",dangerouslySetInnerHTML:{__html:u}})})]}):"";return v.jsxs(us.Item,{eventKey:t.resourceId,children:[v.jsx(us.Header,{children:t.resourceName}),v.jsxs(us.Body,{children:[v.jsx("table",{className:"table",children:v.jsxs("tbody",{children:[v.jsxs("tr",{children:[v.jsx("td",{className:"fw-bold",children:"Resource Type:"}),v.jsx("td",{children:t.resourceType})]}),v.jsxs("tr",{children:[v.jsx("td",{className:"fw-bold",children:"Organization:"}),v.jsx("td",{children:t.organization})]}),v.jsxs("tr",{children:[v.jsx("td",{className:"fw-bold",children:"Units:"}),v.jsx("td",{children:t.units})]}),v.jsxs("tr",{children:[v.jsx("td",{className:"fw-bold",children:"User Guide:"}),v.jsx("td",{children:t.userGuideUrl==""?"":v.jsx("a",{href:t.userGuideUrl,target:"_blank",rel:"noreferrer",children:"Link to User Guide"})})]}),v.jsxs("tr",{children:[v.jsx("td",{className:"fw-bold",children:"Features Available:"}),v.jsx("td",{children:r(t.features)})]})]})}),i("Resource Description",t.resourceDescription),i("Allocations Description",t.description),i("Recommended Use",t.recommendedUse)]})]})},Mq=()=>{const t=Tn(Oq);return t.length==0?v.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):v.jsxs("div",{children:[v.jsx("h4",{className:"mb-0",children:"Resources"}),v.jsx(us,{children:t.map(r=>v.jsx(kq,{resource:r},r.resourceId))})]})},Lq=({filter:t})=>{const r=ai(),i=()=>{r(Nq(t))};return v.jsx("div",{className:"row",children:v.jsx("div",{className:"col",children:v.jsxs("div",{className:"form-check",children:[v.jsx("label",{className:"form-check-label",htmlFor:`filter_${t.featureId}`,children:t.name}),v.jsx("input",{className:"form-check-input",type:"checkbox",value:t.featureId,id:`filter_${t.featureId}`,checked:t.selected,onChange:i})]})})})},Pq=({category:t})=>v.jsx("div",{className:"row",children:v.jsxs("div",{className:"col",children:[v.jsx("div",{className:"fw-bold mb-1 mt-1",children:v.jsx("abbr",{title:t.categoryDescription,children:t.categoryName})}),t.features.map(r=>v.jsx(Lq,{filter:r},r.featureId))]})}),Fq=()=>{const t=ai(),r=Tn(Aq),i=r.filter(l=>l.features.filter(u=>u.selected).length>0);return v.jsxs("div",{children:[v.jsx("h4",{className:"mb-0",children:"Filters"}),r.map(l=>v.jsx(Pq,{category:l},l.categoryId)),v.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>t(Tq()),disabled:i.length==0,children:"Reset Filters"})]})},Vq=({apiUrl:t,excludedCategories:r=[],excludedFilters:i=[],excludedResources:l=[],allowedCategories:u=[],allowedFilters:d=[]})=>{const m=ai(),h=Tn(jq),y=Tn(Iq);return k.useEffect(()=>{m(px({apiUrl:t,excludedCategories:r,excludedFilters:i,excludedResources:l,allowedCategories:u,allowedFilters:d}))},[]),y?v.jsx("div",{className:"row",children:v.jsx("div",{className:"col text-center mt-2",children:v.jsx("h4",{children:"Unable to Load Resources"})})}):h?v.jsx(v.Fragment,{children:v.jsxs("div",{className:"row mt-3",children:[v.jsx("div",{className:"col-sm-4",children:v.jsx(Fq,{})}),v.jsx("div",{className:"col-sm-8",children:v.jsx(Mq,{})})]})}):v.jsx(ah,{})},MM={apiUrl:null,pages:1,publications:[],publicationsLoaded:!0,showPagination:!1,filterSelections:{allJournalsToggled:!1,doi:"",journal:"",authorName:"",publicationType:""},pageData:{current_page:1,last_page:1},filterOptions:{journals:[],publication_types:[]}},Bq=ya("publicationsBrowser/initApp",async(t,{getState:r,dispatch:i})=>{await i(Zd()),await i(LM())}),Zd=ya("publicationsBrowser/getPublications",async(t,{getState:r})=>{const i=r().publicationsBrowser;let l=`${i.apiUrl}?page=${i.pageData.current_page}`;if(i.filterSelections.doi!==""&&(l+=`&doi=${encodeURIComponent(i.filterSelections.doi)}`),i.filterSelections.authorName!==""&&(l+=`&author_name=${encodeURIComponent(i.filterSelections.authorName)}`),i.filterSelections.journal!==""){const m=i.filterSelections.journal;i.filterOptions.journals.includes(m)&&(l+=`&journal=${encodeURIComponent(i.filterSelections.journal)}`)}return i.filterSelections.publicationType!==""&&(l+=`&publication_type=${encodeURIComponent(i.filterSelections.publicationType)}`),await(await fetch(l)).json()}),LM=ya("publicationsBrowser/getFilters",async(t,{getState:r,dispatch:i})=>{const u=`${r().publicationsBrowser.apiUrl}?filters=1`;return(await(await fetch(u)).json()).filters||[]}),PM=Vm({name:"publicationsBrowser",initialState:MM,reducers:{updatePageData:(t,{payload:r})=>{r.current_page&&(t.pageData.current_page=r.current_page),r.last_page&&(t.pageData.last_page=r.last_page)},updateFilterSelection:(t,{payload:r})=>{t.filterSelections[r.name]=r.value},resetFilters:t=>{t.filterSelections={doi:"",allJournalsToggled:!1,journal:"",authorName:"",publicationType:""}}},extraReducers:t=>{t.addCase(Zd.pending,r=>{r.publicationsLoaded=!1,r.error=null}).addCase(Zd.fulfilled,(r,i)=>{r.publicationsLoaded=!0,r.publications=i.payload.publications||[],i.payload.pagination&&i.payload.pagination.last_page!==r.pageData.last_page&&(r.pageData.current_page=1),r.showPagination=!0,i.payload.pagination&&(r.pageData.last_page=i.payload.pagination.last_page)}).addCase(Zd.rejected,(r,i)=>{r.publicationsLoaded=!0,r.error=i.error.message}).addCase(LM.fulfilled,(r,i)=>{r.filterOptions=i.payload})}}),{updatePageData:$q,updateFilterSelection:yA,resetFilters:zq}=PM.actions,Uq=t=>t.publicationsBrowser.filterSelections,Hq=t=>t.publicationsBrowser.publicationsLoaded,Gq=t=>t.publicationsBrowser.publications,Wq=t=>t.publicationsBrowser.filterOptions,Xq=t=>t.publicationsBrowser.pageData,Yq=PM.reducer,oR=t=>(t=t.startsWith("https")?t.split("https://doi.org/").join(""):t,t),Zq=({publication:t,index:r})=>{const i=t.authors.map(w=>`${w.last_name}, ${w.first_name.substr(0,1)}.`).join(", "),l=t.projects.map(w=>w.grant_number),u=t.publication_type==="Other"?"Publication":t.publication_type,d=t.projects,m=r%2==0?"bg-light":"",h={textIndent:"-50px",marginLeft:"50px"},y=t.publication_datas,x=w=>{switch(w){case"Publication Type":return t.publication_type;case"Publication Year":return t.publication_year?t.publication_year:"N/A";case"DOI":return t.doi?v.jsx("a",{href:`https://doi.org/${oR(t.doi)}`,target:"_blank",className:"fw-normal",children:oR(t.doi)}):!1;case"Journal":return t.journal.title?t.journal.title:!1;case"Volume/Issue":return y["Volume/Issue"]?y["Volume/Issue"]:!1;case"Pages":return y.Pages?y.Pages:!1;case"Publisher":return y.Publisher?y.Publisher:!1}},C=()=>{const w=x("Publication Year");let R=t.title;const A=x("Journal"),N=x("DOI"),_=x("Volume/Issue"),I=x("Pages"),M=x("Publisher");return R[R.length-1]!="."&&(R+="."),t.publication_type==="Journal Paper"||t.publication_type==="Other"?v.jsxs(v.Fragment,{children:[i," (",w,"). ",R,A?v.jsxs("em",{className:"ms-1",children:[A,"."]}):"",_?v.jsxs("span",{className:"ms-1",children:[_,","]}):"",I?v.jsxs("span",{className:"ms-1",children:[I,"."]}):"",N?v.jsx("span",{className:"ms-1",children:N}):""]}):t.publication_type==="Conference Paper"||t.publication_type==="Software"?v.jsxs(v.Fragment,{children:[i," (",w,"). ",R,A?v.jsxs("em",{className:"ms-1",children:[A,"."]}):"",N?v.jsx("span",{className:"ms-1",children:N}):""]}):t.publication_type==="Book"||t.publication_type==="Book Chapter"?v.jsxs(v.Fragment,{children:[i," (",w,").",v.jsx("em",{className:"ms-1",children:R}),M?v.jsxs("em",{className:"ms-1",children:[M,"."]}):"",N?v.jsx("span",{className:"ms-1",children:N}):""]}):t.publication_type==="Dataset"?v.jsxs(v.Fragment,{children:[i," (",w,").",v.jsx("em",{className:"ms-1",children:R})," [Dataset]. ",M||"",".",N?v.jsx("span",{className:"ms-1",children:N}):""]}):t.publication_type==="Dissertation"?v.jsxs(v.Fragment,{children:[i," (",w,").",v.jsx("em",{className:"ms-1",children:R}),". [Doctoral dissertation",M?", "+M:"","].",N?v.jsx("span",{className:"ms-1",children:N}):""]}):""};return v.jsx("div",{className:"col-12 mb-2 border-bottom",children:v.jsx("div",{className:"card",style:{border:"unset"},children:v.jsxs("div",{className:`card-body pt-2 mb-2 ${m}`,children:[v.jsx("p",{style:h,children:C()}),d.length>0&&v.jsxs(v.Fragment,{children:[v.jsxs("p",{className:"text-decoration-underline mb-2",children:["Projects Supporting this ",u]}),v.jsx("ul",{style:{...h,listStyleType:"none"},children:l.map((w,R)=>v.jsx("li",{id:`project_${R}`,children:v.jsx("a",{href:`https://allocations.access-ci.org/current-projects?_requestNumber=${w}`,id:`grant_link${R}`,target:"_blank",style:{fontWeight:"600"},children:w})},`grant_${R}`))})]})]})})})},qq=()=>{const t=Tn(Gq);return t.length===0?v.jsx("div",{children:"No Publications Found"}):v.jsx("div",{children:t.map((r,i)=>v.jsx(Zq,{publication:r,index:i},`publication_${i}`))})},Jq=()=>{const t=ai(),r=Tn(Wq),i=Tn(Uq),l=()=>{window.scrollTo(0,0),t(tR(!1)),t(Bx({current_page:1})),t(Zd())},u=()=>{t(zq()),window.scrollTo(0,0),t(Zd())};if(!r.journals)return v.jsx("p",{children:"Loading filters..."});const d=h=>{t(yA({name:h.target.name,value:h.target.value}))},m=h=>{t(yA({name:h.target.name,value:h.target.value}))};return v.jsx("div",{className:"row sticky-top mb-2",children:v.jsxs("div",{className:"col",children:[v.jsx("h3",{className:"mb-2",children:"Filters"}),v.jsx("h5",{id:"journals_filter_label",className:"mb-1",children:"Journals"}),v.jsxs("div",{className:"mb-3",children:[v.jsx("input",{placeholder:"Type to search...",list:"journal_list",name:"journal",id:"journal_select",value:i.journal,className:"form-control","aria-labelledby":"journal_filter_label",onChange:h=>d(h),onInput:h=>m(h)}),v.jsx("datalist",{id:"journal_list",children:r.journals.map((h,y)=>v.jsx("option",{value:h,children:h},`journal_${y}`))})]}),v.jsx("h5",{id:"author_name_label",className:"mb-1",children:"Author Name"}),v.jsx("div",{className:"mb-3",children:v.jsx("input",{placeholder:"Last Name, First Initial",type:"text",className:"form-control",value:i.authorName,name:"authorName",id:"authorName","aria-labelledby":"author_name",onChange:d})}),v.jsx("h5",{id:"doi_number_label",className:"mb-1",children:"DOI"}),v.jsx("div",{className:"mb-3",children:v.jsx("input",{type:"text",className:"form-control",value:oR(i.doi),name:"doi",id:"doiNumber","aria-labelledby":"doi_number_label",onChange:d})}),v.jsx("h5",{id:"publication_type_label",className:"mb-1",children:"Publication Type"}),v.jsx("div",{className:"mb-3",children:v.jsxs("select",{name:"publicationType",id:"publication_type_select",value:i.publicationType,className:"form-control","aria-labelledby":"publication_type_label",onChange:h=>d(h),children:[v.jsx("option",{value:"",children:"-- All --"}),r.publication_types.map((h,y)=>v.jsx("option",{value:h,children:h},`publication_type_${y}`))]})}),v.jsxs("div",{className:"mt-2",children:[v.jsx("button",{className:"btn btn-primary me-2",onClick:l,children:"Submit"}),v.jsx("button",{className:"btn btn-secondary",onClick:u,children:"Reset"})]})]})})},bA=()=>{const t=ai(),r=Tn(Xq),[i,l]=k.useState([]),[u,d]=k.useState("0"),m=Array.from({length:r.last_page},(N,_)=>_),h=10,y={width:"50px",textAlign:"center"};k.useEffect(()=>{w()},[r]);const x=N=>{const _=parseInt(N);t($q({current_page:N})),t(Zd(_))},C=N=>(event.preventDefault(),d("0"),x(N),!1),w=()=>{const N=[];if(r.last_page>h)if(r.current_page>4){N.push(1),N.push("spacer");for(var _=1;_>0;_--)r.current_page-_>1&&N.push(r.current_page-_);N.push(["current",r.current_page]);for(var _=1;_<2;_++)r.current_page+_<=r.last_page&&N.push(r.current_page+_);r.last_page-r.current_page>1&&(N.push("spacer"),N.push(r.last_page))}else[1,2,3,4,5].forEach(I=>{I==r.current_page?N.push(["current",I]):N.push(I)}),N.push("spacer"),N.push(r.last_page);else for(var _=1;_<=r.last_page;_++)_==r.current_page?N.push(["current",_]):N.push(_);l(N)},R=N=>{let _=N,I="";return typeof N=="object"?[_,I]=N:I=N,_=="spacer"?v.jsx("li",{className:"page-item disabled",children:v.jsx("span",{className:"page-link",style:y,children:". . ."})}):_=="current"?v.jsx("li",{className:"page-item active","aria-current":"page",children:v.jsx("span",{className:"page-link",style:y,children:I})}):v.jsx("li",{className:"page-item",children:v.jsx("button",{className:"page-link",style:y,onClick:()=>x(_),children:I})})},A=()=>v.jsx("li",{className:"page-item",children:v.jsxs("select",{className:"page-link",style:{...y,height:"100%"},value:u,onChange:N=>C(N.target.value),children:[v.jsx("option",{value:"0",children:"Go To"}),m.map(N=>v.jsx("option",{value:N+1,children:N+1},`page_option_${N}`))]})});return v.jsx("div",{children:v.jsx("nav",{"aria-label":"Pages for the table",children:v.jsxs("ul",{className:"pagination",children:[v.jsx("li",{className:`page-item ${r.current_page==1?"disabled":""}`,children:v.jsx("button",{className:"page-link",style:{width:"50px",textAlign:"center"},onClick:()=>x(r.current_page-1),disabled:r.current_page==1,"aria-label":"Previous Page Button",children:"<"})}),i.map((N,_)=>v.jsx(ir.Fragment,{children:R(N)},`page_${_}`)),r.last_page>h?A():"",v.jsx("li",{className:`page-item ${r.current_page==r.last_page?"disabled":""}`,children:v.jsx("button",{className:"page-link",style:y,onClick:()=>x(r.current_page+1),disabled:r.current_page==r.last_page,"aria-label":"Next Page Button",children:">"})})]})})})},Qq=({apiUrl:t})=>{const r=ai(),i=Tn(Hq),l=v.jsx("div",{className:"loadingDiv",children:"Loading ..."});return k.useEffect(()=>{r(Bq())},[r]),v.jsx("div",{className:"container-fluid",children:v.jsxs("div",{className:"row",children:[v.jsx("div",{className:"col-sm-3",children:v.jsx(Jq,{})}),v.jsxs("div",{className:"col-sm-9",children:[v.jsx("div",{className:"row",children:v.jsx("div",{className:"col",children:v.jsx(bA,{})})}),v.jsx("div",{className:"row",id:"publicationListRow",children:v.jsx("div",{className:"col",children:i?v.jsx(qq,{}):l})}),v.jsx("div",{className:"row",children:v.jsx("div",{className:"col",children:v.jsx(bA,{})})})]})]})})};function Kq(t,{bootstrapFonts:r=!0,bootstrapVariables:i=!0,access:l=!1,baseUrl:u=null}={}){const d=t.attachShadow({mode:"open"}),m=document.createElement("div"),h=document.createElement("div"),y=document.createElement("div"),x=document.createElement("div"),C=document.createElement("link"),w=document.createElement("link"),R=document.createElement("link");return u=u??(typeof document>"u"?require("url").pathToFileURL(__filename).href:qN&&qN.src||new URL("xras-ui.cjs",document.baseURI).href).replace(/\/[^/]+$/,""),C.rel="stylesheet",C.href=`${u}/bootstrap.css`,w.rel="stylesheet",w.href=`${u}/xras-ui.css`,R.rel="stylesheet",R.href=`${u}/access.css`,y.appendChild(x),h.appendChild(y),m.appendChild(h),d.appendChild(C),d.appendChild(w),d.appendChild(R),d.appendChild(m),m.classList.add("bootstrap"),i&&h.classList.add("bootstrap-variables"),r&&(y.classList.add("bootstrap-fonts"),y.setAttribute("data-bs-theme","light")),x}function eJ({target:t}){Oi.createRoot(t).render(v.jsx(_H,{}))}function tJ({availableResources:t,canAdd:r,relativeUrlRoot:i,target:l}){Oi.createRoot(l).render(v.jsx(JH,{availableResources:t,canAdd:r,relativeUrlRoot:i}))}function nJ({resourceId:t,target:r,setExternalSubmit:i,relativeUrlRoot:l}){Oi.createRoot(r).render(v.jsx(gO,{resourceId:t,setExternalSubmit:i,relativeUrlRoot:l}))}function rJ({target:t,username:r,routes:i}){xR(i);const l=rh({reducer:{api:P3}});Oi.createRoot(t).render(v.jsx(rf,{store:l,children:v.jsx(p6,{username:r})}))}function aJ({target:t,apiUrl:r}){const i=rh({reducer:{projectsBrowser:N6},preloadedState:{projectsBrowser:{...vM,apiUrl:r}}});Oi.createRoot(t).render(v.jsx(rf,{store:i,children:v.jsx(O6,{})}))}function iJ({target:t,apiUrl:r}){const i=rh({reducer:{publicationsBrowser:Yq},preloadedState:{publicationsBrowser:{...MM,apiUrl:r}}});Oi.createRoot(t).render(v.jsx(rf,{store:i,children:v.jsx(Qq,{apiUrl:r})}))}function FM(){return rh({reducer:{publications_store:X8}})}function oJ({target:t,routes:r}){xR(r),Oi.createRoot(t).render(v.jsx(rf,{store:FM(),children:v.jsx(jM,{})}))}function sJ({target:t,routes:r}){xR(r),Oi.createRoot(t).render(v.jsx(rf,{store:FM(),children:v.jsx(H8,{...JSON.parse(t.dataset.publicationsSelectProps)})}))}function lJ({target:t,catalogSources:r,onRamps:i,baseUrl:l}){const u=rh({reducer:{resourceCatalog:iq}});Oi.createRoot(t).render(v.jsx(rf,{store:u,children:v.jsx(Eq,{catalogSources:r,onRamps:i,baseUrl:l})}))}function uJ({target:t,apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:d,allowedFilters:m}){const h=rh({reducer:{resourceCatalog:Dq}});Oi.createRoot(t).render(v.jsx(rf,{store:h,children:v.jsx(Vq,{apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:d,allowedFilters:m})}))}exports.allocationsMap=eJ;exports.editResource=nJ;exports.onRampsResourceCatalog=lJ;exports.projects=rJ;exports.projectsBrowser=aJ;exports.publications=oJ;exports.publicationsBrowser=iJ;exports.publicationsSelect=sJ;exports.resourceCatalog=uJ;exports.resources=tJ;exports.shadowTarget=Kq;
70
+ `]))),gI=function(t,n){var r=t.isFocused,o=t.size,s=t.theme,i=s.colors,l=s.spacing.baseUnit;return H({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?i.neutral60:i.neutral20,padding:l*2})},Hc=function(t){var n=t.delay,r=t.offset;return K("span",{css:yp({animation:"".concat(mI," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},vI=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,s=o===void 0?4:o,i=mn(t,aI);return K("div",G({},Oe(H(H({},i),{},{innerProps:n,isRtl:r,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),K(Hc,{delay:0,offset:r}),K(Hc,{delay:160,offset:!0}),K(Hc,{delay:320,offset:!r}))},yI=function(t,n){var r=t.isDisabled,o=t.isFocused,s=t.theme,i=s.colors,l=s.borderRadius,c=s.spacing;return H({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?i.neutral5:i.neutral0,borderColor:r?i.neutral10:o?i.primary:i.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},xI=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,s=t.innerRef,i=t.innerProps,l=t.menuIsOpen;return K("div",G({ref:s},Oe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":l}),i,{"aria-disabled":r||void 0}),n)},bI=xI,wI=["data"],SI=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},_I=function(t){var n=t.children,r=t.cx,o=t.getStyles,s=t.getClassNames,i=t.Heading,l=t.headingProps,c=t.innerProps,u=t.label,d=t.theme,f=t.selectProps;return K("div",G({},Oe(t,"group",{group:!0}),c),K(i,G({},l,{selectProps:f,theme:d,getStyles:o,getClassNames:s,cx:r}),u),K("div",null,n))},CI=function(t,n){var r=t.theme,o=r.colors,s=r.spacing;return H({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},jI=function(t){var n=Yb(t);n.data;var r=mn(n,wI);return K("div",G({},Oe(t,"groupHeading",{"group-heading":!0}),r))},EI=_I,RI=["innerRef","isDisabled","isHidden","inputClassName"],NI=function(t,n){var r=t.isDisabled,o=t.value,s=t.theme,i=s.spacing,l=s.colors;return H(H({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},kI),n?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:l.neutral80})},ow={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},kI={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":H({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ow)},OI=function(t){return H({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ow)},TI=function(t){var n=t.cx,r=t.value,o=Yb(t),s=o.innerRef,i=o.isDisabled,l=o.isHidden,c=o.inputClassName,u=mn(o,RI);return K("div",G({},Oe(t,"input",{"input-container":!0}),{"data-value":r||""}),K("input",G({className:n({input:!0},c),ref:s,style:OI(l),disabled:i},u)))},PI=TI,II=function(t,n){var r=t.theme,o=r.spacing,s=r.borderRadius,i=r.colors;return H({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:i.neutral10,borderRadius:s/2,margin:o.baseUnit/2})},$I=function(t,n){var r=t.theme,o=r.borderRadius,s=r.colors,i=t.cropWithEllipsis;return H({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},AI=function(t,n){var r=t.theme,o=r.spacing,s=r.borderRadius,i=r.colors,l=t.isFocused;return H({alignItems:"center",display:"flex"},n?{}:{borderRadius:s/2,backgroundColor:l?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},sw=function(t){var n=t.children,r=t.innerProps;return K("div",r,n)},MI=sw,DI=sw;function LI(e){var t=e.children,n=e.innerProps;return K("div",G({role:"button"},n),t||K(Sp,{size:14}))}var FI=function(t){var n=t.children,r=t.components,o=t.data,s=t.innerProps,i=t.isDisabled,l=t.removeProps,c=t.selectProps,u=r.Container,d=r.Label,f=r.Remove;return K(u,{data:o,innerProps:H(H({},Oe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),s),selectProps:c},K(d,{data:o,innerProps:H({},Oe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),K(f,{data:o,innerProps:H(H({},Oe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:c}))},UI=FI,VI=function(t,n){var r=t.isDisabled,o=t.isFocused,s=t.isSelected,i=t.theme,l=i.spacing,c=i.colors;return H({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:s?c.primary:o?c.primary25:"transparent",color:r?c.neutral20:s?c.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:s?c.primary:c.primary50}})},BI=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,s=t.isSelected,i=t.innerRef,l=t.innerProps;return K("div",G({},Oe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":s}),{ref:i,"aria-disabled":r},l),n)},zI=BI,qI=function(t,n){var r=t.theme,o=r.spacing,s=r.colors;return H({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:s.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},HI=function(t){var n=t.children,r=t.innerProps;return K("div",G({},Oe(t,"placeholder",{placeholder:!0}),r),n)},WI=HI,KI=function(t,n){var r=t.isDisabled,o=t.theme,s=o.spacing,i=o.colors;return H({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?i.neutral40:i.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},GI=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return K("div",G({},Oe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},YI=GI,QI={ClearIndicator:fI,Control:bI,DropdownIndicator:uI,DownChevron:nw,CrossIcon:Sp,Group:EI,GroupHeading:jI,IndicatorsContainer:sI,IndicatorSeparator:hI,Input:PI,LoadingIndicator:vI,Menu:HP,MenuList:KP,MenuPortal:JP,LoadingMessage:XP,NoOptionsMessage:QP,MultiValue:UI,MultiValueContainer:MI,MultiValueLabel:DI,MultiValueRemove:LI,Option:zI,Placeholder:WI,SelectContainer:tI,SingleValue:YI,ValueContainer:rI},XI=function(t){return H(H({},QI),t.components)},rg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ZI(e,t){return!!(e===t||rg(e)&&rg(t))}function JI(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!ZI(e[n],t[n]))return!1;return!0}function e$(e,t){t===void 0&&(t=JI);var n=null;function r(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return r.clear=function(){n=null},r}var t$={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},n$=function(t){return K("span",G({css:t$},t))},og=n$,r$={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,s=t.context,i=t.isInitialFocus;switch(s){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,o=r===void 0?"":r,s=t.labels,i=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return i?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,s=t.label,i=s===void 0?"":s,l=t.selectValue,c=t.isDisabled,u=t.isSelected,d=t.isAppleDevice,f=function(h,x){return h&&h.length?"".concat(h.indexOf(x)+1," of ").concat(h.length):""};if(n==="value"&&l)return"value ".concat(i," focused, ").concat(f(l,r),".");if(n==="menu"&&d){var p=c?" disabled":"",y="".concat(u?" selected":"").concat(p);return"".concat(i).concat(y,", ").concat(f(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},o$=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,s=t.focusableOptions,i=t.isFocused,l=t.selectValue,c=t.selectProps,u=t.id,d=t.isAppleDevice,f=c.ariaLiveMessages,p=c.getOptionLabel,y=c.inputValue,m=c.isMulti,h=c.isOptionDisabled,x=c.isSearchable,g=c.menuIsOpen,v=c.options,b=c.screenReaderStatus,S=c.tabSelectsValue,_=c.isLoading,C=c["aria-label"],j=c["aria-live"],E=w.useMemo(function(){return H(H({},r$),f||{})},[f]),N=w.useMemo(function(){var L="";if(n&&E.onChange){var V=n.option,Q=n.options,T=n.removedValue,F=n.removedValues,A=n.value,W=function(pe){return Array.isArray(pe)?null:pe},U=T||V||W(A),Y=U?p(U):"",Z=Q||F||void 0,J=Z?Z.map(p):[],X=H({isDisabled:U&&h(U,l),label:Y,labels:J},n);L=E.onChange(X)}return L},[n,E,h,l,p]),R=w.useMemo(function(){var L="",V=r||o,Q=!!(r&&l&&l.includes(r));if(V&&E.onFocus){var T={focused:V,label:p(V),isDisabled:h(V,l),isSelected:Q,options:s,context:V===r?"menu":"value",selectValue:l,isAppleDevice:d};L=E.onFocus(T)}return L},[r,o,p,h,E,s,l,d]),O=w.useMemo(function(){var L="";if(g&&v.length&&!_&&E.onFilter){var V=b({count:s.length});L=E.onFilter({inputValue:y,resultsMessage:V})}return L},[s,y,g,E,v,b,_]),k=(n==null?void 0:n.action)==="initial-input-focus",P=w.useMemo(function(){var L="";if(E.guidance){var V=o?"value":g?"menu":"input";L=E.guidance({"aria-label":C,context:V,isDisabled:r&&h(r,l),isMulti:m,isSearchable:x,tabSelectsValue:S,isInitialFocus:k})}return L},[C,r,o,m,h,x,g,E,l,S,k]),D=K(w.Fragment,null,K("span",{id:"aria-selection"},N),K("span",{id:"aria-focused"},R),K("span",{id:"aria-results"},O),K("span",{id:"aria-guidance"},P));return K(w.Fragment,null,K(og,{id:u},k&&D),K(og,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!k&&D))},s$=o$,_d=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],i$=new RegExp("["+_d.map(function(e){return e.letters}).join("")+"]","g"),iw={};for(var Wc=0;Wc<_d.length;Wc++)for(var Kc=_d[Wc],Gc=0;Gc<Kc.letters.length;Gc++)iw[Kc.letters[Gc]]=Kc.base;var aw=function(t){return t.replace(i$,function(n){return iw[n]})},a$=e$(aw),sg=function(t){return t.replace(/^\s+|\s+$/g,"")},l$=function(t){return"".concat(t.label," ").concat(t.value)},c$=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=H({ignoreCase:!0,ignoreAccents:!0,stringify:l$,trim:!0,matchFrom:"any"},t),s=o.ignoreCase,i=o.ignoreAccents,l=o.stringify,c=o.trim,u=o.matchFrom,d=c?sg(r):r,f=c?sg(l(n)):l(n);return s&&(d=d.toLowerCase(),f=f.toLowerCase()),i&&(d=a$(d),f=aw(f)),u==="start"?f.substr(0,d.length)===d:f.indexOf(d)>-1}},u$=["innerRef"];function d$(e){var t=e.innerRef,n=mn(e,u$),r=DP(n,"onExited","in","enter","exit","appear");return K("input",G({ref:t},r,{css:yp({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var f$=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function p$(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,s=e.onTopLeave,i=w.useRef(!1),l=w.useRef(!1),c=w.useRef(0),u=w.useRef(null),d=w.useCallback(function(x,g){if(u.current!==null){var v=u.current,b=v.scrollTop,S=v.scrollHeight,_=v.clientHeight,C=u.current,j=g>0,E=S-_-b,N=!1;E>g&&i.current&&(r&&r(x),i.current=!1),j&&l.current&&(s&&s(x),l.current=!1),j&&g>E?(n&&!i.current&&n(x),C.scrollTop=S,N=!0,i.current=!0):!j&&-g>b&&(o&&!l.current&&o(x),C.scrollTop=0,N=!0,l.current=!0),N&&f$(x)}},[n,r,o,s]),f=w.useCallback(function(x){d(x,x.deltaY)},[d]),p=w.useCallback(function(x){c.current=x.changedTouches[0].clientY},[]),y=w.useCallback(function(x){var g=c.current-x.changedTouches[0].clientY;d(x,g)},[d]),m=w.useCallback(function(x){if(x){var g=$P?{passive:!1}:!1;x.addEventListener("wheel",f,g),x.addEventListener("touchstart",p,g),x.addEventListener("touchmove",y,g)}},[y,p,f]),h=w.useCallback(function(x){x&&(x.removeEventListener("wheel",f,!1),x.removeEventListener("touchstart",p,!1),x.removeEventListener("touchmove",y,!1))},[y,p,f]);return w.useEffect(function(){if(t){var x=u.current;return m(x),function(){h(x)}}},[t,m,h]),function(x){u.current=x}}var ig=["boxSizing","height","overflow","paddingRight","position"],ag={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function lg(e){e.preventDefault()}function cg(e){e.stopPropagation()}function ug(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function dg(){return"ontouchstart"in window||navigator.maxTouchPoints}var fg=!!(typeof window<"u"&&window.document&&window.document.createElement),rs=0,Kr={capture:!1,passive:!1};function h$(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=w.useRef({}),s=w.useRef(null),i=w.useCallback(function(c){if(fg){var u=document.body,d=u&&u.style;if(r&&ig.forEach(function(m){var h=d&&d[m];o.current[m]=h}),r&&rs<1){var f=parseInt(o.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,y=window.innerWidth-p+f||0;Object.keys(ag).forEach(function(m){var h=ag[m];d&&(d[m]=h)}),d&&(d.paddingRight="".concat(y,"px"))}u&&dg()&&(u.addEventListener("touchmove",lg,Kr),c&&(c.addEventListener("touchstart",ug,Kr),c.addEventListener("touchmove",cg,Kr))),rs+=1}},[r]),l=w.useCallback(function(c){if(fg){var u=document.body,d=u&&u.style;rs=Math.max(rs-1,0),r&&rs<1&&ig.forEach(function(f){var p=o.current[f];d&&(d[f]=p)}),u&&dg()&&(u.removeEventListener("touchmove",lg,Kr),c&&(c.removeEventListener("touchstart",ug,Kr),c.removeEventListener("touchmove",cg,Kr)))}},[r]);return w.useEffect(function(){if(t){var c=s.current;return i(c),function(){l(c)}}},[t,i,l]),function(c){s.current=c}}var m$=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},g$={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function v$(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,s=e.onBottomArrive,i=e.onBottomLeave,l=e.onTopArrive,c=e.onTopLeave,u=p$({isEnabled:o,onBottomArrive:s,onBottomLeave:i,onTopArrive:l,onTopLeave:c}),d=h$({isEnabled:n}),f=function(y){u(y),d(y)};return K(w.Fragment,null,n&&K("div",{onClick:m$,css:g$}),t(f))}var y$={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},x$=function(t){var n=t.name,r=t.onFocus;return K("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:y$,value:"",onChange:function(){}})},b$=x$;function _p(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function w$(){return _p(/^iPhone/i)}function lw(){return _p(/^Mac/i)}function S$(){return _p(/^iPad/i)||lw()&&navigator.maxTouchPoints>1}function _$(){return w$()||S$()}function C$(){return lw()||_$()}var j$=function(t){return t.label},E$=function(t){return t.label},R$=function(t){return t.value},N$=function(t){return!!t.isDisabled},k$={clearIndicator:dI,container:eI,control:yI,dropdownIndicator:cI,group:SI,groupHeading:CI,indicatorsContainer:oI,indicatorSeparator:pI,input:NI,loadingIndicator:gI,loadingMessage:YP,menu:BP,menuList:WP,menuPortal:ZP,multiValue:II,multiValueLabel:$I,multiValueRemove:AI,noOptionsMessage:GP,option:VI,placeholder:qI,singleValue:KI,valueContainer:nI},O$={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},T$=4,cw=4,P$=38,I$=cw*2,$$={baseUnit:cw,controlHeight:P$,menuGutter:I$},Yc={borderRadius:T$,colors:O$,spacing:$$},A$={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:tg(),captureMenuScroll:!tg(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:c$(),formatGroupLabel:j$,getOptionLabel:E$,getOptionValue:R$,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:N$,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!PP(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function pg(e,t,n,r){var o=fw(e,t,n),s=pw(e,t,n),i=dw(e,t),l=ul(e,t);return{type:"option",data:t,isDisabled:o,isSelected:s,label:i,value:l,index:r}}function fa(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(i,l){return pg(e,i,t,l)}).filter(function(i){return mg(e,i)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var s=pg(e,n,t,r);return mg(e,s)?s:void 0}).filter(AP)}function uw(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,up(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function hg(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,up(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function M$(e,t){return uw(fa(e,t))}function mg(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,s=t.isSelected,i=t.label,l=t.value;return(!mw(e)||!s)&&hw(e,{label:i,value:l,data:o},r)}function D$(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var s=t.indexOf(n);if(s>-1)return n;if(o<t.length)return t[o]}return null}function L$(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Qc=function(t,n){var r,o=(r=t.find(function(s){return s.data===n}))===null||r===void 0?void 0:r.id;return o||null},dw=function(t,n){return t.getOptionLabel(n)},ul=function(t,n){return t.getOptionValue(n)};function fw(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function pw(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=ul(e,t);return n.some(function(o){return ul(e,o)===r})}function hw(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var mw=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},F$=1,Cp=function(e){nT(n,e);var t=sT(n);function n(r){var o;if(eT(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=C$(),o.controlRef=null,o.getControlRef=function(c){o.controlRef=c},o.focusedOptionRef=null,o.getFocusedOptionRef=function(c){o.focusedOptionRef=c},o.menuListRef=null,o.getMenuListRef=function(c){o.menuListRef=c},o.inputRef=null,o.getInputRef=function(c){o.inputRef=c},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(c,u){var d=o.props,f=d.onChange,p=d.name;u.name=p,o.ariaOnChange(c,u),f(c,u)},o.setValue=function(c,u,d){var f=o.props,p=f.closeMenuOnSelect,y=f.isMulti,m=f.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:m}),p&&(o.setState({inputIsHiddenAfterUpdate:!y}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(c,{action:u,option:d})},o.selectOption=function(c){var u=o.props,d=u.blurInputOnSelect,f=u.isMulti,p=u.name,y=o.state.selectValue,m=f&&o.isOptionSelected(c,y),h=o.isOptionDisabled(c,y);if(m){var x=o.getOptionValue(c);o.setValue(y.filter(function(g){return o.getOptionValue(g)!==x}),"deselect-option",c)}else if(!h)f?o.setValue([].concat(up(y),[c]),"select-option",c):o.setValue(c,"select-option");else{o.ariaOnChange(c,{action:"select-option",option:c,name:p});return}d&&o.blurInput()},o.removeValue=function(c){var u=o.props.isMulti,d=o.state.selectValue,f=o.getOptionValue(c),p=d.filter(function(m){return o.getOptionValue(m)!==f}),y=Vi(u,p,p[0]||null);o.onChange(y,{action:"remove-value",removedValue:c}),o.focusInput()},o.clearValue=function(){var c=o.state.selectValue;o.onChange(Vi(o.props.isMulti,[],null),{action:"clear",removedValues:c})},o.popValue=function(){var c=o.props.isMulti,u=o.state.selectValue,d=u[u.length-1],f=u.slice(0,u.length-1),p=Vi(c,f,f[0]||null);o.onChange(p,{action:"pop-value",removedValue:d})},o.getFocusedOptionId=function(c){return Qc(o.state.focusableOptionsWithIds,c)},o.getFocusableOptionsWithIds=function(){return hg(fa(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];return EP.apply(void 0,[o.props.classNamePrefix].concat(u))},o.getOptionLabel=function(c){return dw(o.props,c)},o.getOptionValue=function(c){return ul(o.props,c)},o.getStyles=function(c,u){var d=o.props.unstyled,f=k$[c](u,d);f.boxSizing="border-box";var p=o.props.styles[c];return p?p(f,u):f},o.getClassNames=function(c,u){var d,f;return(d=(f=o.props.classNames)[c])===null||d===void 0?void 0:d.call(f,u)},o.getElementId=function(c){return"".concat(o.state.instancePrefix,"-").concat(c)},o.getComponents=function(){return XI(o.props)},o.buildCategorizedOptions=function(){return fa(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return uw(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(c,u){o.setState({ariaSelection:H({value:c},u)})},o.onMenuMouseDown=function(c){c.button===0&&(c.stopPropagation(),c.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(c){o.blockOptionHover=!1},o.onControlMouseDown=function(c){if(!c.defaultPrevented){var u=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&o.onMenuClose():u&&o.openMenu("first"):(u&&(o.openAfterFocus=!0),o.focusInput()),c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&c.preventDefault()}},o.onDropdownIndicatorMouseDown=function(c){if(!(c&&c.type==="mousedown"&&c.button!==0)&&!o.props.isDisabled){var u=o.props,d=u.isMulti,f=u.menuIsOpen;o.focusInput(),f?(o.setState({inputIsHiddenAfterUpdate:!d}),o.onMenuClose()):o.openMenu("first"),c.preventDefault()}},o.onClearIndicatorMouseDown=function(c){c&&c.type==="mousedown"&&c.button!==0||(o.clearValue(),c.preventDefault(),o.openAfterFocus=!1,c.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(c){typeof o.props.closeMenuOnScroll=="boolean"?c.target instanceof HTMLElement&&ec(c.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(c)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(c){var u=c.touches,d=u&&u.item(0);d&&(o.initialTouchX=d.clientX,o.initialTouchY=d.clientY,o.userIsDragging=!1)},o.onTouchMove=function(c){var u=c.touches,d=u&&u.item(0);if(d){var f=Math.abs(d.clientX-o.initialTouchX),p=Math.abs(d.clientY-o.initialTouchY),y=5;o.userIsDragging=f>y||p>y}},o.onTouchEnd=function(c){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(c.target)&&o.menuListRef&&!o.menuListRef.contains(c.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(c){o.userIsDragging||o.onControlMouseDown(c)},o.onClearIndicatorTouchEnd=function(c){o.userIsDragging||o.onClearIndicatorMouseDown(c)},o.onDropdownIndicatorTouchEnd=function(c){o.userIsDragging||o.onDropdownIndicatorMouseDown(c)},o.handleInputChange=function(c){var u=o.props.inputValue,d=c.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(d,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(c){o.props.onFocus&&o.props.onFocus(c),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(c){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(c),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(c){if(!(o.blockOptionHover||o.state.focusedOption===c)){var u=o.getFocusableOptions(),d=u.indexOf(c);o.setState({focusedOption:c,focusedOptionId:d>-1?o.getFocusedOptionId(c):null})}},o.shouldHideSelectedOptions=function(){return mw(o.props)},o.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),o.focus()},o.onKeyDown=function(c){var u=o.props,d=u.isMulti,f=u.backspaceRemovesValue,p=u.escapeClearsValue,y=u.inputValue,m=u.isClearable,h=u.isDisabled,x=u.menuIsOpen,g=u.onKeyDown,v=u.tabSelectsValue,b=u.openMenuOnFocus,S=o.state,_=S.focusedOption,C=S.focusedValue,j=S.selectValue;if(!h&&!(typeof g=="function"&&(g(c),c.defaultPrevented))){switch(o.blockOptionHover=!0,c.key){case"ArrowLeft":if(!d||y)return;o.focusValue("previous");break;case"ArrowRight":if(!d||y)return;o.focusValue("next");break;case"Delete":case"Backspace":if(y)return;if(C)o.removeValue(C);else{if(!f)return;d?o.popValue():m&&o.clearValue()}break;case"Tab":if(o.isComposing||c.shiftKey||!x||!v||!_||b&&o.isOptionSelected(_,j))return;o.selectOption(_);break;case"Enter":if(c.keyCode===229)break;if(x){if(!_||o.isComposing)return;o.selectOption(_);break}return;case"Escape":x?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:y}),o.onMenuClose()):m&&p&&o.clearValue();break;case" ":if(y)return;if(!x){o.openMenu("first");break}if(!_)return;o.selectOption(_);break;case"ArrowUp":x?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":x?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!x)return;o.focusOption("pageup");break;case"PageDown":if(!x)return;o.focusOption("pagedown");break;case"Home":if(!x)return;o.focusOption("first");break;case"End":if(!x)return;o.focusOption("last");break;default:return}c.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++F$),o.state.selectValue=Jm(r.value),r.menuIsOpen&&o.state.selectValue.length){var s=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),l=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=s,o.state.focusedOption=i[l],o.state.focusedOptionId=Qc(s,i[l])}return o}return tT(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&eg(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var s=this.props,i=s.isDisabled,l=s.menuIsOpen,c=this.state.isFocused;(c&&!i&&o.isDisabled||c&&l&&!o.menuIsOpen)&&this.focusInput(),c&&i&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!i&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(eg(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,s){this.props.onInputChange(o,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var s=this,i=this.state,l=i.selectValue,c=i.isFocused,u=this.buildFocusableOptions(),d=o==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(l[0]);f>-1&&(d=f)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[d],focusedOptionId:this.getFocusedOptionId(u[d])},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(o){var s=this.state,i=s.selectValue,l=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=i.indexOf(l);l||(c=-1);var u=i.length-1,d=-1;if(i.length){switch(o){case"previous":c===0?d=0:c===-1?d=u:d=c-1;break;case"next":c>-1&&c<u&&(d=c+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:i[d]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,i=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var c=0,u=l.indexOf(i);i||(u=-1),o==="up"?c=u>0?u-1:l.length-1:o==="down"?c=(u+1)%l.length:o==="pageup"?(c=u-s,c<0&&(c=0)):o==="pagedown"?(c=u+s,c>l.length-1&&(c=l.length-1)):o==="last"&&(c=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Yc):H(H({},Yc),this.props.theme):Yc}},{key:"getCommonProps",value:function(){var o=this.clearValue,s=this.cx,i=this.getStyles,l=this.getClassNames,c=this.getValue,u=this.selectOption,d=this.setValue,f=this.props,p=f.isMulti,y=f.isRtl,m=f.options,h=this.hasValue();return{clearValue:o,cx:s,getStyles:i,getClassNames:l,getValue:c,hasValue:h,isMulti:p,isRtl:y,options:m,selectOption:u,selectProps:f,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,s=o.isClearable,i=o.isMulti;return s===void 0?i:s}},{key:"isOptionDisabled",value:function(o,s){return fw(this.props,o,s)}},{key:"isOptionSelected",value:function(o,s){return pw(this.props,o,s)}},{key:"filterOption",value:function(o,s){return hw(this.props,o,s)}},{key:"formatOptionLabel",value:function(o,s){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(o,{context:s,inputValue:i,selectValue:l})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,s=o.isDisabled,i=o.isSearchable,l=o.inputId,c=o.inputValue,u=o.tabIndex,d=o.form,f=o.menuIsOpen,p=o.required,y=this.getComponents(),m=y.Input,h=this.state,x=h.inputIsHidden,g=h.ariaSelection,v=this.commonProps,b=l||this.getElementId("input"),S=H(H(H({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":p,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(g==null?void 0:g.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?w.createElement(m,G({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:s,isHidden:x,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:d,type:"text",value:c},S)):w.createElement(d$,G({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ll,onFocus:this.onInputFocus,disabled:s,tabIndex:u,inputMode:"none",form:d,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,s=this.getComponents(),i=s.MultiValue,l=s.MultiValueContainer,c=s.MultiValueLabel,u=s.MultiValueRemove,d=s.SingleValue,f=s.Placeholder,p=this.commonProps,y=this.props,m=y.controlShouldRenderValue,h=y.isDisabled,x=y.isMulti,g=y.inputValue,v=y.placeholder,b=this.state,S=b.selectValue,_=b.focusedValue,C=b.isFocused;if(!this.hasValue()||!m)return g?null:w.createElement(f,G({},p,{key:"placeholder",isDisabled:h,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),v);if(x)return S.map(function(E,N){var R=E===_,O="".concat(o.getOptionLabel(E),"-").concat(o.getOptionValue(E));return w.createElement(i,G({},p,{components:{Container:l,Label:c,Remove:u},isFocused:R,isDisabled:h,key:O,index:N,removeProps:{onClick:function(){return o.removeValue(E)},onTouchEnd:function(){return o.removeValue(E)},onMouseDown:function(P){P.preventDefault()}},data:E}),o.formatOptionLabel(E,"value"))});if(g)return null;var j=S[0];return w.createElement(d,G({},p,{data:j,isDisabled:h}),this.formatOptionLabel(j,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),s=o.ClearIndicator,i=this.commonProps,l=this.props,c=l.isDisabled,u=l.isLoading,d=this.state.isFocused;if(!this.isClearable()||!s||c||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(s,G({},i,{innerProps:f,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),s=o.LoadingIndicator,i=this.commonProps,l=this.props,c=l.isDisabled,u=l.isLoading,d=this.state.isFocused;if(!s||!u)return null;var f={"aria-hidden":"true"};return w.createElement(s,G({},i,{innerProps:f,isDisabled:c,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),s=o.DropdownIndicator,i=o.IndicatorSeparator;if(!s||!i)return null;var l=this.commonProps,c=this.props.isDisabled,u=this.state.isFocused;return w.createElement(i,G({},l,{isDisabled:c,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),s=o.DropdownIndicator;if(!s)return null;var i=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(s,G({},i,{innerProps:u,isDisabled:l,isFocused:c}))}},{key:"renderMenu",value:function(){var o=this,s=this.getComponents(),i=s.Group,l=s.GroupHeading,c=s.Menu,u=s.MenuList,d=s.MenuPortal,f=s.LoadingMessage,p=s.NoOptionsMessage,y=s.Option,m=this.commonProps,h=this.state.focusedOption,x=this.props,g=x.captureMenuScroll,v=x.inputValue,b=x.isLoading,S=x.loadingMessage,_=x.minMenuHeight,C=x.maxMenuHeight,j=x.menuIsOpen,E=x.menuPlacement,N=x.menuPosition,R=x.menuPortalTarget,O=x.menuShouldBlockScroll,k=x.menuShouldScrollIntoView,P=x.noOptionsMessage,D=x.onMenuScrollToTop,L=x.onMenuScrollToBottom;if(!j)return null;var V=function(Y,Z){var J=Y.type,X=Y.data,se=Y.isDisabled,pe=Y.isSelected,M=Y.label,z=Y.value,ve=h===X,ee=se?void 0:function(){return o.onOptionHover(X)},Te=se?void 0:function(){return o.selectOption(X)},De="".concat(o.getElementId("option"),"-").concat(Z),ie={id:De,onClick:Te,onMouseMove:ee,onMouseOver:ee,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:pe};return w.createElement(y,G({},m,{innerProps:ie,data:X,isDisabled:se,isSelected:pe,key:De,label:M,type:J,value:z,isFocused:ve,innerRef:ve?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(Y.data,"menu"))},Q;if(this.hasOptions())Q=this.getCategorizedOptions().map(function(U){if(U.type==="group"){var Y=U.data,Z=U.options,J=U.index,X="".concat(o.getElementId("group"),"-").concat(J),se="".concat(X,"-heading");return w.createElement(i,G({},m,{key:X,data:Y,options:Z,Heading:l,headingProps:{id:se,data:U.data},label:o.formatGroupLabel(U.data)}),U.options.map(function(pe){return V(pe,"".concat(J,"-").concat(pe.index))}))}else if(U.type==="option")return V(U,"".concat(U.index))});else if(b){var T=S({inputValue:v});if(T===null)return null;Q=w.createElement(f,m,T)}else{var F=P({inputValue:v});if(F===null)return null;Q=w.createElement(p,m,F)}var A={minMenuHeight:_,maxMenuHeight:C,menuPlacement:E,menuPosition:N,menuShouldScrollIntoView:k},W=w.createElement(zP,G({},m,A),function(U){var Y=U.ref,Z=U.placerProps,J=Z.placement,X=Z.maxHeight;return w.createElement(c,G({},m,A,{innerRef:Y,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:b,placement:J}),w.createElement(v$,{captureEnabled:g,onTopArrive:D,onBottomArrive:L,lockEnabled:O},function(se){return w.createElement(u,G({},m,{innerRef:function(M){o.getMenuListRef(M),se(M)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:o.getElementId("listbox")},isLoading:b,maxHeight:X,focusedOption:h}),Q)}))});return R||N==="fixed"?w.createElement(d,G({},m,{appendTo:R,controlElement:this.controlRef,menuPlacement:E,menuPosition:N}),W):W}},{key:"renderFormField",value:function(){var o=this,s=this.props,i=s.delimiter,l=s.isDisabled,c=s.isMulti,u=s.name,d=s.required,f=this.state.selectValue;if(d&&!this.hasValue()&&!l)return w.createElement(b$,{name:u,onFocus:this.onValueInputFocus});if(!(!u||l))if(c)if(i){var p=f.map(function(h){return o.getOptionValue(h)}).join(i);return w.createElement("input",{name:u,type:"hidden",value:p})}else{var y=f.length>0?f.map(function(h,x){return w.createElement("input",{key:"i-".concat(x),name:u,type:"hidden",value:o.getOptionValue(h)})}):w.createElement("input",{name:u,type:"hidden",value:""});return w.createElement("div",null,y)}else{var m=f[0]?this.getOptionValue(f[0]):"";return w.createElement("input",{name:u,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,s=this.state,i=s.ariaSelection,l=s.focusedOption,c=s.focusedValue,u=s.isFocused,d=s.selectValue,f=this.getFocusableOptions();return w.createElement(s$,G({},o,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:l,focusedValue:c,isFocused:u,selectValue:d,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),s=o.Control,i=o.IndicatorsContainer,l=o.SelectContainer,c=o.ValueContainer,u=this.props,d=u.className,f=u.id,p=u.isDisabled,y=u.menuIsOpen,m=this.state.isFocused,h=this.commonProps=this.getCommonProps();return w.createElement(l,G({},h,{className:d,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:p,isFocused:m}),this.renderLiveRegion(),w.createElement(s,G({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:p,isFocused:m,menuIsOpen:y}),w.createElement(c,G({},h,{isDisabled:p}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(i,G({},h,{isDisabled:p}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,s){var i=s.prevProps,l=s.clearFocusValueOnUpdate,c=s.inputIsHiddenAfterUpdate,u=s.ariaSelection,d=s.isFocused,f=s.prevWasFocused,p=s.instancePrefix,y=o.options,m=o.value,h=o.menuIsOpen,x=o.inputValue,g=o.isMulti,v=Jm(m),b={};if(i&&(m!==i.value||y!==i.options||h!==i.menuIsOpen||x!==i.inputValue)){var S=h?M$(o,v):[],_=h?hg(fa(o,v),"".concat(p,"-option")):[],C=l?D$(s,v):null,j=L$(s,S),E=Qc(_,j);b={selectValue:v,focusedOption:j,focusedOptionId:E,focusableOptionsWithIds:_,focusedValue:C,clearFocusValueOnUpdate:!1}}var N=c!=null&&o!==i?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},R=u,O=d&&f;return d&&!O&&(R={value:Vi(g,v,v[0]||null),options:v,action:"initial-input-focus"},O=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(R=null),H(H(H({},b),N),{},{prevProps:o,ariaSelection:R,prevWasFocused:O})}}]),n}(w.Component);Cp.defaultProps=A$;var U$=w.forwardRef(function(e,t){var n=Rb(e);return w.createElement(Cp,G({ref:t},n))}),jp=U$;const V$=`, ${new Date().getFullYear()}`;function gg({creditResource:e,resource:t,short:n=!1}){const{base:r,current:o}=t.exchangeRates;if(o.unitCost>=r.unitCost)return;const s=o.endDate?"calendar3":"people-fill",i=o.endDate?"primary":"success";let c=`${Math.round(100*(r.unitCost-o.unitCost)/r.unitCost)}% off`,u=c;if(o.endDate){const d=o.endDate?` until ${Cr(o.endDate).replace(V$,"")}`:"";n||(c+=d),u+=d}else n||(c+=" for you"),u+=o.institutionType?` for researchers from ${o.institutionType}`:" for you";return u+=`: ${fx(t.unit,o.unitCost,e.name)}`,a.jsxs("span",{className:`badge text-bg-${i} ms-2`,title:u,style:{cursor:"help"},children:[a.jsx("i",{className:`bi bi-${s} me-1`}),c]})}function go({bg:e="dark",children:t,color:n="light",fontWeight:r="bold",icon:o="info-circle-fill",initial:s=!1,maxWidth:i="200px",padding:l="10px",placement:c,target:u,trigger:d="click",visible:f=!0}){const p=typeof s=="string"||s instanceof String,[y,m]=w.useState(p?localStorage.getItem(s)!="true":s),[h,x]=w.useState(!1);w.useEffect(()=>{setTimeout(()=>x(!0),100)},[]);const g=()=>{p&&localStorage.setItem(s,"true")},v=a.jsxs(Ul,{style:{"--bs-tooltip-bg":`var(--bs-${e})`,"--bs-tooltip-color":`var(--bs-${n})`,"--bs-tooltip-max-width":i,"--bs-tooltip-padding-x":l,"--bs-tooltip-padding-y":l,fontWeight:r},children:[a.jsx("button",{"aria-label":"Close",onClick:()=>{g(),m(!1)},style:{background:"transparent",border:"0 none transparent",float:"right"},children:a.jsx("i",{className:"bi bi-x-lg"})}),t]});return u&&u.current?a.jsx(Cb,{target:u.current,placement:c,show:y&&f&&h,children:v}):a.jsx(cp,{placement:c,onToggle:b=>{g(),m(b)},overlay:v,show:y&&f&&h,trigger:d,children:a.jsx("button",{className:"btn bnt-clear border-0",style:{backgroundColor:"transparent"},children:a.jsx("i",{className:`bi bi-${o}`})})})}function B$({resources:e}){const t=e.filter(s=>{const{base:i,current:l}=s.exchangeRates;return l.unitCost<i.unitCost});if(!t.length)return;const n=[],r=[];for(let s of t){let{name:i,favicon:l}=s.resourceProvider;n.includes(i)||(n.push(i),r.push(l))}const o=r.map((s,i)=>a.jsx("span",{className:"d-inline-block border me-1",style:{backgroundColor:"white",backgroundImage:`url(${s})`,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"16px 16px",borderRadius:"24px",height:"24px",verticalAlign:"middle",width:"24px"},title:n[i]},n[i]));return a.jsx("span",{className:"d-flex justify-content-between align-items-center p-2 border-start border-end bg-secondary-subtle text-decoration-none fw-normal",children:a.jsxs("span",{children:[o,"Browse the list below to see discounts on"," ",Ke(t.length)," ",Wa("resources",t.length)," from"," ",Ke(n.length)," ",Wa("resource providers",n.length),"!"]})})}const z$="_items_c2dbg_1",q$="_item_c2dbg_1",H$="_details_c2dbg_14",W$="_text_c2dbg_20",K$="_number_c2dbg_35",G$="_outer_c2dbg_50",Y$="_inner_c2dbg_61",xn={items:z$,item:q$,details:H$,text:W$,number:K$,outer:G$,inner:Y$},os=(e,t)=>`${Math.cos(2*Math.PI*e)*t} ${Math.sin(2*Math.PI*e)*t}`;function Q$({requestId:e,grantNumber:t,creditColorClass:n="gray-300",colorClasses:r=Ju}){const{request:o}=at(e,t);if(!o)return;let s=0,i;const l=[];for(let p of o.resources)p.isBoolean||(p.isCredit?i=p:l.push(p),s+=ed(p));const c=[],u=[];let d=-.25;const f=[...l,i].map((p,y)=>{if(!p)return null;const m=y+1,x=ed(p)/s,g=p.requested-p.used,v=Math.max(0,g),b=p.isCredit?s/p.exchangeRates.base.unitCost:p.requested,S=b==0?0:100*v/b,C=`var(--bs-${p.isCredit?n:r[y%r.length]})`;if(x>0){const j=d,E=d+x/2,N=d+=x,R=x>.5?1:0,O=[`M ${os(j,100)}`,`A 100 100 0 ${R} 1 ${os(N,100)}`,`L ${os(N,50)}`,`A 50 50 0 ${R} 0 ${os(j,50)}`].join(" "),[k,P]=os(E,75).split(" ").map(D=>parseFloat(D));c.push(a.jsx("path",{d:O,style:{fill:C}},p.resourceId)),u.push(a.jsx("circle",{cx:k,cy:P,r:"8",fill:"black"},`${p.resourceId}-circle`),a.jsx("text",{x:k-4,y:P+4,fill:"white",className:xn.number,children:m},`${p.resourceId}-text`))}return p.isCredit&&u.push(a.jsx("foreignObject",{x:"-50",y:"-50",width:"100",height:"100",children:a.jsx("div",{className:xn.text,children:a.jsxs("div",{children:[a.jsx("strong",{children:Ke(v,{abbreviate:!0})}),p.unit," available"]})})},"center-text")),a.jsxs("li",{className:xn.item,children:[a.jsx("span",{className:xn.number,children:m}),a.jsx("span",{className:`${xn.outer} ms-2 me-2`,style:{borderColor:C},children:a.jsx("span",{className:xn.inner,style:{backgroundColor:C,width:`${S}%`}})}),a.jsxs("strong",{className:xn.name,children:[a.jsx(Rr,{resource:p,userGuide:!1}),": "]}),a.jsxs("span",{className:xn.details,children:[Ke(g,{abbreviate:!0})," ",p.isCredit?null:a.jsxs(a.Fragment,{children:["of ",Ke(b,{abbreviate:!0})," "]}),p.unit," ",p.isCredit?"available":"remaining"," (",Math.round(S),"%)"]})]},p.resourceId)});return a.jsxs("div",{className:"row",children:[a.jsx("div",{className:"col-lg-3 mb-3 d-flex flex-row align-items-center justify-content-center",children:a.jsxs("svg",{version:"1.1",viewBox:"-100 -100 200 200",width:"200",height:"200",xmlns:"http://www.w3.org/2000/svg",children:[c,u]})}),a.jsx("div",{className:"col-lg-9 mb-3 d-flex flex-column justify-content-center",children:a.jsx("ul",{className:xn.items,children:f})})]})}const vg=e=>e;function X$({classes:e,clean:t=vg,format:n=vg,label:r,setValue:o,style:s,value:i}){const l=n(i),[c,u]=w.useState(l);return w.useEffect(()=>{u(l)},[l]),a.jsx("input",{type:"text","aria-label":r,className:`form-control ${e}`,value:c,style:s,onChange:d=>u(d.target.value),onBlur:d=>{const f=t(d.target.value);u(n(f)),o(f)},onKeyDown:d=>{d.code=="Enter"&&(d.preventDefault(),d.target.blur())}})}function Z$({requestId:e,grantNumber:t}){const{request:n,addResource:r,openUsageDetailModal:o,resetResources:s,setResourceRequest:i,setResourcesReason:l,statuses:c,toggleActionsModal:u,toggleConfirmModal:d,toggleResourcesModal:f}=at(e,t),{project:p}=jt(t||n&&n.grantNumber),y=w.useRef(null),m=w.useRef(null);if(!n||!p)return;const h="Exchange"in n.allowedActions,x="Renewal"in n.allowedActions,g="Supplement"in n.allowedActions,v=n.exchangeStatus==c.pending,b=n.exchangeStatus==c.success,S=n.exchangeStatus==c.error,_=n.exchangeErrors,C=n.exchangeActionId!==null,j=n.exchangeActionEditable,E=n.resources,N=n.resourcesReason,R={};for(let M of E)R[M.resourceId]=M;const O=()=>{px(n)>=.75?u():d()},k=[];for(let M of E){let z=[];if(M.requested>0){for(let ve of M.requires||[]){let ee=R[ve];if(ee){if(ee.requested>0){z=[];break}z.push(ee)}}z.length&&k.push(a.jsxs("span",{children:[a.jsx(Rr,{resource:M,userGuide:!1})," requires"," ",dx(z.map(ve=>a.jsx(Rr,{resource:ve,userGuide:!1},ve.resourceId)),"or"),"."]},M.resourceId))}}const P=k.length>0;let D;b?D=a.jsx(je,{color:"info",children:"Your exchange request has been submitted."}):S&&_.length>0&&_[0].includes("PI")&&_[0].includes("person status Unknown")?D=a.jsx(je,{color:"danger",children:p.currentUser.role==="pi"?a.jsxs(a.Fragment,{children:["Please"," ",a.jsx("a",{href:te.routes.profile_path(),children:"update your academic status"})," ","before making an exchange request."]}):a.jsxs(a.Fragment,{children:["The primary investigator for this project has an unknown academic status. Please ask"," ",p.users.filter(M=>M.role==="pi").map(M=>`${M.firstName} ${M.lastName}`)," ","to update the academic status in their profile, and then try again."]})}):S?D=a.jsxs(je,{color:"danger",children:["Sorry, something went wrong: ",_.join(", "),". For assistance, please"," ",a.jsx("a",{href:"https://support.access-ci.org/open-a-ticket",children:"open a help ticket"})," ","and include this message."]}):C?D=a.jsx(je,{color:"warning",children:"You have an exchange request under review. The information below reflects the pending exchange request."}):n.timeStatus=="current"&&!p.isManager?D=a.jsxs(je,{color:"warning",children:["You do not have permission to manage resources for this project. Please contact ",Df(p)," to request a change."]}):P&&(D=a.jsxs(je,{color:"warning",children:[k," Please adjust your balance values."]}));const L=N.length>0;let V=!1,Q=!1;for(let M of E)if(M.isNew&&(V=!0),M.allocated!=M.requested&&(Q=!0),V&&Q)break;const T=E.map(M=>M.resourceId),F={},A=h&&j?n.allowedActions.Exchange.resources.filter(M=>!T.includes(M.resourceId)).map(M=>{F[M.resourceId]=M;const z=Pl(M.name),ve=z.short?`${z.short} (${z.full.replace(/ \([^(]+\)/,"")})`:z.full;return{value:M.resourceId,label:ve}}):[],W=h?n.allowedActions.Exchange.resources.map(M=>M.resourceId):[];let U;const Y=[],Z=[];for(let M of E)M.isCredit?U=M:(Y.push(M),Z.push(j&&(M.isNew||M.allocated!=M.requested)?jr.edited:W.includes(M.resourceId)?"":jr.disabled));const J=`Add ${Y.length?"another":"a"} resource to your exchange...`,X=M=>M.requested-M.used,se=(M,z)=>{const ve=z.allocated-z.used,ee=ho(Number(M.replace(/[^0-9-.]/g,"")),z.decimalPlaces),Te=Math.min(0,ve);if(ee<Te)return Te;let De=U.requested*U.exchangeRates.base.unitCost;const ie=(z.allocated-z.requested)*z.exchangeRates.base.unitCost,Ot=Math.min(De,ie);De-=Ot;let lt=z.requested-z.used+Ot/z.exchangeRates.base.unitCost;return De>0&&(lt+=De/z.exchangeRates.current.unitCost),ee>lt?ho(lt,z.decimalPlaces,"floor"):ee},pe=[{key:"name",name:"Resource",format:(M,z)=>a.jsx(Rr,{resource:z}),width:Math.min(350,window.innerWidth*.3)},{key:"isActive",name:"Status",format:(M,z)=>a.jsx(To,{status:M?"Active":z.isNew?"New":"Inactive"}),width:100},{key:"unit",name:"Unit",width:150,format:(M,z)=>z.isBoolean?a.jsx(a.Fragment,{children:"—"}):[a.jsx("abbr",{title:fx(M,z.exchangeRates.base.unitCost,U.name),children:M},"base"),a.jsx(gg,{creditResource:U,resource:z,short:!0},"discount")]},{key:"used",name:"Usage",class:"text-end",format:(M,z)=>z.isBoolean?a.jsx(a.Fragment,{children:"—"}):a.jsxs(a.Fragment,{children:[Ke(M),(p.currentUser.resourceIds.includes(z.resourceId)||p.currentUser.resourceAccountInactiveIds.includes(z.resourceId))&&a.jsx(nl,{icon:"table",onClick:()=>o(z.resourceRepositoryKey),target:"_blank",title:`${z.name} Usage Details`})]})}];return h&&pe.push({key:"requested",name:"Balance",class:"text-end",rowClass:M=>j&&W.includes(M.resourceId)?jr.input:"",format:(M,z)=>{const ve=j&&W.includes(z.resourceId);return z.isBoolean?a.jsx("input",{className:"form-check-input",type:"checkbox",checked:M==1,disabled:!ve,onChange:ee=>i(z.resourceId,ee.target.checked?1:0)}):ve?a.jsx(X$,{classes:"text-end w-100",clean:ee=>se(ee,z),format:Ke,label:`Balance for ${z.name}`,setValue:ee=>{i(z.resourceId,ee+z.used)},style:{padding:"0.1rem 0.5rem"},value:X(z)}):Ke(X(z))},formatHeader:M=>a.jsxs(a.Fragment,{children:[M,j?a.jsx(go,{bg:"secondary",color:"dark",initial:"myprojects.requestedAllocation",placement:"top-end",visible:p.tab=="resources",children:"You can increase or decrease the balance below to change your allocation on a resource. Enter the total amount you would like to have available once the exchange is complete."}):null]})}),a.jsxs("div",{className:"resources",children:[D,E.length?a.jsx(Q$,{requestId:e}):null,U&&(h||x||g)?a.jsxs("h2",{className:"mb-1 mt-2 d-flex justify-content-between",children:[a.jsxs("span",{children:[cr(te.resourceTypeIcons.credit)," ",Ke(U.requested,U)," ",U.unit," available to exchange"]}),x||g?a.jsxs("button",{type:"button",className:"btn btn-sm btn-primary ms-2",onClick:O,children:[cr(te.resourceTypeIcons.credit)," Request More"," ",n.usesCredits?"Credits":"Units"]}):null]}):null,Y.length?a.jsx(Fn,{columns:pe,rows:Y,rowClasses:Z,classes:A.length?"mb-0":"",frozenColumns:2,minWidth:"800px"}):a.jsx("div",{className:"card p-2 text-bg-light p-3",children:"This project does not have any resources."}),A.length?a.jsxs(a.Fragment,{children:[a.jsx(B$,{resources:h&&n.allowedActions.Exchange.resources||[]}),a.jsx("div",{className:"p-2",style:{backgroundColor:"var(--teal-200)",border:"1px solid #cccccc",marginTop:"-1px"},ref:y,children:a.jsx(jp,{classNames:{control:()=>"react-select mb-1"},options:A,onChange:M=>r(M.value),placeholder:J,value:null,"aria-label":J,formatOptionLabel:({value:M,label:z})=>[z,a.jsx(gg,{creditResource:U,resource:F[M]},"discount")]})}),Y.length?null:a.jsx(go,{bg:"secondary",color:"dark",visible:p.tab=="resources",initial:!0,target:y,children:"Ready to get started? Search for a resource to add it to your project."}),a.jsxs("p",{className:"text-black-50",style:{fontSize:"0.9rem"},children:["Need help choosing a resource? Visit our"," ",a.jsx("a",{href:te.routes.resources_path(),children:"Resource Catalog"}),"."]})]}):null,h&&j?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mb-3",children:[a.jsx("label",{htmlFor:"resources-reason",className:"form-label required",children:"Please briefly explain how the requested resources and amounts will contribute to your research."}),a.jsx("textarea",{className:"form-control",id:"resources-reason",rows:"2",value:N,onChange:M=>l(M.target.value),style:{minHeight:"3rem"}})]}),a.jsxs("div",{className:"d-flex",children:[a.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:v||!Q&&!L&&!V,onClick:s,children:"Reset Form"}),a.jsx("button",{ref:m,type:"button",className:"btn btn-secondary",disabled:v||!Q||!L||P,onClick:f,children:v?"Submitting...":"Submit for Approval"})]}),Q&&!P?a.jsx(go,{bg:"secondary",color:"dark",initial:"myprojects.submitExchange",maxWidth:"390px",placement:"right",target:m,visible:p.tab=="resources",children:"When you are finished adding resources, enter a justification for the requested resources above. Then you can submit your exchange for approval."}):null]}):null]})}function J$({question:e,requestId:t,grantNumber:n}){const{request:r,setResourceQuestionValues:o}=at(t,n),s=w.useId();if(!e||!r||r.error)return;const{attributeSetId:i,attributes:l,fieldType:c,label:u,resourceId:d,values:f}=e,p=l[0],y=p.required?"required":"",m=b=>o(d,i,b.target.value?[b.target.value]:[]),h=b=>{o(d,i,Array.from(b.target.options).filter(({selected:S})=>S).map(({value:S})=>parseInt(S,10)))},x=b=>{const S=parseInt(b.target.value,10),_=b.target.checked?[...f,S]:f.filter(C=>C!=S);o(d,i,_)},g=b=>{const S=parseInt(b.target.value);o(d,i,isNaN(S)?[]:[S])};let v;if(["calendar","integer_only","text"].includes(c)){const b={calendar:"date",integer_only:"number",text:"text"}[c];v=a.jsx("input",{className:"form-control",id:s,type:b,placeholder:p.label,required:p.required,value:f[0]||"",onChange:c=="integer_only"?g:m})}else if(c=="textarea")v=a.jsx("textarea",{className:"form-control",id:s,placeholder:p.label,required:p.required,value:f[0]||"",onChange:m});else if(c=="drop_down"||l.length>=10){const b=c=="multi_sel";v=a.jsxs("select",{id:s,className:"form-select",required:p.required,multiple:b,onChange:b?h:g,value:b?f:f[0]||"",children:[b?null:a.jsx("option",{}),l.map(S=>a.jsx("option",{value:S.resourceAttributeId,children:S.label},S.resourceAttributeId))]})}else v=a.jsx("div",{id:s,children:l.map(b=>{const S=`resource-attribute-${b.resourceAttributeId}`;return a.jsxs("div",{className:"form-check",children:[a.jsx("input",{className:"form-check-input",type:c=="single_sel"?"radio":"checkbox",id:S,value:b.resourceAttributeId,checked:f.includes(b.resourceAttributeId),onChange:c=="single_sel"?g:x}),a.jsx("label",{className:"form-check-label",htmlFor:S,children:b.label})]},b.resourceAttributeId)})});return a.jsxs("div",{className:"mb-3",children:[a.jsx("label",{htmlFor:s,className:`form-label ${y}`,children:u}),v]})}function eA({requestId:e,grantNumber:t}){const{request:n,saveResources:r,toggleResourcesModal:o}=at(e,t),{project:s}=jt(t||n.grantNumber);if(!n||!s||n.error||s.error)return;const i=[],l=n.resources.filter(u=>u.allocated!=u.requested).map(u=>{const d=u.requested-u.allocated;return u.questions&&i.push(...u.questions),a.jsxs("li",{className:"list-group-item d-flex justify-content-between align-items-center mb-0",children:[u.name,a.jsx("span",{className:`badge bg-${d>0?"primary":"danger"} rounded-pill`,children:u.isBoolean?Mf(u.requested):a.jsxs(a.Fragment,{children:[d>0?"+":"",Ke(d,u)," ",u.unit]})})]},u.resourceId)}),c=i.some(({attributes:u,values:d})=>d.length==0&&u[0].required);return a.jsxs(ge,{size:"lg",show:n.showResourcesModal,onHide:o,scrollable:!0,children:[a.jsx(ge.Header,{closeButton:!0,children:a.jsx(ge.Title,{children:"Complete Your Exchange"})}),a.jsxs(ge.Body,{children:[a.jsx("p",{children:"Please review your exchange to make sure it includes all the resources you need. Once you submit it, you will not be able to request another exchange until this one has been processed by the resource providers."}),a.jsx("ul",{className:"list-group mb-3",children:l}),i.length?a.jsxs(a.Fragment,{children:[a.jsx("h2",{children:"Resource Questions"}),a.jsx("p",{children:"Some of the resources you selected have associated questions. Please answer the questions below."}),i.map(u=>a.jsx(J$,{question:u,requestId:e,grantNumber:t},u.attributeSetId))]}):null]}),a.jsx(ge.Footer,{children:a.jsxs("div",{className:"d-flex",children:[a.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:o,children:"Continue Editing"}),a.jsx("button",{type:"button",className:"btn btn-secondary",onClick:r,disabled:c,children:"Submit"})]})})]})}function gw({user:e}){const t=`${e.lastName}, ${e.firstName}`;let n=t,r=[e.organization,e.email].filter(o=>o).join(", ");return r&&(n+=`: ${r}`),a.jsx("abbr",{title:n,children:t})}function tA({requestId:e,grantNumber:t}){const{project:n}=jt(t),{request:r,closeUsageDetailModal:o}=at(e,t);if(!r||r.error||!n||n.error||!r.usageDetailStatus)return;let s,i="Usage";if(r.usageDetailStatus==Fe.pending)s=a.jsx(Do,{});else if(r.usageDetailStatus==Fe.error)s=a.jsx(je,{color:"danger",children:"An error occurred while loading usage data."});else{const{projectTitle:l,resourceDisplayName:c,resourceRepositoryKey:u,users:d}=r.usageDetail,{full:f,short:p}=Pl(c),y=r.resources.find(g=>g.resourceRepositoryKey==u),m=g=>Ke(g,{decimalPlaces:y?y.decimalPlaces:void 0}),h={};for(let g of n.users)h[g.username]=g;i=a.jsxs(a.Fragment,{children:["Usage: ",p||f," for ",l]});const x=[{key:"name",name:"Name",format:(g,{lastName:v,firstName:b,portalUsername:S})=>{const _=h[S];return _?a.jsx(gw,{user:_}):`${v}, ${b}`}},{key:"portalUsername",name:"Resource Username",format:g=>{const v=h[g],b=v?v.resourceUsernames[y.resourceId]:null;return b||a.jsx(a.Fragment,{children:"—"})}},{key:"role",name:"Role",format:g=>hx[g].name},{key:"lastWeek",name:"Last Week",class:"text-end",format:m},{key:"lastMonth",name:"Last Month",class:"text-end",format:m},{key:"lastQuarter",name:"Last 3 Months",class:"text-end",format:m},{key:"currentRequest",name:"Current Allocation",class:"text-end",format:m},{key:"total",name:"All Time",class:"text-end",format:m}];s=d.length?a.jsx(Fn,{rows:d,columns:x}):a.jsx(je,{color:"info",children:"There is no usage for this resource."})}return a.jsxs(ge,{show:!0,size:"lg",onHide:o,scrollable:!0,children:[a.jsx(ge.Header,{closeButton:!0,children:a.jsx(ge.Title,{children:i})}),a.jsx(ge.Body,{children:s})]})}var nA=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function rA(e){var t=e.defaultOptions,n=t===void 0?!1:t,r=e.cacheOptions,o=r===void 0?!1:r,s=e.loadOptions;e.options;var i=e.isLoading,l=i===void 0?!1:i,c=e.onInputChange,u=e.filterOption,d=u===void 0?null:u,f=mn(e,nA),p=f.inputValue,y=w.useRef(void 0),m=w.useRef(!1),h=w.useState(Array.isArray(n)?n:void 0),x=Ue(h,2),g=x[0],v=x[1],b=w.useState(typeof p<"u"?p:""),S=Ue(b,2),_=S[0],C=S[1],j=w.useState(n===!0),E=Ue(j,2),N=E[0],R=E[1],O=w.useState(void 0),k=Ue(O,2),P=k[0],D=k[1],L=w.useState([]),V=Ue(L,2),Q=V[0],T=V[1],F=w.useState(!1),A=Ue(F,2),W=A[0],U=A[1],Y=w.useState({}),Z=Ue(Y,2),J=Z[0],X=Z[1],se=w.useState(void 0),pe=Ue(se,2),M=pe[0],z=pe[1],ve=w.useState(void 0),ee=Ue(ve,2),Te=ee[0],De=ee[1];o!==Te&&(X({}),De(o)),n!==M&&(v(Array.isArray(n)?n:void 0),z(n)),w.useEffect(function(){return m.current=!0,function(){m.current=!1}},[]);var ie=w.useCallback(function(gn,en){if(!s)return en();var _e=s(gn,en);_e&&typeof _e.then=="function"&&_e.then(en,function(){return en()})},[s]);w.useEffect(function(){n===!0&&ie(_,function(gn){m.current&&(v(gn||[]),R(!!y.current))})},[]);var Ot=w.useCallback(function(gn,en){var _e=RP(gn,en,c);if(!_e){y.current=void 0,C(""),D(""),T([]),R(!1),U(!1);return}if(o&&J[_e])C(_e),D(_e),T(J[_e]),R(!1),U(!1);else{var Vn=y.current={};C(_e),R(!0),U(!P),ie(_e,function(Bn){m&&Vn===y.current&&(y.current=void 0,R(!1),D(_e),T(Bn||[]),U(!1),X(Bn?H(H({},J),{},io({},_e,Bn)):J))})}},[o,ie,P,J,c]),lt=W?[]:_&&P?Q:g||[];return H(H({},f),{},{options:lt,isLoading:N||l,onInputChange:Ot,filterOption:d})}var oA=w.forwardRef(function(e,t){var n=rA(e),r=Rb(n);return w.createElement(Cp,G({ref:t},r))}),sA=oA;const yg=({description:e,disabled:t=!1,onChange:n,selectedLength:r,totalLength:o})=>{const s=w.useRef(),i=w.useId();let l=r==o,c=r>0&&!l;return w.useEffect(()=>{s.current&&(s.current.checked=l,s.current.indeterminate=c)},[l,c]),a.jsxs(a.Fragment,{children:[a.jsx("input",{className:"custom-checkbox form-check-input",disabled:t,id:i,onChange:u=>n(u.target.checked),ref:s,type:"checkbox"}),a.jsx("label",{className:"form-check-label",htmlFor:i,"aria-description":`${l?"Deselect":"Select"} ${e}`})]})};function iA({grantNumber:e,requestId:t}){const{project:n,addUser:r,resetUsers:o,saveUsers:s,setTab:i,setUserRole:l,statuses:c,toggleUsersResources:u}=jt(e),{request:d}=n?at(t||n.currentRequestId,e):{request:null};if(!n||!n.currentRequestId||!d||n.error||d.error)return;const f=n.isManager,p="Exchange"in d.allowedActions,y=n.usersStatus==c.pending,m=n.usersStatus==c.success,h=n.usersStatus==c.error,x=n.users,g=d.resources.filter(sd),v=g.length==0,b=x.find(R=>R.hasChanges)!==void 0,S=x.find(R=>R.role!="pi")!==void 0;let _;m&&!b?_=a.jsx(je,{color:"info",children:"Your changes have been saved. Creation of user accounts can take some time. Users can check the status of their accounts on the Overview tab of the My Projects page."}):h?_=a.jsx(je,{color:"danger",children:"Sorry, your changes could not be saved. Please try again later."}):f?g.length?v&&(_=a.jsx(je,{color:"warning",children:"This project does not have any active resources."})):_=a.jsxs(je,{color:"warning",children:["This project does not have any resources."," ",p?a.jsx("a",{href:te.routes.request_action_path(d.requestId,"new?action_type=Exchange"),onClick:R=>{R.preventDefault(),i("resources")},children:"Exchange credits for resources."}):null," ","Additional users can be added after an exchange is approved."]}):_=a.jsxs(je,{color:"warning",children:["You do not have permission to manage users for this project. Please contact ",Df(n)," to request a change."]});const C=(R,O)=>{let k,P,D,L;if(O.key=="all"){k="all resources for all users",P=V=>u(V),D=0;for(let V of x)D+=V.resourceIds.length;L=x.length*g.length}else k=`all users for ${O.name}`,P=V=>u(V,null,O.key),D=x.filter(({resourceIds:V})=>V.includes(O.key)).length,L=x.length;return a.jsxs(a.Fragment,{children:[O.key=="all"?R:a.jsx(Rr,{resource:O,userGuide:!1}),a.jsx("br",{}),a.jsx(yg,{description:k,disabled:O.disabled,onChange:P,selectedLength:D,totalLength:L})]})},j=Il.map(({role:R,name:O})=>a.jsx("option",{value:R,children:O},R)),E=[{key:"name",name:"Name",width:200,format:(R,O)=>a.jsx(gw,{user:O})},{key:"username",name:"ACCESS Username",width:100},{key:"role",name:"Role",width:100,format:(R,O)=>a.jsx("select",{className:"form-select",value:R,onChange:k=>l(O.username,k.target.value),disabled:!f||R=="pi"||R=="co_pi",style:{position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:0},children:j.filter(k=>k.key==R||!["pi","co_pi"].includes(k.key))})}];g.length&&E.push({key:"all",name:"All Resources",class:`text-center ${jr.important}`,disabled:!f||v,width:100,format:(R,O)=>a.jsx(yg,{description:`all users for ${O.name}`,disabled:!f||v,onChange:k=>u(k,O.username),selectedLength:O.resourceIds.length,totalLength:g.length}),formatHeader:C});for(let R of g)E.push({key:R.resourceId,name:R.name,class:"text-center",disabled:!f||!R.isActive,icon:R.icon,format:(O,k)=>a.jsx(a.Fragment,{children:a.jsx("input",{className:"form-check-input",disabled:!f||!R.isActive,onChange:P=>u(P.target.checked,k.username,R.resourceId),type:"checkbox",checked:k.resourceIds.includes(R.resourceId)})}),formatHeader:C});const N=x.map(R=>R.hasChanges?jr.edited:"");return a.jsxs(a.Fragment,{children:[_,a.jsx(Fn,{rows:x,columns:E,frozenColumns:g.length?4:3,classes:"mb-0",minWidth:"800px",rowClasses:N,scrollRowIndex:n.usersNewRowIndex}),f&&g.length&&!v?a.jsx("div",{style:{marginTop:"-1px",position:"relative",zIndex:100},children:a.jsx(sA,{classNames:{control:()=>"react-select"},loadOptions:async R=>(await TE(R)).map(k=>({value:k,label:`${k.username} (${k.firstName} ${k.lastName}, ${k.organization}${k.email?`, ${k.email}`:""})`})),onChange:R=>r(R.value),placeholder:"Add another user...",value:null,"aria-label":"Add another user"})}):null,f&&(g.length&&!v||S)?a.jsxs("div",{className:"d-flex mt-3",children:[a.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:y||!b,onClick:o,children:"Reset Form"}),a.jsx("button",{type:"button",className:"btn btn-secondary",disabled:y||!b,onClick:s,children:y?"Saving...":"Save Changes"})]}):null]})}function aA({requestId:e,grantNumber:t}){const{request:n}=at(e,t),{project:r,setRequest:o,setTab:s}=jt(t||n.grantNumber);if(!n)return;if(n.error)return a.jsx(je,{color:"danger",children:n.error});const i=n.timeStatus||n.actions[0].status.toLowerCase(),l=n.actions.find(({showDeleteModal:u})=>u),c=[];return n.resources.length||c.push("resources"),e!=r.currentRequestId&&c.push("users"),a.jsxs("div",{className:"request",children:[n.returnedForCorrections?a.jsxs(je,{color:"warning",children:[a.jsx("p",{children:"Your request has been returned for corrections. These are the notes from the Allocations Team"}),a.jsx("div",{className:sR.returnedForCorrectionsNotes,children:n.returnedForCorrectionsNotes}),a.jsx("p",{className:"mt-3",children:"Please address these issues by clicking the Edit button to edit your request."})]}):"",n.timeStatus!="current"&&!n.returnedForCorrections?a.jsxs(je,{color:"warning",children:["You are viewing ","aeiou".includes(i[0])?"an":"a"," ",i," request."," ",c.length?`You cannot manage ${c.join(" or ")} for this request.`:""," ",r.currentRequestId?a.jsx("a",{href:te.routes.request_path(r.currentRequestId),onClick:u=>{u.preventDefault(),o(r.currentRequestId)},children:"Go to the current request."}):null]}):null,a.jsxs(mN,{activeKey:r.tab,onSelect:s,className:"mt-3 mb-3",children:[a.jsx(Ii,{eventKey:"overview",title:"Overview",className:"mb-0",children:a.jsx(GO,{requestId:e,grantNumber:t})}),a.jsx(Ii,{eventKey:"resources",title:n.usesCredits?"Credits + Resources":"Resources",disabled:c.includes("resources"),children:a.jsx(Z$,{requestId:e})}),a.jsx(Ii,{eventKey:"users",title:"Users + Roles",disabled:c.includes("users"),children:a.jsx(iA,{grantNumber:t})}),a.jsx(Ii,{eventKey:"history",title:"History",children:a.jsx(_O,{requestId:e})})]}),a.jsx(xO,{grantNumber:t,requestId:e}),a.jsx(bO,{grantNumber:t,requestId:e}),a.jsx(wO,{grantNumber:t,requestId:e,actionId:l?l.actionId:null}),a.jsx(eA,{grantNumber:t,requestId:e}),a.jsx(tA,{grantNumber:t,requestId:e})]})}function lA({requestId:e,grantNumber:t}){const{request:n,toggleActionsModal:r,toggleDeleteModal:o}=at(e,t);if(!n)return;const{actions:s,allowedActions:i}=n,l=[];i&&(("Extension"in i||"Renewal"in i)&&l.push(["Extend End Date",u=>{u.preventDefault(),r()},"calendar-plus"]),"Final Report"in i&&l.push(["Submit Final Report",`${te.routes.request_action_path(e,"new")}?action_type=Final+Report`,"file-earmark-check"]));const c=s.find(u=>u.isRequest);if(c){const u=c.allowedOperations||[];u.includes("Edit")&&l.push(["Edit",te.routes.edit_request_path(n.requestId),"pencil"]),u.includes("Delete")&&l.push(["Delete",d=>{d.preventDefault(),o(c.actionId)},"trash","danger"])}return l.map(([u,d,f,p])=>{const y=a.jsxs(a.Fragment,{children:[" ",f&&a.jsx("i",{className:`bi bi-${f} me-1`}),u]});return typeof d=="function"?a.jsx("button",{className:`btn btn-${p||"primary"} ms-2 text-nowrap`,onClick:d,children:y},u):a.jsx("a",{className:`btn btn-${p||"primary"} ms-2 text-nowrap`,href:d,children:y},u)})}function cA({open:e=!1,grantNumber:t,title:n,status:r}){const[o,s]=w.useState(e),{project:i,setRequest:l}=jt(t,!o&&n&&r&&!0),c=`project-${t}`;let u=null;if(o&&i)if(i.error)u=a.jsx(je,{color:"danger",children:i.error});else{let d;const f=i.requestsList.map(p=>(p.requestId==i.selectedRequestId&&(d=p),a.jsx("option",{value:p.requestId,children:Af(p)},p.requestId)));u=a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"d-flex",children:[a.jsx("select",{className:"form-select","aria-label":"Select a request to display",onChange:p=>l(parseInt(p.target.value,10)),value:i.selectedRequestId,disabled:f.length<2,children:f}),a.jsx(lA,{requestId:i.selectedRequestId,grantNumber:t})]}),d?a.jsx(aA,{...d,grantNumber:t}):null]})}return a.jsxs("div",{className:`${mm.project} card mb-3`,children:[a.jsxs("div",{className:`card-header d-flex justify-content-between ${o?"":"border-bottom-0"}`,children:[a.jsx("button",{"aria-expanded":o,"aria-controls":c,className:mm.expand,onClick:()=>s(!o),children:a.jsxs("h2",{className:"mb-1 mt-1 text-start",children:[a.jsx("i",{className:`bi bi-caret-${o?"down":"right"}-fill`})," ",/^[A-Z]/.test(t)?a.jsxs(a.Fragment,{children:[a.jsxs("span",{className:"grant-number",children:[t,":"]})," "]}):null,n||i.title]})}),a.jsx(To,{status:r||i.status})]}),a.jsx("div",{className:"card-body",id:c,hidden:!o||!i,children:u})]})}function uA({username:e,openFirst:t=1}){const{error:n,loading:r,projects:o}=tR(e);if(r)return a.jsx(Do,{});if(n)return a.jsxs(je,{color:"danger",children:[n," ",a.jsx("a",{href:"#",onClick:i=>{i.preventDefault(),window.location.reload()},children:"Reload the page"})," ","to try again."]});if(!o.length)return a.jsxs("div",{className:"pt-5 pb-5 text-bg-light border border-light-subtle",children:[a.jsx("p",{className:"fs-2 text-center mb-4",children:"You don't have any projects yet."}),a.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[a.jsxs("a",{className:"btn btn-primary w-25",href:te.routes.project_types_path(),children:[a.jsx("i",{className:"bi bi-boxes fs-1 d-block"})," Learn about Project Types"]}),a.jsxs("a",{className:"btn btn-secondary w-25",href:te.routes.get_your_first_project_path(),children:[a.jsx("i",{className:"bi bi-cpu fs-1 d-block"})," Learn How to Get Your"," ",a.jsx("br",{className:"d-none d-xxl-inline"})," First Project"]}),a.jsxs("a",{className:"btn btn-primary w-25",href:te.routes.how_to_path(),children:[a.jsx("i",{className:"bi bi-person-plus fs-1 d-block"})," Learn How to Join an Existing Project"]})]})]});const s=new URLSearchParams(window.location.hash.slice(1)).get("grantNumber");return o.map((i,l)=>a.jsx(cA,{open:s?s==i.grantNumber:l<t,...i},i.grantNumber))}const vw={apiUrl:null,listIsFiltered:!1,pages:1,projects:[],projectsLoaded:!1,filtersLoaded:!0,showPagination:!1,singleEntry:!1,filters:{org:"",allocationType:"",allFosToggled:!0,resource:"",requestNumber:""},pageData:{current_page:1,last_page:1},typeLists:{orgs:[],fosTypes:[],allocationTypes:[],resources:[]}},dA=Qe("projectsBrowser/initApp",async(e,{getState:t,dispatch:n})=>{const r=window.location.search,o=new URLSearchParams(r);o.has("_requestNumber")&&(n(Ed({name:"requestNumber",value:o.get("_requestNumber")})),n(xw(!0))),await n(Cd()),await n(Nr()),n(fA())}),fA=Qe("projectsBrowser/filterCleanup",async(e,{getState:t,dispatch:n})=>{const o=t().projectsBrowser.typeLists;n(yw({...o,orgs:["-- ALL --"].concat(o.orgs)}))}),Cd=Qe("projectsBrowser/getFilters",async(e,{getState:t,dispatch:n})=>{const o=`${t().projectsBrowser.apiUrl}?filters=1`,i=await(await fetch(o)).json();n(yw(i.filters))}),Nr=Qe("projectsBrowser/getProjects",async(e,{getState:t,dispatch:n})=>{const r=t().projectsBrowser,o=r.filters,s=r.typeLists,i=s.fosTypes.filter(d=>d.checked);let l=`${r.apiUrl}?page=${r.pageData.current_page}`;return o.requestNumber!=""?(l+=`&request_number=${o.requestNumber}`,n(xg(!0))):(n(xg(!1)),i.length!=s.fosTypes.length&&(l+=`&fos=${i.map(d=>d.fosTypeId).join(",")}`),o.org!=""&&o.org!="-- ALL --"&&(l+=`&org=${encodeURIComponent(o.org)}`),o.allocationType!=""&&(l+=`&allocation_type=${o.allocationType}`),o.resource!=""&&(l+=`&resources=${o.resource}`)),await(await fetch(l)).json()}),Ep=ri({name:"projectsBrowser",initialState:vw,reducers:{resetFilters:e=>{e.filters={org:"",allocationType:"",allFosToggled:!1,resource:"",requestNumber:""},e.singleEntry=!1,Ep.caseReducers.toggleAllFos(e)},setApiUrl:(e,{payload:t})=>{e.apiUrl=t},setShowPagination:(e,{payload:t})=>{e.showPagination=t},setTypeLists:(e,{payload:t})=>{e.typeLists=t},toggleAllFos:e=>{e.typeLists.fosTypes.forEach(t=>t.checked=!e.filters.allFosToggled),e.filters.allFosToggled=!e.filters.allFosToggled},toggleFos:(e,{payload:t})=>{e.typeLists.fosTypes.forEach(n=>{n.fosTypeId==t.fosTypeId&&(n.checked=!n.checked)}),e.typeLists.fosTypes.filter(n=>n.checked).length!=e.typeLists.fosTypes.length?e.filters.allFosToggled=!1:e.filters.allFosToggled=!0},toggleListFiltered:(e,{payload:t})=>{e.listIsFiltered=t},toggleSingleEntry:(e,{payload:t})=>{e.singleEntry=t},updateFilter:(e,{payload:t})=>{e.filters[t.name]=t.value},updatePageData:(e,{payload:t})=>{t.current_page&&(e.pageData.current_page=t.current_page),t.last_page&&(e.pageData.last_page=t.last_page)}},extraReducers:e=>{e.addCase(Nr.pending,t=>{t.projectsLoaded=!1}).addCase(Nr.fulfilled,(t,n)=>{const r=n.payload;t.projectsLoaded=!0,t.projects=r.projects,r.pages!=t.pageData.last_page&&(t.pageData.current_page=1),t.showPagination=!0,t.pageData.last_page=r.pages}).addCase(Nr.rejected,(t,n)=>{console.log(n.error)}).addCase(Cd.pending,t=>{t.filtersLoaded=!1}).addCase(Cd.fulfilled,t=>{t.filtersLoaded=!0})}}),{resetFilters:pA,setApiUrl:cD,setShowPagination:jd,setTypeLists:yw,toggleAllFos:hA,toggleFos:mA,toggleListFiltered:xw,toggleSingleEntry:xg,updateFilter:Ed,updatePageData:dl}=Ep.actions,gA=e=>e.projectsBrowser.filters,vA=e=>e.projectsBrowser.filtersLoaded,yA=e=>e.projectsBrowser.listIsFiltered,xA=e=>e.projectsBrowser.singleEntry,bA=e=>e.projectsBrowser.projectsLoaded,wA=e=>e.projectsBrowser.pageData,SA=e=>e.projectsBrowser.projects,_A=e=>e.projectsBrowser.filtersLoaded&&e.projectsBrowser.projectsLoaded&&e.projectsBrowser.pageData.last_page>1,CA=e=>e.projectsBrowser.typeLists,jA=Ep.reducer;const EA=()=>{const e=it(),t=fe(gA),n=fe(CA),r=fe(yA),o=n.orgs.map(h=>({label:h,value:h})),s=w.useRef(),[i,l]=w.useState(null),c={height:"200px",overflowX:"auto",padding:"2px"},u=h=>{e(Ed({name:h.target.name,value:h.target.value}))},d=()=>{window.scrollTo(0,0),p(!0),e(jd(!1)),e(dl({current_page:1})),e(Nr())},f=()=>{l(null),e(jd(!1)),e(dl({current_page:1})),e(pA()),r&&(window.scrollTo(0,0),e(Nr()),p(!1))},p=h=>{e(xw(h))},y=h=>{l(h),e(Ed({name:"org",value:h.value}))},m=()=>t.org==""&&t.allocationType==""&&t.allFosToggled&&t.resource==""&&t.requestNumber=="";return a.jsx("div",{className:"row sticky-top mb-2",children:a.jsxs("div",{className:"col",children:[a.jsx("h3",{className:"mb-2",children:"Filters"}),a.jsx("h5",{className:"mb-1",children:"Field of Science"}),a.jsxs("div",{className:"border mb-3",style:c,children:[a.jsxs("div",{className:"form-check",children:[a.jsx("input",{className:"form-check-input",type:"checkbox",value:"",id:"toggle_all",checked:t.allFosToggled,onChange:()=>{e(hA())}}),a.jsx("label",{className:"form-check-label",htmlFor:"toggle_all",children:"(Toggle All)"})]}),n.fosTypes.map(h=>a.jsxs("div",{className:"form-check",children:[a.jsx("input",{className:"form-check-input",type:"checkbox",value:h.fosTypeId,id:`fos_${h.fosTypeId}`,checked:h.checked,onChange:()=>e(mA(h))}),a.jsx("label",{className:"form-check-label",htmlFor:`fos_${h.fosTypeId}`,children:h.fosName})]},`fos_${h.fosTypeId}`))]}),a.jsx("h5",{id:"org_select_label",className:"mb-1",children:"Organization"}),a.jsx("div",{className:"mb-3",children:a.jsx(jp,{options:o,openMenuOnClick:!0,name:"org",inputId:"orgs_filter",ref:s,closeMenuOnSelect:!0,onChange:y,value:i,"aria-labelledby":"org_select_label"},"org_select")}),a.jsx("h5",{id:"project_type_label",className:"mb-1",children:a.jsx("abbr",{title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),a.jsx("div",{className:"mb-3",children:a.jsxs("select",{name:"allocationType",id:"project_type_select",value:t.allocationType,className:"form-control","aria-labelledby":"project_type_label",onChange:h=>u(h),children:[a.jsx("option",{value:"",children:"-- All --"}),n.allocationTypes.map((h,x)=>a.jsx("option",{value:h,children:h},`allocation_type_${x}`))]})}),a.jsx("h5",{id:"resource_filter_label",className:"mb-1",children:"Resource"}),a.jsx("div",{className:"mb-3",children:a.jsxs("select",{name:"resource",id:"resource_select",value:t.resource,className:"form-control","aria-labelledby":"resource_filter_label",onChange:h=>u(h),children:[a.jsx("option",{value:"",children:"-- All --"}),n.resources.map((h,x)=>a.jsx("option",{value:h.resourceId,children:h.resourceName},`resource_${x}`))]})}),a.jsx("h5",{id:"request_number_label",className:"mb-1",children:"Request Number"}),a.jsx("div",{className:"mb-3",children:a.jsx("input",{type:"text",className:"form-control",value:t.requestNumber,name:"requestNumber",id:"requestNumber","aria-labelledby":"request_number_label",onChange:h=>u(h)})}),a.jsxs("div",{className:"mt-2",children:[a.jsx("button",{className:"btn btn-primary me-2",onClick:d,children:"Submit"}),a.jsx("button",{className:"btn btn-secondary",disabled:m(),onClick:f,children:"Reset"})]})]})})};const RA=({project:e})=>{const t=e.resources,[n,r]=w.useState(!1),o=fe(xA);let s={flush:!0,className:"mt-3 mb-1",alwaysOpen:!0};const i=h=>{let x=h.units?h.units:h.resourceUnits;const g=h.allocation?h.allocation:h.amount;if(x=="[Yes = 1, No = 0]"||x=="Yes / No")return g=="1.0"?"Yes":"No";{let v="0";return parseInt(g)&&(v=parseInt(g).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),x=="ACCESS Credits"&&(x=a.jsx("span",{className:"tooltip-underline",title:"universal currency that can be exchanged for resource units",children:"ACCESS Credits"})),x=="Dollars"?`$${v}`:a.jsxs(a.Fragment,{children:[v," ",x]})}},l=()=>{const{origin:h,pathname:x}=window.location,g=`${h}${x}?_requestNumber=${e.requestNumber}`;navigator.clipboard.writeText(g),setTimeout(()=>r(!1),2e3)},c=()=>e.requestNumber&&e.requestNumber!=""?`(${e.requestNumber})`:"",u=a.jsx(Ul,{id:"link-tooltip",children:"Link Copied!"}),d=()=>{if(c()){const h={background:"none",border:"none",color:"#fff",fontSize:"24px"};return a.jsx(cp,{placement:"left",trigger:"click",defaultShow:n,show:n,onToggle:()=>r(!n),overlay:u,children:a.jsx("button",{onClick:l,style:h,children:a.jsx("i",{className:"bi bi-link-45deg",children:a.jsx("div",{className:"d-none",children:"Direct link to project"})})})})}return a.jsx(a.Fragment,{})},f=()=>!e.coPis||e.coPis.length<=0?"":a.jsxs(a.Fragment,{children:[a.jsx("br",{}),a.jsxs("small",{className:"fst-italic",children:["CoPI(s): ",e.coPis.map(h=>`${h.name} (${h.organization})`).join(";")]})]}),p=()=>!e.beginDate||!e.endDate?"-":a.jsxs(a.Fragment,{children:[e.beginDate," to ",e.endDate]}),y=a.jsxs("table",{className:"table table-striped table-bordered mt-2 mb-0",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("td",{children:a.jsx("span",{className:"m-0 p-0",children:"Resource"})}),a.jsx("td",{children:a.jsx("span",{className:"m-0 p-0 d-inline",children:"Allocation"})})]})}),a.jsx("tbody",{children:t.map((h,x)=>a.jsxs("tr",{children:[a.jsx("td",{children:h.resourceName}),a.jsx("td",{style:{whiteSpace:"nowrap"},children:i(h)})]},`resource_${e.requestId}_${x}`))})]}),m=()=>o?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"row mt-2 fw-bold",children:a.jsx("div",{className:"col-3 border-bottom",children:"Resources"})}),a.jsx("div",{className:"row",children:a.jsx("div",{className:"col",children:y})}),a.jsx("div",{className:"row mt-2 fw-bold",children:a.jsx("div",{className:"col-3 border-bottom",children:"Abstract"})}),a.jsx("div",{className:"row",children:a.jsx("div",{className:"col",children:a.jsx("div",{style:{whiteSpace:"pre-wrap",padding:"5px"},children:e.abstract})})})]}):a.jsxs(Wt,{...s,children:[a.jsxs(Wt.Item,{eventKey:"0",children:[a.jsx(Wt.Header,{children:"Resources"}),a.jsx(Wt.Body,{children:y})]}),a.jsxs(Wt.Item,{eventKey:"1",children:[a.jsx(Wt.Header,{children:"Abstract"}),a.jsx(Wt.Body,{children:a.jsx("div",{style:{whiteSpace:"pre-wrap",padding:"5px"},children:e.abstract})})]})]});return a.jsxs("div",{className:"card mb-4",children:[a.jsx("div",{className:"card-header bg-primary text-white",children:a.jsxs("div",{className:"d-flex justify-content-between",children:[a.jsxs("div",{children:[a.jsxs("span",{className:"fw-bold",children:[c()," ",e.requestTitle]})," ",a.jsx("br",{}),a.jsxs("span",{className:"fst-italic",children:[e.pi," ",a.jsxs("small",{children:[" (",e.piInstitution,") "]})]}),f()]}),a.jsx("div",{children:d()})]})}),a.jsxs("div",{className:"card-body",children:[a.jsxs("div",{className:"row fw-bold border-bottom",children:[a.jsx("div",{className:"col",children:a.jsx("span",{className:"mb-1 pb-0",children:"Field of Science"})}),a.jsx("div",{className:"col",children:a.jsx("span",{className:"mb-1 pb-0 tooltip-underline",title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),a.jsx("div",{className:"col",children:a.jsx("span",{className:"mb-1 pb-0",children:"Dates"})})]}),a.jsxs("div",{className:"row",children:[a.jsx("div",{className:"col",children:e.fos}),a.jsx("div",{className:"col",children:e.allocationType}),a.jsx("div",{className:"col",children:p()})]}),m()]})]})},NA=()=>{const e=fe(SA);return e.length==0?a.jsx("div",{children:"No Projects Found"}):a.jsx("div",{children:e.map((t,n)=>a.jsx(RA,{project:t},`project_${n}`))})};const bg=()=>{const e=it(),t=fe(wA),[n,r]=w.useState([]),[o,s]=w.useState("0"),i=Array.from({length:t.last_page},(m,h)=>h),l=10,c={width:"50px",textAlign:"center"};w.useEffect(()=>{f()},[t]);const u=m=>{const h=parseInt(m);e(dl({current_page:m})),e(Nr(h))},d=m=>(event.preventDefault(),s("0"),u(m),!1),f=()=>{const m=[];if(t.last_page>l)if(t.current_page>4){m.push(1),m.push("spacer");for(var h=1;h>0;h--)t.current_page-h>1&&m.push(t.current_page-h);m.push(["current",t.current_page]);for(var h=1;h<2;h++)t.current_page+h<=t.last_page&&m.push(t.current_page+h);t.last_page-t.current_page>1&&(m.push("spacer"),m.push(t.last_page))}else[1,2,3,4,5].forEach(x=>{x==t.current_page?m.push(["current",x]):m.push(x)}),m.push("spacer"),m.push(t.last_page);else for(var h=1;h<=t.last_page;h++)h==t.current_page?m.push(["current",h]):m.push(h);r(m)},p=m=>{let h="";return typeof m=="object"?[m,h]=m:h=m,m=="spacer"?a.jsx("li",{className:"page-item disabled",children:a.jsx("span",{className:"page-link",style:c,children:". . ."})}):m=="current"?a.jsx("li",{className:"page-item active","aria-current":"page",children:a.jsx("span",{className:"page-link",style:c,children:h})}):a.jsx("li",{className:"page-item",children:a.jsx("button",{className:"page-link",style:c,onClick:()=>u(m),children:h})})},y=()=>a.jsx("li",{className:"page-item",children:a.jsxs("select",{className:"page-link",style:{...c,height:"100%"},value:o,onChange:m=>d(m.target.value),children:[a.jsx("option",{value:"0",children:"Go To"}),i.map(m=>a.jsx("option",{value:m+1,children:m+1},`page_option_${m}`))]})});return a.jsx("div",{children:a.jsx("nav",{"aria-label":"Pages for the table",children:a.jsxs("ul",{className:"pagination",children:[a.jsx("li",{className:`page-item ${t.current_page==1?"disabled":""}`,children:a.jsx("button",{className:"page-link",style:{width:"50px",textAlign:"center"},onClick:()=>u(t.current_page-1),disabled:t.current_page==1,"aria-label":"Previous Page Button",children:"<"})}),n.map((m,h)=>a.jsx(Se.Fragment,{children:p(m)},`page_${h}`)),t.last_page>l?y():"",a.jsx("li",{className:`page-item ${t.current_page==t.last_page?"disabled":""}`,children:a.jsx("button",{className:"page-link",style:c,onClick:()=>u(t.current_page+1),disabled:t.current_page==t.last_page,"aria-label":"Next Page Button",children:">"})})]})})})},kA=({api_url:e})=>{const t=it(),n=fe(bA),r=fe(vA),o=fe(_A),s=a.jsx("div",{className:"loadingDiv",children:"Loading ..."});return w.useEffect(()=>{t(dA())},[]),a.jsx("div",{className:"container-fluid",children:a.jsxs("div",{className:"row",children:[a.jsx("div",{className:"col-sm-3",children:a.jsx(EA,{})}),a.jsxs("div",{className:"col-sm-9",children:[a.jsx("div",{className:"row",children:a.jsx("div",{className:"col",children:o?a.jsx(bg,{}):""})}),a.jsx("div",{className:"row",id:"projectListRow",children:a.jsx("div",{className:"col",children:n&&r?a.jsx(NA,{}):s})}),a.jsx("div",{className:"row",children:a.jsx("div",{className:"col",children:o?a.jsx(bg,{scroll:"projects_browser_app"}):""})})]})]})})},OA=e=>e.publications_store.publication,TA=e=>e.publications_store.publication.doi,PA=e=>e.publications_store.publication_types,bw=e=>e.publications_store.publication.authors,IA=e=>e.publications_store.tag_categories,$A=e=>e.publications_store.projects,AA=e=>e.publications_store.publication.tags,MA=e=>e.publications_store.errors,ww=e=>e.publications_store.data_loaded,Sw=e=>e.publications_store.show_saved,Rp=e=>e.publications_store.saving,DA=e=>e.publications_store.modal,_w=e=>e.publications_store.form_valid,Cw=e=>!Rp(e)&&ww(e)&&_w(e)&&jw(e)&&e.publications_store.projects.filter(t=>t.selected).length>0,jw=e=>{const t=bw(e);return t.length==0?!1:t.filter(n=>n.first_name==""||n.last_name=="").length==0},Ew=e=>({type:"UPDATE_PUBLICATION",payload:e}),LA=e=>({type:"UPDATE_FIELD",payload:e}),Rd=e=>({type:"CHANGE_PUB_TYPE",payload:e}),FA=e=>({type:"SET_PUBLICATION",payload:e}),UA=()=>({type:"ADD_AUTHOR"}),VA=e=>({type:"UPDATE_AUTHOR",payload:e}),BA=e=>({type:"TOGGLE_REQUEST",payload:e}),Qs=e=>({type:"UPDATE_ERRORS",payload:e}),Rw=e=>({type:"HIDE_ERROR",payload:e}),zA=e=>({type:"UPDATE_SELECTED_TAGS",payload:e}),qA=e=>({type:"DELETE_AUTHOR",payload:e}),HA=e=>({type:"DATA_LOADED",payload:e}),Nw=e=>({type:"UPDATE_SHOW_SAVED",payload:e}),WA=()=>({type:"RESET_STATE"}),Xc=e=>({type:"UPDATE_SAVING",payload:e}),KA=e=>({type:"SET_FORM_VALID",payload:e}),kw=e=>({type:"SET_GRANT_NUMBER",payload:e}),GA=e=>({type:"ADD_PROJECT",payload:e}),YA=(e,t,n)=>{let r=!0;const o=[];for(const i of t)e[i]||(r=!1,o.push(i));const s=e.authors||[];for(const i of s)for(const l of n)i[l]||(r=!1,o.includes(l)||o.push(l));return{formValid:r,missingFields:o}},QA=e=>e.length>0?a.jsxs("div",{role:"alert",children:[a.jsx("p",{children:"Please provide the following information before submitting:"}),a.jsx("ul",{children:e.map(t=>a.jsx("li",{children:XA(t)},t))})]}):null;function XA(e){return e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}const ZA=()=>async(e,t)=>{const n=t().publications_store.publication.doi,r=encodeURIComponent(n).replaceAll(".","%2E"),o="Unable to retrieve publication. Double check your DOI, or continue entering information manually.";fetch(`/publications/lookup?doi=${r}`).then(s=>s.json()).then(s=>{if(s.title!=""){let i=t().publications_store.publication_types.find(l=>l.citation_style_type==s.type);e(Rd(i?i.publication_type:"Other")),e(FA(s))}else e(Qs(o))},s=>{e(Qs(o))})},JA=()=>async(e,t)=>{const n=t().publications_store.grant_number,r=te.routes.publications_find_project_path();await fetch(`${r}?grant_number=${n}`).then(o=>o.json()).then(o=>{e(GA(o)),e(kw(""))},()=>{e(Qs("Unable to find a project with this grant number."))})},Ow=()=>async e=>{const t=/^\/requests/.test(window.location.pathname)?te.routes.publication_path("new.json"):window.location.href+".json";await fetch(t).then(n=>n.json()).then(n=>{e(HA(n))})},Tw=()=>async(e,t)=>{const n=t().publications_store,r=n.projects.filter(p=>p.selected),o=Object.keys(n.selected_tags).map(p=>n.selected_tags[p]).flat(),s={...n.publication},i=n.errors,{formValid:l,missingFields:c}=YA(s,["title","publication_year","publication_month"],["first_name","last_name"]);if(!l){i.length>0&&Array.from(i).forEach(y=>{e(Rw(y.id))});const p=QA(c);e(Qs(p));return}const u={authenticity_token:document.getElementsByName("authenticity_token")[0].value,publication:s,authors:s.authors.map(p=>({...p,order:0})),tags:o,projects:r};let d,f;s.publication_id?(d=te.routes.publication_path(s.publication_id),f="PATCH"):(d=te.routes.publications_path(),f="POST"),e(Xc(!0)),await fetch(d,{method:f,headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(p=>{n.redirect?window.location.href=te.routes.publications_path():(s.publication_id||(e(WA()),e(Ow())),e(Nw(!0)),e(Xc(!1)))},()=>{e(Xc(!1)),e(Qs("There was an error saving this publication."))})},e2=({doi:e,updatePublication:t,doiLookup:n})=>a.jsx("div",{className:"row mb-3",children:a.jsxs("div",{className:"col",children:[a.jsx("label",{htmlFor:"doi",className:"form-label",children:"DOI"}),a.jsxs("div",{className:"input-group",children:[a.jsx("input",{type:"text",className:"form-control",id:"doi",name:"publication[doi]","aria-label":"DOI Input and Search box","aria-describedby":"doi_button",value:e,onChange:r=>t(r.target.value)}),a.jsx("button",{className:"btn btn-primary",type:"button",id:"doi_button",onClick:()=>n(),children:"Lookup Publication"})]})]})}),t2=e=>({doi:TA(e)}),n2=e=>({updatePublication:t=>e(Ew({key:"doi",value:t})),doiLookup:()=>e(ZA())}),r2=Jt(t2,n2)(e2),o2=({author:e,authorKey:t,updateAuthor:n,deleteAuthor:r})=>{const o=l=>{n({key:l.target.name,value:l.target.value,idx:t})},s=l=>a.jsx("td",{children:a.jsx("input",{type:"text",className:"form-control",name:l,id:l,value:e[l],onChange:c=>o(c)})},`field_${l}`),i=["first_name","last_name","affiliation"];return a.jsxs("tr",{children:[i.map(l=>s(l)),a.jsx("td",{children:t!==0&&a.jsx("button",{className:"btn btn-sm btn-danger",onClick:()=>r(t),children:a.jsx("i",{className:"bi bi-trash"})})})]})},s2=e=>({updateAuthor:t=>e(VA(t)),deleteAuthor:t=>e(qA(t))}),wg=Jt(null,s2)(o2),i2=({authors:e,addAuthor:t,authors_exist:n})=>{const r=e.length===0,o=()=>n?"":a.jsx("div",{className:"alert alert-danger",children:"You must add at least one author and each author must have a first and last name"});return a.jsxs("div",{children:[o(),a.jsxs("table",{className:"table",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"First Name"}),a.jsx("th",{children:"Last Name"}),a.jsx("th",{children:"Affiliation"}),a.jsx("th",{})]})}),a.jsxs("tbody",{children:[e.map((s,i)=>a.jsx(wg,{author:s,authorKey:i},`author_${i}`)),r&&a.jsx(wg,{author:t()})]})]}),a.jsx("button",{className:"btn btn-primary mt-3",onClick:()=>t(),children:"Add Author"})]})},a2=e=>({authors:bw(e),authors_exist:jw(e)}),l2=e=>({addAuthor:()=>e(UA())}),c2=Jt(a2,l2)(i2),u2=({category:e,publication_tags:t,updateSelectedTags:n,index:r})=>{const o=w.useRef(null),s=()=>{const l=t.filter(c=>c.label==e.label)[0];return l?l.options:[]},i=l=>{n({category:e.label,tags:l})};return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fw-bold mb-1",children:e.label}),a.jsx("div",{className:"mb-3",children:a.jsx(jp,{classNames:{control:l=>l.isFocused?"custom-select-selected":"border-grey-300"},defaultValue:s(),options:e.options,isMulti:!0,openMenuOnClick:!0,name:`tags_${r}`,inputId:`tags_${r}`,ref:o,closeMenuOnSelect:!1,onChange:i})})]})},d2=e=>({updateSelectedTags:t=>e(zA(t))}),f2=e=>({publication_tags:AA(e)}),p2=Jt(f2,d2)(u2),h2=({projects:e,toggleProject:t})=>{const n=o=>`list-group-item list-group-item-action clickable ${o.selected?"list-group-item-success":""}`,r=()=>e.filter(o=>o.selected).length>0;return a.jsx("div",{className:"row",children:a.jsxs("div",{className:"col",children:[r()?"":a.jsx("div",{className:"alert alert-danger",children:"You must select at least one project"}),a.jsx("div",{className:"list-group",children:e.map((o,s)=>a.jsxs("div",{className:n(o),onClick:()=>t(s),children:[o.grant_number,": ",o.title]},`project_${o.grant_number}`))})]})})},m2=e=>({projects:$A(e)}),g2=e=>({toggleProject:t=>e(BA(t))}),v2=Jt(m2,g2)(h2),y2=({grant_number:e,setGrantNumber:t,grantSearch:n})=>a.jsx("div",{className:"row",children:a.jsxs("div",{className:"col",children:["If your project isn't listed above, you can manually add it by entering the grant number below.",a.jsxs("div",{className:"input-group mt-1",children:[a.jsx("input",{type:"text",className:"form-control",value:e,onChange:r=>t(r.target.value),placeholder:"Enter a grant number"}),a.jsx("button",{className:"btn btn-primary",onClick:()=>n(),children:"Find Project"})]})]})}),x2=e=>({setGrantNumber:t=>e(kw(t)),grantSearch:()=>e(JA())}),b2=e=>({grant_number:e.publications_store.grant_number}),w2=Jt(b2,x2)(y2),S2=({publication:e,updateField:t,publication_types:n,changePubType:r,updatePublication:o,tag_categories:s,savePublication:i,modal:l,save_enabled:c,setFormValid:u,form_valid:d})=>{const f=v=>{v.target.value.trim()==""?u(!1):u(!0),o({key:"title",value:v.target.value})},p=()=>e.fields.map((v,b)=>a.jsx("div",{className:"row mb-3",children:a.jsxs("div",{className:"col",children:[a.jsx("label",{htmlFor:`field_${v.csl_field_name}`,className:"form-label",children:v.name}),a.jsx("input",{type:"text",className:"form-control",name:`field_${v.csl_field_name}`,id:`field_${v.csl_field_name}`,value:v.field_value,onChange:S=>t({index:b,value:S.target.value})})]})},`field_${v.csl_field_name}`)),y=()=>{const v=new Date().getFullYear()+2;let b=1980;const S=[];for(;b<=v;)S.push(b++);const _=["January","February","March","April","May","June","July","August","September","October","November","December"],C=a.jsx("i",{className:"bi bi-asterisk text-danger"});return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"row mb-3",children:a.jsxs("div",{className:"col",children:[a.jsxs("label",{className:"form-label",htmlFor:"publication_title",children:["Title ",C]}),a.jsx("input",{name:"publication_title",id:"publication_title",type:"text",className:`form-control ${d?"":"is-invalid"}`,value:e.title,onChange:j=>f(j)})]})}),a.jsx("div",{className:"row mb-3",children:a.jsxs("div",{className:"col",children:[a.jsx("label",{className:"form-label",htmlFor:"publication_year",children:"Year Published"}),a.jsx("select",{name:"publication_year",id:"publication_year",className:"form-control",value:e.publication_year,onChange:j=>{o({key:"publication_year",value:j.target.value})},children:S.map(j=>a.jsx("option",{value:j,children:j},`year_${j}`))})]})}),a.jsx("div",{className:"row mb-3",children:a.jsxs("div",{className:"col",children:[a.jsx("label",{className:"form-label",htmlFor:"publication_month",children:"Month Published"}),a.jsx("select",{name:"publication_month",id:"publication_month",className:"form-control",value:e.publication_month,onChange:j=>{o({key:"publication_month",value:j.target.value})},children:_.map((j,E)=>a.jsx("option",{value:E+1,children:j},`month_${E}`))})]})})]})},m=a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"card-header",children:a.jsx("h2",{children:"Publication Information"})}),a.jsxs("div",{className:"card-body",children:[a.jsx("p",{className:"mb-2",children:'Enter information about this publication below. If you have a DOI, you may use the "Lookup Publication" button to attempt to find this information automatically.'}),a.jsx(r2,{}),a.jsx("div",{className:"row mb-3",children:a.jsxs("div",{className:"col",children:[a.jsx("label",{htmlFor:"publication_type",className:"form-label",children:"Publication Type"}),a.jsx("select",{name:"publication[publication_type]",id:"publication_type",className:"form-control",value:e.publication_type,onChange:v=>r(v.target.value),children:n.map(v=>a.jsx("option",{value:v.publication_type,children:v.publication_type},`pub_type_${v.type_id}`))})]})}),y(),p()]})]}),h=a.jsxs("div",{className:"card mt-3",children:[a.jsxs("div",{className:"card-header d-flex",children:[a.jsx("h2",{children:"Authors"}),a.jsxs(go,{children:[`Add authors by clicking the "Add Authors" button below and entering the author's details. You may also remove authors by clicking the `,a.jsx("i",{className:"bi bi-trash fw-bold text-danger"})," ","button"]})]}),a.jsx("div",{className:"card-body",children:a.jsx(c2,{})})]}),x=a.jsxs("div",{className:"card mt-3",children:[a.jsxs("div",{className:"card-header d-flex",children:[a.jsx("h2",{children:"Tags"}),a.jsx(go,{children:"Add related tags from the lists below. You may choose multiple tags per category."})]}),a.jsx("div",{className:"card-body",children:s.map((v,b)=>a.jsx(p2,{index:b,category:v},`tc_${b}`))})]}),g=a.jsxs("div",{className:"card mt-3",children:[a.jsxs("div",{className:"card-header d-flex",children:[a.jsx("h2",{children:"Associated Projects"}),a.jsx(go,{children:"Click/Tap each project that this publication is related to."})]}),a.jsxs("div",{className:"card-body",children:[a.jsx(v2,{}),a.jsx("hr",{}),a.jsx(w2,{})]})]});return a.jsxs(a.Fragment,{children:[m,h,x,g,l?null:a.jsx("p",{className:"mt-3",children:a.jsx("button",{onClick:()=>i(),className:"btn btn-success",disabled:!c,children:"Save Publication"})})]})},_2=e=>({publication:OA(e),publication_types:PA(e),tag_categories:IA(e),saving:Rp(e),modal:DA(e),save_enabled:Cw(e),form_valid:_w(e)}),C2=e=>({updateField:t=>e(LA(t)),changePubType:t=>e(Rd(t)),updatePublication:t=>e(Ew(t)),savePublication:()=>e(Tw()),setFormValid:t=>e(KA(t))}),j2=Jt(_2,C2)(S2),E2=({errors:e,hideError:t})=>a.jsx(a.Fragment,{children:e.map(n=>a.jsxs("div",{className:"alert alert-danger alert-dismissible sticky-top",children:[n.message,a.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>t(n.id)})]},`err_${n.id}`))}),R2=e=>({errors:MA(e)}),N2=e=>({hideError:t=>e(Rw(t))}),k2=Jt(R2,N2)(E2),O2=({show_saved:e,updateShowSaved:t})=>{const n=a.jsxs("div",{className:"alert alert-success alert-dismissible sticky-top",children:["Publication Saved Successfully!",a.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>t(!1)})]});return e?n:a.jsx(a.Fragment,{})},T2=e=>({show_saved:Sw(e)}),P2=e=>({updateShowSaved:t=>e(Nw(t))}),I2=Jt(T2,P2)(O2),$2=({getData:e,data_loaded:t})=>(w.useEffect(()=>{e()},[]),a.jsxs(a.Fragment,{children:[a.jsx(I2,{}),a.jsx(k2,{}),t?a.jsx(j2,{}):a.jsx(Do,{})]})),A2=e=>({data_loaded:ww(e)}),M2=e=>({getData:()=>e(Ow())}),Pw=Jt(A2,M2)($2),D2=({saving:e,savePublication:t,showSaved:n,updatePublications:r,save_enabled:o})=>{const[s,i]=w.useState(!1);return w.useEffect(()=>{!e&&n&&r()},[e,n]),a.jsxs(a.Fragment,{children:[a.jsxs(ge,{size:"xl",show:s,onHide:()=>i(!1),scrollable:!0,children:[a.jsx(ge.Header,{closeButton:!0,children:a.jsx(ge.Title,{children:"Add Publication"})}),a.jsx(ge.Body,{children:a.jsx(Pw,{})}),a.jsx(ge.Footer,{children:a.jsxs("div",{className:"d-flex",children:[a.jsx("button",{type:"button",className:"btn btn-danger me-2",onClick:()=>i(!1),children:"Cancel"}),a.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>{t(),i(!1)},children:"Save Publication"})]})})]}),a.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>i(!0),children:"Add a New Publication"})]})},L2=e=>({saving:Rp(e),showSaved:Sw(e),save_enabled:Cw(e)}),F2=e=>({savePublication:()=>e(Tw())}),U2=Jt(L2,F2)(D2),V2=({usernames:e=[],publication_ids:t=[]})=>{const[n,r]=w.useState(e),[o,s]=w.useState(t),[i,l]=w.useState([]),c=w.useRef(n),u=h=>{c.current=h,r(h)},d=async()=>{const x=await(await fetch(te.routes.search_publications_path({usernames:n}))).json();l(x)};w.useEffect(()=>{d()},[n]),w.useEffect(()=>{addEventListener("requestAddRole",h=>u([...c.current,h.detail.username])),addEventListener("requestRemoveRole",h=>u(c.current.filter(x=>x!=h.detail.username)))},[]);let f=!1,p=!1;const y=i.map(h=>{const x=o.includes(h.publication_id);f=f||x,p=p||!x;const g=new Date(h.publication_year,h.publication_month-1);return a.jsxs("tr",{children:[a.jsx("td",{children:a.jsx("input",{type:"checkbox",name:"publication_ids[]",value:h.publication_id,checked:x,onChange:()=>s(x?o.filter(v=>v!=h.publication_id):[...o,h.publication_id])})}),a.jsx("td",{children:h.title}),a.jsx("td",{children:h.authors.map(v=>`${v.first_name} ${v.last_name}`).join(", ")}),a.jsx("td",{children:h.publication_type}),a.jsxs("td",{children:[g.toLocaleString("default",{month:"short"})," ",h.publication_year]})]},h.publication_id)}),m=`${p?"Select":"Deselect"} all`;return a.jsxs("div",{className:"publications-select",children:[a.jsxs("table",{className:"table",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:a.jsx("input",{type:"checkbox",value:"","aria-label":m,title:m,checked:f&&!p,onChange:()=>s(p?i.map(h=>h.publication_id):[]),ref:h=>{h&&(h.indeterminate=f&&p)}})}),a.jsx("th",{children:"Title"}),a.jsx("th",{children:"Authors"}),a.jsx("th",{children:"Type"}),a.jsx("th",{children:"Date"})]})}),a.jsx("tbody",{children:y})]}),a.jsx(U2,{updatePublications:d})]})},B2=()=>`${Math.random().toString(36).slice(2)}`,Nd=document.querySelector("#publications-react"),z2=Nd?Nd.dataset:{},Sg={publication_types:[],tag_categories:[],publication:{},projects:[],errors:[],selected_tags:{},data_loaded:!1,saving:!1,show_saved:!1,redirect:z2.redirect||!1,modal:Nd==null,form_valid:!1,grant_number:""},q2=(e=Sg,t)=>{const{type:n,payload:r}=t;switch(n){case"UPDATE_FIELD":return Tt(e,s=>(s.publication.fields[r.index].field_value=r.value,s));case"CHANGE_PUB_TYPE":return Tt(e,s=>{let i=s.publication_types.find(l=>l.publication_type==r).fields;return i.forEach(l=>{const c=s.publication.fields.find(u=>u.csl_field_name==l.csl_field_name);c&&(l.value=c.value)}),s.publication.publication_type=r,s.publication.fields=i,s});case"UPDATE_PUBLICATION":return{...e,publication:{...e.publication,[r.key]:r.value}};case"SET_PUBLICATION":return Tt(e,s=>(s.publication.fields.forEach(i=>{i.field_value=r[i.csl_field_name]}),Object.keys(s.publication).forEach(i=>{r[i]&&(s.publication[i]=r[i])}),s.form_valid=r.title.trim()!="",s));case"ADD_AUTHOR":{const o={portal_username:"",first_name:"",middle_name:"",last_name:"",prefix:"",suffix:"",initials:"",affiliation:"",hash:{}};return Tt(e,i=>{i.publication.authors.push(o)})}case"UPDATE_AUTHOR":return Tt(e,s=>{s.publication.authors[r.idx][r.key]=r.value});case"TOGGLE_TAG":return Tt(e,s=>{let i=s.tag_categories.find(l=>l.publication_tags_category_id==r.publication_tags_category_id);i.tags[r.idx].selected=!i.tags[r.idx].selected});case"TOGGLE_REQUEST":return Tt(e,s=>(s.projects[r].selected=!s.projects[r].selected,s));case"UPDATE_ERRORS":{const o={id:B2(),message:r};return{...e,errors:[...e.errors,o]}}case"HIDE_ERROR":{const o=e.errors.filter(s=>s.id!=r);return{...e,errors:o}}case"UPDATE_SELECTED_TAGS":return Tt(e,s=>{const i=r.tags.map(l=>l.value);return s.selected_tags[r.category]=i,s});case"DELETE_AUTHOR":return Tt(e,s=>(s.publication.authors.splice(r,1),s));case"DATA_LOADED":return Tt(e,s=>(s.publication=r.publication,s.form_valid=r.publication.title.trim()!="",s.publication.authors.forEach(i=>{i.affiliation||(i.affiliation="")}),s.publication_types=r.publication_types,s.tag_categories=r.tag_categories,s.projects=r.publication.projects,r.publication.tags.forEach(i=>s.selected_tags[i.label]=i.options.map(l=>l.value)),s.data_loaded=!0,s));case"UPDATE_SHOW_SAVED":return{...e,show_saved:r};case"UPDATE_SAVING":return{...e,saving:r};case"RESET_STATE":return Sg;case"SET_FORM_VALID":return{...e,form_valid:r};case"SET_GRANT_NUMBER":return{...e,grant_number:r};case"ADD_PROJECT":return{...e,projects:[...e.projects,r]};default:return e}},H2={catalogs:{},filteredResources:[],filters:[],hasErrors:!1,onRamps:!1,resources:[],resourcesLoaded:!1,resourceSorting:{"NSF Capacity Resources":1,"NSF Innovative Testbeds":2,"Other NSF-funded Resources":3,"Services and Support":4}},pa=Qe("resourceCatalog/getResources",async(e,{dispatch:t})=>{t(_g(!1));let n=[];e.catalogSources?n=e.catalogSources:n.push({...e,catalogLabel:"Default"}),e.onRamps&&n.push({apiUrl:"https://allocations.access-ci.org/resources.json",catalogLabel:"ACCESS",allowedCategories:[],allowedFilters:[],allowedResources:[],excludedCategories:["Resource Category"],excludedFilters:[],excludedResources:["ACCESS Credits"]});const r=await Promise.all(n.map(async o=>{const i=await(await fetch(o.apiUrl)).json();return{...o,data:i}}));t(Y2({data:r,params:e})),t(_g(!0))});Qe("resourceCatalog/getResources",async(e,{dispatch:t})=>{t(X2(e)),t($w())});const W2=e=>{const t=[],n=e.filter(r=>r.features.filter(o=>o.selected).length>0);return e.forEach(r=>{r.features.forEach(o=>{o.selected&&t.push(o.featureId)})}),n.map(r=>({...r,features:r.features.filter(o=>o.selected)}))},K2=e=>{const t={},n={};let r={};return e.forEach(s=>{t[s.catalogLabel]={...s,resourceIds:[],selected:!1,catalogId:s.catalogLabel.replace(/[^(A-z)]/,"")},delete t[s.catalogLabel].data,s.data.forEach(i=>{if(kd(s.allowedResources,s.excludedResources,i.resourceName)){const{categories:l,formattedResource:c}=G2(s,i,r);n[i.resourceId]=c,t[s.catalogLabel].resourceIds.push(i.resourceId),r=l}})}),{resources:Object.keys(n).map(s=>n[s]),catalogs:t,categories:r}},kd=(e,t,n)=>!e&&!t||e&&e.length==0&&t&&t.length==0?!0:e&&e.length>0?e.find(r=>r==n):t&&t.length>0?!t.find(r=>r==n):!0,G2=(e,t,n)=>{const r=[];let o="";t.featureCategories.filter(l=>l.categoryIsFilter).forEach(l=>{const c=l.categoryId;l.categoryName=="ACCESS Resource Grouping"?o=l.features[0].name:(!n[c]&&kd(e.allowedCategories,e.excludedCategories,l.categoryName)&&(n[c]={categoryId:c,categoryName:l.categoryName,categoryDescription:l.categoryDescription,features:{}}),l.features.forEach(u=>{const d={featureId:u.featureId,name:u.name,description:u.description,categoryId:c,selected:!1},f=kd(e.allowedFilters,e.excludedFilters,d.name);f&&r.push(d),n[c]&&f&&!n[c].features[u.featureId]&&(n[c].features[u.featureId]=d)}))});const s=r.map(l=>l.name).sort((l,c)=>l>c);return{formattedResource:{...t,resourceName:t.resourceName.trim(),features:s,featureIds:r.map(l=>l.featureId),sortCategory:o},categories:n}},Iw=ri({name:"resourceCatalog",initialState:H2,reducers:{handleResponse:(e,{payload:t})=>{const n=t.data,{resources:r,catalogs:o,categories:s}=K2(n);e.catalogs=o,e.onRamps=t.params.onRamps;for(const i in s){const l=s[i],c=[];for(const u in l.features)c.push(l.features[u]);e.filters.push({...l,features:c.sort((u,d)=>u.name>d.name)})}e.filters=e.filters.sort((i,l)=>i.categoryName.localeCompare(l.categoryName)),e.resources=r.sort((i,l)=>i.resourceName.localeCompare(l.resourceName)).sort((i,l)=>e.resourceSorting[i.sortCategory]>e.resourceSorting[l.sortCategory]),e.filteredResources=[...e.resources],e.resourcesLoaded=!0},resetFilters:e=>{e.filters.forEach(t=>{t.features.forEach(n=>n.selected=!1)}),e.filteredResources=[...e.resources]},setResourcesLoaded:(e,{payload:t})=>{e.resourcesLoaded=t},toggleCatalog:(e,{payload:t})=>{const{catalog:n,selected:r}=t;e.catalogs[n.catalogLabel].selected=r},toggleFilter:(e,{payload:t})=>{if(t){const i=t,c=e.filters.find(u=>u.categoryId==i.categoryId).features.find(u=>u.featureId==i.featureId);c.selected=!c.selected}const n=W2(e.filters);let r=[];if(n.length>0){const i=n.map(l=>l.features.map(c=>c.featureId));e.resources.forEach(l=>{let c=0;i.forEach(u=>{let d=!1;l.featureIds.forEach(f=>{u.indexOf(f)>=0&&(d=!0)}),d&&(c+=1)}),c>=i.length&&r.push(l)})}else r=e.resources;const o=Object.keys(e.catalogs).map(i=>e.catalogs[i]),s=o.filter(i=>i.selected);if(s.length>0&&s.length<o.length){const i=s.map(l=>l.resourceIds).flat();r=r.filter(l=>i.indexOf(l.resourceId)>=0)}e.filteredResources=r}},extraReducers:e=>{e.addCase(pa.pending,t=>{}).addCase(pa.fulfilled,(t,n)=>{}).addCase(pa.rejected,(t,n)=>{t.hasErrors=!0,console.log(n.error)})}}),{handleResponse:Y2,processData:uD,resetFilters:Q2,setResourcesLoaded:_g,toggleCatalog:X2,toggleFilter:$w}=Iw.actions,Aw=e=>e.resourceCatalog.catalogs,Z2=e=>e.resourceCatalog.filters,J2=e=>e.resourceCatalog.hasErrors,eM=e=>e.resourceCatalog.resourcesLoaded,tM=e=>e.resourceCatalog.filteredResources,nM=Iw.reducer,rM="_access_1yrq0_2",oM="_resourceName_1yrq0_6",sM="_description_1yrq0_11",iM="_filterBar_1yrq0_15",aM="_cardBg_1yrq0_20",lM="_active_1yrq0_25",cM="_plainButton_1yrq0_30",uM="_btnSecondary_1yrq0_40",dM="_filtersHidden_1yrq0_51",fM="_filtersVisible_1yrq0_57",$t={access:rM,resourceName:oM,description:sM,filterBar:iM,cardBg:aM,active:lM,plainButton:cM,btnSecondary:uM,filtersHidden:dM,filtersVisible:fM},pM=({resource:e})=>{const[t,n]=w.useState(!0),r=u=>{const d={"CPU Compute":"cpu-fill","GPU Compute":"gpu-card",Cloud:"cloud-fill","Commercial Cloud":"cloud-fill",Storage:"database-fill","Service / Other":"journal","Innovative / Novel Compute":"pc"};return d[u]?a.jsx("i",{title:u,className:`bi bi-${d[u]} me-2 `},`${e.resourceId}_${d[u]}`):""},o=()=>a.jsxs("span",{className:"float-end",children:[e.features.map(u=>r(u)),e.resourceType]}),s=u=>u.length==0?"":a.jsx(a.Fragment,{children:u.map((d,f)=>a.jsx("span",{className:"badge text-bg-secondary me-2",children:d},`feature_${e.resourceId}_${f}`))}),i=()=>{let u=e.resourceDescription;return u&&u!=""?($t.plainButton,a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"row",children:a.jsxs("div",{className:"col fw-bold",children:["About ",e.resourceName]})}),a.jsx("div",{className:"row mb-3",children:a.jsxs("div",{className:"col ",children:[a.jsx("div",{className:$t.description,dangerouslySetInnerHTML:{__html:u}}),""]})})]})):""},l=()=>e.recommendedUse&&e.recommendedUse!=""?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"row",children:a.jsx("div",{className:"col fw-bold",children:"Recommended Use"})}),a.jsx("div",{className:"row mb-3",children:a.jsx("div",{className:"col",children:a.jsx("div",{className:$t.description,dangerouslySetInnerHTML:{__html:e.recommendedUse}})})})]}):"",c=()=>$t.cardBg;return a.jsx(a.Fragment,{children:a.jsx("div",{className:"row",children:a.jsx("div",{className:"col",children:a.jsxs("div",{className:"card mb-3",children:[a.jsxs("div",{className:`card-header ${c()}`,children:[a.jsx("span",{className:"",children:e.resourceName}),o()]}),a.jsxs("div",{className:"card-body",children:[a.jsx("div",{className:"row mb-3",children:a.jsx("div",{className:"col",children:s(e.features)})}),l(),i()]}),a.jsx("div",{className:"card-footer",children:a.jsxs("a",{target:"_blank",href:e.userGuideUrl,className:"btn btn-info me-2 fw-bold",children:["System Info ",a.jsx("i",{className:"bi bi-box-arrow-up-right"})]})})]})})})})},hM=({filter:e})=>{const t=it(),n=()=>{t($w(e))};return a.jsx("div",{className:"row",children:a.jsx("div",{className:"col",children:a.jsxs("div",{className:"form-check",children:[a.jsx("label",{className:"form-check-label",htmlFor:`filter_${e.featureId}`,children:e.name}),a.jsx("input",{className:"form-check-input",type:"checkbox",value:e.featureId,id:`filter_${e.featureId}`,checked:e.selected,onChange:n})]})})})},mM=({category:e})=>a.jsx("div",{className:"row",children:a.jsxs("div",{className:"col",children:[a.jsx("div",{className:"fw-bold mb-1 mt-1",children:a.jsx("abbr",{title:e.categoryDescription,children:e.categoryName})}),e.features.map(t=>a.jsx(hM,{filter:t},t.featureId))]})}),gM=({onReset:e})=>{const t=it(),n=fe(Aw),r=fe(Z2),o=r.filter(s=>s.features.filter(i=>i.selected).length>0);return Object.keys(n).map(s=>n[s]),a.jsxs(a.Fragment,{children:[r.map(s=>a.jsx(mM,{category:s},s.categoryId)),a.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>t(Q2()),disabled:o.length==0,children:"Reset Filters"}),a.jsx("button",{className:"btn btn-outline-primary ms-3 mt-2 mb-2",onClick:e,children:"Close Menu"})]})},vM=()=>{const[e,t]=w.useState(!1),n=w.useRef(null),r=()=>{const o=n.current;e?(o.style.height="0px",o.classList.remove($t.filtersVisible),o.classList.add($t.filtersHidden)):(o.style.height=o.scrollHeight+"px",o.classList.remove($t.filtersHidden),o.classList.add($t.filtersVisible)),t(!e)};return a.jsx("div",{className:$t.filterBar,children:a.jsx("div",{className:"row mb-2",children:a.jsx("div",{className:"col pt-2 pb-2",children:a.jsxs("div",{className:"p-1 pb-0 border-bottom bg-white shadow",children:[a.jsxs("button",{className:"btn btn-outline-primary mb-1 mt-1",type:"button",onClick:r,children:[a.jsx("i",{className:"bi bi-filter"})," Filters"]}),a.jsx("div",{className:`${$t.filtersHidden} pe-2 ps-2`,id:"filtersList",ref:n,children:a.jsx(gM,{onReset:r})})]})})})})},yM=()=>{const e=fe(tM);return e.length==0?a.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):a.jsx("div",{className:"card shadow",children:a.jsxs("div",{className:"card-body",children:[a.jsx(vM,{}),e.map(t=>a.jsx(pM,{resource:t},t.resourceId))]})})},xM=({baseUrl:e})=>a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"row",children:a.jsx("div",{className:"col d-flex",children:a.jsx("img",{alt:"Access Logo",style:{height:"75px"},src:`${e}/access_logo.png`})})}),a.jsx("div",{className:"row",children:a.jsx("div",{className:"col",children:a.jsx("h3",{className:"border-bottom",children:"NSF ACCESS Resources"})})}),a.jsx("div",{className:"row",children:a.jsxs("div",{className:"col",children:[a.jsx("h4",{children:"Discover the nationwide NSF cyberinfrastructure"}),a.jsx("p",{children:"Need advanced computing and storage options for your research or classroom? The ACCESS program has been established and funded by the U.S. National Science Foundation to help you - the nation's researchers and educators - to use some of the country's most advanced computing systems and services - at no cost to you."}),a.jsx("p",{children:"Thousands of researchers, instructors, and students from institutions large and small use ACCESS-integrated resources every year. With more than 30 resources from more than 15 resource providers, there's bound to be a resource for you, your lab, or your class."}),a.jsx("p",{children:"Explore the resource catalog below - filter the list to discover the resources that have the features or services to accelerate your activities. The System Info button will take you to the resource's documentation for all the details."}),a.jsx("p",{children:'Ready to begin? Click the "Get Your First Project" button and join the ACCESS community!'}),a.jsx("p",{children:a.jsxs("a",{href:"https://allocations.access-ci.org/get-your-first-project",target:"_blank",className:`btn btn-secondary fw-bold ${$t.btnSecondary}`,children:["Get Your First Project ",a.jsx("i",{className:"bi bi-box-arrow-up-right"})]})}),a.jsxs("p",{children:["If you have feedback for ACCESS, please complete our",a.jsx("a",{target:"_blank",href:"https://docs.google.com/forms/d/e/1FAIpQLSdn-SXokNB_5s0r2SA_S9ZIZWZFlVPRD2OHepTH5HY2YND_zw/viewform",children:" Feedback Form"}),".",a.jsx("br",{}),"If you have questions, please",a.jsx("a",{target:"_blank",href:"https://support.access-ci.org/user/login?destination=/open-a-ticket",children:" open a help ticket"}),"."]})]})})]}),bM=({catalogSources:e=[],onRamps:t=!1,baseUrl:n})=>{const r=it(),o=fe(eM),s=fe(J2),i=fe(Aw),l=Object.keys(i).map(u=>i[u]);w.useEffect(()=>{r(pa({catalogSources:e,onRamps:t}))},[]);const c=()=>t&&l.length>1?a.jsx(a.Fragment,{children:l.filter(u=>u.catalogLabel!="ACCESS").map((u,d)=>a.jsx("div",{className:"row mb-3",children:a.jsxs("div",{className:"col",children:[a.jsxs("h4",{className:"border-bottom",children:["About ",u.catalogLabel]}),a.jsx("div",{dangerouslySetInnerHTML:{__html:u.description}})]})},`catalog_${d}`))}):"";return s?a.jsx("div",{className:"row",children:a.jsx("div",{className:"col text-center mt-2",children:a.jsx("h4",{children:"Unable to Load Resources"})})}):o?a.jsxs("div",{className:`container mt-3 ${$t.access}`,children:[t?a.jsx(xM,{baseUrl:n}):"",c(),a.jsx("div",{className:"row",children:a.jsx("div",{className:"col",children:a.jsx(yM,{})})})]}):a.jsx(Do,{})},wM={filters:[],resources:[],filteredResources:[],resourcesLoaded:!1,hasErrors:!1,resourceSorting:{"NSF Capacity Resources":1,"NSF Innovative Testbeds":2,"Other NSF-funded Resources":3,"Services and Support":4}},ha=Qe("resourceCatalog/getResources",async(e,{dispatch:t})=>{const r=await(await fetch(e.apiUrl)).json();t(_M({data:r,params:e}))}),SM=e=>{const t=[],n=e.filter(r=>r.features.filter(o=>o.selected).length>0);return e.forEach(r=>{r.features.forEach(o=>{o.selected&&t.push(o.featureId)})}),n.map(r=>({...r,features:r.features.filter(o=>o.selected)}))},Cg=(e,t,n)=>{if(e.length==0&&t.length==0)return!0;if(e.length>0)return e.find(r=>r==n);if(t.length>0)return!t.find(r=>r==n)},Mw=ri({name:"resourceCatalog",initialState:wM,reducers:{handleResponse:(e,{payload:t})=>{const n=t.data,r=t.params.excludedCategories,o=t.params.excludedFilters,s=t.params.excludedResources,i=t.params.allowedCategories,l=t.params.allowedFilters,c=[],u={};n.filter(d=>!s.includes(d.resourceName)).forEach(d=>{const f=[];let p="";d.featureCategories.filter(m=>m.categoryIsFilter).forEach(m=>{const h=m.categoryId;m.categoryName=="ACCESS Resource Grouping"?p=m.features[0].name:(!u[h]&&Cg(i,r,m.categoryName)&&(u[h]={categoryId:h,categoryName:m.categoryName,categoryDescription:m.categoryDescription,features:{}}),m.features.forEach(x=>{const g={featureId:x.featureId,name:x.name,description:x.description,categoryId:h,selected:!1},v=Cg(l,o,g.name);v&&f.push(g),u[h]&&v&&!u[h].features[x.featureId]&&(u[h].features[x.featureId]=g)}))});const y={resourceName:d.resourceName,resourceId:d.resourceId,resourceType:d.resourceType,organization:d.organization,units:d.units,userGuideUrl:d.userGuideUrl,resourceDescription:d.resourceDescription,description:d.description,recommendedUse:d.recommendedUse,features:f.map(m=>m.name).sort((m,h)=>m>h),featureIds:f.map(m=>m.featureId),sortCategory:p};c.push(y)});for(const d in u){const f=u[d],p=[];for(const y in f.features)p.push(f.features[y]);e.filters.push({...f,features:p.sort((y,m)=>y.name>m.name)})}i.length>0?e.filters=e.filters.sort((d,f)=>i.indexOf(d.categoryName)>i.indexOf(f.categoryName)):e.filters=e.filters.sort((d,f)=>d.categoryName.localeCompare(f.categoryName)),e.resources=c.sort((d,f)=>d.resourceName.localeCompare(f.resourceName)).sort((d,f)=>e.resourceSorting[d.sortCategory]>e.resourceSorting[f.sortCategory]),e.filteredResources=[...e.resources],e.resourcesLoaded=!0},resetFilters:e=>{e.filters.forEach(t=>{t.features.forEach(n=>n.selected=!1)}),e.filteredResources=[...e.resources]},toggleFilter:(e,{payload:t})=>{const n=t,o=e.filters.find(i=>i.categoryId==n.categoryId).features.find(i=>i.featureId==n.featureId);o.selected=!o.selected;const s=SM(e.filters);if(s.length>0){const i=[],l=s.map(c=>c.features.map(u=>u.featureId));e.resources.forEach(c=>{let u=0;l.forEach(d=>{let f=!1;c.featureIds.forEach(p=>{d.indexOf(p)>=0&&(f=!0)}),f&&(u+=1)}),u>=l.length&&i.push(c)}),e.filteredResources=i}else e.filteredResources=[...e.resources]}},extraReducers:e=>{e.addCase(ha.pending,t=>{}).addCase(ha.fulfilled,(t,n)=>{}).addCase(ha.rejected,(t,n)=>{t.hasErrors=!0,console.log(n.error)})}}),{handleResponse:_M,processData:dD,resetFilters:CM,toggleFilter:jM}=Mw.actions,EM=e=>e.resourceCatalog.hasErrors,RM=e=>e.resourceCatalog.resourcesLoaded,NM=e=>e.resourceCatalog.filters,kM=e=>e.resourceCatalog.filteredResources,OM=Mw.reducer,TM=({resource:e})=>{const t=r=>r.length==0?"":a.jsx("ul",{children:r.map((o,s)=>a.jsx("li",{children:o},`feature_${e.resourceId}_${s}`))}),n=(r,o)=>o&&o!=""?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"row",children:a.jsx("div",{className:"col fw-bold",children:r})}),a.jsx("div",{className:"row mb-3",children:a.jsx("div",{className:"col",dangerouslySetInnerHTML:{__html:o}})})]}):"";return a.jsxs(Wt.Item,{eventKey:e.resourceId,children:[a.jsx(Wt.Header,{children:e.resourceName}),a.jsxs(Wt.Body,{children:[a.jsx("table",{className:"table",children:a.jsxs("tbody",{children:[a.jsxs("tr",{children:[a.jsx("td",{className:"fw-bold",children:"Resource Type:"}),a.jsx("td",{children:e.resourceType})]}),a.jsxs("tr",{children:[a.jsx("td",{className:"fw-bold",children:"Organization:"}),a.jsx("td",{children:e.organization})]}),a.jsxs("tr",{children:[a.jsx("td",{className:"fw-bold",children:"Units:"}),a.jsx("td",{children:e.units})]}),a.jsxs("tr",{children:[a.jsx("td",{className:"fw-bold",children:"User Guide:"}),a.jsx("td",{children:e.userGuideUrl==""?"":a.jsx("a",{href:e.userGuideUrl,target:"_blank",rel:"noreferrer",children:"Link to User Guide"})})]}),a.jsxs("tr",{children:[a.jsx("td",{className:"fw-bold",children:"Features Available:"}),a.jsx("td",{children:t(e.features)})]})]})}),n("Resource Description",e.resourceDescription),n("Allocations Description",e.description),n("Recommended Use",e.recommendedUse)]})]})},PM=()=>{const e=fe(kM);return e.length==0?a.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):a.jsxs("div",{children:[a.jsx("h4",{className:"mb-0",children:"Resources"}),a.jsx(Wt,{children:e.map(t=>a.jsx(TM,{resource:t},t.resourceId))})]})},IM=({filter:e})=>{const t=it(),n=()=>{t(jM(e))};return a.jsx("div",{className:"row",children:a.jsx("div",{className:"col",children:a.jsxs("div",{className:"form-check",children:[a.jsx("label",{className:"form-check-label",htmlFor:`filter_${e.featureId}`,children:e.name}),a.jsx("input",{className:"form-check-input",type:"checkbox",value:e.featureId,id:`filter_${e.featureId}`,checked:e.selected,onChange:n})]})})})},$M=({category:e})=>a.jsx("div",{className:"row",children:a.jsxs("div",{className:"col",children:[a.jsx("div",{className:"fw-bold mb-1 mt-1",children:a.jsx("abbr",{title:e.categoryDescription,children:e.categoryName})}),e.features.map(t=>a.jsx(IM,{filter:t},t.featureId))]})}),AM=()=>{const e=it(),t=fe(NM),n=t.filter(r=>r.features.filter(o=>o.selected).length>0);return a.jsxs("div",{children:[a.jsx("h4",{className:"mb-0",children:"Filters"}),t.map(r=>a.jsx($M,{category:r},r.categoryId)),a.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>e(CM()),disabled:n.length==0,children:"Reset Filters"})]})},MM=({apiUrl:e,excludedCategories:t=[],excludedFilters:n=[],excludedResources:r=[],allowedCategories:o=[],allowedFilters:s=[]})=>{const i=it(),l=fe(RM),c=fe(EM);return w.useEffect(()=>{i(ha({apiUrl:e,excludedCategories:t,excludedFilters:n,excludedResources:r,allowedCategories:o,allowedFilters:s}))},[]),c?a.jsx("div",{className:"row",children:a.jsx("div",{className:"col text-center mt-2",children:a.jsx("h4",{children:"Unable to Load Resources"})})}):l?a.jsx(a.Fragment,{children:a.jsxs("div",{className:"row mt-3",children:[a.jsx("div",{className:"col-sm-4",children:a.jsx(AM,{})}),a.jsx("div",{className:"col-sm-8",children:a.jsx(PM,{})})]})}):a.jsx(Do,{})},Dw={apiUrl:null,pages:1,publications:[],publicationsLoaded:!0,showPagination:!1,filterSelections:{allJournalsToggled:!1,doi:"",journal:"",authorName:"",publicationType:""},pageData:{current_page:1,last_page:1},filterOptions:{journals:[],publication_types:[]}},DM=Qe("publicationsBrowser/initApp",async(e,{getState:t,dispatch:n})=>{await n(kr()),await n(Lw())}),kr=Qe("publicationsBrowser/getPublications",async(e,{getState:t})=>{const n=t().publicationsBrowser;let r=`${n.apiUrl}?page=${n.pageData.current_page}`;if(n.filterSelections.doi!==""&&(r+=`&doi=${encodeURIComponent(n.filterSelections.doi)}`),n.filterSelections.authorName!==""&&(r+=`&author_name=${encodeURIComponent(n.filterSelections.authorName)}`),n.filterSelections.journal!==""){const i=n.filterSelections.journal;n.filterOptions.journals.includes(i)&&(r+=`&journal=${encodeURIComponent(n.filterSelections.journal)}`)}return n.filterSelections.publicationType!==""&&(r+=`&publication_type=${encodeURIComponent(n.filterSelections.publicationType)}`),await(await fetch(r)).json()}),Lw=Qe("publicationsBrowser/getFilters",async(e,{getState:t,dispatch:n})=>{const o=`${t().publicationsBrowser.apiUrl}?filters=1`;return(await(await fetch(o)).json()).filters||[]}),Fw=ri({name:"publicationsBrowser",initialState:Dw,reducers:{updatePageData:(e,{payload:t})=>{t.current_page&&(e.pageData.current_page=t.current_page),t.last_page&&(e.pageData.last_page=t.last_page)},updateFilterSelection:(e,{payload:t})=>{e.filterSelections[t.name]=t.value},resetFilters:e=>{e.filterSelections={doi:"",allJournalsToggled:!1,journal:"",authorName:"",publicationType:""}}},extraReducers:e=>{e.addCase(kr.pending,t=>{t.publicationsLoaded=!1,t.error=null}).addCase(kr.fulfilled,(t,n)=>{t.publicationsLoaded=!0,t.publications=n.payload.publications||[],n.payload.pagination&&n.payload.pagination.last_page!==t.pageData.last_page&&(t.pageData.current_page=1),t.showPagination=!0,n.payload.pagination&&(t.pageData.last_page=n.payload.pagination.last_page)}).addCase(kr.rejected,(t,n)=>{t.publicationsLoaded=!0,t.error=n.error.message}).addCase(Lw.fulfilled,(t,n)=>{t.filterOptions=n.payload})}}),{updatePageData:LM,updateFilterSelection:jg,resetFilters:FM}=Fw.actions,UM=e=>e.publicationsBrowser.filterSelections,VM=e=>e.publicationsBrowser.publicationsLoaded,BM=e=>e.publicationsBrowser.publications,zM=e=>e.publicationsBrowser.filterOptions,qM=e=>e.publicationsBrowser.pageData,HM=Fw.reducer,Od=e=>(e=e.startsWith("https")?e.split("https://doi.org/").join(""):e,e),WM=({publication:e,index:t})=>{const n=e.authors.map(f=>`${f.last_name}, ${f.first_name.substr(0,1)}.`).join(", "),r=e.projects.map(f=>f.grant_number),o=e.publication_type==="Other"?"Publication":e.publication_type,s=e.projects,i=t%2==0?"bg-light":"",l={textIndent:"-50px",marginLeft:"50px"},c=e.publication_datas,u=f=>{switch(f){case"Publication Type":return e.publication_type;case"Publication Year":return e.publication_year?e.publication_year:"N/A";case"DOI":return e.doi?a.jsx("a",{href:`https://doi.org/${Od(e.doi)}`,target:"_blank",className:"fw-normal",children:Od(e.doi)}):!1;case"Journal":return e.journal.title?e.journal.title:!1;case"Volume/Issue":return c["Volume/Issue"]?c["Volume/Issue"]:!1;case"Pages":return c.Pages?c.Pages:!1;case"Publisher":return c.Publisher?c.Publisher:!1}},d=()=>{const f=u("Publication Year");let p=e.title;const y=u("Journal"),m=u("DOI"),h=u("Volume/Issue"),x=u("Pages"),g=u("Publisher");return p[p.length-1]!="."&&(p+="."),e.publication_type==="Journal Paper"||e.publication_type==="Other"?a.jsxs(a.Fragment,{children:[n," (",f,"). ",p,y?a.jsxs("em",{className:"ms-1",children:[y,"."]}):"",h?a.jsxs("span",{className:"ms-1",children:[h,","]}):"",x?a.jsxs("span",{className:"ms-1",children:[x,"."]}):"",m?a.jsx("span",{className:"ms-1",children:m}):""]}):e.publication_type==="Conference Paper"||e.publication_type==="Software"?a.jsxs(a.Fragment,{children:[n," (",f,"). ",p,y?a.jsxs("em",{className:"ms-1",children:[y,"."]}):"",m?a.jsx("span",{className:"ms-1",children:m}):""]}):e.publication_type==="Book"||e.publication_type==="Book Chapter"?a.jsxs(a.Fragment,{children:[n," (",f,").",a.jsx("em",{className:"ms-1",children:p}),g?a.jsxs("em",{className:"ms-1",children:[g,"."]}):"",m?a.jsx("span",{className:"ms-1",children:m}):""]}):e.publication_type==="Dataset"?a.jsxs(a.Fragment,{children:[n," (",f,").",a.jsx("em",{className:"ms-1",children:p})," [Dataset]. ",g||"",".",m?a.jsx("span",{className:"ms-1",children:m}):""]}):e.publication_type==="Dissertation"?a.jsxs(a.Fragment,{children:[n," (",f,").",a.jsx("em",{className:"ms-1",children:p}),". [Doctoral dissertation",g?", "+g:"","].",m?a.jsx("span",{className:"ms-1",children:m}):""]}):""};return a.jsx("div",{className:"col-12 mb-2 border-bottom",children:a.jsx("div",{className:"card",style:{border:"unset"},children:a.jsxs("div",{className:`card-body pt-2 mb-2 ${i}`,children:[a.jsx("p",{style:l,children:d()}),s.length>0&&a.jsxs(a.Fragment,{children:[a.jsxs("p",{className:"text-decoration-underline mb-2",children:["Projects Supporting this ",o]}),a.jsx("ul",{style:{...l,listStyleType:"none"},children:r.map((f,p)=>a.jsx("li",{id:`project_${p}`,children:a.jsx("a",{href:`https://allocations.access-ci.org/current-projects?_requestNumber=${f}`,id:`grant_link${p}`,target:"_blank",style:{fontWeight:"600"},children:f})},`grant_${p}`))})]})]})})})},KM=()=>{const e=fe(BM);return e.length===0?a.jsx("div",{children:"No Publications Found"}):a.jsx("div",{children:e.map((t,n)=>a.jsx(WM,{publication:t,index:n},`publication_${n}`))})},GM=()=>{const e=it(),t=fe(zM),n=fe(UM),r=()=>{window.scrollTo(0,0),e(jd(!1)),e(dl({current_page:1})),e(kr())},o=()=>{e(FM()),window.scrollTo(0,0),e(kr())};if(!t.journals)return a.jsx("p",{children:"Loading filters..."});const s=l=>{e(jg({name:l.target.name,value:l.target.value}))},i=l=>{e(jg({name:l.target.name,value:l.target.value}))};return a.jsx("div",{className:"row sticky-top mb-2",children:a.jsxs("div",{className:"col",children:[a.jsx("h3",{className:"mb-2",children:"Filters"}),a.jsx("h5",{id:"journals_filter_label",className:"mb-1",children:"Journals"}),a.jsxs("div",{className:"mb-3",children:[a.jsx("input",{placeholder:"Type to search...",list:"journal_list",name:"journal",id:"journal_select",value:n.journal,className:"form-control","aria-labelledby":"journal_filter_label",onChange:l=>s(l),onInput:l=>i(l)}),a.jsx("datalist",{id:"journal_list",children:t.journals.map((l,c)=>a.jsx("option",{value:l,children:l},`journal_${c}`))})]}),a.jsx("h5",{id:"author_name_label",className:"mb-1",children:"Author Name"}),a.jsx("div",{className:"mb-3",children:a.jsx("input",{placeholder:"Last Name, First Initial",type:"text",className:"form-control",value:n.authorName,name:"authorName",id:"authorName","aria-labelledby":"author_name",onChange:s})}),a.jsx("h5",{id:"doi_number_label",className:"mb-1",children:"DOI"}),a.jsx("div",{className:"mb-3",children:a.jsx("input",{type:"text",className:"form-control",value:Od(n.doi),name:"doi",id:"doiNumber","aria-labelledby":"doi_number_label",onChange:s})}),a.jsx("h5",{id:"publication_type_label",className:"mb-1",children:"Publication Type"}),a.jsx("div",{className:"mb-3",children:a.jsxs("select",{name:"publicationType",id:"publication_type_select",value:n.publicationType,className:"form-control","aria-labelledby":"publication_type_label",onChange:l=>s(l),children:[a.jsx("option",{value:"",children:"-- All --"}),t.publication_types.map((l,c)=>a.jsx("option",{value:l,children:l},`publication_type_${c}`))]})}),a.jsxs("div",{className:"mt-2",children:[a.jsx("button",{className:"btn btn-primary me-2",onClick:r,children:"Submit"}),a.jsx("button",{className:"btn btn-secondary",onClick:o,children:"Reset"})]})]})})},Eg=()=>{const e=it(),t=fe(qM),[n,r]=w.useState([]),[o,s]=w.useState("0"),i=Array.from({length:t.last_page},(m,h)=>h),l=10,c={width:"50px",textAlign:"center"};w.useEffect(()=>{f()},[t]);const u=m=>{const h=parseInt(m);e(LM({current_page:m})),e(kr(h))},d=m=>(event.preventDefault(),s("0"),u(m),!1),f=()=>{const m=[];if(t.last_page>l)if(t.current_page>4){m.push(1),m.push("spacer");for(var h=1;h>0;h--)t.current_page-h>1&&m.push(t.current_page-h);m.push(["current",t.current_page]);for(var h=1;h<2;h++)t.current_page+h<=t.last_page&&m.push(t.current_page+h);t.last_page-t.current_page>1&&(m.push("spacer"),m.push(t.last_page))}else[1,2,3,4,5].forEach(x=>{x==t.current_page?m.push(["current",x]):m.push(x)}),m.push("spacer"),m.push(t.last_page);else for(var h=1;h<=t.last_page;h++)h==t.current_page?m.push(["current",h]):m.push(h);r(m)},p=m=>{let h=m,x="";return typeof m=="object"?[h,x]=m:x=m,h=="spacer"?a.jsx("li",{className:"page-item disabled",children:a.jsx("span",{className:"page-link",style:c,children:". . ."})}):h=="current"?a.jsx("li",{className:"page-item active","aria-current":"page",children:a.jsx("span",{className:"page-link",style:c,children:x})}):a.jsx("li",{className:"page-item",children:a.jsx("button",{className:"page-link",style:c,onClick:()=>u(h),children:x})})},y=()=>a.jsx("li",{className:"page-item",children:a.jsxs("select",{className:"page-link",style:{...c,height:"100%"},value:o,onChange:m=>d(m.target.value),children:[a.jsx("option",{value:"0",children:"Go To"}),i.map(m=>a.jsx("option",{value:m+1,children:m+1},`page_option_${m}`))]})});return a.jsx("div",{children:a.jsx("nav",{"aria-label":"Pages for the table",children:a.jsxs("ul",{className:"pagination",children:[a.jsx("li",{className:`page-item ${t.current_page==1?"disabled":""}`,children:a.jsx("button",{className:"page-link",style:{width:"50px",textAlign:"center"},onClick:()=>u(t.current_page-1),disabled:t.current_page==1,"aria-label":"Previous Page Button",children:"<"})}),n.map((m,h)=>a.jsx(Se.Fragment,{children:p(m)},`page_${h}`)),t.last_page>l?y():"",a.jsx("li",{className:`page-item ${t.current_page==t.last_page?"disabled":""}`,children:a.jsx("button",{className:"page-link",style:c,onClick:()=>u(t.current_page+1),disabled:t.current_page==t.last_page,"aria-label":"Next Page Button",children:">"})})]})})})},YM=({apiUrl:e})=>{const t=it(),n=fe(VM),r=a.jsx("div",{className:"loadingDiv",children:"Loading ..."});return w.useEffect(()=>{t(DM())},[t]),a.jsx("div",{className:"container-fluid",children:a.jsxs("div",{className:"row",children:[a.jsx("div",{className:"col-sm-3",children:a.jsx(GM,{})}),a.jsxs("div",{className:"col-sm-9",children:[a.jsx("div",{className:"row",children:a.jsx("div",{className:"col",children:a.jsx(Eg,{})})}),a.jsx("div",{className:"row",id:"publicationListRow",children:a.jsx("div",{className:"col",children:n?a.jsx(KM,{}):r})}),a.jsx("div",{className:"row",children:a.jsx("div",{className:"col",children:a.jsx(Eg,{})})})]})]})})};function QM(e,{bootstrapFonts:t=!0,bootstrapVariables:n=!0,access:r=!1,baseUrl:o=null}={}){const s=e.attachShadow({mode:"open"}),i=document.createElement("div"),l=document.createElement("div"),c=document.createElement("div"),u=document.createElement("div"),d=document.createElement("link"),f=document.createElement("link"),p=document.createElement("link");return o=o??(typeof document>"u"?require("url").pathToFileURL(__filename).href:Np&&Np.src||new URL("xras-ui.cjs",document.baseURI).href).replace(/\/[^/]+$/,""),d.rel="stylesheet",d.href=`${o}/bootstrap.css`,f.rel="stylesheet",f.href=`${o}/xras-ui.css`,p.rel="stylesheet",p.href=`${o}/access.css`,c.appendChild(u),l.appendChild(c),i.appendChild(l),s.appendChild(d),s.appendChild(f),s.appendChild(p),s.appendChild(i),i.classList.add("bootstrap"),n&&l.classList.add("bootstrap-variables"),t&&(c.classList.add("bootstrap-fonts"),c.setAttribute("data-bs-theme","light")),u}function XM({target:e}){Dt.createRoot(e).render(a.jsx(Gj,{}))}function ZM({availableResources:e,canAdd:t,relativeUrlRoot:n,target:r}){Dt.createRoot(r).render(a.jsx(hE,{availableResources:e,canAdd:t,relativeUrlRoot:n}))}function JM({resourceId:e,target:t,setExternalSubmit:n,relativeUrlRoot:r}){Dt.createRoot(t).render(a.jsx(_x,{resourceId:e,setExternalSubmit:n,relativeUrlRoot:r}))}function eD({target:e,username:t,routes:n}){Lf(n);const r=Mo({reducer:{api:eR}});Dt.createRoot(e).render(a.jsx(Vr,{store:r,children:a.jsx(uA,{username:t})}))}function tD({target:e,apiUrl:t}){const n=Mo({reducer:{projectsBrowser:jA},preloadedState:{projectsBrowser:{...vw,apiUrl:t}}});Dt.createRoot(e).render(a.jsx(Vr,{store:n,children:a.jsx(kA,{})}))}function nD({target:e,apiUrl:t}){const n=Mo({reducer:{publicationsBrowser:HM},preloadedState:{publicationsBrowser:{...Dw,apiUrl:t}}});Dt.createRoot(e).render(a.jsx(Vr,{store:n,children:a.jsx(YM,{apiUrl:t})}))}function Uw(){return Mo({reducer:{publications_store:q2}})}function rD({target:e,routes:t}){Lf(t),Dt.createRoot(e).render(a.jsx(Vr,{store:Uw(),children:a.jsx(Pw,{})}))}function oD({target:e,routes:t}){Lf(t),Dt.createRoot(e).render(a.jsx(Vr,{store:Uw(),children:a.jsx(V2,{...JSON.parse(e.dataset.publicationsSelectProps)})}))}function sD({target:e,catalogSources:t,onRamps:n,baseUrl:r}){const o=Mo({reducer:{resourceCatalog:nM}});Dt.createRoot(e).render(a.jsx(Vr,{store:o,children:a.jsx(bM,{catalogSources:t,onRamps:n,baseUrl:r})}))}function iD({target:e,apiUrl:t,excludedCategories:n,excludedFilters:r,excludedResources:o,allowedCategories:s,allowedFilters:i}){const l=Mo({reducer:{resourceCatalog:OM}});Dt.createRoot(e).render(a.jsx(Vr,{store:l,children:a.jsx(MM,{apiUrl:t,excludedCategories:n,excludedFilters:r,excludedResources:o,allowedCategories:s,allowedFilters:i})}))}exports.allocationsMap=XM;exports.editResource=JM;exports.onRampsResourceCatalog=sD;exports.projects=eD;exports.projectsBrowser=tD;exports.publications=rD;exports.publicationsBrowser=nD;exports.publicationsSelect=oD;exports.resourceCatalog=iD;exports.resources=ZM;exports.shadowTarget=QM;