@xras/ui 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/xras-ui.cjs +50 -50
- package/dist/xras-ui.css +1 -1
- package/dist/xras-ui.js +1248 -1221
- package/package.json +1 -1
package/dist/xras-ui.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var HB=Object.defineProperty;var $B=(n,r,i)=>r in n?HB(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i;var
|
|
1
|
+
"use strict";var HB=Object.defineProperty;var $B=(n,r,i)=>r in n?HB(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i;var bE=(n,r,i)=>($B(n,typeof r!="symbol"?r+"":r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var IN=typeof document<"u"?document.currentScript:null;function GB(n,r){for(var i=0;i<r.length;i++){const u=r[i];if(typeof u!="string"&&!Array.isArray(u)){for(const l in u)if(l!=="default"&&!(l in n)){const d=Object.getOwnPropertyDescriptor(u,l);d&&Object.defineProperty(n,l,d.get?d:{enumerable:!0,get:()=>u[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function qp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var KE={exports:{}},tm={},Rb={exports:{}},Xt={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +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 NN;function WB(){if(NN)return Xt;NN=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),R=Symbol.iterator;function T(G){return G===null||typeof G!="object"?null:(G=R&&G[R]||G["@@iterator"],typeof G=="function"?G:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,O={};function _(G,Y,re){this.props=G,this.context=Y,this.refs=O,this.updater=re||A}_.prototype.isReactComponent={},_.prototype.setState=function(G,Y){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,Y,"setState")},_.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function L(){}L.prototype=_.prototype;function V(G,Y,re){this.props=G,this.context=Y,this.refs=O,this.updater=re||A}var F=V.prototype=new L;F.constructor=V,N(F,_.prototype),F.isPureReactComponent=!0;var U=Array.isArray,z=Object.prototype.hasOwnProperty,H={current:null},J={key:!0,ref:!0,__self:!0,__source:!0};function q(G,Y,re){var ye,Se={},Ne=null,le=null;if(Y!=null)for(ye in Y.ref!==void 0&&(le=Y.ref),Y.key!==void 0&&(Ne=""+Y.key),Y)z.call(Y,ye)&&!J.hasOwnProperty(ye)&&(Se[ye]=Y[ye]);var ve=arguments.length-2;if(ve===1)Se.children=re;else if(1<ve){for(var we=Array(ve),Ve=0;Ve<ve;Ve++)we[Ve]=arguments[Ve+2];Se.children=we}if(G&&G.defaultProps)for(ye in ve=G.defaultProps,ve)Se[ye]===void 0&&(Se[ye]=ve[ye]);return{$$typeof:n,type:G,key:Ne,ref:le,props:Se,_owner:H.current}}function Re(G,Y){return{$$typeof:n,type:G.type,key:Y,ref:G.ref,props:G.props,_owner:G._owner}}function he(G){return typeof G=="object"&&G!==null&&G.$$typeof===n}function ge(G){var Y={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(re){return Y[re]})}var fe=/\/+/g;function Oe(G,Y){return typeof G=="object"&&G!==null&&G.key!=null?ge(""+G.key):Y.toString(36)}function Te(G,Y,re,ye,Se){var Ne=typeof G;(Ne==="undefined"||Ne==="boolean")&&(G=null);var le=!1;if(G===null)le=!0;else switch(Ne){case"string":case"number":le=!0;break;case"object":switch(G.$$typeof){case n:case r:le=!0}}if(le)return le=G,Se=Se(le),G=ye===""?"."+Oe(le,0):ye,U(Se)?(re="",G!=null&&(re=G.replace(fe,"$&/")+"/"),Te(Se,Y,re,"",function(Ve){return Ve})):Se!=null&&(he(Se)&&(Se=Re(Se,re+(!Se.key||le&&le.key===Se.key?"":(""+Se.key).replace(fe,"$&/")+"/")+G)),Y.push(Se)),1;if(le=0,ye=ye===""?".":ye+":",U(G))for(var ve=0;ve<G.length;ve++){Ne=G[ve];var we=ye+Oe(Ne,ve);le+=Te(Ne,Y,re,we,Se)}else if(we=T(G),typeof we=="function")for(G=we.call(G),ve=0;!(Ne=G.next()).done;)Ne=Ne.value,we=ye+Oe(Ne,ve++),le+=Te(Ne,Y,re,we,Se);else if(Ne==="object")throw Y=String(G),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.");return le}function xe(G,Y,re){if(G==null)return G;var ye=[],Se=0;return Te(G,ye,"","",function(Ne){return Y.call(re,Ne,Se++)}),ye}function je(G){if(G._status===-1){var Y=G._result;Y=Y(),Y.then(function(re){(G._status===0||G._status===-1)&&(G._status=1,G._result=re)},function(re){(G._status===0||G._status===-1)&&(G._status=2,G._result=re)}),G._status===-1&&(G._status=0,G._result=Y)}if(G._status===1)return G._result.default;throw G._result}var Le={current:null},ne={transition:null},_e={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:ne,ReactCurrentOwner:H};return Xt.Children={map:xe,forEach:function(G,Y,re){xe(G,function(){Y.apply(this,arguments)},re)},count:function(G){var Y=0;return xe(G,function(){Y++}),Y},toArray:function(G){return xe(G,function(Y){return Y})||[]},only:function(G){if(!he(G))throw Error("React.Children.only expected to receive a single React element child.");return G}},Xt.Component=_,Xt.Fragment=i,Xt.Profiler=l,Xt.PureComponent=V,Xt.StrictMode=u,Xt.Suspense=y,Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_e,Xt.cloneElement=function(G,Y,re){if(G==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+G+".");var ye=N({},G.props),Se=G.key,Ne=G.ref,le=G._owner;if(Y!=null){if(Y.ref!==void 0&&(Ne=Y.ref,le=H.current),Y.key!==void 0&&(Se=""+Y.key),G.type&&G.type.defaultProps)var ve=G.type.defaultProps;for(we in Y)z.call(Y,we)&&!J.hasOwnProperty(we)&&(ye[we]=Y[we]===void 0&&ve!==void 0?ve[we]:Y[we])}var we=arguments.length-2;if(we===1)ye.children=re;else if(1<we){ve=Array(we);for(var Ve=0;Ve<we;Ve++)ve[Ve]=arguments[Ve+2];ye.children=ve}return{$$typeof:n,type:G.type,key:Se,ref:Ne,props:ye,_owner:le}},Xt.createContext=function(G){return G={$$typeof:h,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},G.Provider={$$typeof:d,_context:G},G.Consumer=G},Xt.createElement=q,Xt.createFactory=function(G){var Y=q.bind(null,G);return Y.type=G,Y},Xt.createRef=function(){return{current:null}},Xt.forwardRef=function(G){return{$$typeof:v,render:G}},Xt.isValidElement=he,Xt.lazy=function(G){return{$$typeof:x,_payload:{_status:-1,_result:G},_init:je}},Xt.memo=function(G,Y){return{$$typeof:C,type:G,compare:Y===void 0?null:Y}},Xt.startTransition=function(G){var Y=ne.transition;ne.transition={};try{G()}finally{ne.transition=Y}},Xt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Xt.useCallback=function(G,Y){return Le.current.useCallback(G,Y)},Xt.useContext=function(G){return Le.current.useContext(G)},Xt.useDebugValue=function(){},Xt.useDeferredValue=function(G){return Le.current.useDeferredValue(G)},Xt.useEffect=function(G,Y){return Le.current.useEffect(G,Y)},Xt.useId=function(){return Le.current.useId()},Xt.useImperativeHandle=function(G,Y,re){return Le.current.useImperativeHandle(G,Y,re)},Xt.useInsertionEffect=function(G,Y){return Le.current.useInsertionEffect(G,Y)},Xt.useLayoutEffect=function(G,Y){return Le.current.useLayoutEffect(G,Y)},Xt.useMemo=function(G,Y){return Le.current.useMemo(G,Y)},Xt.useReducer=function(G,Y,re){return Le.current.useReducer(G,Y,re)},Xt.useRef=function(G){return Le.current.useRef(G)},Xt.useState=function(G){return Le.current.useState(G)},Xt.useSyncExternalStore=function(G,Y,re){return Le.current.useSyncExternalStore(G,Y,re)},Xt.useTransition=function(){return Le.current.useTransition()},Xt.version="18.2.0",Xt}var
|
|
9
|
+
*/var NN;function WB(){if(NN)return Xt;NN=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),R=Symbol.iterator;function T(G){return G===null||typeof G!="object"?null:(G=R&&G[R]||G["@@iterator"],typeof G=="function"?G:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,O={};function _(G,Y,re){this.props=G,this.context=Y,this.refs=O,this.updater=re||A}_.prototype.isReactComponent={},_.prototype.setState=function(G,Y){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,Y,"setState")},_.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function L(){}L.prototype=_.prototype;function V(G,Y,re){this.props=G,this.context=Y,this.refs=O,this.updater=re||A}var F=V.prototype=new L;F.constructor=V,N(F,_.prototype),F.isPureReactComponent=!0;var U=Array.isArray,z=Object.prototype.hasOwnProperty,H={current:null},J={key:!0,ref:!0,__self:!0,__source:!0};function q(G,Y,re){var ye,Se={},Ne=null,le=null;if(Y!=null)for(ye in Y.ref!==void 0&&(le=Y.ref),Y.key!==void 0&&(Ne=""+Y.key),Y)z.call(Y,ye)&&!J.hasOwnProperty(ye)&&(Se[ye]=Y[ye]);var ve=arguments.length-2;if(ve===1)Se.children=re;else if(1<ve){for(var we=Array(ve),Ve=0;Ve<ve;Ve++)we[Ve]=arguments[Ve+2];Se.children=we}if(G&&G.defaultProps)for(ye in ve=G.defaultProps,ve)Se[ye]===void 0&&(Se[ye]=ve[ye]);return{$$typeof:n,type:G,key:Ne,ref:le,props:Se,_owner:H.current}}function Re(G,Y){return{$$typeof:n,type:G.type,key:Y,ref:G.ref,props:G.props,_owner:G._owner}}function he(G){return typeof G=="object"&&G!==null&&G.$$typeof===n}function ge(G){var Y={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(re){return Y[re]})}var fe=/\/+/g;function Oe(G,Y){return typeof G=="object"&&G!==null&&G.key!=null?ge(""+G.key):Y.toString(36)}function Te(G,Y,re,ye,Se){var Ne=typeof G;(Ne==="undefined"||Ne==="boolean")&&(G=null);var le=!1;if(G===null)le=!0;else switch(Ne){case"string":case"number":le=!0;break;case"object":switch(G.$$typeof){case n:case r:le=!0}}if(le)return le=G,Se=Se(le),G=ye===""?"."+Oe(le,0):ye,U(Se)?(re="",G!=null&&(re=G.replace(fe,"$&/")+"/"),Te(Se,Y,re,"",function(Ve){return Ve})):Se!=null&&(he(Se)&&(Se=Re(Se,re+(!Se.key||le&&le.key===Se.key?"":(""+Se.key).replace(fe,"$&/")+"/")+G)),Y.push(Se)),1;if(le=0,ye=ye===""?".":ye+":",U(G))for(var ve=0;ve<G.length;ve++){Ne=G[ve];var we=ye+Oe(Ne,ve);le+=Te(Ne,Y,re,we,Se)}else if(we=T(G),typeof we=="function")for(G=we.call(G),ve=0;!(Ne=G.next()).done;)Ne=Ne.value,we=ye+Oe(Ne,ve++),le+=Te(Ne,Y,re,we,Se);else if(Ne==="object")throw Y=String(G),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.");return le}function xe(G,Y,re){if(G==null)return G;var ye=[],Se=0;return Te(G,ye,"","",function(Ne){return Y.call(re,Ne,Se++)}),ye}function je(G){if(G._status===-1){var Y=G._result;Y=Y(),Y.then(function(re){(G._status===0||G._status===-1)&&(G._status=1,G._result=re)},function(re){(G._status===0||G._status===-1)&&(G._status=2,G._result=re)}),G._status===-1&&(G._status=0,G._result=Y)}if(G._status===1)return G._result.default;throw G._result}var Le={current:null},ne={transition:null},_e={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:ne,ReactCurrentOwner:H};return Xt.Children={map:xe,forEach:function(G,Y,re){xe(G,function(){Y.apply(this,arguments)},re)},count:function(G){var Y=0;return xe(G,function(){Y++}),Y},toArray:function(G){return xe(G,function(Y){return Y})||[]},only:function(G){if(!he(G))throw Error("React.Children.only expected to receive a single React element child.");return G}},Xt.Component=_,Xt.Fragment=i,Xt.Profiler=l,Xt.PureComponent=V,Xt.StrictMode=u,Xt.Suspense=y,Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_e,Xt.cloneElement=function(G,Y,re){if(G==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+G+".");var ye=N({},G.props),Se=G.key,Ne=G.ref,le=G._owner;if(Y!=null){if(Y.ref!==void 0&&(Ne=Y.ref,le=H.current),Y.key!==void 0&&(Se=""+Y.key),G.type&&G.type.defaultProps)var ve=G.type.defaultProps;for(we in Y)z.call(Y,we)&&!J.hasOwnProperty(we)&&(ye[we]=Y[we]===void 0&&ve!==void 0?ve[we]:Y[we])}var we=arguments.length-2;if(we===1)ye.children=re;else if(1<we){ve=Array(we);for(var Ve=0;Ve<we;Ve++)ve[Ve]=arguments[Ve+2];ye.children=ve}return{$$typeof:n,type:G.type,key:Se,ref:Ne,props:ye,_owner:le}},Xt.createContext=function(G){return G={$$typeof:h,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},G.Provider={$$typeof:d,_context:G},G.Consumer=G},Xt.createElement=q,Xt.createFactory=function(G){var Y=q.bind(null,G);return Y.type=G,Y},Xt.createRef=function(){return{current:null}},Xt.forwardRef=function(G){return{$$typeof:v,render:G}},Xt.isValidElement=he,Xt.lazy=function(G){return{$$typeof:x,_payload:{_status:-1,_result:G},_init:je}},Xt.memo=function(G,Y){return{$$typeof:C,type:G,compare:Y===void 0?null:Y}},Xt.startTransition=function(G){var Y=ne.transition;ne.transition={};try{G()}finally{ne.transition=Y}},Xt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Xt.useCallback=function(G,Y){return Le.current.useCallback(G,Y)},Xt.useContext=function(G){return Le.current.useContext(G)},Xt.useDebugValue=function(){},Xt.useDeferredValue=function(G){return Le.current.useDeferredValue(G)},Xt.useEffect=function(G,Y){return Le.current.useEffect(G,Y)},Xt.useId=function(){return Le.current.useId()},Xt.useImperativeHandle=function(G,Y,re){return Le.current.useImperativeHandle(G,Y,re)},Xt.useInsertionEffect=function(G,Y){return Le.current.useInsertionEffect(G,Y)},Xt.useLayoutEffect=function(G,Y){return Le.current.useLayoutEffect(G,Y)},Xt.useMemo=function(G,Y){return Le.current.useMemo(G,Y)},Xt.useReducer=function(G,Y,re){return Le.current.useReducer(G,Y,re)},Xt.useRef=function(G){return Le.current.useRef(G)},Xt.useState=function(G){return Le.current.useState(G)},Xt.useSyncExternalStore=function(G,Y,re){return Le.current.useSyncExternalStore(G,Y,re)},Xt.useTransition=function(){return Le.current.useTransition()},Xt.version="18.2.0",Xt}var cm={exports:{}};cm.exports;var _N;function XB(){return _N||(_N=1,function(n,r){var i={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.development.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
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 u="18.2.0",l=Symbol.for("react.element"),d=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),x=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),L=Symbol.iterator,V="@@iterator";function F(D){if(D===null||typeof D!="object")return null;var X=L&&D[L]||D[V];return typeof X=="function"?X:null}var U={current:null},z={transition:null},H={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},J={current:null},q={},Re=null;function he(D){Re=D}q.setExtraStackFrame=function(D){Re=D},q.getCurrentStack=null,q.getStackAddendum=function(){var D="";Re&&(D+=Re);var X=q.getCurrentStack;return X&&(D+=X()||""),D};var ge=!1,fe=!1,Oe=!1,Te=!1,xe=!1,je={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:z,ReactCurrentOwner:J};je.ReactDebugCurrentFrame=q,je.ReactCurrentActQueue=H;function Le(D){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),me=1;me<X;me++)ue[me-1]=arguments[me];_e("warn",D,ue)}}function ne(D){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),me=1;me<X;me++)ue[me-1]=arguments[me];_e("error",D,ue)}}function _e(D,X,ue){{var me=je.ReactDebugCurrentFrame,Be=me.getStackAddendum();Be!==""&&(X+="%s",ue=ue.concat([Be]));var it=ue.map(function(Je){return String(Je)});it.unshift("Warning: "+X),Function.prototype.apply.call(console[D],console,it)}}var G={};function Y(D,X){{var ue=D.constructor,me=ue&&(ue.displayName||ue.name)||"ReactClass",Be=me+"."+X;if(G[Be])return;ne("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.",X,me),G[Be]=!0}}var re={isMounted:function(D){return!1},enqueueForceUpdate:function(D,X,ue){Y(D,"forceUpdate")},enqueueReplaceState:function(D,X,ue,me){Y(D,"replaceState")},enqueueSetState:function(D,X,ue,me){Y(D,"setState")}},ye=Object.assign,Se={};Object.freeze(Se);function Ne(D,X,ue){this.props=D,this.context=X,this.refs=Se,this.updater=ue||re}Ne.prototype.isReactComponent={},Ne.prototype.setState=function(D,X){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,X,"setState")},Ne.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var le={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)."]},ve=function(D,X){Object.defineProperty(Ne.prototype,D,{get:function(){Le("%s(...) is deprecated in plain JavaScript React classes. %s",X[0],X[1])}})};for(var we in le)le.hasOwnProperty(we)&&ve(we,le[we])}function Ve(){}Ve.prototype=Ne.prototype;function et(D,X,ue){this.props=D,this.context=X,this.refs=Se,this.updater=ue||re}var tt=et.prototype=new Ve;tt.constructor=et,ye(tt,Ne.prototype),tt.isPureReactComponent=!0;function ft(){var D={current:null};return Object.seal(D),D}var Ae=Array.isArray;function It(D){return Ae(D)}function pt(D){{var X=typeof Symbol=="function"&&Symbol.toStringTag,ue=X&&D[Symbol.toStringTag]||D.constructor.name||"Object";return ue}}function Kt(D){try{return on(D),!1}catch{return!0}}function on(D){return""+D}function sn(D){if(Kt(D))return ne("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(D)),on(D)}function _n(D,X,ue){var me=D.displayName;if(me)return me;var Be=X.displayName||X.name||"";return Be!==""?ue+"("+Be+")":ue}function Vt(D){return D.displayName||"Context"}function Cn(D){if(D==null)return null;if(typeof D.tag=="number"&&ne("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 h:return"Fragment";case d:return"Portal";case y:return"Profiler";case v:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case x:var X=D;return Vt(X)+".Consumer";case C:var ue=D;return Vt(ue._context)+".Provider";case R:return _n(D,D.render,"ForwardRef");case N:var me=D.displayName||null;return me!==null?me:Cn(D.type)||"Memo";case O:{var Be=D,it=Be._payload,Je=Be._init;try{return Cn(Je(it))}catch{return null}}}return null}var qn=Object.prototype.hasOwnProperty,Rr={key:!0,ref:!0,__self:!0,__source:!0},$n,Tr,xt;xt={};function Pn(D){if(qn.call(D,"ref")){var X=Object.getOwnPropertyDescriptor(D,"ref").get;if(X&&X.isReactWarning)return!1}return D.ref!==void 0}function ln(D){if(qn.call(D,"key")){var X=Object.getOwnPropertyDescriptor(D,"key").get;if(X&&X.isReactWarning)return!1}return D.key!==void 0}function Ba(D,X){var ue=function(){$n||($n=!0,ne("%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)",X))};ue.isReactWarning=!0,Object.defineProperty(D,"key",{get:ue,configurable:!0})}function za(D,X){var ue=function(){Tr||(Tr=!0,ne("%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)",X))};ue.isReactWarning=!0,Object.defineProperty(D,"ref",{get:ue,configurable:!0})}function Ua(D){if(typeof D.ref=="string"&&J.current&&D.__self&&J.current.stateNode!==D.__self){var X=Cn(J.current.type);xt[X]||(ne('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',X,D.ref),xt[X]=!0)}}var Ge=function(D,X,ue,me,Be,it,Je){var wt={$$typeof:l,type:D,key:X,ref:ue,props:Je,_owner:it};return wt._store={},Object.defineProperty(wt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(wt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.defineProperty(wt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Be}),Object.freeze&&(Object.freeze(wt.props),Object.freeze(wt)),wt};function dt(D,X,ue){var me,Be={},it=null,Je=null,wt=null,Pt=null;if(X!=null){Pn(X)&&(Je=X.ref,Ua(X)),ln(X)&&(sn(X.key),it=""+X.key),wt=X.__self===void 0?null:X.__self,Pt=X.__source===void 0?null:X.__source;for(me in X)qn.call(X,me)&&!Rr.hasOwnProperty(me)&&(Be[me]=X[me])}var fn=arguments.length-2;if(fn===1)Be.children=ue;else if(fn>1){for(var vn=Array(fn),hn=0;hn<fn;hn++)vn[hn]=arguments[hn+2];Object.freeze&&Object.freeze(vn),Be.children=vn}if(D&&D.defaultProps){var mn=D.defaultProps;for(me in mn)Be[me]===void 0&&(Be[me]=mn[me])}if(it||Je){var Vn=typeof D=="function"?D.displayName||D.name||"Unknown":D;it&&Ba(Be,Vn),Je&&za(Be,Vn)}return Ge(D,it,Je,wt,Pt,J.current,Be)}function Mt(D,X){var ue=Ge(D.type,X,D.ref,D._self,D._source,D._owner,D.props);return ue}function un(D,X,ue){if(D==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var me,Be=ye({},D.props),it=D.key,Je=D.ref,wt=D._self,Pt=D._source,fn=D._owner;if(X!=null){Pn(X)&&(Je=X.ref,fn=J.current),ln(X)&&(sn(X.key),it=""+X.key);var vn;D.type&&D.type.defaultProps&&(vn=D.type.defaultProps);for(me in X)qn.call(X,me)&&!Rr.hasOwnProperty(me)&&(X[me]===void 0&&vn!==void 0?Be[me]=vn[me]:Be[me]=X[me])}var hn=arguments.length-2;if(hn===1)Be.children=ue;else if(hn>1){for(var mn=Array(hn),Vn=0;Vn<hn;Vn++)mn[Vn]=arguments[Vn+2];Be.children=mn}return Ge(D.type,it,Je,wt,Pt,fn,Be)}function en(D){return typeof D=="object"&&D!==null&&D.$$typeof===l}var ar=".",Gn=":";function Xr(D){var X=/[=:]/g,ue={"=":"=0",":":"=2"},me=D.replace(X,function(Be){return ue[Be]});return"$"+me}var pn=!1,Ir=/\/+/g;function cn(D){return D.replace(Ir,"$&/")}function On(D,X){return typeof D=="object"&&D!==null&&D.key!=null?(sn(D.key),Xr(""+D.key)):X.toString(36)}function ki(D,X,ue,me,Be){var it=typeof D;(it==="undefined"||it==="boolean")&&(D=null);var Je=!1;if(D===null)Je=!0;else switch(it){case"string":case"number":Je=!0;break;case"object":switch(D.$$typeof){case l:case d:Je=!0}}if(Je){var wt=D,Pt=Be(wt),fn=me===""?ar+On(wt,0):me;if(It(Pt)){var vn="";fn!=null&&(vn=cn(fn)+"/"),ki(Pt,X,vn,"",function(rv){return rv})}else Pt!=null&&(en(Pt)&&(Pt.key&&(!wt||wt.key!==Pt.key)&&sn(Pt.key),Pt=Mt(Pt,ue+(Pt.key&&(!wt||wt.key!==Pt.key)?cn(""+Pt.key)+"/":"")+fn)),X.push(Pt));return 1}var hn,mn,Vn=0,Zt=me===""?ar:me+Gn;if(It(D))for(var xs=0;xs<D.length;xs++)hn=D[xs],mn=Zt+On(hn,xs),Vn+=ki(hn,X,ue,mn,Be);else{var pu=F(D);if(typeof pu=="function"){var Oc=D;pu===Oc.entries&&(pn||Le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pn=!0);for(var Ac=pu.call(Oc),ko,jc=0;!(ko=Ac.next()).done;)hn=ko.value,mn=Zt+On(hn,jc++),Vn+=ki(hn,X,ue,mn,Be)}else if(it==="object"){var Dc=String(D);throw new Error("Objects are not valid as a React child (found: "+(Dc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Dc)+"). If you meant to render a collection of children, use an array instead.")}}return Vn}function ai(D,X,ue){if(D==null)return D;var me=[],Be=0;return ki(D,me,"","",function(it){return X.call(ue,it,Be++)}),me}function ps(D){var X=0;return ai(D,function(){X++}),X}function rl(D,X,ue){ai(D,function(){X.apply(this,arguments)},ue)}function al(D){return ai(D,function(X){return X})||[]}function vs(D){if(!en(D))throw new Error("React.Children.only expected to receive a single React element child.");return D}function Mi(D){var X={$$typeof:x,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};X.Provider={$$typeof:C,_context:X};var ue=!1,me=!1,Be=!1;{var it={$$typeof:x,_context:X};Object.defineProperties(it,{Provider:{get:function(){return me||(me=!0,ne("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),X.Provider},set:function(Je){X.Provider=Je}},_currentValue:{get:function(){return X._currentValue},set:function(Je){X._currentValue=Je}},_currentValue2:{get:function(){return X._currentValue2},set:function(Je){X._currentValue2=Je}},_threadCount:{get:function(){return X._threadCount},set:function(Je){X._threadCount=Je}},Consumer:{get:function(){return ue||(ue=!0,ne("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),X.Consumer}},displayName:{get:function(){return X.displayName},set:function(Je){Be||(Le("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Je),Be=!0)}}}),X.Consumer=it}return X._currentRenderer=null,X._currentRenderer2=null,X}var Li=-1,ii=0,Io=1,ga=2;function ya(D){if(D._status===Li){var X=D._result,ue=X();if(ue.then(function(it){if(D._status===ii||D._status===Li){var Je=D;Je._status=Io,Je._result=it}},function(it){if(D._status===ii||D._status===Li){var Je=D;Je._status=ga,Je._result=it}}),D._status===Li){var me=D;me._status=ii,me._result=ue}}if(D._status===Io){var Be=D._result;return Be===void 0&&ne(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
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 u="18.2.0",l=Symbol.for("react.element"),d=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),x=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),L=Symbol.iterator,V="@@iterator";function F(D){if(D===null||typeof D!="object")return null;var X=L&&D[L]||D[V];return typeof X=="function"?X:null}var U={current:null},z={transition:null},H={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},J={current:null},q={},Re=null;function he(D){Re=D}q.setExtraStackFrame=function(D){Re=D},q.getCurrentStack=null,q.getStackAddendum=function(){var D="";Re&&(D+=Re);var X=q.getCurrentStack;return X&&(D+=X()||""),D};var ge=!1,fe=!1,Oe=!1,Te=!1,xe=!1,je={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:z,ReactCurrentOwner:J};je.ReactDebugCurrentFrame=q,je.ReactCurrentActQueue=H;function Le(D){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),me=1;me<X;me++)ue[me-1]=arguments[me];_e("warn",D,ue)}}function ne(D){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),me=1;me<X;me++)ue[me-1]=arguments[me];_e("error",D,ue)}}function _e(D,X,ue){{var me=je.ReactDebugCurrentFrame,Be=me.getStackAddendum();Be!==""&&(X+="%s",ue=ue.concat([Be]));var it=ue.map(function(Je){return String(Je)});it.unshift("Warning: "+X),Function.prototype.apply.call(console[D],console,it)}}var G={};function Y(D,X){{var ue=D.constructor,me=ue&&(ue.displayName||ue.name)||"ReactClass",Be=me+"."+X;if(G[Be])return;ne("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.",X,me),G[Be]=!0}}var re={isMounted:function(D){return!1},enqueueForceUpdate:function(D,X,ue){Y(D,"forceUpdate")},enqueueReplaceState:function(D,X,ue,me){Y(D,"replaceState")},enqueueSetState:function(D,X,ue,me){Y(D,"setState")}},ye=Object.assign,Se={};Object.freeze(Se);function Ne(D,X,ue){this.props=D,this.context=X,this.refs=Se,this.updater=ue||re}Ne.prototype.isReactComponent={},Ne.prototype.setState=function(D,X){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,X,"setState")},Ne.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var le={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)."]},ve=function(D,X){Object.defineProperty(Ne.prototype,D,{get:function(){Le("%s(...) is deprecated in plain JavaScript React classes. %s",X[0],X[1])}})};for(var we in le)le.hasOwnProperty(we)&&ve(we,le[we])}function Ve(){}Ve.prototype=Ne.prototype;function et(D,X,ue){this.props=D,this.context=X,this.refs=Se,this.updater=ue||re}var tt=et.prototype=new Ve;tt.constructor=et,ye(tt,Ne.prototype),tt.isPureReactComponent=!0;function ft(){var D={current:null};return Object.seal(D),D}var Ae=Array.isArray;function It(D){return Ae(D)}function pt(D){{var X=typeof Symbol=="function"&&Symbol.toStringTag,ue=X&&D[Symbol.toStringTag]||D.constructor.name||"Object";return ue}}function Kt(D){try{return on(D),!1}catch{return!0}}function on(D){return""+D}function sn(D){if(Kt(D))return ne("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(D)),on(D)}function _n(D,X,ue){var me=D.displayName;if(me)return me;var Be=X.displayName||X.name||"";return Be!==""?ue+"("+Be+")":ue}function Vt(D){return D.displayName||"Context"}function Cn(D){if(D==null)return null;if(typeof D.tag=="number"&&ne("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 h:return"Fragment";case d:return"Portal";case y:return"Profiler";case v:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case x:var X=D;return Vt(X)+".Consumer";case C:var ue=D;return Vt(ue._context)+".Provider";case R:return _n(D,D.render,"ForwardRef");case N:var me=D.displayName||null;return me!==null?me:Cn(D.type)||"Memo";case O:{var Be=D,it=Be._payload,Je=Be._init;try{return Cn(Je(it))}catch{return null}}}return null}var qn=Object.prototype.hasOwnProperty,Rr={key:!0,ref:!0,__self:!0,__source:!0},$n,Tr,xt;xt={};function Pn(D){if(qn.call(D,"ref")){var X=Object.getOwnPropertyDescriptor(D,"ref").get;if(X&&X.isReactWarning)return!1}return D.ref!==void 0}function ln(D){if(qn.call(D,"key")){var X=Object.getOwnPropertyDescriptor(D,"key").get;if(X&&X.isReactWarning)return!1}return D.key!==void 0}function Ba(D,X){var ue=function(){$n||($n=!0,ne("%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)",X))};ue.isReactWarning=!0,Object.defineProperty(D,"key",{get:ue,configurable:!0})}function za(D,X){var ue=function(){Tr||(Tr=!0,ne("%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)",X))};ue.isReactWarning=!0,Object.defineProperty(D,"ref",{get:ue,configurable:!0})}function Ua(D){if(typeof D.ref=="string"&&J.current&&D.__self&&J.current.stateNode!==D.__self){var X=Cn(J.current.type);xt[X]||(ne('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',X,D.ref),xt[X]=!0)}}var Ge=function(D,X,ue,me,Be,it,Je){var wt={$$typeof:l,type:D,key:X,ref:ue,props:Je,_owner:it};return wt._store={},Object.defineProperty(wt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(wt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.defineProperty(wt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Be}),Object.freeze&&(Object.freeze(wt.props),Object.freeze(wt)),wt};function dt(D,X,ue){var me,Be={},it=null,Je=null,wt=null,Pt=null;if(X!=null){Pn(X)&&(Je=X.ref,Ua(X)),ln(X)&&(sn(X.key),it=""+X.key),wt=X.__self===void 0?null:X.__self,Pt=X.__source===void 0?null:X.__source;for(me in X)qn.call(X,me)&&!Rr.hasOwnProperty(me)&&(Be[me]=X[me])}var fn=arguments.length-2;if(fn===1)Be.children=ue;else if(fn>1){for(var vn=Array(fn),hn=0;hn<fn;hn++)vn[hn]=arguments[hn+2];Object.freeze&&Object.freeze(vn),Be.children=vn}if(D&&D.defaultProps){var mn=D.defaultProps;for(me in mn)Be[me]===void 0&&(Be[me]=mn[me])}if(it||Je){var Vn=typeof D=="function"?D.displayName||D.name||"Unknown":D;it&&Ba(Be,Vn),Je&&za(Be,Vn)}return Ge(D,it,Je,wt,Pt,J.current,Be)}function Mt(D,X){var ue=Ge(D.type,X,D.ref,D._self,D._source,D._owner,D.props);return ue}function un(D,X,ue){if(D==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var me,Be=ye({},D.props),it=D.key,Je=D.ref,wt=D._self,Pt=D._source,fn=D._owner;if(X!=null){Pn(X)&&(Je=X.ref,fn=J.current),ln(X)&&(sn(X.key),it=""+X.key);var vn;D.type&&D.type.defaultProps&&(vn=D.type.defaultProps);for(me in X)qn.call(X,me)&&!Rr.hasOwnProperty(me)&&(X[me]===void 0&&vn!==void 0?Be[me]=vn[me]:Be[me]=X[me])}var hn=arguments.length-2;if(hn===1)Be.children=ue;else if(hn>1){for(var mn=Array(hn),Vn=0;Vn<hn;Vn++)mn[Vn]=arguments[Vn+2];Be.children=mn}return Ge(D.type,it,Je,wt,Pt,fn,Be)}function en(D){return typeof D=="object"&&D!==null&&D.$$typeof===l}var ar=".",Gn=":";function Xr(D){var X=/[=:]/g,ue={"=":"=0",":":"=2"},me=D.replace(X,function(Be){return ue[Be]});return"$"+me}var pn=!1,Ir=/\/+/g;function cn(D){return D.replace(Ir,"$&/")}function On(D,X){return typeof D=="object"&&D!==null&&D.key!=null?(sn(D.key),Xr(""+D.key)):X.toString(36)}function ki(D,X,ue,me,Be){var it=typeof D;(it==="undefined"||it==="boolean")&&(D=null);var Je=!1;if(D===null)Je=!0;else switch(it){case"string":case"number":Je=!0;break;case"object":switch(D.$$typeof){case l:case d:Je=!0}}if(Je){var wt=D,Pt=Be(wt),fn=me===""?ar+On(wt,0):me;if(It(Pt)){var vn="";fn!=null&&(vn=cn(fn)+"/"),ki(Pt,X,vn,"",function(av){return av})}else Pt!=null&&(en(Pt)&&(Pt.key&&(!wt||wt.key!==Pt.key)&&sn(Pt.key),Pt=Mt(Pt,ue+(Pt.key&&(!wt||wt.key!==Pt.key)?cn(""+Pt.key)+"/":"")+fn)),X.push(Pt));return 1}var hn,mn,Vn=0,Zt=me===""?ar:me+Gn;if(It(D))for(var xs=0;xs<D.length;xs++)hn=D[xs],mn=Zt+On(hn,xs),Vn+=ki(hn,X,ue,mn,Be);else{var pu=F(D);if(typeof pu=="function"){var Oc=D;pu===Oc.entries&&(pn||Le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pn=!0);for(var Ac=pu.call(Oc),ko,jc=0;!(ko=Ac.next()).done;)hn=ko.value,mn=Zt+On(hn,jc++),Vn+=ki(hn,X,ue,mn,Be)}else if(it==="object"){var Dc=String(D);throw new Error("Objects are not valid as a React child (found: "+(Dc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Dc)+"). If you meant to render a collection of children, use an array instead.")}}return Vn}function ai(D,X,ue){if(D==null)return D;var me=[],Be=0;return ki(D,me,"","",function(it){return X.call(ue,it,Be++)}),me}function ps(D){var X=0;return ai(D,function(){X++}),X}function rl(D,X,ue){ai(D,function(){X.apply(this,arguments)},ue)}function al(D){return ai(D,function(X){return X})||[]}function vs(D){if(!en(D))throw new Error("React.Children.only expected to receive a single React element child.");return D}function Mi(D){var X={$$typeof:x,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};X.Provider={$$typeof:C,_context:X};var ue=!1,me=!1,Be=!1;{var it={$$typeof:x,_context:X};Object.defineProperties(it,{Provider:{get:function(){return me||(me=!0,ne("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),X.Provider},set:function(Je){X.Provider=Je}},_currentValue:{get:function(){return X._currentValue},set:function(Je){X._currentValue=Je}},_currentValue2:{get:function(){return X._currentValue2},set:function(Je){X._currentValue2=Je}},_threadCount:{get:function(){return X._threadCount},set:function(Je){X._threadCount=Je}},Consumer:{get:function(){return ue||(ue=!0,ne("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),X.Consumer}},displayName:{get:function(){return X.displayName},set:function(Je){Be||(Le("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Je),Be=!0)}}}),X.Consumer=it}return X._currentRenderer=null,X._currentRenderer2=null,X}var Li=-1,ii=0,Io=1,ga=2;function ya(D){if(D._status===Li){var X=D._result,ue=X();if(ue.then(function(it){if(D._status===ii||D._status===Li){var Je=D;Je._status=Io,Je._result=it}},function(it){if(D._status===ii||D._status===Li){var Je=D;Je._status=ga,Je._result=it}}),D._status===Li){var me=D;me._status=ii,me._result=ue}}if(D._status===Io){var Be=D._result;return Be===void 0&&ne(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
18
18
|
|
|
19
19
|
Your code should look like:
|
|
20
20
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -36,7 +36,7 @@ Check the render method of \``+D+"`."}return""}function Nt(D){if(D!==void 0){var
|
|
|
36
36
|
|
|
37
37
|
Check your code at `+X+":"+ue+"."}return""}function Pi(D){return D!=null?Nt(D.__source):""}var Wn={};function xa(D){var X=ul();if(!X){var ue=typeof D=="string"?D:D.displayName||D.name;ue&&(X=`
|
|
38
38
|
|
|
39
|
-
Check the top-level render call using <`+ue+">.")}return X}function si(D,X){if(!(!D._store||D._store.validated||D.key!=null)){D._store.validated=!0;var ue=xa(X);if(!Wn[ue]){Wn[ue]=!0;var me="";D&&D._owner&&D._owner!==J.current&&(me=" It was passed a child from "+Cn(D._owner.type)+"."),Yt(D),ne('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ue,me),Yt(null)}}}function bs(D,X){if(typeof D=="object"){if(It(D))for(var ue=0;ue<D.length;ue++){var me=D[ue];en(me)&&si(me,X)}else if(en(D))D._store&&(D._store.validated=!0);else if(D){var Be=F(D);if(typeof Be=="function"&&Be!==D.entries)for(var it=Be.call(D),Je;!(Je=it.next()).done;)en(Je.value)&&si(Je.value,X)}}}function Fn(D){{var X=D.type;if(X==null||typeof X=="string")return;var ue;if(typeof X=="function")ue=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===R||X.$$typeof===N))ue=X.propTypes;else return;if(ue){var me=Cn(X);Ic(ue,D.props,"prop",me,D)}else if(X.PropTypes!==void 0&&!su){su=!0;var Be=Cn(X);ne("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Be||"Unknown")}typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&ne("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xn(D){{for(var X=Object.keys(D.props),ue=0;ue<X.length;ue++){var me=X[ue];if(me!=="children"&&me!=="key"){Yt(D),ne("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",me),Yt(null);break}}D.ref!==null&&(Yt(D),ne("Invalid attribute `ref` supplied to `React.Fragment`."),Yt(null))}}function Nc(D,X,ue){var me=ke(D);if(!me){var Be="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Be+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var it=Pi(X);it?Be+=it:Be+=ul();var Je;D===null?Je="null":It(D)?Je="array":D!==void 0&&D.$$typeof===l?(Je="<"+(Cn(D.type)||"Unknown")+" />",Be=" Did you accidentally export a JSX literal instead of a component?"):Je=typeof D,ne("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Je,Be)}var wt=dt.apply(this,arguments);if(wt==null)return wt;if(me)for(var Pt=2;Pt<arguments.length;Pt++)bs(arguments[Pt],D);return D===h?Xn(wt):Fn(wt),wt}var Mr=!1;function Sa(D){var X=Nc.bind(null,D);return X.type=D,Mr||(Mr=!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(X,"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}}),X}function Fi(D,X,ue){for(var me=un.apply(this,arguments),Be=2;Be<arguments.length;Be++)bs(arguments[Be],me.type);return Fn(me),me}function lu(D,X){var ue=z.transition;z.transition={};var me=z.transition;z.transition._updatedFibers=new Set;try{D()}finally{if(z.transition=ue,ue===null&&me._updatedFibers){var Be=me._updatedFibers.size;Be>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."),me._updatedFibers.clear()}}}var cl=!1,fl=null;function Cs(D){if(fl===null)try{var X=("require"+Math.random()).slice(0,7),ue=n&&n[X];fl=ue.call(n,"timers").setImmediate}catch{fl=function(Be){cl===!1&&(cl=!0,typeof MessageChannel>"u"&&ne("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 it=new MessageChannel;it.port1.onmessage=Be,it.port2.postMessage(void 0)}}return fl(D)}var li=0,Ao=!1;function uu(D){{var X=li;li++,H.current===null&&(H.current=[]);var ue=H.isBatchingLegacy,me;try{if(H.isBatchingLegacy=!0,me=D(),!ue&&H.didScheduleLegacyUpdate){var Be=H.current;Be!==null&&(H.didScheduleLegacyUpdate=!1,Do(Be))}}catch(mn){throw jo(X),mn}finally{H.isBatchingLegacy=ue}if(me!==null&&typeof me=="object"&&typeof me.then=="function"){var it=me,Je=!1,wt={then:function(mn,Vn){Je=!0,it.then(function(Zt){jo(X),li===0?cu(Zt,mn,Vn):mn(Zt)},function(Zt){jo(X),Vn(Zt)})}};return!Ao&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Je||(Ao=!0,ne("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 () => ...);"))}),wt}else{var Pt=me;if(jo(X),li===0){var fn=H.current;fn!==null&&(Do(fn),H.current=null);var vn={then:function(mn,Vn){H.current===null?(H.current=[],cu(Pt,mn,Vn)):mn(Pt)}};return vn}else{var hn={then:function(mn,Vn){mn(Pt)}};return hn}}}}function jo(D){D!==li-1&&ne("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),li=D}function cu(D,X,ue){{var me=H.current;if(me!==null)try{Do(me),Cs(function(){me.length===0?(H.current=null,X(D)):cu(D,X,ue)})}catch(Be){ue(Be)}else X(D)}}var no=!1;function Do(D){if(!no){no=!0;var X=0;try{for(;X<D.length;X++){var ue=D[X];do ue=ue(!0);while(ue!==null)}D.length=0}catch(me){throw D=D.slice(X+1),me}finally{no=!1}}}var fu=Nc,_c=Fi,Vi=Sa,du={map:ai,forEach:rl,count:ps,toArray:al,only:vs};r.Children=du,r.Component=Ne,r.Fragment=h,r.Profiler=y,r.PureComponent=et,r.StrictMode=v,r.Suspense=T,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=je,r.cloneElement=_c,r.createContext=Mi,r.createElement=fu,r.createFactory=Vi,r.createRef=ft,r.forwardRef=No,r.isValidElement=en,r.lazy=Ha,r.memo=He,r.startTransition=lu,r.unstable_act=uu,r.useCallback=Yr,r.useContext=Bt,r.useDebugValue=ba,r.useDeferredValue=Ki,r.useEffect=pr,r.useId=Lt,r.useImperativeHandle=Dn,r.useInsertionEffect=An,r.useLayoutEffect=jn,r.useMemo=Qi,r.useReducer=kt,r.useRef=vt,r.useState=$t,r.useSyncExternalStore=il,r.useTransition=bc,r.version=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(
|
|
39
|
+
Check the top-level render call using <`+ue+">.")}return X}function si(D,X){if(!(!D._store||D._store.validated||D.key!=null)){D._store.validated=!0;var ue=xa(X);if(!Wn[ue]){Wn[ue]=!0;var me="";D&&D._owner&&D._owner!==J.current&&(me=" It was passed a child from "+Cn(D._owner.type)+"."),Yt(D),ne('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ue,me),Yt(null)}}}function bs(D,X){if(typeof D=="object"){if(It(D))for(var ue=0;ue<D.length;ue++){var me=D[ue];en(me)&&si(me,X)}else if(en(D))D._store&&(D._store.validated=!0);else if(D){var Be=F(D);if(typeof Be=="function"&&Be!==D.entries)for(var it=Be.call(D),Je;!(Je=it.next()).done;)en(Je.value)&&si(Je.value,X)}}}function Fn(D){{var X=D.type;if(X==null||typeof X=="string")return;var ue;if(typeof X=="function")ue=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===R||X.$$typeof===N))ue=X.propTypes;else return;if(ue){var me=Cn(X);Ic(ue,D.props,"prop",me,D)}else if(X.PropTypes!==void 0&&!su){su=!0;var Be=Cn(X);ne("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Be||"Unknown")}typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&ne("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xn(D){{for(var X=Object.keys(D.props),ue=0;ue<X.length;ue++){var me=X[ue];if(me!=="children"&&me!=="key"){Yt(D),ne("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",me),Yt(null);break}}D.ref!==null&&(Yt(D),ne("Invalid attribute `ref` supplied to `React.Fragment`."),Yt(null))}}function Nc(D,X,ue){var me=ke(D);if(!me){var Be="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Be+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var it=Pi(X);it?Be+=it:Be+=ul();var Je;D===null?Je="null":It(D)?Je="array":D!==void 0&&D.$$typeof===l?(Je="<"+(Cn(D.type)||"Unknown")+" />",Be=" Did you accidentally export a JSX literal instead of a component?"):Je=typeof D,ne("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Je,Be)}var wt=dt.apply(this,arguments);if(wt==null)return wt;if(me)for(var Pt=2;Pt<arguments.length;Pt++)bs(arguments[Pt],D);return D===h?Xn(wt):Fn(wt),wt}var Mr=!1;function Sa(D){var X=Nc.bind(null,D);return X.type=D,Mr||(Mr=!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(X,"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}}),X}function Fi(D,X,ue){for(var me=un.apply(this,arguments),Be=2;Be<arguments.length;Be++)bs(arguments[Be],me.type);return Fn(me),me}function lu(D,X){var ue=z.transition;z.transition={};var me=z.transition;z.transition._updatedFibers=new Set;try{D()}finally{if(z.transition=ue,ue===null&&me._updatedFibers){var Be=me._updatedFibers.size;Be>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."),me._updatedFibers.clear()}}}var cl=!1,fl=null;function Cs(D){if(fl===null)try{var X=("require"+Math.random()).slice(0,7),ue=n&&n[X];fl=ue.call(n,"timers").setImmediate}catch{fl=function(Be){cl===!1&&(cl=!0,typeof MessageChannel>"u"&&ne("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 it=new MessageChannel;it.port1.onmessage=Be,it.port2.postMessage(void 0)}}return fl(D)}var li=0,Ao=!1;function uu(D){{var X=li;li++,H.current===null&&(H.current=[]);var ue=H.isBatchingLegacy,me;try{if(H.isBatchingLegacy=!0,me=D(),!ue&&H.didScheduleLegacyUpdate){var Be=H.current;Be!==null&&(H.didScheduleLegacyUpdate=!1,Do(Be))}}catch(mn){throw jo(X),mn}finally{H.isBatchingLegacy=ue}if(me!==null&&typeof me=="object"&&typeof me.then=="function"){var it=me,Je=!1,wt={then:function(mn,Vn){Je=!0,it.then(function(Zt){jo(X),li===0?cu(Zt,mn,Vn):mn(Zt)},function(Zt){jo(X),Vn(Zt)})}};return!Ao&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Je||(Ao=!0,ne("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 () => ...);"))}),wt}else{var Pt=me;if(jo(X),li===0){var fn=H.current;fn!==null&&(Do(fn),H.current=null);var vn={then:function(mn,Vn){H.current===null?(H.current=[],cu(Pt,mn,Vn)):mn(Pt)}};return vn}else{var hn={then:function(mn,Vn){mn(Pt)}};return hn}}}}function jo(D){D!==li-1&&ne("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),li=D}function cu(D,X,ue){{var me=H.current;if(me!==null)try{Do(me),Cs(function(){me.length===0?(H.current=null,X(D)):cu(D,X,ue)})}catch(Be){ue(Be)}else X(D)}}var no=!1;function Do(D){if(!no){no=!0;var X=0;try{for(;X<D.length;X++){var ue=D[X];do ue=ue(!0);while(ue!==null)}D.length=0}catch(me){throw D=D.slice(X+1),me}finally{no=!1}}}var fu=Nc,_c=Fi,Vi=Sa,du={map:ai,forEach:rl,count:ps,toArray:al,only:vs};r.Children=du,r.Component=Ne,r.Fragment=h,r.Profiler=y,r.PureComponent=et,r.StrictMode=v,r.Suspense=T,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=je,r.cloneElement=_c,r.createContext=Mi,r.createElement=fu,r.createFactory=Vi,r.createRef=ft,r.forwardRef=No,r.isValidElement=en,r.lazy=Ha,r.memo=He,r.startTransition=lu,r.unstable_act=uu,r.useCallback=Yr,r.useContext=Bt,r.useDebugValue=ba,r.useDeferredValue=Ki,r.useEffect=pr,r.useId=Lt,r.useImperativeHandle=Dn,r.useInsertionEffect=An,r.useLayoutEffect=jn,r.useMemo=Qi,r.useReducer=kt,r.useRef=vt,r.useState=$t,r.useSyncExternalStore=il,r.useTransition=bc,r.version=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(cm,cm.exports)),cm.exports}var ON;function qf(){if(ON)return Rb.exports;ON=1;var n={};return n.NODE_ENV==="production"?Rb.exports=WB():Rb.exports=XB(),Rb.exports}/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.production.min.js
|
|
42
42
|
*
|
|
@@ -44,7 +44,7 @@ Check the top-level render call using <`+ue+">.")}return X}function si(D,X){if(!
|
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var AN;function YB(){if(AN)return
|
|
47
|
+
*/var AN;function YB(){if(AN)return tm;AN=1;var n=qf(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function h(v,y,C){var x,R={},T=null,A=null;C!==void 0&&(T=""+C),y.key!==void 0&&(T=""+y.key),y.ref!==void 0&&(A=y.ref);for(x in y)u.call(y,x)&&!d.hasOwnProperty(x)&&(R[x]=y[x]);if(v&&v.defaultProps)for(x in y=v.defaultProps,y)R[x]===void 0&&(R[x]=y[x]);return{$$typeof:r,type:v,key:T,ref:A,props:R,_owner:l.current}}return tm.Fragment=i,tm.jsx=h,tm.jsxs=h,tm}var nm={},jN;function ZB(){if(jN)return nm;jN=1;var n={};/**
|
|
48
48
|
* @license React
|
|
49
49
|
* react-jsx-runtime.development.js
|
|
50
50
|
*
|
|
@@ -62,7 +62,7 @@ Check the render method of \``+Z+"`."}return""}}function ps(Z){{if(Z!==void 0){v
|
|
|
62
62
|
|
|
63
63
|
Check your code at `+ke+":"+He+"."}return""}}var rl={};function al(Z){{var ke=ai();if(!ke){var He=typeof Z=="string"?Z:Z.displayName||Z.name;He&&(ke=`
|
|
64
64
|
|
|
65
|
-
Check the top-level render call using <`+He+">.")}return ke}}function vs(Z,ke){{if(!Z._store||Z._store.validated||Z.key!=null)return;Z._store.validated=!0;var He=al(ke);if(rl[He])return;rl[He]=!0;var We="";Z&&Z._owner&&Z._owner!==pn.current&&(We=" It was passed a child from "+Te(Z._owner.type)+"."),cn(Z),F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',He,We),cn(null)}}function Mi(Z,ke){{if(typeof Z!="object")return;if(Rr(Z))for(var He=0;He<Z.length;He++){var We=Z[He];ki(We)&&vs(We,ke)}else if(ki(Z))Z._store&&(Z._store.validated=!0);else if(Z){var Bt=L(Z);if(typeof Bt=="function"&&Bt!==Z.entries)for(var $t=Bt.call(Z),kt;!(kt=$t.next()).done;)ki(kt.value)&&vs(kt.value,ke)}}}function Li(Z){{var ke=Z.type;if(ke==null||typeof ke=="string")return;var He;if(typeof ke=="function")He=ke.propTypes;else if(typeof ke=="object"&&(ke.$$typeof===C||ke.$$typeof===T))He=ke.propTypes;else return;if(He){var We=Te(ke);Cn(He,Z.props,"prop",We,Z)}else if(ke.PropTypes!==void 0&&!On){On=!0;var Bt=Te(ke);F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Bt||"Unknown")}typeof ke.getDefaultProps=="function"&&!ke.getDefaultProps.isReactClassApproved&&F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ii(Z){{for(var ke=Object.keys(Z.props),He=0;He<ke.length;He++){var We=ke[He];if(We!=="children"&&We!=="key"){cn(Z),F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",We),cn(null);break}}Z.ref!==null&&(cn(Z),F("Invalid attribute `ref` supplied to `React.Fragment`."),cn(null))}}function Io(Z,ke,He,We,Bt,$t){{var kt=ge(Z);if(!kt){var vt="";(Z===void 0||typeof Z=="object"&&Z!==null&&Object.keys(Z).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 pr=ps(Bt);pr?vt+=pr:vt+=ai();var An;Z===null?An="null":Rr(Z)?An="array":Z!==void 0&&Z.$$typeof===i?(An="<"+(Te(Z.type)||"Unknown")+" />",vt=" Did you accidentally export a JSX literal instead of a component?"):An=typeof Z,F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",An,vt)}var jn=Xr(Z,ke,He,Bt,$t);if(jn==null)return jn;if(kt){var Yr=ke.children;if(Yr!==void 0)if(We)if(Rr(Yr)){for(var Qi=0;Qi<Yr.length;Qi++)Mi(Yr[Qi],Z);Object.freeze&&Object.freeze(Yr)}else F("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 Mi(Yr,Z)}return Z===l?ii(jn):Li(jn),jn}}function ga(Z,ke,He){return Io(Z,ke,He,!0)}function ya(Z,ke,He){return Io(Z,ke,He,!1)}var Ha=ya,No=ga;
|
|
65
|
+
Check the top-level render call using <`+He+">.")}return ke}}function vs(Z,ke){{if(!Z._store||Z._store.validated||Z.key!=null)return;Z._store.validated=!0;var He=al(ke);if(rl[He])return;rl[He]=!0;var We="";Z&&Z._owner&&Z._owner!==pn.current&&(We=" It was passed a child from "+Te(Z._owner.type)+"."),cn(Z),F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',He,We),cn(null)}}function Mi(Z,ke){{if(typeof Z!="object")return;if(Rr(Z))for(var He=0;He<Z.length;He++){var We=Z[He];ki(We)&&vs(We,ke)}else if(ki(Z))Z._store&&(Z._store.validated=!0);else if(Z){var Bt=L(Z);if(typeof Bt=="function"&&Bt!==Z.entries)for(var $t=Bt.call(Z),kt;!(kt=$t.next()).done;)ki(kt.value)&&vs(kt.value,ke)}}}function Li(Z){{var ke=Z.type;if(ke==null||typeof ke=="string")return;var He;if(typeof ke=="function")He=ke.propTypes;else if(typeof ke=="object"&&(ke.$$typeof===C||ke.$$typeof===T))He=ke.propTypes;else return;if(He){var We=Te(ke);Cn(He,Z.props,"prop",We,Z)}else if(ke.PropTypes!==void 0&&!On){On=!0;var Bt=Te(ke);F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Bt||"Unknown")}typeof ke.getDefaultProps=="function"&&!ke.getDefaultProps.isReactClassApproved&&F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ii(Z){{for(var ke=Object.keys(Z.props),He=0;He<ke.length;He++){var We=ke[He];if(We!=="children"&&We!=="key"){cn(Z),F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",We),cn(null);break}}Z.ref!==null&&(cn(Z),F("Invalid attribute `ref` supplied to `React.Fragment`."),cn(null))}}function Io(Z,ke,He,We,Bt,$t){{var kt=ge(Z);if(!kt){var vt="";(Z===void 0||typeof Z=="object"&&Z!==null&&Object.keys(Z).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 pr=ps(Bt);pr?vt+=pr:vt+=ai();var An;Z===null?An="null":Rr(Z)?An="array":Z!==void 0&&Z.$$typeof===i?(An="<"+(Te(Z.type)||"Unknown")+" />",vt=" Did you accidentally export a JSX literal instead of a component?"):An=typeof Z,F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",An,vt)}var jn=Xr(Z,ke,He,Bt,$t);if(jn==null)return jn;if(kt){var Yr=ke.children;if(Yr!==void 0)if(We)if(Rr(Yr)){for(var Qi=0;Qi<Yr.length;Qi++)Mi(Yr[Qi],Z);Object.freeze&&Object.freeze(Yr)}else F("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 Mi(Yr,Z)}return Z===l?ii(jn):Li(jn),jn}}function ga(Z,ke,He){return Io(Z,ke,He,!0)}function ya(Z,ke,He){return Io(Z,ke,He,!1)}var Ha=ya,No=ga;nm.Fragment=l,nm.jsx=Ha,nm.jsxs=No}(),nm}var JB={};JB.NODE_ENV==="production"?KE.exports=YB():KE.exports=ZB();var b=KE.exports,ls={},ew={exports:{}},Ii={},Tb={exports:{}},CE={};/**
|
|
66
66
|
* @license React
|
|
67
67
|
* scheduler.production.min.js
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ Check the top-level render call using <`+He+">.")}return ke}}function vs(Z,ke){{
|
|
|
70
70
|
*
|
|
71
71
|
* This source code is licensed under the MIT license found in the
|
|
72
72
|
* LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/var DN;function qB(){return DN||(DN=1,function(n){function r(ne,_e){var G=ne.length;ne.push(_e);e:for(;0<G;){var Y=G-1>>>1,re=ne[Y];if(0<l(re,_e))ne[Y]=_e,ne[G]=re,G=Y;else break e}}function i(ne){return ne.length===0?null:ne[0]}function u(ne){if(ne.length===0)return null;var _e=ne[0],G=ne.pop();if(G!==_e){ne[0]=G;e:for(var Y=0,re=ne.length,ye=re>>>1;Y<ye;){var Se=2*(Y+1)-1,Ne=ne[Se],le=Se+1,ve=ne[le];if(0>l(Ne,G))le<re&&0>l(ve,Ne)?(ne[Y]=ve,ne[le]=G,Y=le):(ne[Y]=Ne,ne[Se]=G,Y=Se);else if(le<re&&0>l(ve,G))ne[Y]=ve,ne[le]=G,Y=le;else break e}}return _e}function l(ne,_e){var G=ne.sortIndex-_e.sortIndex;return G!==0?G:ne.id-_e.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,v=h.now();n.unstable_now=function(){return h.now()-v}}var y=[],C=[],x=1,R=null,T=3,A=!1,N=!1,O=!1,_=typeof setTimeout=="function"?setTimeout:null,L=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 F(ne){for(var _e=i(C);_e!==null;){if(_e.callback===null)u(C);else if(_e.startTime<=ne)u(C),_e.sortIndex=_e.expirationTime,r(y,_e);else break;_e=i(C)}}function U(ne){if(O=!1,F(ne),!N)if(i(y)!==null)N=!0,je(z);else{var _e=i(C);_e!==null&&Le(U,_e.startTime-ne)}}function z(ne,_e){N=!1,O&&(O=!1,L(q),q=-1),A=!0;var G=T;try{for(F(_e),R=i(y);R!==null&&(!(R.expirationTime>_e)||ne&&!ge());){var Y=R.callback;if(typeof Y=="function"){R.callback=null,T=R.priorityLevel;var re=Y(R.expirationTime<=_e);_e=n.unstable_now(),typeof re=="function"?R.callback=re:R===i(y)&&u(y),F(_e)}else u(y);R=i(y)}if(R!==null)var ye=!0;else{var Se=i(C);Se!==null&&Le(U,Se.startTime-_e),ye=!1}return ye}finally{R=null,T=G,A=!1}}var H=!1,J=null,q=-1,Re=5,he=-1;function ge(){return!(n.unstable_now()-he<Re)}function fe(){if(J!==null){var ne=n.unstable_now();he=ne;var _e=!0;try{_e=J(!0,ne)}finally{_e?Oe():(H=!1,J=null)}}else H=!1}var Oe;if(typeof V=="function")Oe=function(){V(fe)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,xe=Te.port2;Te.port1.onmessage=fe,Oe=function(){xe.postMessage(null)}}else Oe=function(){_(fe,0)};function je(ne){J=ne,H||(H=!0,Oe())}function Le(ne,_e){q=_(function(){ne(n.unstable_now())},_e)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(ne){ne.callback=null},n.unstable_continueExecution=function(){N||A||(N=!0,je(z))},n.unstable_forceFrameRate=function(ne){0>ne||125<ne?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Re=0<ne?Math.floor(1e3/ne):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_getFirstCallbackNode=function(){return i(y)},n.unstable_next=function(ne){switch(T){case 1:case 2:case 3:var _e=3;break;default:_e=T}var G=T;T=_e;try{return ne()}finally{T=G}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(ne,_e){switch(ne){case 1:case 2:case 3:case 4:case 5:break;default:ne=3}var G=T;T=ne;try{return _e()}finally{T=G}},n.unstable_scheduleCallback=function(ne,_e,G){var Y=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?Y+G:Y):G=Y,ne){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=G+re,ne={id:x++,callback:_e,priorityLevel:ne,startTime:G,expirationTime:re,sortIndex:-1},G>Y?(ne.sortIndex=G,r(C,ne),i(y)===null&&ne===i(C)&&(O?(L(q),q=-1):O=!0,Le(U,G-Y))):(ne.sortIndex=re,r(y,ne),N||A||(N=!0,je(z))),ne},n.unstable_shouldYield=ge,n.unstable_wrapCallback=function(ne){var _e=T;return function(){var G=T;T=_e;try{return ne.apply(this,arguments)}finally{T=G}}}}(
|
|
73
|
+
*/var DN;function qB(){return DN||(DN=1,function(n){function r(ne,_e){var G=ne.length;ne.push(_e);e:for(;0<G;){var Y=G-1>>>1,re=ne[Y];if(0<l(re,_e))ne[Y]=_e,ne[G]=re,G=Y;else break e}}function i(ne){return ne.length===0?null:ne[0]}function u(ne){if(ne.length===0)return null;var _e=ne[0],G=ne.pop();if(G!==_e){ne[0]=G;e:for(var Y=0,re=ne.length,ye=re>>>1;Y<ye;){var Se=2*(Y+1)-1,Ne=ne[Se],le=Se+1,ve=ne[le];if(0>l(Ne,G))le<re&&0>l(ve,Ne)?(ne[Y]=ve,ne[le]=G,Y=le):(ne[Y]=Ne,ne[Se]=G,Y=Se);else if(le<re&&0>l(ve,G))ne[Y]=ve,ne[le]=G,Y=le;else break e}}return _e}function l(ne,_e){var G=ne.sortIndex-_e.sortIndex;return G!==0?G:ne.id-_e.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,v=h.now();n.unstable_now=function(){return h.now()-v}}var y=[],C=[],x=1,R=null,T=3,A=!1,N=!1,O=!1,_=typeof setTimeout=="function"?setTimeout:null,L=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 F(ne){for(var _e=i(C);_e!==null;){if(_e.callback===null)u(C);else if(_e.startTime<=ne)u(C),_e.sortIndex=_e.expirationTime,r(y,_e);else break;_e=i(C)}}function U(ne){if(O=!1,F(ne),!N)if(i(y)!==null)N=!0,je(z);else{var _e=i(C);_e!==null&&Le(U,_e.startTime-ne)}}function z(ne,_e){N=!1,O&&(O=!1,L(q),q=-1),A=!0;var G=T;try{for(F(_e),R=i(y);R!==null&&(!(R.expirationTime>_e)||ne&&!ge());){var Y=R.callback;if(typeof Y=="function"){R.callback=null,T=R.priorityLevel;var re=Y(R.expirationTime<=_e);_e=n.unstable_now(),typeof re=="function"?R.callback=re:R===i(y)&&u(y),F(_e)}else u(y);R=i(y)}if(R!==null)var ye=!0;else{var Se=i(C);Se!==null&&Le(U,Se.startTime-_e),ye=!1}return ye}finally{R=null,T=G,A=!1}}var H=!1,J=null,q=-1,Re=5,he=-1;function ge(){return!(n.unstable_now()-he<Re)}function fe(){if(J!==null){var ne=n.unstable_now();he=ne;var _e=!0;try{_e=J(!0,ne)}finally{_e?Oe():(H=!1,J=null)}}else H=!1}var Oe;if(typeof V=="function")Oe=function(){V(fe)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,xe=Te.port2;Te.port1.onmessage=fe,Oe=function(){xe.postMessage(null)}}else Oe=function(){_(fe,0)};function je(ne){J=ne,H||(H=!0,Oe())}function Le(ne,_e){q=_(function(){ne(n.unstable_now())},_e)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(ne){ne.callback=null},n.unstable_continueExecution=function(){N||A||(N=!0,je(z))},n.unstable_forceFrameRate=function(ne){0>ne||125<ne?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Re=0<ne?Math.floor(1e3/ne):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_getFirstCallbackNode=function(){return i(y)},n.unstable_next=function(ne){switch(T){case 1:case 2:case 3:var _e=3;break;default:_e=T}var G=T;T=_e;try{return ne()}finally{T=G}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(ne,_e){switch(ne){case 1:case 2:case 3:case 4:case 5:break;default:ne=3}var G=T;T=ne;try{return _e()}finally{T=G}},n.unstable_scheduleCallback=function(ne,_e,G){var Y=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?Y+G:Y):G=Y,ne){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=G+re,ne={id:x++,callback:_e,priorityLevel:ne,startTime:G,expirationTime:re,sortIndex:-1},G>Y?(ne.sortIndex=G,r(C,ne),i(y)===null&&ne===i(C)&&(O?(L(q),q=-1):O=!0,Le(U,G-Y))):(ne.sortIndex=re,r(y,ne),N||A||(N=!0,je(z))),ne},n.unstable_shouldYield=ge,n.unstable_wrapCallback=function(ne){var _e=T;return function(){var G=T;T=_e;try{return ne.apply(this,arguments)}finally{T=G}}}}(CE)),CE}var xE={},kN;function QB(){return kN||(kN=1,function(n){var r={};/**
|
|
74
74
|
* @license React
|
|
75
75
|
* scheduler.development.js
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ Check the top-level render call using <`+He+">.")}return ke}}function vs(Z,ke){{
|
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the MIT license found in the
|
|
80
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,u=!1,l=5;function d(Ge,dt){var Mt=Ge.length;Ge.push(dt),y(Ge,dt,Mt)}function h(Ge){return Ge.length===0?null:Ge[0]}function v(Ge){if(Ge.length===0)return null;var dt=Ge[0],Mt=Ge.pop();return Mt!==dt&&(Ge[0]=Mt,C(Ge,Mt,0)),dt}function y(Ge,dt,Mt){for(var un=Mt;un>0;){var en=un-1>>>1,ar=Ge[en];if(x(ar,dt)>0)Ge[en]=dt,Ge[un]=ar,un=en;else return}}function C(Ge,dt,Mt){for(var un=Mt,en=Ge.length,ar=en>>>1;un<ar;){var Gn=(un+1)*2-1,Xr=Ge[Gn],pn=Gn+1,Ir=Ge[pn];if(x(Xr,dt)<0)pn<en&&x(Ir,Xr)<0?(Ge[un]=Ir,Ge[pn]=dt,un=pn):(Ge[un]=Xr,Ge[Gn]=dt,un=Gn);else if(pn<en&&x(Ir,dt)<0)Ge[un]=Ir,Ge[pn]=dt,un=pn;else return}}function x(Ge,dt){var Mt=Ge.sortIndex-dt.sortIndex;return Mt!==0?Mt:Ge.id-dt.id}var R=1,T=2,A=3,N=4,O=5;function _(Ge,dt){}var L=typeof performance=="object"&&typeof performance.now=="function";if(L){var V=performance;n.unstable_now=function(){return V.now()}}else{var F=Date,U=F.now();n.unstable_now=function(){return F.now()-U}}var z=1073741823,H=-1,J=250,q=5e3,Re=1e4,he=z,ge=[],fe=[],Oe=1,Te=null,xe=A,je=!1,Le=!1,ne=!1,_e=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function re(Ge){for(var dt=h(fe);dt!==null;){if(dt.callback===null)v(fe);else if(dt.startTime<=Ge)v(fe),dt.sortIndex=dt.expirationTime,d(ge,dt);else return;dt=h(fe)}}function ye(Ge){if(ne=!1,re(Ge),!Le)if(h(ge)!==null)Le=!0,Pn(Se);else{var dt=h(fe);dt!==null&&ln(ye,dt.startTime-Ge)}}function Se(Ge,dt){Le=!1,ne&&(ne=!1,Ba()),je=!0;var Mt=xe;try{var un;if(!u)return Ne(Ge,dt)}finally{Te=null,xe=Mt,je=!1}}function Ne(Ge,dt){var Mt=dt;for(re(Mt),Te=h(ge);Te!==null&&!i&&!(Te.expirationTime>Mt&&(!Ge||Vt()));){var un=Te.callback;if(typeof un=="function"){Te.callback=null,xe=Te.priorityLevel;var en=Te.expirationTime<=Mt,ar=un(en);Mt=n.unstable_now(),typeof ar=="function"?Te.callback=ar:Te===h(ge)&&v(ge),re(Mt)}else v(ge);Te=h(ge)}if(Te!==null)return!0;var Gn=h(fe);return Gn!==null&&ln(ye,Gn.startTime-Mt),!1}function le(Ge,dt){switch(Ge){case R:case T:case A:case N:case O:break;default:Ge=A}var Mt=xe;xe=Ge;try{return dt()}finally{xe=Mt}}function ve(Ge){var dt;switch(xe){case R:case T:case A:dt=A;break;default:dt=xe;break}var Mt=xe;xe=dt;try{return Ge()}finally{xe=Mt}}function we(Ge){var dt=xe;return function(){var Mt=xe;xe=dt;try{return Ge.apply(this,arguments)}finally{xe=Mt}}}function Ve(Ge,dt,Mt){var un=n.unstable_now(),en;if(typeof Mt=="object"&&Mt!==null){var ar=Mt.delay;typeof ar=="number"&&ar>0?en=un+ar:en=un}else en=un;var Gn;switch(Ge){case R:Gn=H;break;case T:Gn=J;break;case O:Gn=he;break;case N:Gn=Re;break;case A:default:Gn=q;break}var Xr=en+Gn,pn={id:Oe++,callback:dt,priorityLevel:Ge,startTime:en,expirationTime:Xr,sortIndex:-1};return en>un?(pn.sortIndex=en,d(fe,pn),h(ge)===null&&pn===h(fe)&&(ne?Ba():ne=!0,ln(ye,en-un))):(pn.sortIndex=Xr,d(ge,pn),!Le&&!je&&(Le=!0,Pn(Se))),pn}function et(){}function tt(){!Le&&!je&&(Le=!0,Pn(Se))}function ft(){return h(ge)}function Ae(Ge){Ge.callback=null}function It(){return xe}var pt=!1,Kt=null,on=-1,sn=l,_n=-1;function Vt(){var Ge=n.unstable_now()-_n;return!(Ge<sn)}function Cn(){}function qn(Ge){if(Ge<0||Ge>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ge>0?sn=Math.floor(1e3/Ge):sn=l}var Rr=function(){if(Kt!==null){var Ge=n.unstable_now();_n=Ge;var dt=!0,Mt=!0;try{Mt=Kt(dt,Ge)}finally{Mt?$n():(pt=!1,Kt=null)}}else pt=!1},$n;if(typeof Y=="function")$n=function(){Y(Rr)};else if(typeof MessageChannel<"u"){var Tr=new MessageChannel,xt=Tr.port2;Tr.port1.onmessage=Rr,$n=function(){xt.postMessage(null)}}else $n=function(){_e(Rr,0)};function Pn(Ge){Kt=Ge,pt||(pt=!0,$n())}function ln(Ge,dt){on=_e(function(){Ge(n.unstable_now())},dt)}function Ba(){G(on),on=-1}var za=Cn,Ua=null;n.unstable_IdlePriority=O,n.unstable_ImmediatePriority=R,n.unstable_LowPriority=N,n.unstable_NormalPriority=A,n.unstable_Profiling=Ua,n.unstable_UserBlockingPriority=T,n.unstable_cancelCallback=Ae,n.unstable_continueExecution=tt,n.unstable_forceFrameRate=qn,n.unstable_getCurrentPriorityLevel=It,n.unstable_getFirstCallbackNode=ft,n.unstable_next=ve,n.unstable_pauseExecution=et,n.unstable_requestPaint=za,n.unstable_runWithPriority=le,n.unstable_scheduleCallback=Ve,n.unstable_shouldYield=Vt,n.unstable_wrapCallback=we,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(
|
|
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,u=!1,l=5;function d(Ge,dt){var Mt=Ge.length;Ge.push(dt),y(Ge,dt,Mt)}function h(Ge){return Ge.length===0?null:Ge[0]}function v(Ge){if(Ge.length===0)return null;var dt=Ge[0],Mt=Ge.pop();return Mt!==dt&&(Ge[0]=Mt,C(Ge,Mt,0)),dt}function y(Ge,dt,Mt){for(var un=Mt;un>0;){var en=un-1>>>1,ar=Ge[en];if(x(ar,dt)>0)Ge[en]=dt,Ge[un]=ar,un=en;else return}}function C(Ge,dt,Mt){for(var un=Mt,en=Ge.length,ar=en>>>1;un<ar;){var Gn=(un+1)*2-1,Xr=Ge[Gn],pn=Gn+1,Ir=Ge[pn];if(x(Xr,dt)<0)pn<en&&x(Ir,Xr)<0?(Ge[un]=Ir,Ge[pn]=dt,un=pn):(Ge[un]=Xr,Ge[Gn]=dt,un=Gn);else if(pn<en&&x(Ir,dt)<0)Ge[un]=Ir,Ge[pn]=dt,un=pn;else return}}function x(Ge,dt){var Mt=Ge.sortIndex-dt.sortIndex;return Mt!==0?Mt:Ge.id-dt.id}var R=1,T=2,A=3,N=4,O=5;function _(Ge,dt){}var L=typeof performance=="object"&&typeof performance.now=="function";if(L){var V=performance;n.unstable_now=function(){return V.now()}}else{var F=Date,U=F.now();n.unstable_now=function(){return F.now()-U}}var z=1073741823,H=-1,J=250,q=5e3,Re=1e4,he=z,ge=[],fe=[],Oe=1,Te=null,xe=A,je=!1,Le=!1,ne=!1,_e=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function re(Ge){for(var dt=h(fe);dt!==null;){if(dt.callback===null)v(fe);else if(dt.startTime<=Ge)v(fe),dt.sortIndex=dt.expirationTime,d(ge,dt);else return;dt=h(fe)}}function ye(Ge){if(ne=!1,re(Ge),!Le)if(h(ge)!==null)Le=!0,Pn(Se);else{var dt=h(fe);dt!==null&&ln(ye,dt.startTime-Ge)}}function Se(Ge,dt){Le=!1,ne&&(ne=!1,Ba()),je=!0;var Mt=xe;try{var un;if(!u)return Ne(Ge,dt)}finally{Te=null,xe=Mt,je=!1}}function Ne(Ge,dt){var Mt=dt;for(re(Mt),Te=h(ge);Te!==null&&!i&&!(Te.expirationTime>Mt&&(!Ge||Vt()));){var un=Te.callback;if(typeof un=="function"){Te.callback=null,xe=Te.priorityLevel;var en=Te.expirationTime<=Mt,ar=un(en);Mt=n.unstable_now(),typeof ar=="function"?Te.callback=ar:Te===h(ge)&&v(ge),re(Mt)}else v(ge);Te=h(ge)}if(Te!==null)return!0;var Gn=h(fe);return Gn!==null&&ln(ye,Gn.startTime-Mt),!1}function le(Ge,dt){switch(Ge){case R:case T:case A:case N:case O:break;default:Ge=A}var Mt=xe;xe=Ge;try{return dt()}finally{xe=Mt}}function ve(Ge){var dt;switch(xe){case R:case T:case A:dt=A;break;default:dt=xe;break}var Mt=xe;xe=dt;try{return Ge()}finally{xe=Mt}}function we(Ge){var dt=xe;return function(){var Mt=xe;xe=dt;try{return Ge.apply(this,arguments)}finally{xe=Mt}}}function Ve(Ge,dt,Mt){var un=n.unstable_now(),en;if(typeof Mt=="object"&&Mt!==null){var ar=Mt.delay;typeof ar=="number"&&ar>0?en=un+ar:en=un}else en=un;var Gn;switch(Ge){case R:Gn=H;break;case T:Gn=J;break;case O:Gn=he;break;case N:Gn=Re;break;case A:default:Gn=q;break}var Xr=en+Gn,pn={id:Oe++,callback:dt,priorityLevel:Ge,startTime:en,expirationTime:Xr,sortIndex:-1};return en>un?(pn.sortIndex=en,d(fe,pn),h(ge)===null&&pn===h(fe)&&(ne?Ba():ne=!0,ln(ye,en-un))):(pn.sortIndex=Xr,d(ge,pn),!Le&&!je&&(Le=!0,Pn(Se))),pn}function et(){}function tt(){!Le&&!je&&(Le=!0,Pn(Se))}function ft(){return h(ge)}function Ae(Ge){Ge.callback=null}function It(){return xe}var pt=!1,Kt=null,on=-1,sn=l,_n=-1;function Vt(){var Ge=n.unstable_now()-_n;return!(Ge<sn)}function Cn(){}function qn(Ge){if(Ge<0||Ge>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ge>0?sn=Math.floor(1e3/Ge):sn=l}var Rr=function(){if(Kt!==null){var Ge=n.unstable_now();_n=Ge;var dt=!0,Mt=!0;try{Mt=Kt(dt,Ge)}finally{Mt?$n():(pt=!1,Kt=null)}}else pt=!1},$n;if(typeof Y=="function")$n=function(){Y(Rr)};else if(typeof MessageChannel<"u"){var Tr=new MessageChannel,xt=Tr.port2;Tr.port1.onmessage=Rr,$n=function(){xt.postMessage(null)}}else $n=function(){_e(Rr,0)};function Pn(Ge){Kt=Ge,pt||(pt=!0,$n())}function ln(Ge,dt){on=_e(function(){Ge(n.unstable_now())},dt)}function Ba(){G(on),on=-1}var za=Cn,Ua=null;n.unstable_IdlePriority=O,n.unstable_ImmediatePriority=R,n.unstable_LowPriority=N,n.unstable_NormalPriority=A,n.unstable_Profiling=Ua,n.unstable_UserBlockingPriority=T,n.unstable_cancelCallback=Ae,n.unstable_continueExecution=tt,n.unstable_forceFrameRate=qn,n.unstable_getCurrentPriorityLevel=It,n.unstable_getFirstCallbackNode=ft,n.unstable_next=ve,n.unstable_pauseExecution=et,n.unstable_requestPaint=za,n.unstable_runWithPriority=le,n.unstable_scheduleCallback=Ve,n.unstable_shouldYield=Vt,n.unstable_wrapCallback=we,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(xE)),xE}var MN;function WO(){if(MN)return Tb.exports;MN=1;var n={};return n.NODE_ENV==="production"?Tb.exports=qB():Tb.exports=QB(),Tb.exports}/**
|
|
82
82
|
* @license React
|
|
83
83
|
* react-dom.production.min.js
|
|
84
84
|
*
|
|
@@ -90,10 +90,10 @@ Check the top-level render call using <`+He+">.")}return ke}}function vs(Z,ke){{
|
|
|
90
90
|
`+Y+a}var ye=!1;function Se(a,o){if(!a||ye)return"";ye=!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(pe){var m=pe}Reflect.construct(a,[],o)}else{try{o.call()}catch(pe){m=pe}a.call(o.prototype)}else{try{throw Error()}catch(pe){m=pe}a()}}catch(pe){if(pe&&m&&typeof pe.stack=="string"){for(var S=pe.stack.split(`
|
|
91
91
|
`),w=m.stack.split(`
|
|
92
92
|
`),k=S.length-1,W=w.length-1;1<=k&&0<=W&&S[k]!==w[W];)W--;for(;1<=k&&0<=W;k--,W--)if(S[k]!==w[W]){if(k!==1||W!==1)do if(k--,W--,0>W||S[k]!==w[W]){var Q=`
|
|
93
|
-
`+S[k].replace(" at new "," at ");return a.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",a.displayName)),Q}while(1<=k&&0<=W);break}}}finally{ye=!1,Error.prepareStackTrace=f}return(a=a?a.displayName||a.name:"")?re(a):""}function Ne(a){switch(a.tag){case 5:return re(a.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return a=Se(a.type,!1),a;case 11:return a=Se(a.type.render,!1),a;case 1:return a=Se(a.type,!0),a;default:return""}}function le(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 J:return"Fragment";case H:return"Portal";case Re:return"Profiler";case q:return"StrictMode";case Oe:return"Suspense";case Te:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case ge:return(a.displayName||"Context")+".Consumer";case he:return(a._context.displayName||"Context")+".Provider";case fe: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:le(a.type)||"Memo";case je:o=a._payload,a=a._init;try{return le(a(o))}catch{}}return null}function ve(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 le(o);case 8:return o===q?"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 we(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 et(a){var o=Ve(a)?"checked":"value",f=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),m=""+a[o];if(!a.hasOwnProperty(o)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var S=f.get,w=f.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return S.call(this)},set:function(k){m=""+k,w.call(this,k)}}),Object.defineProperty(a,o,{enumerable:f.enumerable}),{getValue:function(){return m},setValue:function(k){m=""+k},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function tt(a){a._valueTracker||(a._valueTracker=et(a))}function ft(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var f=o.getValue(),m="";return a&&(m=Ve(a)?a.checked?"true":"false":a.value),a=m,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 It(a,o){var f=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??a._wrapperState.initialChecked})}function pt(a,o){var f=o.defaultValue==null?"":o.defaultValue,m=o.checked!=null?o.checked:o.defaultChecked;f=we(o.value!=null?o.value:f),a._wrapperState={initialChecked:m,initialValue:f,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Kt(a,o){o=o.checked,o!=null&&F(a,"checked",o,!1)}function on(a,o){Kt(a,o);var f=we(o.value),m=o.type;if(f!=null)m==="number"?(f===0&&a.value===""||a.value!=f)&&(a.value=""+f):a.value!==""+f&&(a.value=""+f);else if(m==="submit"||m==="reset"){a.removeAttribute("value");return}o.hasOwnProperty("value")?_n(a,o.type,f):o.hasOwnProperty("defaultValue")&&_n(a,o.type,we(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(a.defaultChecked=!!o.defaultChecked)}function sn(a,o,f){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var m=o.type;if(!(m!=="submit"&&m!=="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 _n(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,m){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&&m&&(a[f].defaultSelected=!0)}else{for(f=""+we(f),o=null,S=0;S<a.length;S++){if(a[S].value===f){a[S].selected=!0,m&&(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 Rr(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:we(f)}}function $n(a,o){var f=we(o.value),m=we(o.defaultValue);f!=null&&(f=""+f,f!==a.value&&(a.value=f),o.defaultValue==null&&a.defaultValue!==f&&(a.defaultValue=f)),m!=null&&(a.defaultValue=""+m)}function Tr(a){var o=a.textContent;o===a._wrapperState.initialValue&&o!==""&&o!==null&&(a.value=o)}function xt(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 Pn(a,o){return a==null||a==="http://www.w3.org/1999/xhtml"?xt(o):a==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var ln,Ba=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,f,m,S){MSApp.execUnsafeLocalFunction(function(){return a(o,f,m,S)})}:a}(function(a,o){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=o;else{for(ln=ln||document.createElement("div"),ln.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=ln.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;o.firstChild;)a.appendChild(o.firstChild)}});function za(a,o){if(o){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=o;return}}a.textContent=o}var Ua={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},Ge=["Webkit","ms","Moz","O"];Object.keys(Ua).forEach(function(a){Ge.forEach(function(o){o=o+a.charAt(0).toUpperCase()+a.substring(1),Ua[o]=Ua[a]})});function dt(a,o,f){return o==null||typeof o=="boolean"||o===""?"":f||typeof o!="number"||o===0||Ua.hasOwnProperty(a)&&Ua[a]?(""+o).trim():o+"px"}function Mt(a,o){a=a.style;for(var f in o)if(o.hasOwnProperty(f)){var m=f.indexOf("--")===0,S=dt(f,o[f],m);f==="float"&&(f="cssFloat"),m?a.setProperty(f,S):a[f]=S}}var un=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 en(a,o){if(o){if(un[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 ar(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 Gn=null;function Xr(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var pn=null,Ir=null,cn=null;function On(a){if(a=ao(a)){if(typeof pn!="function")throw Error(i(280));var o=a.stateNode;o&&(o=ud(o),pn(a.stateNode,a.type,o))}}function ki(a){Ir?cn?cn.push(a):cn=[a]:Ir=a}function ai(){if(Ir){var a=Ir,o=cn;if(cn=Ir=null,On(a),o)for(a=0;a<o.length;a++)On(o[a])}}function ps(a,o){return a(o)}function rl(){}var al=!1;function vs(a,o,f){if(al)return a(o,f);al=!0;try{return ps(a,o,f)}finally{al=!1,(Ir!==null||cn!==null)&&(rl(),ai())}}function Mi(a,o){var f=a.stateNode;if(f===null)return null;var m=ud(f);if(m===null)return null;f=m[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":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(i(231,o,typeof f));return f}var Li=!1;if(v)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){Li=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Li=!1}function Io(a,o,f,m,S,w,k,W,Q){var pe=Array.prototype.slice.call(arguments,3);try{o.apply(f,pe)}catch(Me){this.onError(Me)}}var ga=!1,ya=null,Ha=!1,No=null,Z={onError:function(a){ga=!0,ya=a}};function ke(a,o,f,m,S,w,k,W,Q){ga=!1,ya=null,Io.apply(Z,arguments)}function He(a,o,f,m,S,w,k,W,Q){if(ke.apply(this,arguments),ga){if(ga){var pe=ya;ga=!1,ya=null}else throw Error(i(198));Ha||(Ha=!0,No=pe)}}function We(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 $t(a){if(We(a)!==a)throw Error(i(188))}function kt(a){var o=a.alternate;if(!o){if(o=We(a),o===null)throw Error(i(188));return o!==a?null:a}for(var f=a,m=o;;){var S=f.return;if(S===null)break;var w=S.alternate;if(w===null){if(m=S.return,m!==null){f=m;continue}break}if(S.child===w.child){for(w=S.child;w;){if(w===f)return $t(S),a;if(w===m)return $t(S),o;w=w.sibling}throw Error(i(188))}if(f.return!==m.return)f=S,m=w;else{for(var k=!1,W=S.child;W;){if(W===f){k=!0,f=S,m=w;break}if(W===m){k=!0,m=S,f=w;break}W=W.sibling}if(!k){for(W=w.child;W;){if(W===f){k=!0,f=w,m=S;break}if(W===m){k=!0,m=w,f=S;break}W=W.sibling}if(!k)throw Error(i(189))}}if(f.alternate!==m)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?pr(a):null}function pr(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var o=pr(a);if(o!==null)return o;a=a.sibling}return null}var An=r.unstable_scheduleCallback,jn=r.unstable_cancelCallback,Yr=r.unstable_shouldYield,Qi=r.unstable_requestPaint,Dn=r.unstable_now,ba=r.unstable_getCurrentPriorityLevel,bc=r.unstable_ImmediatePriority,Ki=r.unstable_UserBlockingPriority,Lt=r.unstable_NormalPriority,il=r.unstable_LowPriority,_o=r.unstable_IdlePriority,hs=null,Ca=null;function Cc(a){if(Ca&&typeof Ca.onCommitFiberRoot=="function")try{Ca.onCommitFiberRoot(hs,a,void 0,(a.current.flags&128)===128)}catch{}}var na=Math.clz32?Math.clz32:Ec,xc=Math.log,Sc=Math.LN2;function Ec(a){return a>>>=0,a===0?32:31-(xc(a)/Sc|0)|0}var ol=64,iu=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 eo(a,o){var f=a.pendingLanes;if(f===0)return 0;var m=0,S=a.suspendedLanes,w=a.pingedLanes,k=f&268435455;if(k!==0){var W=k&~S;W!==0?m=Oo(W):(w&=k,w!==0&&(m=Oo(w)))}else k=f&~S,k!==0?m=Oo(k):w!==0&&(m=Oo(w));if(m===0)return 0;if(o!==0&&o!==m&&!(o&S)&&(S=m&-m,w=o&-o,S>=w||S===16&&(w&4194240)!==0))return o;if(m&4&&(m|=f&16),o=a.entangledLanes,o!==0)for(a=a.entanglements,o&=m;0<o;)f=31-na(o),S=1<<f,m|=a[f],o&=~S;return m}function oi(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 ms(a,o){for(var f=a.suspendedLanes,m=a.pingedLanes,S=a.expirationTimes,w=a.pendingLanes;0<w;){var k=31-na(w),W=1<<k,Q=S[k];Q===-1?(!(W&f)||W&m)&&(S[k]=oi(W,o)):Q<=o&&(a.expiredLanes|=W),w&=~W}}function to(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function sl(){var a=ol;return ol<<=1,!(ol&4194240)&&(ol=64),a}function ll(a){for(var o=[],f=0;31>f;f++)o.push(a);return o}function gs(a,o,f){a.pendingLanes|=o,o!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,o=31-na(o),a[o]=f}function wc(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 m=a.eventTimes;for(a=a.expirationTimes;0<f;){var S=31-na(f),w=1<<S;o[S]=0,m[S]=-1,a[S]=-1,f&=~w}}function Rc(a,o){var f=a.entangledLanes|=o;for(a=a.entanglements;f;){var m=31-na(f),S=1<<m;S&o|a[m]&o&&(a[m]|=o),f&=~S}}var Ht=0;function Tc(a){return a&=-a,1<a?4<a?a&268435455?16:536870912:4:1}var ou,ys,Ic,Yt,su,ul=!1,Nt=[],Pi=null,Wn=null,xa=null,si=new Map,bs=new Map,Fn=[],Xn="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 Nc(a,o){switch(a){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":xa=null;break;case"pointerover":case"pointerout":si.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":bs.delete(o.pointerId)}}function Mr(a,o,f,m,S,w){return a===null||a.nativeEvent!==w?(a={blockedOn:o,domEventName:f,eventSystemFlags:m,nativeEvent:w,targetContainers:[S]},o!==null&&(o=ao(o),o!==null&&ys(o)),a):(a.eventSystemFlags|=m,o=a.targetContainers,S!==null&&o.indexOf(S)===-1&&o.push(S),a)}function Sa(a,o,f,m,S){switch(o){case"focusin":return Pi=Mr(Pi,a,o,f,m,S),!0;case"dragenter":return Wn=Mr(Wn,a,o,f,m,S),!0;case"mouseover":return xa=Mr(xa,a,o,f,m,S),!0;case"pointerover":var w=S.pointerId;return si.set(w,Mr(si.get(w)||null,a,o,f,m,S)),!0;case"gotpointercapture":return w=S.pointerId,bs.set(w,Mr(bs.get(w)||null,a,o,f,m,S)),!0}return!1}function Fi(a){var o=zo(a.target);if(o!==null){var f=We(o);if(f!==null){if(o=f.tag,o===13){if(o=Bt(f),o!==null){a.blockedOn=o,su(a.priority,function(){Ic(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 lu(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var f=fu(a.domEventName,a.eventSystemFlags,o[0],a.nativeEvent);if(f===null){f=a.nativeEvent;var m=new f.constructor(f.type,f);Gn=m,f.target.dispatchEvent(m),Gn=null}else return o=ao(f),o!==null&&ys(o),a.blockedOn=f,!1;o.shift()}return!0}function cl(a,o,f){lu(a)&&f.delete(o)}function fl(){ul=!1,Pi!==null&&lu(Pi)&&(Pi=null),Wn!==null&&lu(Wn)&&(Wn=null),xa!==null&&lu(xa)&&(xa=null),si.forEach(cl),bs.forEach(cl)}function Cs(a,o){a.blockedOn===o&&(a.blockedOn=null,ul||(ul=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,fl)))}function li(a){function o(S){return Cs(S,a)}if(0<Nt.length){Cs(Nt[0],a);for(var f=1;f<Nt.length;f++){var m=Nt[f];m.blockedOn===a&&(m.blockedOn=null)}}for(Pi!==null&&Cs(Pi,a),Wn!==null&&Cs(Wn,a),xa!==null&&Cs(xa,a),si.forEach(o),bs.forEach(o),f=0;f<Fn.length;f++)m=Fn[f],m.blockedOn===a&&(m.blockedOn=null);for(;0<Fn.length&&(f=Fn[0],f.blockedOn===null);)Fi(f),f.blockedOn===null&&Fn.shift()}var Ao=U.ReactCurrentBatchConfig,uu=!0;function jo(a,o,f,m){var S=Ht,w=Ao.transition;Ao.transition=null;try{Ht=1,no(a,o,f,m)}finally{Ht=S,Ao.transition=w}}function cu(a,o,f,m){var S=Ht,w=Ao.transition;Ao.transition=null;try{Ht=4,no(a,o,f,m)}finally{Ht=S,Ao.transition=w}}function no(a,o,f,m){if(uu){var S=fu(a,o,f,m);if(S===null)hv(a,o,m,Do,f),Nc(a,m);else if(Sa(S,a,o,f,m))m.stopPropagation();else if(Nc(a,m),o&4&&-1<Xn.indexOf(a)){for(;S!==null;){var w=ao(S);if(w!==null&&ou(w),w=fu(a,o,f,m),w===null&&hv(a,o,m,Do,f),w===S)break;S=w}S!==null&&m.stopPropagation()}else hv(a,o,m,null,f)}}var Do=null;function fu(a,o,f,m){if(Do=null,a=Xr(m),a=zo(a),a!==null)if(o=We(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 Do=a,null}function _c(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(ba()){case bc:return 1;case Ki:return 4;case Lt:case il:return 16;case _o:return 536870912;default:return 16}default:return 16}}var Vi=null,du=null,D=null;function X(){if(D)return D;var a,o=du,f=o.length,m,S="value"in Vi?Vi.value:Vi.textContent,w=S.length;for(a=0;a<f&&o[a]===S[a];a++);var k=f-a;for(m=1;m<=k&&o[f-m]===S[w-m];m++);return D=S.slice(a,1<m?1-m:void 0)}function ue(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 me(){return!0}function Be(){return!1}function it(a){function o(f,m,S,w,k){this._reactName=f,this._targetInst=S,this.type=m,this.nativeEvent=w,this.target=k,this.currentTarget=null;for(var W in a)a.hasOwnProperty(W)&&(f=a[W],this[W]=f?f(w):w[W]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?me:Be,this.isPropagationStopped=Be,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=me)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=me)},persist:function(){},isPersistent:me}),o}var Je={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wt=it(Je),Pt=G({},Je,{view:0,detail:0}),fn=it(Pt),vn,hn,mn,Vn=G({},Pt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kf,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!==mn&&(mn&&a.type==="mousemove"?(vn=a.screenX-mn.screenX,hn=a.screenY-mn.screenY):hn=vn=0,mn=a),vn)},movementY:function(a){return"movementY"in a?a.movementY:hn}}),Zt=it(Vn),xs=G({},Vn,{dataTransfer:0}),pu=it(xs),Oc=G({},Pt,{relatedTarget:0}),Ac=it(Oc),ko=G({},Je,{animationName:0,elapsedTime:0,pseudoElement:0}),jc=it(ko),Dc=G({},Je,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),rv=it(Dc),Z0=G({},Je,{data:0}),Lm=it(Z0),Pm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},av={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"},Fm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vm(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Fm[a])?!!o[a]:!1}function Kf(){return Vm}var J0=G({},Pt,{key:function(a){if(a.key){var o=Pm[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=ue(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?av[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kf,charCode:function(a){return a.type==="keypress"?ue(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?ue(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Mo=it(J0),q0=G({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ed=it(q0),iv=G({},Pt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kf}),ov=it(iv),Q0=G({},Je,{propertyName:0,elapsedTime:0,pseudoElement:0}),td=it(Q0),Bm=G({},Vn,{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}),Ea=it(Bm),Lo=[9,13,27,32],Qn=v&&"CompositionEvent"in window,$a=null;v&&"documentMode"in document&&($a=document.documentMode);var sv=v&&"TextEvent"in window&&!$a,kc=v&&(!Qn||$a&&8<$a&&11>=$a),zm=" ",vu=!1;function Um(a,o){switch(a){case"keyup":return Lo.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hm(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ss=!1;function K0(a,o){switch(a){case"compositionend":return Hm(o);case"keypress":return o.which!==32?null:(vu=!0,zm);case"textInput":return a=o.data,a===zm&&vu?null:a;default:return null}}function eC(a,o){if(Ss)return a==="compositionend"||!Qn&&Um(a,o)?(a=X(),D=du=Vi=null,Ss=!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 kc&&o.locale!=="ko"?null:o.data;default:return null}}var tC={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 lv(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!tC[a.type]:o==="textarea"}function $m(a,o,f,m){ki(m),o=sd(o,"onChange"),0<o.length&&(f=new wt("onChange","change",null,f,m),a.push({event:f,listeners:o}))}var Mc=null,Lc=null;function Gm(a){sg(a,0)}function Po(a){var o=yu(a);if(ft(o))return a}function uv(a,o){if(a==="change")return o}var cv=!1;if(v){var nd;if(v){var fv="oninput"in document;if(!fv){var Wm=document.createElement("div");Wm.setAttribute("oninput","return;"),fv=typeof Wm.oninput=="function"}nd=fv}else nd=!1;cv=nd&&(!document.documentMode||9<document.documentMode)}function Xm(){Mc&&(Mc.detachEvent("onpropertychange",Ym),Lc=Mc=null)}function Ym(a){if(a.propertyName==="value"&&Po(Lc)){var o=[];$m(o,Lc,a,Xr(a)),vs(Gm,o)}}function nC(a,o,f){a==="focusin"?(Xm(),Mc=o,Lc=f,Mc.attachEvent("onpropertychange",Ym)):a==="focusout"&&Xm()}function rC(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Po(Lc)}function aC(a,o){if(a==="click")return Po(o)}function iC(a,o){if(a==="input"||a==="change")return Po(o)}function Zm(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Bi=typeof Object.is=="function"?Object.is:Zm;function hu(a,o){if(Bi(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var f=Object.keys(a),m=Object.keys(o);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var S=f[m];if(!y.call(o,S)||!Bi(a[S],o[S]))return!1}return!0}function Jm(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function qm(a,o){var f=Jm(a);a=0;for(var m;f;){if(f.nodeType===3){if(m=a+f.textContent.length,a<=o&&m>=o)return{node:f,offset:o-a};a=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=Jm(f)}}function Qm(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?Qm(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function Km(){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 Pc(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 dl(a){var o=Km(),f=a.focusedElem,m=a.selectionRange;if(o!==f&&f&&f.ownerDocument&&Qm(f.ownerDocument.documentElement,f)){if(m!==null&&Pc(f)){if(o=m.start,a=m.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,w=Math.min(m.start,S);m=m.end===void 0?w:Math.min(m.end,S),!a.extend&&w>m&&(S=m,m=w,w=S),S=qm(f,w);var k=qm(f,m);S&&k&&(a.rangeCount!==1||a.anchorNode!==S.node||a.anchorOffset!==S.offset||a.focusNode!==k.node||a.focusOffset!==k.offset)&&(o=o.createRange(),o.setStart(S.node,S.offset),a.removeAllRanges(),w>m?(a.addRange(o),a.extend(k.node,k.offset)):(o.setEnd(k.node,k.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 rd=v&&"documentMode"in document&&11>=document.documentMode,pl=null,Es=null,Fc=null,dv=!1;function eg(a,o,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;dv||pl==null||pl!==Ae(m)||(m=pl,"selectionStart"in m&&Pc(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Fc&&hu(Fc,m)||(Fc=m,m=sd(Es,"onSelect"),0<m.length&&(o=new wt("onSelect","select",null,o,f),a.push({event:o,listeners:m}),o.target=pl)))}function ad(a,o){var f={};return f[a.toLowerCase()]=o.toLowerCase(),f["Webkit"+a]="webkit"+o,f["Moz"+a]="moz"+o,f}var mu={animationend:ad("Animation","AnimationEnd"),animationiteration:ad("Animation","AnimationIteration"),animationstart:ad("Animation","AnimationStart"),transitionend:ad("Transition","TransitionEnd")},id={},tg={};v&&(tg=document.createElement("div").style,"AnimationEvent"in window||(delete mu.animationend.animation,delete mu.animationiteration.animation,delete mu.animationstart.animation),"TransitionEvent"in window||delete mu.transitionend.transition);function Vc(a){if(id[a])return id[a];if(!mu[a])return a;var o=mu[a],f;for(f in o)if(o.hasOwnProperty(f)&&f in tg)return id[a]=o[f];return a}var Zr=Vc("animationend"),pv=Vc("animationiteration"),ng=Vc("animationstart"),rg=Vc("transitionend"),ag=new Map,ig="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 ws(a,o){ag.set(a,o),d(o,[a])}for(var od=0;od<ig.length;od++){var Bc=ig[od],zc=Bc.toLowerCase(),oC=Bc[0].toUpperCase()+Bc.slice(1);ws(zc,"on"+oC)}ws(Zr,"onAnimationEnd"),ws(pv,"onAnimationIteration"),ws(ng,"onAnimationStart"),ws("dblclick","onDoubleClick"),ws("focusin","onFocus"),ws("focusout","onBlur"),ws(rg,"onTransitionEnd"),h("onMouseEnter",["mouseout","mouseover"]),h("onMouseLeave",["mouseout","mouseover"]),h("onPointerEnter",["pointerout","pointerover"]),h("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 Fo="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(" "),sC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fo));function og(a,o,f){var m=a.type||"unknown-event";a.currentTarget=f,He(m,o,void 0,a),a.currentTarget=null}function sg(a,o){o=(o&4)!==0;for(var f=0;f<a.length;f++){var m=a[f],S=m.event;m=m.listeners;e:{var w=void 0;if(o)for(var k=m.length-1;0<=k;k--){var W=m[k],Q=W.instance,pe=W.currentTarget;if(W=W.listener,Q!==w&&S.isPropagationStopped())break e;og(S,W,pe),w=Q}else for(k=0;k<m.length;k++){if(W=m[k],Q=W.instance,pe=W.currentTarget,W=W.listener,Q!==w&&S.isPropagationStopped())break e;og(S,W,pe),w=Q}}}if(Ha)throw a=No,Ha=!1,No=null,a}function Tn(a,o){var f=o[Ev];f===void 0&&(f=o[Ev]=new Set);var m=a+"__bubble";f.has(m)||(vv(o,a,2,!1),f.add(m))}function Uc(a,o,f){var m=0;o&&(m|=4),vv(f,a,m,o)}var Vo="_reactListening"+Math.random().toString(36).slice(2);function ro(a){if(!a[Vo]){a[Vo]=!0,u.forEach(function(f){f!=="selectionchange"&&(sC.has(f)||Uc(f,!1,a),Uc(f,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[Vo]||(o[Vo]=!0,Uc("selectionchange",!1,o))}}function vv(a,o,f,m){switch(_c(o)){case 1:var S=jo;break;case 4:S=cu;break;default:S=no}f=S.bind(null,o,f,a),S=void 0,!Li||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(S=!0),m?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 hv(a,o,f,m,S){var w=m;if(!(o&1)&&!(o&2)&&m!==null)e:for(;;){if(m===null)return;var k=m.tag;if(k===3||k===4){var W=m.stateNode.containerInfo;if(W===S||W.nodeType===8&&W.parentNode===S)break;if(k===4)for(k=m.return;k!==null;){var Q=k.tag;if((Q===3||Q===4)&&(Q=k.stateNode.containerInfo,Q===S||Q.nodeType===8&&Q.parentNode===S))return;k=k.return}for(;W!==null;){if(k=zo(W),k===null)return;if(Q=k.tag,Q===5||Q===6){m=w=k;continue e}W=W.parentNode}}m=m.return}vs(function(){var pe=w,Me=Xr(f),Pe=[];e:{var De=ag.get(a);if(De!==void 0){var Ye=wt,nt=a;switch(a){case"keypress":if(ue(f)===0)break e;case"keydown":case"keyup":Ye=Mo;break;case"focusin":nt="focus",Ye=Ac;break;case"focusout":nt="blur",Ye=Ac;break;case"beforeblur":case"afterblur":Ye=Ac;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":Ye=Zt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ye=pu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ye=ov;break;case Zr:case pv:case ng:Ye=jc;break;case rg:Ye=td;break;case"scroll":Ye=fn;break;case"wheel":Ye=Ea;break;case"copy":case"cut":case"paste":Ye=rv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ye=ed}var ot=(o&4)!==0,cr=!ot&&a==="scroll",ae=ot?De!==null?De+"Capture":null:De;ot=[];for(var ee=pe,se;ee!==null;){se=ee;var ze=se.stateNode;if(se.tag===5&&ze!==null&&(se=ze,ae!==null&&(ze=Mi(ee,ae),ze!=null&&ot.push(gu(ee,ze,se)))),cr)break;ee=ee.return}0<ot.length&&(De=new Ye(De,nt,null,f,Me),Pe.push({event:De,listeners:ot}))}}if(!(o&7)){e:{if(De=a==="mouseover"||a==="pointerover",Ye=a==="mouseout"||a==="pointerout",De&&f!==Gn&&(nt=f.relatedTarget||f.fromElement)&&(zo(nt)||nt[zi]))break e;if((Ye||De)&&(De=Me.window===Me?Me:(De=Me.ownerDocument)?De.defaultView||De.parentWindow:window,Ye?(nt=f.relatedTarget||f.toElement,Ye=pe,nt=nt?zo(nt):null,nt!==null&&(cr=We(nt),nt!==cr||nt.tag!==5&&nt.tag!==6)&&(nt=null)):(Ye=null,nt=pe),Ye!==nt)){if(ot=Zt,ze="onMouseLeave",ae="onMouseEnter",ee="mouse",(a==="pointerout"||a==="pointerover")&&(ot=ed,ze="onPointerLeave",ae="onPointerEnter",ee="pointer"),cr=Ye==null?De:yu(Ye),se=nt==null?De:yu(nt),De=new ot(ze,ee+"leave",Ye,f,Me),De.target=cr,De.relatedTarget=se,ze=null,zo(Me)===pe&&(ot=new ot(ae,ee+"enter",nt,f,Me),ot.target=se,ot.relatedTarget=cr,ze=ot),cr=ze,Ye&&nt)t:{for(ot=Ye,ae=nt,ee=0,se=ot;se;se=vl(se))ee++;for(se=0,ze=ae;ze;ze=vl(ze))se++;for(;0<ee-se;)ot=vl(ot),ee--;for(;0<se-ee;)ae=vl(ae),se--;for(;ee--;){if(ot===ae||ae!==null&&ot===ae.alternate)break t;ot=vl(ot),ae=vl(ae)}ot=null}else ot=null;Ye!==null&&mv(Pe,De,Ye,ot,!1),nt!==null&&cr!==null&&mv(Pe,cr,nt,ot,!0)}}e:{if(De=pe?yu(pe):window,Ye=De.nodeName&&De.nodeName.toLowerCase(),Ye==="select"||Ye==="input"&&De.type==="file")var lt=uv;else if(lv(De))if(cv)lt=iC;else{lt=rC;var Ct=nC}else(Ye=De.nodeName)&&Ye.toLowerCase()==="input"&&(De.type==="checkbox"||De.type==="radio")&&(lt=aC);if(lt&&(lt=lt(a,pe))){$m(Pe,lt,f,Me);break e}Ct&&Ct(a,De,pe),a==="focusout"&&(Ct=De._wrapperState)&&Ct.controlled&&De.type==="number"&&_n(De,"number",De.value)}switch(Ct=pe?yu(pe):window,a){case"focusin":(lv(Ct)||Ct.contentEditable==="true")&&(pl=Ct,Es=pe,Fc=null);break;case"focusout":Fc=Es=pl=null;break;case"mousedown":dv=!0;break;case"contextmenu":case"mouseup":case"dragend":dv=!1,eg(Pe,f,Me);break;case"selectionchange":if(rd)break;case"keydown":case"keyup":eg(Pe,f,Me)}var rt;if(Qn)e:{switch(a){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else Ss?Um(a,f)&&(St="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(St="onCompositionStart");St&&(kc&&f.locale!=="ko"&&(Ss||St!=="onCompositionStart"?St==="onCompositionEnd"&&Ss&&(rt=X()):(Vi=Me,du="value"in Vi?Vi.value:Vi.textContent,Ss=!0)),Ct=sd(pe,St),0<Ct.length&&(St=new Lm(St,a,null,f,Me),Pe.push({event:St,listeners:Ct}),rt?St.data=rt:(rt=Hm(f),rt!==null&&(St.data=rt)))),(rt=sv?K0(a,f):eC(a,f))&&(pe=sd(pe,"onBeforeInput"),0<pe.length&&(Me=new Lm("onBeforeInput","beforeinput",null,f,Me),Pe.push({event:Me,listeners:pe}),Me.data=rt))}sg(Pe,o)})}function gu(a,o,f){return{instance:a,listener:o,currentTarget:f}}function sd(a,o){for(var f=o+"Capture",m=[];a!==null;){var S=a,w=S.stateNode;S.tag===5&&w!==null&&(S=w,w=Mi(a,f),w!=null&&m.unshift(gu(a,w,S)),w=Mi(a,o),w!=null&&m.push(gu(a,w,S))),a=a.return}return m}function vl(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function mv(a,o,f,m,S){for(var w=o._reactName,k=[];f!==null&&f!==m;){var W=f,Q=W.alternate,pe=W.stateNode;if(Q!==null&&Q===m)break;W.tag===5&&pe!==null&&(W=pe,S?(Q=Mi(f,w),Q!=null&&k.unshift(gu(f,Q,W))):S||(Q=Mi(f,w),Q!=null&&k.push(gu(f,Q,W)))),f=f.return}k.length!==0&&a.push({event:o,listeners:k})}var lg=/\r\n?/g,gv=/\u0000|\uFFFD/g;function ug(a){return(typeof a=="string"?a:""+a).replace(lg,`
|
|
94
|
-
`).replace(gv,"")}function Hc(a,o,f){if(o=ug(o),ug(a)!==o&&f)throw Error(i(425))}function ld(){}var yv=null,bv=null;function hl(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 $c=typeof setTimeout=="function"?setTimeout:void 0,Gc=typeof clearTimeout=="function"?clearTimeout:void 0,Cv=typeof Promise=="function"?Promise:void 0,cg=typeof queueMicrotask=="function"?queueMicrotask:typeof Cv<"u"?function(a){return Cv.resolve(null).then(a).catch(xv)}:$c;function xv(a){setTimeout(function(){throw a})}function Sv(a,o){var f=o,m=0;do{var S=f.nextSibling;if(a.removeChild(f),S&&S.nodeType===8)if(f=S.data,f==="/$"){if(m===0){a.removeChild(S),li(o);return}m--}else f!=="$"&&f!=="$?"&&f!=="$!"||m++;f=S}while(f);li(o)}function Ga(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 Wc(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 Bo=Math.random().toString(36).slice(2),ui="__reactFiber$"+Bo,Xc="__reactProps$"+Bo,zi="__reactContainer$"+Bo,Ev="__reactEvents$"+Bo,lC="__reactListeners$"+Bo,uC="__reactHandles$"+Bo;function zo(a){var o=a[ui];if(o)return o;for(var f=a.parentNode;f;){if(o=f[zi]||f[ui]){if(f=o.alternate,o.child!==null||f!==null&&f.child!==null)for(a=Wc(a);a!==null;){if(f=a[ui])return f;a=Wc(a)}return o}a=f,f=a.parentNode}return null}function ao(a){return a=a[ui]||a[zi],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function yu(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(i(33))}function ud(a){return a[Xc]||null}var ht=[],Ui=-1;function In(a){return{current:a}}function st(a){0>Ui||(a.current=ht[Ui],ht[Ui]=null,Ui--)}function tn(a,o){Ui++,ht[Ui]=a.current,a.current=o}var ci={},Nr=In(ci),Ot=In(!1),ra=ci;function Wa(a,o){var f=a.type.contextTypes;if(!f)return ci;var m=a.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===o)return m.__reactInternalMemoizedMaskedChildContext;var S={},w;for(w in f)S[w]=o[w];return m&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=o,a.__reactInternalMemoizedMaskedChildContext=S),S}function vr(a){return a=a.childContextTypes,a!=null}function wa(){st(Ot),st(Nr)}function io(a,o,f){if(Nr.current!==ci)throw Error(i(168));tn(Nr,o),tn(Ot,f)}function Rs(a,o,f){var m=a.stateNode;if(o=o.childContextTypes,typeof m.getChildContext!="function")return f;m=m.getChildContext();for(var S in m)if(!(S in o))throw Error(i(108,ve(a)||"Unknown",S));return G({},f,m)}function ml(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ci,ra=Nr.current,tn(Nr,a),tn(Ot,Ot.current),!0}function fg(a,o,f){var m=a.stateNode;if(!m)throw Error(i(169));f?(a=Rs(a,o,ra),m.__reactInternalMemoizedMergedChildContext=a,st(Ot),st(Nr),tn(Nr,a)):st(Ot),tn(Ot,f)}var Uo=null,Ts=!1,Lr=!1;function cd(a){Uo===null?Uo=[a]:Uo.push(a)}function dg(a){Ts=!0,cd(a)}function oo(){if(!Lr&&Uo!==null){Lr=!0;var a=0,o=Ht;try{var f=Uo;for(Ht=1;a<f.length;a++){var m=f[a];do m=m(!0);while(m!==null)}Uo=null,Ts=!1}catch(S){throw Uo!==null&&(Uo=Uo.slice(a+1)),An(bc,oo),S}finally{Ht=o,Lr=!1}}return null}var fi=[],Is=0,di=null,gl=0,Ra=[],Ta=0,Hi=null,Ia=1,Pr="";function yl(a,o){fi[Is++]=gl,fi[Is++]=di,di=a,gl=o}function Ns(a,o,f){Ra[Ta++]=Ia,Ra[Ta++]=Pr,Ra[Ta++]=Hi,Hi=a;var m=Ia;a=Pr;var S=32-na(m)-1;m&=~(1<<S),f+=1;var w=32-na(o)+S;if(30<w){var k=S-S%5;w=(m&(1<<k)-1).toString(32),m>>=k,S-=k,Ia=1<<32-na(o)+S|f<<S|m,Pr=w+a}else Ia=1<<w|f<<S|m,Pr=a}function fd(a){a.return!==null&&(yl(a,1),Ns(a,1,0))}function dd(a){for(;a===di;)di=fi[--Is],fi[Is]=null,gl=fi[--Is],fi[Is]=null;for(;a===Hi;)Hi=Ra[--Ta],Ra[Ta]=null,Pr=Ra[--Ta],Ra[Ta]=null,Ia=Ra[--Ta],Ra[Ta]=null}var Xa=null,Ya=null,Bn=!1,pi=null;function wv(a,o){var f=xi(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 Rv(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,Xa=a,Ya=Ga(o.firstChild),!0):!1;case 6:return o=a.pendingProps===""||o.nodeType!==3?null:o,o!==null?(a.stateNode=o,Xa=a,Ya=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(f=Hi!==null?{id:Ia,overflow:Pr}:null,a.memoizedState={dehydrated:o,treeContext:f,retryLane:1073741824},f=xi(18,null,null,0),f.stateNode=o,f.return=a,a.child=f,Xa=a,Ya=null,!0):!1;default:return!1}}function Tv(a){return(a.mode&1)!==0&&(a.flags&128)===0}function pd(a){if(Bn){var o=Ya;if(o){var f=o;if(!Rv(a,o)){if(Tv(a))throw Error(i(418));o=Ga(f.nextSibling);var m=Xa;o&&Rv(a,o)?wv(m,f):(a.flags=a.flags&-4097|2,Bn=!1,Xa=a)}}else{if(Tv(a))throw Error(i(418));a.flags=a.flags&-4097|2,Bn=!1,Xa=a}}}function Iv(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;Xa=a}function vd(a){if(a!==Xa)return!1;if(!Bn)return Iv(a),Bn=!0,!1;var o;if((o=a.tag!==3)&&!(o=a.tag!==5)&&(o=a.type,o=o!=="head"&&o!=="body"&&!hl(a.type,a.memoizedProps)),o&&(o=Ya)){if(Tv(a))throw pg(),Error(i(418));for(;o;)wv(a,o),o=Ga(o.nextSibling)}if(Iv(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){Ya=Ga(a.nextSibling);break e}o--}else f!=="$"&&f!=="$!"&&f!=="$?"||o++}a=a.nextSibling}Ya=null}}else Ya=Xa?Ga(a.stateNode.nextSibling):null;return!0}function pg(){for(var a=Ya;a;)a=Ga(a.nextSibling)}function bu(){Ya=Xa=null,Bn=!1}function hr(a){pi===null?pi=[a]:pi.push(a)}var cC=U.ReactCurrentBatchConfig;function Na(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 Cu=In(null),so=null,xu=null,Yc=null;function Nv(){Yc=xu=so=null}function _v(a){var o=Cu.current;st(Cu),a._currentValue=o}function _s(a,o,f){for(;a!==null;){var m=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,m!==null&&(m.childLanes|=o)):m!==null&&(m.childLanes&o)!==o&&(m.childLanes|=o),a===f)break;a=a.return}}function ir(a,o){so=a,Yc=xu=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&o&&(Aa=!0),a.firstContext=null)}function Ue(a){var o=a._currentValue;if(Yc!==a)if(a={context:a,memoizedValue:o,next:null},xu===null){if(so===null)throw Error(i(308));xu=a,so.dependencies={lanes:0,firstContext:a}}else xu=xu.next=a;return o}var Jr=null;function Za(a){Jr===null?Jr=[a]:Jr.push(a)}function vg(a,o,f,m){var S=o.interleaved;return S===null?(f.next=f,Za(o)):(f.next=S.next,S.next=f),o.interleaved=f,Ho(a,m)}function Ho(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 Ov(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hg(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 kn(a,o){return{eventTime:a,lane:o,tag:0,payload:null,callback:null,next:null}}function As(a,o,f){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,zt&2){var S=m.pending;return S===null?o.next=o:(o.next=S.next,S.next=o),m.pending=o,Ho(a,f)}return S=m.interleaved,S===null?(o.next=o,Za(m)):(o.next=S.next,S.next=o),m.interleaved=o,Ho(a,f)}function hd(a,o,f){if(o=o.updateQueue,o!==null&&(o=o.shared,(f&4194240)!==0)){var m=o.lanes;m&=a.pendingLanes,f|=m,o.lanes=f,Rc(a,f)}}function mg(a,o){var f=a.updateQueue,m=a.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var S=null,w=null;if(f=f.firstBaseUpdate,f!==null){do{var k={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};w===null?S=w=k:w=w.next=k,f=f.next}while(f!==null);w===null?S=w=o:w=w.next=o}else S=w=o;f={baseState:m.baseState,firstBaseUpdate:S,lastBaseUpdate:w,shared:m.shared,effects:m.effects},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=o:a.next=o,f.lastBaseUpdate=o}function Zc(a,o,f,m){var S=a.updateQueue;Os=!1;var w=S.firstBaseUpdate,k=S.lastBaseUpdate,W=S.shared.pending;if(W!==null){S.shared.pending=null;var Q=W,pe=Q.next;Q.next=null,k===null?w=pe:k.next=pe,k=Q;var Me=a.alternate;Me!==null&&(Me=Me.updateQueue,W=Me.lastBaseUpdate,W!==k&&(W===null?Me.firstBaseUpdate=pe:W.next=pe,Me.lastBaseUpdate=Q))}if(w!==null){var Pe=S.baseState;k=0,Me=pe=Q=null,W=w;do{var De=W.lane,Ye=W.eventTime;if((m&De)===De){Me!==null&&(Me=Me.next={eventTime:Ye,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var nt=a,ot=W;switch(De=o,Ye=f,ot.tag){case 1:if(nt=ot.payload,typeof nt=="function"){Pe=nt.call(Ye,Pe,De);break e}Pe=nt;break e;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=ot.payload,De=typeof nt=="function"?nt.call(Ye,Pe,De):nt,De==null)break e;Pe=G({},Pe,De);break e;case 2:Os=!0}}W.callback!==null&&W.lane!==0&&(a.flags|=64,De=S.effects,De===null?S.effects=[W]:De.push(W))}else Ye={eventTime:Ye,lane:De,tag:W.tag,payload:W.payload,callback:W.callback,next:null},Me===null?(pe=Me=Ye,Q=Pe):Me=Me.next=Ye,k|=De;if(W=W.next,W===null){if(W=S.shared.pending,W===null)break;De=W,W=De.next,De.next=null,S.lastBaseUpdate=De,S.shared.pending=null}}while(!0);if(Me===null&&(Q=Pe),S.baseState=Q,S.firstBaseUpdate=pe,S.lastBaseUpdate=Me,o=S.shared.interleaved,o!==null){S=o;do k|=S.lane,S=S.next;while(S!==o)}else w===null&&(S.shared.lanes=0);Ol|=k,a.lanes=k,a.memoizedState=Pe}}function Su(a,o,f){if(a=o.effects,o.effects=null,a!==null)for(o=0;o<a.length;o++){var m=a[o],S=m.callback;if(S!==null){if(m.callback=null,m=f,typeof S!="function")throw Error(i(191,S));S.call(m)}}}var bl=new n.Component().refs;function Av(a,o,f,m){o=a.memoizedState,f=f(m,o),f=f==null?o:G({},o,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var md={isMounted:function(a){return(a=a._reactInternals)?We(a)===a:!1},enqueueSetState:function(a,o,f){a=a._reactInternals;var m=Ar(),S=Xo(a),w=kn(m,S);w.payload=o,f!=null&&(w.callback=f),o=As(a,w,S),o!==null&&(Zn(o,a,S,m),hd(o,a,S))},enqueueReplaceState:function(a,o,f){a=a._reactInternals;var m=Ar(),S=Xo(a),w=kn(m,S);w.tag=1,w.payload=o,f!=null&&(w.callback=f),o=As(a,w,S),o!==null&&(Zn(o,a,S,m),hd(o,a,S))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var f=Ar(),m=Xo(a),S=kn(f,m);S.tag=2,o!=null&&(S.callback=o),o=As(a,S,m),o!==null&&(Zn(o,a,m,f),hd(o,a,m))}};function gg(a,o,f,m,S,w,k){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(m,w,k):o.prototype&&o.prototype.isPureReactComponent?!hu(f,m)||!hu(S,w):!0}function yg(a,o,f){var m=!1,S=ci,w=o.contextType;return typeof w=="object"&&w!==null?w=Ue(w):(S=vr(o)?ra:Nr.current,m=o.contextTypes,w=(m=m!=null)?Wa(a,S):ci),o=new o(f,w),a.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=md,a.stateNode=o,o._reactInternals=a,m&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=S,a.__reactInternalMemoizedMaskedChildContext=w),o}function bg(a,o,f,m){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(f,m),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(f,m),o.state!==a&&md.enqueueReplaceState(o,o.state,null)}function jv(a,o,f,m){var S=a.stateNode;S.props=f,S.state=a.memoizedState,S.refs=bl,Ov(a);var w=o.contextType;typeof w=="object"&&w!==null?S.context=Ue(w):(w=vr(o)?ra:Nr.current,S.context=Wa(a,w)),S.state=a.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(Av(a,o,w,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&&md.enqueueReplaceState(S,S.state,null),Zc(a,f,S,m),S.state=a.memoizedState),typeof S.componentDidMount=="function"&&(a.flags|=4194308)}function Eu(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 m=f.stateNode}if(!m)throw Error(i(147,a));var S=m,w=""+a;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===w?o.ref:(o=function(k){var W=S.refs;W===bl&&(W=S.refs={}),k===null?delete W[w]:W[w]=k},o._stringRef=w,o)}if(typeof a!="string")throw Error(i(284));if(!f._owner)throw Error(i(290,a))}return a}function Jc(a,o){throw a=Object.prototype.toString.call(o),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a))}function Cg(a){var o=a._init;return o(a._payload)}function xg(a){function o(ae,ee){if(a){var se=ae.deletions;se===null?(ae.deletions=[ee],ae.flags|=16):se.push(ee)}}function f(ae,ee){if(!a)return null;for(;ee!==null;)o(ae,ee),ee=ee.sibling;return null}function m(ae,ee){for(ae=new Map;ee!==null;)ee.key!==null?ae.set(ee.key,ee):ae.set(ee.index,ee),ee=ee.sibling;return ae}function S(ae,ee){return ae=Vs(ae,ee),ae.index=0,ae.sibling=null,ae}function w(ae,ee,se){return ae.index=se,a?(se=ae.alternate,se!==null?(se=se.index,se<ee?(ae.flags|=2,ee):se):(ae.flags|=2,ee)):(ae.flags|=1048576,ee)}function k(ae){return a&&ae.alternate===null&&(ae.flags|=2),ae}function W(ae,ee,se,ze){return ee===null||ee.tag!==6?(ee=qd(se,ae.mode,ze),ee.return=ae,ee):(ee=S(ee,se),ee.return=ae,ee)}function Q(ae,ee,se,ze){var lt=se.type;return lt===J?Me(ae,ee,se.props.children,ze,se.key):ee!==null&&(ee.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===je&&Cg(lt)===ee.type)?(ze=S(ee,se.props),ze.ref=Eu(ae,ee,se),ze.return=ae,ze):(ze=Zd(se.type,se.key,se.props,null,ae.mode,ze),ze.ref=Eu(ae,ee,se),ze.return=ae,ze)}function pe(ae,ee,se,ze){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==se.containerInfo||ee.stateNode.implementation!==se.implementation?(ee=mf(se,ae.mode,ze),ee.return=ae,ee):(ee=S(ee,se.children||[]),ee.return=ae,ee)}function Me(ae,ee,se,ze,lt){return ee===null||ee.tag!==7?(ee=kl(se,ae.mode,ze,lt),ee.return=ae,ee):(ee=S(ee,se),ee.return=ae,ee)}function Pe(ae,ee,se){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=qd(""+ee,ae.mode,se),ee.return=ae,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case z:return se=Zd(ee.type,ee.key,ee.props,null,ae.mode,se),se.ref=Eu(ae,null,ee),se.return=ae,se;case H:return ee=mf(ee,ae.mode,se),ee.return=ae,ee;case je:var ze=ee._init;return Pe(ae,ze(ee._payload),se)}if(Vt(ee)||_e(ee))return ee=kl(ee,ae.mode,se,null),ee.return=ae,ee;Jc(ae,ee)}return null}function De(ae,ee,se,ze){var lt=ee!==null?ee.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return lt!==null?null:W(ae,ee,""+se,ze);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case z:return se.key===lt?Q(ae,ee,se,ze):null;case H:return se.key===lt?pe(ae,ee,se,ze):null;case je:return lt=se._init,De(ae,ee,lt(se._payload),ze)}if(Vt(se)||_e(se))return lt!==null?null:Me(ae,ee,se,ze,null);Jc(ae,se)}return null}function Ye(ae,ee,se,ze,lt){if(typeof ze=="string"&&ze!==""||typeof ze=="number")return ae=ae.get(se)||null,W(ee,ae,""+ze,lt);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case z:return ae=ae.get(ze.key===null?se:ze.key)||null,Q(ee,ae,ze,lt);case H:return ae=ae.get(ze.key===null?se:ze.key)||null,pe(ee,ae,ze,lt);case je:var Ct=ze._init;return Ye(ae,ee,se,Ct(ze._payload),lt)}if(Vt(ze)||_e(ze))return ae=ae.get(se)||null,Me(ee,ae,ze,lt,null);Jc(ee,ze)}return null}function nt(ae,ee,se,ze){for(var lt=null,Ct=null,rt=ee,St=ee=0,Sr=null;rt!==null&&St<se.length;St++){rt.index>St?(Sr=rt,rt=null):Sr=rt.sibling;var nn=De(ae,rt,se[St],ze);if(nn===null){rt===null&&(rt=Sr);break}a&&rt&&nn.alternate===null&&o(ae,rt),ee=w(nn,ee,St),Ct===null?lt=nn:Ct.sibling=nn,Ct=nn,rt=Sr}if(St===se.length)return f(ae,rt),Bn&&yl(ae,St),lt;if(rt===null){for(;St<se.length;St++)rt=Pe(ae,se[St],ze),rt!==null&&(ee=w(rt,ee,St),Ct===null?lt=rt:Ct.sibling=rt,Ct=rt);return Bn&&yl(ae,St),lt}for(rt=m(ae,rt);St<se.length;St++)Sr=Ye(rt,ae,St,se[St],ze),Sr!==null&&(a&&Sr.alternate!==null&&rt.delete(Sr.key===null?St:Sr.key),ee=w(Sr,ee,St),Ct===null?lt=Sr:Ct.sibling=Sr,Ct=Sr);return a&&rt.forEach(function(Yo){return o(ae,Yo)}),Bn&&yl(ae,St),lt}function ot(ae,ee,se,ze){var lt=_e(se);if(typeof lt!="function")throw Error(i(150));if(se=lt.call(se),se==null)throw Error(i(151));for(var Ct=lt=null,rt=ee,St=ee=0,Sr=null,nn=se.next();rt!==null&&!nn.done;St++,nn=se.next()){rt.index>St?(Sr=rt,rt=null):Sr=rt.sibling;var Yo=De(ae,rt,nn.value,ze);if(Yo===null){rt===null&&(rt=Sr);break}a&&rt&&Yo.alternate===null&&o(ae,rt),ee=w(Yo,ee,St),Ct===null?lt=Yo:Ct.sibling=Yo,Ct=Yo,rt=Sr}if(nn.done)return f(ae,rt),Bn&&yl(ae,St),lt;if(rt===null){for(;!nn.done;St++,nn=se.next())nn=Pe(ae,nn.value,ze),nn!==null&&(ee=w(nn,ee,St),Ct===null?lt=nn:Ct.sibling=nn,Ct=nn);return Bn&&yl(ae,St),lt}for(rt=m(ae,rt);!nn.done;St++,nn=se.next())nn=Ye(rt,ae,St,nn.value,ze),nn!==null&&(a&&nn.alternate!==null&&rt.delete(nn.key===null?St:nn.key),ee=w(nn,ee,St),Ct===null?lt=nn:Ct.sibling=nn,Ct=nn);return a&&rt.forEach(function(_C){return o(ae,_C)}),Bn&&yl(ae,St),lt}function cr(ae,ee,se,ze){if(typeof se=="object"&&se!==null&&se.type===J&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case z:e:{for(var lt=se.key,Ct=ee;Ct!==null;){if(Ct.key===lt){if(lt=se.type,lt===J){if(Ct.tag===7){f(ae,Ct.sibling),ee=S(Ct,se.props.children),ee.return=ae,ae=ee;break e}}else if(Ct.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===je&&Cg(lt)===Ct.type){f(ae,Ct.sibling),ee=S(Ct,se.props),ee.ref=Eu(ae,Ct,se),ee.return=ae,ae=ee;break e}f(ae,Ct);break}else o(ae,Ct);Ct=Ct.sibling}se.type===J?(ee=kl(se.props.children,ae.mode,ze,se.key),ee.return=ae,ae=ee):(ze=Zd(se.type,se.key,se.props,null,ae.mode,ze),ze.ref=Eu(ae,ee,se),ze.return=ae,ae=ze)}return k(ae);case H:e:{for(Ct=se.key;ee!==null;){if(ee.key===Ct)if(ee.tag===4&&ee.stateNode.containerInfo===se.containerInfo&&ee.stateNode.implementation===se.implementation){f(ae,ee.sibling),ee=S(ee,se.children||[]),ee.return=ae,ae=ee;break e}else{f(ae,ee);break}else o(ae,ee);ee=ee.sibling}ee=mf(se,ae.mode,ze),ee.return=ae,ae=ee}return k(ae);case je:return Ct=se._init,cr(ae,ee,Ct(se._payload),ze)}if(Vt(se))return nt(ae,ee,se,ze);if(_e(se))return ot(ae,ee,se,ze);Jc(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,ee!==null&&ee.tag===6?(f(ae,ee.sibling),ee=S(ee,se),ee.return=ae,ae=ee):(f(ae,ee),ee=qd(se,ae.mode,ze),ee.return=ae,ae=ee),k(ae)):f(ae,ee)}return cr}var wu=xg(!0),Sg=xg(!1),qc={},lo=In(qc),Ru=In(qc),Qc=In(qc);function js(a){if(a===qc)throw Error(i(174));return a}function Dv(a,o){switch(tn(Qc,o),tn(Ru,a),tn(lo,qc),a=o.nodeType,a){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Pn(null,"");break;default:a=a===8?o.parentNode:o,o=a.namespaceURI||null,a=a.tagName,o=Pn(o,a)}st(lo),tn(lo,o)}function Tu(){st(lo),st(Ru),st(Qc)}function gd(a){js(Qc.current);var o=js(lo.current),f=Pn(o,a.type);o!==f&&(tn(Ru,a),tn(lo,f))}function mt(a){Ru.current===a&&(st(lo),st(Ru))}var ut=In(0);function Qt(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 Kn=[];function hi(){for(var a=0;a<Kn.length;a++)Kn[a]._workInProgressVersionPrimary=null;Kn.length=0}var Kc=U.ReactCurrentDispatcher,kv=U.ReactCurrentBatchConfig,Cl=0,Yn=null,or=null,Ee=null,sr=!1,bt=!1,uo=0,$o=0;function er(){throw Error(i(321))}function mi(a,o){if(o===null)return!1;for(var f=0;f<o.length&&f<a.length;f++)if(!Bi(a[f],o[f]))return!1;return!0}function xl(a,o,f,m,S,w){if(Cl=w,Yn=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Kc.current=a===null||a.memoizedState===null?fC:dC,a=f(m,S),bt){w=0;do{if(bt=!1,uo=0,25<=w)throw Error(i(301));w+=1,Ee=or=null,o.updateQueue=null,Kc.current=pC,a=f(m,S)}while(bt)}if(Kc.current=Ad,o=or!==null&&or.next!==null,Cl=0,Ee=or=Yn=null,sr=!1,o)throw Error(i(300));return a}function Ds(){var a=uo!==0;return uo=0,a}function _a(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?Yn.memoizedState=Ee=a:Ee=Ee.next=a,Ee}function Oa(){if(or===null){var a=Yn.alternate;a=a!==null?a.memoizedState:null}else a=or.next;var o=Ee===null?Yn.memoizedState:Ee.next;if(o!==null)Ee=o,or=a;else{if(a===null)throw Error(i(310));or=a,a={memoizedState:or.memoizedState,baseState:or.baseState,baseQueue:or.baseQueue,queue:or.queue,next:null},Ee===null?Yn.memoizedState=Ee=a:Ee=Ee.next=a}return Ee}function Sl(a,o){return typeof o=="function"?o(a):o}function ef(a){var o=Oa(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var m=or,S=m.baseQueue,w=f.pending;if(w!==null){if(S!==null){var k=S.next;S.next=w.next,w.next=k}m.baseQueue=S=w,f.pending=null}if(S!==null){w=S.next,m=m.baseState;var W=k=null,Q=null,pe=w;do{var Me=pe.lane;if((Cl&Me)===Me)Q!==null&&(Q=Q.next={lane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),m=pe.hasEagerState?pe.eagerState:a(m,pe.action);else{var Pe={lane:Me,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null};Q===null?(W=Q=Pe,k=m):Q=Q.next=Pe,Yn.lanes|=Me,Ol|=Me}pe=pe.next}while(pe!==null&&pe!==w);Q===null?k=m:Q.next=W,Bi(m,o.memoizedState)||(Aa=!0),o.memoizedState=m,o.baseState=k,o.baseQueue=Q,f.lastRenderedState=m}if(a=f.interleaved,a!==null){S=a;do w=S.lane,Yn.lanes|=w,Ol|=w,S=S.next;while(S!==a)}else S===null&&(f.lanes=0);return[o.memoizedState,f.dispatch]}function tf(a){var o=Oa(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var m=f.dispatch,S=f.pending,w=o.memoizedState;if(S!==null){f.pending=null;var k=S=S.next;do w=a(w,k.action),k=k.next;while(k!==S);Bi(w,o.memoizedState)||(Aa=!0),o.memoizedState=w,o.baseQueue===null&&(o.baseState=w),f.lastRenderedState=w}return[w,m]}function yd(){}function bd(a,o){var f=Yn,m=Oa(),S=o(),w=!Bi(m.memoizedState,S);if(w&&(m.memoizedState=S,Aa=!0),m=m.queue,nf(Sd.bind(null,f,m,a),[a]),m.getSnapshot!==o||w||Ee!==null&&Ee.memoizedState.tag&1){if(f.flags|=2048,El(9,xd.bind(null,f,m,S,o),void 0,null),nr===null)throw Error(i(349));Cl&30||Cd(f,o,S)}return S}function Cd(a,o,f){a.flags|=16384,a={getSnapshot:o,value:f},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.stores=[a]):(f=o.stores,f===null?o.stores=[a]:f.push(a))}function xd(a,o,f,m){o.value=f,o.getSnapshot=m,Ed(o)&&wd(a)}function Sd(a,o,f){return f(function(){Ed(o)&&wd(a)})}function Ed(a){var o=a.getSnapshot;a=a.value;try{var f=o();return!Bi(a,f)}catch{return!0}}function wd(a){var o=Ho(a,1);o!==null&&Zn(o,a,1,-1)}function Rd(a){var o=_a();return typeof a=="function"&&(a=a()),o.memoizedState=o.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:a},o.queue=a,a=a.dispatch=Od.bind(null,Yn,a),[o.memoizedState,a]}function El(a,o,f,m){return a={tag:a,create:o,destroy:f,deps:m,next:null},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.lastEffect=a.next=a):(f=o.lastEffect,f===null?o.lastEffect=a.next=a:(m=f.next,f.next=a,a.next=m,o.lastEffect=a)),a}function Td(){return Oa().memoizedState}function Iu(a,o,f,m){var S=_a();Yn.flags|=a,S.memoizedState=El(1|o,f,void 0,m===void 0?null:m)}function wl(a,o,f,m){var S=Oa();m=m===void 0?null:m;var w=void 0;if(or!==null){var k=or.memoizedState;if(w=k.destroy,m!==null&&mi(m,k.deps)){S.memoizedState=El(o,f,w,m);return}}Yn.flags|=a,S.memoizedState=El(1|o,f,w,m)}function Rl(a,o){return Iu(8390656,8,a,o)}function nf(a,o){return wl(2048,8,a,o)}function Id(a,o){return wl(4,2,a,o)}function Nd(a,o){return wl(4,4,a,o)}function _d(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 Mv(a,o,f){return f=f!=null?f.concat([a]):null,wl(4,4,_d.bind(null,o,a),f)}function Tl(){}function Lv(a,o){var f=Oa();o=o===void 0?null:o;var m=f.memoizedState;return m!==null&&o!==null&&mi(o,m[1])?m[0]:(f.memoizedState=[a,o],a)}function Nu(a,o){var f=Oa();o=o===void 0?null:o;var m=f.memoizedState;return m!==null&&o!==null&&mi(o,m[1])?m[0]:(a=a(),f.memoizedState=[a,o],a)}function ks(a,o,f){return Cl&21?(Bi(f,o)||(f=sl(),Yn.lanes|=f,Ol|=f,a.baseState=!0),o):(a.baseState&&(a.baseState=!1,Aa=!0),a.memoizedState=f)}function Ja(a,o){var f=Ht;Ht=f!==0&&4>f?f:4,a(!0);var m=kv.transition;kv.transition={};try{a(!1),o()}finally{Ht=f,kv.transition=m}}function Eg(){return Oa().memoizedState}function Mn(a,o,f){var m=Xo(a);if(f={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null},rf(a))_u(o,f);else if(f=vg(a,o,f,m),f!==null){var S=Ar();Zn(f,a,m,S),af(f,o,m)}}function Od(a,o,f){var m=Xo(a),S={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null};if(rf(a))_u(o,S);else{var w=a.alternate;if(a.lanes===0&&(w===null||w.lanes===0)&&(w=o.lastRenderedReducer,w!==null))try{var k=o.lastRenderedState,W=w(k,f);if(S.hasEagerState=!0,S.eagerState=W,Bi(W,k)){var Q=o.interleaved;Q===null?(S.next=S,Za(o)):(S.next=Q.next,Q.next=S),o.interleaved=S;return}}catch{}finally{}f=vg(a,o,S,m),f!==null&&(S=Ar(),Zn(f,a,m,S),af(f,o,m))}}function rf(a){var o=a.alternate;return a===Yn||o!==null&&o===Yn}function _u(a,o){bt=sr=!0;var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}function af(a,o,f){if(f&4194240){var m=o.lanes;m&=a.pendingLanes,f|=m,o.lanes=f,Rc(a,f)}}var Ad={readContext:Ue,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useInsertionEffect:er,useLayoutEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useMutableSource:er,useSyncExternalStore:er,useId:er,unstable_isNewReconciler:!1},fC={readContext:Ue,useCallback:function(a,o){return _a().memoizedState=[a,o===void 0?null:o],a},useContext:Ue,useEffect:Rl,useImperativeHandle:function(a,o,f){return f=f!=null?f.concat([a]):null,Iu(4194308,4,_d.bind(null,o,a),f)},useLayoutEffect:function(a,o){return Iu(4194308,4,a,o)},useInsertionEffect:function(a,o){return Iu(4,2,a,o)},useMemo:function(a,o){var f=_a();return o=o===void 0?null:o,a=a(),f.memoizedState=[a,o],a},useReducer:function(a,o,f){var m=_a();return o=f!==void 0?f(o):o,m.memoizedState=m.baseState=o,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:o},m.queue=a,a=a.dispatch=Mn.bind(null,Yn,a),[m.memoizedState,a]},useRef:function(a){var o=_a();return a={current:a},o.memoizedState=a},useState:Rd,useDebugValue:Tl,useDeferredValue:function(a){return _a().memoizedState=a},useTransition:function(){var a=Rd(!1),o=a[0];return a=Ja.bind(null,a[1]),_a().memoizedState=a,[o,a]},useMutableSource:function(){},useSyncExternalStore:function(a,o,f){var m=Yn,S=_a();if(Bn){if(f===void 0)throw Error(i(407));f=f()}else{if(f=o(),nr===null)throw Error(i(349));Cl&30||Cd(m,o,f)}S.memoizedState=f;var w={value:f,getSnapshot:o};return S.queue=w,Rl(Sd.bind(null,m,w,a),[a]),m.flags|=2048,El(9,xd.bind(null,m,w,f,o),void 0,null),f},useId:function(){var a=_a(),o=nr.identifierPrefix;if(Bn){var f=Pr,m=Ia;f=(m&~(1<<32-na(m)-1)).toString(32)+f,o=":"+o+"R"+f,f=uo++,0<f&&(o+="H"+f.toString(32)),o+=":"}else f=$o++,o=":"+o+"r"+f.toString(32)+":";return a.memoizedState=o},unstable_isNewReconciler:!1},dC={readContext:Ue,useCallback:Lv,useContext:Ue,useEffect:nf,useImperativeHandle:Mv,useInsertionEffect:Id,useLayoutEffect:Nd,useMemo:Nu,useReducer:ef,useRef:Td,useState:function(){return ef(Sl)},useDebugValue:Tl,useDeferredValue:function(a){var o=Oa();return ks(o,or.memoizedState,a)},useTransition:function(){var a=ef(Sl)[0],o=Oa().memoizedState;return[a,o]},useMutableSource:yd,useSyncExternalStore:bd,useId:Eg,unstable_isNewReconciler:!1},pC={readContext:Ue,useCallback:Lv,useContext:Ue,useEffect:nf,useImperativeHandle:Mv,useInsertionEffect:Id,useLayoutEffect:Nd,useMemo:Nu,useReducer:tf,useRef:Td,useState:function(){return tf(Sl)},useDebugValue:Tl,useDeferredValue:function(a){var o=Oa();return or===null?o.memoizedState=a:ks(o,or.memoizedState,a)},useTransition:function(){var a=tf(Sl)[0],o=Oa().memoizedState;return[a,o]},useMutableSource:yd,useSyncExternalStore:bd,useId:Eg,unstable_isNewReconciler:!1};function Ms(a,o){try{var f="",m=o;do f+=Ne(m),m=m.return;while(m);var S=f}catch(w){S=`
|
|
93
|
+
`+S[k].replace(" at new "," at ");return a.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",a.displayName)),Q}while(1<=k&&0<=W);break}}}finally{ye=!1,Error.prepareStackTrace=f}return(a=a?a.displayName||a.name:"")?re(a):""}function Ne(a){switch(a.tag){case 5:return re(a.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return a=Se(a.type,!1),a;case 11:return a=Se(a.type.render,!1),a;case 1:return a=Se(a.type,!0),a;default:return""}}function le(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 J:return"Fragment";case H:return"Portal";case Re:return"Profiler";case q:return"StrictMode";case Oe:return"Suspense";case Te:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case ge:return(a.displayName||"Context")+".Consumer";case he:return(a._context.displayName||"Context")+".Provider";case fe: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:le(a.type)||"Memo";case je:o=a._payload,a=a._init;try{return le(a(o))}catch{}}return null}function ve(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 le(o);case 8:return o===q?"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 we(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 et(a){var o=Ve(a)?"checked":"value",f=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),m=""+a[o];if(!a.hasOwnProperty(o)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var S=f.get,w=f.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return S.call(this)},set:function(k){m=""+k,w.call(this,k)}}),Object.defineProperty(a,o,{enumerable:f.enumerable}),{getValue:function(){return m},setValue:function(k){m=""+k},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function tt(a){a._valueTracker||(a._valueTracker=et(a))}function ft(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var f=o.getValue(),m="";return a&&(m=Ve(a)?a.checked?"true":"false":a.value),a=m,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 It(a,o){var f=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??a._wrapperState.initialChecked})}function pt(a,o){var f=o.defaultValue==null?"":o.defaultValue,m=o.checked!=null?o.checked:o.defaultChecked;f=we(o.value!=null?o.value:f),a._wrapperState={initialChecked:m,initialValue:f,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Kt(a,o){o=o.checked,o!=null&&F(a,"checked",o,!1)}function on(a,o){Kt(a,o);var f=we(o.value),m=o.type;if(f!=null)m==="number"?(f===0&&a.value===""||a.value!=f)&&(a.value=""+f):a.value!==""+f&&(a.value=""+f);else if(m==="submit"||m==="reset"){a.removeAttribute("value");return}o.hasOwnProperty("value")?_n(a,o.type,f):o.hasOwnProperty("defaultValue")&&_n(a,o.type,we(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(a.defaultChecked=!!o.defaultChecked)}function sn(a,o,f){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var m=o.type;if(!(m!=="submit"&&m!=="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 _n(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,m){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&&m&&(a[f].defaultSelected=!0)}else{for(f=""+we(f),o=null,S=0;S<a.length;S++){if(a[S].value===f){a[S].selected=!0,m&&(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 Rr(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:we(f)}}function $n(a,o){var f=we(o.value),m=we(o.defaultValue);f!=null&&(f=""+f,f!==a.value&&(a.value=f),o.defaultValue==null&&a.defaultValue!==f&&(a.defaultValue=f)),m!=null&&(a.defaultValue=""+m)}function Tr(a){var o=a.textContent;o===a._wrapperState.initialValue&&o!==""&&o!==null&&(a.value=o)}function xt(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 Pn(a,o){return a==null||a==="http://www.w3.org/1999/xhtml"?xt(o):a==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var ln,Ba=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,f,m,S){MSApp.execUnsafeLocalFunction(function(){return a(o,f,m,S)})}:a}(function(a,o){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=o;else{for(ln=ln||document.createElement("div"),ln.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=ln.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;o.firstChild;)a.appendChild(o.firstChild)}});function za(a,o){if(o){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=o;return}}a.textContent=o}var Ua={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},Ge=["Webkit","ms","Moz","O"];Object.keys(Ua).forEach(function(a){Ge.forEach(function(o){o=o+a.charAt(0).toUpperCase()+a.substring(1),Ua[o]=Ua[a]})});function dt(a,o,f){return o==null||typeof o=="boolean"||o===""?"":f||typeof o!="number"||o===0||Ua.hasOwnProperty(a)&&Ua[a]?(""+o).trim():o+"px"}function Mt(a,o){a=a.style;for(var f in o)if(o.hasOwnProperty(f)){var m=f.indexOf("--")===0,S=dt(f,o[f],m);f==="float"&&(f="cssFloat"),m?a.setProperty(f,S):a[f]=S}}var un=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 en(a,o){if(o){if(un[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 ar(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 Gn=null;function Xr(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var pn=null,Ir=null,cn=null;function On(a){if(a=ao(a)){if(typeof pn!="function")throw Error(i(280));var o=a.stateNode;o&&(o=ud(o),pn(a.stateNode,a.type,o))}}function ki(a){Ir?cn?cn.push(a):cn=[a]:Ir=a}function ai(){if(Ir){var a=Ir,o=cn;if(cn=Ir=null,On(a),o)for(a=0;a<o.length;a++)On(o[a])}}function ps(a,o){return a(o)}function rl(){}var al=!1;function vs(a,o,f){if(al)return a(o,f);al=!0;try{return ps(a,o,f)}finally{al=!1,(Ir!==null||cn!==null)&&(rl(),ai())}}function Mi(a,o){var f=a.stateNode;if(f===null)return null;var m=ud(f);if(m===null)return null;f=m[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":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(i(231,o,typeof f));return f}var Li=!1;if(v)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){Li=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Li=!1}function Io(a,o,f,m,S,w,k,W,Q){var pe=Array.prototype.slice.call(arguments,3);try{o.apply(f,pe)}catch(Me){this.onError(Me)}}var ga=!1,ya=null,Ha=!1,No=null,Z={onError:function(a){ga=!0,ya=a}};function ke(a,o,f,m,S,w,k,W,Q){ga=!1,ya=null,Io.apply(Z,arguments)}function He(a,o,f,m,S,w,k,W,Q){if(ke.apply(this,arguments),ga){if(ga){var pe=ya;ga=!1,ya=null}else throw Error(i(198));Ha||(Ha=!0,No=pe)}}function We(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 $t(a){if(We(a)!==a)throw Error(i(188))}function kt(a){var o=a.alternate;if(!o){if(o=We(a),o===null)throw Error(i(188));return o!==a?null:a}for(var f=a,m=o;;){var S=f.return;if(S===null)break;var w=S.alternate;if(w===null){if(m=S.return,m!==null){f=m;continue}break}if(S.child===w.child){for(w=S.child;w;){if(w===f)return $t(S),a;if(w===m)return $t(S),o;w=w.sibling}throw Error(i(188))}if(f.return!==m.return)f=S,m=w;else{for(var k=!1,W=S.child;W;){if(W===f){k=!0,f=S,m=w;break}if(W===m){k=!0,m=S,f=w;break}W=W.sibling}if(!k){for(W=w.child;W;){if(W===f){k=!0,f=w,m=S;break}if(W===m){k=!0,m=w,f=S;break}W=W.sibling}if(!k)throw Error(i(189))}}if(f.alternate!==m)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?pr(a):null}function pr(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var o=pr(a);if(o!==null)return o;a=a.sibling}return null}var An=r.unstable_scheduleCallback,jn=r.unstable_cancelCallback,Yr=r.unstable_shouldYield,Qi=r.unstable_requestPaint,Dn=r.unstable_now,ba=r.unstable_getCurrentPriorityLevel,bc=r.unstable_ImmediatePriority,Ki=r.unstable_UserBlockingPriority,Lt=r.unstable_NormalPriority,il=r.unstable_LowPriority,_o=r.unstable_IdlePriority,hs=null,Ca=null;function Cc(a){if(Ca&&typeof Ca.onCommitFiberRoot=="function")try{Ca.onCommitFiberRoot(hs,a,void 0,(a.current.flags&128)===128)}catch{}}var na=Math.clz32?Math.clz32:Ec,xc=Math.log,Sc=Math.LN2;function Ec(a){return a>>>=0,a===0?32:31-(xc(a)/Sc|0)|0}var ol=64,iu=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 eo(a,o){var f=a.pendingLanes;if(f===0)return 0;var m=0,S=a.suspendedLanes,w=a.pingedLanes,k=f&268435455;if(k!==0){var W=k&~S;W!==0?m=Oo(W):(w&=k,w!==0&&(m=Oo(w)))}else k=f&~S,k!==0?m=Oo(k):w!==0&&(m=Oo(w));if(m===0)return 0;if(o!==0&&o!==m&&!(o&S)&&(S=m&-m,w=o&-o,S>=w||S===16&&(w&4194240)!==0))return o;if(m&4&&(m|=f&16),o=a.entangledLanes,o!==0)for(a=a.entanglements,o&=m;0<o;)f=31-na(o),S=1<<f,m|=a[f],o&=~S;return m}function oi(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 ms(a,o){for(var f=a.suspendedLanes,m=a.pingedLanes,S=a.expirationTimes,w=a.pendingLanes;0<w;){var k=31-na(w),W=1<<k,Q=S[k];Q===-1?(!(W&f)||W&m)&&(S[k]=oi(W,o)):Q<=o&&(a.expiredLanes|=W),w&=~W}}function to(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function sl(){var a=ol;return ol<<=1,!(ol&4194240)&&(ol=64),a}function ll(a){for(var o=[],f=0;31>f;f++)o.push(a);return o}function gs(a,o,f){a.pendingLanes|=o,o!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,o=31-na(o),a[o]=f}function wc(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 m=a.eventTimes;for(a=a.expirationTimes;0<f;){var S=31-na(f),w=1<<S;o[S]=0,m[S]=-1,a[S]=-1,f&=~w}}function Rc(a,o){var f=a.entangledLanes|=o;for(a=a.entanglements;f;){var m=31-na(f),S=1<<m;S&o|a[m]&o&&(a[m]|=o),f&=~S}}var Ht=0;function Tc(a){return a&=-a,1<a?4<a?a&268435455?16:536870912:4:1}var ou,ys,Ic,Yt,su,ul=!1,Nt=[],Pi=null,Wn=null,xa=null,si=new Map,bs=new Map,Fn=[],Xn="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 Nc(a,o){switch(a){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":xa=null;break;case"pointerover":case"pointerout":si.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":bs.delete(o.pointerId)}}function Mr(a,o,f,m,S,w){return a===null||a.nativeEvent!==w?(a={blockedOn:o,domEventName:f,eventSystemFlags:m,nativeEvent:w,targetContainers:[S]},o!==null&&(o=ao(o),o!==null&&ys(o)),a):(a.eventSystemFlags|=m,o=a.targetContainers,S!==null&&o.indexOf(S)===-1&&o.push(S),a)}function Sa(a,o,f,m,S){switch(o){case"focusin":return Pi=Mr(Pi,a,o,f,m,S),!0;case"dragenter":return Wn=Mr(Wn,a,o,f,m,S),!0;case"mouseover":return xa=Mr(xa,a,o,f,m,S),!0;case"pointerover":var w=S.pointerId;return si.set(w,Mr(si.get(w)||null,a,o,f,m,S)),!0;case"gotpointercapture":return w=S.pointerId,bs.set(w,Mr(bs.get(w)||null,a,o,f,m,S)),!0}return!1}function Fi(a){var o=zo(a.target);if(o!==null){var f=We(o);if(f!==null){if(o=f.tag,o===13){if(o=Bt(f),o!==null){a.blockedOn=o,su(a.priority,function(){Ic(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 lu(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var f=fu(a.domEventName,a.eventSystemFlags,o[0],a.nativeEvent);if(f===null){f=a.nativeEvent;var m=new f.constructor(f.type,f);Gn=m,f.target.dispatchEvent(m),Gn=null}else return o=ao(f),o!==null&&ys(o),a.blockedOn=f,!1;o.shift()}return!0}function cl(a,o,f){lu(a)&&f.delete(o)}function fl(){ul=!1,Pi!==null&&lu(Pi)&&(Pi=null),Wn!==null&&lu(Wn)&&(Wn=null),xa!==null&&lu(xa)&&(xa=null),si.forEach(cl),bs.forEach(cl)}function Cs(a,o){a.blockedOn===o&&(a.blockedOn=null,ul||(ul=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,fl)))}function li(a){function o(S){return Cs(S,a)}if(0<Nt.length){Cs(Nt[0],a);for(var f=1;f<Nt.length;f++){var m=Nt[f];m.blockedOn===a&&(m.blockedOn=null)}}for(Pi!==null&&Cs(Pi,a),Wn!==null&&Cs(Wn,a),xa!==null&&Cs(xa,a),si.forEach(o),bs.forEach(o),f=0;f<Fn.length;f++)m=Fn[f],m.blockedOn===a&&(m.blockedOn=null);for(;0<Fn.length&&(f=Fn[0],f.blockedOn===null);)Fi(f),f.blockedOn===null&&Fn.shift()}var Ao=U.ReactCurrentBatchConfig,uu=!0;function jo(a,o,f,m){var S=Ht,w=Ao.transition;Ao.transition=null;try{Ht=1,no(a,o,f,m)}finally{Ht=S,Ao.transition=w}}function cu(a,o,f,m){var S=Ht,w=Ao.transition;Ao.transition=null;try{Ht=4,no(a,o,f,m)}finally{Ht=S,Ao.transition=w}}function no(a,o,f,m){if(uu){var S=fu(a,o,f,m);if(S===null)mv(a,o,m,Do,f),Nc(a,m);else if(Sa(S,a,o,f,m))m.stopPropagation();else if(Nc(a,m),o&4&&-1<Xn.indexOf(a)){for(;S!==null;){var w=ao(S);if(w!==null&&ou(w),w=fu(a,o,f,m),w===null&&mv(a,o,m,Do,f),w===S)break;S=w}S!==null&&m.stopPropagation()}else mv(a,o,m,null,f)}}var Do=null;function fu(a,o,f,m){if(Do=null,a=Xr(m),a=zo(a),a!==null)if(o=We(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 Do=a,null}function _c(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(ba()){case bc:return 1;case Ki:return 4;case Lt:case il:return 16;case _o:return 536870912;default:return 16}default:return 16}}var Vi=null,du=null,D=null;function X(){if(D)return D;var a,o=du,f=o.length,m,S="value"in Vi?Vi.value:Vi.textContent,w=S.length;for(a=0;a<f&&o[a]===S[a];a++);var k=f-a;for(m=1;m<=k&&o[f-m]===S[w-m];m++);return D=S.slice(a,1<m?1-m:void 0)}function ue(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 me(){return!0}function Be(){return!1}function it(a){function o(f,m,S,w,k){this._reactName=f,this._targetInst=S,this.type=m,this.nativeEvent=w,this.target=k,this.currentTarget=null;for(var W in a)a.hasOwnProperty(W)&&(f=a[W],this[W]=f?f(w):w[W]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?me:Be,this.isPropagationStopped=Be,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=me)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=me)},persist:function(){},isPersistent:me}),o}var Je={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wt=it(Je),Pt=G({},Je,{view:0,detail:0}),fn=it(Pt),vn,hn,mn,Vn=G({},Pt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kf,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!==mn&&(mn&&a.type==="mousemove"?(vn=a.screenX-mn.screenX,hn=a.screenY-mn.screenY):hn=vn=0,mn=a),vn)},movementY:function(a){return"movementY"in a?a.movementY:hn}}),Zt=it(Vn),xs=G({},Vn,{dataTransfer:0}),pu=it(xs),Oc=G({},Pt,{relatedTarget:0}),Ac=it(Oc),ko=G({},Je,{animationName:0,elapsedTime:0,pseudoElement:0}),jc=it(ko),Dc=G({},Je,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),av=it(Dc),Y0=G({},Je,{data:0}),Lm=it(Y0),Pm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iv={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"},Fm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vm(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Fm[a])?!!o[a]:!1}function Kf(){return Vm}var Z0=G({},Pt,{key:function(a){if(a.key){var o=Pm[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=ue(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?iv[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kf,charCode:function(a){return a.type==="keypress"?ue(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?ue(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Mo=it(Z0),J0=G({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ed=it(J0),ov=G({},Pt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kf}),sv=it(ov),q0=G({},Je,{propertyName:0,elapsedTime:0,pseudoElement:0}),td=it(q0),Bm=G({},Vn,{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}),Ea=it(Bm),Lo=[9,13,27,32],Qn=v&&"CompositionEvent"in window,$a=null;v&&"documentMode"in document&&($a=document.documentMode);var lv=v&&"TextEvent"in window&&!$a,kc=v&&(!Qn||$a&&8<$a&&11>=$a),zm=" ",vu=!1;function Um(a,o){switch(a){case"keyup":return Lo.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hm(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ss=!1;function Q0(a,o){switch(a){case"compositionend":return Hm(o);case"keypress":return o.which!==32?null:(vu=!0,zm);case"textInput":return a=o.data,a===zm&&vu?null:a;default:return null}}function K0(a,o){if(Ss)return a==="compositionend"||!Qn&&Um(a,o)?(a=X(),D=du=Vi=null,Ss=!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 kc&&o.locale!=="ko"?null:o.data;default:return null}}var eC={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 uv(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!eC[a.type]:o==="textarea"}function $m(a,o,f,m){ki(m),o=sd(o,"onChange"),0<o.length&&(f=new wt("onChange","change",null,f,m),a.push({event:f,listeners:o}))}var Mc=null,Lc=null;function Gm(a){sg(a,0)}function Po(a){var o=yu(a);if(ft(o))return a}function cv(a,o){if(a==="change")return o}var fv=!1;if(v){var nd;if(v){var dv="oninput"in document;if(!dv){var Wm=document.createElement("div");Wm.setAttribute("oninput","return;"),dv=typeof Wm.oninput=="function"}nd=dv}else nd=!1;fv=nd&&(!document.documentMode||9<document.documentMode)}function Xm(){Mc&&(Mc.detachEvent("onpropertychange",Ym),Lc=Mc=null)}function Ym(a){if(a.propertyName==="value"&&Po(Lc)){var o=[];$m(o,Lc,a,Xr(a)),vs(Gm,o)}}function tC(a,o,f){a==="focusin"?(Xm(),Mc=o,Lc=f,Mc.attachEvent("onpropertychange",Ym)):a==="focusout"&&Xm()}function nC(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Po(Lc)}function rC(a,o){if(a==="click")return Po(o)}function aC(a,o){if(a==="input"||a==="change")return Po(o)}function Zm(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Bi=typeof Object.is=="function"?Object.is:Zm;function hu(a,o){if(Bi(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var f=Object.keys(a),m=Object.keys(o);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var S=f[m];if(!y.call(o,S)||!Bi(a[S],o[S]))return!1}return!0}function Jm(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function qm(a,o){var f=Jm(a);a=0;for(var m;f;){if(f.nodeType===3){if(m=a+f.textContent.length,a<=o&&m>=o)return{node:f,offset:o-a};a=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=Jm(f)}}function Qm(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?Qm(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function Km(){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 Pc(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 dl(a){var o=Km(),f=a.focusedElem,m=a.selectionRange;if(o!==f&&f&&f.ownerDocument&&Qm(f.ownerDocument.documentElement,f)){if(m!==null&&Pc(f)){if(o=m.start,a=m.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,w=Math.min(m.start,S);m=m.end===void 0?w:Math.min(m.end,S),!a.extend&&w>m&&(S=m,m=w,w=S),S=qm(f,w);var k=qm(f,m);S&&k&&(a.rangeCount!==1||a.anchorNode!==S.node||a.anchorOffset!==S.offset||a.focusNode!==k.node||a.focusOffset!==k.offset)&&(o=o.createRange(),o.setStart(S.node,S.offset),a.removeAllRanges(),w>m?(a.addRange(o),a.extend(k.node,k.offset)):(o.setEnd(k.node,k.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 rd=v&&"documentMode"in document&&11>=document.documentMode,pl=null,Es=null,Fc=null,pv=!1;function eg(a,o,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;pv||pl==null||pl!==Ae(m)||(m=pl,"selectionStart"in m&&Pc(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Fc&&hu(Fc,m)||(Fc=m,m=sd(Es,"onSelect"),0<m.length&&(o=new wt("onSelect","select",null,o,f),a.push({event:o,listeners:m}),o.target=pl)))}function ad(a,o){var f={};return f[a.toLowerCase()]=o.toLowerCase(),f["Webkit"+a]="webkit"+o,f["Moz"+a]="moz"+o,f}var mu={animationend:ad("Animation","AnimationEnd"),animationiteration:ad("Animation","AnimationIteration"),animationstart:ad("Animation","AnimationStart"),transitionend:ad("Transition","TransitionEnd")},id={},tg={};v&&(tg=document.createElement("div").style,"AnimationEvent"in window||(delete mu.animationend.animation,delete mu.animationiteration.animation,delete mu.animationstart.animation),"TransitionEvent"in window||delete mu.transitionend.transition);function Vc(a){if(id[a])return id[a];if(!mu[a])return a;var o=mu[a],f;for(f in o)if(o.hasOwnProperty(f)&&f in tg)return id[a]=o[f];return a}var Zr=Vc("animationend"),vv=Vc("animationiteration"),ng=Vc("animationstart"),rg=Vc("transitionend"),ag=new Map,ig="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 ws(a,o){ag.set(a,o),d(o,[a])}for(var od=0;od<ig.length;od++){var Bc=ig[od],zc=Bc.toLowerCase(),iC=Bc[0].toUpperCase()+Bc.slice(1);ws(zc,"on"+iC)}ws(Zr,"onAnimationEnd"),ws(vv,"onAnimationIteration"),ws(ng,"onAnimationStart"),ws("dblclick","onDoubleClick"),ws("focusin","onFocus"),ws("focusout","onBlur"),ws(rg,"onTransitionEnd"),h("onMouseEnter",["mouseout","mouseover"]),h("onMouseLeave",["mouseout","mouseover"]),h("onPointerEnter",["pointerout","pointerover"]),h("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 Fo="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(" "),oC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fo));function og(a,o,f){var m=a.type||"unknown-event";a.currentTarget=f,He(m,o,void 0,a),a.currentTarget=null}function sg(a,o){o=(o&4)!==0;for(var f=0;f<a.length;f++){var m=a[f],S=m.event;m=m.listeners;e:{var w=void 0;if(o)for(var k=m.length-1;0<=k;k--){var W=m[k],Q=W.instance,pe=W.currentTarget;if(W=W.listener,Q!==w&&S.isPropagationStopped())break e;og(S,W,pe),w=Q}else for(k=0;k<m.length;k++){if(W=m[k],Q=W.instance,pe=W.currentTarget,W=W.listener,Q!==w&&S.isPropagationStopped())break e;og(S,W,pe),w=Q}}}if(Ha)throw a=No,Ha=!1,No=null,a}function Tn(a,o){var f=o[wv];f===void 0&&(f=o[wv]=new Set);var m=a+"__bubble";f.has(m)||(hv(o,a,2,!1),f.add(m))}function Uc(a,o,f){var m=0;o&&(m|=4),hv(f,a,m,o)}var Vo="_reactListening"+Math.random().toString(36).slice(2);function ro(a){if(!a[Vo]){a[Vo]=!0,u.forEach(function(f){f!=="selectionchange"&&(oC.has(f)||Uc(f,!1,a),Uc(f,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[Vo]||(o[Vo]=!0,Uc("selectionchange",!1,o))}}function hv(a,o,f,m){switch(_c(o)){case 1:var S=jo;break;case 4:S=cu;break;default:S=no}f=S.bind(null,o,f,a),S=void 0,!Li||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(S=!0),m?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 mv(a,o,f,m,S){var w=m;if(!(o&1)&&!(o&2)&&m!==null)e:for(;;){if(m===null)return;var k=m.tag;if(k===3||k===4){var W=m.stateNode.containerInfo;if(W===S||W.nodeType===8&&W.parentNode===S)break;if(k===4)for(k=m.return;k!==null;){var Q=k.tag;if((Q===3||Q===4)&&(Q=k.stateNode.containerInfo,Q===S||Q.nodeType===8&&Q.parentNode===S))return;k=k.return}for(;W!==null;){if(k=zo(W),k===null)return;if(Q=k.tag,Q===5||Q===6){m=w=k;continue e}W=W.parentNode}}m=m.return}vs(function(){var pe=w,Me=Xr(f),Pe=[];e:{var De=ag.get(a);if(De!==void 0){var Ye=wt,nt=a;switch(a){case"keypress":if(ue(f)===0)break e;case"keydown":case"keyup":Ye=Mo;break;case"focusin":nt="focus",Ye=Ac;break;case"focusout":nt="blur",Ye=Ac;break;case"beforeblur":case"afterblur":Ye=Ac;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":Ye=Zt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ye=pu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ye=sv;break;case Zr:case vv:case ng:Ye=jc;break;case rg:Ye=td;break;case"scroll":Ye=fn;break;case"wheel":Ye=Ea;break;case"copy":case"cut":case"paste":Ye=av;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ye=ed}var ot=(o&4)!==0,cr=!ot&&a==="scroll",ae=ot?De!==null?De+"Capture":null:De;ot=[];for(var ee=pe,se;ee!==null;){se=ee;var ze=se.stateNode;if(se.tag===5&&ze!==null&&(se=ze,ae!==null&&(ze=Mi(ee,ae),ze!=null&&ot.push(gu(ee,ze,se)))),cr)break;ee=ee.return}0<ot.length&&(De=new Ye(De,nt,null,f,Me),Pe.push({event:De,listeners:ot}))}}if(!(o&7)){e:{if(De=a==="mouseover"||a==="pointerover",Ye=a==="mouseout"||a==="pointerout",De&&f!==Gn&&(nt=f.relatedTarget||f.fromElement)&&(zo(nt)||nt[zi]))break e;if((Ye||De)&&(De=Me.window===Me?Me:(De=Me.ownerDocument)?De.defaultView||De.parentWindow:window,Ye?(nt=f.relatedTarget||f.toElement,Ye=pe,nt=nt?zo(nt):null,nt!==null&&(cr=We(nt),nt!==cr||nt.tag!==5&&nt.tag!==6)&&(nt=null)):(Ye=null,nt=pe),Ye!==nt)){if(ot=Zt,ze="onMouseLeave",ae="onMouseEnter",ee="mouse",(a==="pointerout"||a==="pointerover")&&(ot=ed,ze="onPointerLeave",ae="onPointerEnter",ee="pointer"),cr=Ye==null?De:yu(Ye),se=nt==null?De:yu(nt),De=new ot(ze,ee+"leave",Ye,f,Me),De.target=cr,De.relatedTarget=se,ze=null,zo(Me)===pe&&(ot=new ot(ae,ee+"enter",nt,f,Me),ot.target=se,ot.relatedTarget=cr,ze=ot),cr=ze,Ye&&nt)t:{for(ot=Ye,ae=nt,ee=0,se=ot;se;se=vl(se))ee++;for(se=0,ze=ae;ze;ze=vl(ze))se++;for(;0<ee-se;)ot=vl(ot),ee--;for(;0<se-ee;)ae=vl(ae),se--;for(;ee--;){if(ot===ae||ae!==null&&ot===ae.alternate)break t;ot=vl(ot),ae=vl(ae)}ot=null}else ot=null;Ye!==null&&gv(Pe,De,Ye,ot,!1),nt!==null&&cr!==null&&gv(Pe,cr,nt,ot,!0)}}e:{if(De=pe?yu(pe):window,Ye=De.nodeName&&De.nodeName.toLowerCase(),Ye==="select"||Ye==="input"&&De.type==="file")var lt=cv;else if(uv(De))if(fv)lt=aC;else{lt=nC;var Ct=tC}else(Ye=De.nodeName)&&Ye.toLowerCase()==="input"&&(De.type==="checkbox"||De.type==="radio")&&(lt=rC);if(lt&&(lt=lt(a,pe))){$m(Pe,lt,f,Me);break e}Ct&&Ct(a,De,pe),a==="focusout"&&(Ct=De._wrapperState)&&Ct.controlled&&De.type==="number"&&_n(De,"number",De.value)}switch(Ct=pe?yu(pe):window,a){case"focusin":(uv(Ct)||Ct.contentEditable==="true")&&(pl=Ct,Es=pe,Fc=null);break;case"focusout":Fc=Es=pl=null;break;case"mousedown":pv=!0;break;case"contextmenu":case"mouseup":case"dragend":pv=!1,eg(Pe,f,Me);break;case"selectionchange":if(rd)break;case"keydown":case"keyup":eg(Pe,f,Me)}var rt;if(Qn)e:{switch(a){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else Ss?Um(a,f)&&(St="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(St="onCompositionStart");St&&(kc&&f.locale!=="ko"&&(Ss||St!=="onCompositionStart"?St==="onCompositionEnd"&&Ss&&(rt=X()):(Vi=Me,du="value"in Vi?Vi.value:Vi.textContent,Ss=!0)),Ct=sd(pe,St),0<Ct.length&&(St=new Lm(St,a,null,f,Me),Pe.push({event:St,listeners:Ct}),rt?St.data=rt:(rt=Hm(f),rt!==null&&(St.data=rt)))),(rt=lv?Q0(a,f):K0(a,f))&&(pe=sd(pe,"onBeforeInput"),0<pe.length&&(Me=new Lm("onBeforeInput","beforeinput",null,f,Me),Pe.push({event:Me,listeners:pe}),Me.data=rt))}sg(Pe,o)})}function gu(a,o,f){return{instance:a,listener:o,currentTarget:f}}function sd(a,o){for(var f=o+"Capture",m=[];a!==null;){var S=a,w=S.stateNode;S.tag===5&&w!==null&&(S=w,w=Mi(a,f),w!=null&&m.unshift(gu(a,w,S)),w=Mi(a,o),w!=null&&m.push(gu(a,w,S))),a=a.return}return m}function vl(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function gv(a,o,f,m,S){for(var w=o._reactName,k=[];f!==null&&f!==m;){var W=f,Q=W.alternate,pe=W.stateNode;if(Q!==null&&Q===m)break;W.tag===5&&pe!==null&&(W=pe,S?(Q=Mi(f,w),Q!=null&&k.unshift(gu(f,Q,W))):S||(Q=Mi(f,w),Q!=null&&k.push(gu(f,Q,W)))),f=f.return}k.length!==0&&a.push({event:o,listeners:k})}var lg=/\r\n?/g,yv=/\u0000|\uFFFD/g;function ug(a){return(typeof a=="string"?a:""+a).replace(lg,`
|
|
94
|
+
`).replace(yv,"")}function Hc(a,o,f){if(o=ug(o),ug(a)!==o&&f)throw Error(i(425))}function ld(){}var bv=null,Cv=null;function hl(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 $c=typeof setTimeout=="function"?setTimeout:void 0,Gc=typeof clearTimeout=="function"?clearTimeout:void 0,xv=typeof Promise=="function"?Promise:void 0,cg=typeof queueMicrotask=="function"?queueMicrotask:typeof xv<"u"?function(a){return xv.resolve(null).then(a).catch(Sv)}:$c;function Sv(a){setTimeout(function(){throw a})}function Ev(a,o){var f=o,m=0;do{var S=f.nextSibling;if(a.removeChild(f),S&&S.nodeType===8)if(f=S.data,f==="/$"){if(m===0){a.removeChild(S),li(o);return}m--}else f!=="$"&&f!=="$?"&&f!=="$!"||m++;f=S}while(f);li(o)}function Ga(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 Wc(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 Bo=Math.random().toString(36).slice(2),ui="__reactFiber$"+Bo,Xc="__reactProps$"+Bo,zi="__reactContainer$"+Bo,wv="__reactEvents$"+Bo,sC="__reactListeners$"+Bo,lC="__reactHandles$"+Bo;function zo(a){var o=a[ui];if(o)return o;for(var f=a.parentNode;f;){if(o=f[zi]||f[ui]){if(f=o.alternate,o.child!==null||f!==null&&f.child!==null)for(a=Wc(a);a!==null;){if(f=a[ui])return f;a=Wc(a)}return o}a=f,f=a.parentNode}return null}function ao(a){return a=a[ui]||a[zi],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function yu(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(i(33))}function ud(a){return a[Xc]||null}var ht=[],Ui=-1;function In(a){return{current:a}}function st(a){0>Ui||(a.current=ht[Ui],ht[Ui]=null,Ui--)}function tn(a,o){Ui++,ht[Ui]=a.current,a.current=o}var ci={},Nr=In(ci),Ot=In(!1),ra=ci;function Wa(a,o){var f=a.type.contextTypes;if(!f)return ci;var m=a.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===o)return m.__reactInternalMemoizedMaskedChildContext;var S={},w;for(w in f)S[w]=o[w];return m&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=o,a.__reactInternalMemoizedMaskedChildContext=S),S}function vr(a){return a=a.childContextTypes,a!=null}function wa(){st(Ot),st(Nr)}function io(a,o,f){if(Nr.current!==ci)throw Error(i(168));tn(Nr,o),tn(Ot,f)}function Rs(a,o,f){var m=a.stateNode;if(o=o.childContextTypes,typeof m.getChildContext!="function")return f;m=m.getChildContext();for(var S in m)if(!(S in o))throw Error(i(108,ve(a)||"Unknown",S));return G({},f,m)}function ml(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ci,ra=Nr.current,tn(Nr,a),tn(Ot,Ot.current),!0}function fg(a,o,f){var m=a.stateNode;if(!m)throw Error(i(169));f?(a=Rs(a,o,ra),m.__reactInternalMemoizedMergedChildContext=a,st(Ot),st(Nr),tn(Nr,a)):st(Ot),tn(Ot,f)}var Uo=null,Ts=!1,Lr=!1;function cd(a){Uo===null?Uo=[a]:Uo.push(a)}function dg(a){Ts=!0,cd(a)}function oo(){if(!Lr&&Uo!==null){Lr=!0;var a=0,o=Ht;try{var f=Uo;for(Ht=1;a<f.length;a++){var m=f[a];do m=m(!0);while(m!==null)}Uo=null,Ts=!1}catch(S){throw Uo!==null&&(Uo=Uo.slice(a+1)),An(bc,oo),S}finally{Ht=o,Lr=!1}}return null}var fi=[],Is=0,di=null,gl=0,Ra=[],Ta=0,Hi=null,Ia=1,Pr="";function yl(a,o){fi[Is++]=gl,fi[Is++]=di,di=a,gl=o}function Ns(a,o,f){Ra[Ta++]=Ia,Ra[Ta++]=Pr,Ra[Ta++]=Hi,Hi=a;var m=Ia;a=Pr;var S=32-na(m)-1;m&=~(1<<S),f+=1;var w=32-na(o)+S;if(30<w){var k=S-S%5;w=(m&(1<<k)-1).toString(32),m>>=k,S-=k,Ia=1<<32-na(o)+S|f<<S|m,Pr=w+a}else Ia=1<<w|f<<S|m,Pr=a}function fd(a){a.return!==null&&(yl(a,1),Ns(a,1,0))}function dd(a){for(;a===di;)di=fi[--Is],fi[Is]=null,gl=fi[--Is],fi[Is]=null;for(;a===Hi;)Hi=Ra[--Ta],Ra[Ta]=null,Pr=Ra[--Ta],Ra[Ta]=null,Ia=Ra[--Ta],Ra[Ta]=null}var Xa=null,Ya=null,Bn=!1,pi=null;function Rv(a,o){var f=xi(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 Tv(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,Xa=a,Ya=Ga(o.firstChild),!0):!1;case 6:return o=a.pendingProps===""||o.nodeType!==3?null:o,o!==null?(a.stateNode=o,Xa=a,Ya=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(f=Hi!==null?{id:Ia,overflow:Pr}:null,a.memoizedState={dehydrated:o,treeContext:f,retryLane:1073741824},f=xi(18,null,null,0),f.stateNode=o,f.return=a,a.child=f,Xa=a,Ya=null,!0):!1;default:return!1}}function Iv(a){return(a.mode&1)!==0&&(a.flags&128)===0}function pd(a){if(Bn){var o=Ya;if(o){var f=o;if(!Tv(a,o)){if(Iv(a))throw Error(i(418));o=Ga(f.nextSibling);var m=Xa;o&&Tv(a,o)?Rv(m,f):(a.flags=a.flags&-4097|2,Bn=!1,Xa=a)}}else{if(Iv(a))throw Error(i(418));a.flags=a.flags&-4097|2,Bn=!1,Xa=a}}}function Nv(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;Xa=a}function vd(a){if(a!==Xa)return!1;if(!Bn)return Nv(a),Bn=!0,!1;var o;if((o=a.tag!==3)&&!(o=a.tag!==5)&&(o=a.type,o=o!=="head"&&o!=="body"&&!hl(a.type,a.memoizedProps)),o&&(o=Ya)){if(Iv(a))throw pg(),Error(i(418));for(;o;)Rv(a,o),o=Ga(o.nextSibling)}if(Nv(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){Ya=Ga(a.nextSibling);break e}o--}else f!=="$"&&f!=="$!"&&f!=="$?"||o++}a=a.nextSibling}Ya=null}}else Ya=Xa?Ga(a.stateNode.nextSibling):null;return!0}function pg(){for(var a=Ya;a;)a=Ga(a.nextSibling)}function bu(){Ya=Xa=null,Bn=!1}function hr(a){pi===null?pi=[a]:pi.push(a)}var uC=U.ReactCurrentBatchConfig;function Na(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 Cu=In(null),so=null,xu=null,Yc=null;function _v(){Yc=xu=so=null}function Ov(a){var o=Cu.current;st(Cu),a._currentValue=o}function _s(a,o,f){for(;a!==null;){var m=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,m!==null&&(m.childLanes|=o)):m!==null&&(m.childLanes&o)!==o&&(m.childLanes|=o),a===f)break;a=a.return}}function ir(a,o){so=a,Yc=xu=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&o&&(Aa=!0),a.firstContext=null)}function Ue(a){var o=a._currentValue;if(Yc!==a)if(a={context:a,memoizedValue:o,next:null},xu===null){if(so===null)throw Error(i(308));xu=a,so.dependencies={lanes:0,firstContext:a}}else xu=xu.next=a;return o}var Jr=null;function Za(a){Jr===null?Jr=[a]:Jr.push(a)}function vg(a,o,f,m){var S=o.interleaved;return S===null?(f.next=f,Za(o)):(f.next=S.next,S.next=f),o.interleaved=f,Ho(a,m)}function Ho(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 Av(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hg(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 kn(a,o){return{eventTime:a,lane:o,tag:0,payload:null,callback:null,next:null}}function As(a,o,f){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,zt&2){var S=m.pending;return S===null?o.next=o:(o.next=S.next,S.next=o),m.pending=o,Ho(a,f)}return S=m.interleaved,S===null?(o.next=o,Za(m)):(o.next=S.next,S.next=o),m.interleaved=o,Ho(a,f)}function hd(a,o,f){if(o=o.updateQueue,o!==null&&(o=o.shared,(f&4194240)!==0)){var m=o.lanes;m&=a.pendingLanes,f|=m,o.lanes=f,Rc(a,f)}}function mg(a,o){var f=a.updateQueue,m=a.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var S=null,w=null;if(f=f.firstBaseUpdate,f!==null){do{var k={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};w===null?S=w=k:w=w.next=k,f=f.next}while(f!==null);w===null?S=w=o:w=w.next=o}else S=w=o;f={baseState:m.baseState,firstBaseUpdate:S,lastBaseUpdate:w,shared:m.shared,effects:m.effects},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=o:a.next=o,f.lastBaseUpdate=o}function Zc(a,o,f,m){var S=a.updateQueue;Os=!1;var w=S.firstBaseUpdate,k=S.lastBaseUpdate,W=S.shared.pending;if(W!==null){S.shared.pending=null;var Q=W,pe=Q.next;Q.next=null,k===null?w=pe:k.next=pe,k=Q;var Me=a.alternate;Me!==null&&(Me=Me.updateQueue,W=Me.lastBaseUpdate,W!==k&&(W===null?Me.firstBaseUpdate=pe:W.next=pe,Me.lastBaseUpdate=Q))}if(w!==null){var Pe=S.baseState;k=0,Me=pe=Q=null,W=w;do{var De=W.lane,Ye=W.eventTime;if((m&De)===De){Me!==null&&(Me=Me.next={eventTime:Ye,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var nt=a,ot=W;switch(De=o,Ye=f,ot.tag){case 1:if(nt=ot.payload,typeof nt=="function"){Pe=nt.call(Ye,Pe,De);break e}Pe=nt;break e;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=ot.payload,De=typeof nt=="function"?nt.call(Ye,Pe,De):nt,De==null)break e;Pe=G({},Pe,De);break e;case 2:Os=!0}}W.callback!==null&&W.lane!==0&&(a.flags|=64,De=S.effects,De===null?S.effects=[W]:De.push(W))}else Ye={eventTime:Ye,lane:De,tag:W.tag,payload:W.payload,callback:W.callback,next:null},Me===null?(pe=Me=Ye,Q=Pe):Me=Me.next=Ye,k|=De;if(W=W.next,W===null){if(W=S.shared.pending,W===null)break;De=W,W=De.next,De.next=null,S.lastBaseUpdate=De,S.shared.pending=null}}while(!0);if(Me===null&&(Q=Pe),S.baseState=Q,S.firstBaseUpdate=pe,S.lastBaseUpdate=Me,o=S.shared.interleaved,o!==null){S=o;do k|=S.lane,S=S.next;while(S!==o)}else w===null&&(S.shared.lanes=0);Ol|=k,a.lanes=k,a.memoizedState=Pe}}function Su(a,o,f){if(a=o.effects,o.effects=null,a!==null)for(o=0;o<a.length;o++){var m=a[o],S=m.callback;if(S!==null){if(m.callback=null,m=f,typeof S!="function")throw Error(i(191,S));S.call(m)}}}var bl=new n.Component().refs;function jv(a,o,f,m){o=a.memoizedState,f=f(m,o),f=f==null?o:G({},o,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var md={isMounted:function(a){return(a=a._reactInternals)?We(a)===a:!1},enqueueSetState:function(a,o,f){a=a._reactInternals;var m=Ar(),S=Xo(a),w=kn(m,S);w.payload=o,f!=null&&(w.callback=f),o=As(a,w,S),o!==null&&(Zn(o,a,S,m),hd(o,a,S))},enqueueReplaceState:function(a,o,f){a=a._reactInternals;var m=Ar(),S=Xo(a),w=kn(m,S);w.tag=1,w.payload=o,f!=null&&(w.callback=f),o=As(a,w,S),o!==null&&(Zn(o,a,S,m),hd(o,a,S))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var f=Ar(),m=Xo(a),S=kn(f,m);S.tag=2,o!=null&&(S.callback=o),o=As(a,S,m),o!==null&&(Zn(o,a,m,f),hd(o,a,m))}};function gg(a,o,f,m,S,w,k){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(m,w,k):o.prototype&&o.prototype.isPureReactComponent?!hu(f,m)||!hu(S,w):!0}function yg(a,o,f){var m=!1,S=ci,w=o.contextType;return typeof w=="object"&&w!==null?w=Ue(w):(S=vr(o)?ra:Nr.current,m=o.contextTypes,w=(m=m!=null)?Wa(a,S):ci),o=new o(f,w),a.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=md,a.stateNode=o,o._reactInternals=a,m&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=S,a.__reactInternalMemoizedMaskedChildContext=w),o}function bg(a,o,f,m){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(f,m),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(f,m),o.state!==a&&md.enqueueReplaceState(o,o.state,null)}function Dv(a,o,f,m){var S=a.stateNode;S.props=f,S.state=a.memoizedState,S.refs=bl,Av(a);var w=o.contextType;typeof w=="object"&&w!==null?S.context=Ue(w):(w=vr(o)?ra:Nr.current,S.context=Wa(a,w)),S.state=a.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(jv(a,o,w,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&&md.enqueueReplaceState(S,S.state,null),Zc(a,f,S,m),S.state=a.memoizedState),typeof S.componentDidMount=="function"&&(a.flags|=4194308)}function Eu(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 m=f.stateNode}if(!m)throw Error(i(147,a));var S=m,w=""+a;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===w?o.ref:(o=function(k){var W=S.refs;W===bl&&(W=S.refs={}),k===null?delete W[w]:W[w]=k},o._stringRef=w,o)}if(typeof a!="string")throw Error(i(284));if(!f._owner)throw Error(i(290,a))}return a}function Jc(a,o){throw a=Object.prototype.toString.call(o),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a))}function Cg(a){var o=a._init;return o(a._payload)}function xg(a){function o(ae,ee){if(a){var se=ae.deletions;se===null?(ae.deletions=[ee],ae.flags|=16):se.push(ee)}}function f(ae,ee){if(!a)return null;for(;ee!==null;)o(ae,ee),ee=ee.sibling;return null}function m(ae,ee){for(ae=new Map;ee!==null;)ee.key!==null?ae.set(ee.key,ee):ae.set(ee.index,ee),ee=ee.sibling;return ae}function S(ae,ee){return ae=Vs(ae,ee),ae.index=0,ae.sibling=null,ae}function w(ae,ee,se){return ae.index=se,a?(se=ae.alternate,se!==null?(se=se.index,se<ee?(ae.flags|=2,ee):se):(ae.flags|=2,ee)):(ae.flags|=1048576,ee)}function k(ae){return a&&ae.alternate===null&&(ae.flags|=2),ae}function W(ae,ee,se,ze){return ee===null||ee.tag!==6?(ee=qd(se,ae.mode,ze),ee.return=ae,ee):(ee=S(ee,se),ee.return=ae,ee)}function Q(ae,ee,se,ze){var lt=se.type;return lt===J?Me(ae,ee,se.props.children,ze,se.key):ee!==null&&(ee.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===je&&Cg(lt)===ee.type)?(ze=S(ee,se.props),ze.ref=Eu(ae,ee,se),ze.return=ae,ze):(ze=Zd(se.type,se.key,se.props,null,ae.mode,ze),ze.ref=Eu(ae,ee,se),ze.return=ae,ze)}function pe(ae,ee,se,ze){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==se.containerInfo||ee.stateNode.implementation!==se.implementation?(ee=mf(se,ae.mode,ze),ee.return=ae,ee):(ee=S(ee,se.children||[]),ee.return=ae,ee)}function Me(ae,ee,se,ze,lt){return ee===null||ee.tag!==7?(ee=kl(se,ae.mode,ze,lt),ee.return=ae,ee):(ee=S(ee,se),ee.return=ae,ee)}function Pe(ae,ee,se){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=qd(""+ee,ae.mode,se),ee.return=ae,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case z:return se=Zd(ee.type,ee.key,ee.props,null,ae.mode,se),se.ref=Eu(ae,null,ee),se.return=ae,se;case H:return ee=mf(ee,ae.mode,se),ee.return=ae,ee;case je:var ze=ee._init;return Pe(ae,ze(ee._payload),se)}if(Vt(ee)||_e(ee))return ee=kl(ee,ae.mode,se,null),ee.return=ae,ee;Jc(ae,ee)}return null}function De(ae,ee,se,ze){var lt=ee!==null?ee.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return lt!==null?null:W(ae,ee,""+se,ze);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case z:return se.key===lt?Q(ae,ee,se,ze):null;case H:return se.key===lt?pe(ae,ee,se,ze):null;case je:return lt=se._init,De(ae,ee,lt(se._payload),ze)}if(Vt(se)||_e(se))return lt!==null?null:Me(ae,ee,se,ze,null);Jc(ae,se)}return null}function Ye(ae,ee,se,ze,lt){if(typeof ze=="string"&&ze!==""||typeof ze=="number")return ae=ae.get(se)||null,W(ee,ae,""+ze,lt);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case z:return ae=ae.get(ze.key===null?se:ze.key)||null,Q(ee,ae,ze,lt);case H:return ae=ae.get(ze.key===null?se:ze.key)||null,pe(ee,ae,ze,lt);case je:var Ct=ze._init;return Ye(ae,ee,se,Ct(ze._payload),lt)}if(Vt(ze)||_e(ze))return ae=ae.get(se)||null,Me(ee,ae,ze,lt,null);Jc(ee,ze)}return null}function nt(ae,ee,se,ze){for(var lt=null,Ct=null,rt=ee,St=ee=0,Sr=null;rt!==null&&St<se.length;St++){rt.index>St?(Sr=rt,rt=null):Sr=rt.sibling;var nn=De(ae,rt,se[St],ze);if(nn===null){rt===null&&(rt=Sr);break}a&&rt&&nn.alternate===null&&o(ae,rt),ee=w(nn,ee,St),Ct===null?lt=nn:Ct.sibling=nn,Ct=nn,rt=Sr}if(St===se.length)return f(ae,rt),Bn&&yl(ae,St),lt;if(rt===null){for(;St<se.length;St++)rt=Pe(ae,se[St],ze),rt!==null&&(ee=w(rt,ee,St),Ct===null?lt=rt:Ct.sibling=rt,Ct=rt);return Bn&&yl(ae,St),lt}for(rt=m(ae,rt);St<se.length;St++)Sr=Ye(rt,ae,St,se[St],ze),Sr!==null&&(a&&Sr.alternate!==null&&rt.delete(Sr.key===null?St:Sr.key),ee=w(Sr,ee,St),Ct===null?lt=Sr:Ct.sibling=Sr,Ct=Sr);return a&&rt.forEach(function(Yo){return o(ae,Yo)}),Bn&&yl(ae,St),lt}function ot(ae,ee,se,ze){var lt=_e(se);if(typeof lt!="function")throw Error(i(150));if(se=lt.call(se),se==null)throw Error(i(151));for(var Ct=lt=null,rt=ee,St=ee=0,Sr=null,nn=se.next();rt!==null&&!nn.done;St++,nn=se.next()){rt.index>St?(Sr=rt,rt=null):Sr=rt.sibling;var Yo=De(ae,rt,nn.value,ze);if(Yo===null){rt===null&&(rt=Sr);break}a&&rt&&Yo.alternate===null&&o(ae,rt),ee=w(Yo,ee,St),Ct===null?lt=Yo:Ct.sibling=Yo,Ct=Yo,rt=Sr}if(nn.done)return f(ae,rt),Bn&&yl(ae,St),lt;if(rt===null){for(;!nn.done;St++,nn=se.next())nn=Pe(ae,nn.value,ze),nn!==null&&(ee=w(nn,ee,St),Ct===null?lt=nn:Ct.sibling=nn,Ct=nn);return Bn&&yl(ae,St),lt}for(rt=m(ae,rt);!nn.done;St++,nn=se.next())nn=Ye(rt,ae,St,nn.value,ze),nn!==null&&(a&&nn.alternate!==null&&rt.delete(nn.key===null?St:nn.key),ee=w(nn,ee,St),Ct===null?lt=nn:Ct.sibling=nn,Ct=nn);return a&&rt.forEach(function(NC){return o(ae,NC)}),Bn&&yl(ae,St),lt}function cr(ae,ee,se,ze){if(typeof se=="object"&&se!==null&&se.type===J&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case z:e:{for(var lt=se.key,Ct=ee;Ct!==null;){if(Ct.key===lt){if(lt=se.type,lt===J){if(Ct.tag===7){f(ae,Ct.sibling),ee=S(Ct,se.props.children),ee.return=ae,ae=ee;break e}}else if(Ct.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===je&&Cg(lt)===Ct.type){f(ae,Ct.sibling),ee=S(Ct,se.props),ee.ref=Eu(ae,Ct,se),ee.return=ae,ae=ee;break e}f(ae,Ct);break}else o(ae,Ct);Ct=Ct.sibling}se.type===J?(ee=kl(se.props.children,ae.mode,ze,se.key),ee.return=ae,ae=ee):(ze=Zd(se.type,se.key,se.props,null,ae.mode,ze),ze.ref=Eu(ae,ee,se),ze.return=ae,ae=ze)}return k(ae);case H:e:{for(Ct=se.key;ee!==null;){if(ee.key===Ct)if(ee.tag===4&&ee.stateNode.containerInfo===se.containerInfo&&ee.stateNode.implementation===se.implementation){f(ae,ee.sibling),ee=S(ee,se.children||[]),ee.return=ae,ae=ee;break e}else{f(ae,ee);break}else o(ae,ee);ee=ee.sibling}ee=mf(se,ae.mode,ze),ee.return=ae,ae=ee}return k(ae);case je:return Ct=se._init,cr(ae,ee,Ct(se._payload),ze)}if(Vt(se))return nt(ae,ee,se,ze);if(_e(se))return ot(ae,ee,se,ze);Jc(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,ee!==null&&ee.tag===6?(f(ae,ee.sibling),ee=S(ee,se),ee.return=ae,ae=ee):(f(ae,ee),ee=qd(se,ae.mode,ze),ee.return=ae,ae=ee),k(ae)):f(ae,ee)}return cr}var wu=xg(!0),Sg=xg(!1),qc={},lo=In(qc),Ru=In(qc),Qc=In(qc);function js(a){if(a===qc)throw Error(i(174));return a}function kv(a,o){switch(tn(Qc,o),tn(Ru,a),tn(lo,qc),a=o.nodeType,a){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Pn(null,"");break;default:a=a===8?o.parentNode:o,o=a.namespaceURI||null,a=a.tagName,o=Pn(o,a)}st(lo),tn(lo,o)}function Tu(){st(lo),st(Ru),st(Qc)}function gd(a){js(Qc.current);var o=js(lo.current),f=Pn(o,a.type);o!==f&&(tn(Ru,a),tn(lo,f))}function mt(a){Ru.current===a&&(st(lo),st(Ru))}var ut=In(0);function Qt(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 Kn=[];function hi(){for(var a=0;a<Kn.length;a++)Kn[a]._workInProgressVersionPrimary=null;Kn.length=0}var Kc=U.ReactCurrentDispatcher,Mv=U.ReactCurrentBatchConfig,Cl=0,Yn=null,or=null,Ee=null,sr=!1,bt=!1,uo=0,$o=0;function er(){throw Error(i(321))}function mi(a,o){if(o===null)return!1;for(var f=0;f<o.length&&f<a.length;f++)if(!Bi(a[f],o[f]))return!1;return!0}function xl(a,o,f,m,S,w){if(Cl=w,Yn=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Kc.current=a===null||a.memoizedState===null?cC:fC,a=f(m,S),bt){w=0;do{if(bt=!1,uo=0,25<=w)throw Error(i(301));w+=1,Ee=or=null,o.updateQueue=null,Kc.current=dC,a=f(m,S)}while(bt)}if(Kc.current=Ad,o=or!==null&&or.next!==null,Cl=0,Ee=or=Yn=null,sr=!1,o)throw Error(i(300));return a}function Ds(){var a=uo!==0;return uo=0,a}function _a(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?Yn.memoizedState=Ee=a:Ee=Ee.next=a,Ee}function Oa(){if(or===null){var a=Yn.alternate;a=a!==null?a.memoizedState:null}else a=or.next;var o=Ee===null?Yn.memoizedState:Ee.next;if(o!==null)Ee=o,or=a;else{if(a===null)throw Error(i(310));or=a,a={memoizedState:or.memoizedState,baseState:or.baseState,baseQueue:or.baseQueue,queue:or.queue,next:null},Ee===null?Yn.memoizedState=Ee=a:Ee=Ee.next=a}return Ee}function Sl(a,o){return typeof o=="function"?o(a):o}function ef(a){var o=Oa(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var m=or,S=m.baseQueue,w=f.pending;if(w!==null){if(S!==null){var k=S.next;S.next=w.next,w.next=k}m.baseQueue=S=w,f.pending=null}if(S!==null){w=S.next,m=m.baseState;var W=k=null,Q=null,pe=w;do{var Me=pe.lane;if((Cl&Me)===Me)Q!==null&&(Q=Q.next={lane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),m=pe.hasEagerState?pe.eagerState:a(m,pe.action);else{var Pe={lane:Me,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null};Q===null?(W=Q=Pe,k=m):Q=Q.next=Pe,Yn.lanes|=Me,Ol|=Me}pe=pe.next}while(pe!==null&&pe!==w);Q===null?k=m:Q.next=W,Bi(m,o.memoizedState)||(Aa=!0),o.memoizedState=m,o.baseState=k,o.baseQueue=Q,f.lastRenderedState=m}if(a=f.interleaved,a!==null){S=a;do w=S.lane,Yn.lanes|=w,Ol|=w,S=S.next;while(S!==a)}else S===null&&(f.lanes=0);return[o.memoizedState,f.dispatch]}function tf(a){var o=Oa(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var m=f.dispatch,S=f.pending,w=o.memoizedState;if(S!==null){f.pending=null;var k=S=S.next;do w=a(w,k.action),k=k.next;while(k!==S);Bi(w,o.memoizedState)||(Aa=!0),o.memoizedState=w,o.baseQueue===null&&(o.baseState=w),f.lastRenderedState=w}return[w,m]}function yd(){}function bd(a,o){var f=Yn,m=Oa(),S=o(),w=!Bi(m.memoizedState,S);if(w&&(m.memoizedState=S,Aa=!0),m=m.queue,nf(Sd.bind(null,f,m,a),[a]),m.getSnapshot!==o||w||Ee!==null&&Ee.memoizedState.tag&1){if(f.flags|=2048,El(9,xd.bind(null,f,m,S,o),void 0,null),nr===null)throw Error(i(349));Cl&30||Cd(f,o,S)}return S}function Cd(a,o,f){a.flags|=16384,a={getSnapshot:o,value:f},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.stores=[a]):(f=o.stores,f===null?o.stores=[a]:f.push(a))}function xd(a,o,f,m){o.value=f,o.getSnapshot=m,Ed(o)&&wd(a)}function Sd(a,o,f){return f(function(){Ed(o)&&wd(a)})}function Ed(a){var o=a.getSnapshot;a=a.value;try{var f=o();return!Bi(a,f)}catch{return!0}}function wd(a){var o=Ho(a,1);o!==null&&Zn(o,a,1,-1)}function Rd(a){var o=_a();return typeof a=="function"&&(a=a()),o.memoizedState=o.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:a},o.queue=a,a=a.dispatch=Od.bind(null,Yn,a),[o.memoizedState,a]}function El(a,o,f,m){return a={tag:a,create:o,destroy:f,deps:m,next:null},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.lastEffect=a.next=a):(f=o.lastEffect,f===null?o.lastEffect=a.next=a:(m=f.next,f.next=a,a.next=m,o.lastEffect=a)),a}function Td(){return Oa().memoizedState}function Iu(a,o,f,m){var S=_a();Yn.flags|=a,S.memoizedState=El(1|o,f,void 0,m===void 0?null:m)}function wl(a,o,f,m){var S=Oa();m=m===void 0?null:m;var w=void 0;if(or!==null){var k=or.memoizedState;if(w=k.destroy,m!==null&&mi(m,k.deps)){S.memoizedState=El(o,f,w,m);return}}Yn.flags|=a,S.memoizedState=El(1|o,f,w,m)}function Rl(a,o){return Iu(8390656,8,a,o)}function nf(a,o){return wl(2048,8,a,o)}function Id(a,o){return wl(4,2,a,o)}function Nd(a,o){return wl(4,4,a,o)}function _d(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 Lv(a,o,f){return f=f!=null?f.concat([a]):null,wl(4,4,_d.bind(null,o,a),f)}function Tl(){}function Pv(a,o){var f=Oa();o=o===void 0?null:o;var m=f.memoizedState;return m!==null&&o!==null&&mi(o,m[1])?m[0]:(f.memoizedState=[a,o],a)}function Nu(a,o){var f=Oa();o=o===void 0?null:o;var m=f.memoizedState;return m!==null&&o!==null&&mi(o,m[1])?m[0]:(a=a(),f.memoizedState=[a,o],a)}function ks(a,o,f){return Cl&21?(Bi(f,o)||(f=sl(),Yn.lanes|=f,Ol|=f,a.baseState=!0),o):(a.baseState&&(a.baseState=!1,Aa=!0),a.memoizedState=f)}function Ja(a,o){var f=Ht;Ht=f!==0&&4>f?f:4,a(!0);var m=Mv.transition;Mv.transition={};try{a(!1),o()}finally{Ht=f,Mv.transition=m}}function Eg(){return Oa().memoizedState}function Mn(a,o,f){var m=Xo(a);if(f={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null},rf(a))_u(o,f);else if(f=vg(a,o,f,m),f!==null){var S=Ar();Zn(f,a,m,S),af(f,o,m)}}function Od(a,o,f){var m=Xo(a),S={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null};if(rf(a))_u(o,S);else{var w=a.alternate;if(a.lanes===0&&(w===null||w.lanes===0)&&(w=o.lastRenderedReducer,w!==null))try{var k=o.lastRenderedState,W=w(k,f);if(S.hasEagerState=!0,S.eagerState=W,Bi(W,k)){var Q=o.interleaved;Q===null?(S.next=S,Za(o)):(S.next=Q.next,Q.next=S),o.interleaved=S;return}}catch{}finally{}f=vg(a,o,S,m),f!==null&&(S=Ar(),Zn(f,a,m,S),af(f,o,m))}}function rf(a){var o=a.alternate;return a===Yn||o!==null&&o===Yn}function _u(a,o){bt=sr=!0;var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}function af(a,o,f){if(f&4194240){var m=o.lanes;m&=a.pendingLanes,f|=m,o.lanes=f,Rc(a,f)}}var Ad={readContext:Ue,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useInsertionEffect:er,useLayoutEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useMutableSource:er,useSyncExternalStore:er,useId:er,unstable_isNewReconciler:!1},cC={readContext:Ue,useCallback:function(a,o){return _a().memoizedState=[a,o===void 0?null:o],a},useContext:Ue,useEffect:Rl,useImperativeHandle:function(a,o,f){return f=f!=null?f.concat([a]):null,Iu(4194308,4,_d.bind(null,o,a),f)},useLayoutEffect:function(a,o){return Iu(4194308,4,a,o)},useInsertionEffect:function(a,o){return Iu(4,2,a,o)},useMemo:function(a,o){var f=_a();return o=o===void 0?null:o,a=a(),f.memoizedState=[a,o],a},useReducer:function(a,o,f){var m=_a();return o=f!==void 0?f(o):o,m.memoizedState=m.baseState=o,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:o},m.queue=a,a=a.dispatch=Mn.bind(null,Yn,a),[m.memoizedState,a]},useRef:function(a){var o=_a();return a={current:a},o.memoizedState=a},useState:Rd,useDebugValue:Tl,useDeferredValue:function(a){return _a().memoizedState=a},useTransition:function(){var a=Rd(!1),o=a[0];return a=Ja.bind(null,a[1]),_a().memoizedState=a,[o,a]},useMutableSource:function(){},useSyncExternalStore:function(a,o,f){var m=Yn,S=_a();if(Bn){if(f===void 0)throw Error(i(407));f=f()}else{if(f=o(),nr===null)throw Error(i(349));Cl&30||Cd(m,o,f)}S.memoizedState=f;var w={value:f,getSnapshot:o};return S.queue=w,Rl(Sd.bind(null,m,w,a),[a]),m.flags|=2048,El(9,xd.bind(null,m,w,f,o),void 0,null),f},useId:function(){var a=_a(),o=nr.identifierPrefix;if(Bn){var f=Pr,m=Ia;f=(m&~(1<<32-na(m)-1)).toString(32)+f,o=":"+o+"R"+f,f=uo++,0<f&&(o+="H"+f.toString(32)),o+=":"}else f=$o++,o=":"+o+"r"+f.toString(32)+":";return a.memoizedState=o},unstable_isNewReconciler:!1},fC={readContext:Ue,useCallback:Pv,useContext:Ue,useEffect:nf,useImperativeHandle:Lv,useInsertionEffect:Id,useLayoutEffect:Nd,useMemo:Nu,useReducer:ef,useRef:Td,useState:function(){return ef(Sl)},useDebugValue:Tl,useDeferredValue:function(a){var o=Oa();return ks(o,or.memoizedState,a)},useTransition:function(){var a=ef(Sl)[0],o=Oa().memoizedState;return[a,o]},useMutableSource:yd,useSyncExternalStore:bd,useId:Eg,unstable_isNewReconciler:!1},dC={readContext:Ue,useCallback:Pv,useContext:Ue,useEffect:nf,useImperativeHandle:Lv,useInsertionEffect:Id,useLayoutEffect:Nd,useMemo:Nu,useReducer:tf,useRef:Td,useState:function(){return tf(Sl)},useDebugValue:Tl,useDeferredValue:function(a){var o=Oa();return or===null?o.memoizedState=a:ks(o,or.memoizedState,a)},useTransition:function(){var a=tf(Sl)[0],o=Oa().memoizedState;return[a,o]},useMutableSource:yd,useSyncExternalStore:bd,useId:Eg,unstable_isNewReconciler:!1};function Ms(a,o){try{var f="",m=o;do f+=Ne(m),m=m.return;while(m);var S=f}catch(w){S=`
|
|
95
95
|
Error generating stack: `+w.message+`
|
|
96
|
-
`+w.stack}return{value:a,source:o,stack:S,digest:null}}function Pv(a,o,f){return{value:a,source:null,stack:f??null,digest:o??null}}function of(a,o){try{console.error(o.value)}catch(f){setTimeout(function(){throw f})}}var wg=typeof WeakMap=="function"?WeakMap:Map;function Rg(a,o,f){f=kn(-1,f),f.tag=3,f.payload={element:null};var m=o.value;return f.callback=function(){Hd||(Hd=!0,Wv=m),of(a,o)},f}function Tg(a,o,f){f=kn(-1,f),f.tag=3;var m=a.type.getDerivedStateFromError;if(typeof m=="function"){var S=o.value;f.payload=function(){return m(S)},f.callback=function(){of(a,o)}}var w=a.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(f.callback=function(){of(a,o),typeof m!="function"&&(bi===null?bi=new Set([this]):bi.add(this));var k=o.stack;this.componentDidCatch(o.value,{componentStack:k!==null?k:""})}),f}function sf(a,o,f){var m=a.pingCache;if(m===null){m=a.pingCache=new wg;var S=new Set;m.set(o,S)}else S=m.get(o),S===void 0&&(S=new Set,m.set(o,S));S.has(f)||(S.add(f),a=EC.bind(null,a,o,f),o.then(a,a))}function Ig(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 Fv(a,o,f,m,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=kn(-1,1),o.tag=2,As(f,o,1))),f.lanes|=1),a)}var Ng=U.ReactCurrentOwner,Aa=!1;function lr(a,o,f,m){o.child=a===null?Sg(o,null,f,m):wu(o,a.child,f,m)}function Ou(a,o,f,m,S){f=f.render;var w=o.ref;return ir(o,S),m=xl(a,o,f,m,w,S),f=Ds(),a!==null&&!Aa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,ur(a,o,S)):(Bn&&f&&fd(o),o.flags|=1,lr(a,o,m,S),o.child)}function Ls(a,o,f,m,S){if(a===null){var w=f.type;return typeof w=="function"&&!qv(w)&&w.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(o.tag=15,o.type=w,jd(a,o,w,m,S)):(a=Zd(f.type,null,m,o,o.mode,S),a.ref=o.ref,a.return=o,o.child=a)}if(w=a.child,!(a.lanes&S)){var k=w.memoizedProps;if(f=f.compare,f=f!==null?f:hu,f(k,m)&&a.ref===o.ref)return ur(a,o,S)}return o.flags|=1,a=Vs(w,m),a.ref=o.ref,a.return=o,o.child=a}function jd(a,o,f,m,S){if(a!==null){var w=a.memoizedProps;if(hu(w,m)&&a.ref===o.ref)if(Aa=!1,o.pendingProps=m=w,(a.lanes&S)!==0)a.flags&131072&&(Aa=!0);else return o.lanes=a.lanes,ur(a,o,S)}return Dt(a,o,f,m,S)}function ja(a,o,f){var m=o.pendingProps,S=m.children,w=a!==null?a.memoizedState:null;if(m.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},tn(Bu,Da),Da|=f;else{if(!(f&1073741824))return a=w!==null?w.baseLanes|f:f,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:a,cachePool:null,transitions:null},o.updateQueue=null,tn(Bu,Da),Da|=a,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=w!==null?w.baseLanes:f,tn(Bu,Da),Da|=m}else w!==null?(m=w.baseLanes|f,o.memoizedState=null):m=f,tn(Bu,Da),Da|=m;return lr(a,o,S,f),o.child}function Il(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,m,S){var w=vr(f)?ra:Nr.current;return w=Wa(o,w),ir(o,S),f=xl(a,o,f,m,w,S),m=Ds(),a!==null&&!Aa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,ur(a,o,S)):(Bn&&m&&fd(o),o.flags|=1,lr(a,o,f,S),o.child)}function lf(a,o,f,m,S){if(vr(f)){var w=!0;ml(o)}else w=!1;if(ir(o,S),o.stateNode===null)cf(a,o),yg(o,f,m),jv(o,f,m,S),m=!0;else if(a===null){var k=o.stateNode,W=o.memoizedProps;k.props=W;var Q=k.context,pe=f.contextType;typeof pe=="object"&&pe!==null?pe=Ue(pe):(pe=vr(f)?ra:Nr.current,pe=Wa(o,pe));var Me=f.getDerivedStateFromProps,Pe=typeof Me=="function"||typeof k.getSnapshotBeforeUpdate=="function";Pe||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(W!==m||Q!==pe)&&bg(o,k,m,pe),Os=!1;var De=o.memoizedState;k.state=De,Zc(o,m,k,S),Q=o.memoizedState,W!==m||De!==Q||Ot.current||Os?(typeof Me=="function"&&(Av(o,f,Me,m),Q=o.memoizedState),(W=Os||gg(o,f,W,m,De,Q,pe))?(Pe||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(o.flags|=4194308)):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=m,o.memoizedState=Q),k.props=m,k.state=Q,k.context=pe,m=W):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),m=!1)}else{k=o.stateNode,hg(a,o),W=o.memoizedProps,pe=o.type===o.elementType?W:Na(o.type,W),k.props=pe,Pe=o.pendingProps,De=k.context,Q=f.contextType,typeof Q=="object"&&Q!==null?Q=Ue(Q):(Q=vr(f)?ra:Nr.current,Q=Wa(o,Q));var Ye=f.getDerivedStateFromProps;(Me=typeof Ye=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(W!==Pe||De!==Q)&&bg(o,k,m,Q),Os=!1,De=o.memoizedState,k.state=De,Zc(o,m,k,S);var nt=o.memoizedState;W!==Pe||De!==nt||Ot.current||Os?(typeof Ye=="function"&&(Av(o,f,Ye,m),nt=o.memoizedState),(pe=Os||gg(o,f,pe,m,De,nt,Q)||!1)?(Me||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(m,nt,Q),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(m,nt,Q)),typeof k.componentDidUpdate=="function"&&(o.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof k.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),o.memoizedProps=m,o.memoizedState=nt),k.props=m,k.state=nt,k.context=Q,m=pe):(typeof k.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),m=!1)}return Dd(a,o,f,m,w,S)}function Dd(a,o,f,m,S,w){Il(a,o);var k=(o.flags&128)!==0;if(!m&&!k)return S&&fg(o,f,!1),ur(a,o,w);m=o.stateNode,Ng.current=o;var W=k&&typeof f.getDerivedStateFromError!="function"?null:m.render();return o.flags|=1,a!==null&&k?(o.child=wu(o,a.child,null,w),o.child=wu(o,null,W,w)):lr(a,o,W,w),o.memoizedState=m.state,S&&fg(o,f,!0),o.child}function vC(a){var o=a.stateNode;o.pendingContext?io(a,o.pendingContext,o.pendingContext!==o.context):o.context&&io(a,o.context,!1),Dv(a,o.containerInfo)}function _g(a,o,f,m,S){return bu(),hr(S),o.flags|=256,lr(a,o,f,m),o.child}var uf={dehydrated:null,treeContext:null,retryLane:0};function Nl(a){return{baseLanes:a,cachePool:null,transitions:null}}function Og(a,o,f){var m=o.pendingProps,S=ut.current,w=!1,k=(o.flags&128)!==0,W;if((W=k)||(W=a!==null&&a.memoizedState===null?!1:(S&2)!==0),W?(w=!0,o.flags&=-129):(a===null||a.memoizedState!==null)&&(S|=1),tn(ut,S&1),a===null)return pd(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):(k=m.children,a=m.fallback,w?(m=o.mode,w=o.child,k={mode:"hidden",children:k},!(m&1)&&w!==null?(w.childLanes=0,w.pendingProps=k):w=Jd(k,m,0,null),a=kl(a,m,f,null),w.return=o,a.return=o,w.sibling=a,o.child=w,o.child.memoizedState=Nl(f),o.memoizedState=uf,a):kd(o,k));if(S=a.memoizedState,S!==null&&(W=S.dehydrated,W!==null))return Vv(a,o,k,m,W,S,f);if(w){w=m.fallback,k=o.mode,S=a.child,W=S.sibling;var Q={mode:"hidden",children:m.children};return!(k&1)&&o.child!==S?(m=o.child,m.childLanes=0,m.pendingProps=Q,o.deletions=null):(m=Vs(S,Q),m.subtreeFlags=S.subtreeFlags&14680064),W!==null?w=Vs(W,w):(w=kl(w,k,f,null),w.flags|=2),w.return=o,m.return=o,m.sibling=w,o.child=m,m=w,w=o.child,k=a.child.memoizedState,k=k===null?Nl(f):{baseLanes:k.baseLanes|f,cachePool:null,transitions:k.transitions},w.memoizedState=k,w.childLanes=a.childLanes&~f,o.memoizedState=uf,m}return w=a.child,a=w.sibling,m=Vs(w,{mode:"visible",children:m.children}),!(o.mode&1)&&(m.lanes=f),m.return=o,m.sibling=null,a!==null&&(f=o.deletions,f===null?(o.deletions=[a],o.flags|=16):f.push(a)),o.child=m,o.memoizedState=null,m}function kd(a,o){return o=Jd({mode:"visible",children:o},a.mode,0,null),o.return=a,a.child=o}function Md(a,o,f,m){return m!==null&&hr(m),wu(o,a.child,null,f),a=kd(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function Vv(a,o,f,m,S,w,k){if(f)return o.flags&256?(o.flags&=-257,m=Pv(Error(i(422))),Md(a,o,k,m)):o.memoizedState!==null?(o.child=a.child,o.flags|=128,null):(w=m.fallback,S=o.mode,m=Jd({mode:"visible",children:m.children},S,0,null),w=kl(w,S,k,null),w.flags|=2,m.return=o,w.return=o,m.sibling=w,o.child=m,o.mode&1&&wu(o,a.child,null,k),o.child.memoizedState=Nl(k),o.memoizedState=uf,w);if(!(o.mode&1))return Md(a,o,k,null);if(S.data==="$!"){if(m=S.nextSibling&&S.nextSibling.dataset,m)var W=m.dgst;return m=W,w=Error(i(419)),m=Pv(w,m,void 0),Md(a,o,k,m)}if(W=(k&a.childLanes)!==0,Aa||W){if(m=nr,m!==null){switch(k&-k){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&(m.suspendedLanes|k)?0:S,S!==0&&S!==w.retryLane&&(w.retryLane=S,Ho(a,S),Zn(m,a,S,-1))}return hf(),m=Pv(Error(i(421))),Md(a,o,k,m)}return S.data==="$?"?(o.flags|=128,o.child=a.child,o=Jv.bind(null,a),S._reactRetry=o,null):(a=w.treeContext,Ya=Ga(S.nextSibling),Xa=o,Bn=!0,pi=null,a!==null&&(Ra[Ta++]=Ia,Ra[Ta++]=Pr,Ra[Ta++]=Hi,Ia=a.id,Pr=a.overflow,Hi=o),o=kd(o,m.children),o.flags|=4096,o)}function Ag(a,o,f){a.lanes|=o;var m=a.alternate;m!==null&&(m.lanes|=o),_s(a.return,o,f)}function Ld(a,o,f,m,S){var w=a.memoizedState;w===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:S}:(w.isBackwards=o,w.rendering=null,w.renderingStartTime=0,w.last=m,w.tail=f,w.tailMode=S)}function Bv(a,o,f){var m=o.pendingProps,S=m.revealOrder,w=m.tail;if(lr(a,o,m.children,f),m=ut.current,m&2)m=m&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&&Ag(a,f,o);else if(a.tag===19)Ag(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}m&=1}if(tn(ut,m),!(o.mode&1))o.memoizedState=null;else switch(S){case"forwards":for(f=o.child,S=null;f!==null;)a=f.alternate,a!==null&&Qt(a)===null&&(S=f),f=f.sibling;f=S,f===null?(S=o.child,o.child=null):(S=f.sibling,f.sibling=null),Ld(o,!1,S,f,w);break;case"backwards":for(f=null,S=o.child,o.child=null;S!==null;){if(a=S.alternate,a!==null&&Qt(a)===null){o.child=S;break}a=S.sibling,S.sibling=f,f=S,S=a}Ld(o,!0,f,null,w);break;case"together":Ld(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function cf(a,o){!(o.mode&1)&&a!==null&&(a.alternate=null,o.alternate=null,o.flags|=2)}function ur(a,o,f){if(a!==null&&(o.dependencies=a.dependencies),Ol|=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=Vs(a,a.pendingProps),o.child=f,f.return=o;a.sibling!==null;)a=a.sibling,f=f.sibling=Vs(a,a.pendingProps),f.return=o;f.sibling=null}return o.child}function Go(a,o,f){switch(o.tag){case 3:vC(o),bu();break;case 5:gd(o);break;case 1:vr(o.type)&&ml(o);break;case 4:Dv(o,o.stateNode.containerInfo);break;case 10:var m=o.type._context,S=o.memoizedProps.value;tn(Cu,m._currentValue),m._currentValue=S;break;case 13:if(m=o.memoizedState,m!==null)return m.dehydrated!==null?(tn(ut,ut.current&1),o.flags|=128,null):f&o.child.childLanes?Og(a,o,f):(tn(ut,ut.current&1),a=ur(a,o,f),a!==null?a.sibling:null);tn(ut,ut.current&1);break;case 19:if(m=(f&o.childLanes)!==0,a.flags&128){if(m)return Bv(a,o,f);o.flags|=128}if(S=o.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),tn(ut,ut.current),m)break;return null;case 22:case 23:return o.lanes=0,ja(a,o,f)}return ur(a,o,f)}var co,Au,ju,gi;co=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}},Au=function(){},ju=function(a,o,f,m){var S=a.memoizedProps;if(S!==m){a=o.stateNode,js(lo.current);var w=null;switch(f){case"input":S=It(a,S),m=It(a,m),w=[];break;case"select":S=G({},S,{value:void 0}),m=G({},m,{value:void 0}),w=[];break;case"textarea":S=qn(a,S),m=qn(a,m),w=[];break;default:typeof S.onClick!="function"&&typeof m.onClick=="function"&&(a.onclick=ld)}en(f,m);var k;f=null;for(pe in S)if(!m.hasOwnProperty(pe)&&S.hasOwnProperty(pe)&&S[pe]!=null)if(pe==="style"){var W=S[pe];for(k in W)W.hasOwnProperty(k)&&(f||(f={}),f[k]="")}else pe!=="dangerouslySetInnerHTML"&&pe!=="children"&&pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&pe!=="autoFocus"&&(l.hasOwnProperty(pe)?w||(w=[]):(w=w||[]).push(pe,null));for(pe in m){var Q=m[pe];if(W=S!=null?S[pe]:void 0,m.hasOwnProperty(pe)&&Q!==W&&(Q!=null||W!=null))if(pe==="style")if(W){for(k in W)!W.hasOwnProperty(k)||Q&&Q.hasOwnProperty(k)||(f||(f={}),f[k]="");for(k in Q)Q.hasOwnProperty(k)&&W[k]!==Q[k]&&(f||(f={}),f[k]=Q[k])}else f||(w||(w=[]),w.push(pe,f)),f=Q;else pe==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,W=W?W.__html:void 0,Q!=null&&W!==Q&&(w=w||[]).push(pe,Q)):pe==="children"?typeof Q!="string"&&typeof Q!="number"||(w=w||[]).push(pe,""+Q):pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&(l.hasOwnProperty(pe)?(Q!=null&&pe==="onScroll"&&Tn("scroll",a),w||W===Q||(w=[])):(w=w||[]).push(pe,Q))}f&&(w=w||[]).push("style",f);var pe=w;(o.updateQueue=pe)&&(o.flags|=4)}},gi=function(a,o,f,m){f!==m&&(o.flags|=4)};function tr(a,o){if(!Bn)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 m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function qr(a){var o=a.alternate!==null&&a.alternate.child===a.child,f=0,m=0;if(o)for(var S=a.child;S!==null;)f|=S.lanes|S.childLanes,m|=S.subtreeFlags&14680064,m|=S.flags&14680064,S.return=a,S=S.sibling;else for(S=a.child;S!==null;)f|=S.lanes|S.childLanes,m|=S.subtreeFlags,m|=S.flags,S.return=a,S=S.sibling;return a.subtreeFlags|=m,a.childLanes=f,o}function hC(a,o,f){var m=o.pendingProps;switch(dd(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 vr(o.type)&&wa(),qr(o),null;case 3:return m=o.stateNode,Tu(),st(Ot),st(Nr),hi(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(a===null||a.child===null)&&(vd(o)?o.flags|=4:a===null||a.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,pi!==null&&(Xv(pi),pi=null))),Au(a,o),qr(o),null;case 5:mt(o);var S=js(Qc.current);if(f=o.type,a!==null&&o.stateNode!=null)ju(a,o,f,m,S),a.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!m){if(o.stateNode===null)throw Error(i(166));return qr(o),null}if(a=js(lo.current),vd(o)){m=o.stateNode,f=o.type;var w=o.memoizedProps;switch(m[ui]=o,m[Xc]=w,a=(o.mode&1)!==0,f){case"dialog":Tn("cancel",m),Tn("close",m);break;case"iframe":case"object":case"embed":Tn("load",m);break;case"video":case"audio":for(S=0;S<Fo.length;S++)Tn(Fo[S],m);break;case"source":Tn("error",m);break;case"img":case"image":case"link":Tn("error",m),Tn("load",m);break;case"details":Tn("toggle",m);break;case"input":pt(m,w),Tn("invalid",m);break;case"select":m._wrapperState={wasMultiple:!!w.multiple},Tn("invalid",m);break;case"textarea":Rr(m,w),Tn("invalid",m)}en(f,w),S=null;for(var k in w)if(w.hasOwnProperty(k)){var W=w[k];k==="children"?typeof W=="string"?m.textContent!==W&&(w.suppressHydrationWarning!==!0&&Hc(m.textContent,W,a),S=["children",W]):typeof W=="number"&&m.textContent!==""+W&&(w.suppressHydrationWarning!==!0&&Hc(m.textContent,W,a),S=["children",""+W]):l.hasOwnProperty(k)&&W!=null&&k==="onScroll"&&Tn("scroll",m)}switch(f){case"input":tt(m),sn(m,w,!0);break;case"textarea":tt(m),Tr(m);break;case"select":case"option":break;default:typeof w.onClick=="function"&&(m.onclick=ld)}m=S,o.updateQueue=m,m!==null&&(o.flags|=4)}else{k=S.nodeType===9?S:S.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=xt(f)),a==="http://www.w3.org/1999/xhtml"?f==="script"?(a=k.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof m.is=="string"?a=k.createElement(f,{is:m.is}):(a=k.createElement(f),f==="select"&&(k=a,m.multiple?k.multiple=!0:m.size&&(k.size=m.size))):a=k.createElementNS(a,f),a[ui]=o,a[Xc]=m,co(a,o,!1,!1),o.stateNode=a;e:{switch(k=ar(f,m),f){case"dialog":Tn("cancel",a),Tn("close",a),S=m;break;case"iframe":case"object":case"embed":Tn("load",a),S=m;break;case"video":case"audio":for(S=0;S<Fo.length;S++)Tn(Fo[S],a);S=m;break;case"source":Tn("error",a),S=m;break;case"img":case"image":case"link":Tn("error",a),Tn("load",a),S=m;break;case"details":Tn("toggle",a),S=m;break;case"input":pt(a,m),S=It(a,m),Tn("invalid",a);break;case"option":S=m;break;case"select":a._wrapperState={wasMultiple:!!m.multiple},S=G({},m,{value:void 0}),Tn("invalid",a);break;case"textarea":Rr(a,m),S=qn(a,m),Tn("invalid",a);break;default:S=m}en(f,S),W=S;for(w in W)if(W.hasOwnProperty(w)){var Q=W[w];w==="style"?Mt(a,Q):w==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&Ba(a,Q)):w==="children"?typeof Q=="string"?(f!=="textarea"||Q!=="")&&za(a,Q):typeof Q=="number"&&za(a,""+Q):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(l.hasOwnProperty(w)?Q!=null&&w==="onScroll"&&Tn("scroll",a):Q!=null&&F(a,w,Q,k))}switch(f){case"input":tt(a),sn(a,m,!1);break;case"textarea":tt(a),Tr(a);break;case"option":m.value!=null&&a.setAttribute("value",""+we(m.value));break;case"select":a.multiple=!!m.multiple,w=m.value,w!=null?Cn(a,!!m.multiple,w,!1):m.defaultValue!=null&&Cn(a,!!m.multiple,m.defaultValue,!0);break;default:typeof S.onClick=="function"&&(a.onclick=ld)}switch(f){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}}m&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return qr(o),null;case 6:if(a&&o.stateNode!=null)gi(a,o,a.memoizedProps,m);else{if(typeof m!="string"&&o.stateNode===null)throw Error(i(166));if(f=js(Qc.current),js(lo.current),vd(o)){if(m=o.stateNode,f=o.memoizedProps,m[ui]=o,(w=m.nodeValue!==f)&&(a=Xa,a!==null))switch(a.tag){case 3:Hc(m.nodeValue,f,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Hc(m.nodeValue,f,(a.mode&1)!==0)}w&&(o.flags|=4)}else m=(f.nodeType===9?f:f.ownerDocument).createTextNode(m),m[ui]=o,o.stateNode=m}return qr(o),null;case 13:if(st(ut),m=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Bn&&Ya!==null&&o.mode&1&&!(o.flags&128))pg(),bu(),o.flags|=98560,w=!1;else if(w=vd(o),m!==null&&m.dehydrated!==null){if(a===null){if(!w)throw Error(i(318));if(w=o.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(i(317));w[ui]=o}else bu(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;qr(o),w=!1}else pi!==null&&(Xv(pi),pi=null),w=!0;if(!w)return o.flags&65536?o:null}return o.flags&128?(o.lanes=f,o):(m=m!==null,m!==(a!==null&&a.memoizedState!==null)&&m&&(o.child.flags|=8192,o.mode&1&&(a===null||ut.current&1?Cr===0&&(Cr=3):hf())),o.updateQueue!==null&&(o.flags|=4),qr(o),null);case 4:return Tu(),Au(a,o),a===null&&ro(o.stateNode.containerInfo),qr(o),null;case 10:return _v(o.type._context),qr(o),null;case 17:return vr(o.type)&&wa(),qr(o),null;case 19:if(st(ut),w=o.memoizedState,w===null)return qr(o),null;if(m=(o.flags&128)!==0,k=w.rendering,k===null)if(m)tr(w,!1);else{if(Cr!==0||a!==null&&a.flags&128)for(a=o.child;a!==null;){if(k=Qt(a),k!==null){for(o.flags|=128,tr(w,!1),m=k.updateQueue,m!==null&&(o.updateQueue=m,o.flags|=4),o.subtreeFlags=0,m=f,f=o.child;f!==null;)w=f,a=m,w.flags&=14680066,k=w.alternate,k===null?(w.childLanes=0,w.lanes=a,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=k.childLanes,w.lanes=k.lanes,w.child=k.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=k.memoizedProps,w.memoizedState=k.memoizedState,w.updateQueue=k.updateQueue,w.type=k.type,a=k.dependencies,w.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),f=f.sibling;return tn(ut,ut.current&1|2),o.child}a=a.sibling}w.tail!==null&&Dn()>Uu&&(o.flags|=128,m=!0,tr(w,!1),o.lanes=4194304)}else{if(!m)if(a=Qt(k),a!==null){if(o.flags|=128,m=!0,f=a.updateQueue,f!==null&&(o.updateQueue=f,o.flags|=4),tr(w,!0),w.tail===null&&w.tailMode==="hidden"&&!k.alternate&&!Bn)return qr(o),null}else 2*Dn()-w.renderingStartTime>Uu&&f!==1073741824&&(o.flags|=128,m=!0,tr(w,!1),o.lanes=4194304);w.isBackwards?(k.sibling=o.child,o.child=k):(f=w.last,f!==null?f.sibling=k:o.child=k,w.last=k)}return w.tail!==null?(o=w.tail,w.rendering=o,w.tail=o.sibling,w.renderingStartTime=Dn(),o.sibling=null,f=ut.current,tn(ut,m?f&1|2:f&1),o):(qr(o),null);case 22:case 23:return Xd(),m=o.memoizedState!==null,a!==null&&a.memoizedState!==null!==m&&(o.flags|=8192),m&&o.mode&1?Da&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 mC(a,o){switch(dd(o),o.tag){case 1:return vr(o.type)&&wa(),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Tu(),st(Ot),st(Nr),hi(),a=o.flags,a&65536&&!(a&128)?(o.flags=a&-65537|128,o):null;case 5:return mt(o),null;case 13:if(st(ut),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(i(340));bu()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return st(ut),null;case 4:return Tu(),null;case 10:return _v(o.type._context),null;case 22:case 23:return Xd(),null;case 24:return null;default:return null}}var Du=!1,Fr=!1,Pd=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function ku(a,o){var f=a.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(m){rr(a,o,m)}else f.current=null}function zv(a,o,f){try{f()}catch(m){rr(a,o,m)}}var Fd=!1;function gC(a,o){if(yv=uu,a=Km(),Pc(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var m=f.getSelection&&f.getSelection();if(m&&m.rangeCount!==0){f=m.anchorNode;var S=m.anchorOffset,w=m.focusNode;m=m.focusOffset;try{f.nodeType,w.nodeType}catch{f=null;break e}var k=0,W=-1,Q=-1,pe=0,Me=0,Pe=a,De=null;t:for(;;){for(var Ye;Pe!==f||S!==0&&Pe.nodeType!==3||(W=k+S),Pe!==w||m!==0&&Pe.nodeType!==3||(Q=k+m),Pe.nodeType===3&&(k+=Pe.nodeValue.length),(Ye=Pe.firstChild)!==null;)De=Pe,Pe=Ye;for(;;){if(Pe===a)break t;if(De===f&&++pe===S&&(W=k),De===w&&++Me===m&&(Q=k),(Ye=Pe.nextSibling)!==null)break;Pe=De,De=Pe.parentNode}Pe=Ye}f=W===-1||Q===-1?null:{start:W,end:Q}}else f=null}f=f||{start:0,end:0}}else f=null;for(bv={focusedElem:a,selectionRange:f},uu=!1,Ke=o;Ke!==null;)if(o=Ke,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Ke=a;else for(;Ke!==null;){o=Ke;try{var nt=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(nt!==null){var ot=nt.memoizedProps,cr=nt.memoizedState,ae=o.stateNode,ee=ae.getSnapshotBeforeUpdate(o.elementType===o.type?ot:Na(o.type,ot),cr);ae.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var se=o.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ze){rr(o,o.return,ze)}if(a=o.sibling,a!==null){a.return=o.return,Ke=a;break}Ke=o.return}return nt=Fd,Fd=!1,nt}function Mu(a,o,f){var m=o.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var S=m=m.next;do{if((S.tag&a)===a){var w=S.destroy;S.destroy=void 0,w!==void 0&&zv(o,f,w)}S=S.next}while(S!==m)}}function Vd(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 m=f.create;f.destroy=m()}f=f.next}while(f!==o)}}function Bd(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 jg(a){var o=a.alternate;o!==null&&(a.alternate=null,jg(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&(delete o[ui],delete o[Xc],delete o[Ev],delete o[lC],delete o[uC])),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 Uv(a){return a.tag===5||a.tag===3||a.tag===4}function Dg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Uv(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 ff(a,o,f){var m=a.tag;if(m===5||m===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=ld));else if(m!==4&&(a=a.child,a!==null))for(ff(a,o,f),a=a.sibling;a!==null;)ff(a,o,f),a=a.sibling}function Lu(a,o,f){var m=a.tag;if(m===5||m===6)a=a.stateNode,o?f.insertBefore(a,o):f.appendChild(a);else if(m!==4&&(a=a.child,a!==null))for(Lu(a,o,f),a=a.sibling;a!==null;)Lu(a,o,f),a=a.sibling}var Hn=null,_r=!1;function aa(a,o,f){for(f=f.child;f!==null;)Pu(a,o,f),f=f.sibling}function Pu(a,o,f){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(hs,f)}catch{}switch(f.tag){case 5:Fr||ku(f,o);case 6:var m=Hn,S=_r;Hn=null,aa(a,o,f),Hn=m,_r=S,Hn!==null&&(_r?(a=Hn,f=f.stateNode,a.nodeType===8?a.parentNode.removeChild(f):a.removeChild(f)):Hn.removeChild(f.stateNode));break;case 18:Hn!==null&&(_r?(a=Hn,f=f.stateNode,a.nodeType===8?Sv(a.parentNode,f):a.nodeType===1&&Sv(a,f),li(a)):Sv(Hn,f.stateNode));break;case 4:m=Hn,S=_r,Hn=f.stateNode.containerInfo,_r=!0,aa(a,o,f),Hn=m,_r=S;break;case 0:case 11:case 14:case 15:if(!Fr&&(m=f.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){S=m=m.next;do{var w=S,k=w.destroy;w=w.tag,k!==void 0&&(w&2||w&4)&&zv(f,o,k),S=S.next}while(S!==m)}aa(a,o,f);break;case 1:if(!Fr&&(ku(f,o),m=f.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=f.memoizedProps,m.state=f.memoizedState,m.componentWillUnmount()}catch(W){rr(f,o,W)}aa(a,o,f);break;case 21:aa(a,o,f);break;case 22:f.mode&1?(Fr=(m=Fr)||f.memoizedState!==null,aa(a,o,f),Fr=m):aa(a,o,f);break;default:aa(a,o,f)}}function Fu(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var f=a.stateNode;f===null&&(f=a.stateNode=new Pd),o.forEach(function(m){var S=wC.bind(null,a,m);f.has(m)||(f.add(m),m.then(S,S))})}}function Or(a,o){var f=o.deletions;if(f!==null)for(var m=0;m<f.length;m++){var S=f[m];try{var w=a,k=o,W=k;e:for(;W!==null;){switch(W.tag){case 5:Hn=W.stateNode,_r=!1;break e;case 3:Hn=W.stateNode.containerInfo,_r=!0;break e;case 4:Hn=W.stateNode.containerInfo,_r=!0;break e}W=W.return}if(Hn===null)throw Error(i(160));Pu(w,k,S),Hn=null,_r=!1;var Q=S.alternate;Q!==null&&(Q.return=null),S.return=null}catch(pe){rr(S,o,pe)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)kg(o,a),o=o.sibling}function kg(a,o){var f=a.alternate,m=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(Or(o,a),fo(a),m&4){try{Mu(3,a,a.return),Vd(3,a)}catch(ot){rr(a,a.return,ot)}try{Mu(5,a,a.return)}catch(ot){rr(a,a.return,ot)}}break;case 1:Or(o,a),fo(a),m&512&&f!==null&&ku(f,f.return);break;case 5:if(Or(o,a),fo(a),m&512&&f!==null&&ku(f,f.return),a.flags&32){var S=a.stateNode;try{za(S,"")}catch(ot){rr(a,a.return,ot)}}if(m&4&&(S=a.stateNode,S!=null)){var w=a.memoizedProps,k=f!==null?f.memoizedProps:w,W=a.type,Q=a.updateQueue;if(a.updateQueue=null,Q!==null)try{W==="input"&&w.type==="radio"&&w.name!=null&&Kt(S,w),ar(W,k);var pe=ar(W,w);for(k=0;k<Q.length;k+=2){var Me=Q[k],Pe=Q[k+1];Me==="style"?Mt(S,Pe):Me==="dangerouslySetInnerHTML"?Ba(S,Pe):Me==="children"?za(S,Pe):F(S,Me,Pe,pe)}switch(W){case"input":on(S,w);break;case"textarea":$n(S,w);break;case"select":var De=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!w.multiple;var Ye=w.value;Ye!=null?Cn(S,!!w.multiple,Ye,!1):De!==!!w.multiple&&(w.defaultValue!=null?Cn(S,!!w.multiple,w.defaultValue,!0):Cn(S,!!w.multiple,w.multiple?[]:"",!1))}S[Xc]=w}catch(ot){rr(a,a.return,ot)}}break;case 6:if(Or(o,a),fo(a),m&4){if(a.stateNode===null)throw Error(i(162));S=a.stateNode,w=a.memoizedProps;try{S.nodeValue=w}catch(ot){rr(a,a.return,ot)}}break;case 3:if(Or(o,a),fo(a),m&4&&f!==null&&f.memoizedState.isDehydrated)try{li(o.containerInfo)}catch(ot){rr(a,a.return,ot)}break;case 4:Or(o,a),fo(a);break;case 13:Or(o,a),fo(a),S=a.child,S.flags&8192&&(w=S.memoizedState!==null,S.stateNode.isHidden=w,!w||S.alternate!==null&&S.alternate.memoizedState!==null||(Ud=Dn())),m&4&&Fu(a);break;case 22:if(Me=f!==null&&f.memoizedState!==null,a.mode&1?(Fr=(pe=Fr)||Me,Or(o,a),Fr=pe):Or(o,a),fo(a),m&8192){if(pe=a.memoizedState!==null,(a.stateNode.isHidden=pe)&&!Me&&a.mode&1)for(Ke=a,Me=a.child;Me!==null;){for(Pe=Ke=Me;Ke!==null;){switch(De=Ke,Ye=De.child,De.tag){case 0:case 11:case 14:case 15:Mu(4,De,De.return);break;case 1:ku(De,De.return);var nt=De.stateNode;if(typeof nt.componentWillUnmount=="function"){m=De,f=De.return;try{o=m,nt.props=o.memoizedProps,nt.state=o.memoizedState,nt.componentWillUnmount()}catch(ot){rr(m,f,ot)}}break;case 5:ku(De,De.return);break;case 22:if(De.memoizedState!==null){Mg(Pe);continue}}Ye!==null?(Ye.return=De,Ke=Ye):Mg(Pe)}Me=Me.sibling}e:for(Me=null,Pe=a;;){if(Pe.tag===5){if(Me===null){Me=Pe;try{S=Pe.stateNode,pe?(w=S.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none"):(W=Pe.stateNode,Q=Pe.memoizedProps.style,k=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,W.style.display=dt("display",k))}catch(ot){rr(a,a.return,ot)}}}else if(Pe.tag===6){if(Me===null)try{Pe.stateNode.nodeValue=pe?"":Pe.memoizedProps}catch(ot){rr(a,a.return,ot)}}else if((Pe.tag!==22&&Pe.tag!==23||Pe.memoizedState===null||Pe===a)&&Pe.child!==null){Pe.child.return=Pe,Pe=Pe.child;continue}if(Pe===a)break e;for(;Pe.sibling===null;){if(Pe.return===null||Pe.return===a)break e;Me===Pe&&(Me=null),Pe=Pe.return}Me===Pe&&(Me=null),Pe.sibling.return=Pe.return,Pe=Pe.sibling}}break;case 19:Or(o,a),fo(a),m&4&&Fu(a);break;case 21:break;default:Or(o,a),fo(a)}}function fo(a){var o=a.flags;if(o&2){try{e:{for(var f=a.return;f!==null;){if(Uv(f)){var m=f;break e}f=f.return}throw Error(i(160))}switch(m.tag){case 5:var S=m.stateNode;m.flags&32&&(za(S,""),m.flags&=-33);var w=Dg(a);Lu(a,w,S);break;case 3:case 4:var k=m.stateNode.containerInfo,W=Dg(a);ff(a,W,k);break;default:throw Error(i(161))}}catch(Q){rr(a,a.return,Q)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function yC(a,o,f){Ke=a,Hv(a)}function Hv(a,o,f){for(var m=(a.mode&1)!==0;Ke!==null;){var S=Ke,w=S.child;if(S.tag===22&&m){var k=S.memoizedState!==null||Du;if(!k){var W=S.alternate,Q=W!==null&&W.memoizedState!==null||Fr;W=Du;var pe=Fr;if(Du=k,(Fr=Q)&&!pe)for(Ke=S;Ke!==null;)k=Ke,Q=k.child,k.tag===22&&k.memoizedState!==null?$v(S):Q!==null?(Q.return=k,Ke=Q):$v(S);for(;w!==null;)Ke=w,Hv(w),w=w.sibling;Ke=S,Du=W,Fr=pe}Vu(a)}else S.subtreeFlags&8772&&w!==null?(w.return=S,Ke=w):Vu(a)}}function Vu(a){for(;Ke!==null;){var o=Ke;if(o.flags&8772){var f=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:Fr||Vd(5,o);break;case 1:var m=o.stateNode;if(o.flags&4&&!Fr)if(f===null)m.componentDidMount();else{var S=o.elementType===o.type?f.memoizedProps:Na(o.type,f.memoizedProps);m.componentDidUpdate(S,f.memoizedState,m.__reactInternalSnapshotBeforeUpdate)}var w=o.updateQueue;w!==null&&Su(o,w,m);break;case 3:var k=o.updateQueue;if(k!==null){if(f=null,o.child!==null)switch(o.child.tag){case 5:f=o.child.stateNode;break;case 1:f=o.child.stateNode}Su(o,k,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 pe=o.alternate;if(pe!==null){var Me=pe.memoizedState;if(Me!==null){var Pe=Me.dehydrated;Pe!==null&&li(Pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Fr||o.flags&512&&Bd(o)}catch(De){rr(o,o.return,De)}}if(o===a){Ke=null;break}if(f=o.sibling,f!==null){f.return=o.return,Ke=f;break}Ke=o.return}}function Mg(a){for(;Ke!==null;){var o=Ke;if(o===a){Ke=null;break}var f=o.sibling;if(f!==null){f.return=o.return,Ke=f;break}Ke=o.return}}function $v(a){for(;Ke!==null;){var o=Ke;try{switch(o.tag){case 0:case 11:case 15:var f=o.return;try{Vd(4,o)}catch(Q){rr(o,f,Q)}break;case 1:var m=o.stateNode;if(typeof m.componentDidMount=="function"){var S=o.return;try{m.componentDidMount()}catch(Q){rr(o,S,Q)}}var w=o.return;try{Bd(o)}catch(Q){rr(o,w,Q)}break;case 5:var k=o.return;try{Bd(o)}catch(Q){rr(o,k,Q)}}}catch(Q){rr(o,o.return,Q)}if(o===a){Ke=null;break}var W=o.sibling;if(W!==null){W.return=o.return,Ke=W;break}Ke=o.return}}var bC=Math.ceil,_l=U.ReactCurrentDispatcher,zd=U.ReactCurrentOwner,yi=U.ReactCurrentBatchConfig,zt=0,nr=null,zn=null,br=0,Da=0,Bu=In(0),Cr=0,df=null,Ol=0,zu=0,Gv=0,Ps=null,Qr=null,Ud=0,Uu=1/0,Wo=null,Hd=!1,Wv=null,bi=null,Hu=!1,Ci=null,$d=0,pf=0,Gd=null,vf=-1,Al=0;function Ar(){return zt&6?Dn():vf!==-1?vf:vf=Dn()}function Xo(a){return a.mode&1?zt&2&&br!==0?br&-br:cC.transition!==null?(Al===0&&(Al=sl()),Al):(a=Ht,a!==0||(a=window.event,a=a===void 0?16:_c(a.type)),a):1}function Zn(a,o,f,m){if(50<pf)throw pf=0,Gd=null,Error(i(185));gs(a,f,m),(!(zt&2)||a!==nr)&&(a===nr&&(!(zt&2)&&(zu|=f),Cr===4&&po(a,br)),xr(a,m),f===1&&zt===0&&!(o.mode&1)&&(Uu=Dn()+500,Ts&&oo()))}function xr(a,o){var f=a.callbackNode;ms(a,o);var m=eo(a,a===nr?br:0);if(m===0)f!==null&&jn(f),a.callbackNode=null,a.callbackPriority=0;else if(o=m&-m,a.callbackPriority!==o){if(f!=null&&jn(f),o===1)a.tag===0?dg($u.bind(null,a)):cd($u.bind(null,a)),cg(function(){!(zt&6)&&oo()}),f=null;else{switch(Tc(m)){case 1:f=bc;break;case 4:f=Ki;break;case 16:f=Lt;break;case 536870912:f=_o;break;default:f=Lt}f=Hg(f,Wd.bind(null,a))}a.callbackPriority=o,a.callbackNode=f}}function Wd(a,o){if(vf=-1,Al=0,zt&6)throw Error(i(327));var f=a.callbackNode;if(Gu()&&a.callbackNode!==f)return null;var m=eo(a,a===nr?br:0);if(m===0)return null;if(m&30||m&a.expiredLanes||o)o=Yd(a,m);else{o=m;var S=zt;zt|=2;var w=Pg();(nr!==a||br!==o)&&(Wo=null,Uu=Dn()+500,Dl(a,o));do try{xC();break}catch(W){Lg(a,W)}while(!0);Nv(),_l.current=w,zt=S,zn!==null?o=0:(nr=null,br=0,o=Cr)}if(o!==0){if(o===2&&(S=to(a),S!==0&&(m=S,o=jl(a,S))),o===1)throw f=df,Dl(a,0),po(a,m),xr(a,Dn()),f;if(o===6)po(a,m);else{if(S=a.current.alternate,!(m&30)&&!Yv(S)&&(o=Yd(a,m),o===2&&(w=to(a),w!==0&&(m=w,o=jl(a,w))),o===1))throw f=df,Dl(a,0),po(a,m),xr(a,Dn()),f;switch(a.finishedWork=S,a.finishedLanes=m,o){case 0:case 1:throw Error(i(345));case 2:Fs(a,Qr,Wo);break;case 3:if(po(a,m),(m&130023424)===m&&(o=Ud+500-Dn(),10<o)){if(eo(a,0)!==0)break;if(S=a.suspendedLanes,(S&m)!==m){Ar(),a.pingedLanes|=a.suspendedLanes&S;break}a.timeoutHandle=$c(Fs.bind(null,a,Qr,Wo),o);break}Fs(a,Qr,Wo);break;case 4:if(po(a,m),(m&4194240)===m)break;for(o=a.eventTimes,S=-1;0<m;){var k=31-na(m);w=1<<k,k=o[k],k>S&&(S=k),m&=~w}if(m=S,m=Dn()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*bC(m/1960))-m,10<m){a.timeoutHandle=$c(Fs.bind(null,a,Qr,Wo),m);break}Fs(a,Qr,Wo);break;case 5:Fs(a,Qr,Wo);break;default:throw Error(i(329))}}}return xr(a,Dn()),a.callbackNode===f?Wd.bind(null,a):null}function jl(a,o){var f=Ps;return a.current.memoizedState.isDehydrated&&(Dl(a,o).flags|=256),a=Yd(a,o),a!==2&&(o=Qr,Qr=f,o!==null&&Xv(o)),a}function Xv(a){Qr===null?Qr=a:Qr.push.apply(Qr,a)}function Yv(a){for(var o=a;;){if(o.flags&16384){var f=o.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var m=0;m<f.length;m++){var S=f[m],w=S.getSnapshot;S=S.value;try{if(!Bi(w(),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 po(a,o){for(o&=~Gv,o&=~zu,a.suspendedLanes|=o,a.pingedLanes&=~o,a=a.expirationTimes;0<o;){var f=31-na(o),m=1<<f;a[f]=-1,o&=~m}}function $u(a){if(zt&6)throw Error(i(327));Gu();var o=eo(a,0);if(!(o&1))return xr(a,Dn()),null;var f=Yd(a,o);if(a.tag!==0&&f===2){var m=to(a);m!==0&&(o=m,f=jl(a,m))}if(f===1)throw f=df,Dl(a,0),po(a,o),xr(a,Dn()),f;if(f===6)throw Error(i(345));return a.finishedWork=a.current.alternate,a.finishedLanes=o,Fs(a,Qr,Wo),xr(a,Dn()),null}function Zv(a,o){var f=zt;zt|=1;try{return a(o)}finally{zt=f,zt===0&&(Uu=Dn()+500,Ts&&oo())}}function vo(a){Ci!==null&&Ci.tag===0&&!(zt&6)&&Gu();var o=zt;zt|=1;var f=yi.transition,m=Ht;try{if(yi.transition=null,Ht=1,a)return a()}finally{Ht=m,yi.transition=f,zt=o,!(zt&6)&&oo()}}function Xd(){Da=Bu.current,st(Bu)}function Dl(a,o){a.finishedWork=null,a.finishedLanes=0;var f=a.timeoutHandle;if(f!==-1&&(a.timeoutHandle=-1,Gc(f)),zn!==null)for(f=zn.return;f!==null;){var m=f;switch(dd(m),m.tag){case 1:m=m.type.childContextTypes,m!=null&&wa();break;case 3:Tu(),st(Ot),st(Nr),hi();break;case 5:mt(m);break;case 4:Tu();break;case 13:st(ut);break;case 19:st(ut);break;case 10:_v(m.type._context);break;case 22:case 23:Xd()}f=f.return}if(nr=a,zn=a=Vs(a.current,null),br=Da=o,Cr=0,df=null,Gv=zu=Ol=0,Qr=Ps=null,Jr!==null){for(o=0;o<Jr.length;o++)if(f=Jr[o],m=f.interleaved,m!==null){f.interleaved=null;var S=m.next,w=f.pending;if(w!==null){var k=w.next;w.next=S,m.next=k}f.pending=m}Jr=null}return a}function Lg(a,o){do{var f=zn;try{if(Nv(),Kc.current=Ad,sr){for(var m=Yn.memoizedState;m!==null;){var S=m.queue;S!==null&&(S.pending=null),m=m.next}sr=!1}if(Cl=0,Ee=or=Yn=null,bt=!1,uo=0,zd.current=null,f===null||f.return===null){Cr=1,df=o,zn=null;break}e:{var w=a,k=f.return,W=f,Q=o;if(o=br,W.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var pe=Q,Me=W,Pe=Me.tag;if(!(Me.mode&1)&&(Pe===0||Pe===11||Pe===15)){var De=Me.alternate;De?(Me.updateQueue=De.updateQueue,Me.memoizedState=De.memoizedState,Me.lanes=De.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var Ye=Ig(k);if(Ye!==null){Ye.flags&=-257,Fv(Ye,k,W,w,o),Ye.mode&1&&sf(w,pe,o),o=Ye,Q=pe;var nt=o.updateQueue;if(nt===null){var ot=new Set;ot.add(Q),o.updateQueue=ot}else nt.add(Q);break e}else{if(!(o&1)){sf(w,pe,o),hf();break e}Q=Error(i(426))}}else if(Bn&&W.mode&1){var cr=Ig(k);if(cr!==null){!(cr.flags&65536)&&(cr.flags|=256),Fv(cr,k,W,w,o),hr(Ms(Q,W));break e}}w=Q=Ms(Q,W),Cr!==4&&(Cr=2),Ps===null?Ps=[w]:Ps.push(w),w=k;do{switch(w.tag){case 3:w.flags|=65536,o&=-o,w.lanes|=o;var ae=Rg(w,Q,o);mg(w,ae);break e;case 1:W=Q;var ee=w.type,se=w.stateNode;if(!(w.flags&128)&&(typeof ee.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(bi===null||!bi.has(se)))){w.flags|=65536,o&=-o,w.lanes|=o;var ze=Tg(w,W,o);mg(w,ze);break e}}w=w.return}while(w!==null)}Vg(f)}catch(lt){o=lt,zn===f&&f!==null&&(zn=f=f.return);continue}break}while(!0)}function Pg(){var a=_l.current;return _l.current=Ad,a===null?Ad:a}function hf(){(Cr===0||Cr===3||Cr===2)&&(Cr=4),nr===null||!(Ol&268435455)&&!(zu&268435455)||po(nr,br)}function Yd(a,o){var f=zt;zt|=2;var m=Pg();(nr!==a||br!==o)&&(Wo=null,Dl(a,o));do try{CC();break}catch(S){Lg(a,S)}while(!0);if(Nv(),zt=f,_l.current=m,zn!==null)throw Error(i(261));return nr=null,br=0,Cr}function CC(){for(;zn!==null;)Fg(zn)}function xC(){for(;zn!==null&&!Yr();)Fg(zn)}function Fg(a){var o=Ug(a.alternate,a,Da);a.memoizedProps=a.pendingProps,o===null?Vg(a):zn=o,zd.current=null}function Vg(a){var o=a;do{var f=o.alternate;if(a=o.return,o.flags&32768){if(f=mC(f,o),f!==null){f.flags&=32767,zn=f;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Cr=6,zn=null;return}}else if(f=hC(f,o,Da),f!==null){zn=f;return}if(o=o.sibling,o!==null){zn=o;return}zn=o=a}while(o!==null);Cr===0&&(Cr=5)}function Fs(a,o,f){var m=Ht,S=yi.transition;try{yi.transition=null,Ht=1,SC(a,o,f,m)}finally{yi.transition=S,Ht=m}return null}function SC(a,o,f,m){do Gu();while(Ci!==null);if(zt&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 w=f.lanes|f.childLanes;if(wc(a,w),a===nr&&(zn=nr=null,br=0),!(f.subtreeFlags&2064)&&!(f.flags&2064)||Hu||(Hu=!0,Hg(Lt,function(){return Gu(),null})),w=(f.flags&15990)!==0,f.subtreeFlags&15990||w){w=yi.transition,yi.transition=null;var k=Ht;Ht=1;var W=zt;zt|=4,zd.current=null,gC(a,f),kg(f,a),dl(bv),uu=!!yv,bv=yv=null,a.current=f,yC(f),Qi(),zt=W,Ht=k,yi.transition=w}else a.current=f;if(Hu&&(Hu=!1,Ci=a,$d=S),w=a.pendingLanes,w===0&&(bi=null),Cc(f.stateNode),xr(a,Dn()),o!==null)for(m=a.onRecoverableError,f=0;f<o.length;f++)S=o[f],m(S.value,{componentStack:S.stack,digest:S.digest});if(Hd)throw Hd=!1,a=Wv,Wv=null,a;return $d&1&&a.tag!==0&&Gu(),w=a.pendingLanes,w&1?a===Gd?pf++:(pf=0,Gd=a):pf=0,oo(),null}function Gu(){if(Ci!==null){var a=Tc($d),o=yi.transition,f=Ht;try{if(yi.transition=null,Ht=16>a?16:a,Ci===null)var m=!1;else{if(a=Ci,Ci=null,$d=0,zt&6)throw Error(i(331));var S=zt;for(zt|=4,Ke=a.current;Ke!==null;){var w=Ke,k=w.child;if(Ke.flags&16){var W=w.deletions;if(W!==null){for(var Q=0;Q<W.length;Q++){var pe=W[Q];for(Ke=pe;Ke!==null;){var Me=Ke;switch(Me.tag){case 0:case 11:case 15:Mu(8,Me,w)}var Pe=Me.child;if(Pe!==null)Pe.return=Me,Ke=Pe;else for(;Ke!==null;){Me=Ke;var De=Me.sibling,Ye=Me.return;if(jg(Me),Me===pe){Ke=null;break}if(De!==null){De.return=Ye,Ke=De;break}Ke=Ye}}}var nt=w.alternate;if(nt!==null){var ot=nt.child;if(ot!==null){nt.child=null;do{var cr=ot.sibling;ot.sibling=null,ot=cr}while(ot!==null)}}Ke=w}}if(w.subtreeFlags&2064&&k!==null)k.return=w,Ke=k;else e:for(;Ke!==null;){if(w=Ke,w.flags&2048)switch(w.tag){case 0:case 11:case 15:Mu(9,w,w.return)}var ae=w.sibling;if(ae!==null){ae.return=w.return,Ke=ae;break e}Ke=w.return}}var ee=a.current;for(Ke=ee;Ke!==null;){k=Ke;var se=k.child;if(k.subtreeFlags&2064&&se!==null)se.return=k,Ke=se;else e:for(k=ee;Ke!==null;){if(W=Ke,W.flags&2048)try{switch(W.tag){case 0:case 11:case 15:Vd(9,W)}}catch(lt){rr(W,W.return,lt)}if(W===k){Ke=null;break e}var ze=W.sibling;if(ze!==null){ze.return=W.return,Ke=ze;break e}Ke=W.return}}if(zt=S,oo(),Ca&&typeof Ca.onPostCommitFiberRoot=="function")try{Ca.onPostCommitFiberRoot(hs,a)}catch{}m=!0}return m}finally{Ht=f,yi.transition=o}}return!1}function Bg(a,o,f){o=Ms(f,o),o=Rg(a,o,1),a=As(a,o,1),o=Ar(),a!==null&&(gs(a,1,o),xr(a,o))}function rr(a,o,f){if(a.tag===3)Bg(a,a,f);else for(;o!==null;){if(o.tag===3){Bg(o,a,f);break}else if(o.tag===1){var m=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(bi===null||!bi.has(m))){a=Ms(f,a),a=Tg(o,a,1),o=As(o,a,1),a=Ar(),o!==null&&(gs(o,1,a),xr(o,a));break}}o=o.return}}function EC(a,o,f){var m=a.pingCache;m!==null&&m.delete(o),o=Ar(),a.pingedLanes|=a.suspendedLanes&f,nr===a&&(br&f)===f&&(Cr===4||Cr===3&&(br&130023424)===br&&500>Dn()-Ud?Dl(a,0):Gv|=f),xr(a,o)}function zg(a,o){o===0&&(a.mode&1?(o=iu,iu<<=1,!(iu&130023424)&&(iu=4194304)):o=1);var f=Ar();a=Ho(a,o),a!==null&&(gs(a,o,f),xr(a,f))}function Jv(a){var o=a.memoizedState,f=0;o!==null&&(f=o.retryLane),zg(a,f)}function wC(a,o){var f=0;switch(a.tag){case 13:var m=a.stateNode,S=a.memoizedState;S!==null&&(f=S.retryLane);break;case 19:m=a.stateNode;break;default:throw Error(i(314))}m!==null&&m.delete(o),zg(a,f)}var Ug;Ug=function(a,o,f){if(a!==null)if(a.memoizedProps!==o.pendingProps||Ot.current)Aa=!0;else{if(!(a.lanes&f)&&!(o.flags&128))return Aa=!1,Go(a,o,f);Aa=!!(a.flags&131072)}else Aa=!1,Bn&&o.flags&1048576&&Ns(o,gl,o.index);switch(o.lanes=0,o.tag){case 2:var m=o.type;cf(a,o),a=o.pendingProps;var S=Wa(o,Nr.current);ir(o,f),S=xl(null,o,m,a,S,f);var w=Ds();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,vr(m)?(w=!0,ml(o)):w=!1,o.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Ov(o),S.updater=md,o.stateNode=S,S._reactInternals=o,jv(o,m,a,f),o=Dd(null,o,m,!0,w,f)):(o.tag=0,Bn&&w&&fd(o),lr(null,o,S,f),o=o.child),o;case 16:m=o.elementType;e:{switch(cf(a,o),a=o.pendingProps,S=m._init,m=S(m._payload),o.type=m,S=o.tag=RC(m),a=Na(m,a),S){case 0:o=Dt(null,o,m,a,f);break e;case 1:o=lf(null,o,m,a,f);break e;case 11:o=Ou(null,o,m,a,f);break e;case 14:o=Ls(null,o,m,Na(m.type,a),f);break e}throw Error(i(306,m,""))}return o;case 0:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),Dt(a,o,m,S,f);case 1:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),lf(a,o,m,S,f);case 3:e:{if(vC(o),a===null)throw Error(i(387));m=o.pendingProps,w=o.memoizedState,S=w.element,hg(a,o),Zc(o,m,null,f);var k=o.memoizedState;if(m=k.element,w.isDehydrated)if(w={element:m,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},o.updateQueue.baseState=w,o.memoizedState=w,o.flags&256){S=Ms(Error(i(423)),o),o=_g(a,o,m,f,S);break e}else if(m!==S){S=Ms(Error(i(424)),o),o=_g(a,o,m,f,S);break e}else for(Ya=Ga(o.stateNode.containerInfo.firstChild),Xa=o,Bn=!0,pi=null,f=Sg(o,null,m,f),o.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(bu(),m===S){o=ur(a,o,f);break e}lr(a,o,m,f)}o=o.child}return o;case 5:return gd(o),a===null&&pd(o),m=o.type,S=o.pendingProps,w=a!==null?a.memoizedProps:null,k=S.children,hl(m,S)?k=null:w!==null&&hl(m,w)&&(o.flags|=32),Il(a,o),lr(a,o,k,f),o.child;case 6:return a===null&&pd(o),null;case 13:return Og(a,o,f);case 4:return Dv(o,o.stateNode.containerInfo),m=o.pendingProps,a===null?o.child=wu(o,null,m,f):lr(a,o,m,f),o.child;case 11:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),Ou(a,o,m,S,f);case 7:return lr(a,o,o.pendingProps,f),o.child;case 8:return lr(a,o,o.pendingProps.children,f),o.child;case 12:return lr(a,o,o.pendingProps.children,f),o.child;case 10:e:{if(m=o.type._context,S=o.pendingProps,w=o.memoizedProps,k=S.value,tn(Cu,m._currentValue),m._currentValue=k,w!==null)if(Bi(w.value,k)){if(w.children===S.children&&!Ot.current){o=ur(a,o,f);break e}}else for(w=o.child,w!==null&&(w.return=o);w!==null;){var W=w.dependencies;if(W!==null){k=w.child;for(var Q=W.firstContext;Q!==null;){if(Q.context===m){if(w.tag===1){Q=kn(-1,f&-f),Q.tag=2;var pe=w.updateQueue;if(pe!==null){pe=pe.shared;var Me=pe.pending;Me===null?Q.next=Q:(Q.next=Me.next,Me.next=Q),pe.pending=Q}}w.lanes|=f,Q=w.alternate,Q!==null&&(Q.lanes|=f),_s(w.return,f,o),W.lanes|=f;break}Q=Q.next}}else if(w.tag===10)k=w.type===o.type?null:w.child;else if(w.tag===18){if(k=w.return,k===null)throw Error(i(341));k.lanes|=f,W=k.alternate,W!==null&&(W.lanes|=f),_s(k,f,o),k=w.sibling}else k=w.child;if(k!==null)k.return=w;else for(k=w;k!==null;){if(k===o){k=null;break}if(w=k.sibling,w!==null){w.return=k.return,k=w;break}k=k.return}w=k}lr(a,o,S.children,f),o=o.child}return o;case 9:return S=o.type,m=o.pendingProps.children,ir(o,f),S=Ue(S),m=m(S),o.flags|=1,lr(a,o,m,f),o.child;case 14:return m=o.type,S=Na(m,o.pendingProps),S=Na(m.type,S),Ls(a,o,m,S,f);case 15:return jd(a,o,o.type,o.pendingProps,f);case 17:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),cf(a,o),o.tag=1,vr(m)?(a=!0,ml(o)):a=!1,ir(o,f),yg(o,m,S),jv(o,m,S,f),Dd(null,o,m,!0,a,f);case 19:return Bv(a,o,f);case 22:return ja(a,o,f)}throw Error(i(156,o.tag))};function Hg(a,o){return An(a,o)}function $g(a,o,f,m){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=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xi(a,o,f,m){return new $g(a,o,f,m)}function qv(a){return a=a.prototype,!(!a||!a.isReactComponent)}function RC(a){if(typeof a=="function")return qv(a)?1:0;if(a!=null){if(a=a.$$typeof,a===fe)return 11;if(a===xe)return 14}return 2}function Vs(a,o){var f=a.alternate;return f===null?(f=xi(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 Zd(a,o,f,m,S,w){var k=2;if(m=a,typeof a=="function")qv(a)&&(k=1);else if(typeof a=="string")k=5;else e:switch(a){case J:return kl(f.children,S,w,o);case q:k=8,S|=8;break;case Re:return a=xi(12,f,o,S|2),a.elementType=Re,a.lanes=w,a;case Oe:return a=xi(13,f,o,S),a.elementType=Oe,a.lanes=w,a;case Te:return a=xi(19,f,o,S),a.elementType=Te,a.lanes=w,a;case Le:return Jd(f,S,w,o);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case he:k=10;break e;case ge:k=9;break e;case fe:k=11;break e;case xe:k=14;break e;case je:k=16,m=null;break e}throw Error(i(130,a==null?a:typeof a,""))}return o=xi(k,f,o,S),o.elementType=a,o.type=m,o.lanes=w,o}function kl(a,o,f,m){return a=xi(7,a,m,o),a.lanes=f,a}function Jd(a,o,f,m){return a=xi(22,a,m,o),a.elementType=Le,a.lanes=f,a.stateNode={isHidden:!1},a}function qd(a,o,f){return a=xi(6,a,null,o),a.lanes=f,a}function mf(a,o,f){return o=xi(4,a.children!==null?a.children:[],a.key,o),o.lanes=f,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function gf(a,o,f,m,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=ll(0),this.expirationTimes=ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ll(0),this.identifierPrefix=m,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function Qv(a,o,f,m,S,w,k,W,Q){return a=new gf(a,o,f,W,Q),o===1?(o=1,w===!0&&(o|=8)):o=0,w=xi(3,null,null,o),a.current=w,w.stateNode=a,w.memoizedState={element:m,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ov(w),a}function Gg(a,o,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:H,key:m==null?null:""+m,children:a,containerInfo:o,implementation:f}}function Kv(a){if(!a)return ci;a=a._reactInternals;e:{if(We(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(vr(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(vr(f))return Rs(a,f,o)}return o}function eh(a,o,f,m,S,w,k,W,Q){return a=Qv(f,m,!0,a,S,w,k,W,Q),a.context=Kv(null),f=a.current,m=Ar(),S=Xo(f),w=kn(m,S),w.callback=o??null,As(f,w,S),a.current.lanes=S,gs(a,S,m),xr(a,m),a}function Qd(a,o,f,m){var S=o.current,w=Ar(),k=Xo(S);return f=Kv(f),o.context===null?o.context=f:o.pendingContext=f,o=kn(w,k),o.payload={element:a},m=m===void 0?null:m,m!==null&&(o.callback=m),a=As(S,o,k),a!==null&&(Zn(a,S,k,w),hd(a,S,k)),k}function yf(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 Wg(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<o?f:o}}function th(a,o){Wg(a,o),(a=a.alternate)&&Wg(a,o)}function TC(){return null}var nh=typeof reportError=="function"?reportError:function(a){console.error(a)};function Kd(a){this._internalRoot=a}bf.prototype.render=Kd.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(i(409));Qd(a,o,null,null)},bf.prototype.unmount=Kd.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;vo(function(){Qd(null,a,null,null)}),o[zi]=null}};function bf(a){this._internalRoot=a}bf.prototype.unstable_scheduleHydration=function(a){if(a){var o=Yt();a={blockedOn:null,target:a,priority:o};for(var f=0;f<Fn.length&&o!==0&&o<Fn[f].priority;f++);Fn.splice(f,0,a),f===0&&Fi(a)}};function Bs(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function ep(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function Xg(){}function IC(a,o,f,m,S){if(S){if(typeof m=="function"){var w=m;m=function(){var pe=yf(k);w.call(pe)}}var k=eh(o,m,a,0,null,!1,!1,"",Xg);return a._reactRootContainer=k,a[zi]=k.current,ro(a.nodeType===8?a.parentNode:a),vo(),k}for(;S=a.lastChild;)a.removeChild(S);if(typeof m=="function"){var W=m;m=function(){var pe=yf(Q);W.call(pe)}}var Q=Qv(a,0,!1,null,null,!1,!1,"",Xg);return a._reactRootContainer=Q,a[zi]=Q.current,ro(a.nodeType===8?a.parentNode:a),vo(function(){Qd(o,Q,f,m)}),Q}function tp(a,o,f,m,S){var w=f._reactRootContainer;if(w){var k=w;if(typeof S=="function"){var W=S;S=function(){var Q=yf(k);W.call(Q)}}Qd(o,k,a,S)}else k=IC(f,o,a,S,m);return yf(k)}ou=function(a){switch(a.tag){case 3:var o=a.stateNode;if(o.current.memoizedState.isDehydrated){var f=Oo(o.pendingLanes);f!==0&&(Rc(o,f|1),xr(o,Dn()),!(zt&6)&&(Uu=Dn()+500,oo()))}break;case 13:vo(function(){var m=Ho(a,1);if(m!==null){var S=Ar();Zn(m,a,1,S)}}),th(a,1)}},ys=function(a){if(a.tag===13){var o=Ho(a,134217728);if(o!==null){var f=Ar();Zn(o,a,134217728,f)}th(a,134217728)}},Ic=function(a){if(a.tag===13){var o=Xo(a),f=Ho(a,o);if(f!==null){var m=Ar();Zn(f,a,o,m)}th(a,o)}},Yt=function(){return Ht},su=function(a,o){var f=Ht;try{return Ht=a,o()}finally{Ht=f}},pn=function(a,o,f){switch(o){case"input":if(on(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 m=f[o];if(m!==a&&m.form===a.form){var S=ud(m);if(!S)throw Error(i(90));ft(m),on(m,S)}}}break;case"textarea":$n(a,f);break;case"select":o=f.value,o!=null&&Cn(a,!!f.multiple,o,!1)}},ps=Zv,rl=vo;var NC={usingClientEntryPoint:!1,Events:[ao,yu,ud,ki,ai,Zv]},Cf={findFiberByHostInstance:zo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Yg={bundleType:Cf.bundleType,version:Cf.version,rendererPackageName:Cf.rendererPackageName,rendererConfig:Cf.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:Cf.findFiberByHostInstance||TC,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 np=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!np.isDisabled&&np.supportsFiber)try{hs=np.inject(Yg),Ca=np}catch{}}return Ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=NC,Ii.createPortal=function(a,o){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bs(o))throw Error(i(200));return Gg(a,o,null,f)},Ii.createRoot=function(a,o){if(!Bs(a))throw Error(i(299));var f=!1,m="",S=nh;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onRecoverableError!==void 0&&(S=o.onRecoverableError)),o=Qv(a,1,!1,null,null,f,!1,m,S),a[zi]=o.current,ro(a.nodeType===8?a.parentNode:a),new Kd(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 vo(a)},Ii.hydrate=function(a,o,f){if(!ep(o))throw Error(i(200));return tp(null,a,o,!0,f)},Ii.hydrateRoot=function(a,o,f){if(!Bs(a))throw Error(i(405));var m=f!=null&&f.hydratedSources||null,S=!1,w="",k=nh;if(f!=null&&(f.unstable_strictMode===!0&&(S=!0),f.identifierPrefix!==void 0&&(w=f.identifierPrefix),f.onRecoverableError!==void 0&&(k=f.onRecoverableError)),o=eh(o,null,a,1,f??null,S,!1,w,k),a[zi]=o.current,ro(a),m)for(a=0;a<m.length;a++)f=m[a],S=f._getVersion,S=S(f._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[f,S]:o.mutableSourceEagerHydrationData.push(f,S);return new bf(o)},Ii.render=function(a,o,f){if(!ep(o))throw Error(i(200));return tp(null,a,o,!1,f)},Ii.unmountComponentAtNode=function(a){if(!ep(a))throw Error(i(40));return a._reactRootContainer?(vo(function(){tp(null,null,a,!1,function(){a._reactRootContainer=null,a[zi]=null})}),!0):!1},Ii.unstable_batchedUpdates=Zv,Ii.unstable_renderSubtreeIntoContainer=function(a,o,f,m){if(!ep(f))throw Error(i(200));if(a==null||a._reactInternals===void 0)throw Error(i(38));return tp(a,o,f,!1,m)},Ii.version="18.2.0-next-9e3b772b8-20220608",Ii}var Ni={},PN;function ez(){if(PN)return Ni;PN=1;var n={};/**
|
|
96
|
+
`+w.stack}return{value:a,source:o,stack:S,digest:null}}function Fv(a,o,f){return{value:a,source:null,stack:f??null,digest:o??null}}function of(a,o){try{console.error(o.value)}catch(f){setTimeout(function(){throw f})}}var wg=typeof WeakMap=="function"?WeakMap:Map;function Rg(a,o,f){f=kn(-1,f),f.tag=3,f.payload={element:null};var m=o.value;return f.callback=function(){Hd||(Hd=!0,Xv=m),of(a,o)},f}function Tg(a,o,f){f=kn(-1,f),f.tag=3;var m=a.type.getDerivedStateFromError;if(typeof m=="function"){var S=o.value;f.payload=function(){return m(S)},f.callback=function(){of(a,o)}}var w=a.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(f.callback=function(){of(a,o),typeof m!="function"&&(bi===null?bi=new Set([this]):bi.add(this));var k=o.stack;this.componentDidCatch(o.value,{componentStack:k!==null?k:""})}),f}function sf(a,o,f){var m=a.pingCache;if(m===null){m=a.pingCache=new wg;var S=new Set;m.set(o,S)}else S=m.get(o),S===void 0&&(S=new Set,m.set(o,S));S.has(f)||(S.add(f),a=SC.bind(null,a,o,f),o.then(a,a))}function Ig(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 Vv(a,o,f,m,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=kn(-1,1),o.tag=2,As(f,o,1))),f.lanes|=1),a)}var Ng=U.ReactCurrentOwner,Aa=!1;function lr(a,o,f,m){o.child=a===null?Sg(o,null,f,m):wu(o,a.child,f,m)}function Ou(a,o,f,m,S){f=f.render;var w=o.ref;return ir(o,S),m=xl(a,o,f,m,w,S),f=Ds(),a!==null&&!Aa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,ur(a,o,S)):(Bn&&f&&fd(o),o.flags|=1,lr(a,o,m,S),o.child)}function Ls(a,o,f,m,S){if(a===null){var w=f.type;return typeof w=="function"&&!Qv(w)&&w.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(o.tag=15,o.type=w,jd(a,o,w,m,S)):(a=Zd(f.type,null,m,o,o.mode,S),a.ref=o.ref,a.return=o,o.child=a)}if(w=a.child,!(a.lanes&S)){var k=w.memoizedProps;if(f=f.compare,f=f!==null?f:hu,f(k,m)&&a.ref===o.ref)return ur(a,o,S)}return o.flags|=1,a=Vs(w,m),a.ref=o.ref,a.return=o,o.child=a}function jd(a,o,f,m,S){if(a!==null){var w=a.memoizedProps;if(hu(w,m)&&a.ref===o.ref)if(Aa=!1,o.pendingProps=m=w,(a.lanes&S)!==0)a.flags&131072&&(Aa=!0);else return o.lanes=a.lanes,ur(a,o,S)}return Dt(a,o,f,m,S)}function ja(a,o,f){var m=o.pendingProps,S=m.children,w=a!==null?a.memoizedState:null;if(m.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},tn(Bu,Da),Da|=f;else{if(!(f&1073741824))return a=w!==null?w.baseLanes|f:f,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:a,cachePool:null,transitions:null},o.updateQueue=null,tn(Bu,Da),Da|=a,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=w!==null?w.baseLanes:f,tn(Bu,Da),Da|=m}else w!==null?(m=w.baseLanes|f,o.memoizedState=null):m=f,tn(Bu,Da),Da|=m;return lr(a,o,S,f),o.child}function Il(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,m,S){var w=vr(f)?ra:Nr.current;return w=Wa(o,w),ir(o,S),f=xl(a,o,f,m,w,S),m=Ds(),a!==null&&!Aa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,ur(a,o,S)):(Bn&&m&&fd(o),o.flags|=1,lr(a,o,f,S),o.child)}function lf(a,o,f,m,S){if(vr(f)){var w=!0;ml(o)}else w=!1;if(ir(o,S),o.stateNode===null)cf(a,o),yg(o,f,m),Dv(o,f,m,S),m=!0;else if(a===null){var k=o.stateNode,W=o.memoizedProps;k.props=W;var Q=k.context,pe=f.contextType;typeof pe=="object"&&pe!==null?pe=Ue(pe):(pe=vr(f)?ra:Nr.current,pe=Wa(o,pe));var Me=f.getDerivedStateFromProps,Pe=typeof Me=="function"||typeof k.getSnapshotBeforeUpdate=="function";Pe||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(W!==m||Q!==pe)&&bg(o,k,m,pe),Os=!1;var De=o.memoizedState;k.state=De,Zc(o,m,k,S),Q=o.memoizedState,W!==m||De!==Q||Ot.current||Os?(typeof Me=="function"&&(jv(o,f,Me,m),Q=o.memoizedState),(W=Os||gg(o,f,W,m,De,Q,pe))?(Pe||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(o.flags|=4194308)):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=m,o.memoizedState=Q),k.props=m,k.state=Q,k.context=pe,m=W):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),m=!1)}else{k=o.stateNode,hg(a,o),W=o.memoizedProps,pe=o.type===o.elementType?W:Na(o.type,W),k.props=pe,Pe=o.pendingProps,De=k.context,Q=f.contextType,typeof Q=="object"&&Q!==null?Q=Ue(Q):(Q=vr(f)?ra:Nr.current,Q=Wa(o,Q));var Ye=f.getDerivedStateFromProps;(Me=typeof Ye=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(W!==Pe||De!==Q)&&bg(o,k,m,Q),Os=!1,De=o.memoizedState,k.state=De,Zc(o,m,k,S);var nt=o.memoizedState;W!==Pe||De!==nt||Ot.current||Os?(typeof Ye=="function"&&(jv(o,f,Ye,m),nt=o.memoizedState),(pe=Os||gg(o,f,pe,m,De,nt,Q)||!1)?(Me||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(m,nt,Q),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(m,nt,Q)),typeof k.componentDidUpdate=="function"&&(o.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof k.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),o.memoizedProps=m,o.memoizedState=nt),k.props=m,k.state=nt,k.context=Q,m=pe):(typeof k.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),m=!1)}return Dd(a,o,f,m,w,S)}function Dd(a,o,f,m,S,w){Il(a,o);var k=(o.flags&128)!==0;if(!m&&!k)return S&&fg(o,f,!1),ur(a,o,w);m=o.stateNode,Ng.current=o;var W=k&&typeof f.getDerivedStateFromError!="function"?null:m.render();return o.flags|=1,a!==null&&k?(o.child=wu(o,a.child,null,w),o.child=wu(o,null,W,w)):lr(a,o,W,w),o.memoizedState=m.state,S&&fg(o,f,!0),o.child}function pC(a){var o=a.stateNode;o.pendingContext?io(a,o.pendingContext,o.pendingContext!==o.context):o.context&&io(a,o.context,!1),kv(a,o.containerInfo)}function _g(a,o,f,m,S){return bu(),hr(S),o.flags|=256,lr(a,o,f,m),o.child}var uf={dehydrated:null,treeContext:null,retryLane:0};function Nl(a){return{baseLanes:a,cachePool:null,transitions:null}}function Og(a,o,f){var m=o.pendingProps,S=ut.current,w=!1,k=(o.flags&128)!==0,W;if((W=k)||(W=a!==null&&a.memoizedState===null?!1:(S&2)!==0),W?(w=!0,o.flags&=-129):(a===null||a.memoizedState!==null)&&(S|=1),tn(ut,S&1),a===null)return pd(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):(k=m.children,a=m.fallback,w?(m=o.mode,w=o.child,k={mode:"hidden",children:k},!(m&1)&&w!==null?(w.childLanes=0,w.pendingProps=k):w=Jd(k,m,0,null),a=kl(a,m,f,null),w.return=o,a.return=o,w.sibling=a,o.child=w,o.child.memoizedState=Nl(f),o.memoizedState=uf,a):kd(o,k));if(S=a.memoizedState,S!==null&&(W=S.dehydrated,W!==null))return Bv(a,o,k,m,W,S,f);if(w){w=m.fallback,k=o.mode,S=a.child,W=S.sibling;var Q={mode:"hidden",children:m.children};return!(k&1)&&o.child!==S?(m=o.child,m.childLanes=0,m.pendingProps=Q,o.deletions=null):(m=Vs(S,Q),m.subtreeFlags=S.subtreeFlags&14680064),W!==null?w=Vs(W,w):(w=kl(w,k,f,null),w.flags|=2),w.return=o,m.return=o,m.sibling=w,o.child=m,m=w,w=o.child,k=a.child.memoizedState,k=k===null?Nl(f):{baseLanes:k.baseLanes|f,cachePool:null,transitions:k.transitions},w.memoizedState=k,w.childLanes=a.childLanes&~f,o.memoizedState=uf,m}return w=a.child,a=w.sibling,m=Vs(w,{mode:"visible",children:m.children}),!(o.mode&1)&&(m.lanes=f),m.return=o,m.sibling=null,a!==null&&(f=o.deletions,f===null?(o.deletions=[a],o.flags|=16):f.push(a)),o.child=m,o.memoizedState=null,m}function kd(a,o){return o=Jd({mode:"visible",children:o},a.mode,0,null),o.return=a,a.child=o}function Md(a,o,f,m){return m!==null&&hr(m),wu(o,a.child,null,f),a=kd(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function Bv(a,o,f,m,S,w,k){if(f)return o.flags&256?(o.flags&=-257,m=Fv(Error(i(422))),Md(a,o,k,m)):o.memoizedState!==null?(o.child=a.child,o.flags|=128,null):(w=m.fallback,S=o.mode,m=Jd({mode:"visible",children:m.children},S,0,null),w=kl(w,S,k,null),w.flags|=2,m.return=o,w.return=o,m.sibling=w,o.child=m,o.mode&1&&wu(o,a.child,null,k),o.child.memoizedState=Nl(k),o.memoizedState=uf,w);if(!(o.mode&1))return Md(a,o,k,null);if(S.data==="$!"){if(m=S.nextSibling&&S.nextSibling.dataset,m)var W=m.dgst;return m=W,w=Error(i(419)),m=Fv(w,m,void 0),Md(a,o,k,m)}if(W=(k&a.childLanes)!==0,Aa||W){if(m=nr,m!==null){switch(k&-k){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&(m.suspendedLanes|k)?0:S,S!==0&&S!==w.retryLane&&(w.retryLane=S,Ho(a,S),Zn(m,a,S,-1))}return hf(),m=Fv(Error(i(421))),Md(a,o,k,m)}return S.data==="$?"?(o.flags|=128,o.child=a.child,o=qv.bind(null,a),S._reactRetry=o,null):(a=w.treeContext,Ya=Ga(S.nextSibling),Xa=o,Bn=!0,pi=null,a!==null&&(Ra[Ta++]=Ia,Ra[Ta++]=Pr,Ra[Ta++]=Hi,Ia=a.id,Pr=a.overflow,Hi=o),o=kd(o,m.children),o.flags|=4096,o)}function Ag(a,o,f){a.lanes|=o;var m=a.alternate;m!==null&&(m.lanes|=o),_s(a.return,o,f)}function Ld(a,o,f,m,S){var w=a.memoizedState;w===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:S}:(w.isBackwards=o,w.rendering=null,w.renderingStartTime=0,w.last=m,w.tail=f,w.tailMode=S)}function zv(a,o,f){var m=o.pendingProps,S=m.revealOrder,w=m.tail;if(lr(a,o,m.children,f),m=ut.current,m&2)m=m&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&&Ag(a,f,o);else if(a.tag===19)Ag(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}m&=1}if(tn(ut,m),!(o.mode&1))o.memoizedState=null;else switch(S){case"forwards":for(f=o.child,S=null;f!==null;)a=f.alternate,a!==null&&Qt(a)===null&&(S=f),f=f.sibling;f=S,f===null?(S=o.child,o.child=null):(S=f.sibling,f.sibling=null),Ld(o,!1,S,f,w);break;case"backwards":for(f=null,S=o.child,o.child=null;S!==null;){if(a=S.alternate,a!==null&&Qt(a)===null){o.child=S;break}a=S.sibling,S.sibling=f,f=S,S=a}Ld(o,!0,f,null,w);break;case"together":Ld(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function cf(a,o){!(o.mode&1)&&a!==null&&(a.alternate=null,o.alternate=null,o.flags|=2)}function ur(a,o,f){if(a!==null&&(o.dependencies=a.dependencies),Ol|=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=Vs(a,a.pendingProps),o.child=f,f.return=o;a.sibling!==null;)a=a.sibling,f=f.sibling=Vs(a,a.pendingProps),f.return=o;f.sibling=null}return o.child}function Go(a,o,f){switch(o.tag){case 3:pC(o),bu();break;case 5:gd(o);break;case 1:vr(o.type)&&ml(o);break;case 4:kv(o,o.stateNode.containerInfo);break;case 10:var m=o.type._context,S=o.memoizedProps.value;tn(Cu,m._currentValue),m._currentValue=S;break;case 13:if(m=o.memoizedState,m!==null)return m.dehydrated!==null?(tn(ut,ut.current&1),o.flags|=128,null):f&o.child.childLanes?Og(a,o,f):(tn(ut,ut.current&1),a=ur(a,o,f),a!==null?a.sibling:null);tn(ut,ut.current&1);break;case 19:if(m=(f&o.childLanes)!==0,a.flags&128){if(m)return zv(a,o,f);o.flags|=128}if(S=o.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),tn(ut,ut.current),m)break;return null;case 22:case 23:return o.lanes=0,ja(a,o,f)}return ur(a,o,f)}var co,Au,ju,gi;co=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}},Au=function(){},ju=function(a,o,f,m){var S=a.memoizedProps;if(S!==m){a=o.stateNode,js(lo.current);var w=null;switch(f){case"input":S=It(a,S),m=It(a,m),w=[];break;case"select":S=G({},S,{value:void 0}),m=G({},m,{value:void 0}),w=[];break;case"textarea":S=qn(a,S),m=qn(a,m),w=[];break;default:typeof S.onClick!="function"&&typeof m.onClick=="function"&&(a.onclick=ld)}en(f,m);var k;f=null;for(pe in S)if(!m.hasOwnProperty(pe)&&S.hasOwnProperty(pe)&&S[pe]!=null)if(pe==="style"){var W=S[pe];for(k in W)W.hasOwnProperty(k)&&(f||(f={}),f[k]="")}else pe!=="dangerouslySetInnerHTML"&&pe!=="children"&&pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&pe!=="autoFocus"&&(l.hasOwnProperty(pe)?w||(w=[]):(w=w||[]).push(pe,null));for(pe in m){var Q=m[pe];if(W=S!=null?S[pe]:void 0,m.hasOwnProperty(pe)&&Q!==W&&(Q!=null||W!=null))if(pe==="style")if(W){for(k in W)!W.hasOwnProperty(k)||Q&&Q.hasOwnProperty(k)||(f||(f={}),f[k]="");for(k in Q)Q.hasOwnProperty(k)&&W[k]!==Q[k]&&(f||(f={}),f[k]=Q[k])}else f||(w||(w=[]),w.push(pe,f)),f=Q;else pe==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,W=W?W.__html:void 0,Q!=null&&W!==Q&&(w=w||[]).push(pe,Q)):pe==="children"?typeof Q!="string"&&typeof Q!="number"||(w=w||[]).push(pe,""+Q):pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&(l.hasOwnProperty(pe)?(Q!=null&&pe==="onScroll"&&Tn("scroll",a),w||W===Q||(w=[])):(w=w||[]).push(pe,Q))}f&&(w=w||[]).push("style",f);var pe=w;(o.updateQueue=pe)&&(o.flags|=4)}},gi=function(a,o,f,m){f!==m&&(o.flags|=4)};function tr(a,o){if(!Bn)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 m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function qr(a){var o=a.alternate!==null&&a.alternate.child===a.child,f=0,m=0;if(o)for(var S=a.child;S!==null;)f|=S.lanes|S.childLanes,m|=S.subtreeFlags&14680064,m|=S.flags&14680064,S.return=a,S=S.sibling;else for(S=a.child;S!==null;)f|=S.lanes|S.childLanes,m|=S.subtreeFlags,m|=S.flags,S.return=a,S=S.sibling;return a.subtreeFlags|=m,a.childLanes=f,o}function vC(a,o,f){var m=o.pendingProps;switch(dd(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 vr(o.type)&&wa(),qr(o),null;case 3:return m=o.stateNode,Tu(),st(Ot),st(Nr),hi(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(a===null||a.child===null)&&(vd(o)?o.flags|=4:a===null||a.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,pi!==null&&(Yv(pi),pi=null))),Au(a,o),qr(o),null;case 5:mt(o);var S=js(Qc.current);if(f=o.type,a!==null&&o.stateNode!=null)ju(a,o,f,m,S),a.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!m){if(o.stateNode===null)throw Error(i(166));return qr(o),null}if(a=js(lo.current),vd(o)){m=o.stateNode,f=o.type;var w=o.memoizedProps;switch(m[ui]=o,m[Xc]=w,a=(o.mode&1)!==0,f){case"dialog":Tn("cancel",m),Tn("close",m);break;case"iframe":case"object":case"embed":Tn("load",m);break;case"video":case"audio":for(S=0;S<Fo.length;S++)Tn(Fo[S],m);break;case"source":Tn("error",m);break;case"img":case"image":case"link":Tn("error",m),Tn("load",m);break;case"details":Tn("toggle",m);break;case"input":pt(m,w),Tn("invalid",m);break;case"select":m._wrapperState={wasMultiple:!!w.multiple},Tn("invalid",m);break;case"textarea":Rr(m,w),Tn("invalid",m)}en(f,w),S=null;for(var k in w)if(w.hasOwnProperty(k)){var W=w[k];k==="children"?typeof W=="string"?m.textContent!==W&&(w.suppressHydrationWarning!==!0&&Hc(m.textContent,W,a),S=["children",W]):typeof W=="number"&&m.textContent!==""+W&&(w.suppressHydrationWarning!==!0&&Hc(m.textContent,W,a),S=["children",""+W]):l.hasOwnProperty(k)&&W!=null&&k==="onScroll"&&Tn("scroll",m)}switch(f){case"input":tt(m),sn(m,w,!0);break;case"textarea":tt(m),Tr(m);break;case"select":case"option":break;default:typeof w.onClick=="function"&&(m.onclick=ld)}m=S,o.updateQueue=m,m!==null&&(o.flags|=4)}else{k=S.nodeType===9?S:S.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=xt(f)),a==="http://www.w3.org/1999/xhtml"?f==="script"?(a=k.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof m.is=="string"?a=k.createElement(f,{is:m.is}):(a=k.createElement(f),f==="select"&&(k=a,m.multiple?k.multiple=!0:m.size&&(k.size=m.size))):a=k.createElementNS(a,f),a[ui]=o,a[Xc]=m,co(a,o,!1,!1),o.stateNode=a;e:{switch(k=ar(f,m),f){case"dialog":Tn("cancel",a),Tn("close",a),S=m;break;case"iframe":case"object":case"embed":Tn("load",a),S=m;break;case"video":case"audio":for(S=0;S<Fo.length;S++)Tn(Fo[S],a);S=m;break;case"source":Tn("error",a),S=m;break;case"img":case"image":case"link":Tn("error",a),Tn("load",a),S=m;break;case"details":Tn("toggle",a),S=m;break;case"input":pt(a,m),S=It(a,m),Tn("invalid",a);break;case"option":S=m;break;case"select":a._wrapperState={wasMultiple:!!m.multiple},S=G({},m,{value:void 0}),Tn("invalid",a);break;case"textarea":Rr(a,m),S=qn(a,m),Tn("invalid",a);break;default:S=m}en(f,S),W=S;for(w in W)if(W.hasOwnProperty(w)){var Q=W[w];w==="style"?Mt(a,Q):w==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&Ba(a,Q)):w==="children"?typeof Q=="string"?(f!=="textarea"||Q!=="")&&za(a,Q):typeof Q=="number"&&za(a,""+Q):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(l.hasOwnProperty(w)?Q!=null&&w==="onScroll"&&Tn("scroll",a):Q!=null&&F(a,w,Q,k))}switch(f){case"input":tt(a),sn(a,m,!1);break;case"textarea":tt(a),Tr(a);break;case"option":m.value!=null&&a.setAttribute("value",""+we(m.value));break;case"select":a.multiple=!!m.multiple,w=m.value,w!=null?Cn(a,!!m.multiple,w,!1):m.defaultValue!=null&&Cn(a,!!m.multiple,m.defaultValue,!0);break;default:typeof S.onClick=="function"&&(a.onclick=ld)}switch(f){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}}m&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return qr(o),null;case 6:if(a&&o.stateNode!=null)gi(a,o,a.memoizedProps,m);else{if(typeof m!="string"&&o.stateNode===null)throw Error(i(166));if(f=js(Qc.current),js(lo.current),vd(o)){if(m=o.stateNode,f=o.memoizedProps,m[ui]=o,(w=m.nodeValue!==f)&&(a=Xa,a!==null))switch(a.tag){case 3:Hc(m.nodeValue,f,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Hc(m.nodeValue,f,(a.mode&1)!==0)}w&&(o.flags|=4)}else m=(f.nodeType===9?f:f.ownerDocument).createTextNode(m),m[ui]=o,o.stateNode=m}return qr(o),null;case 13:if(st(ut),m=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Bn&&Ya!==null&&o.mode&1&&!(o.flags&128))pg(),bu(),o.flags|=98560,w=!1;else if(w=vd(o),m!==null&&m.dehydrated!==null){if(a===null){if(!w)throw Error(i(318));if(w=o.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(i(317));w[ui]=o}else bu(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;qr(o),w=!1}else pi!==null&&(Yv(pi),pi=null),w=!0;if(!w)return o.flags&65536?o:null}return o.flags&128?(o.lanes=f,o):(m=m!==null,m!==(a!==null&&a.memoizedState!==null)&&m&&(o.child.flags|=8192,o.mode&1&&(a===null||ut.current&1?Cr===0&&(Cr=3):hf())),o.updateQueue!==null&&(o.flags|=4),qr(o),null);case 4:return Tu(),Au(a,o),a===null&&ro(o.stateNode.containerInfo),qr(o),null;case 10:return Ov(o.type._context),qr(o),null;case 17:return vr(o.type)&&wa(),qr(o),null;case 19:if(st(ut),w=o.memoizedState,w===null)return qr(o),null;if(m=(o.flags&128)!==0,k=w.rendering,k===null)if(m)tr(w,!1);else{if(Cr!==0||a!==null&&a.flags&128)for(a=o.child;a!==null;){if(k=Qt(a),k!==null){for(o.flags|=128,tr(w,!1),m=k.updateQueue,m!==null&&(o.updateQueue=m,o.flags|=4),o.subtreeFlags=0,m=f,f=o.child;f!==null;)w=f,a=m,w.flags&=14680066,k=w.alternate,k===null?(w.childLanes=0,w.lanes=a,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=k.childLanes,w.lanes=k.lanes,w.child=k.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=k.memoizedProps,w.memoizedState=k.memoizedState,w.updateQueue=k.updateQueue,w.type=k.type,a=k.dependencies,w.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),f=f.sibling;return tn(ut,ut.current&1|2),o.child}a=a.sibling}w.tail!==null&&Dn()>Uu&&(o.flags|=128,m=!0,tr(w,!1),o.lanes=4194304)}else{if(!m)if(a=Qt(k),a!==null){if(o.flags|=128,m=!0,f=a.updateQueue,f!==null&&(o.updateQueue=f,o.flags|=4),tr(w,!0),w.tail===null&&w.tailMode==="hidden"&&!k.alternate&&!Bn)return qr(o),null}else 2*Dn()-w.renderingStartTime>Uu&&f!==1073741824&&(o.flags|=128,m=!0,tr(w,!1),o.lanes=4194304);w.isBackwards?(k.sibling=o.child,o.child=k):(f=w.last,f!==null?f.sibling=k:o.child=k,w.last=k)}return w.tail!==null?(o=w.tail,w.rendering=o,w.tail=o.sibling,w.renderingStartTime=Dn(),o.sibling=null,f=ut.current,tn(ut,m?f&1|2:f&1),o):(qr(o),null);case 22:case 23:return Xd(),m=o.memoizedState!==null,a!==null&&a.memoizedState!==null!==m&&(o.flags|=8192),m&&o.mode&1?Da&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 hC(a,o){switch(dd(o),o.tag){case 1:return vr(o.type)&&wa(),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Tu(),st(Ot),st(Nr),hi(),a=o.flags,a&65536&&!(a&128)?(o.flags=a&-65537|128,o):null;case 5:return mt(o),null;case 13:if(st(ut),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(i(340));bu()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return st(ut),null;case 4:return Tu(),null;case 10:return Ov(o.type._context),null;case 22:case 23:return Xd(),null;case 24:return null;default:return null}}var Du=!1,Fr=!1,Pd=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function ku(a,o){var f=a.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(m){rr(a,o,m)}else f.current=null}function Uv(a,o,f){try{f()}catch(m){rr(a,o,m)}}var Fd=!1;function mC(a,o){if(bv=uu,a=Km(),Pc(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var m=f.getSelection&&f.getSelection();if(m&&m.rangeCount!==0){f=m.anchorNode;var S=m.anchorOffset,w=m.focusNode;m=m.focusOffset;try{f.nodeType,w.nodeType}catch{f=null;break e}var k=0,W=-1,Q=-1,pe=0,Me=0,Pe=a,De=null;t:for(;;){for(var Ye;Pe!==f||S!==0&&Pe.nodeType!==3||(W=k+S),Pe!==w||m!==0&&Pe.nodeType!==3||(Q=k+m),Pe.nodeType===3&&(k+=Pe.nodeValue.length),(Ye=Pe.firstChild)!==null;)De=Pe,Pe=Ye;for(;;){if(Pe===a)break t;if(De===f&&++pe===S&&(W=k),De===w&&++Me===m&&(Q=k),(Ye=Pe.nextSibling)!==null)break;Pe=De,De=Pe.parentNode}Pe=Ye}f=W===-1||Q===-1?null:{start:W,end:Q}}else f=null}f=f||{start:0,end:0}}else f=null;for(Cv={focusedElem:a,selectionRange:f},uu=!1,Ke=o;Ke!==null;)if(o=Ke,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Ke=a;else for(;Ke!==null;){o=Ke;try{var nt=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(nt!==null){var ot=nt.memoizedProps,cr=nt.memoizedState,ae=o.stateNode,ee=ae.getSnapshotBeforeUpdate(o.elementType===o.type?ot:Na(o.type,ot),cr);ae.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var se=o.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ze){rr(o,o.return,ze)}if(a=o.sibling,a!==null){a.return=o.return,Ke=a;break}Ke=o.return}return nt=Fd,Fd=!1,nt}function Mu(a,o,f){var m=o.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var S=m=m.next;do{if((S.tag&a)===a){var w=S.destroy;S.destroy=void 0,w!==void 0&&Uv(o,f,w)}S=S.next}while(S!==m)}}function Vd(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 m=f.create;f.destroy=m()}f=f.next}while(f!==o)}}function Bd(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 jg(a){var o=a.alternate;o!==null&&(a.alternate=null,jg(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&(delete o[ui],delete o[Xc],delete o[wv],delete o[sC],delete o[lC])),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 Hv(a){return a.tag===5||a.tag===3||a.tag===4}function Dg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Hv(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 ff(a,o,f){var m=a.tag;if(m===5||m===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=ld));else if(m!==4&&(a=a.child,a!==null))for(ff(a,o,f),a=a.sibling;a!==null;)ff(a,o,f),a=a.sibling}function Lu(a,o,f){var m=a.tag;if(m===5||m===6)a=a.stateNode,o?f.insertBefore(a,o):f.appendChild(a);else if(m!==4&&(a=a.child,a!==null))for(Lu(a,o,f),a=a.sibling;a!==null;)Lu(a,o,f),a=a.sibling}var Hn=null,_r=!1;function aa(a,o,f){for(f=f.child;f!==null;)Pu(a,o,f),f=f.sibling}function Pu(a,o,f){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(hs,f)}catch{}switch(f.tag){case 5:Fr||ku(f,o);case 6:var m=Hn,S=_r;Hn=null,aa(a,o,f),Hn=m,_r=S,Hn!==null&&(_r?(a=Hn,f=f.stateNode,a.nodeType===8?a.parentNode.removeChild(f):a.removeChild(f)):Hn.removeChild(f.stateNode));break;case 18:Hn!==null&&(_r?(a=Hn,f=f.stateNode,a.nodeType===8?Ev(a.parentNode,f):a.nodeType===1&&Ev(a,f),li(a)):Ev(Hn,f.stateNode));break;case 4:m=Hn,S=_r,Hn=f.stateNode.containerInfo,_r=!0,aa(a,o,f),Hn=m,_r=S;break;case 0:case 11:case 14:case 15:if(!Fr&&(m=f.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){S=m=m.next;do{var w=S,k=w.destroy;w=w.tag,k!==void 0&&(w&2||w&4)&&Uv(f,o,k),S=S.next}while(S!==m)}aa(a,o,f);break;case 1:if(!Fr&&(ku(f,o),m=f.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=f.memoizedProps,m.state=f.memoizedState,m.componentWillUnmount()}catch(W){rr(f,o,W)}aa(a,o,f);break;case 21:aa(a,o,f);break;case 22:f.mode&1?(Fr=(m=Fr)||f.memoizedState!==null,aa(a,o,f),Fr=m):aa(a,o,f);break;default:aa(a,o,f)}}function Fu(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var f=a.stateNode;f===null&&(f=a.stateNode=new Pd),o.forEach(function(m){var S=EC.bind(null,a,m);f.has(m)||(f.add(m),m.then(S,S))})}}function Or(a,o){var f=o.deletions;if(f!==null)for(var m=0;m<f.length;m++){var S=f[m];try{var w=a,k=o,W=k;e:for(;W!==null;){switch(W.tag){case 5:Hn=W.stateNode,_r=!1;break e;case 3:Hn=W.stateNode.containerInfo,_r=!0;break e;case 4:Hn=W.stateNode.containerInfo,_r=!0;break e}W=W.return}if(Hn===null)throw Error(i(160));Pu(w,k,S),Hn=null,_r=!1;var Q=S.alternate;Q!==null&&(Q.return=null),S.return=null}catch(pe){rr(S,o,pe)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)kg(o,a),o=o.sibling}function kg(a,o){var f=a.alternate,m=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(Or(o,a),fo(a),m&4){try{Mu(3,a,a.return),Vd(3,a)}catch(ot){rr(a,a.return,ot)}try{Mu(5,a,a.return)}catch(ot){rr(a,a.return,ot)}}break;case 1:Or(o,a),fo(a),m&512&&f!==null&&ku(f,f.return);break;case 5:if(Or(o,a),fo(a),m&512&&f!==null&&ku(f,f.return),a.flags&32){var S=a.stateNode;try{za(S,"")}catch(ot){rr(a,a.return,ot)}}if(m&4&&(S=a.stateNode,S!=null)){var w=a.memoizedProps,k=f!==null?f.memoizedProps:w,W=a.type,Q=a.updateQueue;if(a.updateQueue=null,Q!==null)try{W==="input"&&w.type==="radio"&&w.name!=null&&Kt(S,w),ar(W,k);var pe=ar(W,w);for(k=0;k<Q.length;k+=2){var Me=Q[k],Pe=Q[k+1];Me==="style"?Mt(S,Pe):Me==="dangerouslySetInnerHTML"?Ba(S,Pe):Me==="children"?za(S,Pe):F(S,Me,Pe,pe)}switch(W){case"input":on(S,w);break;case"textarea":$n(S,w);break;case"select":var De=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!w.multiple;var Ye=w.value;Ye!=null?Cn(S,!!w.multiple,Ye,!1):De!==!!w.multiple&&(w.defaultValue!=null?Cn(S,!!w.multiple,w.defaultValue,!0):Cn(S,!!w.multiple,w.multiple?[]:"",!1))}S[Xc]=w}catch(ot){rr(a,a.return,ot)}}break;case 6:if(Or(o,a),fo(a),m&4){if(a.stateNode===null)throw Error(i(162));S=a.stateNode,w=a.memoizedProps;try{S.nodeValue=w}catch(ot){rr(a,a.return,ot)}}break;case 3:if(Or(o,a),fo(a),m&4&&f!==null&&f.memoizedState.isDehydrated)try{li(o.containerInfo)}catch(ot){rr(a,a.return,ot)}break;case 4:Or(o,a),fo(a);break;case 13:Or(o,a),fo(a),S=a.child,S.flags&8192&&(w=S.memoizedState!==null,S.stateNode.isHidden=w,!w||S.alternate!==null&&S.alternate.memoizedState!==null||(Ud=Dn())),m&4&&Fu(a);break;case 22:if(Me=f!==null&&f.memoizedState!==null,a.mode&1?(Fr=(pe=Fr)||Me,Or(o,a),Fr=pe):Or(o,a),fo(a),m&8192){if(pe=a.memoizedState!==null,(a.stateNode.isHidden=pe)&&!Me&&a.mode&1)for(Ke=a,Me=a.child;Me!==null;){for(Pe=Ke=Me;Ke!==null;){switch(De=Ke,Ye=De.child,De.tag){case 0:case 11:case 14:case 15:Mu(4,De,De.return);break;case 1:ku(De,De.return);var nt=De.stateNode;if(typeof nt.componentWillUnmount=="function"){m=De,f=De.return;try{o=m,nt.props=o.memoizedProps,nt.state=o.memoizedState,nt.componentWillUnmount()}catch(ot){rr(m,f,ot)}}break;case 5:ku(De,De.return);break;case 22:if(De.memoizedState!==null){Mg(Pe);continue}}Ye!==null?(Ye.return=De,Ke=Ye):Mg(Pe)}Me=Me.sibling}e:for(Me=null,Pe=a;;){if(Pe.tag===5){if(Me===null){Me=Pe;try{S=Pe.stateNode,pe?(w=S.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none"):(W=Pe.stateNode,Q=Pe.memoizedProps.style,k=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,W.style.display=dt("display",k))}catch(ot){rr(a,a.return,ot)}}}else if(Pe.tag===6){if(Me===null)try{Pe.stateNode.nodeValue=pe?"":Pe.memoizedProps}catch(ot){rr(a,a.return,ot)}}else if((Pe.tag!==22&&Pe.tag!==23||Pe.memoizedState===null||Pe===a)&&Pe.child!==null){Pe.child.return=Pe,Pe=Pe.child;continue}if(Pe===a)break e;for(;Pe.sibling===null;){if(Pe.return===null||Pe.return===a)break e;Me===Pe&&(Me=null),Pe=Pe.return}Me===Pe&&(Me=null),Pe.sibling.return=Pe.return,Pe=Pe.sibling}}break;case 19:Or(o,a),fo(a),m&4&&Fu(a);break;case 21:break;default:Or(o,a),fo(a)}}function fo(a){var o=a.flags;if(o&2){try{e:{for(var f=a.return;f!==null;){if(Hv(f)){var m=f;break e}f=f.return}throw Error(i(160))}switch(m.tag){case 5:var S=m.stateNode;m.flags&32&&(za(S,""),m.flags&=-33);var w=Dg(a);Lu(a,w,S);break;case 3:case 4:var k=m.stateNode.containerInfo,W=Dg(a);ff(a,W,k);break;default:throw Error(i(161))}}catch(Q){rr(a,a.return,Q)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function gC(a,o,f){Ke=a,$v(a)}function $v(a,o,f){for(var m=(a.mode&1)!==0;Ke!==null;){var S=Ke,w=S.child;if(S.tag===22&&m){var k=S.memoizedState!==null||Du;if(!k){var W=S.alternate,Q=W!==null&&W.memoizedState!==null||Fr;W=Du;var pe=Fr;if(Du=k,(Fr=Q)&&!pe)for(Ke=S;Ke!==null;)k=Ke,Q=k.child,k.tag===22&&k.memoizedState!==null?Gv(S):Q!==null?(Q.return=k,Ke=Q):Gv(S);for(;w!==null;)Ke=w,$v(w),w=w.sibling;Ke=S,Du=W,Fr=pe}Vu(a)}else S.subtreeFlags&8772&&w!==null?(w.return=S,Ke=w):Vu(a)}}function Vu(a){for(;Ke!==null;){var o=Ke;if(o.flags&8772){var f=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:Fr||Vd(5,o);break;case 1:var m=o.stateNode;if(o.flags&4&&!Fr)if(f===null)m.componentDidMount();else{var S=o.elementType===o.type?f.memoizedProps:Na(o.type,f.memoizedProps);m.componentDidUpdate(S,f.memoizedState,m.__reactInternalSnapshotBeforeUpdate)}var w=o.updateQueue;w!==null&&Su(o,w,m);break;case 3:var k=o.updateQueue;if(k!==null){if(f=null,o.child!==null)switch(o.child.tag){case 5:f=o.child.stateNode;break;case 1:f=o.child.stateNode}Su(o,k,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 pe=o.alternate;if(pe!==null){var Me=pe.memoizedState;if(Me!==null){var Pe=Me.dehydrated;Pe!==null&&li(Pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Fr||o.flags&512&&Bd(o)}catch(De){rr(o,o.return,De)}}if(o===a){Ke=null;break}if(f=o.sibling,f!==null){f.return=o.return,Ke=f;break}Ke=o.return}}function Mg(a){for(;Ke!==null;){var o=Ke;if(o===a){Ke=null;break}var f=o.sibling;if(f!==null){f.return=o.return,Ke=f;break}Ke=o.return}}function Gv(a){for(;Ke!==null;){var o=Ke;try{switch(o.tag){case 0:case 11:case 15:var f=o.return;try{Vd(4,o)}catch(Q){rr(o,f,Q)}break;case 1:var m=o.stateNode;if(typeof m.componentDidMount=="function"){var S=o.return;try{m.componentDidMount()}catch(Q){rr(o,S,Q)}}var w=o.return;try{Bd(o)}catch(Q){rr(o,w,Q)}break;case 5:var k=o.return;try{Bd(o)}catch(Q){rr(o,k,Q)}}}catch(Q){rr(o,o.return,Q)}if(o===a){Ke=null;break}var W=o.sibling;if(W!==null){W.return=o.return,Ke=W;break}Ke=o.return}}var yC=Math.ceil,_l=U.ReactCurrentDispatcher,zd=U.ReactCurrentOwner,yi=U.ReactCurrentBatchConfig,zt=0,nr=null,zn=null,br=0,Da=0,Bu=In(0),Cr=0,df=null,Ol=0,zu=0,Wv=0,Ps=null,Qr=null,Ud=0,Uu=1/0,Wo=null,Hd=!1,Xv=null,bi=null,Hu=!1,Ci=null,$d=0,pf=0,Gd=null,vf=-1,Al=0;function Ar(){return zt&6?Dn():vf!==-1?vf:vf=Dn()}function Xo(a){return a.mode&1?zt&2&&br!==0?br&-br:uC.transition!==null?(Al===0&&(Al=sl()),Al):(a=Ht,a!==0||(a=window.event,a=a===void 0?16:_c(a.type)),a):1}function Zn(a,o,f,m){if(50<pf)throw pf=0,Gd=null,Error(i(185));gs(a,f,m),(!(zt&2)||a!==nr)&&(a===nr&&(!(zt&2)&&(zu|=f),Cr===4&&po(a,br)),xr(a,m),f===1&&zt===0&&!(o.mode&1)&&(Uu=Dn()+500,Ts&&oo()))}function xr(a,o){var f=a.callbackNode;ms(a,o);var m=eo(a,a===nr?br:0);if(m===0)f!==null&&jn(f),a.callbackNode=null,a.callbackPriority=0;else if(o=m&-m,a.callbackPriority!==o){if(f!=null&&jn(f),o===1)a.tag===0?dg($u.bind(null,a)):cd($u.bind(null,a)),cg(function(){!(zt&6)&&oo()}),f=null;else{switch(Tc(m)){case 1:f=bc;break;case 4:f=Ki;break;case 16:f=Lt;break;case 536870912:f=_o;break;default:f=Lt}f=Hg(f,Wd.bind(null,a))}a.callbackPriority=o,a.callbackNode=f}}function Wd(a,o){if(vf=-1,Al=0,zt&6)throw Error(i(327));var f=a.callbackNode;if(Gu()&&a.callbackNode!==f)return null;var m=eo(a,a===nr?br:0);if(m===0)return null;if(m&30||m&a.expiredLanes||o)o=Yd(a,m);else{o=m;var S=zt;zt|=2;var w=Pg();(nr!==a||br!==o)&&(Wo=null,Uu=Dn()+500,Dl(a,o));do try{CC();break}catch(W){Lg(a,W)}while(!0);_v(),_l.current=w,zt=S,zn!==null?o=0:(nr=null,br=0,o=Cr)}if(o!==0){if(o===2&&(S=to(a),S!==0&&(m=S,o=jl(a,S))),o===1)throw f=df,Dl(a,0),po(a,m),xr(a,Dn()),f;if(o===6)po(a,m);else{if(S=a.current.alternate,!(m&30)&&!Zv(S)&&(o=Yd(a,m),o===2&&(w=to(a),w!==0&&(m=w,o=jl(a,w))),o===1))throw f=df,Dl(a,0),po(a,m),xr(a,Dn()),f;switch(a.finishedWork=S,a.finishedLanes=m,o){case 0:case 1:throw Error(i(345));case 2:Fs(a,Qr,Wo);break;case 3:if(po(a,m),(m&130023424)===m&&(o=Ud+500-Dn(),10<o)){if(eo(a,0)!==0)break;if(S=a.suspendedLanes,(S&m)!==m){Ar(),a.pingedLanes|=a.suspendedLanes&S;break}a.timeoutHandle=$c(Fs.bind(null,a,Qr,Wo),o);break}Fs(a,Qr,Wo);break;case 4:if(po(a,m),(m&4194240)===m)break;for(o=a.eventTimes,S=-1;0<m;){var k=31-na(m);w=1<<k,k=o[k],k>S&&(S=k),m&=~w}if(m=S,m=Dn()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*yC(m/1960))-m,10<m){a.timeoutHandle=$c(Fs.bind(null,a,Qr,Wo),m);break}Fs(a,Qr,Wo);break;case 5:Fs(a,Qr,Wo);break;default:throw Error(i(329))}}}return xr(a,Dn()),a.callbackNode===f?Wd.bind(null,a):null}function jl(a,o){var f=Ps;return a.current.memoizedState.isDehydrated&&(Dl(a,o).flags|=256),a=Yd(a,o),a!==2&&(o=Qr,Qr=f,o!==null&&Yv(o)),a}function Yv(a){Qr===null?Qr=a:Qr.push.apply(Qr,a)}function Zv(a){for(var o=a;;){if(o.flags&16384){var f=o.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var m=0;m<f.length;m++){var S=f[m],w=S.getSnapshot;S=S.value;try{if(!Bi(w(),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 po(a,o){for(o&=~Wv,o&=~zu,a.suspendedLanes|=o,a.pingedLanes&=~o,a=a.expirationTimes;0<o;){var f=31-na(o),m=1<<f;a[f]=-1,o&=~m}}function $u(a){if(zt&6)throw Error(i(327));Gu();var o=eo(a,0);if(!(o&1))return xr(a,Dn()),null;var f=Yd(a,o);if(a.tag!==0&&f===2){var m=to(a);m!==0&&(o=m,f=jl(a,m))}if(f===1)throw f=df,Dl(a,0),po(a,o),xr(a,Dn()),f;if(f===6)throw Error(i(345));return a.finishedWork=a.current.alternate,a.finishedLanes=o,Fs(a,Qr,Wo),xr(a,Dn()),null}function Jv(a,o){var f=zt;zt|=1;try{return a(o)}finally{zt=f,zt===0&&(Uu=Dn()+500,Ts&&oo())}}function vo(a){Ci!==null&&Ci.tag===0&&!(zt&6)&&Gu();var o=zt;zt|=1;var f=yi.transition,m=Ht;try{if(yi.transition=null,Ht=1,a)return a()}finally{Ht=m,yi.transition=f,zt=o,!(zt&6)&&oo()}}function Xd(){Da=Bu.current,st(Bu)}function Dl(a,o){a.finishedWork=null,a.finishedLanes=0;var f=a.timeoutHandle;if(f!==-1&&(a.timeoutHandle=-1,Gc(f)),zn!==null)for(f=zn.return;f!==null;){var m=f;switch(dd(m),m.tag){case 1:m=m.type.childContextTypes,m!=null&&wa();break;case 3:Tu(),st(Ot),st(Nr),hi();break;case 5:mt(m);break;case 4:Tu();break;case 13:st(ut);break;case 19:st(ut);break;case 10:Ov(m.type._context);break;case 22:case 23:Xd()}f=f.return}if(nr=a,zn=a=Vs(a.current,null),br=Da=o,Cr=0,df=null,Wv=zu=Ol=0,Qr=Ps=null,Jr!==null){for(o=0;o<Jr.length;o++)if(f=Jr[o],m=f.interleaved,m!==null){f.interleaved=null;var S=m.next,w=f.pending;if(w!==null){var k=w.next;w.next=S,m.next=k}f.pending=m}Jr=null}return a}function Lg(a,o){do{var f=zn;try{if(_v(),Kc.current=Ad,sr){for(var m=Yn.memoizedState;m!==null;){var S=m.queue;S!==null&&(S.pending=null),m=m.next}sr=!1}if(Cl=0,Ee=or=Yn=null,bt=!1,uo=0,zd.current=null,f===null||f.return===null){Cr=1,df=o,zn=null;break}e:{var w=a,k=f.return,W=f,Q=o;if(o=br,W.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var pe=Q,Me=W,Pe=Me.tag;if(!(Me.mode&1)&&(Pe===0||Pe===11||Pe===15)){var De=Me.alternate;De?(Me.updateQueue=De.updateQueue,Me.memoizedState=De.memoizedState,Me.lanes=De.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var Ye=Ig(k);if(Ye!==null){Ye.flags&=-257,Vv(Ye,k,W,w,o),Ye.mode&1&&sf(w,pe,o),o=Ye,Q=pe;var nt=o.updateQueue;if(nt===null){var ot=new Set;ot.add(Q),o.updateQueue=ot}else nt.add(Q);break e}else{if(!(o&1)){sf(w,pe,o),hf();break e}Q=Error(i(426))}}else if(Bn&&W.mode&1){var cr=Ig(k);if(cr!==null){!(cr.flags&65536)&&(cr.flags|=256),Vv(cr,k,W,w,o),hr(Ms(Q,W));break e}}w=Q=Ms(Q,W),Cr!==4&&(Cr=2),Ps===null?Ps=[w]:Ps.push(w),w=k;do{switch(w.tag){case 3:w.flags|=65536,o&=-o,w.lanes|=o;var ae=Rg(w,Q,o);mg(w,ae);break e;case 1:W=Q;var ee=w.type,se=w.stateNode;if(!(w.flags&128)&&(typeof ee.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(bi===null||!bi.has(se)))){w.flags|=65536,o&=-o,w.lanes|=o;var ze=Tg(w,W,o);mg(w,ze);break e}}w=w.return}while(w!==null)}Vg(f)}catch(lt){o=lt,zn===f&&f!==null&&(zn=f=f.return);continue}break}while(!0)}function Pg(){var a=_l.current;return _l.current=Ad,a===null?Ad:a}function hf(){(Cr===0||Cr===3||Cr===2)&&(Cr=4),nr===null||!(Ol&268435455)&&!(zu&268435455)||po(nr,br)}function Yd(a,o){var f=zt;zt|=2;var m=Pg();(nr!==a||br!==o)&&(Wo=null,Dl(a,o));do try{bC();break}catch(S){Lg(a,S)}while(!0);if(_v(),zt=f,_l.current=m,zn!==null)throw Error(i(261));return nr=null,br=0,Cr}function bC(){for(;zn!==null;)Fg(zn)}function CC(){for(;zn!==null&&!Yr();)Fg(zn)}function Fg(a){var o=Ug(a.alternate,a,Da);a.memoizedProps=a.pendingProps,o===null?Vg(a):zn=o,zd.current=null}function Vg(a){var o=a;do{var f=o.alternate;if(a=o.return,o.flags&32768){if(f=hC(f,o),f!==null){f.flags&=32767,zn=f;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Cr=6,zn=null;return}}else if(f=vC(f,o,Da),f!==null){zn=f;return}if(o=o.sibling,o!==null){zn=o;return}zn=o=a}while(o!==null);Cr===0&&(Cr=5)}function Fs(a,o,f){var m=Ht,S=yi.transition;try{yi.transition=null,Ht=1,xC(a,o,f,m)}finally{yi.transition=S,Ht=m}return null}function xC(a,o,f,m){do Gu();while(Ci!==null);if(zt&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 w=f.lanes|f.childLanes;if(wc(a,w),a===nr&&(zn=nr=null,br=0),!(f.subtreeFlags&2064)&&!(f.flags&2064)||Hu||(Hu=!0,Hg(Lt,function(){return Gu(),null})),w=(f.flags&15990)!==0,f.subtreeFlags&15990||w){w=yi.transition,yi.transition=null;var k=Ht;Ht=1;var W=zt;zt|=4,zd.current=null,mC(a,f),kg(f,a),dl(Cv),uu=!!bv,Cv=bv=null,a.current=f,gC(f),Qi(),zt=W,Ht=k,yi.transition=w}else a.current=f;if(Hu&&(Hu=!1,Ci=a,$d=S),w=a.pendingLanes,w===0&&(bi=null),Cc(f.stateNode),xr(a,Dn()),o!==null)for(m=a.onRecoverableError,f=0;f<o.length;f++)S=o[f],m(S.value,{componentStack:S.stack,digest:S.digest});if(Hd)throw Hd=!1,a=Xv,Xv=null,a;return $d&1&&a.tag!==0&&Gu(),w=a.pendingLanes,w&1?a===Gd?pf++:(pf=0,Gd=a):pf=0,oo(),null}function Gu(){if(Ci!==null){var a=Tc($d),o=yi.transition,f=Ht;try{if(yi.transition=null,Ht=16>a?16:a,Ci===null)var m=!1;else{if(a=Ci,Ci=null,$d=0,zt&6)throw Error(i(331));var S=zt;for(zt|=4,Ke=a.current;Ke!==null;){var w=Ke,k=w.child;if(Ke.flags&16){var W=w.deletions;if(W!==null){for(var Q=0;Q<W.length;Q++){var pe=W[Q];for(Ke=pe;Ke!==null;){var Me=Ke;switch(Me.tag){case 0:case 11:case 15:Mu(8,Me,w)}var Pe=Me.child;if(Pe!==null)Pe.return=Me,Ke=Pe;else for(;Ke!==null;){Me=Ke;var De=Me.sibling,Ye=Me.return;if(jg(Me),Me===pe){Ke=null;break}if(De!==null){De.return=Ye,Ke=De;break}Ke=Ye}}}var nt=w.alternate;if(nt!==null){var ot=nt.child;if(ot!==null){nt.child=null;do{var cr=ot.sibling;ot.sibling=null,ot=cr}while(ot!==null)}}Ke=w}}if(w.subtreeFlags&2064&&k!==null)k.return=w,Ke=k;else e:for(;Ke!==null;){if(w=Ke,w.flags&2048)switch(w.tag){case 0:case 11:case 15:Mu(9,w,w.return)}var ae=w.sibling;if(ae!==null){ae.return=w.return,Ke=ae;break e}Ke=w.return}}var ee=a.current;for(Ke=ee;Ke!==null;){k=Ke;var se=k.child;if(k.subtreeFlags&2064&&se!==null)se.return=k,Ke=se;else e:for(k=ee;Ke!==null;){if(W=Ke,W.flags&2048)try{switch(W.tag){case 0:case 11:case 15:Vd(9,W)}}catch(lt){rr(W,W.return,lt)}if(W===k){Ke=null;break e}var ze=W.sibling;if(ze!==null){ze.return=W.return,Ke=ze;break e}Ke=W.return}}if(zt=S,oo(),Ca&&typeof Ca.onPostCommitFiberRoot=="function")try{Ca.onPostCommitFiberRoot(hs,a)}catch{}m=!0}return m}finally{Ht=f,yi.transition=o}}return!1}function Bg(a,o,f){o=Ms(f,o),o=Rg(a,o,1),a=As(a,o,1),o=Ar(),a!==null&&(gs(a,1,o),xr(a,o))}function rr(a,o,f){if(a.tag===3)Bg(a,a,f);else for(;o!==null;){if(o.tag===3){Bg(o,a,f);break}else if(o.tag===1){var m=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(bi===null||!bi.has(m))){a=Ms(f,a),a=Tg(o,a,1),o=As(o,a,1),a=Ar(),o!==null&&(gs(o,1,a),xr(o,a));break}}o=o.return}}function SC(a,o,f){var m=a.pingCache;m!==null&&m.delete(o),o=Ar(),a.pingedLanes|=a.suspendedLanes&f,nr===a&&(br&f)===f&&(Cr===4||Cr===3&&(br&130023424)===br&&500>Dn()-Ud?Dl(a,0):Wv|=f),xr(a,o)}function zg(a,o){o===0&&(a.mode&1?(o=iu,iu<<=1,!(iu&130023424)&&(iu=4194304)):o=1);var f=Ar();a=Ho(a,o),a!==null&&(gs(a,o,f),xr(a,f))}function qv(a){var o=a.memoizedState,f=0;o!==null&&(f=o.retryLane),zg(a,f)}function EC(a,o){var f=0;switch(a.tag){case 13:var m=a.stateNode,S=a.memoizedState;S!==null&&(f=S.retryLane);break;case 19:m=a.stateNode;break;default:throw Error(i(314))}m!==null&&m.delete(o),zg(a,f)}var Ug;Ug=function(a,o,f){if(a!==null)if(a.memoizedProps!==o.pendingProps||Ot.current)Aa=!0;else{if(!(a.lanes&f)&&!(o.flags&128))return Aa=!1,Go(a,o,f);Aa=!!(a.flags&131072)}else Aa=!1,Bn&&o.flags&1048576&&Ns(o,gl,o.index);switch(o.lanes=0,o.tag){case 2:var m=o.type;cf(a,o),a=o.pendingProps;var S=Wa(o,Nr.current);ir(o,f),S=xl(null,o,m,a,S,f);var w=Ds();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,vr(m)?(w=!0,ml(o)):w=!1,o.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Av(o),S.updater=md,o.stateNode=S,S._reactInternals=o,Dv(o,m,a,f),o=Dd(null,o,m,!0,w,f)):(o.tag=0,Bn&&w&&fd(o),lr(null,o,S,f),o=o.child),o;case 16:m=o.elementType;e:{switch(cf(a,o),a=o.pendingProps,S=m._init,m=S(m._payload),o.type=m,S=o.tag=wC(m),a=Na(m,a),S){case 0:o=Dt(null,o,m,a,f);break e;case 1:o=lf(null,o,m,a,f);break e;case 11:o=Ou(null,o,m,a,f);break e;case 14:o=Ls(null,o,m,Na(m.type,a),f);break e}throw Error(i(306,m,""))}return o;case 0:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),Dt(a,o,m,S,f);case 1:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),lf(a,o,m,S,f);case 3:e:{if(pC(o),a===null)throw Error(i(387));m=o.pendingProps,w=o.memoizedState,S=w.element,hg(a,o),Zc(o,m,null,f);var k=o.memoizedState;if(m=k.element,w.isDehydrated)if(w={element:m,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},o.updateQueue.baseState=w,o.memoizedState=w,o.flags&256){S=Ms(Error(i(423)),o),o=_g(a,o,m,f,S);break e}else if(m!==S){S=Ms(Error(i(424)),o),o=_g(a,o,m,f,S);break e}else for(Ya=Ga(o.stateNode.containerInfo.firstChild),Xa=o,Bn=!0,pi=null,f=Sg(o,null,m,f),o.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(bu(),m===S){o=ur(a,o,f);break e}lr(a,o,m,f)}o=o.child}return o;case 5:return gd(o),a===null&&pd(o),m=o.type,S=o.pendingProps,w=a!==null?a.memoizedProps:null,k=S.children,hl(m,S)?k=null:w!==null&&hl(m,w)&&(o.flags|=32),Il(a,o),lr(a,o,k,f),o.child;case 6:return a===null&&pd(o),null;case 13:return Og(a,o,f);case 4:return kv(o,o.stateNode.containerInfo),m=o.pendingProps,a===null?o.child=wu(o,null,m,f):lr(a,o,m,f),o.child;case 11:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),Ou(a,o,m,S,f);case 7:return lr(a,o,o.pendingProps,f),o.child;case 8:return lr(a,o,o.pendingProps.children,f),o.child;case 12:return lr(a,o,o.pendingProps.children,f),o.child;case 10:e:{if(m=o.type._context,S=o.pendingProps,w=o.memoizedProps,k=S.value,tn(Cu,m._currentValue),m._currentValue=k,w!==null)if(Bi(w.value,k)){if(w.children===S.children&&!Ot.current){o=ur(a,o,f);break e}}else for(w=o.child,w!==null&&(w.return=o);w!==null;){var W=w.dependencies;if(W!==null){k=w.child;for(var Q=W.firstContext;Q!==null;){if(Q.context===m){if(w.tag===1){Q=kn(-1,f&-f),Q.tag=2;var pe=w.updateQueue;if(pe!==null){pe=pe.shared;var Me=pe.pending;Me===null?Q.next=Q:(Q.next=Me.next,Me.next=Q),pe.pending=Q}}w.lanes|=f,Q=w.alternate,Q!==null&&(Q.lanes|=f),_s(w.return,f,o),W.lanes|=f;break}Q=Q.next}}else if(w.tag===10)k=w.type===o.type?null:w.child;else if(w.tag===18){if(k=w.return,k===null)throw Error(i(341));k.lanes|=f,W=k.alternate,W!==null&&(W.lanes|=f),_s(k,f,o),k=w.sibling}else k=w.child;if(k!==null)k.return=w;else for(k=w;k!==null;){if(k===o){k=null;break}if(w=k.sibling,w!==null){w.return=k.return,k=w;break}k=k.return}w=k}lr(a,o,S.children,f),o=o.child}return o;case 9:return S=o.type,m=o.pendingProps.children,ir(o,f),S=Ue(S),m=m(S),o.flags|=1,lr(a,o,m,f),o.child;case 14:return m=o.type,S=Na(m,o.pendingProps),S=Na(m.type,S),Ls(a,o,m,S,f);case 15:return jd(a,o,o.type,o.pendingProps,f);case 17:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),cf(a,o),o.tag=1,vr(m)?(a=!0,ml(o)):a=!1,ir(o,f),yg(o,m,S),Dv(o,m,S,f),Dd(null,o,m,!0,a,f);case 19:return zv(a,o,f);case 22:return ja(a,o,f)}throw Error(i(156,o.tag))};function Hg(a,o){return An(a,o)}function $g(a,o,f,m){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=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xi(a,o,f,m){return new $g(a,o,f,m)}function Qv(a){return a=a.prototype,!(!a||!a.isReactComponent)}function wC(a){if(typeof a=="function")return Qv(a)?1:0;if(a!=null){if(a=a.$$typeof,a===fe)return 11;if(a===xe)return 14}return 2}function Vs(a,o){var f=a.alternate;return f===null?(f=xi(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 Zd(a,o,f,m,S,w){var k=2;if(m=a,typeof a=="function")Qv(a)&&(k=1);else if(typeof a=="string")k=5;else e:switch(a){case J:return kl(f.children,S,w,o);case q:k=8,S|=8;break;case Re:return a=xi(12,f,o,S|2),a.elementType=Re,a.lanes=w,a;case Oe:return a=xi(13,f,o,S),a.elementType=Oe,a.lanes=w,a;case Te:return a=xi(19,f,o,S),a.elementType=Te,a.lanes=w,a;case Le:return Jd(f,S,w,o);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case he:k=10;break e;case ge:k=9;break e;case fe:k=11;break e;case xe:k=14;break e;case je:k=16,m=null;break e}throw Error(i(130,a==null?a:typeof a,""))}return o=xi(k,f,o,S),o.elementType=a,o.type=m,o.lanes=w,o}function kl(a,o,f,m){return a=xi(7,a,m,o),a.lanes=f,a}function Jd(a,o,f,m){return a=xi(22,a,m,o),a.elementType=Le,a.lanes=f,a.stateNode={isHidden:!1},a}function qd(a,o,f){return a=xi(6,a,null,o),a.lanes=f,a}function mf(a,o,f){return o=xi(4,a.children!==null?a.children:[],a.key,o),o.lanes=f,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function gf(a,o,f,m,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=ll(0),this.expirationTimes=ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ll(0),this.identifierPrefix=m,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function Kv(a,o,f,m,S,w,k,W,Q){return a=new gf(a,o,f,W,Q),o===1?(o=1,w===!0&&(o|=8)):o=0,w=xi(3,null,null,o),a.current=w,w.stateNode=a,w.memoizedState={element:m,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Av(w),a}function Gg(a,o,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:H,key:m==null?null:""+m,children:a,containerInfo:o,implementation:f}}function eh(a){if(!a)return ci;a=a._reactInternals;e:{if(We(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(vr(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(vr(f))return Rs(a,f,o)}return o}function th(a,o,f,m,S,w,k,W,Q){return a=Kv(f,m,!0,a,S,w,k,W,Q),a.context=eh(null),f=a.current,m=Ar(),S=Xo(f),w=kn(m,S),w.callback=o??null,As(f,w,S),a.current.lanes=S,gs(a,S,m),xr(a,m),a}function Qd(a,o,f,m){var S=o.current,w=Ar(),k=Xo(S);return f=eh(f),o.context===null?o.context=f:o.pendingContext=f,o=kn(w,k),o.payload={element:a},m=m===void 0?null:m,m!==null&&(o.callback=m),a=As(S,o,k),a!==null&&(Zn(a,S,k,w),hd(a,S,k)),k}function yf(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 Wg(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<o?f:o}}function nh(a,o){Wg(a,o),(a=a.alternate)&&Wg(a,o)}function RC(){return null}var rh=typeof reportError=="function"?reportError:function(a){console.error(a)};function Kd(a){this._internalRoot=a}bf.prototype.render=Kd.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(i(409));Qd(a,o,null,null)},bf.prototype.unmount=Kd.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;vo(function(){Qd(null,a,null,null)}),o[zi]=null}};function bf(a){this._internalRoot=a}bf.prototype.unstable_scheduleHydration=function(a){if(a){var o=Yt();a={blockedOn:null,target:a,priority:o};for(var f=0;f<Fn.length&&o!==0&&o<Fn[f].priority;f++);Fn.splice(f,0,a),f===0&&Fi(a)}};function Bs(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function ep(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function Xg(){}function TC(a,o,f,m,S){if(S){if(typeof m=="function"){var w=m;m=function(){var pe=yf(k);w.call(pe)}}var k=th(o,m,a,0,null,!1,!1,"",Xg);return a._reactRootContainer=k,a[zi]=k.current,ro(a.nodeType===8?a.parentNode:a),vo(),k}for(;S=a.lastChild;)a.removeChild(S);if(typeof m=="function"){var W=m;m=function(){var pe=yf(Q);W.call(pe)}}var Q=Kv(a,0,!1,null,null,!1,!1,"",Xg);return a._reactRootContainer=Q,a[zi]=Q.current,ro(a.nodeType===8?a.parentNode:a),vo(function(){Qd(o,Q,f,m)}),Q}function tp(a,o,f,m,S){var w=f._reactRootContainer;if(w){var k=w;if(typeof S=="function"){var W=S;S=function(){var Q=yf(k);W.call(Q)}}Qd(o,k,a,S)}else k=TC(f,o,a,S,m);return yf(k)}ou=function(a){switch(a.tag){case 3:var o=a.stateNode;if(o.current.memoizedState.isDehydrated){var f=Oo(o.pendingLanes);f!==0&&(Rc(o,f|1),xr(o,Dn()),!(zt&6)&&(Uu=Dn()+500,oo()))}break;case 13:vo(function(){var m=Ho(a,1);if(m!==null){var S=Ar();Zn(m,a,1,S)}}),nh(a,1)}},ys=function(a){if(a.tag===13){var o=Ho(a,134217728);if(o!==null){var f=Ar();Zn(o,a,134217728,f)}nh(a,134217728)}},Ic=function(a){if(a.tag===13){var o=Xo(a),f=Ho(a,o);if(f!==null){var m=Ar();Zn(f,a,o,m)}nh(a,o)}},Yt=function(){return Ht},su=function(a,o){var f=Ht;try{return Ht=a,o()}finally{Ht=f}},pn=function(a,o,f){switch(o){case"input":if(on(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 m=f[o];if(m!==a&&m.form===a.form){var S=ud(m);if(!S)throw Error(i(90));ft(m),on(m,S)}}}break;case"textarea":$n(a,f);break;case"select":o=f.value,o!=null&&Cn(a,!!f.multiple,o,!1)}},ps=Jv,rl=vo;var IC={usingClientEntryPoint:!1,Events:[ao,yu,ud,ki,ai,Jv]},Cf={findFiberByHostInstance:zo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Yg={bundleType:Cf.bundleType,version:Cf.version,rendererPackageName:Cf.rendererPackageName,rendererConfig:Cf.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:Cf.findFiberByHostInstance||RC,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 np=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!np.isDisabled&&np.supportsFiber)try{hs=np.inject(Yg),Ca=np}catch{}}return Ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=IC,Ii.createPortal=function(a,o){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bs(o))throw Error(i(200));return Gg(a,o,null,f)},Ii.createRoot=function(a,o){if(!Bs(a))throw Error(i(299));var f=!1,m="",S=rh;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onRecoverableError!==void 0&&(S=o.onRecoverableError)),o=Kv(a,1,!1,null,null,f,!1,m,S),a[zi]=o.current,ro(a.nodeType===8?a.parentNode:a),new Kd(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 vo(a)},Ii.hydrate=function(a,o,f){if(!ep(o))throw Error(i(200));return tp(null,a,o,!0,f)},Ii.hydrateRoot=function(a,o,f){if(!Bs(a))throw Error(i(405));var m=f!=null&&f.hydratedSources||null,S=!1,w="",k=rh;if(f!=null&&(f.unstable_strictMode===!0&&(S=!0),f.identifierPrefix!==void 0&&(w=f.identifierPrefix),f.onRecoverableError!==void 0&&(k=f.onRecoverableError)),o=th(o,null,a,1,f??null,S,!1,w,k),a[zi]=o.current,ro(a),m)for(a=0;a<m.length;a++)f=m[a],S=f._getVersion,S=S(f._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[f,S]:o.mutableSourceEagerHydrationData.push(f,S);return new bf(o)},Ii.render=function(a,o,f){if(!ep(o))throw Error(i(200));return tp(null,a,o,!1,f)},Ii.unmountComponentAtNode=function(a){if(!ep(a))throw Error(i(40));return a._reactRootContainer?(vo(function(){tp(null,null,a,!1,function(){a._reactRootContainer=null,a[zi]=null})}),!0):!1},Ii.unstable_batchedUpdates=Jv,Ii.unstable_renderSubtreeIntoContainer=function(a,o,f,m){if(!ep(f))throw Error(i(200));if(a==null||a._reactInternals===void 0)throw Error(i(38));return tp(a,o,f,!1,m)},Ii.version="18.2.0-next-9e3b772b8-20220608",Ii}var Ni={},PN;function ez(){if(PN)return Ni;PN=1;var n={};/**
|
|
97
97
|
* @license React
|
|
98
98
|
* react-dom.development.js
|
|
99
99
|
*
|
|
@@ -109,7 +109,7 @@ Error generating stack: `+w.message+`
|
|
|
109
109
|
Error generating stack: `+c.message+`
|
|
110
110
|
`+c.stack}}function ys(e,t,s){var c=e.displayName;if(c)return c;var p=t.displayName||t.name||"";return p!==""?s+"("+p+")":s}function Ic(e){return e.displayName||"Context"}function Yt(e){if(e==null)return null;if(typeof e.tag=="number"&&v("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 Ha:return"Fragment";case ya:return"Portal";case Z:return"Profiler";case No:return"StrictMode";case Bt:return"Suspense";case $t:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case He:var t=e;return Ic(t)+".Consumer";case ke:var s=e;return Ic(s._context)+".Provider";case We:return ys(e,e.render,"ForwardRef");case kt:var c=e.displayName||null;return c!==null?c:Yt(e.type)||"Memo";case vt:{var p=e,g=p._payload,E=p._init;try{return Yt(E(g))}catch{return null}}}return null}function su(e,t,s){var c=t.displayName||t.name||"";return e.displayName||(c!==""?s+"("+c+")":s)}function ul(e){return e.displayName||"Context"}function Nt(e){var t=e.tag,s=e.type;switch(t){case je:return"Cache";case V:var c=s;return ul(c)+".Consumer";case F:var p=s;return ul(p._context)+".Provider";case ge:return"DehydratedFragment";case U:return su(s,s.render,"ForwardRef");case _:return"Fragment";case N:return s;case A:return"Portal";case T:return"Root";case O:return"Text";case Re:return Yt(s);case L:return s===No?"StrictMode":"Mode";case Te:return"Offscreen";case z:return"Profiler";case Oe:return"Scope";case H:return"Suspense";case fe:return"SuspenseList";case Le:return"TracingMarker";case x:case C:case he:case R:case J:case q:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;break}return null}var Pi=u.ReactDebugCurrentFrame,Wn=null,xa=!1;function si(){{if(Wn===null)return null;var e=Wn._debugOwner;if(e!==null&&typeof e<"u")return Nt(e)}return null}function bs(){return Wn===null?"":ou(Wn)}function Fn(){Pi.getCurrentStack=null,Wn=null,xa=!1}function Xn(e){Pi.getCurrentStack=e===null?null:bs,Wn=e,xa=!1}function Nc(){return Wn}function Mr(e){xa=e}function Sa(e){return""+e}function Fi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return $n(e),e;default:return""}}var lu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function cl(e,t){lu[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||v("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`."),t.onChange||t.readOnly||t.disabled||t.checked==null||v("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 fl(e){var t=e.type,s=e.nodeName;return s&&s.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cs(e){return e._valueTracker}function li(e){e._valueTracker=null}function Ao(e){var t="";return e&&(fl(e)?t=e.checked?"true":"false":t=e.value),t}function uu(e){var t=fl(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);$n(e[t]);var c=""+e[t];if(!(e.hasOwnProperty(t)||typeof s>"u"||typeof s.get!="function"||typeof s.set!="function")){var p=s.get,g=s.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return p.call(this)},set:function(I){$n(I),c=""+I,g.call(this,I)}}),Object.defineProperty(e,t,{enumerable:s.enumerable});var E={getValue:function(){return c},setValue:function(I){$n(I),c=""+I},stopTracking:function(){li(e),delete e[t]}};return E}}function jo(e){Cs(e)||(e._valueTracker=uu(e))}function cu(e){if(!e)return!1;var t=Cs(e);if(!t)return!0;var s=t.getValue(),c=Ao(e);return c!==s?(t.setValue(c),!0):!1}function no(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 Do=!1,fu=!1,_c=!1,Vi=!1;function du(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function D(e,t){var s=e,c=t.checked,p=Lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??s._wrapperState.initialChecked});return p}function X(e,t){cl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!fu&&(v("%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",si()||"A component",t.type),fu=!0),t.value!==void 0&&t.defaultValue!==void 0&&!Do&&(v("%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",si()||"A component",t.type),Do=!0);var s=e,c=t.defaultValue==null?"":t.defaultValue;s._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Fi(t.value!=null?t.value:c),controlled:du(t)}}function ue(e,t){var s=e,c=t.checked;c!=null&&Io(s,"checked",c,!1)}function me(e,t){var s=e;{var c=du(t);!s._wrapperState.controlled&&c&&!Vi&&(v("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"),Vi=!0),s._wrapperState.controlled&&!c&&!_c&&(v("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"),_c=!0)}ue(e,t);var p=Fi(t.value),g=t.type;if(p!=null)g==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=Sa(p)):s.value!==Sa(p)&&(s.value=Sa(p));else if(g==="submit"||g==="reset"){s.removeAttribute("value");return}t.hasOwnProperty("value")?wt(s,t.type,p):t.hasOwnProperty("defaultValue")&&wt(s,t.type,Fi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(s.defaultChecked=!!t.defaultChecked)}function Be(e,t,s){var c=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var p=t.type,g=p==="submit"||p==="reset";if(g&&(t.value===void 0||t.value===null))return;var E=Sa(c._wrapperState.initialValue);s||E!==c.value&&(c.value=E),c.defaultValue=E}var I=c.name;I!==""&&(c.name=""),c.defaultChecked=!c.defaultChecked,c.defaultChecked=!!c._wrapperState.initialChecked,I!==""&&(c.name=I)}function it(e,t){var s=e;me(s,t),Je(s,t)}function Je(e,t){var s=t.name;if(t.type==="radio"&&s!=null){for(var c=e;c.parentNode;)c=c.parentNode;_n(s,"name");for(var p=c.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),g=0;g<p.length;g++){var E=p[g];if(!(E===e||E.form!==e.form)){var I=fy(E);if(!I)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");cu(E),me(E,I)}}}}function wt(e,t,s){(t!=="number"||no(e.ownerDocument)!==e)&&(s==null?e.defaultValue=Sa(e._wrapperState.initialValue):e.defaultValue!==Sa(s)&&(e.defaultValue=Sa(s)))}var Pt=!1,fn=!1,vn=!1;function hn(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?r.Children.forEach(t.children,function(s){s!=null&&(typeof s=="string"||typeof s=="number"||fn||(fn=!0,v("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(vn||(vn=!0,v("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!Pt&&(v("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pt=!0)}function mn(e,t){t.value!=null&&e.setAttribute("value",Sa(Fi(t.value)))}var Vn=Array.isArray;function Zt(e){return Vn(e)}var xs;xs=!1;function pu(){var e=si();return e?`
|
|
111
111
|
|
|
112
|
-
Check the render method of \``+e+"`.":""}var Oc=["value","defaultValue"];function Ac(e){{cl("select",e);for(var t=0;t<Oc.length;t++){var s=Oc[t];if(e[s]!=null){var c=Zt(e[s]);e.multiple&&!c?v("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,pu()):!e.multiple&&c&&v("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,pu())}}}}function ko(e,t,s,c){var p=e.options;if(t){for(var g=s,E={},I=0;I<g.length;I++)E["$"+g[I]]=!0;for(var j=0;j<p.length;j++){var P=E.hasOwnProperty("$"+p[j].value);p[j].selected!==P&&(p[j].selected=P),P&&c&&(p[j].defaultSelected=!0)}}else{for(var B=Sa(Fi(s)),te=null,K=0;K<p.length;K++){if(p[K].value===B){p[K].selected=!0,c&&(p[K].defaultSelected=!0);return}te===null&&!p[K].disabled&&(te=p[K])}te!==null&&(te.selected=!0)}}function jc(e,t){return Lt({},t,{value:void 0})}function Dc(e,t){var s=e;Ac(t),s._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!xs&&(v("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"),xs=!0)}function rv(e,t){var s=e;s.multiple=!!t.multiple;var c=t.value;c!=null?ko(s,!!t.multiple,c,!1):t.defaultValue!=null&&ko(s,!!t.multiple,t.defaultValue,!0)}function Z0(e,t){var s=e,c=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!t.multiple;var p=t.value;p!=null?ko(s,!!t.multiple,p,!1):c!==!!t.multiple&&(t.defaultValue!=null?ko(s,!!t.multiple,t.defaultValue,!0):ko(s,!!t.multiple,t.multiple?[]:"",!1))}function Lm(e,t){var s=e,c=t.value;c!=null&&ko(s,!!t.multiple,c,!1)}var Pm=!1;function av(e,t){var s=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var c=Lt({},t,{value:void 0,defaultValue:void 0,children:Sa(s._wrapperState.initialValue)});return c}function Fm(e,t){var s=e;cl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Pm&&(v("%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",si()||"A component"),Pm=!0);var c=t.value;if(c==null){var p=t.children,g=t.defaultValue;if(p!=null){v("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Zt(p)){if(p.length>1)throw new Error("<textarea> can only have at most one child.");p=p[0]}g=p}}g==null&&(g=""),c=g}s._wrapperState={initialValue:Fi(c)}}function Vm(e,t){var s=e,c=Fi(t.value),p=Fi(t.defaultValue);if(c!=null){var g=Sa(c);g!==s.value&&(s.value=g),t.defaultValue==null&&s.defaultValue!==g&&(s.defaultValue=g)}p!=null&&(s.defaultValue=Sa(p))}function Kf(e,t){var s=e,c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function J0(e,t){Vm(e,t)}var Mo="http://www.w3.org/1999/xhtml",q0="http://www.w3.org/1998/Math/MathML",ed="http://www.w3.org/2000/svg";function iv(e){switch(e){case"svg":return ed;case"math":return q0;default:return Mo}}function ov(e,t){return e==null||e===Mo?iv(t):e===ed&&t==="foreignObject"?Mo:e}var Q0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,s,c,p){MSApp.execUnsafeLocalFunction(function(){return e(t,s,c,p)})}:e},td,Bm=Q0(function(e,t){if(e.namespaceURI===ed&&!("innerHTML"in e)){td=td||document.createElement("div"),td.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var s=td.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;s.firstChild;)e.appendChild(s.firstChild);return}e.innerHTML=t}),Ea=1,Lo=3,Qn=8,$a=9,sv=11,kc=function(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===Lo){s.nodeValue=t;return}}e.textContent=t},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"]},vu={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 Um(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var Hm=["Webkit","ms","Moz","O"];Object.keys(vu).forEach(function(e){Hm.forEach(function(t){vu[Um(t,e)]=vu[e]})});function Ss(e,t,s){var c=t==null||typeof t=="boolean"||t==="";return c?"":!s&&typeof t=="number"&&t!==0&&!(vu.hasOwnProperty(e)&&vu[e])?t+"px":(qn(t,e),(""+t).trim())}var K0=/([A-Z])/g,eC=/^ms-/;function tC(e){return e.replace(K0,"-$1").toLowerCase().replace(eC,"-ms-")}var lv=function(){};{var $m=/^(?:webkit|moz|o)[A-Z]/,Mc=/^-ms-/,Lc=/-(.)/g,Gm=/;\s*$/,Po={},uv={},cv=!1,nd=!1,fv=function(e){return e.replace(Lc,function(t,s){return s.toUpperCase()})},Wm=function(e){Po.hasOwnProperty(e)&&Po[e]||(Po[e]=!0,v("Unsupported style property %s. Did you mean %s?",e,fv(e.replace(Mc,"ms-"))))},Xm=function(e){Po.hasOwnProperty(e)&&Po[e]||(Po[e]=!0,v("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},Ym=function(e,t){uv.hasOwnProperty(t)&&uv[t]||(uv[t]=!0,v(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Gm,"")))},nC=function(e,t){cv||(cv=!0,v("`NaN` is an invalid value for the `%s` css style property.",e))},rC=function(e,t){nd||(nd=!0,v("`Infinity` is an invalid value for the `%s` css style property.",e))};lv=function(e,t){e.indexOf("-")>-1?Wm(e):$m.test(e)?Xm(e):Gm.test(t)&&Ym(e,t),typeof t=="number"&&(isNaN(t)?nC(e,t):isFinite(t)||rC(e,t))}}var aC=lv;function iC(e){{var t="",s="";for(var c in e)if(e.hasOwnProperty(c)){var p=e[c];if(p!=null){var g=c.indexOf("--")===0;t+=s+(g?c:tC(c))+":",t+=Ss(c,p,g),s=";"}}return t||null}}function Zm(e,t){var s=e.style;for(var c in t)if(t.hasOwnProperty(c)){var p=c.indexOf("--")===0;p||aC(c,t[c]);var g=Ss(c,t[c],p);c==="float"&&(c="cssFloat"),p?s.setProperty(c,g):s[c]=g}}function Bi(e){return e==null||typeof e=="boolean"||e===""}function hu(e){var t={};for(var s in e)for(var c=zm[s]||[s],p=0;p<c.length;p++)t[c[p]]=s;return t}function Jm(e,t){{if(!t)return;var s=hu(e),c=hu(t),p={};for(var g in s){var E=s[g],I=c[g];if(I&&E!==I){var j=E+","+I;if(p[j])continue;p[j]=!0,v("%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.",Bi(e[E])?"Removing":"Updating",E,I)}}}}var qm={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},Qm=Lt({menuitem:!0},qm),Km="__html";function Pc(e,t){if(t){if(Qm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(Km in t.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(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&v("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."),t.style!=null&&typeof t.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 dl(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 rd={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"},pl={"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},Es={},Fc=new RegExp("^(aria)-["+dt+"]*$"),dv=new RegExp("^(aria)[A-Z]["+dt+"]*$");function eg(e,t){{if(pt.call(Es,t)&&Es[t])return!0;if(dv.test(t)){var s="aria-"+t.slice(4).toLowerCase(),c=pl.hasOwnProperty(s)?s:null;if(c==null)return v("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Es[t]=!0,!0;if(t!==c)return v("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,c),Es[t]=!0,!0}if(Fc.test(t)){var p=t.toLowerCase(),g=pl.hasOwnProperty(p)?p:null;if(g==null)return Es[t]=!0,!1;if(t!==g)return v("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,g),Es[t]=!0,!0}}return!0}function ad(e,t){{var s=[];for(var c in t){var p=eg(e,c);p||s.push(c)}var g=s.map(function(E){return"`"+E+"`"}).join(", ");s.length===1?v("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e):s.length>1&&v("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e)}}function mu(e,t){dl(e,t)||ad(e,t)}var id=!1;function tg(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!id&&(id=!0,e==="select"&&t.multiple?v("`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):v("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Vc=function(){};{var Zr={},pv=/^on./,ng=/^on[^A-Z]/,rg=new RegExp("^(aria)-["+dt+"]*$"),ag=new RegExp("^(aria)[A-Z]["+dt+"]*$");Vc=function(e,t,s,c){if(pt.call(Zr,t)&&Zr[t])return!0;var p=t.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return v("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."),Zr[t]=!0,!0;if(c!=null){var g=c.registrationNameDependencies,E=c.possibleRegistrationNames;if(g.hasOwnProperty(t))return!0;var I=E.hasOwnProperty(p)?E[p]:null;if(I!=null)return v("Invalid event handler property `%s`. Did you mean `%s`?",t,I),Zr[t]=!0,!0;if(pv.test(t))return v("Unknown event handler property `%s`. It will be ignored.",t),Zr[t]=!0,!0}else if(pv.test(t))return ng.test(t)&&v("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Zr[t]=!0,!0;if(rg.test(t)||ag.test(t))return!0;if(p==="innerhtml")return v("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Zr[t]=!0,!0;if(p==="aria")return v("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Zr[t]=!0,!0;if(p==="is"&&s!==null&&s!==void 0&&typeof s!="string")return v("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),Zr[t]=!0,!0;if(typeof s=="number"&&isNaN(s))return v("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Zr[t]=!0,!0;var j=Ir(t),P=j!==null&&j.type===Tr;if(rd.hasOwnProperty(p)){var B=rd[p];if(B!==t)return v("Invalid DOM property `%s`. Did you mean `%s`?",t,B),Zr[t]=!0,!0}else if(!P&&t!==p)return v("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.",t,p),Zr[t]=!0,!0;return typeof s=="boolean"&&Xr(t,s,j,!1)?(s?v('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,t,t,s,t):v('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,t,t,s,t,t,t),Zr[t]=!0,!0):P?!0:Xr(t,s,j,!1)?(Zr[t]=!0,!1):((s==="false"||s==="true")&&j!==null&&j.type===ln&&(v("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,t,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".',t,s),Zr[t]=!0),!0)}}var ig=function(e,t,s){{var c=[];for(var p in t){var g=Vc(e,p,t[p],s);g||c.push(p)}var E=c.map(function(I){return"`"+I+"`"}).join(", ");c.length===1?v("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&&v("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 ws(e,t,s){dl(e,t)||ig(e,t,s)}var od=1,Bc=2,zc=4,oC=od|Bc|zc,Fo=null;function sC(e){Fo!==null&&v("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Fo=e}function og(){Fo===null&&v("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Fo=null}function sg(e){return e===Fo}function Tn(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Lo?t.parentNode:t}var Uc=null,Vo=null,ro=null;function vv(e){var t=Yu(e);if(t){if(typeof Uc!="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=t.stateNode;if(s){var c=fy(s);Uc(t.stateNode,t.type,c)}}}function hv(e){Uc=e}function gu(e){Vo?ro?ro.push(e):ro=[e]:Vo=e}function sd(){return Vo!==null||ro!==null}function vl(){if(Vo){var e=Vo,t=ro;if(Vo=null,ro=null,vv(e),t)for(var s=0;s<t.length;s++)vv(t[s])}}var mv=function(e,t){return e(t)},lg=function(){},gv=!1;function ug(){var e=sd();e&&(lg(),vl())}function Hc(e,t,s){if(gv)return e(t,s);gv=!0;try{return mv(e,t,s)}finally{gv=!1,ug()}}function ld(e,t,s){mv=e,lg=s}function yv(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function bv(e,t,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&&yv(t));default:return!1}}function hl(e,t){var s=e.stateNode;if(s===null)return null;var c=fy(s);if(c===null)return null;var p=c[t];if(bv(t,e.type,c))return null;if(p&&typeof p!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}var $c=!1;if(It)try{var Gc={};Object.defineProperty(Gc,"passive",{get:function(){$c=!0}}),window.addEventListener("test",Gc,Gc),window.removeEventListener("test",Gc,Gc)}catch{$c=!1}function Cv(e,t,s,c,p,g,E,I,j){var P=Array.prototype.slice.call(arguments,3);try{t.apply(s,P)}catch(B){this.onError(B)}}var cg=Cv;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var xv=document.createElement("react");cg=function(t,s,c,p,g,E,I,j,P){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 B=document.createEvent("Event"),te=!1,K=!0,ce=window.event,de=Object.getOwnPropertyDescriptor(window,"event");function be(){xv.removeEventListener(Ce,gt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ce)}var qe=Array.prototype.slice.call(arguments,3);function gt(){te=!0,be(),s.apply(c,qe),K=!1}var ct,Wt=!1,Ut=!1;function ie(oe){if(ct=oe.error,Wt=!0,ct===null&&oe.colno===0&&oe.lineno===0&&(Ut=!0),oe.defaultPrevented&&ct!=null&&typeof ct=="object")try{ct._suppressLogging=!0}catch{}}var Ce="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",ie),xv.addEventListener(Ce,gt,!1),B.initEvent(Ce,!1,!1),xv.dispatchEvent(B),de&&Object.defineProperty(window,"event",de),te&&K&&(Wt?Ut&&(ct=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.")):ct=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(ct)),window.removeEventListener("error",ie),!te)return be(),Cv.apply(this,arguments)}}var Sv=cg,Ga=!1,Wc=null,Bo=!1,ui=null,Xc={onError:function(e){Ga=!0,Wc=e}};function zi(e,t,s,c,p,g,E,I,j){Ga=!1,Wc=null,Sv.apply(Xc,arguments)}function Ev(e,t,s,c,p,g,E,I,j){if(zi.apply(this,arguments),Ga){var P=zo();Bo||(Bo=!0,ui=P)}}function lC(){if(Bo){var e=ui;throw Bo=!1,ui=null,e}}function uC(){return Ga}function zo(){if(Ga){var e=Wc;return Ga=!1,Wc=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 ao(e){return e._reactInternals}function yu(e){return e._reactInternals!==void 0}function ud(e,t){e._reactInternals=t}var ht=0,Ui=1,In=2,st=4,tn=16,ci=32,Nr=64,Ot=128,ra=256,Wa=512,vr=1024,wa=2048,io=4096,Rs=8192,ml=16384,fg=wa|st|Nr|Wa|vr|ml,Uo=32767,Ts=32768,Lr=65536,cd=131072,dg=1048576,oo=2097152,fi=4194304,Is=8388608,di=16777216,gl=33554432,Ra=st|vr|0,Ta=In|st|tn|ci|Wa|io|Rs,Hi=st|Nr|Wa|Rs,Ia=wa|tn,Pr=fi|Is|oo,yl=u.ReactCurrentOwner;function Ns(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{var c=t;do t=c,(t.flags&(In|io))!==ht&&(s=t.return),c=t.return;while(c)}return t.tag===T?s:null}function fd(e){if(e.tag===H){var t=e.memoizedState;if(t===null){var s=e.alternate;s!==null&&(t=s.memoizedState)}if(t!==null)return t.dehydrated}return null}function dd(e){return e.tag===T?e.stateNode.containerInfo:null}function Xa(e){return Ns(e)===e}function Ya(e){{var t=yl.current;if(t!==null&&t.tag===x){var s=t,c=s.stateNode;c._warnedAboutRefsInRender||v("%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.",Nt(s)||"A component"),c._warnedAboutRefsInRender=!0}}var p=ao(e);return p?Ns(p)===p:!1}function Bn(e){if(Ns(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function pi(e){var t=e.alternate;if(!t){var s=Ns(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=t;;){var g=c.return;if(g===null)break;var E=g.alternate;if(E===null){var I=g.return;if(I!==null){c=p=I;continue}break}if(g.child===E.child){for(var j=g.child;j;){if(j===c)return Bn(g),e;if(j===p)return Bn(g),t;j=j.sibling}throw new Error("Unable to find node on an unmounted component.")}if(c.return!==p.return)c=g,p=E;else{for(var P=!1,B=g.child;B;){if(B===c){P=!0,c=g,p=E;break}if(B===p){P=!0,p=g,c=E;break}B=B.sibling}if(!P){for(B=E.child;B;){if(B===c){P=!0,c=E,p=g;break}if(B===p){P=!0,p=E,c=g;break}B=B.sibling}if(!P)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!==T)throw new Error("Unable to find node on an unmounted component.");return c.stateNode.current===c?e:t}function wv(e){var t=pi(e);return t!==null?Rv(t):null}function Rv(e){if(e.tag===N||e.tag===O)return e;for(var t=e.child;t!==null;){var s=Rv(t);if(s!==null)return s;t=t.sibling}return null}function Tv(e){var t=pi(e);return t!==null?pd(t):null}function pd(e){if(e.tag===N||e.tag===O)return e;for(var t=e.child;t!==null;){if(t.tag!==A){var s=pd(t);if(s!==null)return s}t=t.sibling}return null}var Iv=i.unstable_scheduleCallback,vd=i.unstable_cancelCallback,pg=i.unstable_shouldYield,bu=i.unstable_requestPaint,hr=i.unstable_now,cC=i.unstable_getCurrentPriorityLevel,Na=i.unstable_ImmediatePriority,Cu=i.unstable_UserBlockingPriority,so=i.unstable_NormalPriority,xu=i.unstable_LowPriority,Yc=i.unstable_IdlePriority,Nv=i.unstable_yieldValue,_v=i.unstable_setDisableYieldValue,_s=null,ir=null,Ue=null,Jr=!1,Za=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function vg(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return v("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{le&&(e=Lt({},e,{getLaneLabelMap:hd,injectProfilingHooks:As})),_s=t.inject(e),ir=t}catch(s){v("React instrumentation encountered an error: %s.",s)}return!!t.checkDCE}function Ho(e,t){if(ir&&typeof ir.onScheduleFiberRoot=="function")try{ir.onScheduleFiberRoot(_s,e,t)}catch(s){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",s))}}function Os(e,t){if(ir&&typeof ir.onCommitFiberRoot=="function")try{var s=(e.current.flags&Ot)===Ot;if(ve){var c;switch(t){case ur:c=Na;break;case Go:c=Cu;break;case co:c=so;break;case Au:c=Yc;break;default:c=so;break}ir.onCommitFiberRoot(_s,e,c,s)}}catch(p){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",p))}}function Ov(e){if(ir&&typeof ir.onPostCommitFiberRoot=="function")try{ir.onPostCommitFiberRoot(_s,e)}catch(t){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",t))}}function hg(e){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(_s,e)}catch(t){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",t))}}function kn(e){if(typeof Nv=="function"&&(_v(e),d(e)),ir&&typeof ir.setStrictMode=="function")try{ir.setStrictMode(_s,e)}catch(t){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",t))}}function As(e){Ue=e}function hd(){{for(var e=new Map,t=1,s=0;s<or;s++){var c=Eg(t);e.set(t,c),t*=2}return e}}function mg(e){Ue!==null&&typeof Ue.markCommitStarted=="function"&&Ue.markCommitStarted(e)}function Zc(){Ue!==null&&typeof Ue.markCommitStopped=="function"&&Ue.markCommitStopped()}function Su(e){Ue!==null&&typeof Ue.markComponentRenderStarted=="function"&&Ue.markComponentRenderStarted(e)}function bl(){Ue!==null&&typeof Ue.markComponentRenderStopped=="function"&&Ue.markComponentRenderStopped()}function Av(e){Ue!==null&&typeof Ue.markComponentPassiveEffectMountStarted=="function"&&Ue.markComponentPassiveEffectMountStarted(e)}function md(){Ue!==null&&typeof Ue.markComponentPassiveEffectMountStopped=="function"&&Ue.markComponentPassiveEffectMountStopped()}function gg(e){Ue!==null&&typeof Ue.markComponentPassiveEffectUnmountStarted=="function"&&Ue.markComponentPassiveEffectUnmountStarted(e)}function yg(){Ue!==null&&typeof Ue.markComponentPassiveEffectUnmountStopped=="function"&&Ue.markComponentPassiveEffectUnmountStopped()}function bg(e){Ue!==null&&typeof Ue.markComponentLayoutEffectMountStarted=="function"&&Ue.markComponentLayoutEffectMountStarted(e)}function jv(){Ue!==null&&typeof Ue.markComponentLayoutEffectMountStopped=="function"&&Ue.markComponentLayoutEffectMountStopped()}function Eu(e){Ue!==null&&typeof Ue.markComponentLayoutEffectUnmountStarted=="function"&&Ue.markComponentLayoutEffectUnmountStarted(e)}function Jc(){Ue!==null&&typeof Ue.markComponentLayoutEffectUnmountStopped=="function"&&Ue.markComponentLayoutEffectUnmountStopped()}function Cg(e,t,s){Ue!==null&&typeof Ue.markComponentErrored=="function"&&Ue.markComponentErrored(e,t,s)}function xg(e,t,s){Ue!==null&&typeof Ue.markComponentSuspended=="function"&&Ue.markComponentSuspended(e,t,s)}function wu(e){Ue!==null&&typeof Ue.markLayoutEffectsStarted=="function"&&Ue.markLayoutEffectsStarted(e)}function Sg(){Ue!==null&&typeof Ue.markLayoutEffectsStopped=="function"&&Ue.markLayoutEffectsStopped()}function qc(e){Ue!==null&&typeof Ue.markPassiveEffectsStarted=="function"&&Ue.markPassiveEffectsStarted(e)}function lo(){Ue!==null&&typeof Ue.markPassiveEffectsStopped=="function"&&Ue.markPassiveEffectsStopped()}function Ru(e){Ue!==null&&typeof Ue.markRenderStarted=="function"&&Ue.markRenderStarted(e)}function Qc(){Ue!==null&&typeof Ue.markRenderYielded=="function"&&Ue.markRenderYielded()}function js(){Ue!==null&&typeof Ue.markRenderStopped=="function"&&Ue.markRenderStopped()}function Dv(e){Ue!==null&&typeof Ue.markRenderScheduled=="function"&&Ue.markRenderScheduled(e)}function Tu(e,t){Ue!==null&&typeof Ue.markForceUpdateScheduled=="function"&&Ue.markForceUpdateScheduled(e,t)}function gd(e,t){Ue!==null&&typeof Ue.markStateUpdateScheduled=="function"&&Ue.markStateUpdateScheduled(e,t)}var mt=0,ut=1,Qt=2,Kn=8,hi=16,Kc=Math.clz32?Math.clz32:Yn,kv=Math.log,Cl=Math.LN2;function Yn(e){var t=e>>>0;return t===0?32:31-(kv(t)/Cl|0)|0}var or=31,Ee=0,sr=0,bt=1,uo=2,$o=4,er=8,mi=16,xl=32,Ds=4194240,_a=64,Oa=128,Sl=256,ef=512,tf=1024,yd=2048,bd=4096,Cd=8192,xd=16384,Sd=32768,Ed=65536,wd=131072,Rd=262144,El=524288,Td=1048576,Iu=2097152,wl=130023424,Rl=4194304,nf=8388608,Id=16777216,Nd=33554432,_d=67108864,Mv=Rl,Tl=134217728,Lv=268435455,Nu=268435456,ks=536870912,Ja=1073741824;function Eg(e){{if(e&bt)return"Sync";if(e&uo)return"InputContinuousHydration";if(e&$o)return"InputContinuous";if(e&er)return"DefaultHydration";if(e&mi)return"Default";if(e&xl)return"TransitionHydration";if(e&Ds)return"Transition";if(e&wl)return"Retry";if(e&Tl)return"SelectiveHydration";if(e&Nu)return"IdleHydration";if(e&ks)return"Idle";if(e&Ja)return"Offscreen"}}var Mn=-1,Od=_a,rf=Rl;function _u(e){switch(lr(e)){case bt:return bt;case uo:return uo;case $o:return $o;case er:return er;case mi:return mi;case xl:return xl;case _a:case Oa:case Sl:case ef:case tf:case yd:case bd:case Cd:case xd:case Sd:case Ed:case wd:case Rd:case El:case Td:case Iu:return e&Ds;case Rl:case nf:case Id:case Nd:case _d:return e&wl;case Tl:return Tl;case Nu:return Nu;case ks:return ks;case Ja:return Ja;default:return v("Should have found matching lanes. This is a bug in React."),e}}function af(e,t){var s=e.pendingLanes;if(s===Ee)return Ee;var c=Ee,p=e.suspendedLanes,g=e.pingedLanes,E=s&Lv;if(E!==Ee){var I=E&~p;if(I!==Ee)c=_u(I);else{var j=E&g;j!==Ee&&(c=_u(j))}}else{var P=s&~p;P!==Ee?c=_u(P):g!==Ee&&(c=_u(g))}if(c===Ee)return Ee;if(t!==Ee&&t!==c&&(t&p)===Ee){var B=lr(c),te=lr(t);if(B>=te||B===mi&&(te&Ds)!==Ee)return t}(c&$o)!==Ee&&(c|=s&mi);var K=e.entangledLanes;if(K!==Ee)for(var ce=e.entanglements,de=c&K;de>0;){var be=Ls(de),qe=1<<be;c|=ce[be],de&=~qe}return c}function Ad(e,t){for(var s=e.eventTimes,c=Mn;t>0;){var p=Ls(t),g=1<<p,E=s[p];E>c&&(c=E),t&=~g}return c}function fC(e,t){switch(e){case bt:case uo:case $o:return t+250;case er:case mi:case xl:case _a:case Oa:case Sl:case ef:case tf:case yd:case bd:case Cd:case xd:case Sd:case Ed:case wd:case Rd:case El:case Td:case Iu:return t+5e3;case Rl:case nf:case Id:case Nd:case _d:return Mn;case Tl:case Nu:case ks:case Ja:return Mn;default:return v("Should have found matching lanes. This is a bug in React."),Mn}}function dC(e,t){for(var s=e.pendingLanes,c=e.suspendedLanes,p=e.pingedLanes,g=e.expirationTimes,E=s;E>0;){var I=Ls(E),j=1<<I,P=g[I];P===Mn?((j&c)===Ee||(j&p)!==Ee)&&(g[I]=fC(j,t)):P<=t&&(e.expiredLanes|=j),E&=~j}}function pC(e){return _u(e.pendingLanes)}function Ms(e){var t=e.pendingLanes&~Ja;return t!==Ee?t:t&Ja?Ja:Ee}function Pv(e){return(e&bt)!==Ee}function of(e){return(e&Lv)!==Ee}function wg(e){return(e&wl)===e}function Rg(e){var t=bt|$o|mi;return(e&t)===Ee}function Tg(e){return(e&Ds)===e}function sf(e,t){var s=uo|$o|er|mi;return(t&s)!==Ee}function Ig(e,t){return(t&e.expiredLanes)!==Ee}function Fv(e){return(e&Ds)!==Ee}function Ng(){var e=Od;return Od<<=1,(Od&Ds)===Ee&&(Od=_a),e}function Aa(){var e=rf;return rf<<=1,(rf&wl)===Ee&&(rf=Rl),e}function lr(e){return e&-e}function Ou(e){return lr(e)}function Ls(e){return 31-Kc(e)}function jd(e){return Ls(e)}function ja(e,t){return(e&t)!==Ee}function Il(e,t){return(e&t)===t}function Dt(e,t){return e|t}function lf(e,t){return e&~t}function Dd(e,t){return e&t}function vC(e){return e}function _g(e,t){return e!==sr&&e<t?e:t}function uf(e){for(var t=[],s=0;s<or;s++)t.push(e);return t}function Nl(e,t,s){e.pendingLanes|=t,t!==ks&&(e.suspendedLanes=Ee,e.pingedLanes=Ee);var c=e.eventTimes,p=jd(t);c[p]=s}function Og(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var s=e.expirationTimes,c=t;c>0;){var p=Ls(c),g=1<<p;s[p]=Mn,c&=~g}}function kd(e,t,s){e.pingedLanes|=e.suspendedLanes&t}function Md(e,t){var s=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=Ee,e.pingedLanes=Ee,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var c=e.entanglements,p=e.eventTimes,g=e.expirationTimes,E=s;E>0;){var I=Ls(E),j=1<<I;c[I]=Ee,p[I]=Mn,g[I]=Mn,E&=~j}}function Vv(e,t){for(var s=e.entangledLanes|=t,c=e.entanglements,p=s;p;){var g=Ls(p),E=1<<g;E&t|c[g]&t&&(c[g]|=t),p&=~E}}function Ag(e,t){var s=lr(t),c;switch(s){case $o:c=uo;break;case mi:c=er;break;case _a:case Oa:case Sl:case ef:case tf:case yd:case bd:case Cd:case xd:case Sd:case Ed:case wd:case Rd:case El:case Td:case Iu:case Rl:case nf:case Id:case Nd:case _d:c=xl;break;case ks:c=Nu;break;default:c=sr;break}return(c&(e.suspendedLanes|t))!==sr?sr:c}function Ld(e,t,s){if(Za)for(var c=e.pendingUpdatersLaneMap;s>0;){var p=jd(s),g=1<<p,E=c[p];E.add(t),s&=~g}}function Bv(e,t){if(Za)for(var s=e.pendingUpdatersLaneMap,c=e.memoizedUpdaters;t>0;){var p=jd(t),g=1<<p,E=s[p];E.size>0&&(E.forEach(function(I){var j=I.alternate;(j===null||!c.has(j))&&c.add(I)}),E.clear()),t&=~g}}function cf(e,t){return null}var ur=bt,Go=$o,co=mi,Au=ks,ju=sr;function gi(){return ju}function tr(e){ju=e}function qr(e,t){var s=ju;try{return ju=e,t()}finally{ju=s}}function hC(e,t){return e!==0&&e<t?e:t}function mC(e,t){return e===0||e>t?e:t}function Du(e,t){return e!==0&&e<t}function Fr(e){var t=lr(e);return Du(ur,t)?Du(Go,t)?of(t)?co:Au:Go:ur}function Pd(e){var t=e.current.memoizedState;return t.isDehydrated}var Ke;function ku(e){Ke=e}function zv(e){Ke(e)}var Fd;function gC(e){Fd=e}var Mu;function Vd(e){Mu=e}var Bd;function jg(e){Bd=e}var Uv;function Dg(e){Uv=e}var ff=!1,Lu=[],Hn=null,_r=null,aa=null,Pu=new Map,Fu=new Map,Or=[],kg=["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 fo(e){return kg.indexOf(e)>-1}function yC(e,t,s,c,p){return{blockedOn:e,domEventName:t,eventSystemFlags:s,nativeEvent:p,targetContainers:[c]}}function Hv(e,t){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":_r=null;break;case"mouseover":case"mouseout":aa=null;break;case"pointerover":case"pointerout":{var s=t.pointerId;Pu.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var c=t.pointerId;Fu.delete(c);break}}}function Vu(e,t,s,c,p,g){if(e===null||e.nativeEvent!==g){var E=yC(t,s,c,p,g);if(t!==null){var I=Yu(t);I!==null&&Fd(I)}return E}e.eventSystemFlags|=c;var j=e.targetContainers;return p!==null&&j.indexOf(p)===-1&&j.push(p),e}function Mg(e,t,s,c,p){switch(t){case"focusin":{var g=p;return Hn=Vu(Hn,e,t,s,c,g),!0}case"dragenter":{var E=p;return _r=Vu(_r,e,t,s,c,E),!0}case"mouseover":{var I=p;return aa=Vu(aa,e,t,s,c,I),!0}case"pointerover":{var j=p,P=j.pointerId;return Pu.set(P,Vu(Pu.get(P)||null,e,t,s,c,j)),!0}case"gotpointercapture":{var B=p,te=B.pointerId;return Fu.set(te,Vu(Fu.get(te)||null,e,t,s,c,B)),!0}}return!1}function $v(e){var t=Ef(e.target);if(t!==null){var s=Ns(t);if(s!==null){var c=s.tag;if(c===H){var p=fd(s);if(p!==null){e.blockedOn=p,Uv(e.priority,function(){Mu(s)});return}}else if(c===T){var g=s.stateNode;if(Pd(g)){e.blockedOn=dd(s);return}}}}e.blockedOn=null}function bC(e){for(var t=Bd(),s={blockedOn:null,target:e,priority:t},c=0;c<Or.length&&Du(t,Or[c].priority);c++);Or.splice(c,0,s),c===0&&$v(s)}function _l(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var s=t[0],c=Qr(e.domEventName,e.eventSystemFlags,s,e.nativeEvent);if(c===null){var p=e.nativeEvent,g=new p.constructor(p.type,p);sC(g),p.target.dispatchEvent(g),og()}else{var E=Yu(c);return E!==null&&Fd(E),e.blockedOn=c,!1}t.shift()}return!0}function zd(e,t,s){_l(e)&&s.delete(t)}function yi(){ff=!1,Hn!==null&&_l(Hn)&&(Hn=null),_r!==null&&_l(_r)&&(_r=null),aa!==null&&_l(aa)&&(aa=null),Pu.forEach(zd),Fu.forEach(zd)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,ff||(ff=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,yi)))}function nr(e){if(Lu.length>0){zt(Lu[0],e);for(var t=1;t<Lu.length;t++){var s=Lu[t];s.blockedOn===e&&(s.blockedOn=null)}}Hn!==null&&zt(Hn,e),_r!==null&&zt(_r,e),aa!==null&&zt(aa,e);var c=function(I){return zt(I,e)};Pu.forEach(c),Fu.forEach(c);for(var p=0;p<Or.length;p++){var g=Or[p];g.blockedOn===e&&(g.blockedOn=null)}for(;Or.length>0;){var E=Or[0];if(E.blockedOn!==null)break;$v(E),E.blockedOn===null&&Or.shift()}}var zn=u.ReactCurrentBatchConfig,br=!0;function Da(e){br=!!e}function Bu(){return br}function Cr(e,t,s){var c=Ud(t),p;switch(c){case ur:p=df;break;case Go:p=Ol;break;case co:default:p=zu;break}return p.bind(null,t,s,e)}function df(e,t,s,c){var p=gi(),g=zn.transition;zn.transition=null;try{tr(ur),zu(e,t,s,c)}finally{tr(p),zn.transition=g}}function Ol(e,t,s,c){var p=gi(),g=zn.transition;zn.transition=null;try{tr(Go),zu(e,t,s,c)}finally{tr(p),zn.transition=g}}function zu(e,t,s,c){br&&Gv(e,t,s,c)}function Gv(e,t,s,c){var p=Qr(e,t,s,c);if(p===null){LC(e,t,c,Ps,s),Hv(e,c);return}if(Mg(p,e,t,s,c)){c.stopPropagation();return}if(Hv(e,c),t&zc&&fo(e)){for(;p!==null;){var g=Yu(p);g!==null&&zv(g);var E=Qr(e,t,s,c);if(E===null&&LC(e,t,c,Ps,s),E===p)break;p=E}p!==null&&c.stopPropagation();return}LC(e,t,c,null,s)}var Ps=null;function Qr(e,t,s,c){Ps=null;var p=Tn(c),g=Ef(p);if(g!==null){var E=Ns(g);if(E===null)g=null;else{var I=E.tag;if(I===H){var j=fd(E);if(j!==null)return j;g=null}else if(I===T){var P=E.stateNode;if(Pd(P))return dd(E);g=null}else E!==g&&(g=null)}}return Ps=g,null}function Ud(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 ur;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 Go;case"message":{var t=cC();switch(t){case Na:return ur;case Cu:return Go;case so:case xu:return co;case Yc:return Au;default:return co}}default:return co}}function Uu(e,t,s){return e.addEventListener(t,s,!1),s}function Wo(e,t,s){return e.addEventListener(t,s,!0),s}function Hd(e,t,s,c){return e.addEventListener(t,s,{capture:!0,passive:c}),s}function Wv(e,t,s,c){return e.addEventListener(t,s,{passive:c}),s}var bi=null,Hu=null,Ci=null;function $d(e){return bi=e,Hu=vf(),!0}function pf(){bi=null,Hu=null,Ci=null}function Gd(){if(Ci)return Ci;var e,t=Hu,s=t.length,c,p=vf(),g=p.length;for(e=0;e<s&&t[e]===p[e];e++);var E=s-e;for(c=1;c<=E&&t[s-c]===p[g-c];c++);var I=c>1?1-c:void 0;return Ci=p.slice(e,I),Ci}function vf(){return"value"in bi?bi.value:bi.textContent}function Al(e){var t,s=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&s===13&&(t=13)):t=s,t===10&&(t=13),t>=32||t===13?t:0}function Ar(){return!0}function Xo(){return!1}function Zn(e){function t(s,c,p,g,E){this._reactName=s,this._targetInst=p,this.type=c,this.nativeEvent=g,this.target=E,this.currentTarget=null;for(var I in e)if(e.hasOwnProperty(I)){var j=e[I];j?this[I]=j(g):this[I]=g[I]}var P=g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1;return P?this.isDefaultPrevented=Ar:this.isDefaultPrevented=Xo,this.isPropagationStopped=Xo,this}return Lt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ar)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ar)},persist:function(){},isPersistent:Ar}),t}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wd=Zn(xr),jl=Lt({},xr,{view:0,detail:0}),Xv=Zn(jl),Yv,po,$u;function Zv(e){e!==$u&&($u&&e.type==="mousemove"?(Yv=e.screenX-$u.screenX,po=e.screenY-$u.screenY):(Yv=0,po=0),$u=e)}var vo=Lt({},jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jv,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:(Zv(e),Yv)},movementY:function(e){return"movementY"in e?e.movementY:po}}),Xd=Zn(vo),Dl=Lt({},vo,{dataTransfer:0}),Lg=Zn(Dl),Pg=Lt({},jl,{relatedTarget:0}),hf=Zn(Pg),Yd=Lt({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),CC=Zn(Yd),xC=Lt({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fg=Zn(xC),Vg=Lt({},xr,{data:0}),Fs=Zn(Vg),SC=Fs,Gu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bg={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 rr(e){if(e.key){var t=Gu[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var s=Al(e);return s===13?"Enter":String.fromCharCode(s)}return e.type==="keydown"||e.type==="keyup"?Bg[e.keyCode]||"Unidentified":""}var EC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zg(e){var t=this,s=t.nativeEvent;if(s.getModifierState)return s.getModifierState(e);var c=EC[e];return c?!!s[c]:!1}function Jv(e){return zg}var wC=Lt({},jl,{key:rr,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jv,charCode:function(e){return e.type==="keypress"?Al(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Al(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ug=Zn(wC),Hg=Lt({},vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$g=Zn(Hg),xi=Lt({},jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jv}),qv=Zn(xi),RC=Lt({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vs=Zn(RC),Zd=Lt({},vo,{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}),kl=Zn(Zd),Jd=[9,13,27,32],qd=229,mf=It&&"CompositionEvent"in window,gf=null;It&&"documentMode"in document&&(gf=document.documentMode);var Qv=It&&"TextEvent"in window&&!gf,Gg=It&&(!mf||gf&&gf>8&&gf<=11),Kv=32,eh=String.fromCharCode(Kv);function Qd(){ft("onBeforeInput",["compositionend","keypress","textInput","paste"]),ft("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),ft("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),ft("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var yf=!1;function Wg(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function th(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function TC(e,t){return e==="keydown"&&t.keyCode===qd}function nh(e,t){switch(e){case"keyup":return Jd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==qd;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kd(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function bf(e){return e.locale==="ko"}var Bs=!1;function ep(e,t,s,c,p){var g,E;if(mf?g=th(t):Bs?nh(t,c)&&(g="onCompositionEnd"):TC(t,c)&&(g="onCompositionStart"),!g)return null;Gg&&!bf(c)&&(!Bs&&g==="onCompositionStart"?Bs=$d(p):g==="onCompositionEnd"&&Bs&&(E=Gd()));var I=Qg(s,g);if(I.length>0){var j=new Fs(g,t,null,c,p);if(e.push({event:j,listeners:I}),E)j.data=E;else{var P=Kd(c);P!==null&&(j.data=P)}}}function Xg(e,t){switch(e){case"compositionend":return Kd(t);case"keypress":var s=t.which;return s!==Kv?null:(yf=!0,eh);case"textInput":var c=t.data;return c===eh&&yf?null:c;default:return null}}function IC(e,t){if(Bs){if(e==="compositionend"||!mf&&nh(e,t)){var s=Gd();return pf(),Bs=!1,s}return null}switch(e){case"paste":return null;case"keypress":if(!Wg(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Gg&&!bf(t)?null:t.data;default:return null}}function tp(e,t,s,c,p){var g;if(Qv?g=Xg(t,c):g=IC(t,c),!g)return null;var E=Qg(s,"onBeforeInput");if(E.length>0){var I=new SC("onBeforeInput","beforeinput",null,c,p);e.push({event:I,listeners:E}),I.data=g}}function NC(e,t,s,c,p,g,E){ep(e,t,s,c,p),tp(e,t,s,c,p)}var Cf={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 Yg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cf[e.type]:t==="textarea"}/**
|
|
112
|
+
Check the render method of \``+e+"`.":""}var Oc=["value","defaultValue"];function Ac(e){{cl("select",e);for(var t=0;t<Oc.length;t++){var s=Oc[t];if(e[s]!=null){var c=Zt(e[s]);e.multiple&&!c?v("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,pu()):!e.multiple&&c&&v("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,pu())}}}}function ko(e,t,s,c){var p=e.options;if(t){for(var g=s,E={},I=0;I<g.length;I++)E["$"+g[I]]=!0;for(var j=0;j<p.length;j++){var P=E.hasOwnProperty("$"+p[j].value);p[j].selected!==P&&(p[j].selected=P),P&&c&&(p[j].defaultSelected=!0)}}else{for(var B=Sa(Fi(s)),te=null,K=0;K<p.length;K++){if(p[K].value===B){p[K].selected=!0,c&&(p[K].defaultSelected=!0);return}te===null&&!p[K].disabled&&(te=p[K])}te!==null&&(te.selected=!0)}}function jc(e,t){return Lt({},t,{value:void 0})}function Dc(e,t){var s=e;Ac(t),s._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!xs&&(v("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"),xs=!0)}function av(e,t){var s=e;s.multiple=!!t.multiple;var c=t.value;c!=null?ko(s,!!t.multiple,c,!1):t.defaultValue!=null&&ko(s,!!t.multiple,t.defaultValue,!0)}function Y0(e,t){var s=e,c=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!t.multiple;var p=t.value;p!=null?ko(s,!!t.multiple,p,!1):c!==!!t.multiple&&(t.defaultValue!=null?ko(s,!!t.multiple,t.defaultValue,!0):ko(s,!!t.multiple,t.multiple?[]:"",!1))}function Lm(e,t){var s=e,c=t.value;c!=null&&ko(s,!!t.multiple,c,!1)}var Pm=!1;function iv(e,t){var s=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var c=Lt({},t,{value:void 0,defaultValue:void 0,children:Sa(s._wrapperState.initialValue)});return c}function Fm(e,t){var s=e;cl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Pm&&(v("%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",si()||"A component"),Pm=!0);var c=t.value;if(c==null){var p=t.children,g=t.defaultValue;if(p!=null){v("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Zt(p)){if(p.length>1)throw new Error("<textarea> can only have at most one child.");p=p[0]}g=p}}g==null&&(g=""),c=g}s._wrapperState={initialValue:Fi(c)}}function Vm(e,t){var s=e,c=Fi(t.value),p=Fi(t.defaultValue);if(c!=null){var g=Sa(c);g!==s.value&&(s.value=g),t.defaultValue==null&&s.defaultValue!==g&&(s.defaultValue=g)}p!=null&&(s.defaultValue=Sa(p))}function Kf(e,t){var s=e,c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function Z0(e,t){Vm(e,t)}var Mo="http://www.w3.org/1999/xhtml",J0="http://www.w3.org/1998/Math/MathML",ed="http://www.w3.org/2000/svg";function ov(e){switch(e){case"svg":return ed;case"math":return J0;default:return Mo}}function sv(e,t){return e==null||e===Mo?ov(t):e===ed&&t==="foreignObject"?Mo:e}var q0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,s,c,p){MSApp.execUnsafeLocalFunction(function(){return e(t,s,c,p)})}:e},td,Bm=q0(function(e,t){if(e.namespaceURI===ed&&!("innerHTML"in e)){td=td||document.createElement("div"),td.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var s=td.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;s.firstChild;)e.appendChild(s.firstChild);return}e.innerHTML=t}),Ea=1,Lo=3,Qn=8,$a=9,lv=11,kc=function(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===Lo){s.nodeValue=t;return}}e.textContent=t},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"]},vu={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 Um(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var Hm=["Webkit","ms","Moz","O"];Object.keys(vu).forEach(function(e){Hm.forEach(function(t){vu[Um(t,e)]=vu[e]})});function Ss(e,t,s){var c=t==null||typeof t=="boolean"||t==="";return c?"":!s&&typeof t=="number"&&t!==0&&!(vu.hasOwnProperty(e)&&vu[e])?t+"px":(qn(t,e),(""+t).trim())}var Q0=/([A-Z])/g,K0=/^ms-/;function eC(e){return e.replace(Q0,"-$1").toLowerCase().replace(K0,"-ms-")}var uv=function(){};{var $m=/^(?:webkit|moz|o)[A-Z]/,Mc=/^-ms-/,Lc=/-(.)/g,Gm=/;\s*$/,Po={},cv={},fv=!1,nd=!1,dv=function(e){return e.replace(Lc,function(t,s){return s.toUpperCase()})},Wm=function(e){Po.hasOwnProperty(e)&&Po[e]||(Po[e]=!0,v("Unsupported style property %s. Did you mean %s?",e,dv(e.replace(Mc,"ms-"))))},Xm=function(e){Po.hasOwnProperty(e)&&Po[e]||(Po[e]=!0,v("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},Ym=function(e,t){cv.hasOwnProperty(t)&&cv[t]||(cv[t]=!0,v(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Gm,"")))},tC=function(e,t){fv||(fv=!0,v("`NaN` is an invalid value for the `%s` css style property.",e))},nC=function(e,t){nd||(nd=!0,v("`Infinity` is an invalid value for the `%s` css style property.",e))};uv=function(e,t){e.indexOf("-")>-1?Wm(e):$m.test(e)?Xm(e):Gm.test(t)&&Ym(e,t),typeof t=="number"&&(isNaN(t)?tC(e,t):isFinite(t)||nC(e,t))}}var rC=uv;function aC(e){{var t="",s="";for(var c in e)if(e.hasOwnProperty(c)){var p=e[c];if(p!=null){var g=c.indexOf("--")===0;t+=s+(g?c:eC(c))+":",t+=Ss(c,p,g),s=";"}}return t||null}}function Zm(e,t){var s=e.style;for(var c in t)if(t.hasOwnProperty(c)){var p=c.indexOf("--")===0;p||rC(c,t[c]);var g=Ss(c,t[c],p);c==="float"&&(c="cssFloat"),p?s.setProperty(c,g):s[c]=g}}function Bi(e){return e==null||typeof e=="boolean"||e===""}function hu(e){var t={};for(var s in e)for(var c=zm[s]||[s],p=0;p<c.length;p++)t[c[p]]=s;return t}function Jm(e,t){{if(!t)return;var s=hu(e),c=hu(t),p={};for(var g in s){var E=s[g],I=c[g];if(I&&E!==I){var j=E+","+I;if(p[j])continue;p[j]=!0,v("%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.",Bi(e[E])?"Removing":"Updating",E,I)}}}}var qm={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},Qm=Lt({menuitem:!0},qm),Km="__html";function Pc(e,t){if(t){if(Qm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(Km in t.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(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&v("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."),t.style!=null&&typeof t.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 dl(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 rd={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"},pl={"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},Es={},Fc=new RegExp("^(aria)-["+dt+"]*$"),pv=new RegExp("^(aria)[A-Z]["+dt+"]*$");function eg(e,t){{if(pt.call(Es,t)&&Es[t])return!0;if(pv.test(t)){var s="aria-"+t.slice(4).toLowerCase(),c=pl.hasOwnProperty(s)?s:null;if(c==null)return v("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Es[t]=!0,!0;if(t!==c)return v("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,c),Es[t]=!0,!0}if(Fc.test(t)){var p=t.toLowerCase(),g=pl.hasOwnProperty(p)?p:null;if(g==null)return Es[t]=!0,!1;if(t!==g)return v("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,g),Es[t]=!0,!0}}return!0}function ad(e,t){{var s=[];for(var c in t){var p=eg(e,c);p||s.push(c)}var g=s.map(function(E){return"`"+E+"`"}).join(", ");s.length===1?v("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e):s.length>1&&v("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e)}}function mu(e,t){dl(e,t)||ad(e,t)}var id=!1;function tg(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!id&&(id=!0,e==="select"&&t.multiple?v("`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):v("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Vc=function(){};{var Zr={},vv=/^on./,ng=/^on[^A-Z]/,rg=new RegExp("^(aria)-["+dt+"]*$"),ag=new RegExp("^(aria)[A-Z]["+dt+"]*$");Vc=function(e,t,s,c){if(pt.call(Zr,t)&&Zr[t])return!0;var p=t.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return v("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."),Zr[t]=!0,!0;if(c!=null){var g=c.registrationNameDependencies,E=c.possibleRegistrationNames;if(g.hasOwnProperty(t))return!0;var I=E.hasOwnProperty(p)?E[p]:null;if(I!=null)return v("Invalid event handler property `%s`. Did you mean `%s`?",t,I),Zr[t]=!0,!0;if(vv.test(t))return v("Unknown event handler property `%s`. It will be ignored.",t),Zr[t]=!0,!0}else if(vv.test(t))return ng.test(t)&&v("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Zr[t]=!0,!0;if(rg.test(t)||ag.test(t))return!0;if(p==="innerhtml")return v("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Zr[t]=!0,!0;if(p==="aria")return v("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Zr[t]=!0,!0;if(p==="is"&&s!==null&&s!==void 0&&typeof s!="string")return v("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),Zr[t]=!0,!0;if(typeof s=="number"&&isNaN(s))return v("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Zr[t]=!0,!0;var j=Ir(t),P=j!==null&&j.type===Tr;if(rd.hasOwnProperty(p)){var B=rd[p];if(B!==t)return v("Invalid DOM property `%s`. Did you mean `%s`?",t,B),Zr[t]=!0,!0}else if(!P&&t!==p)return v("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.",t,p),Zr[t]=!0,!0;return typeof s=="boolean"&&Xr(t,s,j,!1)?(s?v('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,t,t,s,t):v('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,t,t,s,t,t,t),Zr[t]=!0,!0):P?!0:Xr(t,s,j,!1)?(Zr[t]=!0,!1):((s==="false"||s==="true")&&j!==null&&j.type===ln&&(v("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,t,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".',t,s),Zr[t]=!0),!0)}}var ig=function(e,t,s){{var c=[];for(var p in t){var g=Vc(e,p,t[p],s);g||c.push(p)}var E=c.map(function(I){return"`"+I+"`"}).join(", ");c.length===1?v("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&&v("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 ws(e,t,s){dl(e,t)||ig(e,t,s)}var od=1,Bc=2,zc=4,iC=od|Bc|zc,Fo=null;function oC(e){Fo!==null&&v("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Fo=e}function og(){Fo===null&&v("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Fo=null}function sg(e){return e===Fo}function Tn(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Lo?t.parentNode:t}var Uc=null,Vo=null,ro=null;function hv(e){var t=Yu(e);if(t){if(typeof Uc!="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=t.stateNode;if(s){var c=fy(s);Uc(t.stateNode,t.type,c)}}}function mv(e){Uc=e}function gu(e){Vo?ro?ro.push(e):ro=[e]:Vo=e}function sd(){return Vo!==null||ro!==null}function vl(){if(Vo){var e=Vo,t=ro;if(Vo=null,ro=null,hv(e),t)for(var s=0;s<t.length;s++)hv(t[s])}}var gv=function(e,t){return e(t)},lg=function(){},yv=!1;function ug(){var e=sd();e&&(lg(),vl())}function Hc(e,t,s){if(yv)return e(t,s);yv=!0;try{return gv(e,t,s)}finally{yv=!1,ug()}}function ld(e,t,s){gv=e,lg=s}function bv(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function Cv(e,t,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&&bv(t));default:return!1}}function hl(e,t){var s=e.stateNode;if(s===null)return null;var c=fy(s);if(c===null)return null;var p=c[t];if(Cv(t,e.type,c))return null;if(p&&typeof p!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}var $c=!1;if(It)try{var Gc={};Object.defineProperty(Gc,"passive",{get:function(){$c=!0}}),window.addEventListener("test",Gc,Gc),window.removeEventListener("test",Gc,Gc)}catch{$c=!1}function xv(e,t,s,c,p,g,E,I,j){var P=Array.prototype.slice.call(arguments,3);try{t.apply(s,P)}catch(B){this.onError(B)}}var cg=xv;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Sv=document.createElement("react");cg=function(t,s,c,p,g,E,I,j,P){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 B=document.createEvent("Event"),te=!1,K=!0,ce=window.event,de=Object.getOwnPropertyDescriptor(window,"event");function be(){Sv.removeEventListener(Ce,gt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ce)}var qe=Array.prototype.slice.call(arguments,3);function gt(){te=!0,be(),s.apply(c,qe),K=!1}var ct,Wt=!1,Ut=!1;function ie(oe){if(ct=oe.error,Wt=!0,ct===null&&oe.colno===0&&oe.lineno===0&&(Ut=!0),oe.defaultPrevented&&ct!=null&&typeof ct=="object")try{ct._suppressLogging=!0}catch{}}var Ce="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",ie),Sv.addEventListener(Ce,gt,!1),B.initEvent(Ce,!1,!1),Sv.dispatchEvent(B),de&&Object.defineProperty(window,"event",de),te&&K&&(Wt?Ut&&(ct=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.")):ct=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(ct)),window.removeEventListener("error",ie),!te)return be(),xv.apply(this,arguments)}}var Ev=cg,Ga=!1,Wc=null,Bo=!1,ui=null,Xc={onError:function(e){Ga=!0,Wc=e}};function zi(e,t,s,c,p,g,E,I,j){Ga=!1,Wc=null,Ev.apply(Xc,arguments)}function wv(e,t,s,c,p,g,E,I,j){if(zi.apply(this,arguments),Ga){var P=zo();Bo||(Bo=!0,ui=P)}}function sC(){if(Bo){var e=ui;throw Bo=!1,ui=null,e}}function lC(){return Ga}function zo(){if(Ga){var e=Wc;return Ga=!1,Wc=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 ao(e){return e._reactInternals}function yu(e){return e._reactInternals!==void 0}function ud(e,t){e._reactInternals=t}var ht=0,Ui=1,In=2,st=4,tn=16,ci=32,Nr=64,Ot=128,ra=256,Wa=512,vr=1024,wa=2048,io=4096,Rs=8192,ml=16384,fg=wa|st|Nr|Wa|vr|ml,Uo=32767,Ts=32768,Lr=65536,cd=131072,dg=1048576,oo=2097152,fi=4194304,Is=8388608,di=16777216,gl=33554432,Ra=st|vr|0,Ta=In|st|tn|ci|Wa|io|Rs,Hi=st|Nr|Wa|Rs,Ia=wa|tn,Pr=fi|Is|oo,yl=u.ReactCurrentOwner;function Ns(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{var c=t;do t=c,(t.flags&(In|io))!==ht&&(s=t.return),c=t.return;while(c)}return t.tag===T?s:null}function fd(e){if(e.tag===H){var t=e.memoizedState;if(t===null){var s=e.alternate;s!==null&&(t=s.memoizedState)}if(t!==null)return t.dehydrated}return null}function dd(e){return e.tag===T?e.stateNode.containerInfo:null}function Xa(e){return Ns(e)===e}function Ya(e){{var t=yl.current;if(t!==null&&t.tag===x){var s=t,c=s.stateNode;c._warnedAboutRefsInRender||v("%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.",Nt(s)||"A component"),c._warnedAboutRefsInRender=!0}}var p=ao(e);return p?Ns(p)===p:!1}function Bn(e){if(Ns(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function pi(e){var t=e.alternate;if(!t){var s=Ns(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=t;;){var g=c.return;if(g===null)break;var E=g.alternate;if(E===null){var I=g.return;if(I!==null){c=p=I;continue}break}if(g.child===E.child){for(var j=g.child;j;){if(j===c)return Bn(g),e;if(j===p)return Bn(g),t;j=j.sibling}throw new Error("Unable to find node on an unmounted component.")}if(c.return!==p.return)c=g,p=E;else{for(var P=!1,B=g.child;B;){if(B===c){P=!0,c=g,p=E;break}if(B===p){P=!0,p=g,c=E;break}B=B.sibling}if(!P){for(B=E.child;B;){if(B===c){P=!0,c=E,p=g;break}if(B===p){P=!0,p=E,c=g;break}B=B.sibling}if(!P)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!==T)throw new Error("Unable to find node on an unmounted component.");return c.stateNode.current===c?e:t}function Rv(e){var t=pi(e);return t!==null?Tv(t):null}function Tv(e){if(e.tag===N||e.tag===O)return e;for(var t=e.child;t!==null;){var s=Tv(t);if(s!==null)return s;t=t.sibling}return null}function Iv(e){var t=pi(e);return t!==null?pd(t):null}function pd(e){if(e.tag===N||e.tag===O)return e;for(var t=e.child;t!==null;){if(t.tag!==A){var s=pd(t);if(s!==null)return s}t=t.sibling}return null}var Nv=i.unstable_scheduleCallback,vd=i.unstable_cancelCallback,pg=i.unstable_shouldYield,bu=i.unstable_requestPaint,hr=i.unstable_now,uC=i.unstable_getCurrentPriorityLevel,Na=i.unstable_ImmediatePriority,Cu=i.unstable_UserBlockingPriority,so=i.unstable_NormalPriority,xu=i.unstable_LowPriority,Yc=i.unstable_IdlePriority,_v=i.unstable_yieldValue,Ov=i.unstable_setDisableYieldValue,_s=null,ir=null,Ue=null,Jr=!1,Za=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function vg(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return v("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{le&&(e=Lt({},e,{getLaneLabelMap:hd,injectProfilingHooks:As})),_s=t.inject(e),ir=t}catch(s){v("React instrumentation encountered an error: %s.",s)}return!!t.checkDCE}function Ho(e,t){if(ir&&typeof ir.onScheduleFiberRoot=="function")try{ir.onScheduleFiberRoot(_s,e,t)}catch(s){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",s))}}function Os(e,t){if(ir&&typeof ir.onCommitFiberRoot=="function")try{var s=(e.current.flags&Ot)===Ot;if(ve){var c;switch(t){case ur:c=Na;break;case Go:c=Cu;break;case co:c=so;break;case Au:c=Yc;break;default:c=so;break}ir.onCommitFiberRoot(_s,e,c,s)}}catch(p){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",p))}}function Av(e){if(ir&&typeof ir.onPostCommitFiberRoot=="function")try{ir.onPostCommitFiberRoot(_s,e)}catch(t){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",t))}}function hg(e){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(_s,e)}catch(t){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",t))}}function kn(e){if(typeof _v=="function"&&(Ov(e),d(e)),ir&&typeof ir.setStrictMode=="function")try{ir.setStrictMode(_s,e)}catch(t){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",t))}}function As(e){Ue=e}function hd(){{for(var e=new Map,t=1,s=0;s<or;s++){var c=Eg(t);e.set(t,c),t*=2}return e}}function mg(e){Ue!==null&&typeof Ue.markCommitStarted=="function"&&Ue.markCommitStarted(e)}function Zc(){Ue!==null&&typeof Ue.markCommitStopped=="function"&&Ue.markCommitStopped()}function Su(e){Ue!==null&&typeof Ue.markComponentRenderStarted=="function"&&Ue.markComponentRenderStarted(e)}function bl(){Ue!==null&&typeof Ue.markComponentRenderStopped=="function"&&Ue.markComponentRenderStopped()}function jv(e){Ue!==null&&typeof Ue.markComponentPassiveEffectMountStarted=="function"&&Ue.markComponentPassiveEffectMountStarted(e)}function md(){Ue!==null&&typeof Ue.markComponentPassiveEffectMountStopped=="function"&&Ue.markComponentPassiveEffectMountStopped()}function gg(e){Ue!==null&&typeof Ue.markComponentPassiveEffectUnmountStarted=="function"&&Ue.markComponentPassiveEffectUnmountStarted(e)}function yg(){Ue!==null&&typeof Ue.markComponentPassiveEffectUnmountStopped=="function"&&Ue.markComponentPassiveEffectUnmountStopped()}function bg(e){Ue!==null&&typeof Ue.markComponentLayoutEffectMountStarted=="function"&&Ue.markComponentLayoutEffectMountStarted(e)}function Dv(){Ue!==null&&typeof Ue.markComponentLayoutEffectMountStopped=="function"&&Ue.markComponentLayoutEffectMountStopped()}function Eu(e){Ue!==null&&typeof Ue.markComponentLayoutEffectUnmountStarted=="function"&&Ue.markComponentLayoutEffectUnmountStarted(e)}function Jc(){Ue!==null&&typeof Ue.markComponentLayoutEffectUnmountStopped=="function"&&Ue.markComponentLayoutEffectUnmountStopped()}function Cg(e,t,s){Ue!==null&&typeof Ue.markComponentErrored=="function"&&Ue.markComponentErrored(e,t,s)}function xg(e,t,s){Ue!==null&&typeof Ue.markComponentSuspended=="function"&&Ue.markComponentSuspended(e,t,s)}function wu(e){Ue!==null&&typeof Ue.markLayoutEffectsStarted=="function"&&Ue.markLayoutEffectsStarted(e)}function Sg(){Ue!==null&&typeof Ue.markLayoutEffectsStopped=="function"&&Ue.markLayoutEffectsStopped()}function qc(e){Ue!==null&&typeof Ue.markPassiveEffectsStarted=="function"&&Ue.markPassiveEffectsStarted(e)}function lo(){Ue!==null&&typeof Ue.markPassiveEffectsStopped=="function"&&Ue.markPassiveEffectsStopped()}function Ru(e){Ue!==null&&typeof Ue.markRenderStarted=="function"&&Ue.markRenderStarted(e)}function Qc(){Ue!==null&&typeof Ue.markRenderYielded=="function"&&Ue.markRenderYielded()}function js(){Ue!==null&&typeof Ue.markRenderStopped=="function"&&Ue.markRenderStopped()}function kv(e){Ue!==null&&typeof Ue.markRenderScheduled=="function"&&Ue.markRenderScheduled(e)}function Tu(e,t){Ue!==null&&typeof Ue.markForceUpdateScheduled=="function"&&Ue.markForceUpdateScheduled(e,t)}function gd(e,t){Ue!==null&&typeof Ue.markStateUpdateScheduled=="function"&&Ue.markStateUpdateScheduled(e,t)}var mt=0,ut=1,Qt=2,Kn=8,hi=16,Kc=Math.clz32?Math.clz32:Yn,Mv=Math.log,Cl=Math.LN2;function Yn(e){var t=e>>>0;return t===0?32:31-(Mv(t)/Cl|0)|0}var or=31,Ee=0,sr=0,bt=1,uo=2,$o=4,er=8,mi=16,xl=32,Ds=4194240,_a=64,Oa=128,Sl=256,ef=512,tf=1024,yd=2048,bd=4096,Cd=8192,xd=16384,Sd=32768,Ed=65536,wd=131072,Rd=262144,El=524288,Td=1048576,Iu=2097152,wl=130023424,Rl=4194304,nf=8388608,Id=16777216,Nd=33554432,_d=67108864,Lv=Rl,Tl=134217728,Pv=268435455,Nu=268435456,ks=536870912,Ja=1073741824;function Eg(e){{if(e&bt)return"Sync";if(e&uo)return"InputContinuousHydration";if(e&$o)return"InputContinuous";if(e&er)return"DefaultHydration";if(e&mi)return"Default";if(e&xl)return"TransitionHydration";if(e&Ds)return"Transition";if(e&wl)return"Retry";if(e&Tl)return"SelectiveHydration";if(e&Nu)return"IdleHydration";if(e&ks)return"Idle";if(e&Ja)return"Offscreen"}}var Mn=-1,Od=_a,rf=Rl;function _u(e){switch(lr(e)){case bt:return bt;case uo:return uo;case $o:return $o;case er:return er;case mi:return mi;case xl:return xl;case _a:case Oa:case Sl:case ef:case tf:case yd:case bd:case Cd:case xd:case Sd:case Ed:case wd:case Rd:case El:case Td:case Iu:return e&Ds;case Rl:case nf:case Id:case Nd:case _d:return e&wl;case Tl:return Tl;case Nu:return Nu;case ks:return ks;case Ja:return Ja;default:return v("Should have found matching lanes. This is a bug in React."),e}}function af(e,t){var s=e.pendingLanes;if(s===Ee)return Ee;var c=Ee,p=e.suspendedLanes,g=e.pingedLanes,E=s&Pv;if(E!==Ee){var I=E&~p;if(I!==Ee)c=_u(I);else{var j=E&g;j!==Ee&&(c=_u(j))}}else{var P=s&~p;P!==Ee?c=_u(P):g!==Ee&&(c=_u(g))}if(c===Ee)return Ee;if(t!==Ee&&t!==c&&(t&p)===Ee){var B=lr(c),te=lr(t);if(B>=te||B===mi&&(te&Ds)!==Ee)return t}(c&$o)!==Ee&&(c|=s&mi);var K=e.entangledLanes;if(K!==Ee)for(var ce=e.entanglements,de=c&K;de>0;){var be=Ls(de),qe=1<<be;c|=ce[be],de&=~qe}return c}function Ad(e,t){for(var s=e.eventTimes,c=Mn;t>0;){var p=Ls(t),g=1<<p,E=s[p];E>c&&(c=E),t&=~g}return c}function cC(e,t){switch(e){case bt:case uo:case $o:return t+250;case er:case mi:case xl:case _a:case Oa:case Sl:case ef:case tf:case yd:case bd:case Cd:case xd:case Sd:case Ed:case wd:case Rd:case El:case Td:case Iu:return t+5e3;case Rl:case nf:case Id:case Nd:case _d:return Mn;case Tl:case Nu:case ks:case Ja:return Mn;default:return v("Should have found matching lanes. This is a bug in React."),Mn}}function fC(e,t){for(var s=e.pendingLanes,c=e.suspendedLanes,p=e.pingedLanes,g=e.expirationTimes,E=s;E>0;){var I=Ls(E),j=1<<I,P=g[I];P===Mn?((j&c)===Ee||(j&p)!==Ee)&&(g[I]=cC(j,t)):P<=t&&(e.expiredLanes|=j),E&=~j}}function dC(e){return _u(e.pendingLanes)}function Ms(e){var t=e.pendingLanes&~Ja;return t!==Ee?t:t&Ja?Ja:Ee}function Fv(e){return(e&bt)!==Ee}function of(e){return(e&Pv)!==Ee}function wg(e){return(e&wl)===e}function Rg(e){var t=bt|$o|mi;return(e&t)===Ee}function Tg(e){return(e&Ds)===e}function sf(e,t){var s=uo|$o|er|mi;return(t&s)!==Ee}function Ig(e,t){return(t&e.expiredLanes)!==Ee}function Vv(e){return(e&Ds)!==Ee}function Ng(){var e=Od;return Od<<=1,(Od&Ds)===Ee&&(Od=_a),e}function Aa(){var e=rf;return rf<<=1,(rf&wl)===Ee&&(rf=Rl),e}function lr(e){return e&-e}function Ou(e){return lr(e)}function Ls(e){return 31-Kc(e)}function jd(e){return Ls(e)}function ja(e,t){return(e&t)!==Ee}function Il(e,t){return(e&t)===t}function Dt(e,t){return e|t}function lf(e,t){return e&~t}function Dd(e,t){return e&t}function pC(e){return e}function _g(e,t){return e!==sr&&e<t?e:t}function uf(e){for(var t=[],s=0;s<or;s++)t.push(e);return t}function Nl(e,t,s){e.pendingLanes|=t,t!==ks&&(e.suspendedLanes=Ee,e.pingedLanes=Ee);var c=e.eventTimes,p=jd(t);c[p]=s}function Og(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var s=e.expirationTimes,c=t;c>0;){var p=Ls(c),g=1<<p;s[p]=Mn,c&=~g}}function kd(e,t,s){e.pingedLanes|=e.suspendedLanes&t}function Md(e,t){var s=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=Ee,e.pingedLanes=Ee,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var c=e.entanglements,p=e.eventTimes,g=e.expirationTimes,E=s;E>0;){var I=Ls(E),j=1<<I;c[I]=Ee,p[I]=Mn,g[I]=Mn,E&=~j}}function Bv(e,t){for(var s=e.entangledLanes|=t,c=e.entanglements,p=s;p;){var g=Ls(p),E=1<<g;E&t|c[g]&t&&(c[g]|=t),p&=~E}}function Ag(e,t){var s=lr(t),c;switch(s){case $o:c=uo;break;case mi:c=er;break;case _a:case Oa:case Sl:case ef:case tf:case yd:case bd:case Cd:case xd:case Sd:case Ed:case wd:case Rd:case El:case Td:case Iu:case Rl:case nf:case Id:case Nd:case _d:c=xl;break;case ks:c=Nu;break;default:c=sr;break}return(c&(e.suspendedLanes|t))!==sr?sr:c}function Ld(e,t,s){if(Za)for(var c=e.pendingUpdatersLaneMap;s>0;){var p=jd(s),g=1<<p,E=c[p];E.add(t),s&=~g}}function zv(e,t){if(Za)for(var s=e.pendingUpdatersLaneMap,c=e.memoizedUpdaters;t>0;){var p=jd(t),g=1<<p,E=s[p];E.size>0&&(E.forEach(function(I){var j=I.alternate;(j===null||!c.has(j))&&c.add(I)}),E.clear()),t&=~g}}function cf(e,t){return null}var ur=bt,Go=$o,co=mi,Au=ks,ju=sr;function gi(){return ju}function tr(e){ju=e}function qr(e,t){var s=ju;try{return ju=e,t()}finally{ju=s}}function vC(e,t){return e!==0&&e<t?e:t}function hC(e,t){return e===0||e>t?e:t}function Du(e,t){return e!==0&&e<t}function Fr(e){var t=lr(e);return Du(ur,t)?Du(Go,t)?of(t)?co:Au:Go:ur}function Pd(e){var t=e.current.memoizedState;return t.isDehydrated}var Ke;function ku(e){Ke=e}function Uv(e){Ke(e)}var Fd;function mC(e){Fd=e}var Mu;function Vd(e){Mu=e}var Bd;function jg(e){Bd=e}var Hv;function Dg(e){Hv=e}var ff=!1,Lu=[],Hn=null,_r=null,aa=null,Pu=new Map,Fu=new Map,Or=[],kg=["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 fo(e){return kg.indexOf(e)>-1}function gC(e,t,s,c,p){return{blockedOn:e,domEventName:t,eventSystemFlags:s,nativeEvent:p,targetContainers:[c]}}function $v(e,t){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":_r=null;break;case"mouseover":case"mouseout":aa=null;break;case"pointerover":case"pointerout":{var s=t.pointerId;Pu.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var c=t.pointerId;Fu.delete(c);break}}}function Vu(e,t,s,c,p,g){if(e===null||e.nativeEvent!==g){var E=gC(t,s,c,p,g);if(t!==null){var I=Yu(t);I!==null&&Fd(I)}return E}e.eventSystemFlags|=c;var j=e.targetContainers;return p!==null&&j.indexOf(p)===-1&&j.push(p),e}function Mg(e,t,s,c,p){switch(t){case"focusin":{var g=p;return Hn=Vu(Hn,e,t,s,c,g),!0}case"dragenter":{var E=p;return _r=Vu(_r,e,t,s,c,E),!0}case"mouseover":{var I=p;return aa=Vu(aa,e,t,s,c,I),!0}case"pointerover":{var j=p,P=j.pointerId;return Pu.set(P,Vu(Pu.get(P)||null,e,t,s,c,j)),!0}case"gotpointercapture":{var B=p,te=B.pointerId;return Fu.set(te,Vu(Fu.get(te)||null,e,t,s,c,B)),!0}}return!1}function Gv(e){var t=Ef(e.target);if(t!==null){var s=Ns(t);if(s!==null){var c=s.tag;if(c===H){var p=fd(s);if(p!==null){e.blockedOn=p,Hv(e.priority,function(){Mu(s)});return}}else if(c===T){var g=s.stateNode;if(Pd(g)){e.blockedOn=dd(s);return}}}}e.blockedOn=null}function yC(e){for(var t=Bd(),s={blockedOn:null,target:e,priority:t},c=0;c<Or.length&&Du(t,Or[c].priority);c++);Or.splice(c,0,s),c===0&&Gv(s)}function _l(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var s=t[0],c=Qr(e.domEventName,e.eventSystemFlags,s,e.nativeEvent);if(c===null){var p=e.nativeEvent,g=new p.constructor(p.type,p);oC(g),p.target.dispatchEvent(g),og()}else{var E=Yu(c);return E!==null&&Fd(E),e.blockedOn=c,!1}t.shift()}return!0}function zd(e,t,s){_l(e)&&s.delete(t)}function yi(){ff=!1,Hn!==null&&_l(Hn)&&(Hn=null),_r!==null&&_l(_r)&&(_r=null),aa!==null&&_l(aa)&&(aa=null),Pu.forEach(zd),Fu.forEach(zd)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,ff||(ff=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,yi)))}function nr(e){if(Lu.length>0){zt(Lu[0],e);for(var t=1;t<Lu.length;t++){var s=Lu[t];s.blockedOn===e&&(s.blockedOn=null)}}Hn!==null&&zt(Hn,e),_r!==null&&zt(_r,e),aa!==null&&zt(aa,e);var c=function(I){return zt(I,e)};Pu.forEach(c),Fu.forEach(c);for(var p=0;p<Or.length;p++){var g=Or[p];g.blockedOn===e&&(g.blockedOn=null)}for(;Or.length>0;){var E=Or[0];if(E.blockedOn!==null)break;Gv(E),E.blockedOn===null&&Or.shift()}}var zn=u.ReactCurrentBatchConfig,br=!0;function Da(e){br=!!e}function Bu(){return br}function Cr(e,t,s){var c=Ud(t),p;switch(c){case ur:p=df;break;case Go:p=Ol;break;case co:default:p=zu;break}return p.bind(null,t,s,e)}function df(e,t,s,c){var p=gi(),g=zn.transition;zn.transition=null;try{tr(ur),zu(e,t,s,c)}finally{tr(p),zn.transition=g}}function Ol(e,t,s,c){var p=gi(),g=zn.transition;zn.transition=null;try{tr(Go),zu(e,t,s,c)}finally{tr(p),zn.transition=g}}function zu(e,t,s,c){br&&Wv(e,t,s,c)}function Wv(e,t,s,c){var p=Qr(e,t,s,c);if(p===null){MC(e,t,c,Ps,s),$v(e,c);return}if(Mg(p,e,t,s,c)){c.stopPropagation();return}if($v(e,c),t&zc&&fo(e)){for(;p!==null;){var g=Yu(p);g!==null&&Uv(g);var E=Qr(e,t,s,c);if(E===null&&MC(e,t,c,Ps,s),E===p)break;p=E}p!==null&&c.stopPropagation();return}MC(e,t,c,null,s)}var Ps=null;function Qr(e,t,s,c){Ps=null;var p=Tn(c),g=Ef(p);if(g!==null){var E=Ns(g);if(E===null)g=null;else{var I=E.tag;if(I===H){var j=fd(E);if(j!==null)return j;g=null}else if(I===T){var P=E.stateNode;if(Pd(P))return dd(E);g=null}else E!==g&&(g=null)}}return Ps=g,null}function Ud(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 ur;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 Go;case"message":{var t=uC();switch(t){case Na:return ur;case Cu:return Go;case so:case xu:return co;case Yc:return Au;default:return co}}default:return co}}function Uu(e,t,s){return e.addEventListener(t,s,!1),s}function Wo(e,t,s){return e.addEventListener(t,s,!0),s}function Hd(e,t,s,c){return e.addEventListener(t,s,{capture:!0,passive:c}),s}function Xv(e,t,s,c){return e.addEventListener(t,s,{passive:c}),s}var bi=null,Hu=null,Ci=null;function $d(e){return bi=e,Hu=vf(),!0}function pf(){bi=null,Hu=null,Ci=null}function Gd(){if(Ci)return Ci;var e,t=Hu,s=t.length,c,p=vf(),g=p.length;for(e=0;e<s&&t[e]===p[e];e++);var E=s-e;for(c=1;c<=E&&t[s-c]===p[g-c];c++);var I=c>1?1-c:void 0;return Ci=p.slice(e,I),Ci}function vf(){return"value"in bi?bi.value:bi.textContent}function Al(e){var t,s=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&s===13&&(t=13)):t=s,t===10&&(t=13),t>=32||t===13?t:0}function Ar(){return!0}function Xo(){return!1}function Zn(e){function t(s,c,p,g,E){this._reactName=s,this._targetInst=p,this.type=c,this.nativeEvent=g,this.target=E,this.currentTarget=null;for(var I in e)if(e.hasOwnProperty(I)){var j=e[I];j?this[I]=j(g):this[I]=g[I]}var P=g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1;return P?this.isDefaultPrevented=Ar:this.isDefaultPrevented=Xo,this.isPropagationStopped=Xo,this}return Lt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ar)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ar)},persist:function(){},isPersistent:Ar}),t}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wd=Zn(xr),jl=Lt({},xr,{view:0,detail:0}),Yv=Zn(jl),Zv,po,$u;function Jv(e){e!==$u&&($u&&e.type==="mousemove"?(Zv=e.screenX-$u.screenX,po=e.screenY-$u.screenY):(Zv=0,po=0),$u=e)}var vo=Lt({},jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qv,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:(Jv(e),Zv)},movementY:function(e){return"movementY"in e?e.movementY:po}}),Xd=Zn(vo),Dl=Lt({},vo,{dataTransfer:0}),Lg=Zn(Dl),Pg=Lt({},jl,{relatedTarget:0}),hf=Zn(Pg),Yd=Lt({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),bC=Zn(Yd),CC=Lt({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fg=Zn(CC),Vg=Lt({},xr,{data:0}),Fs=Zn(Vg),xC=Fs,Gu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bg={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 rr(e){if(e.key){var t=Gu[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var s=Al(e);return s===13?"Enter":String.fromCharCode(s)}return e.type==="keydown"||e.type==="keyup"?Bg[e.keyCode]||"Unidentified":""}var SC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zg(e){var t=this,s=t.nativeEvent;if(s.getModifierState)return s.getModifierState(e);var c=SC[e];return c?!!s[c]:!1}function qv(e){return zg}var EC=Lt({},jl,{key:rr,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qv,charCode:function(e){return e.type==="keypress"?Al(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Al(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ug=Zn(EC),Hg=Lt({},vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$g=Zn(Hg),xi=Lt({},jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qv}),Qv=Zn(xi),wC=Lt({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vs=Zn(wC),Zd=Lt({},vo,{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}),kl=Zn(Zd),Jd=[9,13,27,32],qd=229,mf=It&&"CompositionEvent"in window,gf=null;It&&"documentMode"in document&&(gf=document.documentMode);var Kv=It&&"TextEvent"in window&&!gf,Gg=It&&(!mf||gf&&gf>8&&gf<=11),eh=32,th=String.fromCharCode(eh);function Qd(){ft("onBeforeInput",["compositionend","keypress","textInput","paste"]),ft("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),ft("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),ft("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var yf=!1;function Wg(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function nh(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function RC(e,t){return e==="keydown"&&t.keyCode===qd}function rh(e,t){switch(e){case"keyup":return Jd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==qd;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kd(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function bf(e){return e.locale==="ko"}var Bs=!1;function ep(e,t,s,c,p){var g,E;if(mf?g=nh(t):Bs?rh(t,c)&&(g="onCompositionEnd"):RC(t,c)&&(g="onCompositionStart"),!g)return null;Gg&&!bf(c)&&(!Bs&&g==="onCompositionStart"?Bs=$d(p):g==="onCompositionEnd"&&Bs&&(E=Gd()));var I=Qg(s,g);if(I.length>0){var j=new Fs(g,t,null,c,p);if(e.push({event:j,listeners:I}),E)j.data=E;else{var P=Kd(c);P!==null&&(j.data=P)}}}function Xg(e,t){switch(e){case"compositionend":return Kd(t);case"keypress":var s=t.which;return s!==eh?null:(yf=!0,th);case"textInput":var c=t.data;return c===th&&yf?null:c;default:return null}}function TC(e,t){if(Bs){if(e==="compositionend"||!mf&&rh(e,t)){var s=Gd();return pf(),Bs=!1,s}return null}switch(e){case"paste":return null;case"keypress":if(!Wg(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Gg&&!bf(t)?null:t.data;default:return null}}function tp(e,t,s,c,p){var g;if(Kv?g=Xg(t,c):g=TC(t,c),!g)return null;var E=Qg(s,"onBeforeInput");if(E.length>0){var I=new xC("onBeforeInput","beforeinput",null,c,p);e.push({event:I,listeners:E}),I.data=g}}function IC(e,t,s,c,p,g,E){ep(e,t,s,c,p),tp(e,t,s,c,p)}var Cf={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 Yg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cf[e.type]:t==="textarea"}/**
|
|
113
113
|
* Checks if an event is supported in the current execution environment.
|
|
114
114
|
*
|
|
115
115
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
@@ -121,8 +121,8 @@ Check the render method of \``+e+"`.":""}var Oc=["value","defaultValue"];functio
|
|
|
121
121
|
* @return {boolean} True if the event is supported.
|
|
122
122
|
* @internal
|
|
123
123
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
124
|
-
*/function np(e){if(!It)return!1;var t="on"+e,s=t in document;if(!s){var c=document.createElement("div");c.setAttribute(t,"return;"),s=typeof c[t]=="function"}return s}function a(){ft("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(e,t,s,c){gu(c);var p=Qg(t,"onChange");if(p.length>0){var g=new Wd("onChange","change",null,s,c);e.push({event:g,listeners:p})}}var f=null,m=null;function S(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function w(e){var t=[];o(t,m,e,Tn(e)),Hc(k,t)}function k(e){o1(e,0)}function W(e){var t=lp(e);if(cu(t))return e}function Q(e,t){if(e==="change")return t}var pe=!1;It&&(pe=np("input")&&(!document.documentMode||document.documentMode>9));function Me(e,t){f=e,m=t,f.attachEvent("onpropertychange",De)}function Pe(){f&&(f.detachEvent("onpropertychange",De),f=null,m=null)}function De(e){e.propertyName==="value"&&W(m)&&w(e)}function Ye(e,t,s){e==="focusin"?(Pe(),Me(t,s)):e==="focusout"&&Pe()}function nt(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return W(m)}function ot(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function cr(e,t){if(e==="click")return W(t)}function ae(e,t){if(e==="input"||e==="change")return W(t)}function ee(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||wt(e,"number",e.value)}function se(e,t,s,c,p,g,E){var I=s?lp(s):window,j,P;if(S(I)?j=Q:Yg(I)?pe?j=ae:(j=nt,P=Ye):ot(I)&&(j=cr),j){var B=j(t,s);if(B){o(e,B,c,p);return}}P&&P(t,I,s),t==="focusout"&&ee(I)}function ze(){Ae("onMouseEnter",["mouseout","mouseover"]),Ae("onMouseLeave",["mouseout","mouseover"]),Ae("onPointerEnter",["pointerout","pointerover"]),Ae("onPointerLeave",["pointerout","pointerover"])}function lt(e,t,s,c,p,g,E){var I=t==="mouseover"||t==="pointerover",j=t==="mouseout"||t==="pointerout";if(I&&!sg(c)){var P=c.relatedTarget||c.fromElement;if(P&&(Ef(P)||mh(P)))return}if(!(!j&&!I)){var B;if(p.window===p)B=p;else{var te=p.ownerDocument;te?B=te.defaultView||te.parentWindow:B=window}var K,ce;if(j){var de=c.relatedTarget||c.toElement;if(K=s,ce=de?Ef(de):null,ce!==null){var be=Ns(ce);(ce!==be||ce.tag!==N&&ce.tag!==O)&&(ce=null)}}else K=null,ce=s;if(K!==ce){var qe=Xd,gt="onMouseLeave",ct="onMouseEnter",Wt="mouse";(t==="pointerout"||t==="pointerover")&&(qe=$g,gt="onPointerLeave",ct="onPointerEnter",Wt="pointer");var Ut=K==null?B:lp(K),ie=ce==null?B:lp(ce),Ce=new qe(gt,Wt+"leave",K,c,p);Ce.target=Ut,Ce.relatedTarget=ie;var oe=null,Fe=Ef(p);if(Fe===s){var Qe=new qe(ct,Wt+"enter",ce,c,p);Qe.target=ie,Qe.relatedTarget=Ut,oe=Qe}SM(e,Ce,oe,K,ce)}}}function Ct(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rt=typeof Object.is=="function"?Object.is:Ct;function St(e,t){if(rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),c=Object.keys(t);if(s.length!==c.length)return!1;for(var p=0;p<s.length;p++){var g=s[p];if(!pt.call(t,g)||!rt(e[g],t[g]))return!1}return!0}function Sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nn(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Yo(e,t){for(var s=Sr(e),c=0,p=0;s;){if(s.nodeType===Lo){if(p=c+s.textContent.length,c<=t&&p>=t)return{node:s,offset:t-c};c=p}s=Sr(nn(s))}}function _C(e){var t=e.ownerDocument,s=t&&t.defaultView||window,c=s.getSelection&&s.getSelection();if(!c||c.rangeCount===0)return null;var p=c.anchorNode,g=c.anchorOffset,E=c.focusNode,I=c.focusOffset;try{p.nodeType,E.nodeType}catch{return null}return nM(e,p,g,E,I)}function nM(e,t,s,c,p){var g=0,E=-1,I=-1,j=0,P=0,B=e,te=null;e:for(;;){for(var K=null;B===t&&(s===0||B.nodeType===Lo)&&(E=g+s),B===c&&(p===0||B.nodeType===Lo)&&(I=g+p),B.nodeType===Lo&&(g+=B.nodeValue.length),(K=B.firstChild)!==null;)te=B,B=K;for(;;){if(B===e)break e;if(te===t&&++j===s&&(E=g),te===c&&++P===p&&(I=g),(K=B.nextSibling)!==null)break;B=te,te=B.parentNode}B=K}return E===-1||I===-1?null:{start:E,end:I}}function rM(e,t){var s=e.ownerDocument||document,c=s&&s.defaultView||window;if(c.getSelection){var p=c.getSelection(),g=e.textContent.length,E=Math.min(t.start,g),I=t.end===void 0?E:Math.min(t.end,g);if(!p.extend&&E>I){var j=I;I=E,E=j}var P=Yo(e,E),B=Yo(e,I);if(P&&B){if(p.rangeCount===1&&p.anchorNode===P.node&&p.anchorOffset===P.offset&&p.focusNode===B.node&&p.focusOffset===B.offset)return;var te=s.createRange();te.setStart(P.node,P.offset),p.removeAllRanges(),E>I?(p.addRange(te),p.extend(B.node,B.offset)):(te.setEnd(B.node,B.offset),p.addRange(te))}}}function YR(e){return e&&e.nodeType===Lo}function ZR(e,t){return!e||!t?!1:e===t?!0:YR(e)?!1:YR(t)?ZR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function aM(e){return e&&e.ownerDocument&&ZR(e.ownerDocument.documentElement,e)}function iM(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function JR(){for(var e=window,t=no();t instanceof e.HTMLIFrameElement;){if(iM(t))e=t.contentWindow;else return t;t=no(e.document)}return t}function OC(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 oM(){var e=JR();return{focusedElem:e,selectionRange:OC(e)?lM(e):null}}function sM(e){var t=JR(),s=e.focusedElem,c=e.selectionRange;if(t!==s&&aM(s)){c!==null&&OC(s)&&uM(s,c);for(var p=[],g=s;g=g.parentNode;)g.nodeType===Ea&&p.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof s.focus=="function"&&s.focus();for(var E=0;E<p.length;E++){var I=p[E];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}}function lM(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=_C(e),t||{start:0,end:0}}function uM(e,t){var s=t.start,c=t.end;c===void 0&&(c=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(c,e.value.length)):rM(e,t)}var cM=It&&"documentMode"in document&&document.documentMode<=11;function fM(){ft("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var rp=null,AC=null,rh=null,jC=!1;function dM(e){if("selectionStart"in e&&OC(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,s=t.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function pM(e){return e.window===e?e.document:e.nodeType===$a?e:e.ownerDocument}function qR(e,t,s){var c=pM(s);if(!(jC||rp==null||rp!==no(c))){var p=dM(rp);if(!rh||!St(rh,p)){rh=p;var g=Qg(AC,"onSelect");if(g.length>0){var E=new Wd("onSelect","select",null,t,s);e.push({event:E,listeners:g}),E.target=rp}}}}function vM(e,t,s,c,p,g,E){var I=s?lp(s):window;switch(t){case"focusin":(Yg(I)||I.contentEditable==="true")&&(rp=I,AC=s,rh=null);break;case"focusout":rp=null,AC=null,rh=null;break;case"mousedown":jC=!0;break;case"contextmenu":case"mouseup":case"dragend":jC=!1,qR(e,c,p);break;case"selectionchange":if(cM)break;case"keydown":case"keyup":qR(e,c,p)}}function Zg(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var ap={animationend:Zg("Animation","AnimationEnd"),animationiteration:Zg("Animation","AnimationIteration"),animationstart:Zg("Animation","AnimationStart"),transitionend:Zg("Transition","TransitionEnd")},DC={},QR={};It&&(QR=document.createElement("div").style,"AnimationEvent"in window||(delete ap.animationend.animation,delete ap.animationiteration.animation,delete ap.animationstart.animation),"TransitionEvent"in window||delete ap.transitionend.transition);function Jg(e){if(DC[e])return DC[e];if(!ap[e])return e;var t=ap[e];for(var s in t)if(t.hasOwnProperty(s)&&s in QR)return DC[e]=t[s];return e}var KR=Jg("animationend"),e1=Jg("animationiteration"),t1=Jg("animationstart"),n1=Jg("transitionend"),r1=new Map,a1=["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 Wu(e,t){r1.set(e,t),ft(t,[e])}function hM(){for(var e=0;e<a1.length;e++){var t=a1[e],s=t.toLowerCase(),c=t[0].toUpperCase()+t.slice(1);Wu(s,"on"+c)}Wu(KR,"onAnimationEnd"),Wu(e1,"onAnimationIteration"),Wu(t1,"onAnimationStart"),Wu("dblclick","onDoubleClick"),Wu("focusin","onFocus"),Wu("focusout","onBlur"),Wu(n1,"onTransitionEnd")}function mM(e,t,s,c,p,g,E){var I=r1.get(t);if(I!==void 0){var j=Wd,P=t;switch(t){case"keypress":if(Al(c)===0)return;case"keydown":case"keyup":j=Ug;break;case"focusin":P="focus",j=hf;break;case"focusout":P="blur",j=hf;break;case"beforeblur":case"afterblur":j=hf;break;case"click":if(c.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=Xd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Lg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=qv;break;case KR:case e1:case t1:j=CC;break;case n1:j=Vs;break;case"scroll":j=Xv;break;case"wheel":j=kl;break;case"copy":case"cut":case"paste":j=Fg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=$g;break}var B=(g&zc)!==0;{var te=!B&&t==="scroll",K=CM(s,I,c.type,B,te);if(K.length>0){var ce=new j(I,P,null,c,p);e.push({event:ce,listeners:K})}}}}hM(),ze(),a(),fM(),Qd();function gM(e,t,s,c,p,g,E){mM(e,t,s,c,p,g);var I=(g&oC)===0;I&&(lt(e,t,s,c,p),se(e,t,s,c,p),vM(e,t,s,c,p),NC(e,t,s,c,p))}var ah=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],kC=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(ah));function i1(e,t,s){var c=e.type||"unknown-event";e.currentTarget=s,Ev(c,t,void 0,e),e.currentTarget=null}function yM(e,t,s){var c;if(s)for(var p=t.length-1;p>=0;p--){var g=t[p],E=g.instance,I=g.currentTarget,j=g.listener;if(E!==c&&e.isPropagationStopped())return;i1(e,j,I),c=E}else for(var P=0;P<t.length;P++){var B=t[P],te=B.instance,K=B.currentTarget,ce=B.listener;if(te!==c&&e.isPropagationStopped())return;i1(e,ce,K),c=te}}function o1(e,t){for(var s=(t&zc)!==0,c=0;c<e.length;c++){var p=e[c],g=p.event,E=p.listeners;yM(g,E,s)}lC()}function bM(e,t,s,c,p){var g=Tn(s),E=[];gM(E,e,c,s,g,t),o1(E,t)}function Jn(e,t){kC.has(e)||v('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,c=ZL(t),p=EM(e,s);c.has(p)||(s1(t,e,Bc,s),c.add(p))}function MC(e,t,s){kC.has(e)&&!t&&v('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;t&&(c|=zc),s1(s,e,c,t)}var qg="_reactListening"+Math.random().toString(36).slice(2);function ih(e){if(!e[qg]){e[qg]=!0,Ve.forEach(function(s){s!=="selectionchange"&&(kC.has(s)||MC(s,!1,e),MC(s,!0,e))});var t=e.nodeType===$a?e:e.ownerDocument;t!==null&&(t[qg]||(t[qg]=!0,MC("selectionchange",!1,t)))}}function s1(e,t,s,c,p){var g=Cr(e,t,s),E=void 0;$c&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(E=!0),e=e,c?E!==void 0?Hd(e,t,g,E):Wo(e,t,g):E!==void 0?Wv(e,t,g,E):Uu(e,t,g)}function l1(e,t){return e===t||e.nodeType===Qn&&e.parentNode===t}function LC(e,t,s,c,p){var g=c;if(!(t&od)&&!(t&Bc)){var E=p;if(c!==null){var I=c;e:for(;;){if(I===null)return;var j=I.tag;if(j===T||j===A){var P=I.stateNode.containerInfo;if(l1(P,E))break;if(j===A)for(var B=I.return;B!==null;){var te=B.tag;if(te===T||te===A){var K=B.stateNode.containerInfo;if(l1(K,E))return}B=B.return}for(;P!==null;){var ce=Ef(P);if(ce===null)return;var de=ce.tag;if(de===N||de===O){I=g=ce;continue e}P=P.parentNode}}I=I.return}}}Hc(function(){return bM(e,t,s,g)})}function oh(e,t,s){return{instance:e,listener:t,currentTarget:s}}function CM(e,t,s,c,p,g){for(var E=t!==null?t+"Capture":null,I=c?E:t,j=[],P=e,B=null;P!==null;){var te=P,K=te.stateNode,ce=te.tag;if(ce===N&&K!==null&&(B=K,I!==null)){var de=hl(P,I);de!=null&&j.push(oh(P,de,B))}if(p)break;P=P.return}return j}function Qg(e,t){for(var s=t+"Capture",c=[],p=e;p!==null;){var g=p,E=g.stateNode,I=g.tag;if(I===N&&E!==null){var j=E,P=hl(p,s);P!=null&&c.unshift(oh(p,P,j));var B=hl(p,t);B!=null&&c.push(oh(p,B,j))}p=p.return}return c}function ip(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==N);return e||null}function xM(e,t){for(var s=e,c=t,p=0,g=s;g;g=ip(g))p++;for(var E=0,I=c;I;I=ip(I))E++;for(;p-E>0;)s=ip(s),p--;for(;E-p>0;)c=ip(c),E--;for(var j=p;j--;){if(s===c||c!==null&&s===c.alternate)return s;s=ip(s),c=ip(c)}return null}function u1(e,t,s,c,p){for(var g=t._reactName,E=[],I=s;I!==null&&I!==c;){var j=I,P=j.alternate,B=j.stateNode,te=j.tag;if(P!==null&&P===c)break;if(te===N&&B!==null){var K=B;if(p){var ce=hl(I,g);ce!=null&&E.unshift(oh(I,ce,K))}else if(!p){var de=hl(I,g);de!=null&&E.push(oh(I,de,K))}}I=I.return}E.length!==0&&e.push({event:t,listeners:E})}function SM(e,t,s,c,p){var g=c&&p?xM(c,p):null;c!==null&&u1(e,t,c,g,!1),p!==null&&s!==null&&u1(e,s,p,g,!0)}function EM(e,t){return e+"__"+(t?"capture":"bubble")}var Si=!1,sh="dangerouslySetInnerHTML",Kg="suppressContentEditableWarning",Xu="suppressHydrationWarning",c1="autoFocus",xf="children",Sf="style",ey="__html",PC,ty,lh,f1,ny,d1,p1;PC={dialog:!0,webview:!0},ty=function(e,t){mu(e,t),tg(e,t),ws(e,t,{registrationNameDependencies:et,possibleRegistrationNames:tt})},d1=It&&!document.documentMode,lh=function(e,t,s){if(!Si){var c=ry(s),p=ry(t);p!==c&&(Si=!0,v("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(p),JSON.stringify(c)))}},f1=function(e){if(!Si){Si=!0;var t=[];e.forEach(function(s){t.push(s)}),v("Extra attributes from the server: %s",t)}},ny=function(e,t){t===!1?v("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):v("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},p1=function(e,t){var s=e.namespaceURI===Mo?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=t,s.innerHTML};var wM=/\r\n?/g,RM=/\u0000|\uFFFD/g;function ry(e){Rr(e);var t=typeof e=="string"?e:""+e;return t.replace(wM,`
|
|
125
|
-
`).replace(RM,"")}function ay(e,t,s,c){var p=ry(t),g=ry(e);if(g!==p&&(c&&(Si||(Si=!0,v('Text content did not match. Server: "%s" Client: "%s"',g,p))),s&&ne))throw new Error("Text content does not match server-rendered HTML.")}function v1(e){return e.nodeType===$a?e:e.ownerDocument}function TM(){}function iy(e){e.onclick=TM}function IM(e,t,s,c,p){for(var g in c)if(c.hasOwnProperty(g)){var E=c[g];if(g===Sf)E&&Object.freeze(E),Zm(t,E);else if(g===sh){var I=E?E[ey]:void 0;I!=null&&Bm(t,I)}else if(g===xf)if(typeof E=="string"){var j=e!=="textarea"||E!=="";j&&kc(t,E)}else typeof E=="number"&&kc(t,""+E);else g===Kg||g===Xu||g===c1||(et.hasOwnProperty(g)?E!=null&&(typeof E!="function"&&ny(g,E),g==="onScroll"&&Jn("scroll",t)):E!=null&&Io(t,g,E,p))}}function NM(e,t,s,c){for(var p=0;p<t.length;p+=2){var g=t[p],E=t[p+1];g===Sf?Zm(e,E):g===sh?Bm(e,E):g===xf?kc(e,E):Io(e,g,E,c)}}function _M(e,t,s,c){var p,g=v1(s),E,I=c;if(I===Mo&&(I=iv(e)),I===Mo){if(p=dl(e,t),!p&&e!==e.toLowerCase()&&v("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var j=g.createElement("div");j.innerHTML="<script><\/script>";var P=j.firstChild;E=j.removeChild(P)}else if(typeof t.is=="string")E=g.createElement(e,{is:t.is});else if(E=g.createElement(e),e==="select"){var B=E;t.multiple?B.multiple=!0:t.size&&(B.size=t.size)}}else E=g.createElementNS(I,e);return I===Mo&&!p&&Object.prototype.toString.call(E)==="[object HTMLUnknownElement]"&&!pt.call(PC,e)&&(PC[e]=!0,v("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 OM(e,t){return v1(t).createTextNode(e)}function AM(e,t,s,c){var p=dl(t,s);ty(t,s);var g;switch(t){case"dialog":Jn("cancel",e),Jn("close",e),g=s;break;case"iframe":case"object":case"embed":Jn("load",e),g=s;break;case"video":case"audio":for(var E=0;E<ah.length;E++)Jn(ah[E],e);g=s;break;case"source":Jn("error",e),g=s;break;case"img":case"image":case"link":Jn("error",e),Jn("load",e),g=s;break;case"details":Jn("toggle",e),g=s;break;case"input":X(e,s),g=D(e,s),Jn("invalid",e);break;case"option":hn(e,s),g=s;break;case"select":Dc(e,s),g=jc(e,s),Jn("invalid",e);break;case"textarea":Fm(e,s),g=av(e,s),Jn("invalid",e);break;default:g=s}switch(Pc(t,g),IM(t,e,c,g,p),t){case"input":jo(e),Be(e,s,!1);break;case"textarea":jo(e),Kf(e);break;case"option":mn(e,s);break;case"select":rv(e,s);break;default:typeof g.onClick=="function"&&iy(e);break}}function jM(e,t,s,c,p){ty(t,c);var g=null,E,I;switch(t){case"input":E=D(e,s),I=D(e,c),g=[];break;case"select":E=jc(e,s),I=jc(e,c),g=[];break;case"textarea":E=av(e,s),I=av(e,c),g=[];break;default:E=s,I=c,typeof E.onClick!="function"&&typeof I.onClick=="function"&&iy(e);break}Pc(t,I);var j,P,B=null;for(j in E)if(!(I.hasOwnProperty(j)||!E.hasOwnProperty(j)||E[j]==null))if(j===Sf){var te=E[j];for(P in te)te.hasOwnProperty(P)&&(B||(B={}),B[P]="")}else j===sh||j===xf||j===Kg||j===Xu||j===c1||(et.hasOwnProperty(j)?g||(g=[]):(g=g||[]).push(j,null));for(j in I){var K=I[j],ce=E!=null?E[j]:void 0;if(!(!I.hasOwnProperty(j)||K===ce||K==null&&ce==null))if(j===Sf)if(K&&Object.freeze(K),ce){for(P in ce)ce.hasOwnProperty(P)&&(!K||!K.hasOwnProperty(P))&&(B||(B={}),B[P]="");for(P in K)K.hasOwnProperty(P)&&ce[P]!==K[P]&&(B||(B={}),B[P]=K[P])}else B||(g||(g=[]),g.push(j,B)),B=K;else if(j===sh){var de=K?K[ey]:void 0,be=ce?ce[ey]:void 0;de!=null&&be!==de&&(g=g||[]).push(j,de)}else j===xf?(typeof K=="string"||typeof K=="number")&&(g=g||[]).push(j,""+K):j===Kg||j===Xu||(et.hasOwnProperty(j)?(K!=null&&(typeof K!="function"&&ny(j,K),j==="onScroll"&&Jn("scroll",e)),!g&&ce!==K&&(g=[])):(g=g||[]).push(j,K))}return B&&(Jm(B,I[Sf]),(g=g||[]).push(Sf,B)),g}function DM(e,t,s,c,p){s==="input"&&p.type==="radio"&&p.name!=null&&ue(e,p);var g=dl(s,c),E=dl(s,p);switch(NM(e,t,g,E),s){case"input":me(e,p);break;case"textarea":Vm(e,p);break;case"select":Z0(e,p);break}}function kM(e){{var t=e.toLowerCase();return rd.hasOwnProperty(t)&&rd[t]||null}}function MM(e,t,s,c,p,g,E){var I,j;switch(I=dl(t,s),ty(t,s),t){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 P=0;P<ah.length;P++)Jn(ah[P],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":X(e,s),Jn("invalid",e);break;case"option":hn(e,s);break;case"select":Dc(e,s),Jn("invalid",e);break;case"textarea":Fm(e,s),Jn("invalid",e);break}Pc(t,s);{j=new Set;for(var B=e.attributes,te=0;te<B.length;te++){var K=B[te].name.toLowerCase();switch(K){case"value":break;case"checked":break;case"selected":break;default:j.add(B[te].name)}}}var ce=null;for(var de in s)if(s.hasOwnProperty(de)){var be=s[de];if(de===xf)typeof be=="string"?e.textContent!==be&&(s[Xu]!==!0&&ay(e.textContent,be,g,E),ce=[xf,be]):typeof be=="number"&&e.textContent!==""+be&&(s[Xu]!==!0&&ay(e.textContent,be,g,E),ce=[xf,""+be]);else if(et.hasOwnProperty(de))be!=null&&(typeof be!="function"&&ny(de,be),de==="onScroll"&&Jn("scroll",e));else if(E&&typeof I=="boolean"){var qe=void 0,gt=I&&Se?null:Ir(de);if(s[Xu]!==!0){if(!(de===Kg||de===Xu||de==="value"||de==="checked"||de==="selected")){if(de===sh){var ct=e.innerHTML,Wt=be?be[ey]:void 0;if(Wt!=null){var Ut=p1(e,Wt);Ut!==ct&&lh(de,ct,Ut)}}else if(de===Sf){if(j.delete(de),d1){var ie=iC(be);qe=e.getAttribute("style"),ie!==qe&&lh(de,qe,ie)}}else if(I&&!Se)j.delete(de.toLowerCase()),qe=ii(e,de,be),be!==qe&&lh(de,qe,be);else if(!Gn(de,gt,I)&&!pn(de,be,gt,I)){var Ce=!1;if(gt!==null)j.delete(gt.attributeName),qe=Li(e,de,be,gt);else{var oe=c;if(oe===Mo&&(oe=iv(t)),oe===Mo)j.delete(de.toLowerCase());else{var Fe=kM(de);Fe!==null&&Fe!==de&&(Ce=!0,j.delete(Fe)),j.delete(de)}qe=ii(e,de,be)}var Qe=Se;!Qe&&be!==qe&&!Ce&&lh(de,qe,be)}}}}}switch(E&&j.size>0&&s[Xu]!==!0&&f1(j),t){case"input":jo(e),Be(e,s,!0);break;case"textarea":jo(e),Kf(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&iy(e);break}return ce}function LM(e,t,s){var c=e.nodeValue!==t;return c}function FC(e,t){{if(Si)return;Si=!0,v("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function VC(e,t){{if(Si)return;Si=!0,v('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function BC(e,t,s){{if(Si)return;Si=!0,v("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function zC(e,t){{if(t===""||Si)return;Si=!0,v('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function PM(e,t,s){switch(t){case"input":it(e,s);return;case"textarea":J0(e,s);return;case"select":Lm(e,s);return}}var uh=function(){},ch=function(){};{var FM=["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"],h1=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],VM=h1.concat(["button"]),BM=["dd","dt","li","option","optgroup","p","rp","rt"],m1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};ch=function(e,t){var s=Lt({},e||m1),c={tag:t};return h1.indexOf(t)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),VM.indexOf(t)!==-1&&(s.pTagInButtonScope=null),FM.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=c,t==="form"&&(s.formTag=c),t==="a"&&(s.aTagInScope=c),t==="button"&&(s.buttonTagInScope=c),t==="nobr"&&(s.nobrTagInScope=c),t==="p"&&(s.pTagInButtonScope=c),t==="li"&&(s.listItemTagAutoclosing=c),(t==="dd"||t==="dt")&&(s.dlItemTagAutoclosing=c),s};var zM=function(e,t){switch(t){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 t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return BM.indexOf(t)===-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 t==null}return!0},UM=function(e,t){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 t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},g1={};uh=function(e,t,s){s=s||m1;var c=s.current,p=c&&c.tag;t!=null&&(e!=null&&v("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var g=zM(e,p)?null:c,E=g?null:UM(e,s),I=g||E;if(I){var j=I.tag,P=!!g+"|"+e+"|"+j;if(!g1[P]){g1[P]=!0;var B=e,te="";if(e==="#text"?/\S/.test(t)?B="Text nodes":(B="Whitespace text nodes",te=" Make sure you don't have any extra whitespace between tags on each line of your source code."):B="<"+e+">",g){var K="";j==="table"&&e==="tr"&&(K+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),v("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",B,j,te,K)}else v("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",B,j)}}}}var oy="suppressHydrationWarning",sy="$",ly="/$",fh="$?",dh="$!",HM="style",UC=null,HC=null;function $M(e){var t,s,c=e.nodeType;switch(c){case $a:case sv:{t=c===$a?"#document":"#fragment";var p=e.documentElement;s=p?p.namespaceURI:ov(null,"");break}default:{var g=c===Qn?e.parentNode:e,E=g.namespaceURI||null;t=g.tagName,s=ov(E,t);break}}{var I=t.toLowerCase(),j=ch(null,I);return{namespace:s,ancestorInfo:j}}}function GM(e,t,s){{var c=e,p=ov(c.namespace,t),g=ch(c.ancestorInfo,t);return{namespace:p,ancestorInfo:g}}}function F8(e){return e}function WM(e){UC=Bu(),HC=oM();var t=null;return Da(!1),t}function XM(e){sM(HC),Da(UC),UC=null,HC=null}function YM(e,t,s,c,p){var g;{var E=c;if(uh(e,null,E.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var I=""+t.children,j=ch(E.ancestorInfo,e);uh(null,I,j)}g=E.namespace}var P=_M(e,t,s,g);return hh(p,P),qC(P,t),P}function ZM(e,t){e.appendChild(t)}function JM(e,t,s,c,p){switch(AM(e,t,s,c),t){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function qM(e,t,s,c,p,g){{var E=g;if(typeof c.children!=typeof s.children&&(typeof c.children=="string"||typeof c.children=="number")){var I=""+c.children,j=ch(E.ancestorInfo,t);uh(null,I,j)}}return jM(e,t,s,c)}function $C(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}function QM(e,t,s,c){{var p=s;uh(null,e,p.ancestorInfo)}var g=OM(e,t);return hh(c,g),g}function KM(){var e=window.event;return e===void 0?co:Ud(e.type)}var GC=typeof setTimeout=="function"?setTimeout:void 0,eL=typeof clearTimeout=="function"?clearTimeout:void 0,WC=-1,y1=typeof Promise=="function"?Promise:void 0,tL=typeof queueMicrotask=="function"?queueMicrotask:typeof y1<"u"?function(e){return y1.resolve(null).then(e).catch(nL)}:GC;function nL(e){setTimeout(function(){throw e})}function rL(e,t,s,c){switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function aL(e,t,s,c,p,g){DM(e,t,s,c,p),qC(e,p)}function b1(e){kc(e,"")}function iL(e,t,s){e.nodeValue=s}function oL(e,t){e.appendChild(t)}function sL(e,t){var s;e.nodeType===Qn?(s=e.parentNode,s.insertBefore(t,e)):(s=e,s.appendChild(t));var c=e._reactRootContainer;c==null&&s.onclick===null&&iy(s)}function lL(e,t,s){e.insertBefore(t,s)}function uL(e,t,s){e.nodeType===Qn?e.parentNode.insertBefore(t,s):e.insertBefore(t,s)}function cL(e,t){e.removeChild(t)}function fL(e,t){e.nodeType===Qn?e.parentNode.removeChild(t):e.removeChild(t)}function XC(e,t){var s=t,c=0;do{var p=s.nextSibling;if(e.removeChild(s),p&&p.nodeType===Qn){var g=p.data;if(g===ly)if(c===0){e.removeChild(p),nr(t);return}else c--;else(g===sy||g===fh||g===dh)&&c++}s=p}while(s);nr(t)}function dL(e,t){e.nodeType===Qn?XC(e.parentNode,t):e.nodeType===Ea&&XC(e,t),nr(e)}function pL(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function vL(e){e.nodeValue=""}function hL(e,t){e=e;var s=t[HM],c=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=Ss("display",c)}function mL(e,t){e.nodeValue=t}function gL(e){e.nodeType===Ea?e.textContent="":e.nodeType===$a&&e.documentElement&&e.removeChild(e.documentElement)}function yL(e,t,s){return e.nodeType!==Ea||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function bL(e,t){return t===""||e.nodeType!==Lo?null:e}function CL(e){return e.nodeType!==Qn?null:e}function C1(e){return e.data===fh}function YC(e){return e.data===dh}function xL(e){var t=e.nextSibling&&e.nextSibling.dataset,s,c,p;return t&&(s=t.dgst,c=t.msg,p=t.stck),{message:c,digest:s,stack:p}}function SL(e,t){e._reactRetry=t}function uy(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===Ea||t===Lo)break;if(t===Qn){var s=e.data;if(s===sy||s===dh||s===fh)break;if(s===ly)return null}}return e}function ph(e){return uy(e.nextSibling)}function EL(e){return uy(e.firstChild)}function wL(e){return uy(e.firstChild)}function RL(e){return uy(e.nextSibling)}function TL(e,t,s,c,p,g,E){hh(g,e),qC(e,s);var I;{var j=p;I=j.namespace}var P=(g.mode&ut)!==mt;return MM(e,t,s,I,c,P,E)}function IL(e,t,s,c){return hh(s,e),s.mode&ut,LM(e,t)}function NL(e,t){hh(t,e)}function _L(e){for(var t=e.nextSibling,s=0;t;){if(t.nodeType===Qn){var c=t.data;if(c===ly){if(s===0)return ph(t);s--}else(c===sy||c===dh||c===fh)&&s++}t=t.nextSibling}return null}function x1(e){for(var t=e.previousSibling,s=0;t;){if(t.nodeType===Qn){var c=t.data;if(c===sy||c===dh||c===fh){if(s===0)return t;s--}else c===ly&&s++}t=t.previousSibling}return null}function OL(e){nr(e)}function AL(e){nr(e)}function jL(e){return e!=="head"&&e!=="body"}function DL(e,t,s,c){var p=!0;ay(t.nodeValue,s,c,p)}function kL(e,t,s,c,p,g){if(t[oy]!==!0){var E=!0;ay(c.nodeValue,p,g,E)}}function ML(e,t){t.nodeType===Ea?FC(e,t):t.nodeType===Qn||VC(e,t)}function LL(e,t){{var s=e.parentNode;s!==null&&(t.nodeType===Ea?FC(s,t):t.nodeType===Qn||VC(s,t))}}function PL(e,t,s,c,p){(p||t[oy]!==!0)&&(c.nodeType===Ea?FC(s,c):c.nodeType===Qn||VC(s,c))}function FL(e,t,s){BC(e,t)}function VL(e,t){zC(e,t)}function BL(e,t,s){{var c=e.parentNode;c!==null&&BC(c,t)}}function zL(e,t){{var s=e.parentNode;s!==null&&zC(s,t)}}function UL(e,t,s,c,p,g){(g||t[oy]!==!0)&&BC(s,c)}function HL(e,t,s,c,p){(p||t[oy]!==!0)&&zC(s,c)}function $L(e){v("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function GL(e){ih(e)}var op=Math.random().toString(36).slice(2),sp="__reactFiber$"+op,ZC="__reactProps$"+op,vh="__reactContainer$"+op,JC="__reactEvents$"+op,WL="__reactListeners$"+op,XL="__reactHandles$"+op;function YL(e){delete e[sp],delete e[ZC],delete e[JC],delete e[WL],delete e[XL]}function hh(e,t){t[sp]=e}function cy(e,t){t[vh]=e}function S1(e){e[vh]=null}function mh(e){return!!e[vh]}function Ef(e){var t=e[sp];if(t)return t;for(var s=e.parentNode;s;){if(t=s[vh]||s[sp],t){var c=t.alternate;if(t.child!==null||c!==null&&c.child!==null)for(var p=x1(e);p!==null;){var g=p[sp];if(g)return g;p=x1(p)}return t}e=s,s=e.parentNode}return null}function Yu(e){var t=e[sp]||e[vh];return t&&(t.tag===N||t.tag===O||t.tag===H||t.tag===T)?t:null}function lp(e){if(e.tag===N||e.tag===O)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function fy(e){return e[ZC]||null}function qC(e,t){e[ZC]=t}function ZL(e){var t=e[JC];return t===void 0&&(t=e[JC]=new Set),t}var E1={},w1=u.ReactDebugCurrentFrame;function dy(e){if(e){var t=e._owner,s=Ht(e.type,e._source,t?t.type:null);w1.setExtraStackFrame(s)}else w1.setExtraStackFrame(null)}function Zo(e,t,s,c,p){{var g=Function.call.bind(pt);for(var E in e)if(g(e,E)){var I=void 0;try{if(typeof e[E]!="function"){var j=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 j.name="Invariant Violation",j}I=e[E](t,E,c,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){I=P}I&&!(I instanceof Error)&&(dy(p),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).",c||"React class",s,E,typeof I),dy(null)),I instanceof Error&&!(I.message in E1)&&(E1[I.message]=!0,dy(p),v("Failed %s type: %s",s,I.message),dy(null))}}}var QC=[],py;py=[];var Ml=-1;function Zu(e){return{current:e}}function ka(e,t){if(Ml<0){v("Unexpected pop.");return}t!==py[Ml]&&v("Unexpected Fiber popped."),e.current=QC[Ml],QC[Ml]=null,py[Ml]=null,Ml--}function Ma(e,t,s){Ml++,QC[Ml]=e.current,py[Ml]=s,e.current=t}var KC;KC={};var $i={};Object.freeze($i);var Ll=Zu($i),zs=Zu(!1),ex=$i;function up(e,t,s){return s&&Us(t)?ex:Ll.current}function R1(e,t,s){{var c=e.stateNode;c.__reactInternalMemoizedUnmaskedChildContext=t,c.__reactInternalMemoizedMaskedChildContext=s}}function cp(e,t){{var s=e.type,c=s.contextTypes;if(!c)return $i;var p=e.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===t)return p.__reactInternalMemoizedMaskedChildContext;var g={};for(var E in c)g[E]=t[E];{var I=Nt(e)||"Unknown";Zo(c,g,"context",I)}return p&&R1(e,t,g),g}}function vy(){return zs.current}function Us(e){{var t=e.childContextTypes;return t!=null}}function hy(e){ka(zs,e),ka(Ll,e)}function tx(e){ka(zs,e),ka(Ll,e)}function T1(e,t,s){{if(Ll.current!==$i)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Ma(Ll,t,e),Ma(zs,s,e)}}function I1(e,t,s){{var c=e.stateNode,p=t.childContextTypes;if(typeof c.getChildContext!="function"){{var g=Nt(e)||"Unknown";KC[g]||(KC[g]=!0,v("%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.",g,g))}return s}var E=c.getChildContext();for(var I in E)if(!(I in p))throw new Error((Nt(e)||"Unknown")+'.getChildContext(): key "'+I+'" is not defined in childContextTypes.');{var j=Nt(e)||"Unknown";Zo(p,E,"child context",j)}return Lt({},s,E)}}function my(e){{var t=e.stateNode,s=t&&t.__reactInternalMemoizedMergedChildContext||$i;return ex=Ll.current,Ma(Ll,s,e),Ma(zs,zs.current,e),!0}}function N1(e,t,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=I1(e,t,ex);c.__reactInternalMemoizedMergedChildContext=p,ka(zs,e),ka(Ll,e),Ma(Ll,p,e),Ma(zs,s,e)}else ka(zs,e),Ma(zs,s,e)}}function JL(e){{if(!Xa(e)||e.tag!==x)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 t=e;do{switch(t.tag){case T:return t.stateNode.context;case x:{var s=t.type;if(Us(s))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Ju=0,gy=1,Pl=null,nx=!1,rx=!1;function _1(e){Pl===null?Pl=[e]:Pl.push(e)}function qL(e){nx=!0,_1(e)}function O1(){nx&&qu()}function qu(){if(!rx&&Pl!==null){rx=!0;var e=0,t=gi();try{var s=!0,c=Pl;for(tr(ur);e<c.length;e++){var p=c[e];do p=p(s);while(p!==null)}Pl=null,nx=!1}catch(g){throw Pl!==null&&(Pl=Pl.slice(e+1)),Iv(Na,qu),g}finally{tr(t),rx=!1}}return null}var fp=[],dp=0,yy=null,by=0,ho=[],mo=0,wf=null,Fl=1,Vl="";function QL(e){return Tf(),(e.flags&dg)!==ht}function KL(e){return Tf(),by}function eP(){var e=Vl,t=Fl,s=t&~tP(t);return s.toString(32)+e}function Rf(e,t){Tf(),fp[dp++]=by,fp[dp++]=yy,yy=e,by=t}function A1(e,t,s){Tf(),ho[mo++]=Fl,ho[mo++]=Vl,ho[mo++]=wf,wf=e;var c=Fl,p=Vl,g=Cy(c)-1,E=c&~(1<<g),I=s+1,j=Cy(t)+g;if(j>30){var P=g-g%5,B=(1<<P)-1,te=(E&B).toString(32),K=E>>P,ce=g-P,de=Cy(t)+ce,be=I<<ce,qe=be|K,gt=te+p;Fl=1<<de|qe,Vl=gt}else{var ct=I<<g,Wt=ct|E,Ut=p;Fl=1<<j|Wt,Vl=Ut}}function ax(e){Tf();var t=e.return;if(t!==null){var s=1,c=0;Rf(e,s),A1(e,s,c)}}function Cy(e){return 32-Kc(e)}function tP(e){return 1<<Cy(e)-1}function ix(e){for(;e===yy;)yy=fp[--dp],fp[dp]=null,by=fp[--dp],fp[dp]=null;for(;e===wf;)wf=ho[--mo],ho[mo]=null,Vl=ho[--mo],ho[mo]=null,Fl=ho[--mo],ho[mo]=null}function nP(){return Tf(),wf!==null?{id:Fl,overflow:Vl}:null}function rP(e,t){Tf(),ho[mo++]=Fl,ho[mo++]=Vl,ho[mo++]=wf,Fl=t.id,Vl=t.overflow,wf=e}function Tf(){oa()||v("Expected to be hydrating. This is a bug in React. Please file an issue.")}var ia=null,go=null,Jo=!1,If=!1,Qu=null;function aP(){Jo&&v("We should not be hydrating here. This is a bug in React. Please file a bug.")}function j1(){If=!0}function iP(){return If}function oP(e){var t=e.stateNode.containerInfo;return go=wL(t),ia=e,Jo=!0,Qu=null,If=!1,!0}function sP(e,t,s){return go=RL(t),ia=e,Jo=!0,Qu=null,If=!1,s!==null&&rP(e,s),!0}function D1(e,t){switch(e.tag){case T:{ML(e.stateNode.containerInfo,t);break}case N:{var s=(e.mode&ut)!==mt;PL(e.type,e.memoizedProps,e.stateNode,t,s);break}case H:{var c=e.memoizedState;c.dehydrated!==null&&LL(c.dehydrated,t);break}}}function k1(e,t){D1(e,t);var s=cB();s.stateNode=t,s.return=e;var c=e.deletions;c===null?(e.deletions=[s],e.flags|=tn):c.push(s)}function ox(e,t){{if(If)return;switch(e.tag){case T:{var s=e.stateNode.containerInfo;switch(t.tag){case N:var c=t.type;t.pendingProps,FL(s,c);break;case O:var p=t.pendingProps;VL(s,p);break}break}case N:{var g=e.type,E=e.memoizedProps,I=e.stateNode;switch(t.tag){case N:{var j=t.type,P=t.pendingProps,B=(e.mode&ut)!==mt;UL(g,E,I,j,P,B);break}case O:{var te=t.pendingProps,K=(e.mode&ut)!==mt;HL(g,E,I,te,K);break}}break}case H:{var ce=e.memoizedState,de=ce.dehydrated;if(de!==null)switch(t.tag){case N:var be=t.type;t.pendingProps,BL(de,be);break;case O:var qe=t.pendingProps;zL(de,qe);break}break}default:return}}}function M1(e,t){t.flags=t.flags&~io|In,ox(e,t)}function L1(e,t){switch(e.tag){case N:{var s=e.type;e.pendingProps;var c=yL(t,s);return c!==null?(e.stateNode=c,ia=e,go=EL(c),!0):!1}case O:{var p=e.pendingProps,g=bL(t,p);return g!==null?(e.stateNode=g,ia=e,go=null,!0):!1}case H:{var E=CL(t);if(E!==null){var I={dehydrated:E,treeContext:nP(),retryLane:Ja};e.memoizedState=I;var j=fB(E);return j.return=e,e.child=j,ia=e,go=null,!0}return!1}default:return!1}}function sx(e){return(e.mode&ut)!==mt&&(e.flags&Ot)===ht}function lx(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function ux(e){if(Jo){var t=go;if(!t){sx(e)&&(ox(ia,e),lx()),M1(ia,e),Jo=!1,ia=e;return}var s=t;if(!L1(e,t)){sx(e)&&(ox(ia,e),lx()),t=ph(s);var c=ia;if(!t||!L1(e,t)){M1(ia,e),Jo=!1,ia=e;return}k1(c,s)}}}function lP(e,t,s){var c=e.stateNode,p=!If,g=TL(c,e.type,e.memoizedProps,t,s,e,p);return e.updateQueue=g,g!==null}function uP(e){var t=e.stateNode,s=e.memoizedProps,c=IL(t,s,e);if(c){var p=ia;if(p!==null)switch(p.tag){case T:{var g=p.stateNode.containerInfo,E=(p.mode&ut)!==mt;DL(g,t,s,E);break}case N:{var I=p.type,j=p.memoizedProps,P=p.stateNode,B=(p.mode&ut)!==mt;kL(I,j,P,t,s,B);break}}}return c}function cP(e){var t=e.memoizedState,s=t!==null?t.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.");NL(s,e)}function fP(e){var t=e.memoizedState,s=t!==null?t.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 _L(s)}function P1(e){for(var t=e.return;t!==null&&t.tag!==N&&t.tag!==T&&t.tag!==H;)t=t.return;ia=t}function xy(e){if(e!==ia)return!1;if(!Jo)return P1(e),Jo=!0,!1;if(e.tag!==T&&(e.tag!==N||jL(e.type)&&!$C(e.type,e.memoizedProps))){var t=go;if(t)if(sx(e))F1(e),lx();else for(;t;)k1(e,t),t=ph(t)}return P1(e),e.tag===H?go=fP(e):go=ia?ph(e.stateNode):null,!0}function dP(){return Jo&&go!==null}function F1(e){for(var t=go;t;)D1(e,t),t=ph(t)}function pp(){ia=null,go=null,Jo=!1,If=!1}function V1(){Qu!==null&&(DI(Qu),Qu=null)}function oa(){return Jo}function cx(e){Qu===null?Qu=[e]:Qu.push(e)}var pP=u.ReactCurrentBatchConfig,vP=null;function hP(){return pP.transition}var qo={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var mP=function(e){for(var t=null,s=e;s!==null;)s.mode&Kn&&(t=s),s=s.return;return t},Nf=function(e){var t=[];return e.forEach(function(s){t.push(s)}),t.sort().join(", ")},gh=[],yh=[],bh=[],Ch=[],xh=[],Sh=[],_f=new Set;qo.recordUnsafeLifecycleWarnings=function(e,t){_f.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&gh.push(e),e.mode&Kn&&typeof t.UNSAFE_componentWillMount=="function"&&yh.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&bh.push(e),e.mode&Kn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Ch.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&xh.push(e),e.mode&Kn&&typeof t.UNSAFE_componentWillUpdate=="function"&&Sh.push(e))},qo.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;gh.length>0&&(gh.forEach(function(K){e.add(Nt(K)||"Component"),_f.add(K.type)}),gh=[]);var t=new Set;yh.length>0&&(yh.forEach(function(K){t.add(Nt(K)||"Component"),_f.add(K.type)}),yh=[]);var s=new Set;bh.length>0&&(bh.forEach(function(K){s.add(Nt(K)||"Component"),_f.add(K.type)}),bh=[]);var c=new Set;Ch.length>0&&(Ch.forEach(function(K){c.add(Nt(K)||"Component"),_f.add(K.type)}),Ch=[]);var p=new Set;xh.length>0&&(xh.forEach(function(K){p.add(Nt(K)||"Component"),_f.add(K.type)}),xh=[]);var g=new Set;if(Sh.length>0&&(Sh.forEach(function(K){g.add(Nt(K)||"Component"),_f.add(K.type)}),Sh=[]),t.size>0){var E=Nf(t);v(`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.
|
|
124
|
+
*/function np(e){if(!It)return!1;var t="on"+e,s=t in document;if(!s){var c=document.createElement("div");c.setAttribute(t,"return;"),s=typeof c[t]=="function"}return s}function a(){ft("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(e,t,s,c){gu(c);var p=Qg(t,"onChange");if(p.length>0){var g=new Wd("onChange","change",null,s,c);e.push({event:g,listeners:p})}}var f=null,m=null;function S(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function w(e){var t=[];o(t,m,e,Tn(e)),Hc(k,t)}function k(e){i1(e,0)}function W(e){var t=lp(e);if(cu(t))return e}function Q(e,t){if(e==="change")return t}var pe=!1;It&&(pe=np("input")&&(!document.documentMode||document.documentMode>9));function Me(e,t){f=e,m=t,f.attachEvent("onpropertychange",De)}function Pe(){f&&(f.detachEvent("onpropertychange",De),f=null,m=null)}function De(e){e.propertyName==="value"&&W(m)&&w(e)}function Ye(e,t,s){e==="focusin"?(Pe(),Me(t,s)):e==="focusout"&&Pe()}function nt(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return W(m)}function ot(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function cr(e,t){if(e==="click")return W(t)}function ae(e,t){if(e==="input"||e==="change")return W(t)}function ee(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||wt(e,"number",e.value)}function se(e,t,s,c,p,g,E){var I=s?lp(s):window,j,P;if(S(I)?j=Q:Yg(I)?pe?j=ae:(j=nt,P=Ye):ot(I)&&(j=cr),j){var B=j(t,s);if(B){o(e,B,c,p);return}}P&&P(t,I,s),t==="focusout"&&ee(I)}function ze(){Ae("onMouseEnter",["mouseout","mouseover"]),Ae("onMouseLeave",["mouseout","mouseover"]),Ae("onPointerEnter",["pointerout","pointerover"]),Ae("onPointerLeave",["pointerout","pointerover"])}function lt(e,t,s,c,p,g,E){var I=t==="mouseover"||t==="pointerover",j=t==="mouseout"||t==="pointerout";if(I&&!sg(c)){var P=c.relatedTarget||c.fromElement;if(P&&(Ef(P)||gh(P)))return}if(!(!j&&!I)){var B;if(p.window===p)B=p;else{var te=p.ownerDocument;te?B=te.defaultView||te.parentWindow:B=window}var K,ce;if(j){var de=c.relatedTarget||c.toElement;if(K=s,ce=de?Ef(de):null,ce!==null){var be=Ns(ce);(ce!==be||ce.tag!==N&&ce.tag!==O)&&(ce=null)}}else K=null,ce=s;if(K!==ce){var qe=Xd,gt="onMouseLeave",ct="onMouseEnter",Wt="mouse";(t==="pointerout"||t==="pointerover")&&(qe=$g,gt="onPointerLeave",ct="onPointerEnter",Wt="pointer");var Ut=K==null?B:lp(K),ie=ce==null?B:lp(ce),Ce=new qe(gt,Wt+"leave",K,c,p);Ce.target=Ut,Ce.relatedTarget=ie;var oe=null,Fe=Ef(p);if(Fe===s){var Qe=new qe(ct,Wt+"enter",ce,c,p);Qe.target=ie,Qe.relatedTarget=Ut,oe=Qe}SM(e,Ce,oe,K,ce)}}}function Ct(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rt=typeof Object.is=="function"?Object.is:Ct;function St(e,t){if(rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),c=Object.keys(t);if(s.length!==c.length)return!1;for(var p=0;p<s.length;p++){var g=s[p];if(!pt.call(t,g)||!rt(e[g],t[g]))return!1}return!0}function Sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nn(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Yo(e,t){for(var s=Sr(e),c=0,p=0;s;){if(s.nodeType===Lo){if(p=c+s.textContent.length,c<=t&&p>=t)return{node:s,offset:t-c};c=p}s=Sr(nn(s))}}function NC(e){var t=e.ownerDocument,s=t&&t.defaultView||window,c=s.getSelection&&s.getSelection();if(!c||c.rangeCount===0)return null;var p=c.anchorNode,g=c.anchorOffset,E=c.focusNode,I=c.focusOffset;try{p.nodeType,E.nodeType}catch{return null}return nM(e,p,g,E,I)}function nM(e,t,s,c,p){var g=0,E=-1,I=-1,j=0,P=0,B=e,te=null;e:for(;;){for(var K=null;B===t&&(s===0||B.nodeType===Lo)&&(E=g+s),B===c&&(p===0||B.nodeType===Lo)&&(I=g+p),B.nodeType===Lo&&(g+=B.nodeValue.length),(K=B.firstChild)!==null;)te=B,B=K;for(;;){if(B===e)break e;if(te===t&&++j===s&&(E=g),te===c&&++P===p&&(I=g),(K=B.nextSibling)!==null)break;B=te,te=B.parentNode}B=K}return E===-1||I===-1?null:{start:E,end:I}}function rM(e,t){var s=e.ownerDocument||document,c=s&&s.defaultView||window;if(c.getSelection){var p=c.getSelection(),g=e.textContent.length,E=Math.min(t.start,g),I=t.end===void 0?E:Math.min(t.end,g);if(!p.extend&&E>I){var j=I;I=E,E=j}var P=Yo(e,E),B=Yo(e,I);if(P&&B){if(p.rangeCount===1&&p.anchorNode===P.node&&p.anchorOffset===P.offset&&p.focusNode===B.node&&p.focusOffset===B.offset)return;var te=s.createRange();te.setStart(P.node,P.offset),p.removeAllRanges(),E>I?(p.addRange(te),p.extend(B.node,B.offset)):(te.setEnd(B.node,B.offset),p.addRange(te))}}}function XR(e){return e&&e.nodeType===Lo}function YR(e,t){return!e||!t?!1:e===t?!0:XR(e)?!1:XR(t)?YR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function aM(e){return e&&e.ownerDocument&&YR(e.ownerDocument.documentElement,e)}function iM(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function ZR(){for(var e=window,t=no();t instanceof e.HTMLIFrameElement;){if(iM(t))e=t.contentWindow;else return t;t=no(e.document)}return t}function _C(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 oM(){var e=ZR();return{focusedElem:e,selectionRange:_C(e)?lM(e):null}}function sM(e){var t=ZR(),s=e.focusedElem,c=e.selectionRange;if(t!==s&&aM(s)){c!==null&&_C(s)&&uM(s,c);for(var p=[],g=s;g=g.parentNode;)g.nodeType===Ea&&p.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof s.focus=="function"&&s.focus();for(var E=0;E<p.length;E++){var I=p[E];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}}function lM(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=NC(e),t||{start:0,end:0}}function uM(e,t){var s=t.start,c=t.end;c===void 0&&(c=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(c,e.value.length)):rM(e,t)}var cM=It&&"documentMode"in document&&document.documentMode<=11;function fM(){ft("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var rp=null,OC=null,ah=null,AC=!1;function dM(e){if("selectionStart"in e&&_C(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,s=t.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function pM(e){return e.window===e?e.document:e.nodeType===$a?e:e.ownerDocument}function JR(e,t,s){var c=pM(s);if(!(AC||rp==null||rp!==no(c))){var p=dM(rp);if(!ah||!St(ah,p)){ah=p;var g=Qg(OC,"onSelect");if(g.length>0){var E=new Wd("onSelect","select",null,t,s);e.push({event:E,listeners:g}),E.target=rp}}}}function vM(e,t,s,c,p,g,E){var I=s?lp(s):window;switch(t){case"focusin":(Yg(I)||I.contentEditable==="true")&&(rp=I,OC=s,ah=null);break;case"focusout":rp=null,OC=null,ah=null;break;case"mousedown":AC=!0;break;case"contextmenu":case"mouseup":case"dragend":AC=!1,JR(e,c,p);break;case"selectionchange":if(cM)break;case"keydown":case"keyup":JR(e,c,p)}}function Zg(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var ap={animationend:Zg("Animation","AnimationEnd"),animationiteration:Zg("Animation","AnimationIteration"),animationstart:Zg("Animation","AnimationStart"),transitionend:Zg("Transition","TransitionEnd")},jC={},qR={};It&&(qR=document.createElement("div").style,"AnimationEvent"in window||(delete ap.animationend.animation,delete ap.animationiteration.animation,delete ap.animationstart.animation),"TransitionEvent"in window||delete ap.transitionend.transition);function Jg(e){if(jC[e])return jC[e];if(!ap[e])return e;var t=ap[e];for(var s in t)if(t.hasOwnProperty(s)&&s in qR)return jC[e]=t[s];return e}var QR=Jg("animationend"),KR=Jg("animationiteration"),e1=Jg("animationstart"),t1=Jg("transitionend"),n1=new Map,r1=["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 Wu(e,t){n1.set(e,t),ft(t,[e])}function hM(){for(var e=0;e<r1.length;e++){var t=r1[e],s=t.toLowerCase(),c=t[0].toUpperCase()+t.slice(1);Wu(s,"on"+c)}Wu(QR,"onAnimationEnd"),Wu(KR,"onAnimationIteration"),Wu(e1,"onAnimationStart"),Wu("dblclick","onDoubleClick"),Wu("focusin","onFocus"),Wu("focusout","onBlur"),Wu(t1,"onTransitionEnd")}function mM(e,t,s,c,p,g,E){var I=n1.get(t);if(I!==void 0){var j=Wd,P=t;switch(t){case"keypress":if(Al(c)===0)return;case"keydown":case"keyup":j=Ug;break;case"focusin":P="focus",j=hf;break;case"focusout":P="blur",j=hf;break;case"beforeblur":case"afterblur":j=hf;break;case"click":if(c.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=Xd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Lg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=Qv;break;case QR:case KR:case e1:j=bC;break;case t1:j=Vs;break;case"scroll":j=Yv;break;case"wheel":j=kl;break;case"copy":case"cut":case"paste":j=Fg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=$g;break}var B=(g&zc)!==0;{var te=!B&&t==="scroll",K=CM(s,I,c.type,B,te);if(K.length>0){var ce=new j(I,P,null,c,p);e.push({event:ce,listeners:K})}}}}hM(),ze(),a(),fM(),Qd();function gM(e,t,s,c,p,g,E){mM(e,t,s,c,p,g);var I=(g&iC)===0;I&&(lt(e,t,s,c,p),se(e,t,s,c,p),vM(e,t,s,c,p),IC(e,t,s,c,p))}var ih=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],DC=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(ih));function a1(e,t,s){var c=e.type||"unknown-event";e.currentTarget=s,wv(c,t,void 0,e),e.currentTarget=null}function yM(e,t,s){var c;if(s)for(var p=t.length-1;p>=0;p--){var g=t[p],E=g.instance,I=g.currentTarget,j=g.listener;if(E!==c&&e.isPropagationStopped())return;a1(e,j,I),c=E}else for(var P=0;P<t.length;P++){var B=t[P],te=B.instance,K=B.currentTarget,ce=B.listener;if(te!==c&&e.isPropagationStopped())return;a1(e,ce,K),c=te}}function i1(e,t){for(var s=(t&zc)!==0,c=0;c<e.length;c++){var p=e[c],g=p.event,E=p.listeners;yM(g,E,s)}sC()}function bM(e,t,s,c,p){var g=Tn(s),E=[];gM(E,e,c,s,g,t),i1(E,t)}function Jn(e,t){DC.has(e)||v('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,c=ZL(t),p=EM(e,s);c.has(p)||(o1(t,e,Bc,s),c.add(p))}function kC(e,t,s){DC.has(e)&&!t&&v('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;t&&(c|=zc),o1(s,e,c,t)}var qg="_reactListening"+Math.random().toString(36).slice(2);function oh(e){if(!e[qg]){e[qg]=!0,Ve.forEach(function(s){s!=="selectionchange"&&(DC.has(s)||kC(s,!1,e),kC(s,!0,e))});var t=e.nodeType===$a?e:e.ownerDocument;t!==null&&(t[qg]||(t[qg]=!0,kC("selectionchange",!1,t)))}}function o1(e,t,s,c,p){var g=Cr(e,t,s),E=void 0;$c&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(E=!0),e=e,c?E!==void 0?Hd(e,t,g,E):Wo(e,t,g):E!==void 0?Xv(e,t,g,E):Uu(e,t,g)}function s1(e,t){return e===t||e.nodeType===Qn&&e.parentNode===t}function MC(e,t,s,c,p){var g=c;if(!(t&od)&&!(t&Bc)){var E=p;if(c!==null){var I=c;e:for(;;){if(I===null)return;var j=I.tag;if(j===T||j===A){var P=I.stateNode.containerInfo;if(s1(P,E))break;if(j===A)for(var B=I.return;B!==null;){var te=B.tag;if(te===T||te===A){var K=B.stateNode.containerInfo;if(s1(K,E))return}B=B.return}for(;P!==null;){var ce=Ef(P);if(ce===null)return;var de=ce.tag;if(de===N||de===O){I=g=ce;continue e}P=P.parentNode}}I=I.return}}}Hc(function(){return bM(e,t,s,g)})}function sh(e,t,s){return{instance:e,listener:t,currentTarget:s}}function CM(e,t,s,c,p,g){for(var E=t!==null?t+"Capture":null,I=c?E:t,j=[],P=e,B=null;P!==null;){var te=P,K=te.stateNode,ce=te.tag;if(ce===N&&K!==null&&(B=K,I!==null)){var de=hl(P,I);de!=null&&j.push(sh(P,de,B))}if(p)break;P=P.return}return j}function Qg(e,t){for(var s=t+"Capture",c=[],p=e;p!==null;){var g=p,E=g.stateNode,I=g.tag;if(I===N&&E!==null){var j=E,P=hl(p,s);P!=null&&c.unshift(sh(p,P,j));var B=hl(p,t);B!=null&&c.push(sh(p,B,j))}p=p.return}return c}function ip(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==N);return e||null}function xM(e,t){for(var s=e,c=t,p=0,g=s;g;g=ip(g))p++;for(var E=0,I=c;I;I=ip(I))E++;for(;p-E>0;)s=ip(s),p--;for(;E-p>0;)c=ip(c),E--;for(var j=p;j--;){if(s===c||c!==null&&s===c.alternate)return s;s=ip(s),c=ip(c)}return null}function l1(e,t,s,c,p){for(var g=t._reactName,E=[],I=s;I!==null&&I!==c;){var j=I,P=j.alternate,B=j.stateNode,te=j.tag;if(P!==null&&P===c)break;if(te===N&&B!==null){var K=B;if(p){var ce=hl(I,g);ce!=null&&E.unshift(sh(I,ce,K))}else if(!p){var de=hl(I,g);de!=null&&E.push(sh(I,de,K))}}I=I.return}E.length!==0&&e.push({event:t,listeners:E})}function SM(e,t,s,c,p){var g=c&&p?xM(c,p):null;c!==null&&l1(e,t,c,g,!1),p!==null&&s!==null&&l1(e,s,p,g,!0)}function EM(e,t){return e+"__"+(t?"capture":"bubble")}var Si=!1,lh="dangerouslySetInnerHTML",Kg="suppressContentEditableWarning",Xu="suppressHydrationWarning",u1="autoFocus",xf="children",Sf="style",ey="__html",LC,ty,uh,c1,ny,f1,d1;LC={dialog:!0,webview:!0},ty=function(e,t){mu(e,t),tg(e,t),ws(e,t,{registrationNameDependencies:et,possibleRegistrationNames:tt})},f1=It&&!document.documentMode,uh=function(e,t,s){if(!Si){var c=ry(s),p=ry(t);p!==c&&(Si=!0,v("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(p),JSON.stringify(c)))}},c1=function(e){if(!Si){Si=!0;var t=[];e.forEach(function(s){t.push(s)}),v("Extra attributes from the server: %s",t)}},ny=function(e,t){t===!1?v("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):v("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},d1=function(e,t){var s=e.namespaceURI===Mo?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=t,s.innerHTML};var wM=/\r\n?/g,RM=/\u0000|\uFFFD/g;function ry(e){Rr(e);var t=typeof e=="string"?e:""+e;return t.replace(wM,`
|
|
125
|
+
`).replace(RM,"")}function ay(e,t,s,c){var p=ry(t),g=ry(e);if(g!==p&&(c&&(Si||(Si=!0,v('Text content did not match. Server: "%s" Client: "%s"',g,p))),s&&ne))throw new Error("Text content does not match server-rendered HTML.")}function p1(e){return e.nodeType===$a?e:e.ownerDocument}function TM(){}function iy(e){e.onclick=TM}function IM(e,t,s,c,p){for(var g in c)if(c.hasOwnProperty(g)){var E=c[g];if(g===Sf)E&&Object.freeze(E),Zm(t,E);else if(g===lh){var I=E?E[ey]:void 0;I!=null&&Bm(t,I)}else if(g===xf)if(typeof E=="string"){var j=e!=="textarea"||E!=="";j&&kc(t,E)}else typeof E=="number"&&kc(t,""+E);else g===Kg||g===Xu||g===u1||(et.hasOwnProperty(g)?E!=null&&(typeof E!="function"&&ny(g,E),g==="onScroll"&&Jn("scroll",t)):E!=null&&Io(t,g,E,p))}}function NM(e,t,s,c){for(var p=0;p<t.length;p+=2){var g=t[p],E=t[p+1];g===Sf?Zm(e,E):g===lh?Bm(e,E):g===xf?kc(e,E):Io(e,g,E,c)}}function _M(e,t,s,c){var p,g=p1(s),E,I=c;if(I===Mo&&(I=ov(e)),I===Mo){if(p=dl(e,t),!p&&e!==e.toLowerCase()&&v("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var j=g.createElement("div");j.innerHTML="<script><\/script>";var P=j.firstChild;E=j.removeChild(P)}else if(typeof t.is=="string")E=g.createElement(e,{is:t.is});else if(E=g.createElement(e),e==="select"){var B=E;t.multiple?B.multiple=!0:t.size&&(B.size=t.size)}}else E=g.createElementNS(I,e);return I===Mo&&!p&&Object.prototype.toString.call(E)==="[object HTMLUnknownElement]"&&!pt.call(LC,e)&&(LC[e]=!0,v("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 OM(e,t){return p1(t).createTextNode(e)}function AM(e,t,s,c){var p=dl(t,s);ty(t,s);var g;switch(t){case"dialog":Jn("cancel",e),Jn("close",e),g=s;break;case"iframe":case"object":case"embed":Jn("load",e),g=s;break;case"video":case"audio":for(var E=0;E<ih.length;E++)Jn(ih[E],e);g=s;break;case"source":Jn("error",e),g=s;break;case"img":case"image":case"link":Jn("error",e),Jn("load",e),g=s;break;case"details":Jn("toggle",e),g=s;break;case"input":X(e,s),g=D(e,s),Jn("invalid",e);break;case"option":hn(e,s),g=s;break;case"select":Dc(e,s),g=jc(e,s),Jn("invalid",e);break;case"textarea":Fm(e,s),g=iv(e,s),Jn("invalid",e);break;default:g=s}switch(Pc(t,g),IM(t,e,c,g,p),t){case"input":jo(e),Be(e,s,!1);break;case"textarea":jo(e),Kf(e);break;case"option":mn(e,s);break;case"select":av(e,s);break;default:typeof g.onClick=="function"&&iy(e);break}}function jM(e,t,s,c,p){ty(t,c);var g=null,E,I;switch(t){case"input":E=D(e,s),I=D(e,c),g=[];break;case"select":E=jc(e,s),I=jc(e,c),g=[];break;case"textarea":E=iv(e,s),I=iv(e,c),g=[];break;default:E=s,I=c,typeof E.onClick!="function"&&typeof I.onClick=="function"&&iy(e);break}Pc(t,I);var j,P,B=null;for(j in E)if(!(I.hasOwnProperty(j)||!E.hasOwnProperty(j)||E[j]==null))if(j===Sf){var te=E[j];for(P in te)te.hasOwnProperty(P)&&(B||(B={}),B[P]="")}else j===lh||j===xf||j===Kg||j===Xu||j===u1||(et.hasOwnProperty(j)?g||(g=[]):(g=g||[]).push(j,null));for(j in I){var K=I[j],ce=E!=null?E[j]:void 0;if(!(!I.hasOwnProperty(j)||K===ce||K==null&&ce==null))if(j===Sf)if(K&&Object.freeze(K),ce){for(P in ce)ce.hasOwnProperty(P)&&(!K||!K.hasOwnProperty(P))&&(B||(B={}),B[P]="");for(P in K)K.hasOwnProperty(P)&&ce[P]!==K[P]&&(B||(B={}),B[P]=K[P])}else B||(g||(g=[]),g.push(j,B)),B=K;else if(j===lh){var de=K?K[ey]:void 0,be=ce?ce[ey]:void 0;de!=null&&be!==de&&(g=g||[]).push(j,de)}else j===xf?(typeof K=="string"||typeof K=="number")&&(g=g||[]).push(j,""+K):j===Kg||j===Xu||(et.hasOwnProperty(j)?(K!=null&&(typeof K!="function"&&ny(j,K),j==="onScroll"&&Jn("scroll",e)),!g&&ce!==K&&(g=[])):(g=g||[]).push(j,K))}return B&&(Jm(B,I[Sf]),(g=g||[]).push(Sf,B)),g}function DM(e,t,s,c,p){s==="input"&&p.type==="radio"&&p.name!=null&&ue(e,p);var g=dl(s,c),E=dl(s,p);switch(NM(e,t,g,E),s){case"input":me(e,p);break;case"textarea":Vm(e,p);break;case"select":Y0(e,p);break}}function kM(e){{var t=e.toLowerCase();return rd.hasOwnProperty(t)&&rd[t]||null}}function MM(e,t,s,c,p,g,E){var I,j;switch(I=dl(t,s),ty(t,s),t){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 P=0;P<ih.length;P++)Jn(ih[P],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":X(e,s),Jn("invalid",e);break;case"option":hn(e,s);break;case"select":Dc(e,s),Jn("invalid",e);break;case"textarea":Fm(e,s),Jn("invalid",e);break}Pc(t,s);{j=new Set;for(var B=e.attributes,te=0;te<B.length;te++){var K=B[te].name.toLowerCase();switch(K){case"value":break;case"checked":break;case"selected":break;default:j.add(B[te].name)}}}var ce=null;for(var de in s)if(s.hasOwnProperty(de)){var be=s[de];if(de===xf)typeof be=="string"?e.textContent!==be&&(s[Xu]!==!0&&ay(e.textContent,be,g,E),ce=[xf,be]):typeof be=="number"&&e.textContent!==""+be&&(s[Xu]!==!0&&ay(e.textContent,be,g,E),ce=[xf,""+be]);else if(et.hasOwnProperty(de))be!=null&&(typeof be!="function"&&ny(de,be),de==="onScroll"&&Jn("scroll",e));else if(E&&typeof I=="boolean"){var qe=void 0,gt=I&&Se?null:Ir(de);if(s[Xu]!==!0){if(!(de===Kg||de===Xu||de==="value"||de==="checked"||de==="selected")){if(de===lh){var ct=e.innerHTML,Wt=be?be[ey]:void 0;if(Wt!=null){var Ut=d1(e,Wt);Ut!==ct&&uh(de,ct,Ut)}}else if(de===Sf){if(j.delete(de),f1){var ie=aC(be);qe=e.getAttribute("style"),ie!==qe&&uh(de,qe,ie)}}else if(I&&!Se)j.delete(de.toLowerCase()),qe=ii(e,de,be),be!==qe&&uh(de,qe,be);else if(!Gn(de,gt,I)&&!pn(de,be,gt,I)){var Ce=!1;if(gt!==null)j.delete(gt.attributeName),qe=Li(e,de,be,gt);else{var oe=c;if(oe===Mo&&(oe=ov(t)),oe===Mo)j.delete(de.toLowerCase());else{var Fe=kM(de);Fe!==null&&Fe!==de&&(Ce=!0,j.delete(Fe)),j.delete(de)}qe=ii(e,de,be)}var Qe=Se;!Qe&&be!==qe&&!Ce&&uh(de,qe,be)}}}}}switch(E&&j.size>0&&s[Xu]!==!0&&c1(j),t){case"input":jo(e),Be(e,s,!0);break;case"textarea":jo(e),Kf(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&iy(e);break}return ce}function LM(e,t,s){var c=e.nodeValue!==t;return c}function PC(e,t){{if(Si)return;Si=!0,v("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function FC(e,t){{if(Si)return;Si=!0,v('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function VC(e,t,s){{if(Si)return;Si=!0,v("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function BC(e,t){{if(t===""||Si)return;Si=!0,v('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function PM(e,t,s){switch(t){case"input":it(e,s);return;case"textarea":Z0(e,s);return;case"select":Lm(e,s);return}}var ch=function(){},fh=function(){};{var FM=["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"],v1=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],VM=v1.concat(["button"]),BM=["dd","dt","li","option","optgroup","p","rp","rt"],h1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};fh=function(e,t){var s=Lt({},e||h1),c={tag:t};return v1.indexOf(t)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),VM.indexOf(t)!==-1&&(s.pTagInButtonScope=null),FM.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=c,t==="form"&&(s.formTag=c),t==="a"&&(s.aTagInScope=c),t==="button"&&(s.buttonTagInScope=c),t==="nobr"&&(s.nobrTagInScope=c),t==="p"&&(s.pTagInButtonScope=c),t==="li"&&(s.listItemTagAutoclosing=c),(t==="dd"||t==="dt")&&(s.dlItemTagAutoclosing=c),s};var zM=function(e,t){switch(t){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 t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return BM.indexOf(t)===-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 t==null}return!0},UM=function(e,t){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 t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},m1={};ch=function(e,t,s){s=s||h1;var c=s.current,p=c&&c.tag;t!=null&&(e!=null&&v("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var g=zM(e,p)?null:c,E=g?null:UM(e,s),I=g||E;if(I){var j=I.tag,P=!!g+"|"+e+"|"+j;if(!m1[P]){m1[P]=!0;var B=e,te="";if(e==="#text"?/\S/.test(t)?B="Text nodes":(B="Whitespace text nodes",te=" Make sure you don't have any extra whitespace between tags on each line of your source code."):B="<"+e+">",g){var K="";j==="table"&&e==="tr"&&(K+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),v("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",B,j,te,K)}else v("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",B,j)}}}}var oy="suppressHydrationWarning",sy="$",ly="/$",dh="$?",ph="$!",HM="style",zC=null,UC=null;function $M(e){var t,s,c=e.nodeType;switch(c){case $a:case lv:{t=c===$a?"#document":"#fragment";var p=e.documentElement;s=p?p.namespaceURI:sv(null,"");break}default:{var g=c===Qn?e.parentNode:e,E=g.namespaceURI||null;t=g.tagName,s=sv(E,t);break}}{var I=t.toLowerCase(),j=fh(null,I);return{namespace:s,ancestorInfo:j}}}function GM(e,t,s){{var c=e,p=sv(c.namespace,t),g=fh(c.ancestorInfo,t);return{namespace:p,ancestorInfo:g}}}function F8(e){return e}function WM(e){zC=Bu(),UC=oM();var t=null;return Da(!1),t}function XM(e){sM(UC),Da(zC),zC=null,UC=null}function YM(e,t,s,c,p){var g;{var E=c;if(ch(e,null,E.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var I=""+t.children,j=fh(E.ancestorInfo,e);ch(null,I,j)}g=E.namespace}var P=_M(e,t,s,g);return mh(p,P),JC(P,t),P}function ZM(e,t){e.appendChild(t)}function JM(e,t,s,c,p){switch(AM(e,t,s,c),t){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function qM(e,t,s,c,p,g){{var E=g;if(typeof c.children!=typeof s.children&&(typeof c.children=="string"||typeof c.children=="number")){var I=""+c.children,j=fh(E.ancestorInfo,t);ch(null,I,j)}}return jM(e,t,s,c)}function HC(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}function QM(e,t,s,c){{var p=s;ch(null,e,p.ancestorInfo)}var g=OM(e,t);return mh(c,g),g}function KM(){var e=window.event;return e===void 0?co:Ud(e.type)}var $C=typeof setTimeout=="function"?setTimeout:void 0,eL=typeof clearTimeout=="function"?clearTimeout:void 0,GC=-1,g1=typeof Promise=="function"?Promise:void 0,tL=typeof queueMicrotask=="function"?queueMicrotask:typeof g1<"u"?function(e){return g1.resolve(null).then(e).catch(nL)}:$C;function nL(e){setTimeout(function(){throw e})}function rL(e,t,s,c){switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function aL(e,t,s,c,p,g){DM(e,t,s,c,p),JC(e,p)}function y1(e){kc(e,"")}function iL(e,t,s){e.nodeValue=s}function oL(e,t){e.appendChild(t)}function sL(e,t){var s;e.nodeType===Qn?(s=e.parentNode,s.insertBefore(t,e)):(s=e,s.appendChild(t));var c=e._reactRootContainer;c==null&&s.onclick===null&&iy(s)}function lL(e,t,s){e.insertBefore(t,s)}function uL(e,t,s){e.nodeType===Qn?e.parentNode.insertBefore(t,s):e.insertBefore(t,s)}function cL(e,t){e.removeChild(t)}function fL(e,t){e.nodeType===Qn?e.parentNode.removeChild(t):e.removeChild(t)}function WC(e,t){var s=t,c=0;do{var p=s.nextSibling;if(e.removeChild(s),p&&p.nodeType===Qn){var g=p.data;if(g===ly)if(c===0){e.removeChild(p),nr(t);return}else c--;else(g===sy||g===dh||g===ph)&&c++}s=p}while(s);nr(t)}function dL(e,t){e.nodeType===Qn?WC(e.parentNode,t):e.nodeType===Ea&&WC(e,t),nr(e)}function pL(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function vL(e){e.nodeValue=""}function hL(e,t){e=e;var s=t[HM],c=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=Ss("display",c)}function mL(e,t){e.nodeValue=t}function gL(e){e.nodeType===Ea?e.textContent="":e.nodeType===$a&&e.documentElement&&e.removeChild(e.documentElement)}function yL(e,t,s){return e.nodeType!==Ea||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function bL(e,t){return t===""||e.nodeType!==Lo?null:e}function CL(e){return e.nodeType!==Qn?null:e}function b1(e){return e.data===dh}function XC(e){return e.data===ph}function xL(e){var t=e.nextSibling&&e.nextSibling.dataset,s,c,p;return t&&(s=t.dgst,c=t.msg,p=t.stck),{message:c,digest:s,stack:p}}function SL(e,t){e._reactRetry=t}function uy(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===Ea||t===Lo)break;if(t===Qn){var s=e.data;if(s===sy||s===ph||s===dh)break;if(s===ly)return null}}return e}function vh(e){return uy(e.nextSibling)}function EL(e){return uy(e.firstChild)}function wL(e){return uy(e.firstChild)}function RL(e){return uy(e.nextSibling)}function TL(e,t,s,c,p,g,E){mh(g,e),JC(e,s);var I;{var j=p;I=j.namespace}var P=(g.mode&ut)!==mt;return MM(e,t,s,I,c,P,E)}function IL(e,t,s,c){return mh(s,e),s.mode&ut,LM(e,t)}function NL(e,t){mh(t,e)}function _L(e){for(var t=e.nextSibling,s=0;t;){if(t.nodeType===Qn){var c=t.data;if(c===ly){if(s===0)return vh(t);s--}else(c===sy||c===ph||c===dh)&&s++}t=t.nextSibling}return null}function C1(e){for(var t=e.previousSibling,s=0;t;){if(t.nodeType===Qn){var c=t.data;if(c===sy||c===ph||c===dh){if(s===0)return t;s--}else c===ly&&s++}t=t.previousSibling}return null}function OL(e){nr(e)}function AL(e){nr(e)}function jL(e){return e!=="head"&&e!=="body"}function DL(e,t,s,c){var p=!0;ay(t.nodeValue,s,c,p)}function kL(e,t,s,c,p,g){if(t[oy]!==!0){var E=!0;ay(c.nodeValue,p,g,E)}}function ML(e,t){t.nodeType===Ea?PC(e,t):t.nodeType===Qn||FC(e,t)}function LL(e,t){{var s=e.parentNode;s!==null&&(t.nodeType===Ea?PC(s,t):t.nodeType===Qn||FC(s,t))}}function PL(e,t,s,c,p){(p||t[oy]!==!0)&&(c.nodeType===Ea?PC(s,c):c.nodeType===Qn||FC(s,c))}function FL(e,t,s){VC(e,t)}function VL(e,t){BC(e,t)}function BL(e,t,s){{var c=e.parentNode;c!==null&&VC(c,t)}}function zL(e,t){{var s=e.parentNode;s!==null&&BC(s,t)}}function UL(e,t,s,c,p,g){(g||t[oy]!==!0)&&VC(s,c)}function HL(e,t,s,c,p){(p||t[oy]!==!0)&&BC(s,c)}function $L(e){v("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function GL(e){oh(e)}var op=Math.random().toString(36).slice(2),sp="__reactFiber$"+op,YC="__reactProps$"+op,hh="__reactContainer$"+op,ZC="__reactEvents$"+op,WL="__reactListeners$"+op,XL="__reactHandles$"+op;function YL(e){delete e[sp],delete e[YC],delete e[ZC],delete e[WL],delete e[XL]}function mh(e,t){t[sp]=e}function cy(e,t){t[hh]=e}function x1(e){e[hh]=null}function gh(e){return!!e[hh]}function Ef(e){var t=e[sp];if(t)return t;for(var s=e.parentNode;s;){if(t=s[hh]||s[sp],t){var c=t.alternate;if(t.child!==null||c!==null&&c.child!==null)for(var p=C1(e);p!==null;){var g=p[sp];if(g)return g;p=C1(p)}return t}e=s,s=e.parentNode}return null}function Yu(e){var t=e[sp]||e[hh];return t&&(t.tag===N||t.tag===O||t.tag===H||t.tag===T)?t:null}function lp(e){if(e.tag===N||e.tag===O)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function fy(e){return e[YC]||null}function JC(e,t){e[YC]=t}function ZL(e){var t=e[ZC];return t===void 0&&(t=e[ZC]=new Set),t}var S1={},E1=u.ReactDebugCurrentFrame;function dy(e){if(e){var t=e._owner,s=Ht(e.type,e._source,t?t.type:null);E1.setExtraStackFrame(s)}else E1.setExtraStackFrame(null)}function Zo(e,t,s,c,p){{var g=Function.call.bind(pt);for(var E in e)if(g(e,E)){var I=void 0;try{if(typeof e[E]!="function"){var j=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 j.name="Invariant Violation",j}I=e[E](t,E,c,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){I=P}I&&!(I instanceof Error)&&(dy(p),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).",c||"React class",s,E,typeof I),dy(null)),I instanceof Error&&!(I.message in S1)&&(S1[I.message]=!0,dy(p),v("Failed %s type: %s",s,I.message),dy(null))}}}var qC=[],py;py=[];var Ml=-1;function Zu(e){return{current:e}}function ka(e,t){if(Ml<0){v("Unexpected pop.");return}t!==py[Ml]&&v("Unexpected Fiber popped."),e.current=qC[Ml],qC[Ml]=null,py[Ml]=null,Ml--}function Ma(e,t,s){Ml++,qC[Ml]=e.current,py[Ml]=s,e.current=t}var QC;QC={};var $i={};Object.freeze($i);var Ll=Zu($i),zs=Zu(!1),KC=$i;function up(e,t,s){return s&&Us(t)?KC:Ll.current}function w1(e,t,s){{var c=e.stateNode;c.__reactInternalMemoizedUnmaskedChildContext=t,c.__reactInternalMemoizedMaskedChildContext=s}}function cp(e,t){{var s=e.type,c=s.contextTypes;if(!c)return $i;var p=e.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===t)return p.__reactInternalMemoizedMaskedChildContext;var g={};for(var E in c)g[E]=t[E];{var I=Nt(e)||"Unknown";Zo(c,g,"context",I)}return p&&w1(e,t,g),g}}function vy(){return zs.current}function Us(e){{var t=e.childContextTypes;return t!=null}}function hy(e){ka(zs,e),ka(Ll,e)}function ex(e){ka(zs,e),ka(Ll,e)}function R1(e,t,s){{if(Ll.current!==$i)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Ma(Ll,t,e),Ma(zs,s,e)}}function T1(e,t,s){{var c=e.stateNode,p=t.childContextTypes;if(typeof c.getChildContext!="function"){{var g=Nt(e)||"Unknown";QC[g]||(QC[g]=!0,v("%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.",g,g))}return s}var E=c.getChildContext();for(var I in E)if(!(I in p))throw new Error((Nt(e)||"Unknown")+'.getChildContext(): key "'+I+'" is not defined in childContextTypes.');{var j=Nt(e)||"Unknown";Zo(p,E,"child context",j)}return Lt({},s,E)}}function my(e){{var t=e.stateNode,s=t&&t.__reactInternalMemoizedMergedChildContext||$i;return KC=Ll.current,Ma(Ll,s,e),Ma(zs,zs.current,e),!0}}function I1(e,t,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=T1(e,t,KC);c.__reactInternalMemoizedMergedChildContext=p,ka(zs,e),ka(Ll,e),Ma(Ll,p,e),Ma(zs,s,e)}else ka(zs,e),Ma(zs,s,e)}}function JL(e){{if(!Xa(e)||e.tag!==x)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 t=e;do{switch(t.tag){case T:return t.stateNode.context;case x:{var s=t.type;if(Us(s))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Ju=0,gy=1,Pl=null,tx=!1,nx=!1;function N1(e){Pl===null?Pl=[e]:Pl.push(e)}function qL(e){tx=!0,N1(e)}function _1(){tx&&qu()}function qu(){if(!nx&&Pl!==null){nx=!0;var e=0,t=gi();try{var s=!0,c=Pl;for(tr(ur);e<c.length;e++){var p=c[e];do p=p(s);while(p!==null)}Pl=null,tx=!1}catch(g){throw Pl!==null&&(Pl=Pl.slice(e+1)),Nv(Na,qu),g}finally{tr(t),nx=!1}}return null}var fp=[],dp=0,yy=null,by=0,ho=[],mo=0,wf=null,Fl=1,Vl="";function QL(e){return Tf(),(e.flags&dg)!==ht}function KL(e){return Tf(),by}function eP(){var e=Vl,t=Fl,s=t&~tP(t);return s.toString(32)+e}function Rf(e,t){Tf(),fp[dp++]=by,fp[dp++]=yy,yy=e,by=t}function O1(e,t,s){Tf(),ho[mo++]=Fl,ho[mo++]=Vl,ho[mo++]=wf,wf=e;var c=Fl,p=Vl,g=Cy(c)-1,E=c&~(1<<g),I=s+1,j=Cy(t)+g;if(j>30){var P=g-g%5,B=(1<<P)-1,te=(E&B).toString(32),K=E>>P,ce=g-P,de=Cy(t)+ce,be=I<<ce,qe=be|K,gt=te+p;Fl=1<<de|qe,Vl=gt}else{var ct=I<<g,Wt=ct|E,Ut=p;Fl=1<<j|Wt,Vl=Ut}}function rx(e){Tf();var t=e.return;if(t!==null){var s=1,c=0;Rf(e,s),O1(e,s,c)}}function Cy(e){return 32-Kc(e)}function tP(e){return 1<<Cy(e)-1}function ax(e){for(;e===yy;)yy=fp[--dp],fp[dp]=null,by=fp[--dp],fp[dp]=null;for(;e===wf;)wf=ho[--mo],ho[mo]=null,Vl=ho[--mo],ho[mo]=null,Fl=ho[--mo],ho[mo]=null}function nP(){return Tf(),wf!==null?{id:Fl,overflow:Vl}:null}function rP(e,t){Tf(),ho[mo++]=Fl,ho[mo++]=Vl,ho[mo++]=wf,Fl=t.id,Vl=t.overflow,wf=e}function Tf(){oa()||v("Expected to be hydrating. This is a bug in React. Please file an issue.")}var ia=null,go=null,Jo=!1,If=!1,Qu=null;function aP(){Jo&&v("We should not be hydrating here. This is a bug in React. Please file a bug.")}function A1(){If=!0}function iP(){return If}function oP(e){var t=e.stateNode.containerInfo;return go=wL(t),ia=e,Jo=!0,Qu=null,If=!1,!0}function sP(e,t,s){return go=RL(t),ia=e,Jo=!0,Qu=null,If=!1,s!==null&&rP(e,s),!0}function j1(e,t){switch(e.tag){case T:{ML(e.stateNode.containerInfo,t);break}case N:{var s=(e.mode&ut)!==mt;PL(e.type,e.memoizedProps,e.stateNode,t,s);break}case H:{var c=e.memoizedState;c.dehydrated!==null&&LL(c.dehydrated,t);break}}}function D1(e,t){j1(e,t);var s=cB();s.stateNode=t,s.return=e;var c=e.deletions;c===null?(e.deletions=[s],e.flags|=tn):c.push(s)}function ix(e,t){{if(If)return;switch(e.tag){case T:{var s=e.stateNode.containerInfo;switch(t.tag){case N:var c=t.type;t.pendingProps,FL(s,c);break;case O:var p=t.pendingProps;VL(s,p);break}break}case N:{var g=e.type,E=e.memoizedProps,I=e.stateNode;switch(t.tag){case N:{var j=t.type,P=t.pendingProps,B=(e.mode&ut)!==mt;UL(g,E,I,j,P,B);break}case O:{var te=t.pendingProps,K=(e.mode&ut)!==mt;HL(g,E,I,te,K);break}}break}case H:{var ce=e.memoizedState,de=ce.dehydrated;if(de!==null)switch(t.tag){case N:var be=t.type;t.pendingProps,BL(de,be);break;case O:var qe=t.pendingProps;zL(de,qe);break}break}default:return}}}function k1(e,t){t.flags=t.flags&~io|In,ix(e,t)}function M1(e,t){switch(e.tag){case N:{var s=e.type;e.pendingProps;var c=yL(t,s);return c!==null?(e.stateNode=c,ia=e,go=EL(c),!0):!1}case O:{var p=e.pendingProps,g=bL(t,p);return g!==null?(e.stateNode=g,ia=e,go=null,!0):!1}case H:{var E=CL(t);if(E!==null){var I={dehydrated:E,treeContext:nP(),retryLane:Ja};e.memoizedState=I;var j=fB(E);return j.return=e,e.child=j,ia=e,go=null,!0}return!1}default:return!1}}function ox(e){return(e.mode&ut)!==mt&&(e.flags&Ot)===ht}function sx(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function lx(e){if(Jo){var t=go;if(!t){ox(e)&&(ix(ia,e),sx()),k1(ia,e),Jo=!1,ia=e;return}var s=t;if(!M1(e,t)){ox(e)&&(ix(ia,e),sx()),t=vh(s);var c=ia;if(!t||!M1(e,t)){k1(ia,e),Jo=!1,ia=e;return}D1(c,s)}}}function lP(e,t,s){var c=e.stateNode,p=!If,g=TL(c,e.type,e.memoizedProps,t,s,e,p);return e.updateQueue=g,g!==null}function uP(e){var t=e.stateNode,s=e.memoizedProps,c=IL(t,s,e);if(c){var p=ia;if(p!==null)switch(p.tag){case T:{var g=p.stateNode.containerInfo,E=(p.mode&ut)!==mt;DL(g,t,s,E);break}case N:{var I=p.type,j=p.memoizedProps,P=p.stateNode,B=(p.mode&ut)!==mt;kL(I,j,P,t,s,B);break}}}return c}function cP(e){var t=e.memoizedState,s=t!==null?t.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.");NL(s,e)}function fP(e){var t=e.memoizedState,s=t!==null?t.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 _L(s)}function L1(e){for(var t=e.return;t!==null&&t.tag!==N&&t.tag!==T&&t.tag!==H;)t=t.return;ia=t}function xy(e){if(e!==ia)return!1;if(!Jo)return L1(e),Jo=!0,!1;if(e.tag!==T&&(e.tag!==N||jL(e.type)&&!HC(e.type,e.memoizedProps))){var t=go;if(t)if(ox(e))P1(e),sx();else for(;t;)D1(e,t),t=vh(t)}return L1(e),e.tag===H?go=fP(e):go=ia?vh(e.stateNode):null,!0}function dP(){return Jo&&go!==null}function P1(e){for(var t=go;t;)j1(e,t),t=vh(t)}function pp(){ia=null,go=null,Jo=!1,If=!1}function F1(){Qu!==null&&(jI(Qu),Qu=null)}function oa(){return Jo}function ux(e){Qu===null?Qu=[e]:Qu.push(e)}var pP=u.ReactCurrentBatchConfig,vP=null;function hP(){return pP.transition}var qo={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var mP=function(e){for(var t=null,s=e;s!==null;)s.mode&Kn&&(t=s),s=s.return;return t},Nf=function(e){var t=[];return e.forEach(function(s){t.push(s)}),t.sort().join(", ")},yh=[],bh=[],Ch=[],xh=[],Sh=[],Eh=[],_f=new Set;qo.recordUnsafeLifecycleWarnings=function(e,t){_f.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&yh.push(e),e.mode&Kn&&typeof t.UNSAFE_componentWillMount=="function"&&bh.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Ch.push(e),e.mode&Kn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&xh.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Sh.push(e),e.mode&Kn&&typeof t.UNSAFE_componentWillUpdate=="function"&&Eh.push(e))},qo.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;yh.length>0&&(yh.forEach(function(K){e.add(Nt(K)||"Component"),_f.add(K.type)}),yh=[]);var t=new Set;bh.length>0&&(bh.forEach(function(K){t.add(Nt(K)||"Component"),_f.add(K.type)}),bh=[]);var s=new Set;Ch.length>0&&(Ch.forEach(function(K){s.add(Nt(K)||"Component"),_f.add(K.type)}),Ch=[]);var c=new Set;xh.length>0&&(xh.forEach(function(K){c.add(Nt(K)||"Component"),_f.add(K.type)}),xh=[]);var p=new Set;Sh.length>0&&(Sh.forEach(function(K){p.add(Nt(K)||"Component"),_f.add(K.type)}),Sh=[]);var g=new Set;if(Eh.length>0&&(Eh.forEach(function(K){g.add(Nt(K)||"Component"),_f.add(K.type)}),Eh=[]),t.size>0){var E=Nf(t);v(`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
126
|
|
|
127
127
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
128
128
|
|
|
@@ -151,13 +151,13 @@ Please update the following components: %s`,B)}if(p.size>0){var te=Nf(p);h(`comp
|
|
|
151
151
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
152
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
153
|
|
|
154
|
-
Please update the following components: %s`,te)}};var Sy=new Map,
|
|
154
|
+
Please update the following components: %s`,te)}};var Sy=new Map,V1=new Set;qo.recordLegacyContextWarning=function(e,t){var s=mP(e);if(s===null){v("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(!V1.has(e.type)){var c=Sy.get(s);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(c===void 0&&(c=[],Sy.set(s,c)),c.push(e))}},qo.flushLegacyContextWarning=function(){Sy.forEach(function(e,t){if(e.length!==0){var s=e[0],c=new Set;e.forEach(function(g){c.add(Nt(g)||"Component"),V1.add(g.type)});var p=Nf(c);try{Xn(s),v(`Legacy context API has been detected within a strict-mode tree.
|
|
155
155
|
|
|
156
156
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
157
157
|
|
|
158
158
|
Please update the following components: %s
|
|
159
159
|
|
|
160
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,p)}finally{Fn()}}})},qo.discardPendingWarnings=function(){gh=[],yh=[],bh=[],Ch=[],xh=[],Sh=[],Sy=new Map}}function Qo(e,t){if(e&&e.defaultProps){var s=Lt({},t),c=e.defaultProps;for(var p in c)s[p]===void 0&&(s[p]=c[p]);return s}return t}var fx=Zu(null),dx;dx={};var Ey=null,vp=null,px=null,wy=!1;function Ry(){Ey=null,vp=null,px=null,wy=!1}function z1(){wy=!0}function U1(){wy=!1}function H1(e,t,s){Ma(fx,t._currentValue,e),t._currentValue=s,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==dx&&v("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=dx}function vx(e,t){var s=fx.current;ka(fx,t),e._currentValue=s}function hx(e,t,s){for(var c=e;c!==null;){var p=c.alternate;if(Il(c.childLanes,t)?p!==null&&!Il(p.childLanes,t)&&(p.childLanes=Dt(p.childLanes,t)):(c.childLanes=Dt(c.childLanes,t),p!==null&&(p.childLanes=Dt(p.childLanes,t))),c===s)break;c=c.return}c!==s&&v("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 gP(e,t,s){yP(e,t,s)}function yP(e,t,s){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var p=void 0,g=c.dependencies;if(g!==null){p=c.child;for(var E=g.firstContext;E!==null;){if(E.context===t){if(c.tag===x){var I=Ou(s),j=Bl(Mn,I);j.tag=Iy;var P=c.updateQueue;if(P!==null){var B=P.shared,te=B.pending;te===null?j.next=j:(j.next=te.next,te.next=j),B.pending=j}}c.lanes=Dt(c.lanes,s);var K=c.alternate;K!==null&&(K.lanes=Dt(K.lanes,s)),hx(c.return,s,e),g.lanes=Dt(g.lanes,s);break}E=E.next}}else if(c.tag===F)p=c.type===e.type?null:c.child;else if(c.tag===ge){var ce=c.return;if(ce===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ce.lanes=Dt(ce.lanes,s);var de=ce.alternate;de!==null&&(de.lanes=Dt(de.lanes,s)),hx(ce,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 be=p.sibling;if(be!==null){be.return=p.return,p=be;break}p=p.return}c=p}}function hp(e,t){Ey=e,vp=null,px=null;var s=e.dependencies;if(s!==null){var c=s.firstContext;c!==null&&(ja(s.lanes,t)&&Lh(),s.firstContext=null)}}function jr(e){wy&&v("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 t=e._currentValue;if(px!==e){var s={context:e,memoizedValue:t,next:null};if(vp===null){if(Ey===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().");vp=s,Ey.dependencies={lanes:Ee,firstContext:s}}else vp=vp.next=s}return t}var Of=null;function mx(e){Of===null?Of=[e]:Of.push(e)}function bP(){if(Of!==null){for(var e=0;e<Of.length;e++){var t=Of[e],s=t.interleaved;if(s!==null){t.interleaved=null;var c=s.next,p=t.pending;if(p!==null){var g=p.next;p.next=c,s.next=g}t.pending=s}}Of=null}}function $1(e,t,s,c){var p=t.interleaved;return p===null?(s.next=s,mx(t)):(s.next=p.next,p.next=s),t.interleaved=s,Ty(e,c)}function CP(e,t,s,c){var p=t.interleaved;p===null?(s.next=s,mx(t)):(s.next=p.next,p.next=s),t.interleaved=s}function xP(e,t,s,c){var p=t.interleaved;return p===null?(s.next=s,mx(t)):(s.next=p.next,p.next=s),t.interleaved=s,Ty(e,c)}function Ei(e,t){return Ty(e,t)}var SP=Ty;function Ty(e,t){e.lanes=Dt(e.lanes,t);var s=e.alternate;s!==null&&(s.lanes=Dt(s.lanes,t)),s===null&&(e.flags&(In|io))!==ht&&GI(e);for(var c=e,p=e.return;p!==null;)p.childLanes=Dt(p.childLanes,t),s=p.alternate,s!==null?s.childLanes=Dt(s.childLanes,t):(p.flags&(In|io))!==ht&&GI(e),c=p,p=p.return;if(c.tag===T){var g=c.stateNode;return g}else return null}var G1=0,W1=1,Iy=2,gx=3,Ny=!1,yx,_y;yx=!1,_y=null;function bx(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Ee},effects:null};e.updateQueue=t}function X1(e,t){var s=t.updateQueue,c=e.updateQueue;if(s===c){var p={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects};t.updateQueue=p}}function Bl(e,t){var s={eventTime:e,lane:t,tag:G1,payload:null,callback:null,next:null};return s}function Ku(e,t,s){var c=e.updateQueue;if(c===null)return null;var p=c.shared;if(_y===p&&!yx&&(v("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."),yx=!0),SV()){var g=p.pending;return g===null?t.next=t:(t.next=g.next,g.next=t),p.pending=t,SP(e,s)}else return xP(e,p,t,s)}function Oy(e,t,s){var c=t.updateQueue;if(c!==null){var p=c.shared;if(Fv(s)){var g=p.lanes;g=Dd(g,e.pendingLanes);var E=Dt(g,s);p.lanes=E,Vv(e,E)}}}function Cx(e,t){var s=e.updateQueue,c=e.alternate;if(c!==null){var p=c.updateQueue;if(s===p){var g=null,E=null,I=s.firstBaseUpdate;if(I!==null){var j=I;do{var P={eventTime:j.eventTime,lane:j.lane,tag:j.tag,payload:j.payload,callback:j.callback,next:null};E===null?g=E=P:(E.next=P,E=P),j=j.next}while(j!==null);E===null?g=E=t:(E.next=t,E=t)}else g=E=t;s={baseState:p.baseState,firstBaseUpdate:g,lastBaseUpdate:E,shared:p.shared,effects:p.effects},e.updateQueue=s;return}}var B=s.lastBaseUpdate;B===null?s.firstBaseUpdate=t:B.next=t,s.lastBaseUpdate=t}function EP(e,t,s,c,p,g){switch(s.tag){case W1:{var E=s.payload;if(typeof E=="function"){z1();var I=E.call(g,c,p);{if(e.mode&Kn){kn(!0);try{E.call(g,c,p)}finally{kn(!1)}}U1()}return I}return E}case gx:e.flags=e.flags&~Lr|Ot;case G1:{var j=s.payload,P;if(typeof j=="function"){z1(),P=j.call(g,c,p);{if(e.mode&Kn){kn(!0);try{j.call(g,c,p)}finally{kn(!1)}}U1()}}else P=j;return P==null?c:Lt({},c,P)}case Iy:return Ny=!0,c}return c}function Ay(e,t,s,c){var p=e.updateQueue;Ny=!1,_y=p.shared;var g=p.firstBaseUpdate,E=p.lastBaseUpdate,I=p.shared.pending;if(I!==null){p.shared.pending=null;var j=I,P=j.next;j.next=null,E===null?g=P:E.next=P,E=j;var B=e.alternate;if(B!==null){var te=B.updateQueue,K=te.lastBaseUpdate;K!==E&&(K===null?te.firstBaseUpdate=P:K.next=P,te.lastBaseUpdate=j)}}if(g!==null){var ce=p.baseState,de=Ee,be=null,qe=null,gt=null,ct=g;do{var Wt=ct.lane,Ut=ct.eventTime;if(Il(c,Wt)){if(gt!==null){var Ce={eventTime:Ut,lane:sr,tag:ct.tag,payload:ct.payload,callback:ct.callback,next:null};gt=gt.next=Ce}ce=EP(e,p,ct,ce,t,s);var oe=ct.callback;if(oe!==null&&ct.lane!==sr){e.flags|=Nr;var Fe=p.effects;Fe===null?p.effects=[ct]:Fe.push(ct)}}else{var ie={eventTime:Ut,lane:Wt,tag:ct.tag,payload:ct.payload,callback:ct.callback,next:null};gt===null?(qe=gt=ie,be=ce):gt=gt.next=ie,de=Dt(de,Wt)}if(ct=ct.next,ct===null){if(I=p.shared.pending,I===null)break;var Qe=I,Xe=Qe.next;Qe.next=null,ct=Xe,p.lastBaseUpdate=Qe,p.shared.pending=null}}while(!0);gt===null&&(be=ce),p.baseState=be,p.firstBaseUpdate=qe,p.lastBaseUpdate=gt;var Tt=p.shared.interleaved;if(Tt!==null){var jt=Tt;do de=Dt(de,jt.lane),jt=jt.next;while(jt!==Tt)}else g===null&&(p.shared.lanes=Ee);Yh(de),e.lanes=de,e.memoizedState=ce}_y=null}function wP(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function Y1(){Ny=!1}function jy(){return Ny}function Z1(e,t,s){var c=t.effects;if(t.effects=null,c!==null)for(var p=0;p<c.length;p++){var g=c[p],E=g.callback;E!==null&&(g.callback=null,wP(E,s))}}var xx={},J1=new r.Component().refs,Sx,Ex,wx,Rx,Tx,q1,Dy,Ix,Nx,_x;{Sx=new Set,Ex=new Set,wx=new Set,Rx=new Set,Ix=new Set,Tx=new Set,Nx=new Set,_x=new Set;var Q1=new Set;Dy=function(e,t){if(!(e===null||typeof e=="function")){var s=t+"_"+e;Q1.has(s)||(Q1.add(s),v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},q1=function(e,t){if(t===void 0){var s=Yt(e)||"Component";Tx.has(s)||(Tx.add(s),v("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(xx,"_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(xx)}function Ox(e,t,s,c){var p=e.memoizedState,g=s(c,p);{if(e.mode&Kn){kn(!0);try{g=s(c,p)}finally{kn(!1)}}q1(t,g)}var E=g==null?p:Lt({},p,g);if(e.memoizedState=E,e.lanes===Ee){var I=e.updateQueue;I.baseState=E}}var Ax={isMounted:Ya,enqueueSetState:function(e,t,s){var c=ao(e),p=Ka(),g=sc(c),E=Bl(p,g);E.payload=t,s!=null&&(Dy(s,"setState"),E.callback=s);var I=Ku(c,E,g);I!==null&&(Wr(I,c,g,p),Oy(I,c,g)),gd(c,g)},enqueueReplaceState:function(e,t,s){var c=ao(e),p=Ka(),g=sc(c),E=Bl(p,g);E.tag=W1,E.payload=t,s!=null&&(Dy(s,"replaceState"),E.callback=s);var I=Ku(c,E,g);I!==null&&(Wr(I,c,g,p),Oy(I,c,g)),gd(c,g)},enqueueForceUpdate:function(e,t){var s=ao(e),c=Ka(),p=sc(s),g=Bl(c,p);g.tag=Iy,t!=null&&(Dy(t,"forceUpdate"),g.callback=t);var E=Ku(s,g,p);E!==null&&(Wr(E,s,p,c),Oy(E,s,p)),Tu(s,p)}};function K1(e,t,s,c,p,g,E){var I=e.stateNode;if(typeof I.shouldComponentUpdate=="function"){var j=I.shouldComponentUpdate(c,g,E);{if(e.mode&Kn){kn(!0);try{j=I.shouldComponentUpdate(c,g,E)}finally{kn(!1)}}j===void 0&&v("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Yt(t)||"Component")}return j}return t.prototype&&t.prototype.isPureReactComponent?!St(s,c)||!St(p,g):!0}function RP(e,t,s){var c=e.stateNode;{var p=Yt(t)||"Component",g=c.render;g||(t.prototype&&typeof t.prototype.render=="function"?v("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",p):v("%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&&v("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&&v("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&&v("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",p),c.contextType&&v("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",p),c.contextTypes&&v("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",p),t.contextType&&t.contextTypes&&!Nx.has(t)&&(Nx.add(t),v("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",p)),typeof c.componentShouldUpdate=="function"&&v("%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),t.prototype&&t.prototype.isPureReactComponent&&typeof c.shouldComponentUpdate<"u"&&v("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Yt(t)||"A pure component"),typeof c.componentDidUnmount=="function"&&v("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",p),typeof c.componentDidReceiveProps=="function"&&v("%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"&&v("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",p),typeof c.UNSAFE_componentWillRecieveProps=="function"&&v("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",p);var E=c.props!==s;c.props!==void 0&&E&&v("%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&&v("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"&&!wx.has(t)&&(wx.add(t),v("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Yt(t))),typeof c.getDerivedStateFromProps=="function"&&v("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof c.getDerivedStateFromError=="function"&&v("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof t.getSnapshotBeforeUpdate=="function"&&v("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",p);var I=c.state;I&&(typeof I!="object"||Zt(I))&&v("%s.state: must be set to an object or null",p),typeof c.getChildContext=="function"&&typeof t.childContextTypes!="object"&&v("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",p)}}function eT(e,t){t.updater=Ax,e.stateNode=t,ud(t,e),t._reactInternalInstance=xx}function tT(e,t,s){var c=!1,p=$i,g=$i,E=t.contextType;if("contextType"in t){var I=E===null||E!==void 0&&E.$$typeof===He&&E._context===void 0;if(!I&&!_x.has(t)){_x.add(t);var j="";E===void 0?j=" 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"?j=" However, it is set to a "+typeof E+".":E.$$typeof===ke?j=" Did you accidentally pass the Context.Provider instead?":E._context!==void 0?j=" Did you accidentally pass the Context.Consumer instead?":j=" However, it is set to an object with keys {"+Object.keys(E).join(", ")+"}.",v("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Yt(t)||"Component",j)}}if(typeof E=="object"&&E!==null)g=jr(E);else{p=up(e,t,!0);var P=t.contextTypes;c=P!=null,g=c?cp(e,p):$i}var B=new t(s,g);if(e.mode&Kn){kn(!0);try{B=new t(s,g)}finally{kn(!1)}}var te=e.memoizedState=B.state!==null&&B.state!==void 0?B.state:null;eT(e,B);{if(typeof t.getDerivedStateFromProps=="function"&&te===null){var K=Yt(t)||"Component";Ex.has(K)||(Ex.add(K),v("`%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,B.state===null?"null":"undefined",K))}if(typeof t.getDerivedStateFromProps=="function"||typeof B.getSnapshotBeforeUpdate=="function"){var ce=null,de=null,be=null;if(typeof B.componentWillMount=="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?ce="componentWillMount":typeof B.UNSAFE_componentWillMount=="function"&&(ce="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps=="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?de="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps=="function"&&(de="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate=="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?be="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate=="function"&&(be="UNSAFE_componentWillUpdate"),ce!==null||de!==null||be!==null){var qe=Yt(t)||"Component",gt=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Rx.has(qe)||(Rx.add(qe),v(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
160
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,p)}finally{Fn()}}})},qo.discardPendingWarnings=function(){yh=[],bh=[],Ch=[],xh=[],Sh=[],Eh=[],Sy=new Map}}function Qo(e,t){if(e&&e.defaultProps){var s=Lt({},t),c=e.defaultProps;for(var p in c)s[p]===void 0&&(s[p]=c[p]);return s}return t}var cx=Zu(null),fx;fx={};var Ey=null,vp=null,dx=null,wy=!1;function Ry(){Ey=null,vp=null,dx=null,wy=!1}function B1(){wy=!0}function z1(){wy=!1}function U1(e,t,s){Ma(cx,t._currentValue,e),t._currentValue=s,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==fx&&v("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=fx}function px(e,t){var s=cx.current;ka(cx,t),e._currentValue=s}function vx(e,t,s){for(var c=e;c!==null;){var p=c.alternate;if(Il(c.childLanes,t)?p!==null&&!Il(p.childLanes,t)&&(p.childLanes=Dt(p.childLanes,t)):(c.childLanes=Dt(c.childLanes,t),p!==null&&(p.childLanes=Dt(p.childLanes,t))),c===s)break;c=c.return}c!==s&&v("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 gP(e,t,s){yP(e,t,s)}function yP(e,t,s){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var p=void 0,g=c.dependencies;if(g!==null){p=c.child;for(var E=g.firstContext;E!==null;){if(E.context===t){if(c.tag===x){var I=Ou(s),j=Bl(Mn,I);j.tag=Iy;var P=c.updateQueue;if(P!==null){var B=P.shared,te=B.pending;te===null?j.next=j:(j.next=te.next,te.next=j),B.pending=j}}c.lanes=Dt(c.lanes,s);var K=c.alternate;K!==null&&(K.lanes=Dt(K.lanes,s)),vx(c.return,s,e),g.lanes=Dt(g.lanes,s);break}E=E.next}}else if(c.tag===F)p=c.type===e.type?null:c.child;else if(c.tag===ge){var ce=c.return;if(ce===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ce.lanes=Dt(ce.lanes,s);var de=ce.alternate;de!==null&&(de.lanes=Dt(de.lanes,s)),vx(ce,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 be=p.sibling;if(be!==null){be.return=p.return,p=be;break}p=p.return}c=p}}function hp(e,t){Ey=e,vp=null,dx=null;var s=e.dependencies;if(s!==null){var c=s.firstContext;c!==null&&(ja(s.lanes,t)&&Ph(),s.firstContext=null)}}function jr(e){wy&&v("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 t=e._currentValue;if(dx!==e){var s={context:e,memoizedValue:t,next:null};if(vp===null){if(Ey===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().");vp=s,Ey.dependencies={lanes:Ee,firstContext:s}}else vp=vp.next=s}return t}var Of=null;function hx(e){Of===null?Of=[e]:Of.push(e)}function bP(){if(Of!==null){for(var e=0;e<Of.length;e++){var t=Of[e],s=t.interleaved;if(s!==null){t.interleaved=null;var c=s.next,p=t.pending;if(p!==null){var g=p.next;p.next=c,s.next=g}t.pending=s}}Of=null}}function H1(e,t,s,c){var p=t.interleaved;return p===null?(s.next=s,hx(t)):(s.next=p.next,p.next=s),t.interleaved=s,Ty(e,c)}function CP(e,t,s,c){var p=t.interleaved;p===null?(s.next=s,hx(t)):(s.next=p.next,p.next=s),t.interleaved=s}function xP(e,t,s,c){var p=t.interleaved;return p===null?(s.next=s,hx(t)):(s.next=p.next,p.next=s),t.interleaved=s,Ty(e,c)}function Ei(e,t){return Ty(e,t)}var SP=Ty;function Ty(e,t){e.lanes=Dt(e.lanes,t);var s=e.alternate;s!==null&&(s.lanes=Dt(s.lanes,t)),s===null&&(e.flags&(In|io))!==ht&&$I(e);for(var c=e,p=e.return;p!==null;)p.childLanes=Dt(p.childLanes,t),s=p.alternate,s!==null?s.childLanes=Dt(s.childLanes,t):(p.flags&(In|io))!==ht&&$I(e),c=p,p=p.return;if(c.tag===T){var g=c.stateNode;return g}else return null}var $1=0,G1=1,Iy=2,mx=3,Ny=!1,gx,_y;gx=!1,_y=null;function yx(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Ee},effects:null};e.updateQueue=t}function W1(e,t){var s=t.updateQueue,c=e.updateQueue;if(s===c){var p={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects};t.updateQueue=p}}function Bl(e,t){var s={eventTime:e,lane:t,tag:$1,payload:null,callback:null,next:null};return s}function Ku(e,t,s){var c=e.updateQueue;if(c===null)return null;var p=c.shared;if(_y===p&&!gx&&(v("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."),gx=!0),SV()){var g=p.pending;return g===null?t.next=t:(t.next=g.next,g.next=t),p.pending=t,SP(e,s)}else return xP(e,p,t,s)}function Oy(e,t,s){var c=t.updateQueue;if(c!==null){var p=c.shared;if(Vv(s)){var g=p.lanes;g=Dd(g,e.pendingLanes);var E=Dt(g,s);p.lanes=E,Bv(e,E)}}}function bx(e,t){var s=e.updateQueue,c=e.alternate;if(c!==null){var p=c.updateQueue;if(s===p){var g=null,E=null,I=s.firstBaseUpdate;if(I!==null){var j=I;do{var P={eventTime:j.eventTime,lane:j.lane,tag:j.tag,payload:j.payload,callback:j.callback,next:null};E===null?g=E=P:(E.next=P,E=P),j=j.next}while(j!==null);E===null?g=E=t:(E.next=t,E=t)}else g=E=t;s={baseState:p.baseState,firstBaseUpdate:g,lastBaseUpdate:E,shared:p.shared,effects:p.effects},e.updateQueue=s;return}}var B=s.lastBaseUpdate;B===null?s.firstBaseUpdate=t:B.next=t,s.lastBaseUpdate=t}function EP(e,t,s,c,p,g){switch(s.tag){case G1:{var E=s.payload;if(typeof E=="function"){B1();var I=E.call(g,c,p);{if(e.mode&Kn){kn(!0);try{E.call(g,c,p)}finally{kn(!1)}}z1()}return I}return E}case mx:e.flags=e.flags&~Lr|Ot;case $1:{var j=s.payload,P;if(typeof j=="function"){B1(),P=j.call(g,c,p);{if(e.mode&Kn){kn(!0);try{j.call(g,c,p)}finally{kn(!1)}}z1()}}else P=j;return P==null?c:Lt({},c,P)}case Iy:return Ny=!0,c}return c}function Ay(e,t,s,c){var p=e.updateQueue;Ny=!1,_y=p.shared;var g=p.firstBaseUpdate,E=p.lastBaseUpdate,I=p.shared.pending;if(I!==null){p.shared.pending=null;var j=I,P=j.next;j.next=null,E===null?g=P:E.next=P,E=j;var B=e.alternate;if(B!==null){var te=B.updateQueue,K=te.lastBaseUpdate;K!==E&&(K===null?te.firstBaseUpdate=P:K.next=P,te.lastBaseUpdate=j)}}if(g!==null){var ce=p.baseState,de=Ee,be=null,qe=null,gt=null,ct=g;do{var Wt=ct.lane,Ut=ct.eventTime;if(Il(c,Wt)){if(gt!==null){var Ce={eventTime:Ut,lane:sr,tag:ct.tag,payload:ct.payload,callback:ct.callback,next:null};gt=gt.next=Ce}ce=EP(e,p,ct,ce,t,s);var oe=ct.callback;if(oe!==null&&ct.lane!==sr){e.flags|=Nr;var Fe=p.effects;Fe===null?p.effects=[ct]:Fe.push(ct)}}else{var ie={eventTime:Ut,lane:Wt,tag:ct.tag,payload:ct.payload,callback:ct.callback,next:null};gt===null?(qe=gt=ie,be=ce):gt=gt.next=ie,de=Dt(de,Wt)}if(ct=ct.next,ct===null){if(I=p.shared.pending,I===null)break;var Qe=I,Xe=Qe.next;Qe.next=null,ct=Xe,p.lastBaseUpdate=Qe,p.shared.pending=null}}while(!0);gt===null&&(be=ce),p.baseState=be,p.firstBaseUpdate=qe,p.lastBaseUpdate=gt;var Tt=p.shared.interleaved;if(Tt!==null){var jt=Tt;do de=Dt(de,jt.lane),jt=jt.next;while(jt!==Tt)}else g===null&&(p.shared.lanes=Ee);Zh(de),e.lanes=de,e.memoizedState=ce}_y=null}function wP(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function X1(){Ny=!1}function jy(){return Ny}function Y1(e,t,s){var c=t.effects;if(t.effects=null,c!==null)for(var p=0;p<c.length;p++){var g=c[p],E=g.callback;E!==null&&(g.callback=null,wP(E,s))}}var Cx={},Z1=new r.Component().refs,xx,Sx,Ex,wx,Rx,J1,Dy,Tx,Ix,Nx;{xx=new Set,Sx=new Set,Ex=new Set,wx=new Set,Tx=new Set,Rx=new Set,Ix=new Set,Nx=new Set;var q1=new Set;Dy=function(e,t){if(!(e===null||typeof e=="function")){var s=t+"_"+e;q1.has(s)||(q1.add(s),v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},J1=function(e,t){if(t===void 0){var s=Yt(e)||"Component";Rx.has(s)||(Rx.add(s),v("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(Cx,"_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(Cx)}function _x(e,t,s,c){var p=e.memoizedState,g=s(c,p);{if(e.mode&Kn){kn(!0);try{g=s(c,p)}finally{kn(!1)}}J1(t,g)}var E=g==null?p:Lt({},p,g);if(e.memoizedState=E,e.lanes===Ee){var I=e.updateQueue;I.baseState=E}}var Ox={isMounted:Ya,enqueueSetState:function(e,t,s){var c=ao(e),p=Ka(),g=sc(c),E=Bl(p,g);E.payload=t,s!=null&&(Dy(s,"setState"),E.callback=s);var I=Ku(c,E,g);I!==null&&(Wr(I,c,g,p),Oy(I,c,g)),gd(c,g)},enqueueReplaceState:function(e,t,s){var c=ao(e),p=Ka(),g=sc(c),E=Bl(p,g);E.tag=G1,E.payload=t,s!=null&&(Dy(s,"replaceState"),E.callback=s);var I=Ku(c,E,g);I!==null&&(Wr(I,c,g,p),Oy(I,c,g)),gd(c,g)},enqueueForceUpdate:function(e,t){var s=ao(e),c=Ka(),p=sc(s),g=Bl(c,p);g.tag=Iy,t!=null&&(Dy(t,"forceUpdate"),g.callback=t);var E=Ku(s,g,p);E!==null&&(Wr(E,s,p,c),Oy(E,s,p)),Tu(s,p)}};function Q1(e,t,s,c,p,g,E){var I=e.stateNode;if(typeof I.shouldComponentUpdate=="function"){var j=I.shouldComponentUpdate(c,g,E);{if(e.mode&Kn){kn(!0);try{j=I.shouldComponentUpdate(c,g,E)}finally{kn(!1)}}j===void 0&&v("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Yt(t)||"Component")}return j}return t.prototype&&t.prototype.isPureReactComponent?!St(s,c)||!St(p,g):!0}function RP(e,t,s){var c=e.stateNode;{var p=Yt(t)||"Component",g=c.render;g||(t.prototype&&typeof t.prototype.render=="function"?v("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",p):v("%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&&v("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&&v("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&&v("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",p),c.contextType&&v("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",p),c.contextTypes&&v("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",p),t.contextType&&t.contextTypes&&!Ix.has(t)&&(Ix.add(t),v("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",p)),typeof c.componentShouldUpdate=="function"&&v("%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),t.prototype&&t.prototype.isPureReactComponent&&typeof c.shouldComponentUpdate<"u"&&v("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Yt(t)||"A pure component"),typeof c.componentDidUnmount=="function"&&v("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",p),typeof c.componentDidReceiveProps=="function"&&v("%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"&&v("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",p),typeof c.UNSAFE_componentWillRecieveProps=="function"&&v("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",p);var E=c.props!==s;c.props!==void 0&&E&&v("%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&&v("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"&&!Ex.has(t)&&(Ex.add(t),v("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Yt(t))),typeof c.getDerivedStateFromProps=="function"&&v("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof c.getDerivedStateFromError=="function"&&v("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof t.getSnapshotBeforeUpdate=="function"&&v("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",p);var I=c.state;I&&(typeof I!="object"||Zt(I))&&v("%s.state: must be set to an object or null",p),typeof c.getChildContext=="function"&&typeof t.childContextTypes!="object"&&v("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",p)}}function K1(e,t){t.updater=Ox,e.stateNode=t,ud(t,e),t._reactInternalInstance=Cx}function eT(e,t,s){var c=!1,p=$i,g=$i,E=t.contextType;if("contextType"in t){var I=E===null||E!==void 0&&E.$$typeof===He&&E._context===void 0;if(!I&&!Nx.has(t)){Nx.add(t);var j="";E===void 0?j=" 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"?j=" However, it is set to a "+typeof E+".":E.$$typeof===ke?j=" Did you accidentally pass the Context.Provider instead?":E._context!==void 0?j=" Did you accidentally pass the Context.Consumer instead?":j=" However, it is set to an object with keys {"+Object.keys(E).join(", ")+"}.",v("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Yt(t)||"Component",j)}}if(typeof E=="object"&&E!==null)g=jr(E);else{p=up(e,t,!0);var P=t.contextTypes;c=P!=null,g=c?cp(e,p):$i}var B=new t(s,g);if(e.mode&Kn){kn(!0);try{B=new t(s,g)}finally{kn(!1)}}var te=e.memoizedState=B.state!==null&&B.state!==void 0?B.state:null;K1(e,B);{if(typeof t.getDerivedStateFromProps=="function"&&te===null){var K=Yt(t)||"Component";Sx.has(K)||(Sx.add(K),v("`%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,B.state===null?"null":"undefined",K))}if(typeof t.getDerivedStateFromProps=="function"||typeof B.getSnapshotBeforeUpdate=="function"){var ce=null,de=null,be=null;if(typeof B.componentWillMount=="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?ce="componentWillMount":typeof B.UNSAFE_componentWillMount=="function"&&(ce="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps=="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?de="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps=="function"&&(de="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate=="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?be="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate=="function"&&(be="UNSAFE_componentWillUpdate"),ce!==null||de!==null||be!==null){var qe=Yt(t)||"Component",gt=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";wx.has(qe)||(wx.add(qe),v(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
161
161
|
|
|
162
162
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
163
163
|
|
|
@@ -165,11 +165,11 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
165
165
|
https://reactjs.org/link/unsafe-component-lifecycles`,qe,gt,ce!==null?`
|
|
166
166
|
`+ce:"",de!==null?`
|
|
167
167
|
`+de:"",be!==null?`
|
|
168
|
-
`+be:""))}}}return c&&
|
|
168
|
+
`+be:""))}}}return c&&w1(e,p,g),B}function TP(e,t){var s=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),s!==t.state&&(v("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Nt(e)||"Component"),Ox.enqueueReplaceState(t,t.state,null))}function tT(e,t,s,c){var p=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,c),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,c),t.state!==p){{var g=Nt(e)||"Component";xx.has(g)||(xx.add(g),v("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",g))}Ox.enqueueReplaceState(t,t.state,null)}}function Ax(e,t,s,c){RP(e,t,s);var p=e.stateNode;p.props=s,p.state=e.memoizedState,p.refs=Z1,yx(e);var g=t.contextType;if(typeof g=="object"&&g!==null)p.context=jr(g);else{var E=up(e,t,!0);p.context=cp(e,E)}{if(p.state===s){var I=Yt(t)||"Component";Tx.has(I)||(Tx.add(I),v("%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.",I))}e.mode&Kn&&qo.recordLegacyContextWarning(e,p),qo.recordUnsafeLifecycleWarnings(e,p)}p.state=e.memoizedState;var j=t.getDerivedStateFromProps;if(typeof j=="function"&&(_x(e,t,j,s),p.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(TP(e,p),Ay(e,s,p,c),p.state=e.memoizedState),typeof p.componentDidMount=="function"){var P=st;P|=fi,(e.mode&hi)!==mt&&(P|=di),e.flags|=P}}function IP(e,t,s,c){var p=e.stateNode,g=e.memoizedProps;p.props=g;var E=p.context,I=t.contextType,j=$i;if(typeof I=="object"&&I!==null)j=jr(I);else{var P=up(e,t,!0);j=cp(e,P)}var B=t.getDerivedStateFromProps,te=typeof B=="function"||typeof p.getSnapshotBeforeUpdate=="function";!te&&(typeof p.UNSAFE_componentWillReceiveProps=="function"||typeof p.componentWillReceiveProps=="function")&&(g!==s||E!==j)&&tT(e,p,s,j),X1();var K=e.memoizedState,ce=p.state=K;if(Ay(e,s,p,c),ce=e.memoizedState,g===s&&K===ce&&!vy()&&!jy()){if(typeof p.componentDidMount=="function"){var de=st;de|=fi,(e.mode&hi)!==mt&&(de|=di),e.flags|=de}return!1}typeof B=="function"&&(_x(e,t,B,s),ce=e.memoizedState);var be=jy()||Q1(e,t,g,s,K,ce,j);if(be){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 qe=st;qe|=fi,(e.mode&hi)!==mt&&(qe|=di),e.flags|=qe}}else{if(typeof p.componentDidMount=="function"){var gt=st;gt|=fi,(e.mode&hi)!==mt&&(gt|=di),e.flags|=gt}e.memoizedProps=s,e.memoizedState=ce}return p.props=s,p.state=ce,p.context=j,be}function NP(e,t,s,c,p){var g=t.stateNode;W1(e,t);var E=t.memoizedProps,I=t.type===t.elementType?E:Qo(t.type,E);g.props=I;var j=t.pendingProps,P=g.context,B=s.contextType,te=$i;if(typeof B=="object"&&B!==null)te=jr(B);else{var K=up(t,s,!0);te=cp(t,K)}var ce=s.getDerivedStateFromProps,de=typeof ce=="function"||typeof g.getSnapshotBeforeUpdate=="function";!de&&(typeof g.UNSAFE_componentWillReceiveProps=="function"||typeof g.componentWillReceiveProps=="function")&&(E!==j||P!==te)&&tT(t,g,c,te),X1();var be=t.memoizedState,qe=g.state=be;if(Ay(t,c,g,p),qe=t.memoizedState,E===j&&be===qe&&!vy()&&!jy()&&!G)return typeof g.componentDidUpdate=="function"&&(E!==e.memoizedProps||be!==e.memoizedState)&&(t.flags|=st),typeof g.getSnapshotBeforeUpdate=="function"&&(E!==e.memoizedProps||be!==e.memoizedState)&&(t.flags|=vr),!1;typeof ce=="function"&&(_x(t,s,ce,c),qe=t.memoizedState);var gt=jy()||Q1(t,s,I,c,be,qe,te)||G;return gt?(!de&&(typeof g.UNSAFE_componentWillUpdate=="function"||typeof g.componentWillUpdate=="function")&&(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,qe,te),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,qe,te)),typeof g.componentDidUpdate=="function"&&(t.flags|=st),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=vr)):(typeof g.componentDidUpdate=="function"&&(E!==e.memoizedProps||be!==e.memoizedState)&&(t.flags|=st),typeof g.getSnapshotBeforeUpdate=="function"&&(E!==e.memoizedProps||be!==e.memoizedState)&&(t.flags|=vr),t.memoizedProps=c,t.memoizedState=qe),g.props=c,g.state=qe,g.context=te,gt}var jx,Dx,kx,Mx,Lx,nT=function(e,t){};jx=!1,Dx=!1,kx={},Mx={},Lx={},nT=function(e,t){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=Nt(t)||"Component";Mx[s]||(Mx[s]=!0,v('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function wh(e,t,s){var c=s.ref;if(c!==null&&typeof c!="function"&&typeof c!="object"){if((e.mode&Kn||Ne)&&!(s._owner&&s._self&&s._owner.stateNode!==s._self)){var p=Nt(e)||"Component";kx[p]||(v('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),kx[p]=!0)}if(s._owner){var g=s._owner,E;if(g){var I=g;if(I.tag!==x)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=I.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 j=E;Cn(c,"ref");var P=""+c;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===P)return t.ref;var B=function(te){var K=j.refs;K===Z1&&(K=j.refs={}),te===null?delete K[P]:K[P]=te};return B._stringRef=P,B}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
169
|
1. You may be adding a ref to a function component
|
|
170
170
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
171
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 ky(e,t){var s=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function My(e){{var t=Nt(e)||"Component";if(Px[t])return;Px[t]=!0,v("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 aT(e){var t=e._payload,s=e._init;return s(t)}function iT(e){function t(ie,Ce){if(e){var oe=ie.deletions;oe===null?(ie.deletions=[Ce],ie.flags|=tn):oe.push(Ce)}}function s(ie,Ce){if(!e)return null;for(var oe=Ce;oe!==null;)t(ie,oe),oe=oe.sibling;return null}function c(ie,Ce){for(var oe=new Map,Fe=Ce;Fe!==null;)Fe.key!==null?oe.set(Fe.key,Fe):oe.set(Fe.index,Fe),Fe=Fe.sibling;return oe}function p(ie,Ce){var oe=Ff(ie,Ce);return oe.index=0,oe.sibling=null,oe}function g(ie,Ce,oe){if(ie.index=oe,!e)return ie.flags|=dg,Ce;var Fe=ie.alternate;if(Fe!==null){var Qe=Fe.index;return Qe<Ce?(ie.flags|=In,Ce):Qe}else return ie.flags|=In,Ce}function E(ie){return e&&ie.alternate===null&&(ie.flags|=In),ie}function I(ie,Ce,oe,Fe){if(Ce===null||Ce.tag!==O){var Qe=cE(oe,ie.mode,Fe);return Qe.return=ie,Qe}else{var Xe=p(Ce,oe);return Xe.return=ie,Xe}}function j(ie,Ce,oe,Fe){var Qe=oe.type;if(Qe===Ha)return B(ie,Ce,oe.props.children,Fe,oe.key);if(Ce!==null&&(Ce.elementType===Qe||ZI(Ce,oe)||typeof Qe=="object"&&Qe!==null&&Qe.$$typeof===vt&&aT(Qe)===Ce.type)){var Xe=p(Ce,oe.props);return Xe.ref=Eh(ie,Ce,oe),Xe.return=ie,Xe._debugSource=oe._source,Xe._debugOwner=oe._owner,Xe}var Tt=uE(oe,ie.mode,Fe);return Tt.ref=Eh(ie,Ce,oe),Tt.return=ie,Tt}function P(ie,Ce,oe,Fe){if(Ce===null||Ce.tag!==A||Ce.stateNode.containerInfo!==oe.containerInfo||Ce.stateNode.implementation!==oe.implementation){var Qe=fE(oe,ie.mode,Fe);return Qe.return=ie,Qe}else{var Xe=p(Ce,oe.children||[]);return Xe.return=ie,Xe}}function B(ie,Ce,oe,Fe,Qe){if(Ce===null||Ce.tag!==_){var Xe=uc(oe,ie.mode,Fe,Qe);return Xe.return=ie,Xe}else{var Tt=p(Ce,oe);return Tt.return=ie,Tt}}function te(ie,Ce,oe){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"){var Fe=cE(""+Ce,ie.mode,oe);return Fe.return=ie,Fe}if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case ga:{var Qe=uE(Ce,ie.mode,oe);return Qe.ref=Eh(ie,null,Ce),Qe.return=ie,Qe}case ya:{var Xe=fE(Ce,ie.mode,oe);return Xe.return=ie,Xe}case vt:{var Tt=Ce._payload,jt=Ce._init;return te(ie,jt(Tt),oe)}}if(Zt(Ce)||Ki(Ce)){var Sn=uc(Ce,ie.mode,oe,null);return Sn.return=ie,Sn}ky(ie,Ce)}return typeof Ce=="function"&&My(ie),null}function K(ie,Ce,oe,Fe){var Qe=Ce!==null?Ce.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number")return Qe!==null?null:I(ie,Ce,""+oe,Fe);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case ga:return oe.key===Qe?j(ie,Ce,oe,Fe):null;case ya:return oe.key===Qe?P(ie,Ce,oe,Fe):null;case vt:{var Xe=oe._payload,Tt=oe._init;return K(ie,Ce,Tt(Xe),Fe)}}if(Zt(oe)||Ki(oe))return Qe!==null?null:B(ie,Ce,oe,Fe,null);ky(ie,oe)}return typeof oe=="function"&&My(ie),null}function ce(ie,Ce,oe,Fe,Qe){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"){var Xe=ie.get(oe)||null;return I(Ce,Xe,""+Fe,Qe)}if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case ga:{var Tt=ie.get(Fe.key===null?oe:Fe.key)||null;return j(Ce,Tt,Fe,Qe)}case ya:{var jt=ie.get(Fe.key===null?oe:Fe.key)||null;return P(Ce,jt,Fe,Qe)}case vt:var Sn=Fe._payload,rn=Fe._init;return ce(ie,Ce,oe,rn(Sn),Qe)}if(Zt(Fe)||Ki(Fe)){var Er=ie.get(oe)||null;return B(Ce,Er,Fe,Qe,null)}ky(Ce,Fe)}return typeof Fe=="function"&&My(Ce),null}function de(ie,Ce,oe){{if(typeof ie!="object"||ie===null)return Ce;switch(ie.$$typeof){case ga:case ya:rT(ie,oe);var Fe=ie.key;if(typeof Fe!="string")break;if(Ce===null){Ce=new Set,Ce.add(Fe);break}if(!Ce.has(Fe)){Ce.add(Fe);break}v("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.",Fe);break;case vt:var Qe=ie._payload,Xe=ie._init;de(Xe(Qe),Ce,oe);break}}return Ce}function be(ie,Ce,oe,Fe){for(var Qe=null,Xe=0;Xe<oe.length;Xe++){var Tt=oe[Xe];Qe=de(Tt,Qe,ie)}for(var jt=null,Sn=null,rn=Ce,Er=0,an=0,mr=null;rn!==null&&an<oe.length;an++){rn.index>an?(mr=rn,rn=null):mr=rn.sibling;var Pa=K(ie,rn,oe[an],Fe);if(Pa===null){rn===null&&(rn=mr);break}e&&rn&&Pa.alternate===null&&t(ie,rn),Er=g(Pa,Er,an),Sn===null?jt=Pa:Sn.sibling=Pa,Sn=Pa,rn=mr}if(an===oe.length){if(s(ie,rn),oa()){var pa=an;Rf(ie,pa)}return jt}if(rn===null){for(;an<oe.length;an++){var Wi=te(ie,oe[an],Fe);Wi!==null&&(Er=g(Wi,Er,an),Sn===null?jt=Wi:Sn.sibling=Wi,Sn=Wi)}if(oa()){var ei=an;Rf(ie,ei)}return jt}for(var ti=c(ie,rn);an<oe.length;an++){var Fa=ce(ti,ie,an,oe[an],Fe);Fa!==null&&(e&&Fa.alternate!==null&&ti.delete(Fa.key===null?an:Fa.key),Er=g(Fa,Er,an),Sn===null?jt=Fa:Sn.sibling=Fa,Sn=Fa)}if(e&&ti.forEach(function(jp){return t(ie,jp)}),oa()){var Wl=an;Rf(ie,Wl)}return jt}function qe(ie,Ce,oe,Fe){var Qe=Ki(oe);if(typeof Qe!="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"&&oe[Symbol.toStringTag]==="Generator"&&(kx||v("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."),kx=!0),oe.entries===Qe&&(Dx||v("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Dx=!0);var Xe=Qe.call(oe);if(Xe)for(var Tt=null,jt=Xe.next();!jt.done;jt=Xe.next()){var Sn=jt.value;Tt=de(Sn,Tt,ie)}}var rn=Qe.call(oe);if(rn==null)throw new Error("An iterable object provided no iterator.");for(var Er=null,an=null,mr=Ce,Pa=0,pa=0,Wi=null,ei=rn.next();mr!==null&&!ei.done;pa++,ei=rn.next()){mr.index>pa?(Wi=mr,mr=null):Wi=mr.sibling;var ti=K(ie,mr,ei.value,Fe);if(ti===null){mr===null&&(mr=Wi);break}e&&mr&&ti.alternate===null&&t(ie,mr),Pa=g(ti,Pa,pa),an===null?Er=ti:an.sibling=ti,an=ti,mr=Wi}if(ei.done){if(s(ie,mr),oa()){var Fa=pa;Rf(ie,Fa)}return Er}if(mr===null){for(;!ei.done;pa++,ei=rn.next()){var Wl=te(ie,ei.value,Fe);Wl!==null&&(Pa=g(Wl,Pa,pa),an===null?Er=Wl:an.sibling=Wl,an=Wl)}if(oa()){var jp=pa;Rf(ie,jp)}return Er}for(var Kh=c(ie,mr);!ei.done;pa++,ei=rn.next()){var Js=ce(Kh,ie,pa,ei.value,Fe);Js!==null&&(e&&Js.alternate!==null&&Kh.delete(Js.key===null?pa:Js.key),Pa=g(Js,Pa,pa),an===null?Er=Js:an.sibling=Js,an=Js)}if(e&&Kh.forEach(function(UB){return t(ie,UB)}),oa()){var zB=pa;Rf(ie,zB)}return Er}function gt(ie,Ce,oe,Fe){if(Ce!==null&&Ce.tag===O){s(ie,Ce.sibling);var Qe=p(Ce,oe);return Qe.return=ie,Qe}s(ie,Ce);var Xe=cE(oe,ie.mode,Fe);return Xe.return=ie,Xe}function ct(ie,Ce,oe,Fe){for(var Qe=oe.key,Xe=Ce;Xe!==null;){if(Xe.key===Qe){var Tt=oe.type;if(Tt===Ha){if(Xe.tag===_){s(ie,Xe.sibling);var jt=p(Xe,oe.props.children);return jt.return=ie,jt._debugSource=oe._source,jt._debugOwner=oe._owner,jt}}else if(Xe.elementType===Tt||ZI(Xe,oe)||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===vt&&aT(Tt)===Xe.type){s(ie,Xe.sibling);var Sn=p(Xe,oe.props);return Sn.ref=Eh(ie,Xe,oe),Sn.return=ie,Sn._debugSource=oe._source,Sn._debugOwner=oe._owner,Sn}s(ie,Xe);break}else t(ie,Xe);Xe=Xe.sibling}if(oe.type===Ha){var rn=uc(oe.props.children,ie.mode,Fe,oe.key);return rn.return=ie,rn}else{var Er=uE(oe,ie.mode,Fe);return Er.ref=Eh(ie,Ce,oe),Er.return=ie,Er}}function Wt(ie,Ce,oe,Fe){for(var Qe=oe.key,Xe=Ce;Xe!==null;){if(Xe.key===Qe)if(Xe.tag===A&&Xe.stateNode.containerInfo===oe.containerInfo&&Xe.stateNode.implementation===oe.implementation){s(ie,Xe.sibling);var Tt=p(Xe,oe.children||[]);return Tt.return=ie,Tt}else{s(ie,Xe);break}else t(ie,Xe);Xe=Xe.sibling}var jt=fE(oe,ie.mode,Fe);return jt.return=ie,jt}function Ut(ie,Ce,oe,Fe){var Qe=typeof oe=="object"&&oe!==null&&oe.type===Ha&&oe.key===null;if(Qe&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case ga:return E(ct(ie,Ce,oe,Fe));case ya:return E(Wt(ie,Ce,oe,Fe));case vt:var Xe=oe._payload,Tt=oe._init;return Ut(ie,Ce,Tt(Xe),Fe)}if(Zt(oe))return be(ie,Ce,oe,Fe);if(Ki(oe))return qe(ie,Ce,oe,Fe);ky(ie,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"?E(gt(ie,Ce,""+oe,Fe)):(typeof oe=="function"&&My(ie),s(ie,Ce))}return Ut}var mp=iT(!0),oT=iT(!1);function _P(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var s=t.child,c=Ff(s,s.pendingProps);for(t.child=c,c.return=t;s.sibling!==null;)s=s.sibling,c=c.sibling=Ff(s,s.pendingProps),c.return=t;c.sibling=null}}function OP(e,t){for(var s=e.child;s!==null;)iB(s,t),s=s.sibling}var wh={},ec=Zu(wh),Rh=Zu(wh),Ly=Zu(wh);function Py(e){if(e===wh)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 sT(){var e=Py(Ly.current);return e}function Fx(e,t){Ma(Ly,t,e),Ma(Rh,e,e),Ma(ec,wh,e);var s=$M(t);ka(ec,e),Ma(ec,s,e)}function gp(e){ka(ec,e),ka(Rh,e),ka(Ly,e)}function Vx(){var e=Py(ec.current);return e}function lT(e){Py(Ly.current);var t=Py(ec.current),s=GM(t,e.type);t!==s&&(Ma(Rh,e,e),Ma(ec,s,e))}function Bx(e){Rh.current===e&&(ka(ec,e),ka(Rh,e))}var AP=0,uT=1,cT=1,Th=2,Ko=Zu(AP);function zx(e,t){return(e&t)!==0}function yp(e){return e&uT}function Ux(e,t){return e&uT|t}function jP(e,t){return e|t}function tc(e,t){Ma(Ko,t,e)}function bp(e){ka(Ko,e)}function DP(e,t){var s=e.memoizedState;return s!==null?s.dehydrated!==null:(e.memoizedProps,!0)}function Fy(e){for(var t=e;t!==null;){if(t.tag===H){var s=t.memoizedState;if(s!==null){var c=s.dehydrated;if(c===null||C1(c)||YC(c))return t}}else if(t.tag===fe&&t.memoizedProps.revealOrder!==void 0){var p=(t.flags&Ot)!==ht;if(p)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;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 wi=0,Vr=1,Hs=2,Br=4,sa=8,Hx=[];function $x(){for(var e=0;e<Hx.length;e++){var t=Hx[e];t._workInProgressVersionPrimary=null}Hx.length=0}function kP(e,t){var s=t._getVersion,c=s(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,c]:e.mutableSourceEagerHydrationData.push(t,c)}var Ze=u.ReactCurrentDispatcher,Ih=u.ReactCurrentBatchConfig,Gx,Cp;Gx=new Set;var Af=Ee,xn=null,zr=null,Ur=null,Vy=!1,Nh=!1,_h=0,MP=0,LP=25,Ie=null,yo=null,nc=-1,Wx=!1;function dn(){{var e=Ie;yo===null?yo=[e]:yo.push(e)}}function $e(){{var e=Ie;yo!==null&&(nc++,yo[nc]!==e&&PP(e))}}function xp(e){e!=null&&!Zt(e)&&v("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ie,typeof e)}function PP(e){{var t=Nt(xn);if(!Gx.has(t)&&(Gx.add(t),yo!==null)){for(var s="",c=30,p=0;p<=nc;p++){for(var g=yo[p],E=p===nc?e:g,I=p+1+". "+g;I.length<c;)I+=" ";I+=E+`
|
|
172
|
+
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return c}function ky(e,t){var s=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function My(e){{var t=Nt(e)||"Component";if(Lx[t])return;Lx[t]=!0,v("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 rT(e){var t=e._payload,s=e._init;return s(t)}function aT(e){function t(ie,Ce){if(e){var oe=ie.deletions;oe===null?(ie.deletions=[Ce],ie.flags|=tn):oe.push(Ce)}}function s(ie,Ce){if(!e)return null;for(var oe=Ce;oe!==null;)t(ie,oe),oe=oe.sibling;return null}function c(ie,Ce){for(var oe=new Map,Fe=Ce;Fe!==null;)Fe.key!==null?oe.set(Fe.key,Fe):oe.set(Fe.index,Fe),Fe=Fe.sibling;return oe}function p(ie,Ce){var oe=Ff(ie,Ce);return oe.index=0,oe.sibling=null,oe}function g(ie,Ce,oe){if(ie.index=oe,!e)return ie.flags|=dg,Ce;var Fe=ie.alternate;if(Fe!==null){var Qe=Fe.index;return Qe<Ce?(ie.flags|=In,Ce):Qe}else return ie.flags|=In,Ce}function E(ie){return e&&ie.alternate===null&&(ie.flags|=In),ie}function I(ie,Ce,oe,Fe){if(Ce===null||Ce.tag!==O){var Qe=uE(oe,ie.mode,Fe);return Qe.return=ie,Qe}else{var Xe=p(Ce,oe);return Xe.return=ie,Xe}}function j(ie,Ce,oe,Fe){var Qe=oe.type;if(Qe===Ha)return B(ie,Ce,oe.props.children,Fe,oe.key);if(Ce!==null&&(Ce.elementType===Qe||YI(Ce,oe)||typeof Qe=="object"&&Qe!==null&&Qe.$$typeof===vt&&rT(Qe)===Ce.type)){var Xe=p(Ce,oe.props);return Xe.ref=wh(ie,Ce,oe),Xe.return=ie,Xe._debugSource=oe._source,Xe._debugOwner=oe._owner,Xe}var Tt=lE(oe,ie.mode,Fe);return Tt.ref=wh(ie,Ce,oe),Tt.return=ie,Tt}function P(ie,Ce,oe,Fe){if(Ce===null||Ce.tag!==A||Ce.stateNode.containerInfo!==oe.containerInfo||Ce.stateNode.implementation!==oe.implementation){var Qe=cE(oe,ie.mode,Fe);return Qe.return=ie,Qe}else{var Xe=p(Ce,oe.children||[]);return Xe.return=ie,Xe}}function B(ie,Ce,oe,Fe,Qe){if(Ce===null||Ce.tag!==_){var Xe=uc(oe,ie.mode,Fe,Qe);return Xe.return=ie,Xe}else{var Tt=p(Ce,oe);return Tt.return=ie,Tt}}function te(ie,Ce,oe){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"){var Fe=uE(""+Ce,ie.mode,oe);return Fe.return=ie,Fe}if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case ga:{var Qe=lE(Ce,ie.mode,oe);return Qe.ref=wh(ie,null,Ce),Qe.return=ie,Qe}case ya:{var Xe=cE(Ce,ie.mode,oe);return Xe.return=ie,Xe}case vt:{var Tt=Ce._payload,jt=Ce._init;return te(ie,jt(Tt),oe)}}if(Zt(Ce)||Ki(Ce)){var Sn=uc(Ce,ie.mode,oe,null);return Sn.return=ie,Sn}ky(ie,Ce)}return typeof Ce=="function"&&My(ie),null}function K(ie,Ce,oe,Fe){var Qe=Ce!==null?Ce.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number")return Qe!==null?null:I(ie,Ce,""+oe,Fe);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case ga:return oe.key===Qe?j(ie,Ce,oe,Fe):null;case ya:return oe.key===Qe?P(ie,Ce,oe,Fe):null;case vt:{var Xe=oe._payload,Tt=oe._init;return K(ie,Ce,Tt(Xe),Fe)}}if(Zt(oe)||Ki(oe))return Qe!==null?null:B(ie,Ce,oe,Fe,null);ky(ie,oe)}return typeof oe=="function"&&My(ie),null}function ce(ie,Ce,oe,Fe,Qe){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"){var Xe=ie.get(oe)||null;return I(Ce,Xe,""+Fe,Qe)}if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case ga:{var Tt=ie.get(Fe.key===null?oe:Fe.key)||null;return j(Ce,Tt,Fe,Qe)}case ya:{var jt=ie.get(Fe.key===null?oe:Fe.key)||null;return P(Ce,jt,Fe,Qe)}case vt:var Sn=Fe._payload,rn=Fe._init;return ce(ie,Ce,oe,rn(Sn),Qe)}if(Zt(Fe)||Ki(Fe)){var Er=ie.get(oe)||null;return B(Ce,Er,Fe,Qe,null)}ky(Ce,Fe)}return typeof Fe=="function"&&My(Ce),null}function de(ie,Ce,oe){{if(typeof ie!="object"||ie===null)return Ce;switch(ie.$$typeof){case ga:case ya:nT(ie,oe);var Fe=ie.key;if(typeof Fe!="string")break;if(Ce===null){Ce=new Set,Ce.add(Fe);break}if(!Ce.has(Fe)){Ce.add(Fe);break}v("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.",Fe);break;case vt:var Qe=ie._payload,Xe=ie._init;de(Xe(Qe),Ce,oe);break}}return Ce}function be(ie,Ce,oe,Fe){for(var Qe=null,Xe=0;Xe<oe.length;Xe++){var Tt=oe[Xe];Qe=de(Tt,Qe,ie)}for(var jt=null,Sn=null,rn=Ce,Er=0,an=0,mr=null;rn!==null&&an<oe.length;an++){rn.index>an?(mr=rn,rn=null):mr=rn.sibling;var Pa=K(ie,rn,oe[an],Fe);if(Pa===null){rn===null&&(rn=mr);break}e&&rn&&Pa.alternate===null&&t(ie,rn),Er=g(Pa,Er,an),Sn===null?jt=Pa:Sn.sibling=Pa,Sn=Pa,rn=mr}if(an===oe.length){if(s(ie,rn),oa()){var pa=an;Rf(ie,pa)}return jt}if(rn===null){for(;an<oe.length;an++){var Wi=te(ie,oe[an],Fe);Wi!==null&&(Er=g(Wi,Er,an),Sn===null?jt=Wi:Sn.sibling=Wi,Sn=Wi)}if(oa()){var ei=an;Rf(ie,ei)}return jt}for(var ti=c(ie,rn);an<oe.length;an++){var Fa=ce(ti,ie,an,oe[an],Fe);Fa!==null&&(e&&Fa.alternate!==null&&ti.delete(Fa.key===null?an:Fa.key),Er=g(Fa,Er,an),Sn===null?jt=Fa:Sn.sibling=Fa,Sn=Fa)}if(e&&ti.forEach(function(jp){return t(ie,jp)}),oa()){var Wl=an;Rf(ie,Wl)}return jt}function qe(ie,Ce,oe,Fe){var Qe=Ki(oe);if(typeof Qe!="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"&&oe[Symbol.toStringTag]==="Generator"&&(Dx||v("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."),Dx=!0),oe.entries===Qe&&(jx||v("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),jx=!0);var Xe=Qe.call(oe);if(Xe)for(var Tt=null,jt=Xe.next();!jt.done;jt=Xe.next()){var Sn=jt.value;Tt=de(Sn,Tt,ie)}}var rn=Qe.call(oe);if(rn==null)throw new Error("An iterable object provided no iterator.");for(var Er=null,an=null,mr=Ce,Pa=0,pa=0,Wi=null,ei=rn.next();mr!==null&&!ei.done;pa++,ei=rn.next()){mr.index>pa?(Wi=mr,mr=null):Wi=mr.sibling;var ti=K(ie,mr,ei.value,Fe);if(ti===null){mr===null&&(mr=Wi);break}e&&mr&&ti.alternate===null&&t(ie,mr),Pa=g(ti,Pa,pa),an===null?Er=ti:an.sibling=ti,an=ti,mr=Wi}if(ei.done){if(s(ie,mr),oa()){var Fa=pa;Rf(ie,Fa)}return Er}if(mr===null){for(;!ei.done;pa++,ei=rn.next()){var Wl=te(ie,ei.value,Fe);Wl!==null&&(Pa=g(Wl,Pa,pa),an===null?Er=Wl:an.sibling=Wl,an=Wl)}if(oa()){var jp=pa;Rf(ie,jp)}return Er}for(var em=c(ie,mr);!ei.done;pa++,ei=rn.next()){var Js=ce(em,ie,pa,ei.value,Fe);Js!==null&&(e&&Js.alternate!==null&&em.delete(Js.key===null?pa:Js.key),Pa=g(Js,Pa,pa),an===null?Er=Js:an.sibling=Js,an=Js)}if(e&&em.forEach(function(UB){return t(ie,UB)}),oa()){var zB=pa;Rf(ie,zB)}return Er}function gt(ie,Ce,oe,Fe){if(Ce!==null&&Ce.tag===O){s(ie,Ce.sibling);var Qe=p(Ce,oe);return Qe.return=ie,Qe}s(ie,Ce);var Xe=uE(oe,ie.mode,Fe);return Xe.return=ie,Xe}function ct(ie,Ce,oe,Fe){for(var Qe=oe.key,Xe=Ce;Xe!==null;){if(Xe.key===Qe){var Tt=oe.type;if(Tt===Ha){if(Xe.tag===_){s(ie,Xe.sibling);var jt=p(Xe,oe.props.children);return jt.return=ie,jt._debugSource=oe._source,jt._debugOwner=oe._owner,jt}}else if(Xe.elementType===Tt||YI(Xe,oe)||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===vt&&rT(Tt)===Xe.type){s(ie,Xe.sibling);var Sn=p(Xe,oe.props);return Sn.ref=wh(ie,Xe,oe),Sn.return=ie,Sn._debugSource=oe._source,Sn._debugOwner=oe._owner,Sn}s(ie,Xe);break}else t(ie,Xe);Xe=Xe.sibling}if(oe.type===Ha){var rn=uc(oe.props.children,ie.mode,Fe,oe.key);return rn.return=ie,rn}else{var Er=lE(oe,ie.mode,Fe);return Er.ref=wh(ie,Ce,oe),Er.return=ie,Er}}function Wt(ie,Ce,oe,Fe){for(var Qe=oe.key,Xe=Ce;Xe!==null;){if(Xe.key===Qe)if(Xe.tag===A&&Xe.stateNode.containerInfo===oe.containerInfo&&Xe.stateNode.implementation===oe.implementation){s(ie,Xe.sibling);var Tt=p(Xe,oe.children||[]);return Tt.return=ie,Tt}else{s(ie,Xe);break}else t(ie,Xe);Xe=Xe.sibling}var jt=cE(oe,ie.mode,Fe);return jt.return=ie,jt}function Ut(ie,Ce,oe,Fe){var Qe=typeof oe=="object"&&oe!==null&&oe.type===Ha&&oe.key===null;if(Qe&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case ga:return E(ct(ie,Ce,oe,Fe));case ya:return E(Wt(ie,Ce,oe,Fe));case vt:var Xe=oe._payload,Tt=oe._init;return Ut(ie,Ce,Tt(Xe),Fe)}if(Zt(oe))return be(ie,Ce,oe,Fe);if(Ki(oe))return qe(ie,Ce,oe,Fe);ky(ie,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"?E(gt(ie,Ce,""+oe,Fe)):(typeof oe=="function"&&My(ie),s(ie,Ce))}return Ut}var mp=aT(!0),iT=aT(!1);function _P(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var s=t.child,c=Ff(s,s.pendingProps);for(t.child=c,c.return=t;s.sibling!==null;)s=s.sibling,c=c.sibling=Ff(s,s.pendingProps),c.return=t;c.sibling=null}}function OP(e,t){for(var s=e.child;s!==null;)iB(s,t),s=s.sibling}var Rh={},ec=Zu(Rh),Th=Zu(Rh),Ly=Zu(Rh);function Py(e){if(e===Rh)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 oT(){var e=Py(Ly.current);return e}function Px(e,t){Ma(Ly,t,e),Ma(Th,e,e),Ma(ec,Rh,e);var s=$M(t);ka(ec,e),Ma(ec,s,e)}function gp(e){ka(ec,e),ka(Th,e),ka(Ly,e)}function Fx(){var e=Py(ec.current);return e}function sT(e){Py(Ly.current);var t=Py(ec.current),s=GM(t,e.type);t!==s&&(Ma(Th,e,e),Ma(ec,s,e))}function Vx(e){Th.current===e&&(ka(ec,e),ka(Th,e))}var AP=0,lT=1,uT=1,Ih=2,Ko=Zu(AP);function Bx(e,t){return(e&t)!==0}function yp(e){return e&lT}function zx(e,t){return e&lT|t}function jP(e,t){return e|t}function tc(e,t){Ma(Ko,t,e)}function bp(e){ka(Ko,e)}function DP(e,t){var s=e.memoizedState;return s!==null?s.dehydrated!==null:(e.memoizedProps,!0)}function Fy(e){for(var t=e;t!==null;){if(t.tag===H){var s=t.memoizedState;if(s!==null){var c=s.dehydrated;if(c===null||b1(c)||XC(c))return t}}else if(t.tag===fe&&t.memoizedProps.revealOrder!==void 0){var p=(t.flags&Ot)!==ht;if(p)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;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 wi=0,Vr=1,Hs=2,Br=4,sa=8,Ux=[];function Hx(){for(var e=0;e<Ux.length;e++){var t=Ux[e];t._workInProgressVersionPrimary=null}Ux.length=0}function kP(e,t){var s=t._getVersion,c=s(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,c]:e.mutableSourceEagerHydrationData.push(t,c)}var Ze=u.ReactCurrentDispatcher,Nh=u.ReactCurrentBatchConfig,$x,Cp;$x=new Set;var Af=Ee,xn=null,zr=null,Ur=null,Vy=!1,_h=!1,Oh=0,MP=0,LP=25,Ie=null,yo=null,nc=-1,Gx=!1;function dn(){{var e=Ie;yo===null?yo=[e]:yo.push(e)}}function $e(){{var e=Ie;yo!==null&&(nc++,yo[nc]!==e&&PP(e))}}function xp(e){e!=null&&!Zt(e)&&v("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ie,typeof e)}function PP(e){{var t=Nt(xn);if(!$x.has(t)&&($x.add(t),yo!==null)){for(var s="",c=30,p=0;p<=nc;p++){for(var g=yo[p],E=p===nc?e:g,I=p+1+". "+g;I.length<c;)I+=" ";I+=E+`
|
|
173
173
|
`,s+=I}v(`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
174
|
|
|
175
175
|
Previous render Next render
|
|
@@ -179,16 +179,16 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}retur
|
|
|
179
179
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
180
180
|
2. You might be breaking the Rules of Hooks
|
|
181
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
|
|
182
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Wx(e,t){if(Gx)return!1;if(t===null)return v("%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.",Ie),!1;e.length!==t.length&&v(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
183
183
|
|
|
184
184
|
Previous: %s
|
|
185
|
-
Incoming: %s`,Ie,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var s=0;s<t.length&&s<e.length;s++)if(!rt(e[s],t[s]))return!1;return!0}function Sp(e,t,s,c,p,g){Af=g,xn=t,yo=e!==null?e._debugHookTypes:null,nc=-1,Wx=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=Ee,e!==null&&e.memoizedState!==null?Ze.current=jT:yo!==null?Ze.current=AT:Ze.current=OT;var E=s(c,p);if(Nh){var I=0;do{if(Nh=!1,_h=0,I>=LP)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");I+=1,Wx=!1,zr=null,Ur=null,t.updateQueue=null,nc=-1,Ze.current=DT,E=s(c,p)}while(Nh)}Ze.current=Qy,t._debugHookTypes=yo;var j=zr!==null&&zr.next!==null;if(Af=Ee,xn=null,zr=null,Ur=null,Ie=null,yo=null,nc=-1,e!==null&&(e.flags&Pr)!==(t.flags&Pr)&&(e.mode&ut)!==mt&&v("Internal React error: Expected static flag was missing. Please notify the React team."),Vy=!1,j)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return E}function Ep(){var e=_h!==0;return _h=0,e}function fT(e,t,s){t.updateQueue=e.updateQueue,(t.mode&hi)!==mt?t.flags&=~(gl|di|wa|st):t.flags&=~(wa|st),e.lanes=lf(e.lanes,s)}function dT(){if(Ze.current=Qy,Vy){for(var e=xn.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vy=!1}Af=Ee,xn=null,zr=null,Ur=null,yo=null,nc=-1,Ie=null,RT=!1,Nh=!1,_h=0}function $s(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ur===null?xn.memoizedState=Ur=e:Ur=Ur.next=e,Ur}function bo(){var e;if(zr===null){var t=xn.alternate;t!==null?e=t.memoizedState:e=null}else e=zr.next;var s;if(Ur===null?s=xn.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?xn.memoizedState=Ur=c:Ur=Ur.next=c}return Ur}function pT(){return{lastEffect:null,stores:null}}function Yx(e,t){return typeof t=="function"?t(e):t}function Zx(e,t,s){var c=$s(),p;s!==void 0?p=s(t):p=t,c.memoizedState=c.baseState=p;var g={pending:null,interleaved:null,lanes:Ee,dispatch:null,lastRenderedReducer:e,lastRenderedState:p};c.queue=g;var E=g.dispatch=zP.bind(null,xn,g);return[c.memoizedState,E]}function Jx(e,t,s){var c=bo(),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 g=zr,E=g.baseQueue,I=p.pending;if(I!==null){if(E!==null){var j=E.next,P=I.next;E.next=P,I.next=j}g.baseQueue!==E&&v("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),g.baseQueue=E=I,p.pending=null}if(E!==null){var B=E.next,te=g.baseState,K=null,ce=null,de=null,be=B;do{var qe=be.lane;if(Il(Af,qe)){if(de!==null){var ct={lane:sr,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null};de=de.next=ct}if(be.hasEagerState)te=be.eagerState;else{var Wt=be.action;te=e(te,Wt)}}else{var gt={lane:qe,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null};de===null?(ce=de=gt,K=te):de=de.next=gt,xn.lanes=Dt(xn.lanes,qe),Yh(qe)}be=be.next}while(be!==null&&be!==B);de===null?K=te:de.next=ce,rt(te,c.memoizedState)||Lh(),c.memoizedState=te,c.baseState=K,c.baseQueue=de,p.lastRenderedState=te}var Ut=p.interleaved;if(Ut!==null){var ie=Ut;do{var Ce=ie.lane;xn.lanes=Dt(xn.lanes,Ce),Yh(Ce),ie=ie.next}while(ie!==Ut)}else E===null&&(p.lanes=Ee);var oe=p.dispatch;return[c.memoizedState,oe]}function qx(e,t,s){var c=bo(),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 g=p.dispatch,E=p.pending,I=c.memoizedState;if(E!==null){p.pending=null;var j=E.next,P=j;do{var B=P.action;I=e(I,B),P=P.next}while(P!==j);rt(I,c.memoizedState)||Lh(),c.memoizedState=I,c.baseQueue===null&&(c.baseState=I),p.lastRenderedState=I}return[I,g]}function V8(e,t,s){}function B8(e,t,s){}function Qx(e,t,s){var c=xn,p=$s(),g,E=oa();if(E){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");g=s(),Cp||g!==s()&&(v("The result of getServerSnapshot should be cached to avoid an infinite loop"),Cp=!0)}else{if(g=t(),!Cp){var I=t();rt(g,I)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),Cp=!0)}var j=mb();if(j===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");sf(j,Af)||vT(c,t,g)}p.memoizedState=g;var P={value:g,getSnapshot:t};return p.queue=P,$y(mT.bind(null,c,P,e),[e]),c.flags|=wa,Oh(Vr|sa,hT.bind(null,c,P,g,t),void 0,null),g}function By(e,t,s){var c=xn,p=bo(),g=t();if(!Cp){var E=t();rt(g,E)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),Cp=!0)}var I=p.memoizedState,j=!rt(I,g);j&&(p.memoizedState=g,Lh());var P=p.queue;if(jh(mT.bind(null,c,P,e),[e]),P.getSnapshot!==t||j||Ur!==null&&Ur.memoizedState.tag&Vr){c.flags|=wa,Oh(Vr|sa,hT.bind(null,c,P,g,t),void 0,null);var B=mb();if(B===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");sf(B,Af)||vT(c,t,g)}return g}function vT(e,t,s){e.flags|=ml;var c={getSnapshot:t,value:s},p=xn.updateQueue;if(p===null)p=pT(),xn.updateQueue=p,p.stores=[c];else{var g=p.stores;g===null?p.stores=[c]:g.push(c)}}function hT(e,t,s,c){t.value=s,t.getSnapshot=c,gT(t)&&yT(e)}function mT(e,t,s){var c=function(){gT(t)&&yT(e)};return s(c)}function gT(e){var t=e.getSnapshot,s=e.value;try{var c=t();return!rt(s,c)}catch{return!0}}function yT(e){var t=Ei(e,bt);t!==null&&Wr(t,e,bt,Mn)}function zy(e){var t=$s();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var s={pending:null,interleaved:null,lanes:Ee,dispatch:null,lastRenderedReducer:Yx,lastRenderedState:e};t.queue=s;var c=s.dispatch=UP.bind(null,xn,s);return[t.memoizedState,c]}function Kx(e){return Jx(Yx)}function eS(e){return qx(Yx)}function Oh(e,t,s,c){var p={tag:e,create:t,destroy:s,deps:c,next:null},g=xn.updateQueue;if(g===null)g=pT(),xn.updateQueue=g,g.lastEffect=p.next=p;else{var E=g.lastEffect;if(E===null)g.lastEffect=p.next=p;else{var I=E.next;E.next=p,p.next=I,g.lastEffect=p}}return p}function tS(e){var t=$s();{var s={current:e};return t.memoizedState=s,s}}function Uy(e){var t=bo();return t.memoizedState}function Ah(e,t,s,c){var p=$s(),g=c===void 0?null:c;xn.flags|=e,p.memoizedState=Oh(Vr|t,s,void 0,g)}function Hy(e,t,s,c){var p=bo(),g=c===void 0?null:c,E=void 0;if(zr!==null){var I=zr.memoizedState;if(E=I.destroy,g!==null){var j=I.deps;if(Xx(g,j)){p.memoizedState=Oh(t,s,E,g);return}}}xn.flags|=e,p.memoizedState=Oh(Vr|t,s,E,g)}function $y(e,t){return(xn.mode&hi)!==mt?Ah(gl|wa|Is,sa,e,t):Ah(wa|Is,sa,e,t)}function jh(e,t){return Hy(wa,sa,e,t)}function nS(e,t){return Ah(st,Hs,e,t)}function Gy(e,t){return Hy(st,Hs,e,t)}function rS(e,t){var s=st;return s|=fi,(xn.mode&hi)!==mt&&(s|=di),Ah(s,Br,e,t)}function Wy(e,t){return Hy(st,Br,e,t)}function bT(e,t){if(typeof t=="function"){var s=t,c=e();return s(c),function(){s(null)}}else if(t!=null){var p=t;p.hasOwnProperty("current")||v("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 g=e();return p.current=g,function(){p.current=null}}}function aS(e,t,s){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var c=s!=null?s.concat([e]):null,p=st;return p|=fi,(xn.mode&hi)!==mt&&(p|=di),Ah(p,Br,bT.bind(null,t,e),c)}function Xy(e,t,s){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var c=s!=null?s.concat([e]):null;return Hy(st,Br,bT.bind(null,t,e),c)}function FP(e,t){}var Yy=FP;function iS(e,t){var s=$s(),c=t===void 0?null:t;return s.memoizedState=[e,c],e}function Zy(e,t){var s=bo(),c=t===void 0?null:t,p=s.memoizedState;if(p!==null&&c!==null){var g=p[1];if(Xx(c,g))return p[0]}return s.memoizedState=[e,c],e}function oS(e,t){var s=$s(),c=t===void 0?null:t,p=e();return s.memoizedState=[p,c],p}function Jy(e,t){var s=bo(),c=t===void 0?null:t,p=s.memoizedState;if(p!==null&&c!==null){var g=p[1];if(Xx(c,g))return p[0]}var E=e();return s.memoizedState=[E,c],E}function sS(e){var t=$s();return t.memoizedState=e,e}function CT(e){var t=bo(),s=zr,c=s.memoizedState;return ST(t,c,e)}function xT(e){var t=bo();if(zr===null)return t.memoizedState=e,e;var s=zr.memoizedState;return ST(t,s,e)}function ST(e,t,s){var c=!Rg(Af);if(c){if(!rt(s,t)){var p=Ng();xn.lanes=Dt(xn.lanes,p),Yh(p),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Lh()),e.memoizedState=s,s}function VP(e,t,s){var c=gi();tr(hC(c,Go)),e(!0);var p=Ih.transition;Ih.transition={};var g=Ih.transition;Ih.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(tr(c),Ih.transition=p,p===null&&g._updatedFibers){var E=g._updatedFibers.size;E>10&&h("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."),g._updatedFibers.clear()}}}function lS(){var e=zy(!1),t=e[0],s=e[1],c=VP.bind(null,s),p=$s();return p.memoizedState=c,[t,c]}function ET(){var e=Kx(),t=e[0],s=bo(),c=s.memoizedState;return[t,c]}function wT(){var e=eS(),t=e[0],s=bo(),c=s.memoizedState;return[t,c]}var RT=!1;function BP(){return RT}function uS(){var e=$s(),t=mb(),s=t.identifierPrefix,c;if(oa()){var p=eP();c=":"+s+"R"+p;var g=_h++;g>0&&(c+="H"+g.toString(32)),c+=":"}else{var E=MP++;c=":"+s+"r"+E.toString(32)+":"}return e.memoizedState=c,c}function qy(){var e=bo(),t=e.memoizedState;return t}function zP(e,t,s){typeof arguments[3]=="function"&&v("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=sc(e),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(TT(e))IT(t,p);else{var g=$1(e,t,p,c);if(g!==null){var E=Ka();Wr(g,e,c,E),NT(g,t,c)}}_T(e,c)}function UP(e,t,s){typeof arguments[3]=="function"&&v("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=sc(e),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(TT(e))IT(t,p);else{var g=e.alternate;if(e.lanes===Ee&&(g===null||g.lanes===Ee)){var E=t.lastRenderedReducer;if(E!==null){var I;I=Ze.current,Ze.current=es;try{var j=t.lastRenderedState,P=E(j,s);if(p.hasEagerState=!0,p.eagerState=P,rt(P,j)){CP(e,t,p,c);return}}catch{}finally{Ze.current=I}}}var B=$1(e,t,p,c);if(B!==null){var te=Ka();Wr(B,e,c,te),NT(B,t,c)}}_T(e,c)}function TT(e){var t=e.alternate;return e===xn||t!==null&&t===xn}function IT(e,t){Nh=Vy=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function NT(e,t,s){if(Fv(s)){var c=t.lanes;c=Dd(c,e.pendingLanes);var p=Dt(c,s);t.lanes=p,Vv(e,p)}}function _T(e,t,s){gd(e,t)}var Qy={readContext:jr,useCallback:La,useContext:La,useEffect:La,useImperativeHandle:La,useInsertionEffect:La,useLayoutEffect:La,useMemo:La,useReducer:La,useRef:La,useState:La,useDebugValue:La,useDeferredValue:La,useTransition:La,useMutableSource:La,useSyncExternalStore:La,useId:La,unstable_isNewReconciler:_e},OT=null,AT=null,jT=null,DT=null,Gs=null,es=null,Ky=null;{var cS=function(){v("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(){v("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")};OT={readContext:function(e){return jr(e)},useCallback:function(e,t){return Ie="useCallback",dn(),xp(t),iS(e,t)},useContext:function(e){return Ie="useContext",dn(),jr(e)},useEffect:function(e,t){return Ie="useEffect",dn(),xp(t),$y(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",dn(),xp(s),aS(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",dn(),xp(t),nS(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",dn(),xp(t),rS(e,t)},useMemo:function(e,t){Ie="useMemo",dn(),xp(t);var s=Ze.current;Ze.current=Gs;try{return oS(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",dn();var c=Ze.current;Ze.current=Gs;try{return Zx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",dn(),tS(e)},useState:function(e){Ie="useState",dn();var t=Ze.current;Ze.current=Gs;try{return zy(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",dn(),void 0},useDeferredValue:function(e){return Ie="useDeferredValue",dn(),sS(e)},useTransition:function(){return Ie="useTransition",dn(),lS()},useMutableSource:function(e,t,s){return Ie="useMutableSource",dn(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",dn(),Qx(e,t,s)},useId:function(){return Ie="useId",dn(),uS()},unstable_isNewReconciler:_e},AT={readContext:function(e){return jr(e)},useCallback:function(e,t){return Ie="useCallback",$e(),iS(e,t)},useContext:function(e){return Ie="useContext",$e(),jr(e)},useEffect:function(e,t){return Ie="useEffect",$e(),$y(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",$e(),aS(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",$e(),nS(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",$e(),rS(e,t)},useMemo:function(e,t){Ie="useMemo",$e();var s=Ze.current;Ze.current=Gs;try{return oS(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",$e();var c=Ze.current;Ze.current=Gs;try{return Zx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",$e(),tS(e)},useState:function(e){Ie="useState",$e();var t=Ze.current;Ze.current=Gs;try{return zy(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",$e(),void 0},useDeferredValue:function(e){return Ie="useDeferredValue",$e(),sS(e)},useTransition:function(){return Ie="useTransition",$e(),lS()},useMutableSource:function(e,t,s){return Ie="useMutableSource",$e(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",$e(),Qx(e,t,s)},useId:function(){return Ie="useId",$e(),uS()},unstable_isNewReconciler:_e},jT={readContext:function(e){return jr(e)},useCallback:function(e,t){return Ie="useCallback",$e(),Zy(e,t)},useContext:function(e){return Ie="useContext",$e(),jr(e)},useEffect:function(e,t){return Ie="useEffect",$e(),jh(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",$e(),Xy(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",$e(),Gy(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",$e(),Wy(e,t)},useMemo:function(e,t){Ie="useMemo",$e();var s=Ze.current;Ze.current=es;try{return Jy(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",$e();var c=Ze.current;Ze.current=es;try{return Jx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",$e(),Uy()},useState:function(e){Ie="useState",$e();var t=Ze.current;Ze.current=es;try{return Kx(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",$e(),Yy()},useDeferredValue:function(e){return Ie="useDeferredValue",$e(),CT(e)},useTransition:function(){return Ie="useTransition",$e(),ET()},useMutableSource:function(e,t,s){return Ie="useMutableSource",$e(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",$e(),By(e,t)},useId:function(){return Ie="useId",$e(),qy()},unstable_isNewReconciler:_e},DT={readContext:function(e){return jr(e)},useCallback:function(e,t){return Ie="useCallback",$e(),Zy(e,t)},useContext:function(e){return Ie="useContext",$e(),jr(e)},useEffect:function(e,t){return Ie="useEffect",$e(),jh(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",$e(),Xy(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",$e(),Gy(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",$e(),Wy(e,t)},useMemo:function(e,t){Ie="useMemo",$e();var s=Ze.current;Ze.current=Ky;try{return Jy(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",$e();var c=Ze.current;Ze.current=Ky;try{return qx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",$e(),Uy()},useState:function(e){Ie="useState",$e();var t=Ze.current;Ze.current=Ky;try{return eS(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",$e(),Yy()},useDeferredValue:function(e){return Ie="useDeferredValue",$e(),xT(e)},useTransition:function(){return Ie="useTransition",$e(),wT()},useMutableSource:function(e,t,s){return Ie="useMutableSource",$e(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",$e(),By(e,t)},useId:function(){return Ie="useId",$e(),qy()},unstable_isNewReconciler:_e},Gs={readContext:function(e){return cS(),jr(e)},useCallback:function(e,t){return Ie="useCallback",At(),dn(),iS(e,t)},useContext:function(e){return Ie="useContext",At(),dn(),jr(e)},useEffect:function(e,t){return Ie="useEffect",At(),dn(),$y(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",At(),dn(),aS(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",At(),dn(),nS(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",At(),dn(),rS(e,t)},useMemo:function(e,t){Ie="useMemo",At(),dn();var s=Ze.current;Ze.current=Gs;try{return oS(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",At(),dn();var c=Ze.current;Ze.current=Gs;try{return Zx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",At(),dn(),tS(e)},useState:function(e){Ie="useState",At(),dn();var t=Ze.current;Ze.current=Gs;try{return zy(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",At(),dn(),void 0},useDeferredValue:function(e){return Ie="useDeferredValue",At(),dn(),sS(e)},useTransition:function(){return Ie="useTransition",At(),dn(),lS()},useMutableSource:function(e,t,s){return Ie="useMutableSource",At(),dn(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",At(),dn(),Qx(e,t,s)},useId:function(){return Ie="useId",At(),dn(),uS()},unstable_isNewReconciler:_e},es={readContext:function(e){return cS(),jr(e)},useCallback:function(e,t){return Ie="useCallback",At(),$e(),Zy(e,t)},useContext:function(e){return Ie="useContext",At(),$e(),jr(e)},useEffect:function(e,t){return Ie="useEffect",At(),$e(),jh(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",At(),$e(),Xy(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",At(),$e(),Gy(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",At(),$e(),Wy(e,t)},useMemo:function(e,t){Ie="useMemo",At(),$e();var s=Ze.current;Ze.current=es;try{return Jy(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",At(),$e();var c=Ze.current;Ze.current=es;try{return Jx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",At(),$e(),Uy()},useState:function(e){Ie="useState",At(),$e();var t=Ze.current;Ze.current=es;try{return Kx(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",At(),$e(),Yy()},useDeferredValue:function(e){return Ie="useDeferredValue",At(),$e(),CT(e)},useTransition:function(){return Ie="useTransition",At(),$e(),ET()},useMutableSource:function(e,t,s){return Ie="useMutableSource",At(),$e(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",At(),$e(),By(e,t)},useId:function(){return Ie="useId",At(),$e(),qy()},unstable_isNewReconciler:_e},Ky={readContext:function(e){return cS(),jr(e)},useCallback:function(e,t){return Ie="useCallback",At(),$e(),Zy(e,t)},useContext:function(e){return Ie="useContext",At(),$e(),jr(e)},useEffect:function(e,t){return Ie="useEffect",At(),$e(),jh(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",At(),$e(),Xy(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",At(),$e(),Gy(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",At(),$e(),Wy(e,t)},useMemo:function(e,t){Ie="useMemo",At(),$e();var s=Ze.current;Ze.current=es;try{return Jy(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",At(),$e();var c=Ze.current;Ze.current=es;try{return qx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",At(),$e(),Uy()},useState:function(e){Ie="useState",At(),$e();var t=Ze.current;Ze.current=es;try{return eS(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",At(),$e(),Yy()},useDeferredValue:function(e){return Ie="useDeferredValue",At(),$e(),xT(e)},useTransition:function(){return Ie="useTransition",At(),$e(),wT()},useMutableSource:function(e,t,s){return Ie="useMutableSource",At(),$e(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",At(),$e(),By(e,t)},useId:function(){return Ie="useId",At(),$e(),qy()},unstable_isNewReconciler:_e}}var rc=i.unstable_now,kT=0,eb=-1,Dh=-1,tb=-1,fS=!1,nb=!1;function MT(){return fS}function HP(){nb=!0}function $P(){fS=!1,nb=!1}function GP(){fS=nb,nb=!1}function LT(){return kT}function PT(){kT=rc()}function dS(e){Dh=rc(),e.actualStartTime<0&&(e.actualStartTime=rc())}function FT(e){Dh=-1}function rb(e,t){if(Dh>=0){var s=rc()-Dh;e.actualDuration+=s,t&&(e.selfBaseDuration=s),Dh=-1}}function Ws(e){if(eb>=0){var t=rc()-eb;eb=-1;for(var s=e.return;s!==null;){switch(s.tag){case T:var c=s.stateNode;c.effectDuration+=t;return;case z:var p=s.stateNode;p.effectDuration+=t;return}s=s.return}}}function pS(e){if(tb>=0){var t=rc()-tb;tb=-1;for(var s=e.return;s!==null;){switch(s.tag){case T:var c=s.stateNode;c!==null&&(c.passiveEffectDuration+=t);return;case z:var p=s.stateNode;p!==null&&(p.passiveEffectDuration+=t);return}s=s.return}}}function Xs(){eb=rc()}function vS(){tb=rc()}function hS(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function jf(e,t){return{value:e,source:t,stack:ou(t),digest:null}}function mS(e,t,s){return{value:e,source:null,stack:s??null,digest:t??null}}function WP(e,t){return!0}function gS(e,t){try{var s=WP(e,t);if(s===!1)return;var c=t.value,p=t.source,g=t.stack,E=g!==null?g:"";if(c!=null&&c._suppressLogging){if(e.tag===x)return;console.error(c)}var I=p?Nt(p):null,j=I?"The above error occurred in the <"+I+"> component:":"The above error occurred in one of your React components:",P;if(e.tag===T)P=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
185
|
+
Incoming: %s`,Ie,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var s=0;s<t.length&&s<e.length;s++)if(!rt(e[s],t[s]))return!1;return!0}function Sp(e,t,s,c,p,g){Af=g,xn=t,yo=e!==null?e._debugHookTypes:null,nc=-1,Gx=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=Ee,e!==null&&e.memoizedState!==null?Ze.current=AT:yo!==null?Ze.current=OT:Ze.current=_T;var E=s(c,p);if(_h){var I=0;do{if(_h=!1,Oh=0,I>=LP)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");I+=1,Gx=!1,zr=null,Ur=null,t.updateQueue=null,nc=-1,Ze.current=jT,E=s(c,p)}while(_h)}Ze.current=Qy,t._debugHookTypes=yo;var j=zr!==null&&zr.next!==null;if(Af=Ee,xn=null,zr=null,Ur=null,Ie=null,yo=null,nc=-1,e!==null&&(e.flags&Pr)!==(t.flags&Pr)&&(e.mode&ut)!==mt&&v("Internal React error: Expected static flag was missing. Please notify the React team."),Vy=!1,j)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return E}function Ep(){var e=Oh!==0;return Oh=0,e}function cT(e,t,s){t.updateQueue=e.updateQueue,(t.mode&hi)!==mt?t.flags&=~(gl|di|wa|st):t.flags&=~(wa|st),e.lanes=lf(e.lanes,s)}function fT(){if(Ze.current=Qy,Vy){for(var e=xn.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vy=!1}Af=Ee,xn=null,zr=null,Ur=null,yo=null,nc=-1,Ie=null,wT=!1,_h=!1,Oh=0}function $s(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ur===null?xn.memoizedState=Ur=e:Ur=Ur.next=e,Ur}function bo(){var e;if(zr===null){var t=xn.alternate;t!==null?e=t.memoizedState:e=null}else e=zr.next;var s;if(Ur===null?s=xn.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?xn.memoizedState=Ur=c:Ur=Ur.next=c}return Ur}function dT(){return{lastEffect:null,stores:null}}function Xx(e,t){return typeof t=="function"?t(e):t}function Yx(e,t,s){var c=$s(),p;s!==void 0?p=s(t):p=t,c.memoizedState=c.baseState=p;var g={pending:null,interleaved:null,lanes:Ee,dispatch:null,lastRenderedReducer:e,lastRenderedState:p};c.queue=g;var E=g.dispatch=zP.bind(null,xn,g);return[c.memoizedState,E]}function Zx(e,t,s){var c=bo(),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 g=zr,E=g.baseQueue,I=p.pending;if(I!==null){if(E!==null){var j=E.next,P=I.next;E.next=P,I.next=j}g.baseQueue!==E&&v("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),g.baseQueue=E=I,p.pending=null}if(E!==null){var B=E.next,te=g.baseState,K=null,ce=null,de=null,be=B;do{var qe=be.lane;if(Il(Af,qe)){if(de!==null){var ct={lane:sr,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null};de=de.next=ct}if(be.hasEagerState)te=be.eagerState;else{var Wt=be.action;te=e(te,Wt)}}else{var gt={lane:qe,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null};de===null?(ce=de=gt,K=te):de=de.next=gt,xn.lanes=Dt(xn.lanes,qe),Zh(qe)}be=be.next}while(be!==null&&be!==B);de===null?K=te:de.next=ce,rt(te,c.memoizedState)||Ph(),c.memoizedState=te,c.baseState=K,c.baseQueue=de,p.lastRenderedState=te}var Ut=p.interleaved;if(Ut!==null){var ie=Ut;do{var Ce=ie.lane;xn.lanes=Dt(xn.lanes,Ce),Zh(Ce),ie=ie.next}while(ie!==Ut)}else E===null&&(p.lanes=Ee);var oe=p.dispatch;return[c.memoizedState,oe]}function Jx(e,t,s){var c=bo(),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 g=p.dispatch,E=p.pending,I=c.memoizedState;if(E!==null){p.pending=null;var j=E.next,P=j;do{var B=P.action;I=e(I,B),P=P.next}while(P!==j);rt(I,c.memoizedState)||Ph(),c.memoizedState=I,c.baseQueue===null&&(c.baseState=I),p.lastRenderedState=I}return[I,g]}function V8(e,t,s){}function B8(e,t,s){}function qx(e,t,s){var c=xn,p=$s(),g,E=oa();if(E){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");g=s(),Cp||g!==s()&&(v("The result of getServerSnapshot should be cached to avoid an infinite loop"),Cp=!0)}else{if(g=t(),!Cp){var I=t();rt(g,I)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),Cp=!0)}var j=mb();if(j===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");sf(j,Af)||pT(c,t,g)}p.memoizedState=g;var P={value:g,getSnapshot:t};return p.queue=P,$y(hT.bind(null,c,P,e),[e]),c.flags|=wa,Ah(Vr|sa,vT.bind(null,c,P,g,t),void 0,null),g}function By(e,t,s){var c=xn,p=bo(),g=t();if(!Cp){var E=t();rt(g,E)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),Cp=!0)}var I=p.memoizedState,j=!rt(I,g);j&&(p.memoizedState=g,Ph());var P=p.queue;if(Dh(hT.bind(null,c,P,e),[e]),P.getSnapshot!==t||j||Ur!==null&&Ur.memoizedState.tag&Vr){c.flags|=wa,Ah(Vr|sa,vT.bind(null,c,P,g,t),void 0,null);var B=mb();if(B===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");sf(B,Af)||pT(c,t,g)}return g}function pT(e,t,s){e.flags|=ml;var c={getSnapshot:t,value:s},p=xn.updateQueue;if(p===null)p=dT(),xn.updateQueue=p,p.stores=[c];else{var g=p.stores;g===null?p.stores=[c]:g.push(c)}}function vT(e,t,s,c){t.value=s,t.getSnapshot=c,mT(t)&&gT(e)}function hT(e,t,s){var c=function(){mT(t)&&gT(e)};return s(c)}function mT(e){var t=e.getSnapshot,s=e.value;try{var c=t();return!rt(s,c)}catch{return!0}}function gT(e){var t=Ei(e,bt);t!==null&&Wr(t,e,bt,Mn)}function zy(e){var t=$s();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var s={pending:null,interleaved:null,lanes:Ee,dispatch:null,lastRenderedReducer:Xx,lastRenderedState:e};t.queue=s;var c=s.dispatch=UP.bind(null,xn,s);return[t.memoizedState,c]}function Qx(e){return Zx(Xx)}function Kx(e){return Jx(Xx)}function Ah(e,t,s,c){var p={tag:e,create:t,destroy:s,deps:c,next:null},g=xn.updateQueue;if(g===null)g=dT(),xn.updateQueue=g,g.lastEffect=p.next=p;else{var E=g.lastEffect;if(E===null)g.lastEffect=p.next=p;else{var I=E.next;E.next=p,p.next=I,g.lastEffect=p}}return p}function eS(e){var t=$s();{var s={current:e};return t.memoizedState=s,s}}function Uy(e){var t=bo();return t.memoizedState}function jh(e,t,s,c){var p=$s(),g=c===void 0?null:c;xn.flags|=e,p.memoizedState=Ah(Vr|t,s,void 0,g)}function Hy(e,t,s,c){var p=bo(),g=c===void 0?null:c,E=void 0;if(zr!==null){var I=zr.memoizedState;if(E=I.destroy,g!==null){var j=I.deps;if(Wx(g,j)){p.memoizedState=Ah(t,s,E,g);return}}}xn.flags|=e,p.memoizedState=Ah(Vr|t,s,E,g)}function $y(e,t){return(xn.mode&hi)!==mt?jh(gl|wa|Is,sa,e,t):jh(wa|Is,sa,e,t)}function Dh(e,t){return Hy(wa,sa,e,t)}function tS(e,t){return jh(st,Hs,e,t)}function Gy(e,t){return Hy(st,Hs,e,t)}function nS(e,t){var s=st;return s|=fi,(xn.mode&hi)!==mt&&(s|=di),jh(s,Br,e,t)}function Wy(e,t){return Hy(st,Br,e,t)}function yT(e,t){if(typeof t=="function"){var s=t,c=e();return s(c),function(){s(null)}}else if(t!=null){var p=t;p.hasOwnProperty("current")||v("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 g=e();return p.current=g,function(){p.current=null}}}function rS(e,t,s){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var c=s!=null?s.concat([e]):null,p=st;return p|=fi,(xn.mode&hi)!==mt&&(p|=di),jh(p,Br,yT.bind(null,t,e),c)}function Xy(e,t,s){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var c=s!=null?s.concat([e]):null;return Hy(st,Br,yT.bind(null,t,e),c)}function FP(e,t){}var Yy=FP;function aS(e,t){var s=$s(),c=t===void 0?null:t;return s.memoizedState=[e,c],e}function Zy(e,t){var s=bo(),c=t===void 0?null:t,p=s.memoizedState;if(p!==null&&c!==null){var g=p[1];if(Wx(c,g))return p[0]}return s.memoizedState=[e,c],e}function iS(e,t){var s=$s(),c=t===void 0?null:t,p=e();return s.memoizedState=[p,c],p}function Jy(e,t){var s=bo(),c=t===void 0?null:t,p=s.memoizedState;if(p!==null&&c!==null){var g=p[1];if(Wx(c,g))return p[0]}var E=e();return s.memoizedState=[E,c],E}function oS(e){var t=$s();return t.memoizedState=e,e}function bT(e){var t=bo(),s=zr,c=s.memoizedState;return xT(t,c,e)}function CT(e){var t=bo();if(zr===null)return t.memoizedState=e,e;var s=zr.memoizedState;return xT(t,s,e)}function xT(e,t,s){var c=!Rg(Af);if(c){if(!rt(s,t)){var p=Ng();xn.lanes=Dt(xn.lanes,p),Zh(p),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Ph()),e.memoizedState=s,s}function VP(e,t,s){var c=gi();tr(vC(c,Go)),e(!0);var p=Nh.transition;Nh.transition={};var g=Nh.transition;Nh.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(tr(c),Nh.transition=p,p===null&&g._updatedFibers){var E=g._updatedFibers.size;E>10&&h("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."),g._updatedFibers.clear()}}}function sS(){var e=zy(!1),t=e[0],s=e[1],c=VP.bind(null,s),p=$s();return p.memoizedState=c,[t,c]}function ST(){var e=Qx(),t=e[0],s=bo(),c=s.memoizedState;return[t,c]}function ET(){var e=Kx(),t=e[0],s=bo(),c=s.memoizedState;return[t,c]}var wT=!1;function BP(){return wT}function lS(){var e=$s(),t=mb(),s=t.identifierPrefix,c;if(oa()){var p=eP();c=":"+s+"R"+p;var g=Oh++;g>0&&(c+="H"+g.toString(32)),c+=":"}else{var E=MP++;c=":"+s+"r"+E.toString(32)+":"}return e.memoizedState=c,c}function qy(){var e=bo(),t=e.memoizedState;return t}function zP(e,t,s){typeof arguments[3]=="function"&&v("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=sc(e),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(RT(e))TT(t,p);else{var g=H1(e,t,p,c);if(g!==null){var E=Ka();Wr(g,e,c,E),IT(g,t,c)}}NT(e,c)}function UP(e,t,s){typeof arguments[3]=="function"&&v("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=sc(e),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(RT(e))TT(t,p);else{var g=e.alternate;if(e.lanes===Ee&&(g===null||g.lanes===Ee)){var E=t.lastRenderedReducer;if(E!==null){var I;I=Ze.current,Ze.current=es;try{var j=t.lastRenderedState,P=E(j,s);if(p.hasEagerState=!0,p.eagerState=P,rt(P,j)){CP(e,t,p,c);return}}catch{}finally{Ze.current=I}}}var B=H1(e,t,p,c);if(B!==null){var te=Ka();Wr(B,e,c,te),IT(B,t,c)}}NT(e,c)}function RT(e){var t=e.alternate;return e===xn||t!==null&&t===xn}function TT(e,t){_h=Vy=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function IT(e,t,s){if(Vv(s)){var c=t.lanes;c=Dd(c,e.pendingLanes);var p=Dt(c,s);t.lanes=p,Bv(e,p)}}function NT(e,t,s){gd(e,t)}var Qy={readContext:jr,useCallback:La,useContext:La,useEffect:La,useImperativeHandle:La,useInsertionEffect:La,useLayoutEffect:La,useMemo:La,useReducer:La,useRef:La,useState:La,useDebugValue:La,useDeferredValue:La,useTransition:La,useMutableSource:La,useSyncExternalStore:La,useId:La,unstable_isNewReconciler:_e},_T=null,OT=null,AT=null,jT=null,Gs=null,es=null,Ky=null;{var uS=function(){v("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(){v("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")};_T={readContext:function(e){return jr(e)},useCallback:function(e,t){return Ie="useCallback",dn(),xp(t),aS(e,t)},useContext:function(e){return Ie="useContext",dn(),jr(e)},useEffect:function(e,t){return Ie="useEffect",dn(),xp(t),$y(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",dn(),xp(s),rS(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",dn(),xp(t),tS(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",dn(),xp(t),nS(e,t)},useMemo:function(e,t){Ie="useMemo",dn(),xp(t);var s=Ze.current;Ze.current=Gs;try{return iS(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",dn();var c=Ze.current;Ze.current=Gs;try{return Yx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",dn(),eS(e)},useState:function(e){Ie="useState",dn();var t=Ze.current;Ze.current=Gs;try{return zy(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",dn(),void 0},useDeferredValue:function(e){return Ie="useDeferredValue",dn(),oS(e)},useTransition:function(){return Ie="useTransition",dn(),sS()},useMutableSource:function(e,t,s){return Ie="useMutableSource",dn(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",dn(),qx(e,t,s)},useId:function(){return Ie="useId",dn(),lS()},unstable_isNewReconciler:_e},OT={readContext:function(e){return jr(e)},useCallback:function(e,t){return Ie="useCallback",$e(),aS(e,t)},useContext:function(e){return Ie="useContext",$e(),jr(e)},useEffect:function(e,t){return Ie="useEffect",$e(),$y(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",$e(),rS(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",$e(),tS(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",$e(),nS(e,t)},useMemo:function(e,t){Ie="useMemo",$e();var s=Ze.current;Ze.current=Gs;try{return iS(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",$e();var c=Ze.current;Ze.current=Gs;try{return Yx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",$e(),eS(e)},useState:function(e){Ie="useState",$e();var t=Ze.current;Ze.current=Gs;try{return zy(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",$e(),void 0},useDeferredValue:function(e){return Ie="useDeferredValue",$e(),oS(e)},useTransition:function(){return Ie="useTransition",$e(),sS()},useMutableSource:function(e,t,s){return Ie="useMutableSource",$e(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",$e(),qx(e,t,s)},useId:function(){return Ie="useId",$e(),lS()},unstable_isNewReconciler:_e},AT={readContext:function(e){return jr(e)},useCallback:function(e,t){return Ie="useCallback",$e(),Zy(e,t)},useContext:function(e){return Ie="useContext",$e(),jr(e)},useEffect:function(e,t){return Ie="useEffect",$e(),Dh(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",$e(),Xy(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",$e(),Gy(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",$e(),Wy(e,t)},useMemo:function(e,t){Ie="useMemo",$e();var s=Ze.current;Ze.current=es;try{return Jy(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",$e();var c=Ze.current;Ze.current=es;try{return Zx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",$e(),Uy()},useState:function(e){Ie="useState",$e();var t=Ze.current;Ze.current=es;try{return Qx(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",$e(),Yy()},useDeferredValue:function(e){return Ie="useDeferredValue",$e(),bT(e)},useTransition:function(){return Ie="useTransition",$e(),ST()},useMutableSource:function(e,t,s){return Ie="useMutableSource",$e(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",$e(),By(e,t)},useId:function(){return Ie="useId",$e(),qy()},unstable_isNewReconciler:_e},jT={readContext:function(e){return jr(e)},useCallback:function(e,t){return Ie="useCallback",$e(),Zy(e,t)},useContext:function(e){return Ie="useContext",$e(),jr(e)},useEffect:function(e,t){return Ie="useEffect",$e(),Dh(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",$e(),Xy(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",$e(),Gy(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",$e(),Wy(e,t)},useMemo:function(e,t){Ie="useMemo",$e();var s=Ze.current;Ze.current=Ky;try{return Jy(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",$e();var c=Ze.current;Ze.current=Ky;try{return Jx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",$e(),Uy()},useState:function(e){Ie="useState",$e();var t=Ze.current;Ze.current=Ky;try{return Kx(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",$e(),Yy()},useDeferredValue:function(e){return Ie="useDeferredValue",$e(),CT(e)},useTransition:function(){return Ie="useTransition",$e(),ET()},useMutableSource:function(e,t,s){return Ie="useMutableSource",$e(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",$e(),By(e,t)},useId:function(){return Ie="useId",$e(),qy()},unstable_isNewReconciler:_e},Gs={readContext:function(e){return uS(),jr(e)},useCallback:function(e,t){return Ie="useCallback",At(),dn(),aS(e,t)},useContext:function(e){return Ie="useContext",At(),dn(),jr(e)},useEffect:function(e,t){return Ie="useEffect",At(),dn(),$y(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",At(),dn(),rS(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",At(),dn(),tS(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",At(),dn(),nS(e,t)},useMemo:function(e,t){Ie="useMemo",At(),dn();var s=Ze.current;Ze.current=Gs;try{return iS(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",At(),dn();var c=Ze.current;Ze.current=Gs;try{return Yx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",At(),dn(),eS(e)},useState:function(e){Ie="useState",At(),dn();var t=Ze.current;Ze.current=Gs;try{return zy(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",At(),dn(),void 0},useDeferredValue:function(e){return Ie="useDeferredValue",At(),dn(),oS(e)},useTransition:function(){return Ie="useTransition",At(),dn(),sS()},useMutableSource:function(e,t,s){return Ie="useMutableSource",At(),dn(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",At(),dn(),qx(e,t,s)},useId:function(){return Ie="useId",At(),dn(),lS()},unstable_isNewReconciler:_e},es={readContext:function(e){return uS(),jr(e)},useCallback:function(e,t){return Ie="useCallback",At(),$e(),Zy(e,t)},useContext:function(e){return Ie="useContext",At(),$e(),jr(e)},useEffect:function(e,t){return Ie="useEffect",At(),$e(),Dh(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",At(),$e(),Xy(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",At(),$e(),Gy(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",At(),$e(),Wy(e,t)},useMemo:function(e,t){Ie="useMemo",At(),$e();var s=Ze.current;Ze.current=es;try{return Jy(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",At(),$e();var c=Ze.current;Ze.current=es;try{return Zx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",At(),$e(),Uy()},useState:function(e){Ie="useState",At(),$e();var t=Ze.current;Ze.current=es;try{return Qx(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",At(),$e(),Yy()},useDeferredValue:function(e){return Ie="useDeferredValue",At(),$e(),bT(e)},useTransition:function(){return Ie="useTransition",At(),$e(),ST()},useMutableSource:function(e,t,s){return Ie="useMutableSource",At(),$e(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",At(),$e(),By(e,t)},useId:function(){return Ie="useId",At(),$e(),qy()},unstable_isNewReconciler:_e},Ky={readContext:function(e){return uS(),jr(e)},useCallback:function(e,t){return Ie="useCallback",At(),$e(),Zy(e,t)},useContext:function(e){return Ie="useContext",At(),$e(),jr(e)},useEffect:function(e,t){return Ie="useEffect",At(),$e(),Dh(e,t)},useImperativeHandle:function(e,t,s){return Ie="useImperativeHandle",At(),$e(),Xy(e,t,s)},useInsertionEffect:function(e,t){return Ie="useInsertionEffect",At(),$e(),Gy(e,t)},useLayoutEffect:function(e,t){return Ie="useLayoutEffect",At(),$e(),Wy(e,t)},useMemo:function(e,t){Ie="useMemo",At(),$e();var s=Ze.current;Ze.current=es;try{return Jy(e,t)}finally{Ze.current=s}},useReducer:function(e,t,s){Ie="useReducer",At(),$e();var c=Ze.current;Ze.current=es;try{return Jx(e,t,s)}finally{Ze.current=c}},useRef:function(e){return Ie="useRef",At(),$e(),Uy()},useState:function(e){Ie="useState",At(),$e();var t=Ze.current;Ze.current=es;try{return Kx(e)}finally{Ze.current=t}},useDebugValue:function(e,t){return Ie="useDebugValue",At(),$e(),Yy()},useDeferredValue:function(e){return Ie="useDeferredValue",At(),$e(),CT(e)},useTransition:function(){return Ie="useTransition",At(),$e(),ET()},useMutableSource:function(e,t,s){return Ie="useMutableSource",At(),$e(),void 0},useSyncExternalStore:function(e,t,s){return Ie="useSyncExternalStore",At(),$e(),By(e,t)},useId:function(){return Ie="useId",At(),$e(),qy()},unstable_isNewReconciler:_e}}var rc=i.unstable_now,DT=0,eb=-1,kh=-1,tb=-1,cS=!1,nb=!1;function kT(){return cS}function HP(){nb=!0}function $P(){cS=!1,nb=!1}function GP(){cS=nb,nb=!1}function MT(){return DT}function LT(){DT=rc()}function fS(e){kh=rc(),e.actualStartTime<0&&(e.actualStartTime=rc())}function PT(e){kh=-1}function rb(e,t){if(kh>=0){var s=rc()-kh;e.actualDuration+=s,t&&(e.selfBaseDuration=s),kh=-1}}function Ws(e){if(eb>=0){var t=rc()-eb;eb=-1;for(var s=e.return;s!==null;){switch(s.tag){case T:var c=s.stateNode;c.effectDuration+=t;return;case z:var p=s.stateNode;p.effectDuration+=t;return}s=s.return}}}function dS(e){if(tb>=0){var t=rc()-tb;tb=-1;for(var s=e.return;s!==null;){switch(s.tag){case T:var c=s.stateNode;c!==null&&(c.passiveEffectDuration+=t);return;case z:var p=s.stateNode;p!==null&&(p.passiveEffectDuration+=t);return}s=s.return}}}function Xs(){eb=rc()}function pS(){tb=rc()}function vS(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function jf(e,t){return{value:e,source:t,stack:ou(t),digest:null}}function hS(e,t,s){return{value:e,source:null,stack:s??null,digest:t??null}}function WP(e,t){return!0}function mS(e,t){try{var s=WP(e,t);if(s===!1)return;var c=t.value,p=t.source,g=t.stack,E=g!==null?g:"";if(c!=null&&c._suppressLogging){if(e.tag===x)return;console.error(c)}var I=p?Nt(p):null,j=I?"The above error occurred in the <"+I+"> component:":"The above error occurred in one of your React components:",P;if(e.tag===T)P=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
186
186
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var B=Nt(e)||"Anonymous";P="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+B+".")}var te=j+`
|
|
187
187
|
`+E+`
|
|
188
188
|
|
|
189
|
-
`+(""+P);console.error(te)}catch(K){setTimeout(function(){throw K})}}var XP=typeof WeakMap=="function"?WeakMap:Map;function VT(e,t,s){var c=Bl(Mn,s);c.tag=gx,c.payload={element:null};var p=t.value;return c.callback=function(){VV(p),gS(e,t)},c}function yS(e,t,s){var c=Bl(Mn,s);c.tag=gx;var p=e.type.getDerivedStateFromError;if(typeof p=="function"){var g=t.value;c.payload=function(){return p(g)},c.callback=function(){JI(e),gS(e,t)}}var E=e.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(c.callback=function(){JI(e),gS(e,t),typeof p!="function"&&PV(this);var j=t.value,P=t.stack;this.componentDidCatch(j,{componentStack:P!==null?P:""}),typeof p!="function"&&(ja(e.lanes,bt)||v("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Nt(e)||"Unknown"))}),c}function BT(e,t,s){var c=e.pingCache,p;if(c===null?(c=e.pingCache=new XP,p=new Set,c.set(t,p)):(p=c.get(t),p===void 0&&(p=new Set,c.set(t,p))),!p.has(s)){p.add(s);var g=BV.bind(null,e,t,s);Za&&Zh(e,s),t.then(g,g)}}function YP(e,t,s,c){var p=e.updateQueue;if(p===null){var g=new Set;g.add(s),e.updateQueue=g}else p.add(s)}function ZP(e,t){var s=e.tag;if((e.mode&ut)===mt&&(s===C||s===U||s===q)){var c=e.alternate;c?(e.updateQueue=c.updateQueue,e.memoizedState=c.memoizedState,e.lanes=c.lanes):(e.updateQueue=null,e.memoizedState=null)}}function zT(e){var t=e;do{if(t.tag===H&&DP(t))return t;t=t.return}while(t!==null);return null}function UT(e,t,s,c,p){if((e.mode&ut)===mt){if(e===t)e.flags|=Lr;else{if(e.flags|=Ot,s.flags|=cd,s.flags&=~(fg|Ts),s.tag===x){var g=s.alternate;if(g===null)s.tag=he;else{var E=Bl(Mn,bt);E.tag=Iy,Ku(s,E,bt)}}s.lanes=Dt(s.lanes,bt)}return e}return e.flags|=Lr,e.lanes=p,e}function JP(e,t,s,c,p){if(s.flags|=Ts,Za&&Zh(e,p),c!==null&&typeof c=="object"&&typeof c.then=="function"){var g=c;ZP(s),oa()&&s.mode&ut&&j1();var E=zT(t);if(E!==null){E.flags&=~ra,UT(E,t,s,e,p),E.mode&ut&&BT(e,g,p),YP(E,e,g);return}else{if(!Pv(p)){BT(e,g,p),qS();return}var I=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=I}}else if(oa()&&s.mode&ut){j1();var j=zT(t);if(j!==null){(j.flags&Lr)===ht&&(j.flags|=ra),UT(j,t,s,e,p),cx(jf(c,s));return}}c=jf(c,s),_V(c);var P=t;do{switch(P.tag){case T:{var B=c;P.flags|=Lr;var te=Ou(p);P.lanes=Dt(P.lanes,te);var K=VT(P,B,te);Cx(P,K);return}case x:var ce=c,de=P.type,be=P.stateNode;if((P.flags&Ot)===ht&&(typeof de.getDerivedStateFromError=="function"||be!==null&&typeof be.componentDidCatch=="function"&&!zI(be))){P.flags|=Lr;var qe=Ou(p);P.lanes=Dt(P.lanes,qe);var gt=yS(P,ce,qe);Cx(P,gt);return}break}P=P.return}while(P!==null)}function qP(){return null}var kh=u.ReactCurrentOwner,ts=!1,bS,Mh,CS,xS,SS,Df,ES,ab;bS={},Mh={},CS={},xS={},SS={},Df=!1,ES={},ab={};function qa(e,t,s,c){e===null?t.child=oT(t,null,s,c):t.child=mp(t,e.child,s,c)}function QP(e,t,s,c){t.child=mp(t,e.child,null,c),t.child=mp(t,null,s,c)}function HT(e,t,s,c,p){if(t.type!==t.elementType){var g=s.propTypes;g&&Zo(g,c,"prop",Yt(s))}var E=s.render,I=t.ref,j,P;hp(t,p),Su(t);{if(kh.current=t,Mr(!0),j=Sp(e,t,E,c,I,p),P=Ep(),t.mode&Kn){kn(!0);try{j=Sp(e,t,E,c,I,p),P=Ep()}finally{kn(!1)}}Mr(!1)}return bl(),e!==null&&!ts?(fT(e,t,p),zl(e,t,p)):(oa()&&P&&ax(t),t.flags|=Ui,qa(e,t,j,p),t.child)}function $T(e,t,s,c,p){if(e===null){var g=s.type;if(rB(g)&&s.compare===null&&s.defaultProps===void 0){var E=g;return E=Ap(g),t.tag=q,t.type=E,TS(t,g),GT(e,t,E,c,p)}{var I=g.propTypes;I&&Zo(I,c,"prop",Yt(g))}var j=lE(s.type,null,c,t,t.mode,p);return j.ref=t.ref,j.return=t,t.child=j,j}{var P=s.type,B=P.propTypes;B&&Zo(B,c,"prop",Yt(P))}var te=e.child,K=jS(e,p);if(!K){var ce=te.memoizedProps,de=s.compare;if(de=de!==null?de:St,de(ce,c)&&e.ref===t.ref)return zl(e,t,p)}t.flags|=Ui;var be=Ff(te,c);return be.ref=t.ref,be.return=t,t.child=be,be}function GT(e,t,s,c,p){if(t.type!==t.elementType){var g=t.elementType;if(g.$$typeof===vt){var E=g,I=E._payload,j=E._init;try{g=j(I)}catch{g=null}var P=g&&g.propTypes;P&&Zo(P,c,"prop",Yt(g))}}if(e!==null){var B=e.memoizedProps;if(St(B,c)&&e.ref===t.ref&&t.type===e.type)if(ts=!1,t.pendingProps=c=B,jS(e,p))(e.flags&cd)!==ht&&(ts=!0);else return t.lanes=e.lanes,zl(e,t,p)}return wS(e,t,s,c,p)}function WT(e,t,s){var c=t.pendingProps,p=c.children,g=e!==null?e.memoizedState:null;if(c.mode==="hidden"||Y)if((t.mode&ut)===mt){var E={baseLanes:Ee,cachePool:null,transitions:null};t.memoizedState=E,gb(t,s)}else if(ja(s,Ja)){var te={baseLanes:Ee,cachePool:null,transitions:null};t.memoizedState=te;var K=g!==null?g.baseLanes:s;gb(t,K)}else{var I=null,j;if(g!==null){var P=g.baseLanes;j=Dt(P,s)}else j=s;t.lanes=t.childLanes=Ja;var B={baseLanes:j,cachePool:I,transitions:null};return t.memoizedState=B,t.updateQueue=null,gb(t,j),null}else{var ce;g!==null?(ce=Dt(g.baseLanes,s),t.memoizedState=null):ce=s,gb(t,ce)}return qa(e,t,p,s),t.child}function KP(e,t,s){var c=t.pendingProps;return qa(e,t,c,s),t.child}function eF(e,t,s){var c=t.pendingProps.children;return qa(e,t,c,s),t.child}function tF(e,t,s){{t.flags|=st;{var c=t.stateNode;c.effectDuration=0,c.passiveEffectDuration=0}}var p=t.pendingProps,g=p.children;return qa(e,t,g,s),t.child}function XT(e,t){var s=t.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(t.flags|=Wa,t.flags|=oo)}function wS(e,t,s,c,p){if(t.type!==t.elementType){var g=s.propTypes;g&&Zo(g,c,"prop",Yt(s))}var E;{var I=up(t,s,!0);E=cp(t,I)}var j,P;hp(t,p),Su(t);{if(kh.current=t,Mr(!0),j=Sp(e,t,s,c,E,p),P=Ep(),t.mode&Kn){kn(!0);try{j=Sp(e,t,s,c,E,p),P=Ep()}finally{kn(!1)}}Mr(!1)}return bl(),e!==null&&!ts?(fT(e,t,p),zl(e,t,p)):(oa()&&P&&ax(t),t.flags|=Ui,qa(e,t,j,p),t.child)}function YT(e,t,s,c,p){{switch(yB(t)){case!1:{var g=t.stateNode,E=t.type,I=new E(t.memoizedProps,g.context),j=I.state;g.updater.enqueueSetState(g,j,null);break}case!0:{t.flags|=Ot,t.flags|=Lr;var P=new Error("Simulated error coming from DevTools"),B=Ou(p);t.lanes=Dt(t.lanes,B);var te=yS(t,jf(P,t),B);Cx(t,te);break}}if(t.type!==t.elementType){var K=s.propTypes;K&&Zo(K,c,"prop",Yt(s))}}var ce;Us(s)?(ce=!0,my(t)):ce=!1,hp(t,p);var de=t.stateNode,be;de===null?(ob(e,t),tT(t,s,c),jx(t,s,c,p),be=!0):e===null?be=IP(t,s,c,p):be=NP(e,t,s,c,p);var qe=RS(e,t,s,be,ce,p);{var gt=t.stateNode;be&>.props!==c&&(Df||v("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Nt(t)||"a component"),Df=!0)}return qe}function RS(e,t,s,c,p,g){XT(e,t);var E=(t.flags&Ot)!==ht;if(!c&&!E)return p&&N1(t,s,!1),zl(e,t,g);var I=t.stateNode;kh.current=t;var j;if(E&&typeof s.getDerivedStateFromError!="function")j=null,FT();else{Su(t);{if(Mr(!0),j=I.render(),t.mode&Kn){kn(!0);try{I.render()}finally{kn(!1)}}Mr(!1)}bl()}return t.flags|=Ui,e!==null&&E?QP(e,t,j,g):qa(e,t,j,g),t.memoizedState=I.state,p&&N1(t,s,!0),t.child}function ZT(e){var t=e.stateNode;t.pendingContext?T1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&T1(e,t.context,!1),Fx(e,t.containerInfo)}function nF(e,t,s){if(ZT(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var c=t.pendingProps,p=t.memoizedState,g=p.element;X1(e,t),Ay(t,c,null,s);var E=t.memoizedState;t.stateNode;var I=E.element;if(p.isDehydrated){var j={element:I,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},P=t.updateQueue;if(P.baseState=j,t.memoizedState=j,t.flags&ra){var B=jf(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."),t);return JT(e,t,I,s,B)}else if(I!==g){var te=jf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return JT(e,t,I,s,te)}else{oP(t);var K=oT(t,null,I,s);t.child=K;for(var ce=K;ce;)ce.flags=ce.flags&~In|io,ce=ce.sibling}}else{if(pp(),I===g)return zl(e,t,s);qa(e,t,I,s)}return t.child}function JT(e,t,s,c,p){return pp(),cx(p),t.flags|=ra,qa(e,t,s,c),t.child}function rF(e,t,s){lT(t),e===null&&ux(t);var c=t.type,p=t.pendingProps,g=e!==null?e.memoizedProps:null,E=p.children,I=$C(c,p);return I?E=null:g!==null&&$C(c,g)&&(t.flags|=ci),XT(e,t),qa(e,t,E,s),t.child}function aF(e,t){return e===null&&ux(t),null}function iF(e,t,s,c){ob(e,t);var p=t.pendingProps,g=s,E=g._payload,I=g._init,j=I(E);t.type=j;var P=t.tag=aB(j),B=Qo(j,p),te;switch(P){case C:return TS(t,j),t.type=j=Ap(j),te=wS(null,t,j,B,c),te;case x:return t.type=j=nE(j),te=YT(null,t,j,B,c),te;case U:return t.type=j=rE(j),te=HT(null,t,j,B,c),te;case J:{if(t.type!==t.elementType){var K=j.propTypes;K&&Zo(K,B,"prop",Yt(j))}return te=$T(null,t,j,Qo(j.type,B),c),te}}var ce="";throw j!==null&&typeof j=="object"&&j.$$typeof===vt&&(ce=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+j+". "+("Lazy element type must resolve to a class or function."+ce))}function oF(e,t,s,c,p){ob(e,t),t.tag=x;var g;return Us(s)?(g=!0,my(t)):g=!1,hp(t,p),tT(t,s,c),jx(t,s,c,p),RS(null,t,s,!0,g,p)}function sF(e,t,s,c){ob(e,t);var p=t.pendingProps,g;{var E=up(t,s,!1);g=cp(t,E)}hp(t,c);var I,j;Su(t);{if(s.prototype&&typeof s.prototype.render=="function"){var P=Yt(s)||"Unknown";bS[P]||(v("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.",P,P),bS[P]=!0)}t.mode&Kn&&qo.recordLegacyContextWarning(t,null),Mr(!0),kh.current=t,I=Sp(null,t,s,p,g,c),j=Ep(),Mr(!1)}if(bl(),t.flags|=Ui,typeof I=="object"&&I!==null&&typeof I.render=="function"&&I.$$typeof===void 0){var B=Yt(s)||"Unknown";Mh[B]||(v("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.",B,B,B),Mh[B]=!0)}if(typeof I=="object"&&I!==null&&typeof I.render=="function"&&I.$$typeof===void 0){{var te=Yt(s)||"Unknown";Mh[te]||(v("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),Mh[te]=!0)}t.tag=x,t.memoizedState=null,t.updateQueue=null;var K=!1;return Us(s)?(K=!0,my(t)):K=!1,t.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,bx(t),eT(t,I),jx(t,s,p,c),RS(null,t,s,!0,K,c)}else{if(t.tag=C,t.mode&Kn){kn(!0);try{I=Sp(null,t,s,p,g,c),j=Ep()}finally{kn(!1)}}return oa()&&j&&ax(t),qa(null,t,I,c),TS(t,s),t.child}}function TS(e,t){{if(t&&t.childContextTypes&&v("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var s="",c=si();c&&(s+=`
|
|
189
|
+
`+(""+P);console.error(te)}catch(K){setTimeout(function(){throw K})}}var XP=typeof WeakMap=="function"?WeakMap:Map;function FT(e,t,s){var c=Bl(Mn,s);c.tag=mx,c.payload={element:null};var p=t.value;return c.callback=function(){VV(p),mS(e,t)},c}function gS(e,t,s){var c=Bl(Mn,s);c.tag=mx;var p=e.type.getDerivedStateFromError;if(typeof p=="function"){var g=t.value;c.payload=function(){return p(g)},c.callback=function(){ZI(e),mS(e,t)}}var E=e.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(c.callback=function(){ZI(e),mS(e,t),typeof p!="function"&&PV(this);var j=t.value,P=t.stack;this.componentDidCatch(j,{componentStack:P!==null?P:""}),typeof p!="function"&&(ja(e.lanes,bt)||v("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Nt(e)||"Unknown"))}),c}function VT(e,t,s){var c=e.pingCache,p;if(c===null?(c=e.pingCache=new XP,p=new Set,c.set(t,p)):(p=c.get(t),p===void 0&&(p=new Set,c.set(t,p))),!p.has(s)){p.add(s);var g=BV.bind(null,e,t,s);Za&&Jh(e,s),t.then(g,g)}}function YP(e,t,s,c){var p=e.updateQueue;if(p===null){var g=new Set;g.add(s),e.updateQueue=g}else p.add(s)}function ZP(e,t){var s=e.tag;if((e.mode&ut)===mt&&(s===C||s===U||s===q)){var c=e.alternate;c?(e.updateQueue=c.updateQueue,e.memoizedState=c.memoizedState,e.lanes=c.lanes):(e.updateQueue=null,e.memoizedState=null)}}function BT(e){var t=e;do{if(t.tag===H&&DP(t))return t;t=t.return}while(t!==null);return null}function zT(e,t,s,c,p){if((e.mode&ut)===mt){if(e===t)e.flags|=Lr;else{if(e.flags|=Ot,s.flags|=cd,s.flags&=~(fg|Ts),s.tag===x){var g=s.alternate;if(g===null)s.tag=he;else{var E=Bl(Mn,bt);E.tag=Iy,Ku(s,E,bt)}}s.lanes=Dt(s.lanes,bt)}return e}return e.flags|=Lr,e.lanes=p,e}function JP(e,t,s,c,p){if(s.flags|=Ts,Za&&Jh(e,p),c!==null&&typeof c=="object"&&typeof c.then=="function"){var g=c;ZP(s),oa()&&s.mode&ut&&A1();var E=BT(t);if(E!==null){E.flags&=~ra,zT(E,t,s,e,p),E.mode&ut&&VT(e,g,p),YP(E,e,g);return}else{if(!Fv(p)){VT(e,g,p),JS();return}var I=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=I}}else if(oa()&&s.mode&ut){A1();var j=BT(t);if(j!==null){(j.flags&Lr)===ht&&(j.flags|=ra),zT(j,t,s,e,p),ux(jf(c,s));return}}c=jf(c,s),_V(c);var P=t;do{switch(P.tag){case T:{var B=c;P.flags|=Lr;var te=Ou(p);P.lanes=Dt(P.lanes,te);var K=FT(P,B,te);bx(P,K);return}case x:var ce=c,de=P.type,be=P.stateNode;if((P.flags&Ot)===ht&&(typeof de.getDerivedStateFromError=="function"||be!==null&&typeof be.componentDidCatch=="function"&&!BI(be))){P.flags|=Lr;var qe=Ou(p);P.lanes=Dt(P.lanes,qe);var gt=gS(P,ce,qe);bx(P,gt);return}break}P=P.return}while(P!==null)}function qP(){return null}var Mh=u.ReactCurrentOwner,ts=!1,yS,Lh,bS,CS,xS,Df,SS,ab;yS={},Lh={},bS={},CS={},xS={},Df=!1,SS={},ab={};function qa(e,t,s,c){e===null?t.child=iT(t,null,s,c):t.child=mp(t,e.child,s,c)}function QP(e,t,s,c){t.child=mp(t,e.child,null,c),t.child=mp(t,null,s,c)}function UT(e,t,s,c,p){if(t.type!==t.elementType){var g=s.propTypes;g&&Zo(g,c,"prop",Yt(s))}var E=s.render,I=t.ref,j,P;hp(t,p),Su(t);{if(Mh.current=t,Mr(!0),j=Sp(e,t,E,c,I,p),P=Ep(),t.mode&Kn){kn(!0);try{j=Sp(e,t,E,c,I,p),P=Ep()}finally{kn(!1)}}Mr(!1)}return bl(),e!==null&&!ts?(cT(e,t,p),zl(e,t,p)):(oa()&&P&&rx(t),t.flags|=Ui,qa(e,t,j,p),t.child)}function HT(e,t,s,c,p){if(e===null){var g=s.type;if(rB(g)&&s.compare===null&&s.defaultProps===void 0){var E=g;return E=Ap(g),t.tag=q,t.type=E,RS(t,g),$T(e,t,E,c,p)}{var I=g.propTypes;I&&Zo(I,c,"prop",Yt(g))}var j=sE(s.type,null,c,t,t.mode,p);return j.ref=t.ref,j.return=t,t.child=j,j}{var P=s.type,B=P.propTypes;B&&Zo(B,c,"prop",Yt(P))}var te=e.child,K=AS(e,p);if(!K){var ce=te.memoizedProps,de=s.compare;if(de=de!==null?de:St,de(ce,c)&&e.ref===t.ref)return zl(e,t,p)}t.flags|=Ui;var be=Ff(te,c);return be.ref=t.ref,be.return=t,t.child=be,be}function $T(e,t,s,c,p){if(t.type!==t.elementType){var g=t.elementType;if(g.$$typeof===vt){var E=g,I=E._payload,j=E._init;try{g=j(I)}catch{g=null}var P=g&&g.propTypes;P&&Zo(P,c,"prop",Yt(g))}}if(e!==null){var B=e.memoizedProps;if(St(B,c)&&e.ref===t.ref&&t.type===e.type)if(ts=!1,t.pendingProps=c=B,AS(e,p))(e.flags&cd)!==ht&&(ts=!0);else return t.lanes=e.lanes,zl(e,t,p)}return ES(e,t,s,c,p)}function GT(e,t,s){var c=t.pendingProps,p=c.children,g=e!==null?e.memoizedState:null;if(c.mode==="hidden"||Y)if((t.mode&ut)===mt){var E={baseLanes:Ee,cachePool:null,transitions:null};t.memoizedState=E,gb(t,s)}else if(ja(s,Ja)){var te={baseLanes:Ee,cachePool:null,transitions:null};t.memoizedState=te;var K=g!==null?g.baseLanes:s;gb(t,K)}else{var I=null,j;if(g!==null){var P=g.baseLanes;j=Dt(P,s)}else j=s;t.lanes=t.childLanes=Ja;var B={baseLanes:j,cachePool:I,transitions:null};return t.memoizedState=B,t.updateQueue=null,gb(t,j),null}else{var ce;g!==null?(ce=Dt(g.baseLanes,s),t.memoizedState=null):ce=s,gb(t,ce)}return qa(e,t,p,s),t.child}function KP(e,t,s){var c=t.pendingProps;return qa(e,t,c,s),t.child}function eF(e,t,s){var c=t.pendingProps.children;return qa(e,t,c,s),t.child}function tF(e,t,s){{t.flags|=st;{var c=t.stateNode;c.effectDuration=0,c.passiveEffectDuration=0}}var p=t.pendingProps,g=p.children;return qa(e,t,g,s),t.child}function WT(e,t){var s=t.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(t.flags|=Wa,t.flags|=oo)}function ES(e,t,s,c,p){if(t.type!==t.elementType){var g=s.propTypes;g&&Zo(g,c,"prop",Yt(s))}var E;{var I=up(t,s,!0);E=cp(t,I)}var j,P;hp(t,p),Su(t);{if(Mh.current=t,Mr(!0),j=Sp(e,t,s,c,E,p),P=Ep(),t.mode&Kn){kn(!0);try{j=Sp(e,t,s,c,E,p),P=Ep()}finally{kn(!1)}}Mr(!1)}return bl(),e!==null&&!ts?(cT(e,t,p),zl(e,t,p)):(oa()&&P&&rx(t),t.flags|=Ui,qa(e,t,j,p),t.child)}function XT(e,t,s,c,p){{switch(yB(t)){case!1:{var g=t.stateNode,E=t.type,I=new E(t.memoizedProps,g.context),j=I.state;g.updater.enqueueSetState(g,j,null);break}case!0:{t.flags|=Ot,t.flags|=Lr;var P=new Error("Simulated error coming from DevTools"),B=Ou(p);t.lanes=Dt(t.lanes,B);var te=gS(t,jf(P,t),B);bx(t,te);break}}if(t.type!==t.elementType){var K=s.propTypes;K&&Zo(K,c,"prop",Yt(s))}}var ce;Us(s)?(ce=!0,my(t)):ce=!1,hp(t,p);var de=t.stateNode,be;de===null?(ob(e,t),eT(t,s,c),Ax(t,s,c,p),be=!0):e===null?be=IP(t,s,c,p):be=NP(e,t,s,c,p);var qe=wS(e,t,s,be,ce,p);{var gt=t.stateNode;be&>.props!==c&&(Df||v("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Nt(t)||"a component"),Df=!0)}return qe}function wS(e,t,s,c,p,g){WT(e,t);var E=(t.flags&Ot)!==ht;if(!c&&!E)return p&&I1(t,s,!1),zl(e,t,g);var I=t.stateNode;Mh.current=t;var j;if(E&&typeof s.getDerivedStateFromError!="function")j=null,PT();else{Su(t);{if(Mr(!0),j=I.render(),t.mode&Kn){kn(!0);try{I.render()}finally{kn(!1)}}Mr(!1)}bl()}return t.flags|=Ui,e!==null&&E?QP(e,t,j,g):qa(e,t,j,g),t.memoizedState=I.state,p&&I1(t,s,!0),t.child}function YT(e){var t=e.stateNode;t.pendingContext?R1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&R1(e,t.context,!1),Px(e,t.containerInfo)}function nF(e,t,s){if(YT(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var c=t.pendingProps,p=t.memoizedState,g=p.element;W1(e,t),Ay(t,c,null,s);var E=t.memoizedState;t.stateNode;var I=E.element;if(p.isDehydrated){var j={element:I,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},P=t.updateQueue;if(P.baseState=j,t.memoizedState=j,t.flags&ra){var B=jf(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."),t);return ZT(e,t,I,s,B)}else if(I!==g){var te=jf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return ZT(e,t,I,s,te)}else{oP(t);var K=iT(t,null,I,s);t.child=K;for(var ce=K;ce;)ce.flags=ce.flags&~In|io,ce=ce.sibling}}else{if(pp(),I===g)return zl(e,t,s);qa(e,t,I,s)}return t.child}function ZT(e,t,s,c,p){return pp(),ux(p),t.flags|=ra,qa(e,t,s,c),t.child}function rF(e,t,s){sT(t),e===null&&lx(t);var c=t.type,p=t.pendingProps,g=e!==null?e.memoizedProps:null,E=p.children,I=HC(c,p);return I?E=null:g!==null&&HC(c,g)&&(t.flags|=ci),WT(e,t),qa(e,t,E,s),t.child}function aF(e,t){return e===null&&lx(t),null}function iF(e,t,s,c){ob(e,t);var p=t.pendingProps,g=s,E=g._payload,I=g._init,j=I(E);t.type=j;var P=t.tag=aB(j),B=Qo(j,p),te;switch(P){case C:return RS(t,j),t.type=j=Ap(j),te=ES(null,t,j,B,c),te;case x:return t.type=j=tE(j),te=XT(null,t,j,B,c),te;case U:return t.type=j=nE(j),te=UT(null,t,j,B,c),te;case J:{if(t.type!==t.elementType){var K=j.propTypes;K&&Zo(K,B,"prop",Yt(j))}return te=HT(null,t,j,Qo(j.type,B),c),te}}var ce="";throw j!==null&&typeof j=="object"&&j.$$typeof===vt&&(ce=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+j+". "+("Lazy element type must resolve to a class or function."+ce))}function oF(e,t,s,c,p){ob(e,t),t.tag=x;var g;return Us(s)?(g=!0,my(t)):g=!1,hp(t,p),eT(t,s,c),Ax(t,s,c,p),wS(null,t,s,!0,g,p)}function sF(e,t,s,c){ob(e,t);var p=t.pendingProps,g;{var E=up(t,s,!1);g=cp(t,E)}hp(t,c);var I,j;Su(t);{if(s.prototype&&typeof s.prototype.render=="function"){var P=Yt(s)||"Unknown";yS[P]||(v("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.",P,P),yS[P]=!0)}t.mode&Kn&&qo.recordLegacyContextWarning(t,null),Mr(!0),Mh.current=t,I=Sp(null,t,s,p,g,c),j=Ep(),Mr(!1)}if(bl(),t.flags|=Ui,typeof I=="object"&&I!==null&&typeof I.render=="function"&&I.$$typeof===void 0){var B=Yt(s)||"Unknown";Lh[B]||(v("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.",B,B,B),Lh[B]=!0)}if(typeof I=="object"&&I!==null&&typeof I.render=="function"&&I.$$typeof===void 0){{var te=Yt(s)||"Unknown";Lh[te]||(v("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),Lh[te]=!0)}t.tag=x,t.memoizedState=null,t.updateQueue=null;var K=!1;return Us(s)?(K=!0,my(t)):K=!1,t.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,yx(t),K1(t,I),Ax(t,s,p,c),wS(null,t,s,!0,K,c)}else{if(t.tag=C,t.mode&Kn){kn(!0);try{I=Sp(null,t,s,p,g,c),j=Ep()}finally{kn(!1)}}return oa()&&j&&rx(t),qa(null,t,I,c),RS(t,s),t.child}}function RS(e,t){{if(t&&t.childContextTypes&&v("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var s="",c=si();c&&(s+=`
|
|
190
190
|
|
|
191
|
-
Check the render method of \``+c+"`.");var p=c||"",g=e._debugSource;g&&(p=g.fileName+":"+g.lineNumber),SS[p]||(SS[p]=!0,v("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(typeof t.getDerivedStateFromProps=="function"){var E=Yt(t)||"Unknown";xS[E]||(v("%s: Function components do not support getDerivedStateFromProps.",E),xS[E]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var I=Yt(t)||"Unknown";CS[I]||(v("%s: Function components do not support contextType.",I),CS[I]=!0)}}}var IS={dehydrated:null,treeContext:null,retryLane:sr};function NS(e){return{baseLanes:e,cachePool:qP(),transitions:null}}function lF(e,t){var s=null;return{baseLanes:Dt(e.baseLanes,t),cachePool:s,transitions:e.transitions}}function uF(e,t,s,c){if(t!==null){var p=t.memoizedState;if(p===null)return!1}return zx(e,Th)}function cF(e,t){return lf(e.childLanes,t)}function qT(e,t,s){var c=t.pendingProps;bB(t)&&(t.flags|=Ot);var p=Ko.current,g=!1,E=(t.flags&Ot)!==ht;if(E||uF(p,e)?(g=!0,t.flags&=~Ot):(e===null||e.memoizedState!==null)&&(p=jP(p,cT)),p=yp(p),tc(t,p),e===null){ux(t);var I=t.memoizedState;if(I!==null){var j=I.dehydrated;if(j!==null)return hF(t,j)}var P=c.children,B=c.fallback;if(g){var te=fF(t,P,B,s),K=t.child;return K.memoizedState=NS(s),t.memoizedState=IS,te}else return _S(t,P)}else{var ce=e.memoizedState;if(ce!==null){var de=ce.dehydrated;if(de!==null)return mF(e,t,E,c,de,ce,s)}if(g){var be=c.fallback,qe=c.children,gt=pF(e,t,qe,be,s),ct=t.child,Wt=e.child.memoizedState;return ct.memoizedState=Wt===null?NS(s):lF(Wt,s),ct.childLanes=cF(e,s),t.memoizedState=IS,gt}else{var Ut=c.children,ie=dF(e,t,Ut,s);return t.memoizedState=null,ie}}}function _S(e,t,s){var c=e.mode,p={mode:"visible",children:t},g=OS(p,c);return g.return=e,e.child=g,g}function fF(e,t,s,c){var p=e.mode,g=e.child,E={mode:"hidden",children:t},I,j;return(p&ut)===mt&&g!==null?(I=g,I.childLanes=Ee,I.pendingProps=E,e.mode&Qt&&(I.actualDuration=0,I.actualStartTime=-1,I.selfBaseDuration=0,I.treeBaseDuration=0),j=uc(s,p,c,null)):(I=OS(E,p),j=uc(s,p,c,null)),I.return=e,j.return=e,I.sibling=j,e.child=I,j}function OS(e,t,s){return QI(e,t,Ee,null)}function QT(e,t){return Ff(e,t)}function dF(e,t,s,c){var p=e.child,g=p.sibling,E=QT(p,{mode:"visible",children:s});if((t.mode&ut)===mt&&(E.lanes=c),E.return=t,E.sibling=null,g!==null){var I=t.deletions;I===null?(t.deletions=[g],t.flags|=tn):I.push(g)}return t.child=E,E}function pF(e,t,s,c,p){var g=t.mode,E=e.child,I=E.sibling,j={mode:"hidden",children:s},P;if((g&ut)===mt&&t.child!==E){var B=t.child;P=B,P.childLanes=Ee,P.pendingProps=j,t.mode&Qt&&(P.actualDuration=0,P.actualStartTime=-1,P.selfBaseDuration=E.selfBaseDuration,P.treeBaseDuration=E.treeBaseDuration),t.deletions=null}else P=QT(E,j),P.subtreeFlags=E.subtreeFlags⪻var te;return I!==null?te=Ff(I,c):(te=uc(c,g,p,null),te.flags|=In),te.return=t,P.return=t,P.sibling=te,t.child=P,te}function ib(e,t,s,c){c!==null&&cx(c),mp(t,e.child,null,s);var p=t.pendingProps,g=p.children,E=_S(t,g);return E.flags|=In,t.memoizedState=null,E}function vF(e,t,s,c,p){var g=t.mode,E={mode:"visible",children:s},I=OS(E,g),j=uc(c,g,p,null);return j.flags|=In,I.return=t,j.return=t,I.sibling=j,t.child=I,(t.mode&ut)!==mt&&mp(t,e.child,null,p),j}function hF(e,t,s){return(e.mode&ut)===mt?(v("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=bt):YC(t)?e.lanes=er:e.lanes=Ja,null}function mF(e,t,s,c,p,g,E){if(s)if(t.flags&ra){t.flags&=~ra;var ie=mS(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return ib(e,t,E,ie)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Ot,null;var Ce=c.children,oe=c.fallback,Fe=vF(e,t,Ce,oe,E),Qe=t.child;return Qe.memoizedState=NS(E),t.memoizedState=IS,Fe}else{if(aP(),(t.mode&ut)===mt)return ib(e,t,E,null);if(YC(p)){var I,j,P;{var B=xL(p);I=B.digest,j=B.message,P=B.stack}var te;j?te=new Error(j):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=mS(te,I,P);return ib(e,t,E,K)}var ce=ja(E,e.childLanes);if(ts||ce){var de=mb();if(de!==null){var be=Ag(de,E);if(be!==sr&&be!==g.retryLane){g.retryLane=be;var qe=Mn;Ei(e,be),Wr(de,e,be,qe)}}qS();var gt=mS(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 ib(e,t,E,gt)}else if(C1(p)){t.flags|=Ot,t.child=e.child;var ct=zV.bind(null,e);return SL(p,ct),null}else{sP(t,p,g.treeContext);var Wt=c.children,Ut=_S(t,Wt);return Ut.flags|=io,Ut}}}function KT(e,t,s){e.lanes=Dt(e.lanes,t);var c=e.alternate;c!==null&&(c.lanes=Dt(c.lanes,t)),hx(e.return,t,s)}function gF(e,t,s){for(var c=t;c!==null;){if(c.tag===H){var p=c.memoizedState;p!==null&&KT(c,s,e)}else if(c.tag===fe)KT(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 yF(e){for(var t=e,s=null;t!==null;){var c=t.alternate;c!==null&&Fy(c)===null&&(s=t),t=t.sibling}return s}function bF(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!ES[e])if(ES[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{v('"%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:v('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else v('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function CF(e,t){e!==void 0&&!ab[e]&&(e!=="collapsed"&&e!=="hidden"?(ab[e]=!0,v('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(ab[e]=!0,v('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function eI(e,t){{var s=Zt(e),c=!s&&typeof Ki(e)=="function";if(s||c){var p=s?"array":"iterable";return v("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,t,p),!1}}return!0}function xF(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Zt(e)){for(var s=0;s<e.length;s++)if(!eI(e[s],s))return}else{var c=Ki(e);if(typeof c=="function"){var p=c.call(e);if(p)for(var g=p.next(),E=0;!g.done;g=p.next()){if(!eI(g.value,E))return;E++}}else v('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?',t)}}function AS(e,t,s,c,p){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:p}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=s,g.tailMode=p)}function tI(e,t,s){var c=t.pendingProps,p=c.revealOrder,g=c.tail,E=c.children;bF(p),CF(g,p),xF(E,p),qa(e,t,E,s);var I=Ko.current,j=zx(I,Th);if(j)I=Ux(I,Th),t.flags|=Ot;else{var P=e!==null&&(e.flags&Ot)!==ht;P&&gF(t,t.child,s),I=yp(I)}if(tc(t,I),(t.mode&ut)===mt)t.memoizedState=null;else switch(p){case"forwards":{var B=yF(t.child),te;B===null?(te=t.child,t.child=null):(te=B.sibling,B.sibling=null),AS(t,!1,te,B,g);break}case"backwards":{var K=null,ce=t.child;for(t.child=null;ce!==null;){var de=ce.alternate;if(de!==null&&Fy(de)===null){t.child=ce;break}var be=ce.sibling;ce.sibling=K,K=ce,ce=be}AS(t,!0,K,null,g);break}case"together":{AS(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function SF(e,t,s){Fx(t,t.stateNode.containerInfo);var c=t.pendingProps;return e===null?t.child=mp(t,null,c,s):qa(e,t,c,s),t.child}var nI=!1;function EF(e,t,s){var c=t.type,p=c._context,g=t.pendingProps,E=t.memoizedProps,I=g.value;{"value"in g||nI||(nI=!0,v("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var j=t.type.propTypes;j&&Zo(j,g,"prop","Context.Provider")}if(H1(t,p,I),E!==null){var P=E.value;if(rt(P,I)){if(E.children===g.children&&!vy())return zl(e,t,s)}else gP(t,p,s)}var B=g.children;return qa(e,t,B,s),t.child}var rI=!1;function wF(e,t,s){var c=t.type;c._context===void 0?c!==c.Consumer&&(rI||(rI=!0,v("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=t.pendingProps,g=p.children;typeof g!="function"&&v("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."),hp(t,s);var E=jr(c);Su(t);var I;return kh.current=t,Mr(!0),I=g(E),Mr(!1),bl(),t.flags|=Ui,qa(e,t,I,s),t.child}function Lh(){ts=!0}function ob(e,t){(t.mode&ut)===mt&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=In)}function zl(e,t,s){return e!==null&&(t.dependencies=e.dependencies),FT(),Yh(t.lanes),ja(s,t.childLanes)?(_P(e,t),t.child):null}function RF(e,t,s){{var c=t.return;if(c===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,s.index=t.index,s.sibling=t.sibling,s.return=t.return,s.ref=t.ref,t===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!==t;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=s}var g=c.deletions;return g===null?(c.deletions=[e],c.flags|=tn):g.push(e),s.flags|=In,s}}function jS(e,t){var s=e.lanes;return!!ja(s,t)}function TF(e,t,s){switch(t.tag){case T:ZT(t),t.stateNode,pp();break;case N:lT(t);break;case x:{var c=t.type;Us(c)&&my(t);break}case A:Fx(t,t.stateNode.containerInfo);break;case F:{var p=t.memoizedProps.value,g=t.type._context;H1(t,g,p);break}case z:{var E=ja(s,t.childLanes);E&&(t.flags|=st);{var I=t.stateNode;I.effectDuration=0,I.passiveEffectDuration=0}}break;case H:{var j=t.memoizedState;if(j!==null){if(j.dehydrated!==null)return tc(t,yp(Ko.current)),t.flags|=Ot,null;var P=t.child,B=P.childLanes;if(ja(s,B))return qT(e,t,s);tc(t,yp(Ko.current));var te=zl(e,t,s);return te!==null?te.sibling:null}else tc(t,yp(Ko.current));break}case fe:{var K=(e.flags&Ot)!==ht,ce=ja(s,t.childLanes);if(K){if(ce)return tI(e,t,s);t.flags|=Ot}var de=t.memoizedState;if(de!==null&&(de.rendering=null,de.tail=null,de.lastEffect=null),tc(t,Ko.current),ce)break;return null}case Te:case xe:return t.lanes=Ee,WT(e,t,s)}return zl(e,t,s)}function aI(e,t,s){if(t._debugNeedsRemount&&e!==null)return RF(e,t,lE(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var c=e.memoizedProps,p=t.pendingProps;if(c!==p||vy()||t.type!==e.type)ts=!0;else{var g=jS(e,s);if(!g&&(t.flags&Ot)===ht)return ts=!1,TF(e,t,s);(e.flags&cd)!==ht?ts=!0:ts=!1}}else if(ts=!1,oa()&&QL(t)){var E=t.index,I=KL();A1(t,I,E)}switch(t.lanes=Ee,t.tag){case R:return sF(e,t,t.type,s);case Re:{var j=t.elementType;return iF(e,t,j,s)}case C:{var P=t.type,B=t.pendingProps,te=t.elementType===P?B:Qo(P,B);return wS(e,t,P,te,s)}case x:{var K=t.type,ce=t.pendingProps,de=t.elementType===K?ce:Qo(K,ce);return YT(e,t,K,de,s)}case T:return nF(e,t,s);case N:return rF(e,t,s);case O:return aF(e,t);case H:return qT(e,t,s);case A:return SF(e,t,s);case U:{var be=t.type,qe=t.pendingProps,gt=t.elementType===be?qe:Qo(be,qe);return HT(e,t,be,gt,s)}case _:return KP(e,t,s);case L:return eF(e,t,s);case z:return tF(e,t,s);case F:return EF(e,t,s);case V:return wF(e,t,s);case J:{var ct=t.type,Wt=t.pendingProps,Ut=Qo(ct,Wt);if(t.type!==t.elementType){var ie=ct.propTypes;ie&&Zo(ie,Ut,"prop",Yt(ct))}return Ut=Qo(ct.type,Ut),$T(e,t,ct,Ut,s)}case q:return GT(e,t,t.type,t.pendingProps,s);case he:{var Ce=t.type,oe=t.pendingProps,Fe=t.elementType===Ce?oe:Qo(Ce,oe);return oF(e,t,Ce,Fe,s)}case fe:return tI(e,t,s);case Oe:break;case Te:return WT(e,t,s)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function wp(e){e.flags|=st}function iI(e){e.flags|=Wa,e.flags|=oo}var oI,DS,sI,lI;oI=function(e,t,s,c){for(var p=t.child;p!==null;){if(p.tag===N||p.tag===O)ZM(e,p.stateNode);else if(p.tag!==A){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===t)return;for(;p.sibling===null;){if(p.return===null||p.return===t)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},DS=function(e,t){},sI=function(e,t,s,c,p){var g=e.memoizedProps;if(g!==c){var E=t.stateNode,I=Vx(),j=qM(E,s,g,c,p,I);t.updateQueue=j,j&&wp(t)}},lI=function(e,t,s,c){s!==c&&wp(t)};function Ph(e,t){if(!oa())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,g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:g.sibling=null;break}}}function la(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=Ee,c=ht;if(t){if((e.mode&Qt)!==mt){for(var j=e.selfBaseDuration,P=e.child;P!==null;)s=Dt(s,Dt(P.lanes,P.childLanes)),c|=P.subtreeFlags&Pr,c|=P.flags&Pr,j+=P.treeBaseDuration,P=P.sibling;e.treeBaseDuration=j}else for(var B=e.child;B!==null;)s=Dt(s,Dt(B.lanes,B.childLanes)),c|=B.subtreeFlags&Pr,c|=B.flags&Pr,B.return=e,B=B.sibling;e.subtreeFlags|=c}else{if((e.mode&Qt)!==mt){for(var p=e.actualDuration,g=e.selfBaseDuration,E=e.child;E!==null;)s=Dt(s,Dt(E.lanes,E.childLanes)),c|=E.subtreeFlags,c|=E.flags,p+=E.actualDuration,g+=E.treeBaseDuration,E=E.sibling;e.actualDuration=p,e.treeBaseDuration=g}else for(var I=e.child;I!==null;)s=Dt(s,Dt(I.lanes,I.childLanes)),c|=I.subtreeFlags,c|=I.flags,I.return=e,I=I.sibling;e.subtreeFlags|=c}return e.childLanes=s,t}function IF(e,t,s){if(dP()&&(t.mode&ut)!==mt&&(t.flags&Ot)===ht)return F1(t),pp(),t.flags|=ra|Ts|Lr,!1;var c=xy(t);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(cP(t),la(t),(t.mode&Qt)!==mt){var p=s!==null;if(p){var g=t.child;g!==null&&(t.treeBaseDuration-=g.treeBaseDuration)}}return!1}else{if(pp(),(t.flags&Ot)===ht&&(t.memoizedState=null),t.flags|=st,la(t),(t.mode&Qt)!==mt){var E=s!==null;if(E){var I=t.child;I!==null&&(t.treeBaseDuration-=I.treeBaseDuration)}}return!1}else return V1(),!0}function uI(e,t,s){var c=t.pendingProps;switch(ix(t),t.tag){case R:case Re:case q:case C:case U:case _:case L:case z:case V:case J:return la(t),null;case x:{var p=t.type;return Us(p)&&hy(t),la(t),null}case T:{var g=t.stateNode;if(gp(t),tx(t),$x(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),e===null||e.child===null){var E=xy(t);if(E)wp(t);else if(e!==null){var I=e.memoizedState;(!I.isDehydrated||(t.flags&ra)!==ht)&&(t.flags|=vr,V1())}}return DS(e,t),la(t),null}case N:{Bx(t);var j=sT(),P=t.type;if(e!==null&&t.stateNode!=null)sI(e,t,P,c,j),e.ref!==t.ref&&iI(t);else{if(!c){if(t.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 la(t),null}var B=Vx(),te=xy(t);if(te)lP(t,j,B)&&wp(t);else{var K=YM(P,c,j,B,t);oI(K,t,!1,!1),t.stateNode=K,JM(K,P,c,j)&&wp(t)}t.ref!==null&&iI(t)}return la(t),null}case O:{var ce=c;if(e&&t.stateNode!=null){var de=e.memoizedProps;lI(e,t,de,ce)}else{if(typeof ce!="string"&&t.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 be=sT(),qe=Vx(),gt=xy(t);gt?uP(t)&&wp(t):t.stateNode=QM(ce,be,qe,t)}return la(t),null}case H:{bp(t);var ct=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Wt=IF(e,t,ct);if(!Wt)return t.flags&Lr?t:null}if((t.flags&Ot)!==ht)return t.lanes=s,(t.mode&Qt)!==mt&&hS(t),t;var Ut=ct!==null,ie=e!==null&&e.memoizedState!==null;if(Ut!==ie&&Ut){var Ce=t.child;if(Ce.flags|=Rs,(t.mode&ut)!==mt){var oe=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!re);oe||zx(Ko.current,cT)?NV():qS()}}var Fe=t.updateQueue;if(Fe!==null&&(t.flags|=st),la(t),(t.mode&Qt)!==mt&&Ut){var Qe=t.child;Qe!==null&&(t.treeBaseDuration-=Qe.treeBaseDuration)}return null}case A:return gp(t),DS(e,t),e===null&&GL(t.stateNode.containerInfo),la(t),null;case F:var Xe=t.type._context;return vx(Xe,t),la(t),null;case he:{var Tt=t.type;return Us(Tt)&&hy(t),la(t),null}case fe:{bp(t);var jt=t.memoizedState;if(jt===null)return la(t),null;var Sn=(t.flags&Ot)!==ht,rn=jt.rendering;if(rn===null)if(Sn)Ph(jt,!1);else{var Er=OV()&&(e===null||(e.flags&Ot)===ht);if(!Er)for(var an=t.child;an!==null;){var mr=Fy(an);if(mr!==null){Sn=!0,t.flags|=Ot,Ph(jt,!1);var Pa=mr.updateQueue;return Pa!==null&&(t.updateQueue=Pa,t.flags|=st),t.subtreeFlags=ht,OP(t,s),tc(t,Ux(Ko.current,Th)),t.child}an=an.sibling}jt.tail!==null&&hr()>OI()&&(t.flags|=Ot,Sn=!0,Ph(jt,!1),t.lanes=Mv)}else{if(!Sn){var pa=Fy(rn);if(pa!==null){t.flags|=Ot,Sn=!0;var Wi=pa.updateQueue;if(Wi!==null&&(t.updateQueue=Wi,t.flags|=st),Ph(jt,!0),jt.tail===null&&jt.tailMode==="hidden"&&!rn.alternate&&!oa())return la(t),null}else hr()*2-jt.renderingStartTime>OI()&&s!==Ja&&(t.flags|=Ot,Sn=!0,Ph(jt,!1),t.lanes=Mv)}if(jt.isBackwards)rn.sibling=t.child,t.child=rn;else{var ei=jt.last;ei!==null?ei.sibling=rn:t.child=rn,jt.last=rn}}if(jt.tail!==null){var ti=jt.tail;jt.rendering=ti,jt.tail=ti.sibling,jt.renderingStartTime=hr(),ti.sibling=null;var Fa=Ko.current;return Sn?Fa=Ux(Fa,Th):Fa=yp(Fa),tc(t,Fa),ti}return la(t),null}case Oe:break;case Te:case xe:{JS(t);var Wl=t.memoizedState,jp=Wl!==null;if(e!==null){var Kh=e.memoizedState,Js=Kh!==null;Js!==jp&&!Y&&(t.flags|=Rs)}return!jp||(t.mode&ut)===mt?la(t):ja(Zs,Ja)&&(la(t),t.subtreeFlags&(In|st)&&(t.flags|=Rs)),null}case je:return null;case Le:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function NF(e,t,s){switch(ix(t),t.tag){case x:{var c=t.type;Us(c)&&hy(t);var p=t.flags;return p&Lr?(t.flags=p&~Lr|Ot,(t.mode&Qt)!==mt&&hS(t),t):null}case T:{t.stateNode,gp(t),tx(t),$x();var g=t.flags;return(g&Lr)!==ht&&(g&Ot)===ht?(t.flags=g&~Lr|Ot,t):null}case N:return Bx(t),null;case H:{bp(t);var E=t.memoizedState;if(E!==null&&E.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");pp()}var I=t.flags;return I&Lr?(t.flags=I&~Lr|Ot,(t.mode&Qt)!==mt&&hS(t),t):null}case fe:return bp(t),null;case A:return gp(t),null;case F:var j=t.type._context;return vx(j,t),null;case Te:case xe:return JS(t),null;case je:return null;default:return null}}function cI(e,t,s){switch(ix(t),t.tag){case x:{var c=t.type.childContextTypes;c!=null&&hy(t);break}case T:{t.stateNode,gp(t),tx(t),$x();break}case N:{Bx(t);break}case A:gp(t);break;case H:bp(t);break;case fe:bp(t);break;case F:var p=t.type._context;vx(p,t);break;case Te:case xe:JS(t);break}}var fI=null;fI=new Set;var sb=!1,ua=!1,_F=typeof WeakSet=="function"?WeakSet:Set,at=null,Rp=null,Tp=null;function OF(e){zi(null,function(){throw e}),zo()}var AF=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Qt)try{Xs(),t.componentWillUnmount()}finally{Ws(e)}else t.componentWillUnmount()};function dI(e,t){try{ac(Br,e)}catch(s){Un(e,t,s)}}function kS(e,t,s){try{AF(e,s)}catch(c){Un(e,t,c)}}function jF(e,t,s){try{s.componentDidMount()}catch(c){Un(e,t,c)}}function pI(e,t){try{hI(e)}catch(s){Un(e,t,s)}}function Ip(e,t){var s=e.ref;if(s!==null)if(typeof s=="function"){var c;try{if(ve&&we&&e.mode&Qt)try{Xs(),c=s(null)}finally{Ws(e)}else c=s(null)}catch(p){Un(e,t,p)}typeof c=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Nt(e))}else s.current=null}function lb(e,t,s){try{s()}catch(c){Un(e,t,c)}}var vI=!1;function DF(e,t){WM(e.containerInfo),at=t,kF();var s=vI;return vI=!1,s}function kF(){for(;at!==null;){var e=at,t=e.child;(e.subtreeFlags&Ra)!==ht&&t!==null?(t.return=e,at=t):MF()}}function MF(){for(;at!==null;){var e=at;Xn(e);try{LF(e)}catch(s){Un(e,e.return,s)}Fn();var t=e.sibling;if(t!==null){t.return=e.return,at=t;return}at=e.return}}function LF(e){var t=e.alternate,s=e.flags;if((s&vr)!==ht){switch(Xn(e),e.tag){case C:case U:case q:break;case x:{if(t!==null){var c=t.memoizedProps,p=t.memoizedState,g=e.stateNode;e.type===e.elementType&&!Df&&(g.props!==e.memoizedProps&&v("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.",Nt(e)||"instance"),g.state!==e.memoizedState&&v("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.",Nt(e)||"instance"));var E=g.getSnapshotBeforeUpdate(e.elementType===e.type?c:Qo(e.type,c),p);{var I=fI;E===void 0&&!I.has(e.type)&&(I.add(e.type),v("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Nt(e)))}g.__reactInternalSnapshotBeforeUpdate=E}break}case T:{{var j=e.stateNode;gL(j.containerInfo)}break}case N:case O:case A:case he: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.")}Fn()}}function ns(e,t,s){var c=t.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var g=p.next,E=g;do{if((E.tag&e)===e){var I=E.destroy;E.destroy=void 0,I!==void 0&&((e&sa)!==wi?gg(t):(e&Br)!==wi&&Eu(t),(e&Hs)!==wi&&Jh(!0),lb(t,s,I),(e&Hs)!==wi&&Jh(!1),(e&sa)!==wi?yg():(e&Br)!==wi&&Jc())}E=E.next}while(E!==g)}}function ac(e,t){var s=t.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var p=c.next,g=p;do{if((g.tag&e)===e){(e&sa)!==wi?Av(t):(e&Br)!==wi&&bg(t);var E=g.create;(e&Hs)!==wi&&Jh(!0),g.destroy=E(),(e&Hs)!==wi&&Jh(!1),(e&sa)!==wi?md():(e&Br)!==wi&&jv();{var I=g.destroy;if(I!==void 0&&typeof I!="function"){var j=void 0;(g.tag&Br)!==ht?j="useLayoutEffect":(g.tag&Hs)!==ht?j="useInsertionEffect":j="useEffect";var P=void 0;I===null?P=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof I.then=="function"?P=`
|
|
191
|
+
Check the render method of \``+c+"`.");var p=c||"",g=e._debugSource;g&&(p=g.fileName+":"+g.lineNumber),xS[p]||(xS[p]=!0,v("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(typeof t.getDerivedStateFromProps=="function"){var E=Yt(t)||"Unknown";CS[E]||(v("%s: Function components do not support getDerivedStateFromProps.",E),CS[E]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var I=Yt(t)||"Unknown";bS[I]||(v("%s: Function components do not support contextType.",I),bS[I]=!0)}}}var TS={dehydrated:null,treeContext:null,retryLane:sr};function IS(e){return{baseLanes:e,cachePool:qP(),transitions:null}}function lF(e,t){var s=null;return{baseLanes:Dt(e.baseLanes,t),cachePool:s,transitions:e.transitions}}function uF(e,t,s,c){if(t!==null){var p=t.memoizedState;if(p===null)return!1}return Bx(e,Ih)}function cF(e,t){return lf(e.childLanes,t)}function JT(e,t,s){var c=t.pendingProps;bB(t)&&(t.flags|=Ot);var p=Ko.current,g=!1,E=(t.flags&Ot)!==ht;if(E||uF(p,e)?(g=!0,t.flags&=~Ot):(e===null||e.memoizedState!==null)&&(p=jP(p,uT)),p=yp(p),tc(t,p),e===null){lx(t);var I=t.memoizedState;if(I!==null){var j=I.dehydrated;if(j!==null)return hF(t,j)}var P=c.children,B=c.fallback;if(g){var te=fF(t,P,B,s),K=t.child;return K.memoizedState=IS(s),t.memoizedState=TS,te}else return NS(t,P)}else{var ce=e.memoizedState;if(ce!==null){var de=ce.dehydrated;if(de!==null)return mF(e,t,E,c,de,ce,s)}if(g){var be=c.fallback,qe=c.children,gt=pF(e,t,qe,be,s),ct=t.child,Wt=e.child.memoizedState;return ct.memoizedState=Wt===null?IS(s):lF(Wt,s),ct.childLanes=cF(e,s),t.memoizedState=TS,gt}else{var Ut=c.children,ie=dF(e,t,Ut,s);return t.memoizedState=null,ie}}}function NS(e,t,s){var c=e.mode,p={mode:"visible",children:t},g=_S(p,c);return g.return=e,e.child=g,g}function fF(e,t,s,c){var p=e.mode,g=e.child,E={mode:"hidden",children:t},I,j;return(p&ut)===mt&&g!==null?(I=g,I.childLanes=Ee,I.pendingProps=E,e.mode&Qt&&(I.actualDuration=0,I.actualStartTime=-1,I.selfBaseDuration=0,I.treeBaseDuration=0),j=uc(s,p,c,null)):(I=_S(E,p),j=uc(s,p,c,null)),I.return=e,j.return=e,I.sibling=j,e.child=I,j}function _S(e,t,s){return qI(e,t,Ee,null)}function qT(e,t){return Ff(e,t)}function dF(e,t,s,c){var p=e.child,g=p.sibling,E=qT(p,{mode:"visible",children:s});if((t.mode&ut)===mt&&(E.lanes=c),E.return=t,E.sibling=null,g!==null){var I=t.deletions;I===null?(t.deletions=[g],t.flags|=tn):I.push(g)}return t.child=E,E}function pF(e,t,s,c,p){var g=t.mode,E=e.child,I=E.sibling,j={mode:"hidden",children:s},P;if((g&ut)===mt&&t.child!==E){var B=t.child;P=B,P.childLanes=Ee,P.pendingProps=j,t.mode&Qt&&(P.actualDuration=0,P.actualStartTime=-1,P.selfBaseDuration=E.selfBaseDuration,P.treeBaseDuration=E.treeBaseDuration),t.deletions=null}else P=qT(E,j),P.subtreeFlags=E.subtreeFlags⪻var te;return I!==null?te=Ff(I,c):(te=uc(c,g,p,null),te.flags|=In),te.return=t,P.return=t,P.sibling=te,t.child=P,te}function ib(e,t,s,c){c!==null&&ux(c),mp(t,e.child,null,s);var p=t.pendingProps,g=p.children,E=NS(t,g);return E.flags|=In,t.memoizedState=null,E}function vF(e,t,s,c,p){var g=t.mode,E={mode:"visible",children:s},I=_S(E,g),j=uc(c,g,p,null);return j.flags|=In,I.return=t,j.return=t,I.sibling=j,t.child=I,(t.mode&ut)!==mt&&mp(t,e.child,null,p),j}function hF(e,t,s){return(e.mode&ut)===mt?(v("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=bt):XC(t)?e.lanes=er:e.lanes=Ja,null}function mF(e,t,s,c,p,g,E){if(s)if(t.flags&ra){t.flags&=~ra;var ie=hS(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return ib(e,t,E,ie)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Ot,null;var Ce=c.children,oe=c.fallback,Fe=vF(e,t,Ce,oe,E),Qe=t.child;return Qe.memoizedState=IS(E),t.memoizedState=TS,Fe}else{if(aP(),(t.mode&ut)===mt)return ib(e,t,E,null);if(XC(p)){var I,j,P;{var B=xL(p);I=B.digest,j=B.message,P=B.stack}var te;j?te=new Error(j):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=hS(te,I,P);return ib(e,t,E,K)}var ce=ja(E,e.childLanes);if(ts||ce){var de=mb();if(de!==null){var be=Ag(de,E);if(be!==sr&&be!==g.retryLane){g.retryLane=be;var qe=Mn;Ei(e,be),Wr(de,e,be,qe)}}JS();var gt=hS(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 ib(e,t,E,gt)}else if(b1(p)){t.flags|=Ot,t.child=e.child;var ct=zV.bind(null,e);return SL(p,ct),null}else{sP(t,p,g.treeContext);var Wt=c.children,Ut=NS(t,Wt);return Ut.flags|=io,Ut}}}function QT(e,t,s){e.lanes=Dt(e.lanes,t);var c=e.alternate;c!==null&&(c.lanes=Dt(c.lanes,t)),vx(e.return,t,s)}function gF(e,t,s){for(var c=t;c!==null;){if(c.tag===H){var p=c.memoizedState;p!==null&&QT(c,s,e)}else if(c.tag===fe)QT(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 yF(e){for(var t=e,s=null;t!==null;){var c=t.alternate;c!==null&&Fy(c)===null&&(s=t),t=t.sibling}return s}function bF(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!SS[e])if(SS[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{v('"%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:v('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else v('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function CF(e,t){e!==void 0&&!ab[e]&&(e!=="collapsed"&&e!=="hidden"?(ab[e]=!0,v('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(ab[e]=!0,v('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function KT(e,t){{var s=Zt(e),c=!s&&typeof Ki(e)=="function";if(s||c){var p=s?"array":"iterable";return v("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,t,p),!1}}return!0}function xF(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Zt(e)){for(var s=0;s<e.length;s++)if(!KT(e[s],s))return}else{var c=Ki(e);if(typeof c=="function"){var p=c.call(e);if(p)for(var g=p.next(),E=0;!g.done;g=p.next()){if(!KT(g.value,E))return;E++}}else v('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?',t)}}function OS(e,t,s,c,p){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:p}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=s,g.tailMode=p)}function eI(e,t,s){var c=t.pendingProps,p=c.revealOrder,g=c.tail,E=c.children;bF(p),CF(g,p),xF(E,p),qa(e,t,E,s);var I=Ko.current,j=Bx(I,Ih);if(j)I=zx(I,Ih),t.flags|=Ot;else{var P=e!==null&&(e.flags&Ot)!==ht;P&&gF(t,t.child,s),I=yp(I)}if(tc(t,I),(t.mode&ut)===mt)t.memoizedState=null;else switch(p){case"forwards":{var B=yF(t.child),te;B===null?(te=t.child,t.child=null):(te=B.sibling,B.sibling=null),OS(t,!1,te,B,g);break}case"backwards":{var K=null,ce=t.child;for(t.child=null;ce!==null;){var de=ce.alternate;if(de!==null&&Fy(de)===null){t.child=ce;break}var be=ce.sibling;ce.sibling=K,K=ce,ce=be}OS(t,!0,K,null,g);break}case"together":{OS(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function SF(e,t,s){Px(t,t.stateNode.containerInfo);var c=t.pendingProps;return e===null?t.child=mp(t,null,c,s):qa(e,t,c,s),t.child}var tI=!1;function EF(e,t,s){var c=t.type,p=c._context,g=t.pendingProps,E=t.memoizedProps,I=g.value;{"value"in g||tI||(tI=!0,v("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var j=t.type.propTypes;j&&Zo(j,g,"prop","Context.Provider")}if(U1(t,p,I),E!==null){var P=E.value;if(rt(P,I)){if(E.children===g.children&&!vy())return zl(e,t,s)}else gP(t,p,s)}var B=g.children;return qa(e,t,B,s),t.child}var nI=!1;function wF(e,t,s){var c=t.type;c._context===void 0?c!==c.Consumer&&(nI||(nI=!0,v("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=t.pendingProps,g=p.children;typeof g!="function"&&v("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."),hp(t,s);var E=jr(c);Su(t);var I;return Mh.current=t,Mr(!0),I=g(E),Mr(!1),bl(),t.flags|=Ui,qa(e,t,I,s),t.child}function Ph(){ts=!0}function ob(e,t){(t.mode&ut)===mt&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=In)}function zl(e,t,s){return e!==null&&(t.dependencies=e.dependencies),PT(),Zh(t.lanes),ja(s,t.childLanes)?(_P(e,t),t.child):null}function RF(e,t,s){{var c=t.return;if(c===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,s.index=t.index,s.sibling=t.sibling,s.return=t.return,s.ref=t.ref,t===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!==t;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=s}var g=c.deletions;return g===null?(c.deletions=[e],c.flags|=tn):g.push(e),s.flags|=In,s}}function AS(e,t){var s=e.lanes;return!!ja(s,t)}function TF(e,t,s){switch(t.tag){case T:YT(t),t.stateNode,pp();break;case N:sT(t);break;case x:{var c=t.type;Us(c)&&my(t);break}case A:Px(t,t.stateNode.containerInfo);break;case F:{var p=t.memoizedProps.value,g=t.type._context;U1(t,g,p);break}case z:{var E=ja(s,t.childLanes);E&&(t.flags|=st);{var I=t.stateNode;I.effectDuration=0,I.passiveEffectDuration=0}}break;case H:{var j=t.memoizedState;if(j!==null){if(j.dehydrated!==null)return tc(t,yp(Ko.current)),t.flags|=Ot,null;var P=t.child,B=P.childLanes;if(ja(s,B))return JT(e,t,s);tc(t,yp(Ko.current));var te=zl(e,t,s);return te!==null?te.sibling:null}else tc(t,yp(Ko.current));break}case fe:{var K=(e.flags&Ot)!==ht,ce=ja(s,t.childLanes);if(K){if(ce)return eI(e,t,s);t.flags|=Ot}var de=t.memoizedState;if(de!==null&&(de.rendering=null,de.tail=null,de.lastEffect=null),tc(t,Ko.current),ce)break;return null}case Te:case xe:return t.lanes=Ee,GT(e,t,s)}return zl(e,t,s)}function rI(e,t,s){if(t._debugNeedsRemount&&e!==null)return RF(e,t,sE(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var c=e.memoizedProps,p=t.pendingProps;if(c!==p||vy()||t.type!==e.type)ts=!0;else{var g=AS(e,s);if(!g&&(t.flags&Ot)===ht)return ts=!1,TF(e,t,s);(e.flags&cd)!==ht?ts=!0:ts=!1}}else if(ts=!1,oa()&&QL(t)){var E=t.index,I=KL();O1(t,I,E)}switch(t.lanes=Ee,t.tag){case R:return sF(e,t,t.type,s);case Re:{var j=t.elementType;return iF(e,t,j,s)}case C:{var P=t.type,B=t.pendingProps,te=t.elementType===P?B:Qo(P,B);return ES(e,t,P,te,s)}case x:{var K=t.type,ce=t.pendingProps,de=t.elementType===K?ce:Qo(K,ce);return XT(e,t,K,de,s)}case T:return nF(e,t,s);case N:return rF(e,t,s);case O:return aF(e,t);case H:return JT(e,t,s);case A:return SF(e,t,s);case U:{var be=t.type,qe=t.pendingProps,gt=t.elementType===be?qe:Qo(be,qe);return UT(e,t,be,gt,s)}case _:return KP(e,t,s);case L:return eF(e,t,s);case z:return tF(e,t,s);case F:return EF(e,t,s);case V:return wF(e,t,s);case J:{var ct=t.type,Wt=t.pendingProps,Ut=Qo(ct,Wt);if(t.type!==t.elementType){var ie=ct.propTypes;ie&&Zo(ie,Ut,"prop",Yt(ct))}return Ut=Qo(ct.type,Ut),HT(e,t,ct,Ut,s)}case q:return $T(e,t,t.type,t.pendingProps,s);case he:{var Ce=t.type,oe=t.pendingProps,Fe=t.elementType===Ce?oe:Qo(Ce,oe);return oF(e,t,Ce,Fe,s)}case fe:return eI(e,t,s);case Oe:break;case Te:return GT(e,t,s)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function wp(e){e.flags|=st}function aI(e){e.flags|=Wa,e.flags|=oo}var iI,jS,oI,sI;iI=function(e,t,s,c){for(var p=t.child;p!==null;){if(p.tag===N||p.tag===O)ZM(e,p.stateNode);else if(p.tag!==A){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===t)return;for(;p.sibling===null;){if(p.return===null||p.return===t)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},jS=function(e,t){},oI=function(e,t,s,c,p){var g=e.memoizedProps;if(g!==c){var E=t.stateNode,I=Fx(),j=qM(E,s,g,c,p,I);t.updateQueue=j,j&&wp(t)}},sI=function(e,t,s,c){s!==c&&wp(t)};function Fh(e,t){if(!oa())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,g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:g.sibling=null;break}}}function la(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=Ee,c=ht;if(t){if((e.mode&Qt)!==mt){for(var j=e.selfBaseDuration,P=e.child;P!==null;)s=Dt(s,Dt(P.lanes,P.childLanes)),c|=P.subtreeFlags&Pr,c|=P.flags&Pr,j+=P.treeBaseDuration,P=P.sibling;e.treeBaseDuration=j}else for(var B=e.child;B!==null;)s=Dt(s,Dt(B.lanes,B.childLanes)),c|=B.subtreeFlags&Pr,c|=B.flags&Pr,B.return=e,B=B.sibling;e.subtreeFlags|=c}else{if((e.mode&Qt)!==mt){for(var p=e.actualDuration,g=e.selfBaseDuration,E=e.child;E!==null;)s=Dt(s,Dt(E.lanes,E.childLanes)),c|=E.subtreeFlags,c|=E.flags,p+=E.actualDuration,g+=E.treeBaseDuration,E=E.sibling;e.actualDuration=p,e.treeBaseDuration=g}else for(var I=e.child;I!==null;)s=Dt(s,Dt(I.lanes,I.childLanes)),c|=I.subtreeFlags,c|=I.flags,I.return=e,I=I.sibling;e.subtreeFlags|=c}return e.childLanes=s,t}function IF(e,t,s){if(dP()&&(t.mode&ut)!==mt&&(t.flags&Ot)===ht)return P1(t),pp(),t.flags|=ra|Ts|Lr,!1;var c=xy(t);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(cP(t),la(t),(t.mode&Qt)!==mt){var p=s!==null;if(p){var g=t.child;g!==null&&(t.treeBaseDuration-=g.treeBaseDuration)}}return!1}else{if(pp(),(t.flags&Ot)===ht&&(t.memoizedState=null),t.flags|=st,la(t),(t.mode&Qt)!==mt){var E=s!==null;if(E){var I=t.child;I!==null&&(t.treeBaseDuration-=I.treeBaseDuration)}}return!1}else return F1(),!0}function lI(e,t,s){var c=t.pendingProps;switch(ax(t),t.tag){case R:case Re:case q:case C:case U:case _:case L:case z:case V:case J:return la(t),null;case x:{var p=t.type;return Us(p)&&hy(t),la(t),null}case T:{var g=t.stateNode;if(gp(t),ex(t),Hx(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),e===null||e.child===null){var E=xy(t);if(E)wp(t);else if(e!==null){var I=e.memoizedState;(!I.isDehydrated||(t.flags&ra)!==ht)&&(t.flags|=vr,F1())}}return jS(e,t),la(t),null}case N:{Vx(t);var j=oT(),P=t.type;if(e!==null&&t.stateNode!=null)oI(e,t,P,c,j),e.ref!==t.ref&&aI(t);else{if(!c){if(t.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 la(t),null}var B=Fx(),te=xy(t);if(te)lP(t,j,B)&&wp(t);else{var K=YM(P,c,j,B,t);iI(K,t,!1,!1),t.stateNode=K,JM(K,P,c,j)&&wp(t)}t.ref!==null&&aI(t)}return la(t),null}case O:{var ce=c;if(e&&t.stateNode!=null){var de=e.memoizedProps;sI(e,t,de,ce)}else{if(typeof ce!="string"&&t.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 be=oT(),qe=Fx(),gt=xy(t);gt?uP(t)&&wp(t):t.stateNode=QM(ce,be,qe,t)}return la(t),null}case H:{bp(t);var ct=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Wt=IF(e,t,ct);if(!Wt)return t.flags&Lr?t:null}if((t.flags&Ot)!==ht)return t.lanes=s,(t.mode&Qt)!==mt&&vS(t),t;var Ut=ct!==null,ie=e!==null&&e.memoizedState!==null;if(Ut!==ie&&Ut){var Ce=t.child;if(Ce.flags|=Rs,(t.mode&ut)!==mt){var oe=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!re);oe||Bx(Ko.current,uT)?NV():JS()}}var Fe=t.updateQueue;if(Fe!==null&&(t.flags|=st),la(t),(t.mode&Qt)!==mt&&Ut){var Qe=t.child;Qe!==null&&(t.treeBaseDuration-=Qe.treeBaseDuration)}return null}case A:return gp(t),jS(e,t),e===null&&GL(t.stateNode.containerInfo),la(t),null;case F:var Xe=t.type._context;return px(Xe,t),la(t),null;case he:{var Tt=t.type;return Us(Tt)&&hy(t),la(t),null}case fe:{bp(t);var jt=t.memoizedState;if(jt===null)return la(t),null;var Sn=(t.flags&Ot)!==ht,rn=jt.rendering;if(rn===null)if(Sn)Fh(jt,!1);else{var Er=OV()&&(e===null||(e.flags&Ot)===ht);if(!Er)for(var an=t.child;an!==null;){var mr=Fy(an);if(mr!==null){Sn=!0,t.flags|=Ot,Fh(jt,!1);var Pa=mr.updateQueue;return Pa!==null&&(t.updateQueue=Pa,t.flags|=st),t.subtreeFlags=ht,OP(t,s),tc(t,zx(Ko.current,Ih)),t.child}an=an.sibling}jt.tail!==null&&hr()>_I()&&(t.flags|=Ot,Sn=!0,Fh(jt,!1),t.lanes=Lv)}else{if(!Sn){var pa=Fy(rn);if(pa!==null){t.flags|=Ot,Sn=!0;var Wi=pa.updateQueue;if(Wi!==null&&(t.updateQueue=Wi,t.flags|=st),Fh(jt,!0),jt.tail===null&&jt.tailMode==="hidden"&&!rn.alternate&&!oa())return la(t),null}else hr()*2-jt.renderingStartTime>_I()&&s!==Ja&&(t.flags|=Ot,Sn=!0,Fh(jt,!1),t.lanes=Lv)}if(jt.isBackwards)rn.sibling=t.child,t.child=rn;else{var ei=jt.last;ei!==null?ei.sibling=rn:t.child=rn,jt.last=rn}}if(jt.tail!==null){var ti=jt.tail;jt.rendering=ti,jt.tail=ti.sibling,jt.renderingStartTime=hr(),ti.sibling=null;var Fa=Ko.current;return Sn?Fa=zx(Fa,Ih):Fa=yp(Fa),tc(t,Fa),ti}return la(t),null}case Oe:break;case Te:case xe:{ZS(t);var Wl=t.memoizedState,jp=Wl!==null;if(e!==null){var em=e.memoizedState,Js=em!==null;Js!==jp&&!Y&&(t.flags|=Rs)}return!jp||(t.mode&ut)===mt?la(t):ja(Zs,Ja)&&(la(t),t.subtreeFlags&(In|st)&&(t.flags|=Rs)),null}case je:return null;case Le:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function NF(e,t,s){switch(ax(t),t.tag){case x:{var c=t.type;Us(c)&&hy(t);var p=t.flags;return p&Lr?(t.flags=p&~Lr|Ot,(t.mode&Qt)!==mt&&vS(t),t):null}case T:{t.stateNode,gp(t),ex(t),Hx();var g=t.flags;return(g&Lr)!==ht&&(g&Ot)===ht?(t.flags=g&~Lr|Ot,t):null}case N:return Vx(t),null;case H:{bp(t);var E=t.memoizedState;if(E!==null&&E.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");pp()}var I=t.flags;return I&Lr?(t.flags=I&~Lr|Ot,(t.mode&Qt)!==mt&&vS(t),t):null}case fe:return bp(t),null;case A:return gp(t),null;case F:var j=t.type._context;return px(j,t),null;case Te:case xe:return ZS(t),null;case je:return null;default:return null}}function uI(e,t,s){switch(ax(t),t.tag){case x:{var c=t.type.childContextTypes;c!=null&&hy(t);break}case T:{t.stateNode,gp(t),ex(t),Hx();break}case N:{Vx(t);break}case A:gp(t);break;case H:bp(t);break;case fe:bp(t);break;case F:var p=t.type._context;px(p,t);break;case Te:case xe:ZS(t);break}}var cI=null;cI=new Set;var sb=!1,ua=!1,_F=typeof WeakSet=="function"?WeakSet:Set,at=null,Rp=null,Tp=null;function OF(e){zi(null,function(){throw e}),zo()}var AF=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Qt)try{Xs(),t.componentWillUnmount()}finally{Ws(e)}else t.componentWillUnmount()};function fI(e,t){try{ac(Br,e)}catch(s){Un(e,t,s)}}function DS(e,t,s){try{AF(e,s)}catch(c){Un(e,t,c)}}function jF(e,t,s){try{s.componentDidMount()}catch(c){Un(e,t,c)}}function dI(e,t){try{vI(e)}catch(s){Un(e,t,s)}}function Ip(e,t){var s=e.ref;if(s!==null)if(typeof s=="function"){var c;try{if(ve&&we&&e.mode&Qt)try{Xs(),c=s(null)}finally{Ws(e)}else c=s(null)}catch(p){Un(e,t,p)}typeof c=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Nt(e))}else s.current=null}function lb(e,t,s){try{s()}catch(c){Un(e,t,c)}}var pI=!1;function DF(e,t){WM(e.containerInfo),at=t,kF();var s=pI;return pI=!1,s}function kF(){for(;at!==null;){var e=at,t=e.child;(e.subtreeFlags&Ra)!==ht&&t!==null?(t.return=e,at=t):MF()}}function MF(){for(;at!==null;){var e=at;Xn(e);try{LF(e)}catch(s){Un(e,e.return,s)}Fn();var t=e.sibling;if(t!==null){t.return=e.return,at=t;return}at=e.return}}function LF(e){var t=e.alternate,s=e.flags;if((s&vr)!==ht){switch(Xn(e),e.tag){case C:case U:case q:break;case x:{if(t!==null){var c=t.memoizedProps,p=t.memoizedState,g=e.stateNode;e.type===e.elementType&&!Df&&(g.props!==e.memoizedProps&&v("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.",Nt(e)||"instance"),g.state!==e.memoizedState&&v("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.",Nt(e)||"instance"));var E=g.getSnapshotBeforeUpdate(e.elementType===e.type?c:Qo(e.type,c),p);{var I=cI;E===void 0&&!I.has(e.type)&&(I.add(e.type),v("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Nt(e)))}g.__reactInternalSnapshotBeforeUpdate=E}break}case T:{{var j=e.stateNode;gL(j.containerInfo)}break}case N:case O:case A:case he: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.")}Fn()}}function ns(e,t,s){var c=t.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var g=p.next,E=g;do{if((E.tag&e)===e){var I=E.destroy;E.destroy=void 0,I!==void 0&&((e&sa)!==wi?gg(t):(e&Br)!==wi&&Eu(t),(e&Hs)!==wi&&qh(!0),lb(t,s,I),(e&Hs)!==wi&&qh(!1),(e&sa)!==wi?yg():(e&Br)!==wi&&Jc())}E=E.next}while(E!==g)}}function ac(e,t){var s=t.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var p=c.next,g=p;do{if((g.tag&e)===e){(e&sa)!==wi?jv(t):(e&Br)!==wi&&bg(t);var E=g.create;(e&Hs)!==wi&&qh(!0),g.destroy=E(),(e&Hs)!==wi&&qh(!1),(e&sa)!==wi?md():(e&Br)!==wi&&Dv();{var I=g.destroy;if(I!==void 0&&typeof I!="function"){var j=void 0;(g.tag&Br)!==ht?j="useLayoutEffect":(g.tag&Hs)!==ht?j="useInsertionEffect":j="useEffect";var P=void 0;I===null?P=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof I.then=="function"?P=`
|
|
192
192
|
|
|
193
193
|
It looks like you wrote `+j+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
194
194
|
|
|
@@ -201,11 +201,11 @@ It looks like you wrote `+j+`(async () => ...) or returned a Promise. Instead, w
|
|
|
201
201
|
fetchData();
|
|
202
202
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
203
203
|
|
|
204
|
-
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:P=" You returned: "+I,v("%s must not return anything besides a function, which is used for clean-up.%s",j,P)}}}g=g.next}while(g!==p)}}function PF(e,t){if((t.flags&st)!==ht)switch(t.tag){case z:{var s=t.stateNode.passiveEffectDuration,c=t.memoizedProps,p=c.id,g=c.onPostCommit,E=LT(),I=t.alternate===null?"mount":"update";MT()&&(I="nested-update"),typeof g=="function"&&g(p,I,s,E);var j=t.return;e:for(;j!==null;){switch(j.tag){case T:var P=j.stateNode;P.passiveEffectDuration+=s;break e;case z:var B=j.stateNode;B.passiveEffectDuration+=s;break e}j=j.return}break}}}function FF(e,t,s,c){if((s.flags&Hi)!==ht)switch(s.tag){case C:case U:case q:{if(!ua)if(s.mode&Qt)try{Xs(),ac(Br|Vr,s)}finally{Ws(s)}else ac(Br|Vr,s);break}case x:{var p=s.stateNode;if(s.flags&st&&!ua)if(t===null)if(s.type===s.elementType&&!Df&&(p.props!==s.memoizedProps&&v("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.",Nt(s)||"instance"),p.state!==s.memoizedState&&v("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.",Nt(s)||"instance")),s.mode&Qt)try{Xs(),p.componentDidMount()}finally{Ws(s)}else p.componentDidMount();else{var g=s.elementType===s.type?t.memoizedProps:Qo(s.type,t.memoizedProps),E=t.memoizedState;if(s.type===s.elementType&&!Df&&(p.props!==s.memoizedProps&&v("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.",Nt(s)||"instance"),p.state!==s.memoizedState&&v("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.",Nt(s)||"instance")),s.mode&Qt)try{Xs(),p.componentDidUpdate(g,E,p.__reactInternalSnapshotBeforeUpdate)}finally{Ws(s)}else p.componentDidUpdate(g,E,p.__reactInternalSnapshotBeforeUpdate)}var I=s.updateQueue;I!==null&&(s.type===s.elementType&&!Df&&(p.props!==s.memoizedProps&&v("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.",Nt(s)||"instance"),p.state!==s.memoizedState&&v("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.",Nt(s)||"instance")),Z1(s,I,p));break}case T:{var j=s.updateQueue;if(j!==null){var P=null;if(s.child!==null)switch(s.child.tag){case N:P=s.child.stateNode;break;case x:P=s.child.stateNode;break}Z1(s,j,P)}break}case N:{var B=s.stateNode;if(t===null&&s.flags&st){var te=s.type,K=s.memoizedProps;rL(B,te,K)}break}case O:break;case A:break;case z:{{var ce=s.memoizedProps,de=ce.onCommit,be=ce.onRender,qe=s.stateNode.effectDuration,gt=LT(),ct=t===null?"mount":"update";MT()&&(ct="nested-update"),typeof be=="function"&&be(s.memoizedProps.id,ct,s.actualDuration,s.treeBaseDuration,s.actualStartTime,gt);{typeof de=="function"&&de(s.memoizedProps.id,ct,qe,gt),MV(s);var Wt=s.return;e:for(;Wt!==null;){switch(Wt.tag){case T:var Ut=Wt.stateNode;Ut.effectDuration+=qe;break e;case z:var ie=Wt.stateNode;ie.effectDuration+=qe;break e}Wt=Wt.return}}}break}case H:{WF(e,s);break}case fe:case he:case Oe:case Te: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.")}ua||s.flags&Wa&&hI(s)}function VF(e){switch(e.tag){case C:case U:case q:{if(e.mode&Qt)try{Xs(),dI(e,e.return)}finally{Ws(e)}else dI(e,e.return);break}case x:{var t=e.stateNode;typeof t.componentDidMount=="function"&&jF(e,e.return,t),pI(e,e.return);break}case N:{pI(e,e.return);break}}}function BF(e,t){for(var s=null,c=e;;){if(c.tag===N){if(s===null){s=c;try{var p=c.stateNode;t?pL(p):hL(c.stateNode,c.memoizedProps)}catch(E){Un(e,e.return,E)}}}else if(c.tag===O){if(s===null)try{var g=c.stateNode;t?vL(g):mL(g,c.memoizedProps)}catch(E){Un(e,e.return,E)}}else if(!((c.tag===Te||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 hI(e){var t=e.ref;if(t!==null){var s=e.stateNode,c;switch(e.tag){case N:c=s;break;default:c=s}if(typeof t=="function"){var p;if(e.mode&Qt)try{Xs(),p=t(c)}finally{Ws(e)}else p=t(c);typeof p=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Nt(e))}else t.hasOwnProperty("current")||v("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Nt(e)),t.current=c}}function zF(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function mI(e){var t=e.alternate;t!==null&&(e.alternate=null,mI(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===N){var s=e.stateNode;s!==null&&YL(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 UF(e){for(var t=e.return;t!==null;){if(gI(t))return t;t=t.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 gI(e){return e.tag===N||e.tag===T||e.tag===A}function yI(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||gI(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==N&&t.tag!==O&&t.tag!==ge;){if(t.flags&In||t.child===null||t.tag===A)continue e;t.child.return=t,t=t.child}if(!(t.flags&In))return t.stateNode}}function HF(e){var t=UF(e);switch(t.tag){case N:{var s=t.stateNode;t.flags&ci&&(b1(s),t.flags&=~ci);var c=yI(e);LS(e,c,s);break}case T:case A:{var p=t.stateNode.containerInfo,g=yI(e);MS(e,g,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 MS(e,t,s){var c=e.tag,p=c===N||c===O;if(p){var g=e.stateNode;t?uL(s,g,t):sL(s,g)}else if(c!==A){var E=e.child;if(E!==null){MS(E,t,s);for(var I=E.sibling;I!==null;)MS(I,t,s),I=I.sibling}}}function LS(e,t,s){var c=e.tag,p=c===N||c===O;if(p){var g=e.stateNode;t?lL(s,g,t):oL(s,g)}else if(c!==A){var E=e.child;if(E!==null){LS(E,t,s);for(var I=E.sibling;I!==null;)LS(I,t,s),I=I.sibling}}}var ca=null,rs=!1;function $F(e,t,s){{var c=t;e:for(;c!==null;){switch(c.tag){case N:{ca=c.stateNode,rs=!1;break e}case T:{ca=c.stateNode.containerInfo,rs=!0;break e}case A:{ca=c.stateNode.containerInfo,rs=!0;break e}}c=c.return}if(ca===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");bI(e,t,s),ca=null,rs=!1}zF(s)}function ic(e,t,s){for(var c=s.child;c!==null;)bI(e,t,c),c=c.sibling}function bI(e,t,s){switch(hg(s),s.tag){case N:ua||Ip(s,t);case O:{{var c=ca,p=rs;ca=null,ic(e,t,s),ca=c,rs=p,ca!==null&&(rs?fL(ca,s.stateNode):cL(ca,s.stateNode))}return}case ge:{ca!==null&&(rs?dL(ca,s.stateNode):XC(ca,s.stateNode));return}case A:{{var g=ca,E=rs;ca=s.stateNode.containerInfo,rs=!0,ic(e,t,s),ca=g,rs=E}return}case C:case U:case J:case q:{if(!ua){var I=s.updateQueue;if(I!==null){var j=I.lastEffect;if(j!==null){var P=j.next,B=P;do{var te=B,K=te.destroy,ce=te.tag;K!==void 0&&((ce&Hs)!==wi?lb(s,t,K):(ce&Br)!==wi&&(Eu(s),s.mode&Qt?(Xs(),lb(s,t,K),Ws(s)):lb(s,t,K),Jc())),B=B.next}while(B!==P)}}}ic(e,t,s);return}case x:{if(!ua){Ip(s,t);var de=s.stateNode;typeof de.componentWillUnmount=="function"&&kS(s,t,de)}ic(e,t,s);return}case Oe:{ic(e,t,s);return}case Te:{if(s.mode&ut){var be=ua;ua=be||s.memoizedState!==null,ic(e,t,s),ua=be}else ic(e,t,s);break}default:{ic(e,t,s);return}}}function GF(e){e.memoizedState}function WF(e,t){var s=t.memoizedState;if(s===null){var c=t.alternate;if(c!==null){var p=c.memoizedState;if(p!==null){var g=p.dehydrated;g!==null&&AL(g)}}}}function CI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new _F),t.forEach(function(c){var p=UV.bind(null,e,c);if(!s.has(c)){if(s.add(c),Za)if(Rp!==null&&Tp!==null)Zh(Tp,Rp);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");c.then(p,p)}})}}function XF(e,t,s){Rp=s,Tp=e,Xn(t),xI(t,e),Xn(t),Rp=null,Tp=null}function as(e,t,s){var c=t.deletions;if(c!==null)for(var p=0;p<c.length;p++){var g=c[p];try{$F(e,t,g)}catch(j){Un(g,t,j)}}var E=Nc();if(t.subtreeFlags&Ta)for(var I=t.child;I!==null;)Xn(I),xI(I,e),I=I.sibling;Xn(E)}function xI(e,t,s){var c=e.alternate,p=e.flags;switch(e.tag){case C:case U:case J:case q:{if(as(t,e),Ys(e),p&st){try{ns(Hs|Vr,e,e.return),ac(Hs|Vr,e)}catch(Tt){Un(e,e.return,Tt)}if(e.mode&Qt){try{Xs(),ns(Br|Vr,e,e.return)}catch(Tt){Un(e,e.return,Tt)}Ws(e)}else try{ns(Br|Vr,e,e.return)}catch(Tt){Un(e,e.return,Tt)}}return}case x:{as(t,e),Ys(e),p&Wa&&c!==null&&Ip(c,c.return);return}case N:{as(t,e),Ys(e),p&Wa&&c!==null&&Ip(c,c.return);{if(e.flags&ci){var g=e.stateNode;try{b1(g)}catch(Tt){Un(e,e.return,Tt)}}if(p&st){var E=e.stateNode;if(E!=null){var I=e.memoizedProps,j=c!==null?c.memoizedProps:I,P=e.type,B=e.updateQueue;if(e.updateQueue=null,B!==null)try{aL(E,B,P,j,I,e)}catch(Tt){Un(e,e.return,Tt)}}}}return}case O:{if(as(t,e),Ys(e),p&st){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,ce=c!==null?c.memoizedProps:K;try{iL(te,ce,K)}catch(Tt){Un(e,e.return,Tt)}}return}case T:{if(as(t,e),Ys(e),p&st&&c!==null){var de=c.memoizedState;if(de.isDehydrated)try{OL(t.containerInfo)}catch(Tt){Un(e,e.return,Tt)}}return}case A:{as(t,e),Ys(e);return}case H:{as(t,e),Ys(e);var be=e.child;if(be.flags&Rs){var qe=be.stateNode,gt=be.memoizedState,ct=gt!==null;if(qe.isHidden=ct,ct){var Wt=be.alternate!==null&&be.alternate.memoizedState!==null;Wt||IV()}}if(p&st){try{GF(e)}catch(Tt){Un(e,e.return,Tt)}CI(e)}return}case Te:{var Ut=c!==null&&c.memoizedState!==null;if(e.mode&ut){var ie=ua;ua=ie||Ut,as(t,e),ua=ie}else as(t,e);if(Ys(e),p&Rs){var Ce=e.stateNode,oe=e.memoizedState,Fe=oe!==null,Qe=e;if(Ce.isHidden=Fe,Fe&&!Ut&&(Qe.mode&ut)!==mt){at=Qe;for(var Xe=Qe.child;Xe!==null;)at=Xe,ZF(Xe),Xe=Xe.sibling}BF(Qe,Fe)}return}case fe:{as(t,e),Ys(e),p&st&&CI(e);return}case Oe:return;default:{as(t,e),Ys(e);return}}}function Ys(e){var t=e.flags;if(t&In){try{HF(e)}catch(s){Un(e,e.return,s)}e.flags&=~In}t&io&&(e.flags&=~io)}function YF(e,t,s){Rp=s,Tp=t,at=e,SI(e,t,s),Rp=null,Tp=null}function SI(e,t,s){for(var c=(e.mode&ut)!==mt;at!==null;){var p=at,g=p.child;if(p.tag===Te&&c){var E=p.memoizedState!==null,I=E||sb;if(I){PS(e,t,s);continue}else{var j=p.alternate,P=j!==null&&j.memoizedState!==null,B=P||ua,te=sb,K=ua;sb=I,ua=B,ua&&!K&&(at=p,JF(p));for(var ce=g;ce!==null;)at=ce,SI(ce,t,s),ce=ce.sibling;at=p,sb=te,ua=K,PS(e,t,s);continue}}(p.subtreeFlags&Hi)!==ht&&g!==null?(g.return=p,at=g):PS(e,t,s)}}function PS(e,t,s){for(;at!==null;){var c=at;if((c.flags&Hi)!==ht){var p=c.alternate;Xn(c);try{FF(t,p,c,s)}catch(E){Un(c,c.return,E)}Fn()}if(c===e){at=null;return}var g=c.sibling;if(g!==null){g.return=c.return,at=g;return}at=c.return}}function ZF(e){for(;at!==null;){var t=at,s=t.child;switch(t.tag){case C:case U:case J:case q:{if(t.mode&Qt)try{Xs(),ns(Br,t,t.return)}finally{Ws(t)}else ns(Br,t,t.return);break}case x:{Ip(t,t.return);var c=t.stateNode;typeof c.componentWillUnmount=="function"&&kS(t,t.return,c);break}case N:{Ip(t,t.return);break}case Te:{var p=t.memoizedState!==null;if(p){EI(e);continue}break}}s!==null?(s.return=t,at=s):EI(e)}}function EI(e){for(;at!==null;){var t=at;if(t===e){at=null;return}var s=t.sibling;if(s!==null){s.return=t.return,at=s;return}at=t.return}}function JF(e){for(;at!==null;){var t=at,s=t.child;if(t.tag===Te){var c=t.memoizedState!==null;if(c){wI(e);continue}}s!==null?(s.return=t,at=s):wI(e)}}function wI(e){for(;at!==null;){var t=at;Xn(t);try{VF(t)}catch(c){Un(t,t.return,c)}if(Fn(),t===e){at=null;return}var s=t.sibling;if(s!==null){s.return=t.return,at=s;return}at=t.return}}function qF(e,t,s,c){at=t,QF(t,e,s,c)}function QF(e,t,s,c){for(;at!==null;){var p=at,g=p.child;(p.subtreeFlags&Ia)!==ht&&g!==null?(g.return=p,at=g):KF(e,t,s,c)}}function KF(e,t,s,c){for(;at!==null;){var p=at;if((p.flags&wa)!==ht){Xn(p);try{eV(t,p,s,c)}catch(E){Un(p,p.return,E)}Fn()}if(p===e){at=null;return}var g=p.sibling;if(g!==null){g.return=p.return,at=g;return}at=p.return}}function eV(e,t,s,c){switch(t.tag){case C:case U:case q:{if(t.mode&Qt){vS();try{ac(sa|Vr,t)}finally{pS(t)}}else ac(sa|Vr,t);break}}}function tV(e){at=e,nV()}function nV(){for(;at!==null;){var e=at,t=e.child;if((at.flags&tn)!==ht){var s=e.deletions;if(s!==null){for(var c=0;c<s.length;c++){var p=s[c];at=p,iV(p,e)}{var g=e.alternate;if(g!==null){var E=g.child;if(E!==null){g.child=null;do{var I=E.sibling;E.sibling=null,E=I}while(E!==null)}}}at=e}}(e.subtreeFlags&Ia)!==ht&&t!==null?(t.return=e,at=t):rV()}}function rV(){for(;at!==null;){var e=at;(e.flags&wa)!==ht&&(Xn(e),aV(e),Fn());var t=e.sibling;if(t!==null){t.return=e.return,at=t;return}at=e.return}}function aV(e){switch(e.tag){case C:case U:case q:{e.mode&Qt?(vS(),ns(sa|Vr,e,e.return),pS(e)):ns(sa|Vr,e,e.return);break}}}function iV(e,t){for(;at!==null;){var s=at;Xn(s),sV(s,t),Fn();var c=s.child;c!==null?(c.return=s,at=c):oV(e)}}function oV(e){for(;at!==null;){var t=at,s=t.sibling,c=t.return;if(mI(t),t===e){at=null;return}if(s!==null){s.return=c,at=s;return}at=c}}function sV(e,t){switch(e.tag){case C:case U:case q:{e.mode&Qt?(vS(),ns(sa,e,t),pS(e)):ns(sa,e,t);break}}}function lV(e){switch(e.tag){case C:case U:case q:{try{ac(Br|Vr,e)}catch(s){Un(e,e.return,s)}break}case x:{var t=e.stateNode;try{t.componentDidMount()}catch(s){Un(e,e.return,s)}break}}}function uV(e){switch(e.tag){case C:case U:case q:{try{ac(sa|Vr,e)}catch(t){Un(e,e.return,t)}break}}}function cV(e){switch(e.tag){case C:case U:case q:{try{ns(Br|Vr,e,e.return)}catch(s){Un(e,e.return,s)}break}case x:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&kS(e,e.return,t);break}}}function fV(e){switch(e.tag){case C:case U:case q:try{ns(sa|Vr,e,e.return)}catch(t){Un(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Fh=Symbol.for;Fh("selector.component"),Fh("selector.has_pseudo_class"),Fh("selector.role"),Fh("selector.test_id"),Fh("selector.text")}var dV=[];function pV(){dV.forEach(function(e){return e()})}var vV=u.ReactCurrentActQueue;function hV(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&t!==!1}}function RI(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&vV.current!==null&&v("The current testing environment is not configured to support act(...)"),e}}var mV=Math.ceil,FS=u.ReactCurrentDispatcher,VS=u.ReactCurrentOwner,fa=u.ReactCurrentBatchConfig,is=u.ReactCurrentActQueue,Hr=0,TI=1,da=2,Co=4,Ul=0,Vh=1,kf=2,ub=3,Bh=4,II=5,BS=6,Gt=Hr,Qa=null,fr=null,$r=Ee,Zs=Ee,zS=Zu(Ee),Gr=Ul,zh=null,cb=Ee,Uh=Ee,fb=Ee,Hh=null,Ri=null,US=0,NI=500,_I=1/0,gV=500,Hl=null;function $h(){_I=hr()+gV}function OI(){return _I}var db=!1,HS=null,Np=null,Mf=!1,oc=null,Gh=Ee,$S=[],GS=null,yV=50,Wh=0,WS=null,XS=!1,pb=!1,bV=50,_p=0,vb=null,Xh=Mn,hb=Ee,AI=!1;function mb(){return Qa}function Ka(){return(Gt&(da|Co))!==Hr?hr():(Xh!==Mn||(Xh=hr()),Xh)}function sc(e){var t=e.mode;if((t&ut)===mt)return bt;if((Gt&da)!==Hr&&$r!==Ee)return Ou($r);var s=hP()!==vP;if(s){if(fa.transition!==null){var c=fa.transition;c._updatedFibers||(c._updatedFibers=new Set),c._updatedFibers.add(e)}return hb===sr&&(hb=Ng()),hb}var p=gi();if(p!==sr)return p;var g=KM();return g}function CV(e){var t=e.mode;return(t&ut)===mt?bt:Aa()}function Wr(e,t,s,c){$V(),AI&&v("useInsertionEffect must not schedule updates."),XS&&(pb=!0),Nl(e,s,c),(Gt&da)!==Ee&&e===Qa?XV(t):(Za&&Ld(e,t,s),YV(t),e===Qa&&((Gt&da)===Hr&&(Uh=Dt(Uh,s)),Gr===Bh&&lc(e,$r)),Ti(e,c),s===bt&&Gt===Hr&&(t.mode&ut)===mt&&!is.isBatchingLegacy&&($h(),O1()))}function xV(e,t,s){var c=e.current;c.lanes=t,Nl(e,t,s),Ti(e,s)}function SV(e){return(Gt&da)!==Hr}function Ti(e,t){var s=e.callbackNode;dC(e,t);var c=af(e,e===Qa?$r:Ee);if(c===Ee){s!==null&&XI(s),e.callbackNode=null,e.callbackPriority=sr;return}var p=lr(c),g=e.callbackPriority;if(g===p&&!(is.current!==null&&s!==eE)){s==null&&g!==bt&&v("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&XI(s);var E;if(p===bt)e.tag===Ju?(is.isBatchingLegacy!==null&&(is.didScheduleLegacyUpdate=!0),qL(kI.bind(null,e))):_1(kI.bind(null,e)),is.current!==null?is.current.push(qu):tL(function(){(Gt&(da|Co))===Hr&&qu()}),E=null;else{var I;switch(Fr(c)){case ur:I=Na;break;case Go:I=Cu;break;case co:I=so;break;case Au:I=Yc;break;default:I=so;break}E=tE(I,jI.bind(null,e))}e.callbackPriority=p,e.callbackNode=E}function jI(e,t){if($P(),Xh=Mn,hb=Ee,(Gt&(da|Co))!==Hr)throw new Error("Should not already be working.");var s=e.callbackNode,c=Gl();if(c&&e.callbackNode!==s)return null;var p=af(e,e===Qa?$r:Ee);if(p===Ee)return null;var g=!sf(e,p)&&!Ig(e,p)&&!t,E=g?jV(e,p):yb(e,p);if(E!==Ul){if(E===kf){var I=Ms(e);I!==Ee&&(p=I,E=YS(e,I))}if(E===Vh){var j=zh;throw Lf(e,Ee),lc(e,p),Ti(e,hr()),j}if(E===BS)lc(e,p);else{var P=!sf(e,p),B=e.current.alternate;if(P&&!wV(B)){if(E=yb(e,p),E===kf){var te=Ms(e);te!==Ee&&(p=te,E=YS(e,te))}if(E===Vh){var K=zh;throw Lf(e,Ee),lc(e,p),Ti(e,hr()),K}}e.finishedWork=B,e.finishedLanes=p,EV(e,E,p)}}return Ti(e,hr()),e.callbackNode===s?jI.bind(null,e):null}function YS(e,t){var s=Hh;if(Pd(e)){var c=Lf(e,t);c.flags|=ra,$L(e.containerInfo)}var p=yb(e,t);if(p!==kf){var g=Ri;Ri=s,g!==null&&DI(g)}return p}function DI(e){Ri===null?Ri=e:Ri.push.apply(Ri,e)}function EV(e,t,s){switch(t){case Ul:case Vh:throw new Error("Root did not complete. This is a bug in React.");case kf:{Pf(e,Ri,Hl);break}case ub:{if(lc(e,s),wg(s)&&!YI()){var c=US+NI-hr();if(c>10){var p=af(e,Ee);if(p!==Ee)break;var g=e.suspendedLanes;if(!Il(g,s)){Ka(),kd(e,g);break}e.timeoutHandle=GC(Pf.bind(null,e,Ri,Hl),c);break}}Pf(e,Ri,Hl);break}case Bh:{if(lc(e,s),Tg(s))break;if(!YI()){var E=Ad(e,s),I=E,j=hr()-I,P=HV(j)-j;if(P>10){e.timeoutHandle=GC(Pf.bind(null,e,Ri,Hl),P);break}}Pf(e,Ri,Hl);break}case II:{Pf(e,Ri,Hl);break}default:throw new Error("Unknown root exit status.")}}function wV(e){for(var t=e;;){if(t.flags&ml){var s=t.updateQueue;if(s!==null){var c=s.stores;if(c!==null)for(var p=0;p<c.length;p++){var g=c[p],E=g.getSnapshot,I=g.value;try{if(!rt(E(),I))return!1}catch{return!1}}}}var j=t.child;if(t.subtreeFlags&ml&&j!==null){j.return=t,t=j;continue}if(t===e)return!0;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 lc(e,t){t=lf(t,fb),t=lf(t,Uh),Og(e,t)}function kI(e){if(GP(),(Gt&(da|Co))!==Hr)throw new Error("Should not already be working.");Gl();var t=af(e,Ee);if(!ja(t,bt))return Ti(e,hr()),null;var s=yb(e,t);if(e.tag!==Ju&&s===kf){var c=Ms(e);c!==Ee&&(t=c,s=YS(e,c))}if(s===Vh){var p=zh;throw Lf(e,Ee),lc(e,t),Ti(e,hr()),p}if(s===BS)throw new Error("Root did not complete. This is a bug in React.");var g=e.current.alternate;return e.finishedWork=g,e.finishedLanes=t,Pf(e,Ri,Hl),Ti(e,hr()),null}function RV(e,t){t!==Ee&&(Vv(e,Dt(t,bt)),Ti(e,hr()),(Gt&(da|Co))===Hr&&($h(),qu()))}function ZS(e,t){var s=Gt;Gt|=TI;try{return e(t)}finally{Gt=s,Gt===Hr&&!is.isBatchingLegacy&&($h(),O1())}}function TV(e,t,s,c,p){var g=gi(),E=fa.transition;try{return fa.transition=null,tr(ur),e(t,s,c,p)}finally{tr(g),fa.transition=E,Gt===Hr&&$h()}}function $l(e){oc!==null&&oc.tag===Ju&&(Gt&(da|Co))===Hr&&Gl();var t=Gt;Gt|=TI;var s=fa.transition,c=gi();try{return fa.transition=null,tr(ur),e?e():void 0}finally{tr(c),fa.transition=s,Gt=t,(Gt&(da|Co))===Hr&&qu()}}function MI(){return(Gt&(da|Co))!==Hr}function gb(e,t){Ma(zS,Zs,e),Zs=Dt(Zs,t)}function JS(e){Zs=zS.current,ka(zS,e)}function Lf(e,t){e.finishedWork=null,e.finishedLanes=Ee;var s=e.timeoutHandle;if(s!==WC&&(e.timeoutHandle=WC,eL(s)),fr!==null)for(var c=fr.return;c!==null;){var p=c.alternate;cI(p,c),c=c.return}Qa=e;var g=Ff(e.current,null);return fr=g,$r=Zs=t,Gr=Ul,zh=null,cb=Ee,Uh=Ee,fb=Ee,Hh=null,Ri=null,bP(),qo.discardPendingWarnings(),g}function LI(e,t){do{var s=fr;try{if(Ry(),dT(),Fn(),VS.current=null,s===null||s.return===null){Gr=Vh,zh=t,fr=null;return}if(ve&&s.mode&Qt&&rb(s,!0),le)if(bl(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var c=t;xg(s,c,$r)}else Cg(s,t,$r);JP(e,s.return,s,t,$r),BI(s)}catch(p){t=p,fr===s&&s!==null?(s=s.return,fr=s):s=fr;continue}return}while(!0)}function PI(){var e=FS.current;return FS.current=Qy,e===null?Qy:e}function FI(e){FS.current=e}function IV(){US=hr()}function Yh(e){cb=Dt(e,cb)}function NV(){Gr===Ul&&(Gr=ub)}function qS(){(Gr===Ul||Gr===ub||Gr===kf)&&(Gr=Bh),Qa!==null&&(of(cb)||of(Uh))&&lc(Qa,$r)}function _V(e){Gr!==Bh&&(Gr=kf),Hh===null?Hh=[e]:Hh.push(e)}function OV(){return Gr===Ul}function yb(e,t){var s=Gt;Gt|=da;var c=PI();if(Qa!==e||$r!==t){if(Za){var p=e.memoizedUpdaters;p.size>0&&(Zh(e,$r),p.clear()),Bv(e,t)}Hl=cf(),Lf(e,t)}Ru(t);do try{AV();break}catch(g){LI(e,g)}while(!0);if(Ry(),Gt=s,FI(c),fr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return js(),Qa=null,$r=Ee,Gr}function AV(){for(;fr!==null;)VI(fr)}function jV(e,t){var s=Gt;Gt|=da;var c=PI();if(Qa!==e||$r!==t){if(Za){var p=e.memoizedUpdaters;p.size>0&&(Zh(e,$r),p.clear()),Bv(e,t)}Hl=cf(),$h(),Lf(e,t)}Ru(t);do try{DV();break}catch(g){LI(e,g)}while(!0);return Ry(),FI(c),Gt=s,fr!==null?(Qc(),Ul):(js(),Qa=null,$r=Ee,Gr)}function DV(){for(;fr!==null&&!pg();)VI(fr)}function VI(e){var t=e.alternate;Xn(e);var s;(e.mode&Qt)!==mt?(dS(e),s=QS(t,e,Zs),rb(e,!0)):s=QS(t,e,Zs),Fn(),e.memoizedProps=e.pendingProps,s===null?BI(e):fr=s,VS.current=null}function BI(e){var t=e;do{var s=t.alternate,c=t.return;if((t.flags&Ts)===ht){Xn(t);var p=void 0;if((t.mode&Qt)===mt?p=uI(s,t,Zs):(dS(t),p=uI(s,t,Zs),rb(t,!1)),Fn(),p!==null){fr=p;return}}else{var g=NF(s,t);if(g!==null){g.flags&=Uo,fr=g;return}if((t.mode&Qt)!==mt){rb(t,!1);for(var E=t.actualDuration,I=t.child;I!==null;)E+=I.actualDuration,I=I.sibling;t.actualDuration=E}if(c!==null)c.flags|=Ts,c.subtreeFlags=ht,c.deletions=null;else{Gr=BS,fr=null;return}}var j=t.sibling;if(j!==null){fr=j;return}t=c,fr=t}while(t!==null);Gr===Ul&&(Gr=II)}function Pf(e,t,s){var c=gi(),p=fa.transition;try{fa.transition=null,tr(ur),kV(e,t,s,c)}finally{fa.transition=p,tr(c)}return null}function kV(e,t,s,c){do Gl();while(oc!==null);if(GV(),(Gt&(da|Co))!==Hr)throw new Error("Should not already be working.");var p=e.finishedWork,g=e.finishedLanes;if(mg(g),p===null)return Zc(),null;if(g===Ee&&v("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=Ee,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=sr;var E=Dt(p.lanes,p.childLanes);Md(e,E),e===Qa&&(Qa=null,fr=null,$r=Ee),((p.subtreeFlags&Ia)!==ht||(p.flags&Ia)!==ht)&&(Mf||(Mf=!0,GS=s,tE(so,function(){return Gl(),null})));var I=(p.subtreeFlags&(Ra|Ta|Hi|Ia))!==ht,j=(p.flags&(Ra|Ta|Hi|Ia))!==ht;if(I||j){var P=fa.transition;fa.transition=null;var B=gi();tr(ur);var te=Gt;Gt|=Co,VS.current=null,DF(e,p),PT(),XF(e,p,g),XM(e.containerInfo),e.current=p,wu(g),YF(p,e,g),Sg(),bu(),Gt=te,tr(B),fa.transition=P}else e.current=p,PT();var K=Mf;if(Mf?(Mf=!1,oc=e,Gh=g):(_p=0,vb=null),E=e.pendingLanes,E===Ee&&(Np=null),K||$I(e.current,!1),Os(p.stateNode,c),Za&&e.memoizedUpdaters.clear(),pV(),Ti(e,hr()),t!==null)for(var ce=e.onRecoverableError,de=0;de<t.length;de++){var be=t[de],qe=be.stack,gt=be.digest;ce(be.value,{componentStack:qe,digest:gt})}if(db){db=!1;var ct=HS;throw HS=null,ct}return ja(Gh,bt)&&e.tag!==Ju&&Gl(),E=e.pendingLanes,ja(E,bt)?(HP(),e===WS?Wh++:(Wh=0,WS=e)):Wh=0,qu(),Zc(),null}function Gl(){if(oc!==null){var e=Fr(Gh),t=mC(co,e),s=fa.transition,c=gi();try{return fa.transition=null,tr(t),LV()}finally{tr(c),fa.transition=s}}return!1}function MV(e){$S.push(e),Mf||(Mf=!0,tE(so,function(){return Gl(),null}))}function LV(){if(oc===null)return!1;var e=GS;GS=null;var t=oc,s=Gh;if(oc=null,Gh=Ee,(Gt&(da|Co))!==Hr)throw new Error("Cannot flush passive effects while already rendering.");XS=!0,pb=!1,qc(s);var c=Gt;Gt|=Co,tV(t.current),qF(t,t.current,s,e);{var p=$S;$S=[];for(var g=0;g<p.length;g++){var E=p[g];PF(t,E)}}lo(),$I(t.current,!0),Gt=c,qu(),pb?t===vb?_p++:(_p=0,vb=t):_p=0,XS=!1,pb=!1,Ov(t);{var I=t.current.stateNode;I.effectDuration=0,I.passiveEffectDuration=0}return!0}function zI(e){return Np!==null&&Np.has(e)}function PV(e){Np===null?Np=new Set([e]):Np.add(e)}function FV(e){db||(db=!0,HS=e)}var VV=FV;function UI(e,t,s){var c=jf(s,t),p=VT(e,c,bt),g=Ku(e,p,bt),E=Ka();g!==null&&(Nl(g,bt,E),Ti(g,E))}function Un(e,t,s){if(OF(s),Jh(!1),e.tag===T){UI(e,e,s);return}var c=null;for(c=t;c!==null;){if(c.tag===T){UI(c,e,s);return}else if(c.tag===x){var p=c.type,g=c.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&!zI(g)){var E=jf(s,e),I=yS(c,E,bt),j=Ku(c,I,bt),P=Ka();j!==null&&(Nl(j,bt,P),Ti(j,P));return}}c=c.return}v(`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.
|
|
204
|
+
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:P=" You returned: "+I,v("%s must not return anything besides a function, which is used for clean-up.%s",j,P)}}}g=g.next}while(g!==p)}}function PF(e,t){if((t.flags&st)!==ht)switch(t.tag){case z:{var s=t.stateNode.passiveEffectDuration,c=t.memoizedProps,p=c.id,g=c.onPostCommit,E=MT(),I=t.alternate===null?"mount":"update";kT()&&(I="nested-update"),typeof g=="function"&&g(p,I,s,E);var j=t.return;e:for(;j!==null;){switch(j.tag){case T:var P=j.stateNode;P.passiveEffectDuration+=s;break e;case z:var B=j.stateNode;B.passiveEffectDuration+=s;break e}j=j.return}break}}}function FF(e,t,s,c){if((s.flags&Hi)!==ht)switch(s.tag){case C:case U:case q:{if(!ua)if(s.mode&Qt)try{Xs(),ac(Br|Vr,s)}finally{Ws(s)}else ac(Br|Vr,s);break}case x:{var p=s.stateNode;if(s.flags&st&&!ua)if(t===null)if(s.type===s.elementType&&!Df&&(p.props!==s.memoizedProps&&v("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.",Nt(s)||"instance"),p.state!==s.memoizedState&&v("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.",Nt(s)||"instance")),s.mode&Qt)try{Xs(),p.componentDidMount()}finally{Ws(s)}else p.componentDidMount();else{var g=s.elementType===s.type?t.memoizedProps:Qo(s.type,t.memoizedProps),E=t.memoizedState;if(s.type===s.elementType&&!Df&&(p.props!==s.memoizedProps&&v("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.",Nt(s)||"instance"),p.state!==s.memoizedState&&v("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.",Nt(s)||"instance")),s.mode&Qt)try{Xs(),p.componentDidUpdate(g,E,p.__reactInternalSnapshotBeforeUpdate)}finally{Ws(s)}else p.componentDidUpdate(g,E,p.__reactInternalSnapshotBeforeUpdate)}var I=s.updateQueue;I!==null&&(s.type===s.elementType&&!Df&&(p.props!==s.memoizedProps&&v("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.",Nt(s)||"instance"),p.state!==s.memoizedState&&v("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.",Nt(s)||"instance")),Y1(s,I,p));break}case T:{var j=s.updateQueue;if(j!==null){var P=null;if(s.child!==null)switch(s.child.tag){case N:P=s.child.stateNode;break;case x:P=s.child.stateNode;break}Y1(s,j,P)}break}case N:{var B=s.stateNode;if(t===null&&s.flags&st){var te=s.type,K=s.memoizedProps;rL(B,te,K)}break}case O:break;case A:break;case z:{{var ce=s.memoizedProps,de=ce.onCommit,be=ce.onRender,qe=s.stateNode.effectDuration,gt=MT(),ct=t===null?"mount":"update";kT()&&(ct="nested-update"),typeof be=="function"&&be(s.memoizedProps.id,ct,s.actualDuration,s.treeBaseDuration,s.actualStartTime,gt);{typeof de=="function"&&de(s.memoizedProps.id,ct,qe,gt),MV(s);var Wt=s.return;e:for(;Wt!==null;){switch(Wt.tag){case T:var Ut=Wt.stateNode;Ut.effectDuration+=qe;break e;case z:var ie=Wt.stateNode;ie.effectDuration+=qe;break e}Wt=Wt.return}}}break}case H:{WF(e,s);break}case fe:case he:case Oe:case Te: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.")}ua||s.flags&Wa&&vI(s)}function VF(e){switch(e.tag){case C:case U:case q:{if(e.mode&Qt)try{Xs(),fI(e,e.return)}finally{Ws(e)}else fI(e,e.return);break}case x:{var t=e.stateNode;typeof t.componentDidMount=="function"&&jF(e,e.return,t),dI(e,e.return);break}case N:{dI(e,e.return);break}}}function BF(e,t){for(var s=null,c=e;;){if(c.tag===N){if(s===null){s=c;try{var p=c.stateNode;t?pL(p):hL(c.stateNode,c.memoizedProps)}catch(E){Un(e,e.return,E)}}}else if(c.tag===O){if(s===null)try{var g=c.stateNode;t?vL(g):mL(g,c.memoizedProps)}catch(E){Un(e,e.return,E)}}else if(!((c.tag===Te||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 vI(e){var t=e.ref;if(t!==null){var s=e.stateNode,c;switch(e.tag){case N:c=s;break;default:c=s}if(typeof t=="function"){var p;if(e.mode&Qt)try{Xs(),p=t(c)}finally{Ws(e)}else p=t(c);typeof p=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Nt(e))}else t.hasOwnProperty("current")||v("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Nt(e)),t.current=c}}function zF(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function hI(e){var t=e.alternate;t!==null&&(e.alternate=null,hI(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===N){var s=e.stateNode;s!==null&&YL(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 UF(e){for(var t=e.return;t!==null;){if(mI(t))return t;t=t.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 mI(e){return e.tag===N||e.tag===T||e.tag===A}function gI(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||mI(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==N&&t.tag!==O&&t.tag!==ge;){if(t.flags&In||t.child===null||t.tag===A)continue e;t.child.return=t,t=t.child}if(!(t.flags&In))return t.stateNode}}function HF(e){var t=UF(e);switch(t.tag){case N:{var s=t.stateNode;t.flags&ci&&(y1(s),t.flags&=~ci);var c=gI(e);MS(e,c,s);break}case T:case A:{var p=t.stateNode.containerInfo,g=gI(e);kS(e,g,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 kS(e,t,s){var c=e.tag,p=c===N||c===O;if(p){var g=e.stateNode;t?uL(s,g,t):sL(s,g)}else if(c!==A){var E=e.child;if(E!==null){kS(E,t,s);for(var I=E.sibling;I!==null;)kS(I,t,s),I=I.sibling}}}function MS(e,t,s){var c=e.tag,p=c===N||c===O;if(p){var g=e.stateNode;t?lL(s,g,t):oL(s,g)}else if(c!==A){var E=e.child;if(E!==null){MS(E,t,s);for(var I=E.sibling;I!==null;)MS(I,t,s),I=I.sibling}}}var ca=null,rs=!1;function $F(e,t,s){{var c=t;e:for(;c!==null;){switch(c.tag){case N:{ca=c.stateNode,rs=!1;break e}case T:{ca=c.stateNode.containerInfo,rs=!0;break e}case A:{ca=c.stateNode.containerInfo,rs=!0;break e}}c=c.return}if(ca===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");yI(e,t,s),ca=null,rs=!1}zF(s)}function ic(e,t,s){for(var c=s.child;c!==null;)yI(e,t,c),c=c.sibling}function yI(e,t,s){switch(hg(s),s.tag){case N:ua||Ip(s,t);case O:{{var c=ca,p=rs;ca=null,ic(e,t,s),ca=c,rs=p,ca!==null&&(rs?fL(ca,s.stateNode):cL(ca,s.stateNode))}return}case ge:{ca!==null&&(rs?dL(ca,s.stateNode):WC(ca,s.stateNode));return}case A:{{var g=ca,E=rs;ca=s.stateNode.containerInfo,rs=!0,ic(e,t,s),ca=g,rs=E}return}case C:case U:case J:case q:{if(!ua){var I=s.updateQueue;if(I!==null){var j=I.lastEffect;if(j!==null){var P=j.next,B=P;do{var te=B,K=te.destroy,ce=te.tag;K!==void 0&&((ce&Hs)!==wi?lb(s,t,K):(ce&Br)!==wi&&(Eu(s),s.mode&Qt?(Xs(),lb(s,t,K),Ws(s)):lb(s,t,K),Jc())),B=B.next}while(B!==P)}}}ic(e,t,s);return}case x:{if(!ua){Ip(s,t);var de=s.stateNode;typeof de.componentWillUnmount=="function"&&DS(s,t,de)}ic(e,t,s);return}case Oe:{ic(e,t,s);return}case Te:{if(s.mode&ut){var be=ua;ua=be||s.memoizedState!==null,ic(e,t,s),ua=be}else ic(e,t,s);break}default:{ic(e,t,s);return}}}function GF(e){e.memoizedState}function WF(e,t){var s=t.memoizedState;if(s===null){var c=t.alternate;if(c!==null){var p=c.memoizedState;if(p!==null){var g=p.dehydrated;g!==null&&AL(g)}}}}function bI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new _F),t.forEach(function(c){var p=UV.bind(null,e,c);if(!s.has(c)){if(s.add(c),Za)if(Rp!==null&&Tp!==null)Jh(Tp,Rp);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");c.then(p,p)}})}}function XF(e,t,s){Rp=s,Tp=e,Xn(t),CI(t,e),Xn(t),Rp=null,Tp=null}function as(e,t,s){var c=t.deletions;if(c!==null)for(var p=0;p<c.length;p++){var g=c[p];try{$F(e,t,g)}catch(j){Un(g,t,j)}}var E=Nc();if(t.subtreeFlags&Ta)for(var I=t.child;I!==null;)Xn(I),CI(I,e),I=I.sibling;Xn(E)}function CI(e,t,s){var c=e.alternate,p=e.flags;switch(e.tag){case C:case U:case J:case q:{if(as(t,e),Ys(e),p&st){try{ns(Hs|Vr,e,e.return),ac(Hs|Vr,e)}catch(Tt){Un(e,e.return,Tt)}if(e.mode&Qt){try{Xs(),ns(Br|Vr,e,e.return)}catch(Tt){Un(e,e.return,Tt)}Ws(e)}else try{ns(Br|Vr,e,e.return)}catch(Tt){Un(e,e.return,Tt)}}return}case x:{as(t,e),Ys(e),p&Wa&&c!==null&&Ip(c,c.return);return}case N:{as(t,e),Ys(e),p&Wa&&c!==null&&Ip(c,c.return);{if(e.flags&ci){var g=e.stateNode;try{y1(g)}catch(Tt){Un(e,e.return,Tt)}}if(p&st){var E=e.stateNode;if(E!=null){var I=e.memoizedProps,j=c!==null?c.memoizedProps:I,P=e.type,B=e.updateQueue;if(e.updateQueue=null,B!==null)try{aL(E,B,P,j,I,e)}catch(Tt){Un(e,e.return,Tt)}}}}return}case O:{if(as(t,e),Ys(e),p&st){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,ce=c!==null?c.memoizedProps:K;try{iL(te,ce,K)}catch(Tt){Un(e,e.return,Tt)}}return}case T:{if(as(t,e),Ys(e),p&st&&c!==null){var de=c.memoizedState;if(de.isDehydrated)try{OL(t.containerInfo)}catch(Tt){Un(e,e.return,Tt)}}return}case A:{as(t,e),Ys(e);return}case H:{as(t,e),Ys(e);var be=e.child;if(be.flags&Rs){var qe=be.stateNode,gt=be.memoizedState,ct=gt!==null;if(qe.isHidden=ct,ct){var Wt=be.alternate!==null&&be.alternate.memoizedState!==null;Wt||IV()}}if(p&st){try{GF(e)}catch(Tt){Un(e,e.return,Tt)}bI(e)}return}case Te:{var Ut=c!==null&&c.memoizedState!==null;if(e.mode&ut){var ie=ua;ua=ie||Ut,as(t,e),ua=ie}else as(t,e);if(Ys(e),p&Rs){var Ce=e.stateNode,oe=e.memoizedState,Fe=oe!==null,Qe=e;if(Ce.isHidden=Fe,Fe&&!Ut&&(Qe.mode&ut)!==mt){at=Qe;for(var Xe=Qe.child;Xe!==null;)at=Xe,ZF(Xe),Xe=Xe.sibling}BF(Qe,Fe)}return}case fe:{as(t,e),Ys(e),p&st&&bI(e);return}case Oe:return;default:{as(t,e),Ys(e);return}}}function Ys(e){var t=e.flags;if(t&In){try{HF(e)}catch(s){Un(e,e.return,s)}e.flags&=~In}t&io&&(e.flags&=~io)}function YF(e,t,s){Rp=s,Tp=t,at=e,xI(e,t,s),Rp=null,Tp=null}function xI(e,t,s){for(var c=(e.mode&ut)!==mt;at!==null;){var p=at,g=p.child;if(p.tag===Te&&c){var E=p.memoizedState!==null,I=E||sb;if(I){LS(e,t,s);continue}else{var j=p.alternate,P=j!==null&&j.memoizedState!==null,B=P||ua,te=sb,K=ua;sb=I,ua=B,ua&&!K&&(at=p,JF(p));for(var ce=g;ce!==null;)at=ce,xI(ce,t,s),ce=ce.sibling;at=p,sb=te,ua=K,LS(e,t,s);continue}}(p.subtreeFlags&Hi)!==ht&&g!==null?(g.return=p,at=g):LS(e,t,s)}}function LS(e,t,s){for(;at!==null;){var c=at;if((c.flags&Hi)!==ht){var p=c.alternate;Xn(c);try{FF(t,p,c,s)}catch(E){Un(c,c.return,E)}Fn()}if(c===e){at=null;return}var g=c.sibling;if(g!==null){g.return=c.return,at=g;return}at=c.return}}function ZF(e){for(;at!==null;){var t=at,s=t.child;switch(t.tag){case C:case U:case J:case q:{if(t.mode&Qt)try{Xs(),ns(Br,t,t.return)}finally{Ws(t)}else ns(Br,t,t.return);break}case x:{Ip(t,t.return);var c=t.stateNode;typeof c.componentWillUnmount=="function"&&DS(t,t.return,c);break}case N:{Ip(t,t.return);break}case Te:{var p=t.memoizedState!==null;if(p){SI(e);continue}break}}s!==null?(s.return=t,at=s):SI(e)}}function SI(e){for(;at!==null;){var t=at;if(t===e){at=null;return}var s=t.sibling;if(s!==null){s.return=t.return,at=s;return}at=t.return}}function JF(e){for(;at!==null;){var t=at,s=t.child;if(t.tag===Te){var c=t.memoizedState!==null;if(c){EI(e);continue}}s!==null?(s.return=t,at=s):EI(e)}}function EI(e){for(;at!==null;){var t=at;Xn(t);try{VF(t)}catch(c){Un(t,t.return,c)}if(Fn(),t===e){at=null;return}var s=t.sibling;if(s!==null){s.return=t.return,at=s;return}at=t.return}}function qF(e,t,s,c){at=t,QF(t,e,s,c)}function QF(e,t,s,c){for(;at!==null;){var p=at,g=p.child;(p.subtreeFlags&Ia)!==ht&&g!==null?(g.return=p,at=g):KF(e,t,s,c)}}function KF(e,t,s,c){for(;at!==null;){var p=at;if((p.flags&wa)!==ht){Xn(p);try{eV(t,p,s,c)}catch(E){Un(p,p.return,E)}Fn()}if(p===e){at=null;return}var g=p.sibling;if(g!==null){g.return=p.return,at=g;return}at=p.return}}function eV(e,t,s,c){switch(t.tag){case C:case U:case q:{if(t.mode&Qt){pS();try{ac(sa|Vr,t)}finally{dS(t)}}else ac(sa|Vr,t);break}}}function tV(e){at=e,nV()}function nV(){for(;at!==null;){var e=at,t=e.child;if((at.flags&tn)!==ht){var s=e.deletions;if(s!==null){for(var c=0;c<s.length;c++){var p=s[c];at=p,iV(p,e)}{var g=e.alternate;if(g!==null){var E=g.child;if(E!==null){g.child=null;do{var I=E.sibling;E.sibling=null,E=I}while(E!==null)}}}at=e}}(e.subtreeFlags&Ia)!==ht&&t!==null?(t.return=e,at=t):rV()}}function rV(){for(;at!==null;){var e=at;(e.flags&wa)!==ht&&(Xn(e),aV(e),Fn());var t=e.sibling;if(t!==null){t.return=e.return,at=t;return}at=e.return}}function aV(e){switch(e.tag){case C:case U:case q:{e.mode&Qt?(pS(),ns(sa|Vr,e,e.return),dS(e)):ns(sa|Vr,e,e.return);break}}}function iV(e,t){for(;at!==null;){var s=at;Xn(s),sV(s,t),Fn();var c=s.child;c!==null?(c.return=s,at=c):oV(e)}}function oV(e){for(;at!==null;){var t=at,s=t.sibling,c=t.return;if(hI(t),t===e){at=null;return}if(s!==null){s.return=c,at=s;return}at=c}}function sV(e,t){switch(e.tag){case C:case U:case q:{e.mode&Qt?(pS(),ns(sa,e,t),dS(e)):ns(sa,e,t);break}}}function lV(e){switch(e.tag){case C:case U:case q:{try{ac(Br|Vr,e)}catch(s){Un(e,e.return,s)}break}case x:{var t=e.stateNode;try{t.componentDidMount()}catch(s){Un(e,e.return,s)}break}}}function uV(e){switch(e.tag){case C:case U:case q:{try{ac(sa|Vr,e)}catch(t){Un(e,e.return,t)}break}}}function cV(e){switch(e.tag){case C:case U:case q:{try{ns(Br|Vr,e,e.return)}catch(s){Un(e,e.return,s)}break}case x:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&DS(e,e.return,t);break}}}function fV(e){switch(e.tag){case C:case U:case q:try{ns(sa|Vr,e,e.return)}catch(t){Un(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Vh=Symbol.for;Vh("selector.component"),Vh("selector.has_pseudo_class"),Vh("selector.role"),Vh("selector.test_id"),Vh("selector.text")}var dV=[];function pV(){dV.forEach(function(e){return e()})}var vV=u.ReactCurrentActQueue;function hV(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&t!==!1}}function wI(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&vV.current!==null&&v("The current testing environment is not configured to support act(...)"),e}}var mV=Math.ceil,PS=u.ReactCurrentDispatcher,FS=u.ReactCurrentOwner,fa=u.ReactCurrentBatchConfig,is=u.ReactCurrentActQueue,Hr=0,RI=1,da=2,Co=4,Ul=0,Bh=1,kf=2,ub=3,zh=4,TI=5,VS=6,Gt=Hr,Qa=null,fr=null,$r=Ee,Zs=Ee,BS=Zu(Ee),Gr=Ul,Uh=null,cb=Ee,Hh=Ee,fb=Ee,$h=null,Ri=null,zS=0,II=500,NI=1/0,gV=500,Hl=null;function Gh(){NI=hr()+gV}function _I(){return NI}var db=!1,US=null,Np=null,Mf=!1,oc=null,Wh=Ee,HS=[],$S=null,yV=50,Xh=0,GS=null,WS=!1,pb=!1,bV=50,_p=0,vb=null,Yh=Mn,hb=Ee,OI=!1;function mb(){return Qa}function Ka(){return(Gt&(da|Co))!==Hr?hr():(Yh!==Mn||(Yh=hr()),Yh)}function sc(e){var t=e.mode;if((t&ut)===mt)return bt;if((Gt&da)!==Hr&&$r!==Ee)return Ou($r);var s=hP()!==vP;if(s){if(fa.transition!==null){var c=fa.transition;c._updatedFibers||(c._updatedFibers=new Set),c._updatedFibers.add(e)}return hb===sr&&(hb=Ng()),hb}var p=gi();if(p!==sr)return p;var g=KM();return g}function CV(e){var t=e.mode;return(t&ut)===mt?bt:Aa()}function Wr(e,t,s,c){$V(),OI&&v("useInsertionEffect must not schedule updates."),WS&&(pb=!0),Nl(e,s,c),(Gt&da)!==Ee&&e===Qa?XV(t):(Za&&Ld(e,t,s),YV(t),e===Qa&&((Gt&da)===Hr&&(Hh=Dt(Hh,s)),Gr===zh&&lc(e,$r)),Ti(e,c),s===bt&&Gt===Hr&&(t.mode&ut)===mt&&!is.isBatchingLegacy&&(Gh(),_1()))}function xV(e,t,s){var c=e.current;c.lanes=t,Nl(e,t,s),Ti(e,s)}function SV(e){return(Gt&da)!==Hr}function Ti(e,t){var s=e.callbackNode;fC(e,t);var c=af(e,e===Qa?$r:Ee);if(c===Ee){s!==null&&WI(s),e.callbackNode=null,e.callbackPriority=sr;return}var p=lr(c),g=e.callbackPriority;if(g===p&&!(is.current!==null&&s!==KS)){s==null&&g!==bt&&v("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&WI(s);var E;if(p===bt)e.tag===Ju?(is.isBatchingLegacy!==null&&(is.didScheduleLegacyUpdate=!0),qL(DI.bind(null,e))):N1(DI.bind(null,e)),is.current!==null?is.current.push(qu):tL(function(){(Gt&(da|Co))===Hr&&qu()}),E=null;else{var I;switch(Fr(c)){case ur:I=Na;break;case Go:I=Cu;break;case co:I=so;break;case Au:I=Yc;break;default:I=so;break}E=eE(I,AI.bind(null,e))}e.callbackPriority=p,e.callbackNode=E}function AI(e,t){if($P(),Yh=Mn,hb=Ee,(Gt&(da|Co))!==Hr)throw new Error("Should not already be working.");var s=e.callbackNode,c=Gl();if(c&&e.callbackNode!==s)return null;var p=af(e,e===Qa?$r:Ee);if(p===Ee)return null;var g=!sf(e,p)&&!Ig(e,p)&&!t,E=g?jV(e,p):yb(e,p);if(E!==Ul){if(E===kf){var I=Ms(e);I!==Ee&&(p=I,E=XS(e,I))}if(E===Bh){var j=Uh;throw Lf(e,Ee),lc(e,p),Ti(e,hr()),j}if(E===VS)lc(e,p);else{var P=!sf(e,p),B=e.current.alternate;if(P&&!wV(B)){if(E=yb(e,p),E===kf){var te=Ms(e);te!==Ee&&(p=te,E=XS(e,te))}if(E===Bh){var K=Uh;throw Lf(e,Ee),lc(e,p),Ti(e,hr()),K}}e.finishedWork=B,e.finishedLanes=p,EV(e,E,p)}}return Ti(e,hr()),e.callbackNode===s?AI.bind(null,e):null}function XS(e,t){var s=$h;if(Pd(e)){var c=Lf(e,t);c.flags|=ra,$L(e.containerInfo)}var p=yb(e,t);if(p!==kf){var g=Ri;Ri=s,g!==null&&jI(g)}return p}function jI(e){Ri===null?Ri=e:Ri.push.apply(Ri,e)}function EV(e,t,s){switch(t){case Ul:case Bh:throw new Error("Root did not complete. This is a bug in React.");case kf:{Pf(e,Ri,Hl);break}case ub:{if(lc(e,s),wg(s)&&!XI()){var c=zS+II-hr();if(c>10){var p=af(e,Ee);if(p!==Ee)break;var g=e.suspendedLanes;if(!Il(g,s)){Ka(),kd(e,g);break}e.timeoutHandle=$C(Pf.bind(null,e,Ri,Hl),c);break}}Pf(e,Ri,Hl);break}case zh:{if(lc(e,s),Tg(s))break;if(!XI()){var E=Ad(e,s),I=E,j=hr()-I,P=HV(j)-j;if(P>10){e.timeoutHandle=$C(Pf.bind(null,e,Ri,Hl),P);break}}Pf(e,Ri,Hl);break}case TI:{Pf(e,Ri,Hl);break}default:throw new Error("Unknown root exit status.")}}function wV(e){for(var t=e;;){if(t.flags&ml){var s=t.updateQueue;if(s!==null){var c=s.stores;if(c!==null)for(var p=0;p<c.length;p++){var g=c[p],E=g.getSnapshot,I=g.value;try{if(!rt(E(),I))return!1}catch{return!1}}}}var j=t.child;if(t.subtreeFlags&ml&&j!==null){j.return=t,t=j;continue}if(t===e)return!0;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 lc(e,t){t=lf(t,fb),t=lf(t,Hh),Og(e,t)}function DI(e){if(GP(),(Gt&(da|Co))!==Hr)throw new Error("Should not already be working.");Gl();var t=af(e,Ee);if(!ja(t,bt))return Ti(e,hr()),null;var s=yb(e,t);if(e.tag!==Ju&&s===kf){var c=Ms(e);c!==Ee&&(t=c,s=XS(e,c))}if(s===Bh){var p=Uh;throw Lf(e,Ee),lc(e,t),Ti(e,hr()),p}if(s===VS)throw new Error("Root did not complete. This is a bug in React.");var g=e.current.alternate;return e.finishedWork=g,e.finishedLanes=t,Pf(e,Ri,Hl),Ti(e,hr()),null}function RV(e,t){t!==Ee&&(Bv(e,Dt(t,bt)),Ti(e,hr()),(Gt&(da|Co))===Hr&&(Gh(),qu()))}function YS(e,t){var s=Gt;Gt|=RI;try{return e(t)}finally{Gt=s,Gt===Hr&&!is.isBatchingLegacy&&(Gh(),_1())}}function TV(e,t,s,c,p){var g=gi(),E=fa.transition;try{return fa.transition=null,tr(ur),e(t,s,c,p)}finally{tr(g),fa.transition=E,Gt===Hr&&Gh()}}function $l(e){oc!==null&&oc.tag===Ju&&(Gt&(da|Co))===Hr&&Gl();var t=Gt;Gt|=RI;var s=fa.transition,c=gi();try{return fa.transition=null,tr(ur),e?e():void 0}finally{tr(c),fa.transition=s,Gt=t,(Gt&(da|Co))===Hr&&qu()}}function kI(){return(Gt&(da|Co))!==Hr}function gb(e,t){Ma(BS,Zs,e),Zs=Dt(Zs,t)}function ZS(e){Zs=BS.current,ka(BS,e)}function Lf(e,t){e.finishedWork=null,e.finishedLanes=Ee;var s=e.timeoutHandle;if(s!==GC&&(e.timeoutHandle=GC,eL(s)),fr!==null)for(var c=fr.return;c!==null;){var p=c.alternate;uI(p,c),c=c.return}Qa=e;var g=Ff(e.current,null);return fr=g,$r=Zs=t,Gr=Ul,Uh=null,cb=Ee,Hh=Ee,fb=Ee,$h=null,Ri=null,bP(),qo.discardPendingWarnings(),g}function MI(e,t){do{var s=fr;try{if(Ry(),fT(),Fn(),FS.current=null,s===null||s.return===null){Gr=Bh,Uh=t,fr=null;return}if(ve&&s.mode&Qt&&rb(s,!0),le)if(bl(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var c=t;xg(s,c,$r)}else Cg(s,t,$r);JP(e,s.return,s,t,$r),VI(s)}catch(p){t=p,fr===s&&s!==null?(s=s.return,fr=s):s=fr;continue}return}while(!0)}function LI(){var e=PS.current;return PS.current=Qy,e===null?Qy:e}function PI(e){PS.current=e}function IV(){zS=hr()}function Zh(e){cb=Dt(e,cb)}function NV(){Gr===Ul&&(Gr=ub)}function JS(){(Gr===Ul||Gr===ub||Gr===kf)&&(Gr=zh),Qa!==null&&(of(cb)||of(Hh))&&lc(Qa,$r)}function _V(e){Gr!==zh&&(Gr=kf),$h===null?$h=[e]:$h.push(e)}function OV(){return Gr===Ul}function yb(e,t){var s=Gt;Gt|=da;var c=LI();if(Qa!==e||$r!==t){if(Za){var p=e.memoizedUpdaters;p.size>0&&(Jh(e,$r),p.clear()),zv(e,t)}Hl=cf(),Lf(e,t)}Ru(t);do try{AV();break}catch(g){MI(e,g)}while(!0);if(Ry(),Gt=s,PI(c),fr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return js(),Qa=null,$r=Ee,Gr}function AV(){for(;fr!==null;)FI(fr)}function jV(e,t){var s=Gt;Gt|=da;var c=LI();if(Qa!==e||$r!==t){if(Za){var p=e.memoizedUpdaters;p.size>0&&(Jh(e,$r),p.clear()),zv(e,t)}Hl=cf(),Gh(),Lf(e,t)}Ru(t);do try{DV();break}catch(g){MI(e,g)}while(!0);return Ry(),PI(c),Gt=s,fr!==null?(Qc(),Ul):(js(),Qa=null,$r=Ee,Gr)}function DV(){for(;fr!==null&&!pg();)FI(fr)}function FI(e){var t=e.alternate;Xn(e);var s;(e.mode&Qt)!==mt?(fS(e),s=qS(t,e,Zs),rb(e,!0)):s=qS(t,e,Zs),Fn(),e.memoizedProps=e.pendingProps,s===null?VI(e):fr=s,FS.current=null}function VI(e){var t=e;do{var s=t.alternate,c=t.return;if((t.flags&Ts)===ht){Xn(t);var p=void 0;if((t.mode&Qt)===mt?p=lI(s,t,Zs):(fS(t),p=lI(s,t,Zs),rb(t,!1)),Fn(),p!==null){fr=p;return}}else{var g=NF(s,t);if(g!==null){g.flags&=Uo,fr=g;return}if((t.mode&Qt)!==mt){rb(t,!1);for(var E=t.actualDuration,I=t.child;I!==null;)E+=I.actualDuration,I=I.sibling;t.actualDuration=E}if(c!==null)c.flags|=Ts,c.subtreeFlags=ht,c.deletions=null;else{Gr=VS,fr=null;return}}var j=t.sibling;if(j!==null){fr=j;return}t=c,fr=t}while(t!==null);Gr===Ul&&(Gr=TI)}function Pf(e,t,s){var c=gi(),p=fa.transition;try{fa.transition=null,tr(ur),kV(e,t,s,c)}finally{fa.transition=p,tr(c)}return null}function kV(e,t,s,c){do Gl();while(oc!==null);if(GV(),(Gt&(da|Co))!==Hr)throw new Error("Should not already be working.");var p=e.finishedWork,g=e.finishedLanes;if(mg(g),p===null)return Zc(),null;if(g===Ee&&v("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=Ee,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=sr;var E=Dt(p.lanes,p.childLanes);Md(e,E),e===Qa&&(Qa=null,fr=null,$r=Ee),((p.subtreeFlags&Ia)!==ht||(p.flags&Ia)!==ht)&&(Mf||(Mf=!0,$S=s,eE(so,function(){return Gl(),null})));var I=(p.subtreeFlags&(Ra|Ta|Hi|Ia))!==ht,j=(p.flags&(Ra|Ta|Hi|Ia))!==ht;if(I||j){var P=fa.transition;fa.transition=null;var B=gi();tr(ur);var te=Gt;Gt|=Co,FS.current=null,DF(e,p),LT(),XF(e,p,g),XM(e.containerInfo),e.current=p,wu(g),YF(p,e,g),Sg(),bu(),Gt=te,tr(B),fa.transition=P}else e.current=p,LT();var K=Mf;if(Mf?(Mf=!1,oc=e,Wh=g):(_p=0,vb=null),E=e.pendingLanes,E===Ee&&(Np=null),K||HI(e.current,!1),Os(p.stateNode,c),Za&&e.memoizedUpdaters.clear(),pV(),Ti(e,hr()),t!==null)for(var ce=e.onRecoverableError,de=0;de<t.length;de++){var be=t[de],qe=be.stack,gt=be.digest;ce(be.value,{componentStack:qe,digest:gt})}if(db){db=!1;var ct=US;throw US=null,ct}return ja(Wh,bt)&&e.tag!==Ju&&Gl(),E=e.pendingLanes,ja(E,bt)?(HP(),e===GS?Xh++:(Xh=0,GS=e)):Xh=0,qu(),Zc(),null}function Gl(){if(oc!==null){var e=Fr(Wh),t=hC(co,e),s=fa.transition,c=gi();try{return fa.transition=null,tr(t),LV()}finally{tr(c),fa.transition=s}}return!1}function MV(e){HS.push(e),Mf||(Mf=!0,eE(so,function(){return Gl(),null}))}function LV(){if(oc===null)return!1;var e=$S;$S=null;var t=oc,s=Wh;if(oc=null,Wh=Ee,(Gt&(da|Co))!==Hr)throw new Error("Cannot flush passive effects while already rendering.");WS=!0,pb=!1,qc(s);var c=Gt;Gt|=Co,tV(t.current),qF(t,t.current,s,e);{var p=HS;HS=[];for(var g=0;g<p.length;g++){var E=p[g];PF(t,E)}}lo(),HI(t.current,!0),Gt=c,qu(),pb?t===vb?_p++:(_p=0,vb=t):_p=0,WS=!1,pb=!1,Av(t);{var I=t.current.stateNode;I.effectDuration=0,I.passiveEffectDuration=0}return!0}function BI(e){return Np!==null&&Np.has(e)}function PV(e){Np===null?Np=new Set([e]):Np.add(e)}function FV(e){db||(db=!0,US=e)}var VV=FV;function zI(e,t,s){var c=jf(s,t),p=FT(e,c,bt),g=Ku(e,p,bt),E=Ka();g!==null&&(Nl(g,bt,E),Ti(g,E))}function Un(e,t,s){if(OF(s),qh(!1),e.tag===T){zI(e,e,s);return}var c=null;for(c=t;c!==null;){if(c.tag===T){zI(c,e,s);return}else if(c.tag===x){var p=c.type,g=c.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&!BI(g)){var E=jf(s,e),I=gS(c,E,bt),j=Ku(c,I,bt),P=Ka();j!==null&&(Nl(j,bt,P),Ti(j,P));return}}c=c.return}v(`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
205
|
|
|
206
206
|
Error message:
|
|
207
207
|
|
|
208
|
-
%s`,s)}function BV(e,t,s){var c=e.pingCache;c!==null&&c.delete(t);var p=Ka();kd(e,s),ZV(e),Qa===e&&Il($r,s)&&(Gr===
|
|
208
|
+
%s`,s)}function BV(e,t,s){var c=e.pingCache;c!==null&&c.delete(t);var p=Ka();kd(e,s),ZV(e),Qa===e&&Il($r,s)&&(Gr===zh||Gr===ub&&wg($r)&&hr()-zS<II?Lf(e,Ee):fb=Dt(fb,s)),Ti(e,p)}function UI(e,t){t===sr&&(t=CV(e));var s=Ka(),c=Ei(e,t);c!==null&&(Nl(c,t,s),Ti(c,s))}function zV(e){var t=e.memoizedState,s=sr;t!==null&&(s=t.retryLane),UI(e,s)}function UV(e,t){var s=sr,c;switch(e.tag){case H:c=e.stateNode;var p=e.memoizedState;p!==null&&(s=p.retryLane);break;case fe:c=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}c!==null&&c.delete(t),UI(e,s)}function HV(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:mV(e/1960)*1960}function $V(){if(Xh>yV)throw Xh=0,GS=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.");_p>bV&&(_p=0,vb=null,v("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 GV(){qo.flushLegacyContextWarning(),qo.flushPendingUnsafeLifecycleWarnings()}function HI(e,t){Xn(e),bb(e,di,cV),t&&bb(e,gl,fV),bb(e,di,lV),t&&bb(e,gl,uV),Fn()}function bb(e,t,s){for(var c=e,p=null;c!==null;){var g=c.subtreeFlags&t;c!==p&&c.child!==null&&g!==ht?c=c.child:((c.flags&t)!==ht&&s(c),c.sibling!==null?c=c.sibling:c=p=c.return)}}var Cb=null;function $I(e){{if((Gt&da)!==Hr||!(e.mode&ut))return;var t=e.tag;if(t!==R&&t!==T&&t!==x&&t!==C&&t!==U&&t!==J&&t!==q)return;var s=Nt(e)||"ReactComponent";if(Cb!==null){if(Cb.has(s))return;Cb.add(s)}else Cb=new Set([s]);var c=Wn;try{Xn(e),v("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?Xn(e):Fn()}}}var qS;{var WV=null;qS=function(e,t,s){var c=QI(WV,t);try{return rI(e,t,s)}catch(g){if(iP()||g!==null&&typeof g=="object"&&typeof g.then=="function")throw g;if(Ry(),fT(),uI(e,t),QI(t,c),t.mode&Qt&&fS(t),zi(null,rI,null,e,t,s),lC()){var p=zo();typeof p=="object"&&p!==null&&p._suppressLogging&&typeof g=="object"&&g!==null&&!g._suppressLogging&&(g._suppressLogging=!0)}throw g}}}var GI=!1,QS;QS=new Set;function XV(e){if(xa&&!BP())switch(e.tag){case C:case U:case q:{var t=fr&&Nt(fr)||"Unknown",s=t;if(!QS.has(s)){QS.add(s);var c=Nt(e)||"Unknown";v("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,t,t)}break}case x:{GI||(v("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),GI=!0);break}}}function Jh(e,t){if(Za){var s=e.memoizedUpdaters;s.forEach(function(c){Ld(e,c,t)})}}var KS={};function eE(e,t){{var s=is.current;return s!==null?(s.push(t),KS):Nv(e,t)}}function WI(e){if(e!==KS)return vd(e)}function XI(){return is.current!==null}function YV(e){{if(e.mode&ut){if(!wI())return}else if(!hV()||Gt!==Hr||e.tag!==C&&e.tag!==U&&e.tag!==q)return;if(is.current===null){var t=Wn;try{Xn(e),v(`An update to %s inside a test was not wrapped in act(...).
|
|
209
209
|
|
|
210
210
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
211
211
|
|
|
@@ -214,7 +214,7 @@ act(() => {
|
|
|
214
214
|
});
|
|
215
215
|
/* assert on the output */
|
|
216
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`,Nt(e))}finally{t?Xn(e):Fn()}}}}function ZV(e){e.tag!==Ju&&
|
|
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`,Nt(e))}finally{t?Xn(e):Fn()}}}}function ZV(e){e.tag!==Ju&&wI()&&is.current===null&&v(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
218
218
|
|
|
219
219
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
220
220
|
|
|
@@ -223,29 +223,29 @@ act(() => {
|
|
|
223
223
|
});
|
|
224
224
|
/* assert on the output */
|
|
225
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
|
|
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 qh(e){OI=e}var xo=null,Op=null,JV=function(e){xo=e};function Ap(e){{if(xo===null)return e;var t=xo(e);return t===void 0?e:t.current}}function tE(e){return Ap(e)}function nE(e){{if(xo===null)return e;var t=xo(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var s=Ap(e.render);if(e.render!==s){var c={$$typeof:We,render:s};return e.displayName!==void 0&&(c.displayName=e.displayName),c}}return e}return t.current}}function YI(e,t){{if(xo===null)return!1;var s=e.elementType,c=t.type,p=!1,g=typeof c=="object"&&c!==null?c.$$typeof:null;switch(e.tag){case x:{typeof c=="function"&&(p=!0);break}case C:{(typeof c=="function"||g===vt)&&(p=!0);break}case U:{(g===We||g===vt)&&(p=!0);break}case J:case q:{(g===kt||g===vt)&&(p=!0);break}default:return!1}if(p){var E=xo(s);if(E!==void 0&&E===xo(c))return!0}return!1}}function ZI(e){{if(xo===null||typeof WeakSet!="function")return;Op===null&&(Op=new WeakSet),Op.add(e)}}var qV=function(e,t){{if(xo===null)return;var s=t.staleFamilies,c=t.updatedFamilies;Gl(),$l(function(){rE(e.current,c,s)})}},QV=function(e,t){{if(e.context!==$i)return;Gl(),$l(function(){Qh(t,e,null,null)})}};function rE(e,t,s){{var c=e.alternate,p=e.child,g=e.sibling,E=e.tag,I=e.type,j=null;switch(E){case C:case q:case x:j=I;break;case U:j=I.render;break}if(xo===null)throw new Error("Expected resolveFamily to be set during hot reload.");var P=!1,B=!1;if(j!==null){var te=xo(j);te!==void 0&&(s.has(te)?B=!0:t.has(te)&&(E===x?B=!0:P=!0))}if(Op!==null&&(Op.has(e)||c!==null&&Op.has(c))&&(B=!0),B&&(e._debugNeedsRemount=!0),B||P){var K=Ei(e,bt);K!==null&&Wr(K,e,bt,Mn)}p!==null&&!B&&rE(p,t,s),g!==null&&rE(g,t,s)}}var KV=function(e,t){{var s=new Set,c=new Set(t.map(function(p){return p.current}));return aE(e.current,c,s),s}};function aE(e,t,s){{var c=e.child,p=e.sibling,g=e.tag,E=e.type,I=null;switch(g){case C:case q:case x:I=E;break;case U:I=E.render;break}var j=!1;I!==null&&t.has(I)&&(j=!0),j?eB(e,s):c!==null&&aE(c,t,s),p!==null&&aE(p,t,s)}}function eB(e,t){{var s=tB(e,t);if(s)return;for(var c=e;;){switch(c.tag){case N:t.add(c.stateNode);return;case A:t.add(c.stateNode.containerInfo);return;case T:t.add(c.stateNode.containerInfo);return}if(c.return===null)throw new Error("Expected to reach root first.");c=c.return}}}function tB(e,t){for(var s=e,c=!1;;){if(s.tag===N)c=!0,t.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 iE;{iE=!1;try{var JI=Object.preventExtensions({})}catch{iE=!0}}function nB(e,t,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=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=c,this.flags=ht,this.subtreeFlags=ht,this.deletions=null,this.lanes=Ee,this.childLanes=Ee,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,!iE&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Gi=function(e,t,s,c){return new nB(e,t,s,c)};function oE(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function rB(e){return typeof e=="function"&&!oE(e)&&e.defaultProps===void 0}function aB(e){if(typeof e=="function")return oE(e)?x:C;if(e!=null){var t=e.$$typeof;if(t===We)return U;if(t===kt)return J}return R}function Ff(e,t){var s=e.alternate;s===null?(s=Gi(e.tag,t,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=t,s.type=e.type,s.flags=ht,s.subtreeFlags=ht,s.deletions=null,s.actualDuration=0,s.actualStartTime=-1),s.flags=e.flags&Pr,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 R:case C:case q:s.type=Ap(e.type);break;case x:s.type=tE(e.type);break;case U:s.type=nE(e.type);break}return s}function iB(e,t){e.flags&=Pr|In;var s=e.alternate;if(s===null)e.childLanes=Ee,e.lanes=t,e.child=null,e.subtreeFlags=ht,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=ht,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 oB(e,t,s){var c;return e===gy?(c=ut,t===!0&&(c|=Kn,c|=hi)):c=mt,Za&&(c|=Qt),Gi(T,null,null,c)}function sE(e,t,s,c,p,g){var E=R,I=e;if(typeof e=="function")oE(e)?(E=x,I=tE(I)):I=Ap(I);else if(typeof e=="string")E=N;else e:switch(e){case Ha:return uc(s.children,p,g,t);case No:E=L,p|=Kn,(p&ut)!==mt&&(p|=hi);break;case Z:return sB(s,p,g,t);case Bt:return lB(s,p,g,t);case $t:return uB(s,p,g,t);case jn:return qI(s,p,g,t);case Yr:case pr:case Qi:case Dn:case An:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ke:E=F;break e;case He:E=V;break e;case We:E=U,I=nE(I);break e;case kt:E=J;break e;case vt:E=Re,I=null;break e}var j="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(j+=" 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 P=c?Nt(c):null;P&&(j+=`
|
|
227
227
|
|
|
228
|
-
Check the render method of \``+P+"`.")}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)+"."+j))}}var B=Gi(E,s,t,p);return B.elementType=e,B.type=I,B.lanes=g,B._debugOwner=c,B}function
|
|
228
|
+
Check the render method of \``+P+"`.")}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)+"."+j))}}var B=Gi(E,s,t,p);return B.elementType=e,B.type=I,B.lanes=g,B._debugOwner=c,B}function lE(e,t,s){var c=null;c=e._owner;var p=e.type,g=e.key,E=e.props,I=sE(p,g,E,c,t,s);return I._debugSource=e._source,I._debugOwner=e._owner,I}function uc(e,t,s,c){var p=Gi(_,e,c,t);return p.lanes=s,p}function sB(e,t,s,c){typeof e.id!="string"&&v('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var p=Gi(z,e,c,t|Qt);return p.elementType=Z,p.lanes=s,p.stateNode={effectDuration:0,passiveEffectDuration:0},p}function lB(e,t,s,c){var p=Gi(H,e,c,t);return p.elementType=Bt,p.lanes=s,p}function uB(e,t,s,c){var p=Gi(fe,e,c,t);return p.elementType=$t,p.lanes=s,p}function qI(e,t,s,c){var p=Gi(Te,e,c,t);p.elementType=jn,p.lanes=s;var g={isHidden:!1};return p.stateNode=g,p}function uE(e,t,s){var c=Gi(O,e,null,t);return c.lanes=s,c}function cB(){var e=Gi(N,null,null,mt);return e.elementType="DELETED",e}function fB(e){var t=Gi(ge,null,null,mt);return t.stateNode=e,t}function cE(e,t,s){var c=e.children!==null?e.children:[],p=Gi(A,c,e.key,t);return p.lanes=s,p.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},p}function QI(e,t){return e===null&&(e=Gi(R,null,null,mt)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function dB(e,t,s,c,p){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=GC,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=sr,this.eventTimes=uf(Ee),this.expirationTimes=uf(Mn),this.pendingLanes=Ee,this.suspendedLanes=Ee,this.pingedLanes=Ee,this.expiredLanes=Ee,this.mutableReadLanes=Ee,this.finishedLanes=Ee,this.entangledLanes=Ee,this.entanglements=uf(Ee),this.identifierPrefix=c,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var g=this.pendingUpdatersLaneMap=[],E=0;E<or;E++)g.push(new Set)}switch(t){case gy:this._debugRootType=s?"hydrateRoot()":"createRoot()";break;case Ju:this._debugRootType=s?"hydrate()":"render()";break}}function KI(e,t,s,c,p,g,E,I,j,P){var B=new dB(e,t,s,I,j),te=oB(t,g);B.current=te,te.stateNode=B;{var K={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null};te.memoizedState=K}return yx(te),B}var fE="18.2.0";function pB(e,t,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Vt(c),{$$typeof:ya,key:c==null?null:""+c,children:e,containerInfo:t,implementation:s}}var dE,pE;dE=!1,pE={};function eN(e){if(!e)return $i;var t=ao(e),s=JL(t);if(t.tag===x){var c=t.type;if(Us(c))return T1(t,c,s)}return s}function vB(e,t){{var s=ao(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=Rv(s);if(p===null)return null;if(p.mode&Kn){var g=Nt(s)||"Component";if(!pE[g]){pE[g]=!0;var E=Wn;try{Xn(p),s.mode&Kn?v("%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",t,t,g):v("%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",t,t,g)}finally{E?Xn(E):Fn()}}}return p.stateNode}}function tN(e,t,s,c,p,g,E,I){var j=!1,P=null;return KI(e,t,j,P,s,c,p,g,E)}function nN(e,t,s,c,p,g,E,I,j,P){var B=!0,te=KI(s,c,B,e,p,g,E,I,j);te.context=eN(null);var K=te.current,ce=Ka(),de=sc(K),be=Bl(ce,de);return be.callback=t??null,Ku(K,be,de),xV(te,de,ce),te}function Qh(e,t,s,c){Ho(t,e);var p=t.current,g=Ka(),E=sc(p);kv(E);var I=eN(s);t.context===null?t.context=I:t.pendingContext=I,xa&&Wn!==null&&!dE&&(dE=!0,v(`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
229
|
|
|
230
|
-
Check the render method of %s.`,Nt(Wn)||"Unknown"));var j=Bl(g,E);j.payload={element:e},c=c===void 0?null:c,c!==null&&(typeof c!="function"&&v("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",c),j.callback=c);var P=Ku(p,j,E);return P!==null&&(Wr(P,p,E,g),Oy(P,p,E)),E}function xb(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case N:return t.child.stateNode;default:return t.child.stateNode}}function hB(e){switch(e.tag){case T:{var t=e.stateNode;if(Pd(t)){var s=
|
|
230
|
+
Check the render method of %s.`,Nt(Wn)||"Unknown"));var j=Bl(g,E);j.payload={element:e},c=c===void 0?null:c,c!==null&&(typeof c!="function"&&v("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",c),j.callback=c);var P=Ku(p,j,E);return P!==null&&(Wr(P,p,E,g),Oy(P,p,E)),E}function xb(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case N:return t.child.stateNode;default:return t.child.stateNode}}function hB(e){switch(e.tag){case T:{var t=e.stateNode;if(Pd(t)){var s=dC(t);RV(t,s)}break}case H:{$l(function(){var p=Ei(e,bt);if(p!==null){var g=Ka();Wr(p,e,bt,g)}});var c=bt;vE(e,c);break}}}function rN(e,t){var s=e.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=_g(s.retryLane,t))}function vE(e,t){rN(e,t);var s=e.alternate;s&&rN(s,t)}function mB(e){if(e.tag===H){var t=Tl,s=Ei(e,t);if(s!==null){var c=Ka();Wr(s,e,t,c)}vE(e,t)}}function gB(e){if(e.tag===H){var t=sc(e),s=Ei(e,t);if(s!==null){var c=Ka();Wr(s,e,t,c)}vE(e,t)}}function aN(e){var t=Iv(e);return t===null?null:t.stateNode}var iN=function(e){return null};function yB(e){return iN(e)}var oN=function(e){return!1};function bB(e){return oN(e)}var sN=null,lN=null,uN=null,cN=null,fN=null,dN=null,pN=null,vN=null,hN=null;{var mN=function(e,t,s){var c=t[s],p=Zt(e)?e.slice():Lt({},e);return s+1===t.length?(Zt(p)?p.splice(c,1):delete p[c],p):(p[c]=mN(e[c],t,s+1),p)},gN=function(e,t){return mN(e,t,0)},yN=function(e,t,s,c){var p=t[c],g=Zt(e)?e.slice():Lt({},e);if(c+1===t.length){var E=s[c];g[E]=g[p],Zt(g)?g.splice(p,1):delete g[p]}else g[p]=yN(e[p],t,s,c+1);return g},bN=function(e,t,s){if(t.length!==s.length){h("copyWithRename() expects paths of the same length");return}else for(var c=0;c<s.length-1;c++)if(t[c]!==s[c]){h("copyWithRename() expects paths to be the same except for the deepest key");return}return yN(e,t,s,0)},CN=function(e,t,s,c){if(s>=t.length)return c;var p=t[s],g=Zt(e)?e.slice():Lt({},e);return g[p]=CN(e[p],t,s+1,c),g},xN=function(e,t,s){return CN(e,t,0,s)},hE=function(e,t){for(var s=e.memoizedState;s!==null&&t>0;)s=s.next,t--;return s};sN=function(e,t,s,c){var p=hE(e,t);if(p!==null){var g=xN(p.memoizedState,s,c);p.memoizedState=g,p.baseState=g,e.memoizedProps=Lt({},e.memoizedProps);var E=Ei(e,bt);E!==null&&Wr(E,e,bt,Mn)}},lN=function(e,t,s){var c=hE(e,t);if(c!==null){var p=gN(c.memoizedState,s);c.memoizedState=p,c.baseState=p,e.memoizedProps=Lt({},e.memoizedProps);var g=Ei(e,bt);g!==null&&Wr(g,e,bt,Mn)}},uN=function(e,t,s,c){var p=hE(e,t);if(p!==null){var g=bN(p.memoizedState,s,c);p.memoizedState=g,p.baseState=g,e.memoizedProps=Lt({},e.memoizedProps);var E=Ei(e,bt);E!==null&&Wr(E,e,bt,Mn)}},cN=function(e,t,s){e.pendingProps=xN(e.memoizedProps,t,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var c=Ei(e,bt);c!==null&&Wr(c,e,bt,Mn)},fN=function(e,t){e.pendingProps=gN(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var s=Ei(e,bt);s!==null&&Wr(s,e,bt,Mn)},dN=function(e,t,s){e.pendingProps=bN(e.memoizedProps,t,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var c=Ei(e,bt);c!==null&&Wr(c,e,bt,Mn)},pN=function(e){var t=Ei(e,bt);t!==null&&Wr(t,e,bt,Mn)},vN=function(e){iN=e},hN=function(e){oN=e}}function CB(e){var t=Rv(e);return t===null?null:t.stateNode}function xB(e){return null}function SB(){return Wn}function EB(e){var t=e.findFiberByHostInstance,s=u.ReactCurrentDispatcher;return vg({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:sN,overrideHookStateDeletePath:lN,overrideHookStateRenamePath:uN,overrideProps:cN,overridePropsDeletePath:fN,overridePropsRenamePath:dN,setErrorHandler:vN,setSuspenseHandler:hN,scheduleUpdate:pN,currentDispatcherRef:s,findHostInstanceByFiber:CB,findFiberByHostInstance:t||xB,findHostInstancesForRefresh:KV,scheduleRefresh:qV,scheduleRoot:QV,setRefreshHandler:JV,getCurrentFiber:SB,reconcilerVersion:fE})}var SN=typeof reportError=="function"?reportError:function(e){console.error(e)};function mE(e){this._internalRoot=e}Sb.prototype.render=mE.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?v("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Eb(arguments[1])?v("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"&&v("You passed a second argument to root.render(...) but it only accepts one argument.");var s=t.containerInfo;if(s.nodeType!==Qn){var c=aN(t.current);c&&c.parentNode!==s&&v("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.")}}Qh(e,t,null,null)},Sb.prototype.unmount=mE.prototype.unmount=function(){typeof arguments[0]=="function"&&v("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 t=e.containerInfo;kI()&&v("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."),$l(function(){Qh(null,e,null,null)}),x1(t)}};function wB(e,t){if(!Eb(e))throw new Error("createRoot(...): Target container is not a DOM element.");EN(e);var s=!1,c=!1,p="",g=SN;t!=null&&(t.hydrate?h("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===ga&&v(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
231
231
|
|
|
232
232
|
let root = createRoot(domContainer);
|
|
233
|
-
root.render(<App />);`),t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(p=t.identifierPrefix),t.onRecoverableError!==void 0&&(g=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var E=
|
|
234
|
-
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ni.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bE,Ni.createPortal=MB,Ni.createRoot=PB,Ni.findDOMNode=OB,Ni.flushSync=VB,Ni.hydrate=AB,Ni.hydrateRoot=FB,Ni.render=jB,Ni.unmountComponentAtNode=kB,Ni.unstable_batchedUpdates=ZS,Ni.unstable_renderSubtreeIntoContainer=LB,Ni.version=dE,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),Ni}var XO={};function YO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(XO.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YO)}catch(n){console.error(n)}}}XO.NODE_ENV==="production"?(YO(),tw.exports=KB()):tw.exports=ez();var $w=tw.exports;const Bf=Jp($w);var tz={},nm=$w;if(tz.NODE_ENV==="production")ls.createRoot=nm.createRoot,ls.hydrateRoot=nm.hydrateRoot;else{var Ib=nm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ls.createRoot=function(n,r){Ib.usingClientEntryPoint=!0;try{return nm.createRoot(n,r)}finally{Ib.usingClientEntryPoint=!1}},ls.hydrateRoot=function(n,r,i){Ib.usingClientEntryPoint=!0;try{return nm.hydrateRoot(n,r,i)}finally{Ib.usingClientEntryPoint=!1}}}var wr={};function va(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var nz=typeof Symbol=="function"&&Symbol.observable||"@@observable",FN=nz,EE=()=>Math.random().toString(36).substring(7).split("").join("."),rz={INIT:`@@redux/INIT${EE()}`,REPLACE:`@@redux/REPLACE${EE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${EE()}`},zf=rz;function Nm(n){if(typeof n!="object"||n===null)return!1;let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r||Object.getPrototypeOf(n)===null}function az(n){if(n===void 0)return"undefined";if(n===null)return"null";const r=typeof n;switch(r){case"boolean":case"string":case"number":case"symbol":case"function":return r}if(Array.isArray(n))return"array";if(sz(n))return"date";if(oz(n))return"error";const i=iz(n);switch(i){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return i}return Object.prototype.toString.call(n).slice(8,-1).toLowerCase().replace(/\s/g,"")}function iz(n){return typeof n.constructor=="function"?n.constructor.name:null}function oz(n){return n instanceof Error||typeof n.message=="string"&&n.constructor&&typeof n.constructor.stackTraceLimit=="number"}function sz(n){return n instanceof Date?!0:typeof n.toDateString=="function"&&typeof n.getDate=="function"&&typeof n.setDate=="function"}function fc(n){let r=typeof n;return wr.NODE_ENV!=="production"&&(r=az(n)),r}function ZO(n,r,i){if(typeof n!="function")throw new Error(wr.NODE_ENV==="production"?va(2):`Expected the root reducer to be a function. Instead, received: '${fc(n)}'`);if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(wr.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(wr.NODE_ENV==="production"?va(1):`Expected the enhancer to be a function. Instead, received: '${fc(i)}'`);return i(ZO)(n,r)}let u=n,l=r,d=new Map,h=d,v=0,y=!1;function C(){h===d&&(h=new Map,d.forEach((_,L)=>{h.set(L,_)}))}function x(){if(y)throw new Error(wr.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 l}function R(_){if(typeof _!="function")throw new Error(wr.NODE_ENV==="production"?va(4):`Expected the listener to be a function. Instead, received: '${fc(_)}'`);if(y)throw new Error(wr.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 L=!0;C();const V=v++;return h.set(V,_),function(){if(L){if(y)throw new Error(wr.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.");L=!1,C(),h.delete(V),d=null}}}function T(_){if(!Nm(_))throw new Error(wr.NODE_ENV==="production"?va(7):`Actions must be plain objects. Instead, the actual type was: '${fc(_)}'. 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 _.type>"u")throw new Error(wr.NODE_ENV==="production"?va(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof _.type!="string")throw new Error(wr.NODE_ENV==="production"?va(17):`Action "type" property must be a string. Instead, the actual type was: '${fc(_.type)}'. Value was: '${_.type}' (stringified)`);if(y)throw new Error(wr.NODE_ENV==="production"?va(9):"Reducers may not dispatch actions.");try{y=!0,l=u(l,_)}finally{y=!1}return(d=h).forEach(V=>{V()}),_}function A(_){if(typeof _!="function")throw new Error(wr.NODE_ENV==="production"?va(10):`Expected the nextReducer to be a function. Instead, received: '${fc(_)}`);u=_,T({type:zf.REPLACE})}function N(){const _=R;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(wr.NODE_ENV==="production"?va(11):`Expected the observer to be an object. Instead, received: '${fc(L)}'`);function V(){const U=L;U.next&&U.next(x())}return V(),{unsubscribe:_(V)}},[FN](){return this}}}return T({type:zf.INIT}),{dispatch:T,subscribe:R,getState:x,replaceReducer:A,[FN]:N}}function VN(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function lz(n,r,i,u){const l=Object.keys(r),d=i&&i.type===zf.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(l.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(!Nm(n))return`The ${d} has unexpected type of "${fc(n)}". Expected argument to be an object with the following keys: "${l.join('", "')}"`;const h=Object.keys(n).filter(v=>!r.hasOwnProperty(v)&&!u[v]);if(h.forEach(v=>{u[v]=!0}),!(i&&i.type===zf.REPLACE)&&h.length>0)return`Unexpected ${h.length>1?"keys":"key"} "${h.join('", "')}" found in ${d}. Expected to find one of the known reducer keys instead: "${l.join('", "')}". Unexpected keys will be ignored.`}function uz(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:zf.INIT})>"u")throw new Error(wr.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:zf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(wr.NODE_ENV==="production"?va(13):`The slice reducer for key "${r}" returned undefined when probed with a random type. Don't try to handle '${zf.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 cz(n){const r=Object.keys(n),i={};for(let h=0;h<r.length;h++){const v=r[h];wr.NODE_ENV!=="production"&&typeof n[v]>"u"&&VN(`No reducer provided for key "${v}"`),typeof n[v]=="function"&&(i[v]=n[v])}const u=Object.keys(i);let l;wr.NODE_ENV!=="production"&&(l={});let d;try{uz(i)}catch(h){d=h}return function(v={},y){if(d)throw d;if(wr.NODE_ENV!=="production"){const R=lz(v,i,y,l);R&&VN(R)}let C=!1;const x={};for(let R=0;R<u.length;R++){const T=u[R],A=i[T],N=v[T],O=A(N,y);if(typeof O>"u"){const _=y&&y.type;throw new Error(wr.NODE_ENV==="production"?va(14):`When called with an action of type ${_?`"${String(_)}"`:"(unknown type)"}, the slice reducer for key "${T}" 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.`)}x[T]=O,C=C||O!==N}return C=C||u.length!==Object.keys(v).length,C?x:v}}function o0(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...u)=>r(i(...u)))}function fz(...n){return r=>(i,u)=>{const l=r(i,u);let d=()=>{throw new Error(wr.NODE_ENV==="production"?va(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const h={getState:l.getState,dispatch:(y,...C)=>d(y,...C)},v=n.map(y=>y(h));return d=o0(...v)(l.dispatch),{...l,dispatch:d}}}function JO(n){return Nm(n)&&"type"in n&&typeof n.type=="string"}var _m={},qO=Symbol.for("immer-nothing"),BN=Symbol.for("immer-draftable"),Yi=Symbol.for("immer-state"),dz=_m.NODE_ENV!=="production"?[function(n){return`The plugin for '${n}' has not been loaded into Immer. To enable the plugin, import and call \`enable${n}()\` when initializing your application.`},function(n){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${n}'`},"This object has been frozen and should not be mutated",function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},"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(n){return`'current' expects a draft, got: ${n}`},"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(n){return`'original' expects a draft, got: ${n}`}]:[];function _i(n,...r){if(_m.NODE_ENV!=="production"){const i=dz[n],u=typeof i=="function"?i.apply(null,r):i;throw new Error(`[Immer] ${u}`)}throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var Up=Object.getPrototypeOf;function hc(n){return!!n&&!!n[Yi]}function eu(n){var r;return n?QO(n)||Array.isArray(n)||!!n[BN]||!!((r=n.constructor)!=null&&r[BN])||A0(n)||j0(n):!1}var pz=Object.prototype.constructor.toString();function QO(n){if(!n||typeof n!="object")return!1;const r=Up(n);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)===pz}function mm(n,r){O0(n)===0?Object.entries(n).forEach(([i,u])=>{r(i,u,n)}):n.forEach((i,u)=>r(u,i,n))}function O0(n){const r=n[Yi];return r?r.type_:Array.isArray(n)?1:A0(n)?2:j0(n)?3:0}function nw(n,r){return O0(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function KO(n,r,i){const u=O0(n);u===2?n.set(r,i):u===3?n.add(i):n[r]=i}function vz(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function A0(n){return n instanceof Map}function j0(n){return n instanceof Set}function Vf(n){return n.copy_||n.base_}function rw(n,r){if(A0(n))return new Map(n);if(j0(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);if(!r&&QO(n))return Up(n)?{...n}:Object.assign(Object.create(null),n);const i=Object.getOwnPropertyDescriptors(n);delete i[Yi];let u=Reflect.ownKeys(i);for(let l=0;l<u.length;l++){const d=u[l],h=i[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(i[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:n[d]})}return Object.create(Up(n),i)}function Gw(n,r=!1){return D0(n)||hc(n)||!eu(n)||(O0(n)>1&&(n.set=n.add=n.clear=n.delete=hz),Object.freeze(n),r&&mm(n,(i,u)=>Gw(u,!0))),n}function hz(){_i(2)}function D0(n){return Object.isFrozen(n)}var mz={};function Gf(n){const r=mz[n];return r||_i(0,n),r}var gm;function eA(){return gm}function gz(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function zN(n,r){r&&(Gf("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function aw(n){iw(n),n.drafts_.forEach(yz),n.drafts_=null}function iw(n){n===gm&&(gm=n.parent_)}function UN(n){return gm=gz(gm,n)}function yz(n){const r=n[Yi];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function HN(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[Yi].modified_&&(aw(r),_i(4)),eu(n)&&(n=s0(r,n),r.parent_||l0(r,n)),r.patches_&&Gf("Patches").generateReplacementPatches_(i[Yi].base_,n,r.patches_,r.inversePatches_)):n=s0(r,i,[]),aw(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==qO?n:void 0}function s0(n,r,i){if(D0(r))return r;const u=r[Yi];if(!u)return mm(r,(l,d)=>$N(n,u,r,l,d,i)),r;if(u.scope_!==n)return r;if(!u.modified_)return l0(n,u.base_,!0),u.base_;if(!u.finalized_){u.finalized_=!0,u.scope_.unfinalizedDrafts_--;const l=u.copy_;let d=l,h=!1;u.type_===3&&(d=new Set(l),l.clear(),h=!0),mm(d,(v,y)=>$N(n,u,l,v,y,i,h)),l0(n,l,!1),i&&n.patches_&&Gf("Patches").generatePatches_(u,i,n.patches_,n.inversePatches_)}return u.copy_}function $N(n,r,i,u,l,d,h){if(_m.NODE_ENV!=="production"&&l===i&&_i(5),hc(l)){const v=d&&r&&r.type_!==3&&!nw(r.assigned_,u)?d.concat(u):void 0,y=s0(n,l,v);if(KO(i,u,y),hc(y))n.canAutoFreeze_=!1;else return}else h&&i.add(l);if(eu(l)&&!D0(l)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;s0(n,l),(!r||!r.scope_.parent_)&&l0(n,l)}}function l0(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Gw(r,i)}function bz(n,r){const i=Array.isArray(n),u={type_:i?1:0,scope_:r?r.scope_:eA(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=u,d=Ww;i&&(l=[u],d=ym);const{revoke:h,proxy:v}=Proxy.revocable(l,d);return u.draft_=v,u.revoke_=h,v}var Ww={get(n,r){if(r===Yi)return n;const i=Vf(n);if(!nw(i,r))return Cz(n,i,r);const u=i[r];return n.finalized_||!eu(u)?u:u===wE(n.base_,r)?(RE(n),n.copy_[r]=sw(u,n)):u},has(n,r){return r in Vf(n)},ownKeys(n){return Reflect.ownKeys(Vf(n))},set(n,r,i){const u=tA(Vf(n),r);if(u!=null&&u.set)return u.set.call(n.draft_,i),!0;if(!n.modified_){const l=wE(Vf(n),r),d=l==null?void 0:l[Yi];if(d&&d.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(vz(i,l)&&(i!==void 0||nw(n.base_,r)))return!0;RE(n),ow(n)}return n.copy_[r]===i&&(i!==void 0||r in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[r])||(n.copy_[r]=i,n.assigned_[r]=!0),!0},deleteProperty(n,r){return wE(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,RE(n),ow(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Vf(n),u=Reflect.getOwnPropertyDescriptor(i,r);return u&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:u.enumerable,value:i[r]}},defineProperty(){_i(11)},getPrototypeOf(n){return Up(n.base_)},setPrototypeOf(){_i(12)}},ym={};mm(Ww,(n,r)=>{ym[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});ym.deleteProperty=function(n,r){return _m.NODE_ENV!=="production"&&isNaN(parseInt(r))&&_i(13),ym.set.call(this,n,r,void 0)};ym.set=function(n,r,i){return _m.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&_i(14),Ww.set.call(this,n[0],r,i,n[0])};function wE(n,r){const i=n[Yi];return(i?Vf(i):n)[r]}function Cz(n,r,i){var l;const u=tA(r,i);return u?"value"in u?u.value:(l=u.get)==null?void 0:l.call(n.draft_):void 0}function tA(n,r){if(!(r in n))return;let i=Up(n);for(;i;){const u=Object.getOwnPropertyDescriptor(i,r);if(u)return u;i=Up(i)}}function ow(n){n.modified_||(n.modified_=!0,n.parent_&&ow(n.parent_))}function RE(n){n.copy_||(n.copy_=rw(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var xz=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,u)=>{if(typeof r=="function"&&typeof i!="function"){const d=i;i=r;const h=this;return function(y=d,...C){return h.produce(y,x=>i.call(this,x,...C))}}typeof i!="function"&&_i(6),u!==void 0&&typeof u!="function"&&_i(7);let l;if(eu(r)){const d=UN(this),h=sw(r,void 0);let v=!0;try{l=i(h),v=!1}finally{v?aw(d):iw(d)}return zN(d,u),HN(l,d)}else if(!r||typeof r!="object"){if(l=i(r),l===void 0&&(l=r),l===qO&&(l=void 0),this.autoFreeze_&&Gw(l,!0),u){const d=[],h=[];Gf("Patches").generateReplacementPatches_(r,l,d,h),u(d,h)}return l}else _i(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(h,...v)=>this.produceWithPatches(h,y=>r(y,...v));let u,l;return[this.produce(r,i,(h,v)=>{u=h,l=v}),u,l]},typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof(n==null?void 0:n.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){eu(n)||_i(8),hc(n)&&(n=nA(n));const r=UN(this),i=sw(n,void 0);return i[Yi].isManual_=!0,iw(r),i}finishDraft(n,r){const i=n&&n[Yi];(!i||!i.isManual_)&&_i(9);const{scope_:u}=i;return zN(u,r),HN(void 0,u)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,r){let i;for(i=r.length-1;i>=0;i--){const l=r[i];if(l.path.length===0&&l.op==="replace"){n=l.value;break}}i>-1&&(r=r.slice(i+1));const u=Gf("Patches").applyPatches_;return hc(n)?u(n,r):this.produce(n,l=>u(l,r))}};function sw(n,r){const i=A0(n)?Gf("MapSet").proxyMap_(n,r):j0(n)?Gf("MapSet").proxySet_(n,r):bz(n,r);return(r?r.scope_:eA()).drafts_.push(i),i}function nA(n){return hc(n)||_i(10,n),rA(n)}function rA(n){if(!eu(n)||D0(n))return n;const r=n[Yi];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=rw(n,r.scope_.immer_.useStrictShallowCopy_)}else i=rw(n,!0);return mm(i,(u,l)=>{KO(i,u,rA(l))}),r&&(r.finalized_=!1),i}var Zi=new xz,So=Zi.produce;Zi.produceWithPatches.bind(Zi);Zi.setAutoFreeze.bind(Zi);Zi.setUseStrictShallowCopy.bind(Zi);Zi.applyPatches.bind(Zi);Zi.createDraft.bind(Zi);Zi.finishDraft.bind(Zi);var Sz={},Ez=(n,r,i)=>{if(r.length===1&&r[0]===i){let u=!1;try{const l={};n(l)===l&&(u=!0)}catch{}if(u){let l;try{throw new Error}catch(d){({stack:l}=d)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
233
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(p=t.identifierPrefix),t.onRecoverableError!==void 0&&(g=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var E=tN(e,gy,null,s,c,p,g);cy(E.current,e);var I=e.nodeType===Qn?e.parentNode:e;return oh(I),new mE(E)}function Sb(e){this._internalRoot=e}function RB(e){e&&yC(e)}Sb.prototype.unstable_scheduleHydration=RB;function TB(e,t,s){if(!Eb(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");EN(e),t===void 0&&v("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var c=s??null,p=s!=null&&s.hydratedSources||null,g=!1,E=!1,I="",j=SN;s!=null&&(s.unstable_strictMode===!0&&(g=!0),s.identifierPrefix!==void 0&&(I=s.identifierPrefix),s.onRecoverableError!==void 0&&(j=s.onRecoverableError));var P=nN(t,null,e,gy,c,g,E,I,j);if(cy(P.current,e),oh(e),p)for(var B=0;B<p.length;B++){var te=p[B];kP(P,te)}return new Sb(P)}function Eb(e){return!!(e&&(e.nodeType===Ea||e.nodeType===$a||e.nodeType===lv||!ye))}function Kh(e){return!!(e&&(e.nodeType===Ea||e.nodeType===$a||e.nodeType===lv||e.nodeType===Qn&&e.nodeValue===" react-mount-point-unstable "))}function EN(e){e.nodeType===Ea&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&v("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."),gh(e)&&(e._reactRootContainer?v("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):v("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 IB=u.ReactCurrentOwner,wN;wN=function(e){if(e._reactRootContainer&&e.nodeType!==Qn){var t=aN(e._reactRootContainer.current);t&&t.parentNode!==e&&v("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=gE(e),p=!!(c&&Yu(c));p&&!s&&v("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===Ea&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&v("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 gE(e){return e?e.nodeType===$a?e.documentElement:e.firstChild:null}function RN(){}function NB(e,t,s,c,p){if(p){if(typeof c=="function"){var g=c;c=function(){var K=xb(E);g.call(K)}}var E=nN(t,c,e,Ju,null,!1,!1,"",RN);e._reactRootContainer=E,cy(E.current,e);var I=e.nodeType===Qn?e.parentNode:e;return oh(I),$l(),E}else{for(var j;j=e.lastChild;)e.removeChild(j);if(typeof c=="function"){var P=c;c=function(){var K=xb(B);P.call(K)}}var B=tN(e,Ju,null,!1,!1,"",RN);e._reactRootContainer=B,cy(B.current,e);var te=e.nodeType===Qn?e.parentNode:e;return oh(te),$l(function(){Qh(t,B,s,c)}),B}}function _B(e,t){e!==null&&typeof e!="function"&&v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function wb(e,t,s,c,p){wN(s),_B(p===void 0?null:p,"render");var g=s._reactRootContainer,E;if(!g)E=NB(s,t,e,p,c);else{if(E=g,typeof p=="function"){var I=p;p=function(){var j=xb(E);I.call(j)}}Qh(t,E,e,p)}return xb(E)}function OB(e){{var t=IB.current;if(t!==null&&t.stateNode!==null){var s=t.stateNode._warnedAboutRefsInRender;s||v("%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.",Yt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===Ea?e:vB(e,"findDOMNode")}function AB(e,t,s){if(v("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"),!Kh(t))throw new Error("Target container is not a DOM element.");{var c=gh(t)&&t._reactRootContainer===void 0;c&&v("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 wb(null,e,t,!0,s)}function jB(e,t,s){if(v("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"),!Kh(t))throw new Error("Target container is not a DOM element.");{var c=gh(t)&&t._reactRootContainer===void 0;c&&v("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 wb(null,e,t,!1,s)}function DB(e,t,s,c){if(v("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"),!Kh(s))throw new Error("Target container is not a DOM element.");if(e==null||!yu(e))throw new Error("parentComponent must be a valid React Component");return wb(e,t,s,!1,c)}function kB(e){if(!Kh(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=gh(e)&&e._reactRootContainer===void 0;t&&v("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=gE(e),c=s&&!Yu(s);c&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return $l(function(){wb(null,null,e,!1,function(){e._reactRootContainer=null,x1(e)})}),!0}else{{var p=gE(e),g=!!(p&&Yu(p)),E=e.nodeType===Ea&&Kh(e.parentNode)&&!!e.parentNode._reactRootContainer;g&&v("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}}ku(hB),mC(mB),Vd(gB),jg(gi),Dg(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")&&v("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"),mv(PM),ld(YS,TV,$l);function MB(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Eb(t))throw new Error("Target container is not a DOM element.");return pB(e,t,null,s)}function LB(e,t,s,c){return DB(e,t,s,c)}var yE={usingClientEntryPoint:!1,Events:[Yu,lp,fy,gu,vl,YS]};function PB(e,t){return yE.usingClientEntryPoint||v('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),wB(e,t)}function FB(e,t,s){return yE.usingClientEntryPoint||v('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),TB(e,t,s)}function VB(e){return kI()&&v("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."),$l(e)}var BB=EB({findFiberByHostInstance:Ef,bundleType:1,version:fE,rendererPackageName:"react-dom"});if(!BB&&It&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var TN=window.location.protocol;/^(https?|file):$/.test(TN)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(TN==="file:"?`
|
|
234
|
+
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ni.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yE,Ni.createPortal=MB,Ni.createRoot=PB,Ni.findDOMNode=OB,Ni.flushSync=VB,Ni.hydrate=AB,Ni.hydrateRoot=FB,Ni.render=jB,Ni.unmountComponentAtNode=kB,Ni.unstable_batchedUpdates=YS,Ni.unstable_renderSubtreeIntoContainer=LB,Ni.version=fE,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),Ni}var XO={};function YO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(XO.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YO)}catch(n){console.error(n)}}}XO.NODE_ENV==="production"?(YO(),ew.exports=KB()):ew.exports=ez();var Hw=ew.exports;const Bf=qp(Hw);var tz={},rm=Hw;if(tz.NODE_ENV==="production")ls.createRoot=rm.createRoot,ls.hydrateRoot=rm.hydrateRoot;else{var Ib=rm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ls.createRoot=function(n,r){Ib.usingClientEntryPoint=!0;try{return rm.createRoot(n,r)}finally{Ib.usingClientEntryPoint=!1}},ls.hydrateRoot=function(n,r,i){Ib.usingClientEntryPoint=!0;try{return rm.hydrateRoot(n,r,i)}finally{Ib.usingClientEntryPoint=!1}}}var wr={};function va(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var nz=typeof Symbol=="function"&&Symbol.observable||"@@observable",FN=nz,SE=()=>Math.random().toString(36).substring(7).split("").join("."),rz={INIT:`@@redux/INIT${SE()}`,REPLACE:`@@redux/REPLACE${SE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${SE()}`},zf=rz;function Nm(n){if(typeof n!="object"||n===null)return!1;let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r||Object.getPrototypeOf(n)===null}function az(n){if(n===void 0)return"undefined";if(n===null)return"null";const r=typeof n;switch(r){case"boolean":case"string":case"number":case"symbol":case"function":return r}if(Array.isArray(n))return"array";if(sz(n))return"date";if(oz(n))return"error";const i=iz(n);switch(i){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return i}return Object.prototype.toString.call(n).slice(8,-1).toLowerCase().replace(/\s/g,"")}function iz(n){return typeof n.constructor=="function"?n.constructor.name:null}function oz(n){return n instanceof Error||typeof n.message=="string"&&n.constructor&&typeof n.constructor.stackTraceLimit=="number"}function sz(n){return n instanceof Date?!0:typeof n.toDateString=="function"&&typeof n.getDate=="function"&&typeof n.setDate=="function"}function fc(n){let r=typeof n;return wr.NODE_ENV!=="production"&&(r=az(n)),r}function ZO(n,r,i){if(typeof n!="function")throw new Error(wr.NODE_ENV==="production"?va(2):`Expected the root reducer to be a function. Instead, received: '${fc(n)}'`);if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(wr.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(wr.NODE_ENV==="production"?va(1):`Expected the enhancer to be a function. Instead, received: '${fc(i)}'`);return i(ZO)(n,r)}let u=n,l=r,d=new Map,h=d,v=0,y=!1;function C(){h===d&&(h=new Map,d.forEach((_,L)=>{h.set(L,_)}))}function x(){if(y)throw new Error(wr.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 l}function R(_){if(typeof _!="function")throw new Error(wr.NODE_ENV==="production"?va(4):`Expected the listener to be a function. Instead, received: '${fc(_)}'`);if(y)throw new Error(wr.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 L=!0;C();const V=v++;return h.set(V,_),function(){if(L){if(y)throw new Error(wr.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.");L=!1,C(),h.delete(V),d=null}}}function T(_){if(!Nm(_))throw new Error(wr.NODE_ENV==="production"?va(7):`Actions must be plain objects. Instead, the actual type was: '${fc(_)}'. 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 _.type>"u")throw new Error(wr.NODE_ENV==="production"?va(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof _.type!="string")throw new Error(wr.NODE_ENV==="production"?va(17):`Action "type" property must be a string. Instead, the actual type was: '${fc(_.type)}'. Value was: '${_.type}' (stringified)`);if(y)throw new Error(wr.NODE_ENV==="production"?va(9):"Reducers may not dispatch actions.");try{y=!0,l=u(l,_)}finally{y=!1}return(d=h).forEach(V=>{V()}),_}function A(_){if(typeof _!="function")throw new Error(wr.NODE_ENV==="production"?va(10):`Expected the nextReducer to be a function. Instead, received: '${fc(_)}`);u=_,T({type:zf.REPLACE})}function N(){const _=R;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(wr.NODE_ENV==="production"?va(11):`Expected the observer to be an object. Instead, received: '${fc(L)}'`);function V(){const U=L;U.next&&U.next(x())}return V(),{unsubscribe:_(V)}},[FN](){return this}}}return T({type:zf.INIT}),{dispatch:T,subscribe:R,getState:x,replaceReducer:A,[FN]:N}}function VN(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function lz(n,r,i,u){const l=Object.keys(r),d=i&&i.type===zf.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(l.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(!Nm(n))return`The ${d} has unexpected type of "${fc(n)}". Expected argument to be an object with the following keys: "${l.join('", "')}"`;const h=Object.keys(n).filter(v=>!r.hasOwnProperty(v)&&!u[v]);if(h.forEach(v=>{u[v]=!0}),!(i&&i.type===zf.REPLACE)&&h.length>0)return`Unexpected ${h.length>1?"keys":"key"} "${h.join('", "')}" found in ${d}. Expected to find one of the known reducer keys instead: "${l.join('", "')}". Unexpected keys will be ignored.`}function uz(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:zf.INIT})>"u")throw new Error(wr.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:zf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(wr.NODE_ENV==="production"?va(13):`The slice reducer for key "${r}" returned undefined when probed with a random type. Don't try to handle '${zf.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 cz(n){const r=Object.keys(n),i={};for(let h=0;h<r.length;h++){const v=r[h];wr.NODE_ENV!=="production"&&typeof n[v]>"u"&&VN(`No reducer provided for key "${v}"`),typeof n[v]=="function"&&(i[v]=n[v])}const u=Object.keys(i);let l;wr.NODE_ENV!=="production"&&(l={});let d;try{uz(i)}catch(h){d=h}return function(v={},y){if(d)throw d;if(wr.NODE_ENV!=="production"){const R=lz(v,i,y,l);R&&VN(R)}let C=!1;const x={};for(let R=0;R<u.length;R++){const T=u[R],A=i[T],N=v[T],O=A(N,y);if(typeof O>"u"){const _=y&&y.type;throw new Error(wr.NODE_ENV==="production"?va(14):`When called with an action of type ${_?`"${String(_)}"`:"(unknown type)"}, the slice reducer for key "${T}" 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.`)}x[T]=O,C=C||O!==N}return C=C||u.length!==Object.keys(v).length,C?x:v}}function i0(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...u)=>r(i(...u)))}function fz(...n){return r=>(i,u)=>{const l=r(i,u);let d=()=>{throw new Error(wr.NODE_ENV==="production"?va(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const h={getState:l.getState,dispatch:(y,...C)=>d(y,...C)},v=n.map(y=>y(h));return d=i0(...v)(l.dispatch),{...l,dispatch:d}}}function JO(n){return Nm(n)&&"type"in n&&typeof n.type=="string"}var _m={},qO=Symbol.for("immer-nothing"),BN=Symbol.for("immer-draftable"),Yi=Symbol.for("immer-state"),dz=_m.NODE_ENV!=="production"?[function(n){return`The plugin for '${n}' has not been loaded into Immer. To enable the plugin, import and call \`enable${n}()\` when initializing your application.`},function(n){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${n}'`},"This object has been frozen and should not be mutated",function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},"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(n){return`'current' expects a draft, got: ${n}`},"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(n){return`'original' expects a draft, got: ${n}`}]:[];function _i(n,...r){if(_m.NODE_ENV!=="production"){const i=dz[n],u=typeof i=="function"?i.apply(null,r):i;throw new Error(`[Immer] ${u}`)}throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var Hp=Object.getPrototypeOf;function hc(n){return!!n&&!!n[Yi]}function eu(n){var r;return n?QO(n)||Array.isArray(n)||!!n[BN]||!!((r=n.constructor)!=null&&r[BN])||O0(n)||A0(n):!1}var pz=Object.prototype.constructor.toString();function QO(n){if(!n||typeof n!="object")return!1;const r=Hp(n);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)===pz}function mm(n,r){_0(n)===0?Object.entries(n).forEach(([i,u])=>{r(i,u,n)}):n.forEach((i,u)=>r(u,i,n))}function _0(n){const r=n[Yi];return r?r.type_:Array.isArray(n)?1:O0(n)?2:A0(n)?3:0}function tw(n,r){return _0(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function KO(n,r,i){const u=_0(n);u===2?n.set(r,i):u===3?n.add(i):n[r]=i}function vz(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function O0(n){return n instanceof Map}function A0(n){return n instanceof Set}function Vf(n){return n.copy_||n.base_}function nw(n,r){if(O0(n))return new Map(n);if(A0(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);if(!r&&QO(n))return Hp(n)?{...n}:Object.assign(Object.create(null),n);const i=Object.getOwnPropertyDescriptors(n);delete i[Yi];let u=Reflect.ownKeys(i);for(let l=0;l<u.length;l++){const d=u[l],h=i[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(i[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:n[d]})}return Object.create(Hp(n),i)}function $w(n,r=!1){return j0(n)||hc(n)||!eu(n)||(_0(n)>1&&(n.set=n.add=n.clear=n.delete=hz),Object.freeze(n),r&&mm(n,(i,u)=>$w(u,!0))),n}function hz(){_i(2)}function j0(n){return Object.isFrozen(n)}var mz={};function Gf(n){const r=mz[n];return r||_i(0,n),r}var gm;function eA(){return gm}function gz(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function zN(n,r){r&&(Gf("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function rw(n){aw(n),n.drafts_.forEach(yz),n.drafts_=null}function aw(n){n===gm&&(gm=n.parent_)}function UN(n){return gm=gz(gm,n)}function yz(n){const r=n[Yi];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function HN(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[Yi].modified_&&(rw(r),_i(4)),eu(n)&&(n=o0(r,n),r.parent_||s0(r,n)),r.patches_&&Gf("Patches").generateReplacementPatches_(i[Yi].base_,n,r.patches_,r.inversePatches_)):n=o0(r,i,[]),rw(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==qO?n:void 0}function o0(n,r,i){if(j0(r))return r;const u=r[Yi];if(!u)return mm(r,(l,d)=>$N(n,u,r,l,d,i)),r;if(u.scope_!==n)return r;if(!u.modified_)return s0(n,u.base_,!0),u.base_;if(!u.finalized_){u.finalized_=!0,u.scope_.unfinalizedDrafts_--;const l=u.copy_;let d=l,h=!1;u.type_===3&&(d=new Set(l),l.clear(),h=!0),mm(d,(v,y)=>$N(n,u,l,v,y,i,h)),s0(n,l,!1),i&&n.patches_&&Gf("Patches").generatePatches_(u,i,n.patches_,n.inversePatches_)}return u.copy_}function $N(n,r,i,u,l,d,h){if(_m.NODE_ENV!=="production"&&l===i&&_i(5),hc(l)){const v=d&&r&&r.type_!==3&&!tw(r.assigned_,u)?d.concat(u):void 0,y=o0(n,l,v);if(KO(i,u,y),hc(y))n.canAutoFreeze_=!1;else return}else h&&i.add(l);if(eu(l)&&!j0(l)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;o0(n,l),(!r||!r.scope_.parent_)&&s0(n,l)}}function s0(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&$w(r,i)}function bz(n,r){const i=Array.isArray(n),u={type_:i?1:0,scope_:r?r.scope_:eA(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=u,d=Gw;i&&(l=[u],d=ym);const{revoke:h,proxy:v}=Proxy.revocable(l,d);return u.draft_=v,u.revoke_=h,v}var Gw={get(n,r){if(r===Yi)return n;const i=Vf(n);if(!tw(i,r))return Cz(n,i,r);const u=i[r];return n.finalized_||!eu(u)?u:u===EE(n.base_,r)?(wE(n),n.copy_[r]=ow(u,n)):u},has(n,r){return r in Vf(n)},ownKeys(n){return Reflect.ownKeys(Vf(n))},set(n,r,i){const u=tA(Vf(n),r);if(u!=null&&u.set)return u.set.call(n.draft_,i),!0;if(!n.modified_){const l=EE(Vf(n),r),d=l==null?void 0:l[Yi];if(d&&d.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(vz(i,l)&&(i!==void 0||tw(n.base_,r)))return!0;wE(n),iw(n)}return n.copy_[r]===i&&(i!==void 0||r in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[r])||(n.copy_[r]=i,n.assigned_[r]=!0),!0},deleteProperty(n,r){return EE(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,wE(n),iw(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Vf(n),u=Reflect.getOwnPropertyDescriptor(i,r);return u&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:u.enumerable,value:i[r]}},defineProperty(){_i(11)},getPrototypeOf(n){return Hp(n.base_)},setPrototypeOf(){_i(12)}},ym={};mm(Gw,(n,r)=>{ym[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});ym.deleteProperty=function(n,r){return _m.NODE_ENV!=="production"&&isNaN(parseInt(r))&&_i(13),ym.set.call(this,n,r,void 0)};ym.set=function(n,r,i){return _m.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&_i(14),Gw.set.call(this,n[0],r,i,n[0])};function EE(n,r){const i=n[Yi];return(i?Vf(i):n)[r]}function Cz(n,r,i){var l;const u=tA(r,i);return u?"value"in u?u.value:(l=u.get)==null?void 0:l.call(n.draft_):void 0}function tA(n,r){if(!(r in n))return;let i=Hp(n);for(;i;){const u=Object.getOwnPropertyDescriptor(i,r);if(u)return u;i=Hp(i)}}function iw(n){n.modified_||(n.modified_=!0,n.parent_&&iw(n.parent_))}function wE(n){n.copy_||(n.copy_=nw(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var xz=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,u)=>{if(typeof r=="function"&&typeof i!="function"){const d=i;i=r;const h=this;return function(y=d,...C){return h.produce(y,x=>i.call(this,x,...C))}}typeof i!="function"&&_i(6),u!==void 0&&typeof u!="function"&&_i(7);let l;if(eu(r)){const d=UN(this),h=ow(r,void 0);let v=!0;try{l=i(h),v=!1}finally{v?rw(d):aw(d)}return zN(d,u),HN(l,d)}else if(!r||typeof r!="object"){if(l=i(r),l===void 0&&(l=r),l===qO&&(l=void 0),this.autoFreeze_&&$w(l,!0),u){const d=[],h=[];Gf("Patches").generateReplacementPatches_(r,l,d,h),u(d,h)}return l}else _i(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(h,...v)=>this.produceWithPatches(h,y=>r(y,...v));let u,l;return[this.produce(r,i,(h,v)=>{u=h,l=v}),u,l]},typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof(n==null?void 0:n.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){eu(n)||_i(8),hc(n)&&(n=nA(n));const r=UN(this),i=ow(n,void 0);return i[Yi].isManual_=!0,aw(r),i}finishDraft(n,r){const i=n&&n[Yi];(!i||!i.isManual_)&&_i(9);const{scope_:u}=i;return zN(u,r),HN(void 0,u)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,r){let i;for(i=r.length-1;i>=0;i--){const l=r[i];if(l.path.length===0&&l.op==="replace"){n=l.value;break}}i>-1&&(r=r.slice(i+1));const u=Gf("Patches").applyPatches_;return hc(n)?u(n,r):this.produce(n,l=>u(l,r))}};function ow(n,r){const i=O0(n)?Gf("MapSet").proxyMap_(n,r):A0(n)?Gf("MapSet").proxySet_(n,r):bz(n,r);return(r?r.scope_:eA()).drafts_.push(i),i}function nA(n){return hc(n)||_i(10,n),rA(n)}function rA(n){if(!eu(n)||j0(n))return n;const r=n[Yi];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=nw(n,r.scope_.immer_.useStrictShallowCopy_)}else i=nw(n,!0);return mm(i,(u,l)=>{KO(i,u,rA(l))}),r&&(r.finalized_=!1),i}var Zi=new xz,So=Zi.produce;Zi.produceWithPatches.bind(Zi);Zi.setAutoFreeze.bind(Zi);Zi.setUseStrictShallowCopy.bind(Zi);Zi.applyPatches.bind(Zi);Zi.createDraft.bind(Zi);Zi.finishDraft.bind(Zi);var Sz={},Ez=(n,r,i)=>{if(r.length===1&&r[0]===i){let u=!1;try{const l={};n(l)===l&&(u=!0)}catch{}if(u){let l;try{throw new Error}catch(d){({stack:l}=d)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
235
235
|
\`createSelector([state => state.todos], todos => todos)\`
|
|
236
236
|
This could lead to inefficient memoization and unnecessary re-renders.
|
|
237
237
|
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:l})}}},wz=(n,r,i)=>{const{memoize:u,memoizeOptions:l}=r,{inputSelectorResults:d,inputSelectorResultsCopy:h}=n,v=u(()=>({}),...l);if(!(v.apply(null,d)===v.apply(null,h))){let C;try{throw new Error}catch(x){({stack:C}=x)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
238
238
|
This means your output selector will likely run more frequently than intended.
|
|
239
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:h,stack:C})}},Rz={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Tz(n,r=`expected a function, instead received ${typeof n}`){if(typeof n!="function")throw new TypeError(r)}function Iz(n,r=`expected an object, instead received ${typeof n}`){if(typeof n!="object")throw new TypeError(r)}function Nz(n,r="expected all items to be functions, instead received the following types: "){if(!n.every(i=>typeof i=="function")){const i=n.map(u=>typeof u=="function"?`function ${u.name||"unnamed"}()`:typeof u).join(", ");throw new TypeError(`${r}[${i}]`)}}var GN=n=>Array.isArray(n)?n:[n];function _z(n){const r=Array.isArray(n[0])?n[0]:n;return Nz(r,"createSelector expects all input-selectors to be functions, but received the following types: "),r}function WN(n,r){const i=[],{length:u}=n;for(let l=0;l<u;l++)i.push(n[l].apply(null,r));return i}var Oz=(n,r)=>{const{identityFunctionCheck:i,inputStabilityCheck:u}={...Rz,...r};return{identityFunctionCheck:{shouldRun:i==="always"||i==="once"&&n,run:Ez},inputStabilityCheck:{shouldRun:u==="always"||u==="once"&&n,run:wz}}},Az=class{constructor(n){this.value=n}deref(){return this.value}},jz=typeof WeakRef<"u"?WeakRef:Az,Dz=0,XN=1;function Nb(){return{s:Dz,v:void 0,o:null,p:null}}function
|
|
240
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:i,firstInputs:d,secondInputs:h,stack:C})}},Rz={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Tz(n,r=`expected a function, instead received ${typeof n}`){if(typeof n!="function")throw new TypeError(r)}function Iz(n,r=`expected an object, instead received ${typeof n}`){if(typeof n!="object")throw new TypeError(r)}function Nz(n,r="expected all items to be functions, instead received the following types: "){if(!n.every(i=>typeof i=="function")){const i=n.map(u=>typeof u=="function"?`function ${u.name||"unnamed"}()`:typeof u).join(", ");throw new TypeError(`${r}[${i}]`)}}var GN=n=>Array.isArray(n)?n:[n];function _z(n){const r=Array.isArray(n[0])?n[0]:n;return Nz(r,"createSelector expects all input-selectors to be functions, but received the following types: "),r}function WN(n,r){const i=[],{length:u}=n;for(let l=0;l<u;l++)i.push(n[l].apply(null,r));return i}var Oz=(n,r)=>{const{identityFunctionCheck:i,inputStabilityCheck:u}={...Rz,...r};return{identityFunctionCheck:{shouldRun:i==="always"||i==="once"&&n,run:Ez},inputStabilityCheck:{shouldRun:u==="always"||u==="once"&&n,run:wz}}},Az=class{constructor(n){this.value=n}deref(){return this.value}},jz=typeof WeakRef<"u"?WeakRef:Az,Dz=0,XN=1;function Nb(){return{s:Dz,v:void 0,o:null,p:null}}function Ww(n,r={}){let i=Nb();const{resultEqualityCheck:u}=r;let l,d=0;function h(){var R;let v=i;const{length:y}=arguments;for(let T=0,A=y;T<A;T++){const N=arguments[T];if(typeof N=="function"||typeof N=="object"&&N!==null){let O=v.o;O===null&&(v.o=O=new WeakMap);const _=O.get(N);_===void 0?(v=Nb(),O.set(N,v)):v=_}else{let O=v.p;O===null&&(v.p=O=new Map);const _=O.get(N);_===void 0?(v=Nb(),O.set(N,v)):v=_}}const C=v;let x;if(v.s===XN?x=v.v:(x=n.apply(null,arguments),d++),C.s=XN,u){const T=((R=l==null?void 0:l.deref)==null?void 0:R.call(l))??l;T!=null&&u(T,x)&&(x=T,d!==0&&d--),l=typeof x=="object"&&x!==null||typeof x=="function"?new jz(x):x}return C.v=x,x}return h.clearCache=()=>{i=Nb(),h.resetResultsCount()},h.resultsCount=()=>d,h.resetResultsCount=()=>{d=0},h}function aA(n,...r){const i=typeof n=="function"?{memoize:n,memoizeOptions:r}:n,u=(...l)=>{let d=0,h=0,v,y={},C=l.pop();typeof C=="object"&&(y=C,C=l.pop()),Tz(C,`createSelector expects an output function after the inputs, but received: [${typeof C}]`);const x={...i,...y},{memoize:R,memoizeOptions:T=[],argsMemoize:A=Ww,argsMemoizeOptions:N=[],devModeChecks:O={}}=x,_=GN(T),L=GN(N),V=_z(l),F=R(function(){return d++,C.apply(null,arguments)},..._);let U=!0;const z=A(function(){h++;const J=WN(V,arguments);if(v=F.apply(null,J),Sz.NODE_ENV!=="production"){const{identityFunctionCheck:q,inputStabilityCheck:Re}=Oz(U,O);if(q.shouldRun&&q.run(C,J,v),Re.shouldRun){const he=WN(V,arguments);Re.run({inputSelectorResults:J,inputSelectorResultsCopy:he},{memoize:R,memoizeOptions:_},arguments)}U&&(U=!1)}return v},...L);return Object.assign(z,{resultFunc:C,memoizedResultFunc:F,dependencies:V,dependencyRecomputations:()=>h,resetDependencyRecomputations:()=>{h=0},lastResult:()=>v,recomputations:()=>d,resetRecomputations:()=>{d=0},memoize:R,argsMemoize:A})};return Object.assign(u,{withTypes:()=>u}),u}var kz=aA(Ww),Mz=Object.assign((n,r=kz)=>{Iz(n,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof n}`);const i=Object.keys(n),u=i.map(d=>n[d]);return r(u,(...d)=>d.reduce((h,v,y)=>(h[i[y]]=v,h),{}))},{withTypes:()=>Mz});function iA(n){return({dispatch:i,getState:u})=>l=>d=>typeof d=="function"?d(i,u,n):l(d)}var Lz=iA(),Pz=iA,Ft={},Fz=(...n)=>{const r=aA(...n),i=Object.assign((...u)=>{const l=r(...u),d=(h,...v)=>l(hc(h)?nA(h):h,...v);return Object.assign(d,l),d},{withTypes:()=>i});return i};Fz(Ww);var Vz=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?i0:i0.apply(null,arguments)},oA=n=>n&&typeof n.match=="function";function Ql(n,r){function i(...u){if(r){let l=r(...u);if(!l)throw new Error(Ft.NODE_ENV==="production"?Rn(0):"prepareAction did not return an object");return{type:n,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:n,payload:u[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=u=>JO(u)&&u.type===n,i}function Bz(n){return typeof n=="function"&&"type"in n&&oA(n)}function zz(n){const r=n?`${n}`.split("/"):[],i=r[r.length-1]||"actionCreator";return`Detected an action creator with type "${n||"unknown"}" being dispatched.
|
|
241
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 Uz(n={}){if(Ft.NODE_ENV==="production")return()=>i=>u=>i(u);const{isActionCreator:r=Bz}=n;return()=>i=>u=>(r(u)&&console.warn(zz(u.type)),i(u))}function sA(n,r){let i=0;return{measureTime(u){const l=Date.now();try{return u()}finally{const d=Date.now();i+=d-l}},warnIfExceeded(){i>n&&console.warn(`${r} took ${i}ms, which is more than the warning threshold of ${n}ms.
|
|
242
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
|
|
243
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var lA=class fm extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,fm.prototype)}static get[Symbol.species](){return fm}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new fm(...r[0].concat(this)):new fm(...r.concat(this))}};function YN(n){return eu(n)?So(n,()=>{}):n}function ZN(n,r,i){if(n.has(r)){let l=n.get(r);return i.update&&(l=i.update(l,r,n),n.set(r,l)),l}if(!i.insert)throw new Error(Ft.NODE_ENV==="production"?Rn(10):"No insert provided for key not already in map");const u=i.insert(r,n);return n.set(r,u),u}function Hz(n){return typeof n!="object"||n==null||Object.isFrozen(n)}function $z(n,r,i){const u=uA(n,r,i);return{detectMutations(){return cA(n,r,u,i)}}}function uA(n,r=[],i,u="",l=new Set){const d={value:i};if(!n(i)&&!l.has(i)){l.add(i),d.children={};for(const h in i){const v=u?u+"."+h:h;r.length&&r.indexOf(v)!==-1||(d.children[h]=uA(n,r,i[h],v))}}return d}function cA(n,r=[],i,u,l=!1,d=""){const h=i?i.value:void 0,v=h===u;if(l&&!v&&!Number.isNaN(u))return{wasMutated:!0,path:d};if(n(h)||n(u))return{wasMutated:!1};const y={};for(let x in i.children)y[x]=!0;for(let x in u)y[x]=!0;const C=r.length>0;for(let x in y){const R=d?d+"."+x:x;if(C&&r.some(N=>N instanceof RegExp?N.test(R):R===N))continue;const T=cA(n,r,i.children[x],u[x],v,R);if(T.wasMutated)return T}return{wasMutated:!1}}function Gz(n={}){if(Ft.NODE_ENV==="production")return()=>r=>i=>r(i);{let r=function(v,y,C,x){return JSON.stringify(v,i(y,x),C)},i=function(v,y){let C=[],x=[];return y||(y=function(R,T){return C[0]===T?"[Circular ~]":"[Circular ~."+x.slice(0,C.indexOf(T)).join(".")+"]"}),function(R,T){if(C.length>0){var A=C.indexOf(this);~A?C.splice(A+1):C.push(this),~A?x.splice(A,1/0,R):x.push(R),~C.indexOf(T)&&(T=y.call(this,R,T))}else C.push(T);return v==null?T:v.call(this,R,T)}},{isImmutable:u=Hz,ignoredPaths:l,warnAfter:d=32}=n;const h=$z.bind(null,u,l);return({getState:v})=>{let y=v(),C=h(y),x;return R=>T=>{const A=sA(d,"ImmutableStateInvariantMiddleware");A.measureTime(()=>{if(y=v(),x=C.detectMutations(),C=h(y),x.wasMutated)throw new Error(Ft.NODE_ENV==="production"?Rn(19):`A state mutation was detected between dispatches, in the path '${x.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const N=R(T);return A.measureTime(()=>{if(y=v(),x=C.detectMutations(),C=h(y),x.wasMutated)throw new Error(Ft.NODE_ENV==="production"?Rn(20):`A state mutation was detected inside a dispatch, in the path: ${x.path||""}. Take a look at the reducer(s) handling the action ${r(T)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),A.warnIfExceeded(),N}}}}function fA(n){const r=typeof n;return n==null||r==="string"||r==="boolean"||r==="number"||Array.isArray(n)||Nm(n)}function sw(n,r="",i=fA,u,l=[],d){let h;if(!i(n))return{keyPath:r||"<root>",value:n};if(typeof n!="object"||n===null||d!=null&&d.has(n))return!1;const v=u!=null?u(n):Object.entries(n),y=l.length>0;for(const[C,x]of v){const R=r?r+"."+C:C;if(!(y&&l.some(A=>A instanceof RegExp?A.test(R):R===A))){if(!i(x))return{keyPath:R,value:x};if(typeof x=="object"&&(h=sw(x,R,i,u,l,d),h))return h}}return d&&dA(n)&&d.add(n),!1}function dA(n){if(!Object.isFrozen(n))return!1;for(const r of Object.values(n))if(!(typeof r!="object"||r===null)&&!dA(r))return!1;return!0}function Wz(n={}){if(Ft.NODE_ENV==="production")return()=>r=>i=>r(i);{const{isSerializable:r=fA,getEntries:i,ignoredActions:u=[],ignoredActionPaths:l=["meta.arg","meta.baseQueryMeta"],ignoredPaths:d=[],warnAfter:h=32,ignoreState:v=!1,ignoreActions:y=!1,disableCache:C=!1}=n,x=!C&&WeakSet?new WeakSet:void 0;return R=>T=>A=>{if(!JO(A))return T(A);const N=T(A),O=sA(h,"SerializableStateInvariantMiddleware");return!y&&!(u.length&&u.indexOf(A.type)!==-1)&&O.measureTime(()=>{const _=sw(A,"",r,i,l,x);if(_){const{keyPath:L,value:V}=_;console.error(`A non-serializable value was detected in an action, in the path: \`${L}\`. Value:`,V,`
|
|
244
244
|
Take a look at the logic that dispatched this action: `,A,`
|
|
245
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)`)}}),v||(O.measureTime(()=>{const _=R.getState(),L=
|
|
246
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),v||(O.measureTime(()=>{const _=R.getState(),L=sw(_,"",r,i,d,x);if(L){const{keyPath:V,value:F}=L;console.error(`A non-serializable value was detected in the state, in the path: \`${V}\`. Value:`,F,`
|
|
247
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)`)}}),O.warnIfExceeded()),N}}}function _b(n){return typeof n=="boolean"}var Xz=()=>function(r){const{thunk:i=!0,immutableCheck:u=!0,serializableCheck:l=!0,actionCreatorCheck:d=!0}=r??{};let h=new lA;if(i&&(_b(i)?h.push(Lz):h.push(Pz(i.extraArgument))),Ft.NODE_ENV!=="production"){if(u){let v={};_b(u)||(v=u),h.unshift(Gz(v))}if(l){let v={};_b(l)||(v=l),h.push(Wz(v))}if(d){let v={};_b(d)||(v=d),h.unshift(Uz(v))}}return h},Yz="RTK_autoBatch",pA=n=>r=>{setTimeout(r,n)},Zz=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:pA(10),Jz=(n={type:"raf"})=>r=>(...i)=>{const u=r(...i);let l=!0,d=!1,h=!1;const v=new Set,y=n.type==="tick"?queueMicrotask:n.type==="raf"?Zz:n.type==="callback"?n.queueNotification:pA(n.timeout),C=()=>{h=!1,d&&(d=!1,v.forEach(x=>x()))};return Object.assign({},u,{subscribe(x){const R=()=>l&&x(),T=u.subscribe(R);return v.add(x),()=>{T(),v.delete(x)}},dispatch(x){var R;try{return l=!((R=x==null?void 0:x.meta)!=null&&R[Yz]),d=!l,d&&(h||(h=!0,y(C))),u.dispatch(x)}finally{l=!0}}})},qz=n=>function(i){const{autoBatch:u=!0}=i??{};let l=new lA(n);return u&&l.push(Jz(typeof u=="object"?u:void 0)),l},cc=Ft.NODE_ENV==="production";function Om(n){const r=Xz(),{reducer:i=void 0,middleware:u,devTools:l=!0,preloadedState:d=void 0,enhancers:h=void 0}=n||{};let v;if(typeof i=="function")v=i;else if(Nm(i))v=cz(i);else throw new Error(Ft.NODE_ENV==="production"?Rn(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(!cc&&u&&typeof u!="function")throw new Error(Ft.NODE_ENV==="production"?Rn(2):"`middleware` field must be a callback");let y;if(typeof u=="function"){if(y=u(r),!cc&&!Array.isArray(y))throw new Error(Ft.NODE_ENV==="production"?Rn(3):"when using a middleware builder function, an array of middleware must be returned")}else y=r();if(!cc&&y.some(N=>typeof N!="function"))throw new Error(Ft.NODE_ENV==="production"?Rn(4):"each middleware provided to configureStore must be a function");let C=o0;l&&(C=Vz({trace:!cc,...typeof l=="object"&&l}));const x=fz(...y),R=qz(x);if(!cc&&h&&typeof h!="function")throw new Error(Ft.NODE_ENV==="production"?Rn(5):"`enhancers` field must be a callback");let T=typeof h=="function"?h(R):R();if(!cc&&!Array.isArray(T))throw new Error(Ft.NODE_ENV==="production"?Rn(6):"`enhancers` callback must return an array");if(!cc&&T.some(N=>typeof N!="function"))throw new Error(Ft.NODE_ENV==="production"?Rn(7):"each enhancer provided to configureStore must be a function");!cc&&y.length&&!T.includes(x)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const A=C(...T);return ZO(v,d,A)}function vA(n){const r={},i=[];let u;const l={addCase(d,h){if(Ft.NODE_ENV!=="production"){if(i.length>0)throw new Error(Ft.NODE_ENV==="production"?Rn(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(u)throw new Error(Ft.NODE_ENV==="production"?Rn(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const v=typeof d=="string"?d:d.type;if(!v)throw new Error(Ft.NODE_ENV==="production"?Rn(28):"`builder.addCase` cannot be called with an empty action type");if(v in r)throw new Error(Ft.NODE_ENV==="production"?Rn(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${v}'`);return r[v]=h,l},addMatcher(d,h){if(Ft.NODE_ENV!=="production"&&u)throw new Error(Ft.NODE_ENV==="production"?Rn(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return i.push({matcher:d,reducer:h}),l},addDefaultCase(d){if(Ft.NODE_ENV!=="production"&&u)throw new Error(Ft.NODE_ENV==="production"?Rn(31):"`builder.addDefaultCase` can only be called once");return u=d,l}};return n(l),[r,i,u]}function Qz(n){return typeof n=="function"}function Kz(n,r){if(Ft.NODE_ENV!=="production"&&typeof r=="object")throw new Error(Ft.NODE_ENV==="production"?Rn(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,u,l]=vA(r),d;if(Qz(n))d=()=>YN(n());else{const v=YN(n);d=()=>v}function h(v=d(),y){let C=[i[y.type],...u.filter(({matcher:x})=>x(y)).map(({reducer:x})=>x)];return C.filter(x=>!!x).length===0&&(C=[l]),C.reduce((x,R)=>{if(R)if(hc(x)){const A=R(x,y);return A===void 0?x:A}else{if(eu(x))return So(x,T=>R(T,y));{const T=R(x,y);if(T===void 0){if(x===null)return x;throw new Error(Ft.NODE_ENV==="production"?Rn(9):"A case reducer on a non-draftable value must not return undefined")}return T}}return x},v)}return h.getInitialState=d,h}var eU="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",hA=(n=21)=>{let r="",i=n;for(;i--;)r+=eU[Math.random()*64|0];return r},tU=(n,r)=>oA(n)?n.match(r):n(r);function nU(...n){return r=>n.some(i=>tU(i,r))}var rU=["name","message","stack","code"],TE=class{constructor(n,r){CE(this,"_type");this.payload=n,this.meta=r}},JN=class{constructor(n,r){CE(this,"_type");this.payload=n,this.meta=r}},aU=n=>{if(typeof n=="object"&&n!==null){const r={};for(const i of rU)typeof n[i]=="string"&&(r[i]=n[i]);return r}return{message:String(n)}},Di=(()=>{function n(r,i,u){const l=Ql(r+"/fulfilled",(y,C,x,R)=>({payload:y,meta:{...R||{},arg:x,requestId:C,requestStatus:"fulfilled"}})),d=Ql(r+"/pending",(y,C,x)=>({payload:void 0,meta:{...x||{},arg:C,requestId:y,requestStatus:"pending"}})),h=Ql(r+"/rejected",(y,C,x,R,T)=>({payload:R,error:(u&&u.serializeError||aU)(y||"Rejected"),meta:{...T||{},arg:x,requestId:C,rejectedWithValue:!!R,requestStatus:"rejected",aborted:(y==null?void 0:y.name)==="AbortError",condition:(y==null?void 0:y.name)==="ConditionError"}}));function v(y){return(C,x,R)=>{const T=u!=null&&u.idGenerator?u.idGenerator(y):hA(),A=new AbortController;let N,O;function _(V){O=V,A.abort()}const L=async function(){var U,z;let V;try{let H=(U=u==null?void 0:u.condition)==null?void 0:U.call(u,y,{getState:x,extra:R});if(oU(H)&&(H=await H),H===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const J=new Promise((q,Re)=>{N=()=>{Re({name:"AbortError",message:O||"Aborted"})},A.signal.addEventListener("abort",N)});C(d(T,y,(z=u==null?void 0:u.getPendingMeta)==null?void 0:z.call(u,{requestId:T,arg:y},{getState:x,extra:R}))),V=await Promise.race([J,Promise.resolve(i(y,{dispatch:C,getState:x,extra:R,requestId:T,signal:A.signal,abort:_,rejectWithValue:(q,Re)=>new TE(q,Re),fulfillWithValue:(q,Re)=>new JN(q,Re)})).then(q=>{if(q instanceof TE)throw q;return q instanceof JN?l(q.payload,T,y,q.meta):l(q,T,y)})])}catch(H){V=H instanceof TE?h(null,T,y,H.payload,H.meta):h(H,T,y)}finally{N&&A.signal.removeEventListener("abort",N)}return u&&!u.dispatchConditionRejection&&h.match(V)&&V.meta.condition||C(V),V}();return Object.assign(L,{abort:_,requestId:T,arg:y,unwrap(){return L.then(iU)}})}}return Object.assign(v,{pending:d,rejected:h,fulfilled:l,settled:nU(h,l),typePrefix:r})}return n.withTypes=()=>n,n})();function iU(n){if(n.meta&&n.meta.rejectedWithValue)throw n.payload;if(n.error)throw n.error;return n.payload}function oU(n){return n!==null&&typeof n=="object"&&typeof n.then=="function"}var sU=Symbol.for("rtk-slice-createasyncthunk");function lU(n,r){return`${n}/${r}`}function uU({creators:n}={}){var i;const r=(i=n==null?void 0:n.asyncThunk)==null?void 0:i[sU];return function(l){const{name:d,reducerPath:h=d}=l;if(!d)throw new Error(Ft.NODE_ENV==="production"?Rn(11):"`name` is a required option for createSlice");typeof process<"u"&&Ft.NODE_ENV==="development"&&l.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const v=(typeof l.reducers=="function"?l.reducers(fU()):l.reducers)||{},y=Object.keys(v),C={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},x={addCase(F,U){const z=typeof F=="string"?F:F.type;if(!z)throw new Error(Ft.NODE_ENV==="production"?Rn(12):"`context.addCase` cannot be called with an empty action type");if(z in C.sliceCaseReducersByType)throw new Error(Ft.NODE_ENV==="production"?Rn(13):"`context.addCase` cannot be called with two reducers for the same action type: "+z);return C.sliceCaseReducersByType[z]=U,x},addMatcher(F,U){return C.sliceMatchers.push({matcher:F,reducer:U}),x},exposeAction(F,U){return C.actionCreators[F]=U,x},exposeCaseReducer(F,U){return C.sliceCaseReducersByName[F]=U,x}};y.forEach(F=>{const U=v[F],z={reducerName:F,type:lU(d,F),createNotation:typeof l.reducers=="function"};pU(U)?hU(z,U,x,r):dU(z,U,x)});function R(){if(Ft.NODE_ENV!=="production"&&typeof l.extraReducers=="object")throw new Error(Ft.NODE_ENV==="production"?Rn(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[F={},U=[],z=void 0]=typeof l.extraReducers=="function"?vA(l.extraReducers):[l.extraReducers],H={...F,...C.sliceCaseReducersByType};return Kz(l.initialState,J=>{for(let q in H)J.addCase(q,H[q]);for(let q of C.sliceMatchers)J.addMatcher(q.matcher,q.reducer);for(let q of U)J.addMatcher(q.matcher,q.reducer);z&&J.addDefaultCase(z)})}const T=F=>F,A=new Map;let N;function O(F,U){return N||(N=R()),N(F,U)}function _(){return N||(N=R()),N.getInitialState()}function L(F,U=!1){function z(J){let q=J[F];if(typeof q>"u"){if(U)q=_();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?Rn(15):"selectSlice returned undefined for an uninjected slice reducer")}return q}function H(J=T){const q=ZN(A,U,{insert:()=>new WeakMap});return ZN(q,J,{insert:()=>{const Re={};for(const[he,ge]of Object.entries(l.selectors??{}))Re[he]=cU(ge,J,_,U);return Re}})}return{reducerPath:F,getSelectors:H,get selectors(){return H(z)},selectSlice:z}}const V={name:d,reducer:O,actions:C.actionCreators,caseReducers:C.sliceCaseReducersByName,getInitialState:_,...L(h),injectInto(F,{reducerPath:U,...z}={}){const H=U??h;return F.inject({reducerPath:H,reducer:O},z),{...V,...L(H,!0)}}};return V}}function cU(n,r,i,u){function l(d,...h){let v=r(d);if(typeof v>"u"){if(u)v=i();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?Rn(16):"selectState returned undefined for an uninjected slice reducer")}return n(v,...h)}return l.unwrapped=n,l}var k0=uU();function fU(){function n(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return n.withTypes=()=>n,{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:n}}function dU({type:n,reducerName:r,createNotation:i},u,l){let d,h;if("reducer"in u){if(i&&!vU(u))throw new Error(Ft.NODE_ENV==="production"?Rn(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");d=u.reducer,h=u.prepare}else d=u;l.addCase(n,d).exposeCaseReducer(r,d).exposeAction(r,h?Ql(n,h):Ql(n))}function pU(n){return n._reducerDefinitionType==="asyncThunk"}function vU(n){return n._reducerDefinitionType==="reducerWithPrepare"}function hU({type:n,reducerName:r},i,u,l){if(!l)throw new Error(Ft.NODE_ENV==="production"?Rn(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:h,pending:v,rejected:y,settled:C,options:x}=i,R=l(n,d,x);u.exposeAction(r,R),h&&u.addCase(R.fulfilled,h),v&&u.addCase(R.pending,v),y&&u.addCase(R.rejected,y),C&&u.addMatcher(R.settled,C),u.exposeCaseReducer(r,{fulfilled:h||Ob,pending:v||Ob,rejected:y||Ob,settled:C||Ob})}function Ob(){}var mU=(n,r)=>{if(typeof n!="function")throw new Error(Ft.NODE_ENV==="production"?Rn(32):`${r} is not a function`)},Yw="listenerMiddleware",gU=n=>{let{type:r,actionCreator:i,matcher:u,predicate:l,effect:d}=n;if(r)l=Ql(r).match;else if(i)r=i.type,l=i.match;else if(u)l=u;else if(!l)throw new Error(Ft.NODE_ENV==="production"?Rn(21):"Creating or removing a listener requires one of the known fields for matching an action");return mU(d,"options.listener"),{predicate:l,type:r,effect:d}},yU=Object.assign(n=>{const{type:r,predicate:i,effect:u}=gU(n);return{id:hA(),effect:u,type:r,predicate:i,pending:new Set,unsubscribe:()=>{throw new Error(Ft.NODE_ENV==="production"?Rn(22):"Unsubscribe not initialized")}}},{withTypes:()=>yU}),bU=Object.assign(Ql(`${Yw}/add`),{withTypes:()=>bU});Ql(`${Yw}/removeAll`);var CU=Object.assign(Ql(`${Yw}/remove`),{withTypes:()=>CU});function Rn(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var M=qf();const kr=Jp(M),u0=GB({__proto__:null,default:kr},[M]);var uw={exports:{}},IE={};/**
|
|
248
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),O.warnIfExceeded()),N}}}function _b(n){return typeof n=="boolean"}var Xz=()=>function(r){const{thunk:i=!0,immutableCheck:u=!0,serializableCheck:l=!0,actionCreatorCheck:d=!0}=r??{};let h=new lA;if(i&&(_b(i)?h.push(Lz):h.push(Pz(i.extraArgument))),Ft.NODE_ENV!=="production"){if(u){let v={};_b(u)||(v=u),h.unshift(Gz(v))}if(l){let v={};_b(l)||(v=l),h.push(Wz(v))}if(d){let v={};_b(d)||(v=d),h.unshift(Uz(v))}}return h},Yz="RTK_autoBatch",pA=n=>r=>{setTimeout(r,n)},Zz=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:pA(10),Jz=(n={type:"raf"})=>r=>(...i)=>{const u=r(...i);let l=!0,d=!1,h=!1;const v=new Set,y=n.type==="tick"?queueMicrotask:n.type==="raf"?Zz:n.type==="callback"?n.queueNotification:pA(n.timeout),C=()=>{h=!1,d&&(d=!1,v.forEach(x=>x()))};return Object.assign({},u,{subscribe(x){const R=()=>l&&x(),T=u.subscribe(R);return v.add(x),()=>{T(),v.delete(x)}},dispatch(x){var R;try{return l=!((R=x==null?void 0:x.meta)!=null&&R[Yz]),d=!l,d&&(h||(h=!0,y(C))),u.dispatch(x)}finally{l=!0}}})},qz=n=>function(i){const{autoBatch:u=!0}=i??{};let l=new lA(n);return u&&l.push(Jz(typeof u=="object"?u:void 0)),l},cc=Ft.NODE_ENV==="production";function Om(n){const r=Xz(),{reducer:i=void 0,middleware:u,devTools:l=!0,preloadedState:d=void 0,enhancers:h=void 0}=n||{};let v;if(typeof i=="function")v=i;else if(Nm(i))v=cz(i);else throw new Error(Ft.NODE_ENV==="production"?Rn(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(!cc&&u&&typeof u!="function")throw new Error(Ft.NODE_ENV==="production"?Rn(2):"`middleware` field must be a callback");let y;if(typeof u=="function"){if(y=u(r),!cc&&!Array.isArray(y))throw new Error(Ft.NODE_ENV==="production"?Rn(3):"when using a middleware builder function, an array of middleware must be returned")}else y=r();if(!cc&&y.some(N=>typeof N!="function"))throw new Error(Ft.NODE_ENV==="production"?Rn(4):"each middleware provided to configureStore must be a function");let C=i0;l&&(C=Vz({trace:!cc,...typeof l=="object"&&l}));const x=fz(...y),R=qz(x);if(!cc&&h&&typeof h!="function")throw new Error(Ft.NODE_ENV==="production"?Rn(5):"`enhancers` field must be a callback");let T=typeof h=="function"?h(R):R();if(!cc&&!Array.isArray(T))throw new Error(Ft.NODE_ENV==="production"?Rn(6):"`enhancers` callback must return an array");if(!cc&&T.some(N=>typeof N!="function"))throw new Error(Ft.NODE_ENV==="production"?Rn(7):"each enhancer provided to configureStore must be a function");!cc&&y.length&&!T.includes(x)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const A=C(...T);return ZO(v,d,A)}function vA(n){const r={},i=[];let u;const l={addCase(d,h){if(Ft.NODE_ENV!=="production"){if(i.length>0)throw new Error(Ft.NODE_ENV==="production"?Rn(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(u)throw new Error(Ft.NODE_ENV==="production"?Rn(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const v=typeof d=="string"?d:d.type;if(!v)throw new Error(Ft.NODE_ENV==="production"?Rn(28):"`builder.addCase` cannot be called with an empty action type");if(v in r)throw new Error(Ft.NODE_ENV==="production"?Rn(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${v}'`);return r[v]=h,l},addMatcher(d,h){if(Ft.NODE_ENV!=="production"&&u)throw new Error(Ft.NODE_ENV==="production"?Rn(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return i.push({matcher:d,reducer:h}),l},addDefaultCase(d){if(Ft.NODE_ENV!=="production"&&u)throw new Error(Ft.NODE_ENV==="production"?Rn(31):"`builder.addDefaultCase` can only be called once");return u=d,l}};return n(l),[r,i,u]}function Qz(n){return typeof n=="function"}function Kz(n,r){if(Ft.NODE_ENV!=="production"&&typeof r=="object")throw new Error(Ft.NODE_ENV==="production"?Rn(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,u,l]=vA(r),d;if(Qz(n))d=()=>YN(n());else{const v=YN(n);d=()=>v}function h(v=d(),y){let C=[i[y.type],...u.filter(({matcher:x})=>x(y)).map(({reducer:x})=>x)];return C.filter(x=>!!x).length===0&&(C=[l]),C.reduce((x,R)=>{if(R)if(hc(x)){const A=R(x,y);return A===void 0?x:A}else{if(eu(x))return So(x,T=>R(T,y));{const T=R(x,y);if(T===void 0){if(x===null)return x;throw new Error(Ft.NODE_ENV==="production"?Rn(9):"A case reducer on a non-draftable value must not return undefined")}return T}}return x},v)}return h.getInitialState=d,h}var eU="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",hA=(n=21)=>{let r="",i=n;for(;i--;)r+=eU[Math.random()*64|0];return r},tU=(n,r)=>oA(n)?n.match(r):n(r);function nU(...n){return r=>n.some(i=>tU(i,r))}var rU=["name","message","stack","code"],RE=class{constructor(n,r){bE(this,"_type");this.payload=n,this.meta=r}},JN=class{constructor(n,r){bE(this,"_type");this.payload=n,this.meta=r}},aU=n=>{if(typeof n=="object"&&n!==null){const r={};for(const i of rU)typeof n[i]=="string"&&(r[i]=n[i]);return r}return{message:String(n)}},Di=(()=>{function n(r,i,u){const l=Ql(r+"/fulfilled",(y,C,x,R)=>({payload:y,meta:{...R||{},arg:x,requestId:C,requestStatus:"fulfilled"}})),d=Ql(r+"/pending",(y,C,x)=>({payload:void 0,meta:{...x||{},arg:C,requestId:y,requestStatus:"pending"}})),h=Ql(r+"/rejected",(y,C,x,R,T)=>({payload:R,error:(u&&u.serializeError||aU)(y||"Rejected"),meta:{...T||{},arg:x,requestId:C,rejectedWithValue:!!R,requestStatus:"rejected",aborted:(y==null?void 0:y.name)==="AbortError",condition:(y==null?void 0:y.name)==="ConditionError"}}));function v(y){return(C,x,R)=>{const T=u!=null&&u.idGenerator?u.idGenerator(y):hA(),A=new AbortController;let N,O;function _(V){O=V,A.abort()}const L=async function(){var U,z;let V;try{let H=(U=u==null?void 0:u.condition)==null?void 0:U.call(u,y,{getState:x,extra:R});if(oU(H)&&(H=await H),H===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const J=new Promise((q,Re)=>{N=()=>{Re({name:"AbortError",message:O||"Aborted"})},A.signal.addEventListener("abort",N)});C(d(T,y,(z=u==null?void 0:u.getPendingMeta)==null?void 0:z.call(u,{requestId:T,arg:y},{getState:x,extra:R}))),V=await Promise.race([J,Promise.resolve(i(y,{dispatch:C,getState:x,extra:R,requestId:T,signal:A.signal,abort:_,rejectWithValue:(q,Re)=>new RE(q,Re),fulfillWithValue:(q,Re)=>new JN(q,Re)})).then(q=>{if(q instanceof RE)throw q;return q instanceof JN?l(q.payload,T,y,q.meta):l(q,T,y)})])}catch(H){V=H instanceof RE?h(null,T,y,H.payload,H.meta):h(H,T,y)}finally{N&&A.signal.removeEventListener("abort",N)}return u&&!u.dispatchConditionRejection&&h.match(V)&&V.meta.condition||C(V),V}();return Object.assign(L,{abort:_,requestId:T,arg:y,unwrap(){return L.then(iU)}})}}return Object.assign(v,{pending:d,rejected:h,fulfilled:l,settled:nU(h,l),typePrefix:r})}return n.withTypes=()=>n,n})();function iU(n){if(n.meta&&n.meta.rejectedWithValue)throw n.payload;if(n.error)throw n.error;return n.payload}function oU(n){return n!==null&&typeof n=="object"&&typeof n.then=="function"}var sU=Symbol.for("rtk-slice-createasyncthunk");function lU(n,r){return`${n}/${r}`}function uU({creators:n}={}){var i;const r=(i=n==null?void 0:n.asyncThunk)==null?void 0:i[sU];return function(l){const{name:d,reducerPath:h=d}=l;if(!d)throw new Error(Ft.NODE_ENV==="production"?Rn(11):"`name` is a required option for createSlice");typeof process<"u"&&Ft.NODE_ENV==="development"&&l.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const v=(typeof l.reducers=="function"?l.reducers(fU()):l.reducers)||{},y=Object.keys(v),C={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},x={addCase(F,U){const z=typeof F=="string"?F:F.type;if(!z)throw new Error(Ft.NODE_ENV==="production"?Rn(12):"`context.addCase` cannot be called with an empty action type");if(z in C.sliceCaseReducersByType)throw new Error(Ft.NODE_ENV==="production"?Rn(13):"`context.addCase` cannot be called with two reducers for the same action type: "+z);return C.sliceCaseReducersByType[z]=U,x},addMatcher(F,U){return C.sliceMatchers.push({matcher:F,reducer:U}),x},exposeAction(F,U){return C.actionCreators[F]=U,x},exposeCaseReducer(F,U){return C.sliceCaseReducersByName[F]=U,x}};y.forEach(F=>{const U=v[F],z={reducerName:F,type:lU(d,F),createNotation:typeof l.reducers=="function"};pU(U)?hU(z,U,x,r):dU(z,U,x)});function R(){if(Ft.NODE_ENV!=="production"&&typeof l.extraReducers=="object")throw new Error(Ft.NODE_ENV==="production"?Rn(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[F={},U=[],z=void 0]=typeof l.extraReducers=="function"?vA(l.extraReducers):[l.extraReducers],H={...F,...C.sliceCaseReducersByType};return Kz(l.initialState,J=>{for(let q in H)J.addCase(q,H[q]);for(let q of C.sliceMatchers)J.addMatcher(q.matcher,q.reducer);for(let q of U)J.addMatcher(q.matcher,q.reducer);z&&J.addDefaultCase(z)})}const T=F=>F,A=new Map;let N;function O(F,U){return N||(N=R()),N(F,U)}function _(){return N||(N=R()),N.getInitialState()}function L(F,U=!1){function z(J){let q=J[F];if(typeof q>"u"){if(U)q=_();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?Rn(15):"selectSlice returned undefined for an uninjected slice reducer")}return q}function H(J=T){const q=ZN(A,U,{insert:()=>new WeakMap});return ZN(q,J,{insert:()=>{const Re={};for(const[he,ge]of Object.entries(l.selectors??{}))Re[he]=cU(ge,J,_,U);return Re}})}return{reducerPath:F,getSelectors:H,get selectors(){return H(z)},selectSlice:z}}const V={name:d,reducer:O,actions:C.actionCreators,caseReducers:C.sliceCaseReducersByName,getInitialState:_,...L(h),injectInto(F,{reducerPath:U,...z}={}){const H=U??h;return F.inject({reducerPath:H,reducer:O},z),{...V,...L(H,!0)}}};return V}}function cU(n,r,i,u){function l(d,...h){let v=r(d);if(typeof v>"u"){if(u)v=i();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?Rn(16):"selectState returned undefined for an uninjected slice reducer")}return n(v,...h)}return l.unwrapped=n,l}var D0=uU();function fU(){function n(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return n.withTypes=()=>n,{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:n}}function dU({type:n,reducerName:r,createNotation:i},u,l){let d,h;if("reducer"in u){if(i&&!vU(u))throw new Error(Ft.NODE_ENV==="production"?Rn(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");d=u.reducer,h=u.prepare}else d=u;l.addCase(n,d).exposeCaseReducer(r,d).exposeAction(r,h?Ql(n,h):Ql(n))}function pU(n){return n._reducerDefinitionType==="asyncThunk"}function vU(n){return n._reducerDefinitionType==="reducerWithPrepare"}function hU({type:n,reducerName:r},i,u,l){if(!l)throw new Error(Ft.NODE_ENV==="production"?Rn(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:h,pending:v,rejected:y,settled:C,options:x}=i,R=l(n,d,x);u.exposeAction(r,R),h&&u.addCase(R.fulfilled,h),v&&u.addCase(R.pending,v),y&&u.addCase(R.rejected,y),C&&u.addMatcher(R.settled,C),u.exposeCaseReducer(r,{fulfilled:h||Ob,pending:v||Ob,rejected:y||Ob,settled:C||Ob})}function Ob(){}var mU=(n,r)=>{if(typeof n!="function")throw new Error(Ft.NODE_ENV==="production"?Rn(32):`${r} is not a function`)},Xw="listenerMiddleware",gU=n=>{let{type:r,actionCreator:i,matcher:u,predicate:l,effect:d}=n;if(r)l=Ql(r).match;else if(i)r=i.type,l=i.match;else if(u)l=u;else if(!l)throw new Error(Ft.NODE_ENV==="production"?Rn(21):"Creating or removing a listener requires one of the known fields for matching an action");return mU(d,"options.listener"),{predicate:l,type:r,effect:d}},yU=Object.assign(n=>{const{type:r,predicate:i,effect:u}=gU(n);return{id:hA(),effect:u,type:r,predicate:i,pending:new Set,unsubscribe:()=>{throw new Error(Ft.NODE_ENV==="production"?Rn(22):"Unsubscribe not initialized")}}},{withTypes:()=>yU}),bU=Object.assign(Ql(`${Xw}/add`),{withTypes:()=>bU});Ql(`${Xw}/removeAll`);var CU=Object.assign(Ql(`${Xw}/remove`),{withTypes:()=>CU});function Rn(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var M=qf();const kr=qp(M),l0=GB({__proto__:null,default:kr},[M]);var lw={exports:{}},TE={};/**
|
|
249
249
|
* @license React
|
|
250
250
|
* use-sync-external-store-with-selector.production.min.js
|
|
251
251
|
*
|
|
@@ -253,7 +253,7 @@ Take a look at the reducer(s) handling this action type: ${A.type}.
|
|
|
253
253
|
*
|
|
254
254
|
* This source code is licensed under the MIT license found in the
|
|
255
255
|
* LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/var qN;function xU(){if(qN)return
|
|
256
|
+
*/var qN;function xU(){if(qN)return TE;qN=1;var n=qf();function r(y,C){return y===C&&(y!==0||1/y===1/C)||y!==y&&C!==C}var i=typeof Object.is=="function"?Object.is:r,u=n.useSyncExternalStore,l=n.useRef,d=n.useEffect,h=n.useMemo,v=n.useDebugValue;return TE.useSyncExternalStoreWithSelector=function(y,C,x,R,T){var A=l(null);if(A.current===null){var N={hasValue:!1,value:null};A.current=N}else N=A.current;A=h(function(){function _(z){if(!L){if(L=!0,V=z,z=R(z),T!==void 0&&N.hasValue){var H=N.value;if(T(H,z))return F=H}return F=z}if(H=F,i(V,z))return H;var J=R(z);return T!==void 0&&T(H,J)?H:(V=z,F=J)}var L=!1,V,F,U=x===void 0?null:x;return[function(){return _(C())},U===null?void 0:function(){return _(U())}]},[C,x,R,T]);var O=u(y,A[0],A[1]);return d(function(){N.hasValue=!0,N.value=O},[O]),v(O),O},TE}var IE={},QN;function SU(){if(QN)return IE;QN=1;var n={};/**
|
|
257
257
|
* @license React
|
|
258
258
|
* use-sync-external-store-with-selector.development.js
|
|
259
259
|
*
|
|
@@ -261,13 +261,13 @@ Take a look at the reducer(s) handling this action type: ${A.type}.
|
|
|
261
261
|
*
|
|
262
262
|
* This source code is licensed under the MIT license found in the
|
|
263
263
|
* LICENSE file in the root directory of this source tree.
|
|
264
|
-
*/return n.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=qf();function i(x,R){return x===R&&(x!==0||1/x===1/R)||x!==x&&R!==R}var u=typeof Object.is=="function"?Object.is:i,l=r.useSyncExternalStore,d=r.useRef,h=r.useEffect,v=r.useMemo,y=r.useDebugValue;function C(x,R,T,A,N){var O=d(null),_;O.current===null?(_={hasValue:!1,value:null},O.current=_):_=O.current;var L=v(function(){var z=!1,H,J,q=function(fe){if(!z){z=!0,H=fe;var Oe=A(fe);if(N!==void 0&&_.hasValue){var Te=_.value;if(N(Te,Oe))return J=Te,Te}return J=Oe,Oe}var xe=H,je=J;if(u(xe,fe))return je;var Le=A(fe);return N!==void 0&&N(je,Le)?je:(H=fe,J=Le,Le)},Re=T===void 0?null:T,he=function(){return q(R())},ge=Re===null?void 0:function(){return q(Re())};return[he,ge]},[R,T,A,N]),V=L[0],F=L[1],U=l(x,V,F);return h(function(){_.hasValue=!0,_.value=U},[U]),y(U),U}
|
|
264
|
+
*/return n.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=qf();function i(x,R){return x===R&&(x!==0||1/x===1/R)||x!==x&&R!==R}var u=typeof Object.is=="function"?Object.is:i,l=r.useSyncExternalStore,d=r.useRef,h=r.useEffect,v=r.useMemo,y=r.useDebugValue;function C(x,R,T,A,N){var O=d(null),_;O.current===null?(_={hasValue:!1,value:null},O.current=_):_=O.current;var L=v(function(){var z=!1,H,J,q=function(fe){if(!z){z=!0,H=fe;var Oe=A(fe);if(N!==void 0&&_.hasValue){var Te=_.value;if(N(Te,Oe))return J=Te,Te}return J=Oe,Oe}var xe=H,je=J;if(u(xe,fe))return je;var Le=A(fe);return N!==void 0&&N(je,Le)?je:(H=fe,J=Le,Le)},Re=T===void 0?null:T,he=function(){return q(R())},ge=Re===null?void 0:function(){return q(Re())};return[he,ge]},[R,T,A,N]),V=L[0],F=L[1],U=l(x,V,F);return h(function(){_.hasValue=!0,_.value=U},[U]),y(U),U}IE.useSyncExternalStoreWithSelector=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),IE}var EU={};EU.NODE_ENV==="production"?lw.exports=xU():lw.exports=SU();var wU=lw.exports,us={},Jt="default"in l0?kr:l0,KN=Symbol.for("react-redux-context"),e_=typeof globalThis<"u"?globalThis:{};function RU(){if(!Jt.createContext)return{};const n=e_[KN]??(e_[KN]=new Map);let r=n.get(Jt.createContext);return r||(r=Jt.createContext(null),us.NODE_ENV!=="production"&&(r.displayName="ReactRedux"),n.set(Jt.createContext,r)),r}var tu=RU(),mA=()=>{throw new Error("uSES not initialized!")};function Yw(n=tu){return function(){const i=Jt.useContext(n);if(us.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=Yw(),yA=mA,TU=n=>{yA=n},IU=(n,r)=>n===r;function NU(n=tu){const r=n===tu?gA:Yw(n),i=(u,l={})=>{const{equalityFn:d=IU,devModeChecks:h={}}=typeof l=="function"?{equalityFn:l}:l;if(us.NODE_ENV!=="production"){if(!u)throw new Error("You must pass a selector to useSelector");if(typeof u!="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:v,subscription:y,getServerState:C,stabilityCheck:x,identityFunctionCheck:R}=r(),T=Jt.useRef(!0),A=Jt.useCallback({[u.name](O){const _=u(O);if(us.NODE_ENV!=="production"){const{identityFunctionCheck:L,stabilityCheck:V}={stabilityCheck:x,identityFunctionCheck:R,...h};if(V==="always"||V==="once"&&T.current){const F=u(O);if(!d(_,F)){let U;try{throw new Error}catch(z){({stack:U}=z)}console.warn("Selector "+(u.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
265
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:O,selected:_,selected2:F,stack:U})}}if((L==="always"||L==="once"&&T.current)&&_===O){let F;try{throw new Error}catch(U){({stack:F}=U)}console.warn("Selector "+(u.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:F})}T.current&&(T.current=!1)}return _}}[u.name],[u,x,h.stabilityCheck]),N=yA(y.addNestedSub,v.getState,C||v.getState,A,d);return Jt.useDebugValue(N),N};return Object.assign(i,{withTypes:()=>i}),i}var dr=NU(),_U=Symbol.for("react.element"),OU=Symbol.for("react.portal"),bA=Symbol.for("react.fragment"),CA=Symbol.for("react.strict_mode"),xA=Symbol.for("react.profiler"),SA=Symbol.for("react.provider"),
|
|
266
|
+
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:F})}T.current&&(T.current=!1)}return _}}[u.name],[u,x,h.stabilityCheck]),N=yA(y.addNestedSub,v.getState,C||v.getState,A,d);return Jt.useDebugValue(N),N};return Object.assign(i,{withTypes:()=>i}),i}var dr=NU(),_U=Symbol.for("react.element"),OU=Symbol.for("react.portal"),bA=Symbol.for("react.fragment"),CA=Symbol.for("react.strict_mode"),xA=Symbol.for("react.profiler"),SA=Symbol.for("react.provider"),Zw=Symbol.for("react.context"),AU=Symbol.for("react.server_context"),Jw=Symbol.for("react.forward_ref"),EA=Symbol.for("react.suspense"),wA=Symbol.for("react.suspense_list"),k0=Symbol.for("react.memo"),RA=Symbol.for("react.lazy"),jU=Symbol.for("react.offscreen"),DU=Symbol.for("react.client.reference"),kU=Jw,MU=k0;function LU(n){return typeof n=="string"||typeof n=="function"||n===bA||n===xA||n===CA||n===EA||n===wA||n===jU||typeof n=="object"&&n!==null&&(n.$$typeof===RA||n.$$typeof===k0||n.$$typeof===SA||n.$$typeof===Zw||n.$$typeof===Jw||n.$$typeof===DU||n.getModuleId!==void 0)}function TA(n){if(typeof n=="object"&&n!==null){const r=n.$$typeof;switch(r){case _U:{const i=n.type;switch(i){case bA:case xA:case CA:case EA:case wA:return i;default:{const u=i&&i.$$typeof;switch(u){case AU:case Zw:case Jw:case RA:case k0:case SA:return u;default:return r}}}}case OU:return r}}}function PU(n){return TA(n)===Zw}function FU(n){return TA(n)===k0}function qw(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function NE(n,r){if(n)(r==="mapStateToProps"||r==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(n,"dependsOnOwnProps")||qw(`The selector for ${r} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${r} in connect.`)}function VU(n,r,i){NE(n,"mapStateToProps"),NE(r,"mapDispatchToProps"),NE(i,"mergeProps")}function BU(n,r,i,u,{areStatesEqual:l,areOwnPropsEqual:d,areStatePropsEqual:h}){let v=!1,y,C,x,R,T;function A(V,F){return y=V,C=F,x=n(y,C),R=r(u,C),T=i(x,R,C),v=!0,T}function N(){return x=n(y,C),r.dependsOnOwnProps&&(R=r(u,C)),T=i(x,R,C),T}function O(){return n.dependsOnOwnProps&&(x=n(y,C)),r.dependsOnOwnProps&&(R=r(u,C)),T=i(x,R,C),T}function _(){const V=n(y,C),F=!h(V,x);return x=V,F&&(T=i(x,R,C)),T}function L(V,F){const U=!d(F,C),z=!l(V,y,F,C);return y=V,C=F,U&&z?N():U?O():z?_():T}return function(F,U){return v?L(F,U):A(F,U)}}function zU(n,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:u,...l}){const d=r(n,l),h=i(n,l),v=u(n,l);return us.NODE_ENV!=="production"&&VU(d,h,v),BU(d,h,v,n,l)}function UU(n,r){const i={};for(const u in n){const l=n[u];typeof l=="function"&&(i[u]=(...d)=>r(l(...d)))}return i}function HU(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);if(r===null)return!0;let i=r;for(;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return r===i}function IA(n,r,i){HU(n)||qw(`${i}() in ${r} must return a plain object. Instead received ${n}.`)}function uw(n){return function(i){const u=n(i);function l(){return u}return l.dependsOnOwnProps=!1,l}}function t_(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function NA(n,r){return function(u,{displayName:l}){const d=function(v,y){return d.dependsOnOwnProps?d.mapToProps(v,y):d.mapToProps(v,void 0)};return d.dependsOnOwnProps=!0,d.mapToProps=function(v,y){d.mapToProps=n,d.dependsOnOwnProps=t_(n);let C=d(v,y);return typeof C=="function"&&(d.mapToProps=C,d.dependsOnOwnProps=t_(C),C=d(v,y)),us.NODE_ENV!=="production"&&IA(C,l,r),C},d}}function Qw(n,r){return(i,u)=>{throw new Error(`Invalid value of type ${typeof n} for ${r} argument when connecting component ${u.wrappedComponentName}.`)}}function $U(n){return n&&typeof n=="object"?uw(r=>UU(n,r)):n?typeof n=="function"?NA(n,"mapDispatchToProps"):Qw(n,"mapDispatchToProps"):uw(r=>({dispatch:r}))}function GU(n){return n?typeof n=="function"?NA(n,"mapStateToProps"):Qw(n,"mapStateToProps"):uw(()=>({}))}function WU(n,r,i){return{...i,...n,...r}}function XU(n){return function(i,{displayName:u,areMergedPropsEqual:l}){let d=!1,h;return function(y,C,x){const R=n(y,C,x);return d?l(R,h)||(h=R):(d=!0,h=R,us.NODE_ENV!=="production"&&IA(h,u,"mergeProps")),h}}}function YU(n){return n?typeof n=="function"?XU(n):Qw(n,"mergeProps"):()=>WU}function ZU(n){n()}function JU(){let n=null,r=null;return{clear(){n=null,r=null},notify(){ZU(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let u=n;for(;u;)i.push(u),u=u.next;return i},subscribe(i){let u=!0;const l=r={callback:i,next:null,prev:r};return l.prev?l.prev.next=l:n=l,function(){!u||n===null||(u=!1,l.next?l.next.prev=l.prev:r=l.prev,l.prev?l.prev.next=l.next:n=l.next)}}}}var n_={notify(){},get:()=>[]};function _A(n,r){let i,u=n_,l=0,d=!1;function h(O){x();const _=u.subscribe(O);let L=!1;return()=>{L||(L=!0,_(),R())}}function v(){u.notify()}function y(){N.onStateChange&&N.onStateChange()}function C(){return d}function x(){l++,i||(i=r?r.addNestedSub(y):n.subscribe(y),u=JU())}function R(){l--,i&&l===0&&(i(),i=void 0,u.clear(),u=n_)}function T(){d||(d=!0,x())}function A(){d&&(d=!1,R())}const N={addNestedSub:h,notifyNestedSubs:v,handleChangeWrapper:y,isSubscribed:C,trySubscribe:T,tryUnsubscribe:A,getListeners:()=>u};return N}var qU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",u0=qU?Jt.useLayoutEffect:Jt.useEffect;function r_(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function _E(n,r){if(r_(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;const i=Object.keys(n),u=Object.keys(r);if(i.length!==u.length)return!1;for(let l=0;l<i.length;l++)if(!Object.prototype.hasOwnProperty.call(r,i[l])||!r_(n[i[l]],r[i[l]]))return!1;return!0}var QU={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KU={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},OA={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tH={[kU]:eH,[MU]:OA};function a_(n){return FU(n)?OA:tH[n.$$typeof]||QU}var nH=Object.defineProperty,rH=Object.getOwnPropertyNames,i_=Object.getOwnPropertySymbols,aH=Object.getOwnPropertyDescriptor,iH=Object.getPrototypeOf,o_=Object.prototype;function cw(n,r){if(typeof r!="string"){if(o_){const d=iH(r);d&&d!==o_&&cw(n,d)}let i=rH(r);i_&&(i=i.concat(i_(r)));const u=a_(n),l=a_(r);for(let d=0;d<i.length;++d){const h=i[d];if(!KU[h]&&!(l&&l[h])&&!(u&&u[h])){const v=aH(r,h);try{nH(n,h,v)}catch{}}}}return n}var AA=mA,oH=n=>{AA=n},sH=[null,null],lH=n=>{try{return JSON.stringify(n)}catch{return String(n)}};function uH(n,r,i){u0(()=>n(...r),i)}function cH(n,r,i,u,l,d){n.current=u,i.current=!1,l.current&&(l.current=null,d())}function fH(n,r,i,u,l,d,h,v,y,C,x){if(!n)return()=>{};let R=!1,T=null;const A=()=>{if(R||!v.current)return;const O=r.getState();let _,L;try{_=u(O,l.current)}catch(V){L=V,T=V}L||(T=null),_===d.current?h.current||C():(d.current=_,y.current=_,h.current=!0,x())};return i.onStateChange=A,i.trySubscribe(),A(),()=>{if(R=!0,i.tryUnsubscribe(),i.onStateChange=null,T)throw T}}function dH(n,r){return n===r}var s_=!1;function pH(n,r,i,{pure:u,areStatesEqual:l=dH,areOwnPropsEqual:d=_E,areStatePropsEqual:h=_E,areMergedPropsEqual:v=_E,forwardRef:y=!1,context:C=tu}={}){us.NODE_ENV!=="production"&&u!==void 0&&!s_&&(s_=!0,qw('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const x=C,R=GU(n),T=$U(r),A=YU(i),N=!!n;return _=>{if(us.NODE_ENV!=="production"&&!LU(_))throw new Error(`You must pass a component to the function returned by connect. Instead received ${lH(_)}`);const L=_.displayName||_.name||"Component",V=`Connect(${L})`,F={shouldHandleStateChanges:N,displayName:V,wrappedComponentName:L,WrappedComponent:_,initMapStateToProps:R,initMapDispatchToProps:T,initMergeProps:A,areStatesEqual:l,areStatePropsEqual:h,areOwnPropsEqual:d,areMergedPropsEqual:v};function U(J){const[q,Re,he]=Jt.useMemo(()=>{const{reactReduxForwardedRef:ft,...Ae}=J;return[J.context,ft,Ae]},[J]),ge=Jt.useMemo(()=>{let ft=x;if(q!=null&&q.Consumer&&us.NODE_ENV!=="production"){if(!PU(Jt.createElement(q.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");ft=q}return ft},[q,x]),fe=Jt.useContext(ge),Oe=!!J.store&&!!J.store.getState&&!!J.store.dispatch,Te=!!fe&&!!fe.store;if(us.NODE_ENV!=="production"&&!Oe&&!Te)throw new Error(`Could not find "store" in the context of "${V}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${V} in connect options.`);const xe=Oe?J.store:fe.store,je=Te?fe.getServerState:xe.getState,Le=Jt.useMemo(()=>zU(xe.dispatch,F),[xe]),[ne,_e]=Jt.useMemo(()=>{if(!N)return sH;const ft=_A(xe,Oe?void 0:fe.subscription),Ae=ft.notifyNestedSubs.bind(ft);return[ft,Ae]},[xe,Oe,fe]),G=Jt.useMemo(()=>Oe?fe:{...fe,subscription:ne},[Oe,fe,ne]),Y=Jt.useRef(),re=Jt.useRef(he),ye=Jt.useRef(),Se=Jt.useRef(!1);Jt.useRef(!1);const Ne=Jt.useRef(!1),le=Jt.useRef();u0(()=>(Ne.current=!0,()=>{Ne.current=!1}),[]);const ve=Jt.useMemo(()=>()=>ye.current&&he===re.current?ye.current:Le(xe.getState(),he),[xe,he]),we=Jt.useMemo(()=>Ae=>ne?fH(N,xe,ne,Le,re,Y,Se,Ne,ye,_e,Ae):()=>{},[ne]);uH(cH,[re,Y,Se,he,ye,_e]);let Ve;try{Ve=AA(we,ve,je?()=>Le(je(),he):ve)}catch(ft){throw le.current&&(ft.message+=`
|
|
267
267
|
The error may be correlated with this previous error:
|
|
268
268
|
${le.current.stack}
|
|
269
269
|
|
|
270
|
-
`),ft}c0(()=>{le.current=void 0,ye.current=void 0,Y.current=Ve});const et=Jt.useMemo(()=>Jt.createElement(_,{...Ve,ref:Re}),[Re,_,Ve]);return Jt.useMemo(()=>N?Jt.createElement(ge.Provider,{value:G},et):et,[ge,et,G])}const H=Jt.memo(U);if(H.WrappedComponent=_,H.displayName=U.displayName=V,y){const q=Jt.forwardRef(function(he,ge){return Jt.createElement(H,{...he,reactReduxForwardedRef:ge})});return q.displayName=V,q.WrappedComponent=_,fw(q,_)}return fw(H,_)}}var fs=pH;function vH({store:n,context:r,children:i,serverState:u,stabilityCheck:l="once",identityFunctionCheck:d="once"}){const h=Jt.useMemo(()=>{const C=_A(n);return{store:n,subscription:C,getServerState:u?()=>u:void 0,stabilityCheck:l,identityFunctionCheck:d}},[n,u,l,d]),v=Jt.useMemo(()=>n.getState(),[n]);c0(()=>{const{subscription:C}=h;return C.onStateChange=C.notifyNestedSubs,C.trySubscribe(),v!==n.getState()&&C.notifyNestedSubs(),()=>{C.tryUnsubscribe(),C.onStateChange=void 0}},[h,v]);const y=r||tu;return Jt.createElement(y.Provider,{value:h},i)}var qp=vH;function jA(n=tu){const r=n===tu?gA:Zw(n),i=()=>{const{store:u}=r();return u};return Object.assign(i,{withTypes:()=>i}),i}var hH=jA();function mH(n=tu){const r=n===tu?hH:jA(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var To=mH();TU(wU.useSyncExternalStoreWithSelector);oH(M.useSyncExternalStore);const dw={user:{colors:["#ffc42d","#fea92c","#f98f30","#f07537"]},rp:{colors:["#48c0b9","#2e9da4","#207b8b","#1a5b6e"]}},AE={};function DA(n,r=3){let i=0;for(;n/Math.pow(1e3,i)>1e3;)i+=1;const u=n.toString().length,l=Math.pow(10,u-r);return(Math.round(n/l)*l/Math.pow(1e3,i)).toString()+["","K","M","B","T"][i]}async function gH(){return await(await fetch("https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community?type=style&token=AAPK220079f462f24fda89c27fa210c3f887EJPCECuukKD8PnCIBqktgGTKZWPlVXWjRoSsZYGkOJ12QemGItZ4liRZkcUzYyme")).json()}async function yH(n){if(AE[n])return AE[n];const r=document.location,i=`${r.protocol}//${r.host}${r.pathname}`,l=await(await fetch(`${i}/${n}`)).json();return AE[n]=l,l}function bH(n){const r=[...n.creditLines.features.map(u=>u.properties.credits)],i=[...n.rpPoints.features.map(u=>u.properties.rpCredits),...n.userPoints.features.map(u=>u.properties.userCredits)];return{lines:u_(r),points:u_(i)}}function l_({activeOrg:n,basemapStyle:r,creditLevels:i,creditType:u,geoJSON:l,organizationType:d}){const h={},v=[];if(l&&i){const C=d==="user"?"rp":"user",x=l[`${d}Points`],R=l[`${C}Points`],T=`${d}Credits`,A=`${C}Credits`;h.organizations={type:"geojson",data:x};const N={user:[],rp:[]},O=[];i.points.forEach((L,V)=>{Object.keys(dw).forEach(F=>{N[F].push(L[1],dw[F].colors[V])}),O.push(L[1],5*(V+1))});const _=[];if(i.lines.forEach((L,V)=>{_.push(L[1],1*(V+1))}),v.push({id:"organizations",type:"circle",source:"organizations",paint:{"circle-radius":["interpolate",["linear"],["get",T],...O],"circle-color":["interpolate",["linear"],["get",T],...N[d]],"circle-opacity":n?["match",["id"],n.id,1,.3]:1,"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),n&&u!=="allocated"){h.opp={type:"geojson",data:R};const L=["get",n.id.toString(),["get",`${A}Map`]];v.push({id:"opp",type:"circle",source:"opp",filter:["has",n.id.toString(),["get",`${A}Map`]],paint:{"circle-radius":["interpolate",["linear"],L,...O],"circle-color":["interpolate",["linear"],L,...N[C]],"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),h.credits={type:"geojson",data:l.creditLines},v.push({id:"credits",type:"line",source:"credits",filter:["==",["get",`${d}_organization_id`],n.id],paint:{"line-color":"#444444","line-opacity":.4,"line-width":["interpolate",["linear"],["get","credits"],..._]}})}}const y=r||{version:8,sources:{},layers:[]};return{...y,sources:{...y.sources,...h},layers:[...y.layers.filter(C=>C.id!=="Marine waterbody/label/2x large"),...v]}}function CH(n,r,i,u,l=20){return[...Array(l+1).keys()].map(d=>d/l).map(d=>{let h=d*(i-n)+n,v=d*(u-r)+r+Math.abs(Math.sin(d*Math.PI)*(i-n)*.1);return[h,v]})}function xH(n,r,i){const u={};return n.features.forEach(d=>u[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=>u[d.user_organization_id]!==void 0&&(i==="allocated"||u[d.rp_organization_id]!==void 0)).map(d=>{const h=u[d.user_organization_id],v=u[d.rp_organization_id];if(h.properties.userCredits+=d.credits,v&&(v.properties.rpCredits+=d.credits),h.properties.userCreditsMap[d.rp_organization_id]=(h.properties.userCreditsMap[d.rp_organization_id]||0)+d.credits,v&&(v.properties.rpCreditsMap[d.user_organization_id]=(v.properties.rpCreditsMap[d.user_organization_id]||0)+d.credits),i!=="allocated")return{type:"Feature",geometry:{type:"LineString",coordinates:CH(...u[d.user_organization_id].geometry.coordinates,...u[d.rp_organization_id].geometry.coordinates)},properties:d}}).filter(d=>d!==void 0)},userPoints:{type:"FeatureCollection",features:Object.values(u).filter(d=>d.properties.userCredits>0).sort((d,h)=>d.properties.userCredits>h.properties.userCredits?-1:1)},rpPoints:{type:"FeatureCollection",features:Object.values(u).filter(d=>d.properties.rpCredits>0).sort((d,h)=>d.properties.rpCredits>h.properties.rpCredits?-1:1)}}}function u_(n,r=[0,.3,.6,.9]){return r.map((i,u)=>{const l=SH(n,i),d=u===r.length-1?"+":"";return[`${DA(Math.round(l))}${d}`,l]})}function SH(n,r){n.sort((d,h)=>d-h);const i=(n.length-1)*r,u=Math.floor(i),l=i-u;return n[u+1]!==void 0?n[u]+l*(n[u+1]-n[u]):n[u]}const EH="_fullscreen_1iid9_6",wH="_map_1iid9_14",Ab={"allocations-map":"_allocations-map_1iid9_1",fullscreen:EH,map:wH},RH="_group_11k83_1",TH="_button_11k83_6",IH="_icon_11k83_16",jE={group:RH,button:TH,icon:IH};function c_({choices:n,disabledValues:r=[],label:i,value:u,setValue:l}){const d=[];return n.forEach(([h,v])=>d.push(b.jsx("input",{type:"radio",className:"btn-check",name:h,id:h,autoComplete:"off",checked:u===h,onChange:()=>l(h),disabled:r.includes(h)},h),b.jsxs("label",{className:`btn btn-outline-primary ${jE.button}`,htmlFor:h,disabled:r.includes(h),children:[u===h?b.jsx("i",{className:`bi bi-check ${jE.icon}`}):null," ",v]},`${h}-label`))),b.jsx("div",{className:"mb-2",children:b.jsx("div",{className:`btn-group ${jE.group}`,role:"group","aria-label":i,children:d})})}const NH="_controls_1be4t_1",_H={controls:NH};function OH({creditType:n,organizationType:r,setCreditType:i,setOrganizationType:u}){return b.jsxs("div",{className:_H.controls,children:[b.jsx("h2",{children:"ACCESS Allocations"}),b.jsx(c_,{choices:[["allocated","Allocations"],["exchanged","Exchanges"],["used","Usage"]],label:"Credit Type",value:n,setValue:i}),b.jsx(c_,{choices:[["user","By Research Institution"],["rp","By Resource Provider"]],disabledValues:n==="allocated"?["rp"]:[],label:"Organization Type",value:r,setValue:u})]})}const AH="_legend_odgg9_1",jH="_symbols_odgg9_17",DH="_symbol_odgg9_17",$b={legend:AH,symbols:jH,symbol:DH};function kH(n,r){const i=2*n+2;return b.jsx("svg",{viewBox:`0 0 ${i} ${i}`,xmlns:"http://www.w3.org/2000/svg",stroke:"white",strokeWidth:"1",height:i,width:i,children:b.jsx("circle",{fill:r,cx:n+1,cy:n+1,r:n})})}function MH({activeOrg:n,creditLevels:r,organizationType:i}){if(n||!r)return;const u=r.points.map((l,d)=>b.jsxs("div",{className:$b.symbol,children:[kH(5*(d+1),dw[i].colors[d]),b.jsx("br",{}),b.jsx("span",{className:"label",children:l[0]})]},l[0]));return b.jsxs("div",{className:$b.legend,children:[b.jsxs("h2",{className:"fs-6 mt-0 mb-0",children:["ACCESS Credits ",b.jsx("small",{children:"or credit equivalents"})]}),b.jsx("div",{className:$b.symbols,children:u})]})}const LH="_info_oxxoh_1",PH="_user_oxxoh_7",FH="_rp_oxxoh_10",VH="_credits_oxxoh_15",Gb={info:LH,user:PH,rp:FH,credits:VH};function f_(n,r,i){n.sort((l,d)=>d[1]-l[1]);const u=n.slice(0,3).map(l=>l[0]);return n.length>3&&(u[2]=`${n.length-2} other ${i}s`),u.reduce((l,d,h,v)=>[l,b.jsx("span",{className:`name ${Gb[r]}`,children:d},d),[""," and ",", "][v.length-h-1]],[])}function BH({activeOrg:n,creditType:r,organizationMap:i,organizationType:u}){if(!n||!i)return;const l=n.properties,d=l[`${u}Credits`],h=u==="rp"?"user":"rp",v=JSON.parse(l[`${u}CreditsMap`]),y={user:[],rp:[]};return y[u].push([l.name,d]),Object.keys(v).forEach(C=>y[h].push([i[C],v[C]])),b.jsx("div",{className:`${$b.legend} ${Gb.info}`,children:b.jsxs("p",{className:Gb[u],children:["Researchers at ",f_(y.user,"user","research institution")," ",r==="allocated"?"were ":"",r," ",b.jsxs("span",{className:Gb.credits,children:[DA(d)," ACCESS Credits"]}),r!=="allocated"?b.jsxs(b.Fragment,{children:[" ",r==="exchanged"?"for":"on"," resources at"," ",f_(y.rp,"rp","resource provider")]}):"","."]})})}function zH(){const n=M.useRef(null),r=M.useRef(null),[i,u]=M.useState(null),[l,d]=M.useState(null),[h,v]=M.useState(null),[y,C]=M.useState(!1),[x,R]=M.useState(null),[T,A]=M.useState(null),[N,O]=M.useState(null),[_,L]=M.useState("user"),[V,F]=M.useState("exchanged");return M.useEffect(()=>{(async()=>d(await gH()))()},[]),M.useEffect(()=>{(async U=>{const[z,H]=await Promise.all(["organizations",`credits_${U}`].map(yH));if(!N){const q={};z.features.forEach(Re=>q[Re.id.toString()]=Re.properties.name),O(q)}const J=xH(z,H,V);R(J),U==="exchanged"&&!h&&v(bH(J))})(V)},[V]),M.useEffect(()=>{T&&T.setStyle(l_({activeOrg:i,basemapStyle:l,creditLevels:h,creditType:V,geoJSON:x,organizationType:_}))},[i,x,T,_]),M.useEffect(()=>{T&&(T.on("mousemove","organizations",U=>u(U.features.length?U.features[0]:null)),T.on("mouseleave","organizations",()=>u(null)))},[T]),M.useEffect(()=>{T&&T.resize()},[y]),M.useEffect(()=>{V==="allocated"&&L("user")},[V]),M.useLayoutEffect(()=>A(new maplibregl.Map({container:r.current,style:l_({activeOrg:i,basemapStyle:l,creditLevels:h,creditType:V,geoJSON:x,organizationType:_}),center:[-111.01,38.88],zoom:3.4,hash:!0})),[]),M.useLayoutEffect(()=>n.current.addEventListener("keydown",U=>{U.key==="Escape"&&C(!1)}),[]),b.jsxs("section",{className:`${Ab["allocations-map"]} ${y?Ab.fullscreen:"border border-3 border-primary"}`,ref:n,children:[b.jsx("div",{className:Ab.map,ref:r}),b.jsx(OH,{creditType:V,fullscreen:y,organizationType:_,setCreditType:F,setFullscreen:C,setOrganizationType:L}),b.jsx(MH,{activeOrg:i,creditLevels:h,organizationType:_}),b.jsx(BH,{activeOrg:i,creditType:V,organizationMap:N,organizationType:_}),b.jsx("button",{title:`${y?"Exit":"Enter"} Fullscreen`,className:Ab.fullscreen,onClick:()=>C(!y),children:b.jsx("i",{className:`bi ${y?"bi-fullscreen-exit":"bi-arrows-fullscreen"}`,"aria-label":"Fullscreen"})})]})}const Xl="https://allocations.access-ci.org",Nn={creditAlertThreshold:1e3,resourceTypeIcons:{credit:"cash-coin",compute:"cpu-fill",storage:"hdd-fill",program:"person-square"},routes:{edit_request_action_path:(n,r)=>`/requests/${n}/actions/${r}/edit`,edit_request_path:n=>`/requests/${n}/edit`,how_to_path:()=>"/how-to",get_your_first_project_path:()=>`${Xl}/get-your-first-project`,project_types_path:()=>`${Xl}/project-types`,projects_path:()=>`${Xl}/projects`,projects_save_users_path:()=>"/projects/save_users",renew_request_path:n=>`${Xl}/requests/${n}/renew`,request_action_path:(n,r)=>`${Xl}/requests/${n}/actions/${r}`,request_actions_path:n=>`${Xl}/requests/${n}/actions`,request_path:n=>`${Xl}/requests/${n}`,resources_path:()=>`${Xl}/resources`,search_people_path:()=>`${Xl}/search/people`,usage_detail_path:(n,r)=>`/usage/${n}/${r}`},roleIcons:{PI:"person-fill-check","Co-PI":"person-fill-add","Allocation Manager":"person-fill-gear",User:"people-fill"}};function f0({color:n="primary",href:r,icon:i,onClick:u,target:l,title:d}){const h=b.jsx("i",{className:`bi bi-${i}`}),v={className:`btn btn-sm ms-1 text-${n}`,href:r,onClick:u,style:{"--bs-btn-padding-x":"0.1rem","--bs-btn-padding-y":"0.1rem","--bs-btn-line-height":"1"},target:l,title:d};return r?b.jsx("a",{...v,children:h}):b.jsx("button",{...v,children:h})}const Pp=(n,r,i="round")=>{const u=Math.pow(10,r||0);return Math[i](n*u)/u},UH=n=>new Date(`${n}T00:00:00`),HH={year:"numeric",month:"short",day:"numeric"},Fp=(n,r)=>UH(n).toLocaleString("en-us",r||HH),ni=(n,{abbreviate:r=!1,decimalPlaces:i=void 0}={})=>{if(r){let u=0;for(;Math.abs(n)/Math.pow(1e3,u)>=1e3;)u+=1;const l=["","K","M","B","T","Q"][u];return`${(n/Math.pow(1e3,u)).toLocaleString("en-US",{maximumSignificantDigits:3})}${l}`}return n.toLocaleString("en-US",{maximumFractionDigits:i,minimumFractionDigits:i})},eR=(n,r)=>{if(n.startDate&&n.endDate){const l=Fp(n.startDate,r),d=Fp(n.endDate,r);return`${n.allocationType}: ${l} to ${d}`}const i=Fp(n.entryDate,r),u=n.status=="Incomplete"?"Started":"Submitted";return`${n.allocationType}: ${u} ${i}`},mc=n=>b.jsx("i",{className:`bi bi-${n}`}),L0=n=>{const r=n.match(/^([^\(\)]+) (\(([^\)]+)\))?$/);return{full:n,short:r&&r[3]||null}},Uf=(n,{userGuide:r=!0}={})=>{const{full:i,short:u}=L0(n.name),l=u?b.jsx("abbr",{title:i,children:u}):i;return b.jsxs(b.Fragment,{children:[mc(Nn.resourceTypeIcons[n.icon])," ",l,!n.isCredit&&n.userGuideUrl&&r?b.jsx(f0,{icon:"book",href:n.userGuideUrl,target:"_blank",title:`${n.name} User Guide`}):null]})},d_=n=>{const r=L0(n.name);return r.short||r.full},d0=(n,r)=>n.isCredit>r.isCredit||n.isActive>r.isActive||d_(n)<d_(r)?-1:1,p_=(...n)=>{for(let r of n)if(r!=null)return r;return null},kA=(n,r="and",i=", ")=>n.reduce((u,l,d)=>b.jsxs(b.Fragment,{children:[u,n.length-1>d?i:` ${r} `,l]})),tR=n=>n?b.jsxs(b.Fragment,{children:[mc("check-circle")," Yes"]}):b.jsxs(b.Fragment,{children:[mc("x-circle")," No"]}),nR=n=>kA(n.users.filter(({role:r})=>["pi","co_pi","allocation_manager"].includes(r)).map(r=>`${r.firstName} ${r.lastName}`),"or"),v_=(n,r)=>r==1&&n.endsWith("s")?n.slice(0,-1):n,MA=n=>{let r=0,i=0;for(let u of n.resources)u.isBoolean||(r+=u.allocated*u.unitCost,i+=Math.min(u.used,u.allocated)*u.unitCost);return r>0?i/r:0},P0=[{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"}],LA={};for(let n of P0)LA[n.role]=n;const pw={};for(let{role:n,xrasRole:r}of P0)pw[n]=r;const vw=["info","success","secondary","warning","danger"],ea={error:"error",pending:"pending",success:"success"},p0=n=>n.endDate||n.startDate||(n.actions[0]||{}).entryDate,h_=n=>`${{pi:"01",co_pi:"02",allocation_manager:"03"}[n.role]||"04"} ${n.lastName}, ${n.firstName}`,$H=(n,{grantNumber:r,projectManager:i,requestMasterId:u,requests:l,title:d,users:h},v)=>{r=r||u,l.sort((x,R)=>p0(x)>p0(R)?-1:1);const y=l.find(x=>x.timeStatus=="current"),C=y?y.requestId:null;n.projects[r]={currentRequestId:C,grantNumber:r,isManager:i,requestsList:l.map(x=>{const{actions:R,allocationType:T,endDate:A,requestId:N,startDate:O,status:_}=x,L=R.map(({entryDate:V})=>V).sort()[0].split("T")[0];return GH(n,x,{entryDate:L,grantNumber:r}),{allocationType:T,endDate:A,entryDate:L,requestId:N,startDate:O,status:_}}),selectedRequestId:C||l[0].requestId,status:v,tab:"overview",title:d,users:h.map(({email:x,firstName:R,lastName:T,organization:A,resources:N,role:O,username:_})=>{const L=N.filter(H=>H.userAccountState=="active"&&H.unitType!="ACCESS Credits"),V=L.map(H=>H.xrasResourceId),F=L.filter(H=>H.resourceProviderState=="pending-active").map(H=>H.xrasResourceId),U=N.filter(H=>H.userAccountState!="active").map(H=>H.xrasResourceId),z={};for(let H of L)z[H.xrasResourceId]=H.resourceUsername;return{email:x,firstName:R,initialResourceIds:[...V],initialRole:O,lastName:T,organization:A,resourceAccountPendingIds:F,resourceAccountInactiveIds:U,resourceIds:V,resourceUsernames:z,role:O,username:_}}).sort((x,R)=>h_(x)<h_(R)?-1:1),usersNewRowIndex:0,usersStatus:null},n.projects[r].currentUser=n.projects[r].users.find(({username:x})=>x==n.username)},GH=(n,{actions:r,allocationType:i,allowedActions:u,endDate:l,requestId:d,requestType:h,resources:v,startDate:y,status:C,timeStatus:x},{entryDate:R,grantNumber:T})=>{v=v||[];const A={actions:r.map(({actionId:_,actionStatusType:L,actionType:V,allowedOperations:F,approvedStartDate:U,detailAvailable:z,entryDate:H,isRequest:J,requestedStartDate:q,resources:Re})=>({actionId:_,allowedOperations:F,detailAvailable:z,date:(U||q||H).split("T")[0],deleteStatus:null,isRequest:J,resources:Re.map(hw).sort(d0),showDeleteModal:!1,status:L,type:V})),allocationType:i,allowedActions:WH(u),endDate:l,entryDate:R,exchangeActionId:null,exchangeStatus:null,grantNumber:T,isMaximize:i=="Maximize",requestId:d,resources:v.map(hw).filter(_=>_.isCredit||_.allocated>0).sort(d0),resourcesReason:"",showActionsModal:!1,showConfirmModal:!1,showResourcesModal:!1,startDate:y,status:C,timeStatus:x,type:h,usageDetail:null,usageDetailStatus:null,usesCredits:["Explore","Discover","Accelerate"].includes(i)};let N={};for(let _ of A.actions)if(["Exchange","Transfer"].includes(_.type)&&["Submitted","Under Review"].includes(_.status)){A.exchangeActionId=_.actionId;for(let L of _.resources)N[L.resourceId]=L;for(let L of A.resources)L.resourceId in N&&(L.requested+=N[L.resourceId].requested,delete N[L.resourceId]);A.resources.push(...Object.values(N).map(L=>({...L,isNew:!0})));break}const O=A.allowedActions.Exchange||A.allowedActions.Transfer;if(O){N={};for(let _ of O.resources)N[_.resourceId]=_;for(let _ of A.resources)_.resourceId in N&&(_.questions=N[_.resourceId].questions||[])}!A.usesCredits&&v.length&&A.resources.push({allocated:0,decimalPlaces:0,icon:"credit",isActive:!0,isBoolean:!1,isCredit:!0,isFake:!0,name:"Credit Equivalents",requested:0,requires:[],resourceId:0,unit:"Credit Equivalents",unitCost:1,used:0}),n.requests[d]=A},WH=n=>{const r={};for(let{actionType:i,allowedResources:u,opportunityId:l,opportunityName:d}of n){let h={name:i,resources:u.map(hw).sort(d0),opportunityId:l,opportunityName:d};i in r?(Array.isArray(r[i])||(r[i]=[r[i]]),r[i].push(h)):r[i]=h}return"Transfer"in r&&!("Exchange"in r)&&(r.Exchange=r.Transfer),r},m_=(n,r)=>n.relativeOrder<r.relativeOrder?-1:1,hw=({allocationState:n,amountAllocated:r,amountApproved:i,amountRequested:u,amountUsed:l,attributeSets:d,dependentResourceXrasIds:h,displayResourceName:v,endDate:y,exchangeRate:C,resourceRepositoryKey:x,resourceType:R,startDate:T,unitType:A,userGuideUrl:N,xrasResourceId:O})=>({allocated:Pp(p_(r,i)||0,0,"floor"),decimalPlaces:0,endDate:y,icon:A=="ACCESS Credits"?"credit":R.toLowerCase(),isActive:n=="active",isBoolean:A=="[Yes = 1, No = 0]",isCredit:A=="ACCESS Credits",isFake:!1,isUnderReview:!1,isNew:!1,name:v.trim(),questions:(d||[]).filter(({isActive:_})=>_).sort(m_).map(_=>({attributeSetId:_.attributeSetId,attributes:_.attributes.sort(m_).map(L=>({required:L.isRequired,resourceAttributeId:L.resourceAttributeId,label:L.attributeName})),fieldType:_.attributeSetRelationType,label:_.attributeSetName,resourceId:O,values:[]})),requested:Pp(p_(u,r)||0,0,"floor"),requires:h||[],resourceId:O,resourceRepositoryKey:x,startDate:T,type:R,unit:A,unitCost:A!="[Yes = 1, No = 0]"&&C?C:0,used:Pp(l||0,0,"ceil"),userGuideUrl:N}),PA=(n,r)=>(n=[...n].sort(),r=[...r].sort(),n.length===r.length&&n.every((i,u)=>i===r[u])),jb=(n,r)=>{const i=Kr(n,r);for(let u of i.actions)if(u.actionId==r.payload.actionId)return u},qs=(n,r)=>n.projects[r.payload.grantNumber],Kr=(n,r)=>n.requests[r.payload.requestId],XH=(n,r)=>qs(n,r).users.find(({username:i})=>i==r.payload.username),mw=({allocated:n,isActive:r,isCredit:i})=>n>0&&r&&!i,g_=n=>n.hasChanges=n.isNew||n.role!=n.initialRole||!PA(n.resourceIds,n.initialResourceIds),FA=()=>document.querySelector("meta[name=csrf-token]").content,YH=async n=>{const r=new URLSearchParams({q:n});return(await(await fetch(`${Nn.routes.search_people_path()}?${r}`)).json()).map(({email:u,first_name:l,last_name:d,username:h,organization:v})=>({email:u,firstName:l,lastName:d,username:h,organization:v}))},Wb=Di("api/fetchProjectsList",async(n,{rejectWithValue:r})=>{const i=await fetch(`${Nn.routes.projects_path()}.json`);return i.status==200?{username:n,projectsList:(await i.json()).result}:r({})}),VA=Di("api/fetchProjectDetail",async({grantNumber:n},{rejectWithValue:r})=>r({grantNumber:n})),BA=Di("api/fetchRequestDetail",async({grantNumber:n,requestId:r},{rejectWithValue:i})=>i({grantNumber:n,requestId:r})),Xb=Di("api/fetchUsageDetail",async({grantNumber:n,requestId:r,resourceRepositoryKey:i},{rejectWithValue:u})=>{const l=await fetch(`${Nn.routes.usage_detail_path(n,i)}.json`);return l.status==200?{grantNumber:n,requestId:r,resourceRepositoryKey:i,usageDetail:(await l.json()).usage}:u({grantNumber:n,requestId:r,resourceRepositoryKey:i})}),Yb=Di("api/deleteAction",async({actionId:n,requestId:r},{getState:i,rejectWithValue:u})=>{const l=i().api.requests[r],d=l.actions.find(C=>C.actionId==n);if(!d||!d.allowedOperations||!d.allowedOperations.includes("Delete"))return u({actionId:n,requestId:r});const h=Nn.routes.request_action_path(l.requestId,d.actionId),v={_method:"delete",authenticity_token:FA()};return(await fetch(h,{body:Object.keys(v).map(C=>`${encodeURIComponent(C)}=${encodeURIComponent(v[C])}`).join("&"),headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})).status==200?{actionId:n,requestId:r}:u({actionId:n,requestId:r})}),Zb=Di("api/saveResources",async({requestId:n},{getState:r,rejectWithValue:i})=>{const u=r().api.requests[n],l={},d={};for(let{allocated:C,isFake:x,questions:R,requested:T,resourceId:A}of u.resources)if(T!=C&&!x){l[A]={resource_id:A,requested:1,amount:T-C};for(let{attributes:N,values:O,fieldType:_}of R)if(O.length){let L=N[0].resourceAttributeId,V=["drop_down","single_sel","multi_sel"].includes(_),U={resource_attribute_id:_=="multi_sel"?O:V?O[0]:L};V||(U.attribute_value=O[0]),d[L]=U}}const h={authenticity_token:FA(),request_action:{action_type:u.allowedActions.Exchange.name,user_comments:u.resourcesReason,resource_attributes:d},requested_resources:l},v=u.exchangeActionId?Nn.routes.request_action_path(u.requestId,u.exchangeActionId):Nn.routes.request_actions_path(u.requestId),y=await fetch(`${v}.json`,{body:JSON.stringify(h),headers:{"Content-Type":"application/json"},method:u.exchangeActionId?"PUT":"POST"});if(y.status==200){const C=parseInt(y.url.split("/").pop(),10);return{requestId:n,exchangeActionId:C}}return i({requestId:n})}),Jb=Di("api/saveUsers",async({grantNumber:n},{getState:r,rejectWithValue:i})=>{const l=r().api.projects[n].users,d=l.filter(C=>!PA(C.resourceIds,C.initialResourceIds)||C.isNew).length==0?[]:l.map(C=>({username:C.username,resources:C.resourceIds})),h=l.filter(C=>C.role!=C.initialRole).map(C=>({username:C.username,role:pw[C.role],initialRole:pw[C.initialRole]})),v={grantNumber:n,resourceChanges:d,roleChanges:h,authenticity_token:document.querySelector("meta[name=csrf-token]").content};return(await fetch(Nn.routes.projects_save_users_path(),{method:"POST",body:JSON.stringify(v),headers:{"Content-Type":"application/json"}})).status==200?{grantNumber:n}:i({grantNumber:n})}),zA=k0({name:"api",initialState:{error:null,projectsList:[],projectListLoading:!1,projects:{},requests:{},username:null},reducers:{addResource:(n,r)=>{const{resourceId:i}=r.payload,u=Kr(n,r),l=u.allowedActions.Exchange;if(!l)return;const d={};for(let y of l.resources)d[y.resourceId]=y;const h=u.resources.map(y=>y.resourceId),v=[i,...d[i].requires||[]].filter(y=>y in d&&!h.includes(y));u.resources.push(...v.map(y=>({...d[y],allocated:0,isNew:!0,used:0,requested:0})))},addUser:(n,r)=>{const i=qs(n,r),u=n.requests[i.currentRequestId],{user:l}=r.payload;i.users.map(({username:d})=>d).includes(l.username)||(i.users.push({...l,resourceIds:u.resources.filter(mw).map(d=>d.resourceId),role:"user",initialResourceIds:[],initialRole:"user",hasChanges:!0,isNew:!0}),i.usersNewRowIndex=i.users.length-1)},closeUsageDetailModal:(n,r)=>{const i=Kr(n,r);i.usageDetail=null,i.usageDetailStatus=null},resetResources:(n,r)=>{const i=Kr(n,r);i.resourcesReason="",i.resources=i.resources.filter(u=>u.isCredit||u.allocated).map(u=>({...u,requested:u.allocated}))},resetUsers:(n,r)=>{const i=qs(n,r);i.users=i.users.filter(({isNew:u})=>!u).map(u=>({...u,resourceIds:[...u.initialResourceIds],role:u.initialRole,hasChanges:!1}))},setRequest:(n,r)=>{const i=qs(n,r);i&&(i.selectedRequestId=r.payload.requestId,i.tab=="users"&&i.currentRequestId!=i.selectedRequestId&&(i.tab="overview"))},setResourceQuestionValues:(n,r)=>{const{attributeSetId:i,resourceId:u,values:l}=r.payload,d=Kr(n,r);for(let h of d.resources)if(h.resourceId==u){for(let v of h.questions)if(v.attributeSetId==i){v.values=l;break}break}},setResourceRequest:(n,r)=>{const{resourceId:i,requested:u}=r.payload,l=Kr(n,r);let d,h=0;for(let v of l.resources)v.resourceId==i&&(v.requested=u),v.isCredit?(d=v,h+=v.allocated*v.unitCost):h-=(v.requested-v.allocated)*v.unitCost;d&&(d.requested=Pp(h,d.decimalPlaces,"floor"))},setResourcesReason:(n,r)=>{const i=Kr(n,r);i.resourcesReason=r.payload.reason},setTab:(n,r)=>{const i=qs(n,r);i&&(i.tab=r.payload.tab)},setUserRole:(n,r)=>{const i=XH(n,r);i.role=r.payload.role,g_(i)},toggleActionsModal:(n,r)=>{const i=Kr(n,r);i.showActionsModal=!i.showActionsModal},toggleConfirmModal:(n,r)=>{const i=Kr(n,r);i.showConfirmModal=!i.showConfirmModal},toggleDeleteModal:(n,r)=>{const i=jb(n,r);i.showDeleteModal=!i.showDeleteModal},toggleResourcesModal:(n,r)=>{const i=Kr(n,r);i.showResourcesModal=!i.showResourcesModal},toggleUsersResources:(n,r)=>{const i=qs(n,r),u=n.requests[i.currentRequestId],{username:l,resourceId:d,checked:h}=r.payload,v=l?[i.users.find(y=>y.username==l)]:i.users;for(let y of v){if(d){let C=y.resourceIds.indexOf(d);h&&C==-1?y.resourceIds.push(d):!h&&C>=0&&y.resourceIds.splice(C,1)}else y.resourceIds=h?u.resources.filter(mw).map(({resourceId:C})=>C):[];g_(y)}}},extraReducers:n=>{n.addCase(Wb.pending,r=>{r.projectListLoading=!0}).addCase(Wb.fulfilled,(r,i)=>{i.payload.projectsList.sort((u,l)=>p0(u.requests[0])>p0(l.requests[0])?-1:1),r.username=i.payload.username,r.projectsList=i.payload.projectsList.map(u=>{const{grantNumber:l,requestMasterId:d,requests:h,status:v,title:y}=u,C=v||h&&(h.find(({timeStatus:x})=>x=="current")?"Active":h[0].timeStatus=="past"?"Inactive":h[0].status);return h&&$H(r,u,C),{grantNumber:l||d,status:C,title:y}}),r.projectListLoading=!1}).addCase(Wb.rejected,r=>{r.error="Failed to load project list.",r.projectListLoading=!1}).addCase(VA.rejected,(r,i)=>{const{grantNumber:u}=i.payload;r.projects[u]={error:"Failed to load project data."}}).addCase(BA.rejected,(r,i)=>{const{requestId:u}=i.payload;r.requests[u]={error:"Failed to load request data."}}).addCase(Xb.pending,(r,i)=>{const u=Kr(r,{payload:i.meta.arg});u.usageDetailStatus=ea.pending}).addCase(Xb.fulfilled,(r,i)=>{const u=Kr(r,i);u.usageDetail=i.payload.usageDetail,u.usageDetailStatus=ea.success}).addCase(Xb.rejected,(r,i)=>{const u=Kr(r,i);u.usageDetailStatus=ea.error}).addCase(Yb.pending,(r,i)=>{const u=jb(r,{payload:i.meta.arg});u.deleteStatus=ea.pending}).addCase(Yb.fulfilled,(r,i)=>{const u=Kr(r,i),l=jb(r,i);l.isRequest?(u.error="This request has been deleted.",l.allowedOperations=[]):u.actions=u.actions.filter(d=>d.actionId!=l.actionId),l.deleteStatus=ea.success,l.showDeleteModal=!1}).addCase(Yb.rejected,(r,i)=>{const u=jb(r,i);u.deleteStatus=ea.error}).addCase(Zb.pending,(r,i)=>{const u=Kr(r,{payload:i.meta.arg});u.exchangeStatus=ea.pending,u.showResourcesModal=!1}).addCase(Zb.fulfilled,(r,i)=>{const u=Kr(r,i);u.exchangeActionId=i.payload.exchangeActionId,u.exchangeStatus=ea.success}).addCase(Zb.rejected,(r,i)=>{const u=Kr(r,i);u.exchangeStatus=ea.error}).addCase(Jb.pending,(r,i)=>{const u=qs(r,{payload:i.meta.arg});u.usersStatus=ea.pending}).addCase(Jb.fulfilled,(r,i)=>{const u=qs(r,i);u.users=u.users.map(l=>({...l,initialResourceIds:[...l.resourceIds],initialRole:l.role,hasChanges:!1,isNew:!1})),u.usersStatus=ea.success}).addCase(Jb.rejected,(r,i)=>{const u=qs(r,i);u.usersStatus=ea.error})}}),ZH=n=>n.api.error,JH=n=>n.api.projectsList,qH=n=>n.api.projectListLoading,QH=(n,r)=>qs(n.api,{payload:{grantNumber:r}}),KH=(n,r)=>Kr(n.api,{payload:{requestId:r}}),e$=n=>n.api.username,{addResource:t$,addUser:n$,closeUsageDetailModal:r$,hideAlert:U8,resetResources:a$,resetUsers:i$,setRequest:o$,setResourceQuestionValues:s$,setResourceRequest:l$,setResourcesReason:u$,setTab:c$,setUserRole:f$,toggleActionsModal:d$,toggleConfirmModal:p$,toggleDeleteModal:v$,toggleResourcesModal:h$,toggleUsersResources:m$}=zA.actions,g$=zA.reducer,y$=n=>{const r=dr(ZH),i=dr(qH),u=dr(JH),l=To();return M.useEffect(()=>{l(Wb(n))},[]),{error:r,loading:i,projects:u}},Ji=(n,r)=>{const i=dr(d=>QH(d,n)),u=dr(e$),l=To();return M.useEffect(()=>{!i&&!r&&l(VA({grantNumber:n}))},[r]),{project:i,addUser:d=>l(n$({grantNumber:n,user:d})),resetUsers:()=>l(i$({grantNumber:n})),saveUsers:()=>l(Jb({grantNumber:n})),setRequest:d=>l(o$({grantNumber:n,requestId:d})),setTab:d=>l(c$({grantNumber:n,tab:d})),setUserRole:(d,h)=>l(f$({grantNumber:n,username:d,role:h})),statuses:ea,toggleUsersResources:(d,h,v)=>l(m$({grantNumber:n,username:h,resourceId:v,checked:d})),username:u}},ri=(n,r)=>{const i=dr(l=>KH(l,n)),u=To();return M.useEffect(()=>{i||u(BA({grantNumber:r,requestId:n}))},[r,n]),{request:i,addResource:l=>u(t$({requestId:n,resourceId:l})),closeUsageDetailModal:()=>u(r$({requestId:n})),deleteAction:l=>u(Yb({actionId:l,requestId:n})),openUsageDetailModal:l=>u(Xb({grantNumber:i.grantNumber,requestId:n,resourceRepositoryKey:l})),resetResources:()=>u(a$({requestId:n})),saveResources:()=>u(Zb({requestId:n})),setResourceQuestionValues:(l,d,h)=>u(s$({requestId:n,resourceId:l,attributeSetId:d,values:h})),setResourceRequest:(l,d)=>u(l$({requestId:n,resourceId:l,requested:d})),setResourcesReason:l=>u(u$({requestId:n,reason:l})),statuses:ea,toggleActionsModal:()=>u(d$({requestId:n})),toggleConfirmModal:()=>u(p$({requestId:n})),toggleDeleteModal:l=>u(v$({requestId:n,actionId:l})),toggleResourcesModal:()=>u(h$({requestId:n}))}},ma=({children:n,color:r})=>b.jsx("div",{className:`alert alert-${r} mt-3`,role:"alert",children:n}),b$="_project_qqnbz_1",C$="_expand_qqnbz_5",y_={project:b$,expand:C$};var gw={exports:{}},yw={exports:{}},En={};/** @license React v16.13.1
|
|
270
|
+
`),ft}u0(()=>{le.current=void 0,ye.current=void 0,Y.current=Ve});const et=Jt.useMemo(()=>Jt.createElement(_,{...Ve,ref:Re}),[Re,_,Ve]);return Jt.useMemo(()=>N?Jt.createElement(ge.Provider,{value:G},et):et,[ge,et,G])}const H=Jt.memo(U);if(H.WrappedComponent=_,H.displayName=U.displayName=V,y){const q=Jt.forwardRef(function(he,ge){return Jt.createElement(H,{...he,reactReduxForwardedRef:ge})});return q.displayName=V,q.WrappedComponent=_,cw(q,_)}return cw(H,_)}}var fs=pH;function vH({store:n,context:r,children:i,serverState:u,stabilityCheck:l="once",identityFunctionCheck:d="once"}){const h=Jt.useMemo(()=>{const C=_A(n);return{store:n,subscription:C,getServerState:u?()=>u:void 0,stabilityCheck:l,identityFunctionCheck:d}},[n,u,l,d]),v=Jt.useMemo(()=>n.getState(),[n]);u0(()=>{const{subscription:C}=h;return C.onStateChange=C.notifyNestedSubs,C.trySubscribe(),v!==n.getState()&&C.notifyNestedSubs(),()=>{C.tryUnsubscribe(),C.onStateChange=void 0}},[h,v]);const y=r||tu;return Jt.createElement(y.Provider,{value:h},i)}var Qp=vH;function jA(n=tu){const r=n===tu?gA:Yw(n),i=()=>{const{store:u}=r();return u};return Object.assign(i,{withTypes:()=>i}),i}var hH=jA();function mH(n=tu){const r=n===tu?hH:jA(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var To=mH();TU(wU.useSyncExternalStoreWithSelector);oH(M.useSyncExternalStore);const fw={user:{colors:["#ffc42d","#fea92c","#f98f30","#f07537"]},rp:{colors:["#48c0b9","#2e9da4","#207b8b","#1a5b6e"]}},OE={};function DA(n,r=3){let i=0;for(;n/Math.pow(1e3,i)>1e3;)i+=1;const u=n.toString().length,l=Math.pow(10,u-r);return(Math.round(n/l)*l/Math.pow(1e3,i)).toString()+["","K","M","B","T"][i]}async function gH(){return await(await fetch("https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community?type=style&token=AAPK220079f462f24fda89c27fa210c3f887EJPCECuukKD8PnCIBqktgGTKZWPlVXWjRoSsZYGkOJ12QemGItZ4liRZkcUzYyme")).json()}async function yH(n){if(OE[n])return OE[n];const r=document.location,i=`${r.protocol}//${r.host}${r.pathname}`,l=await(await fetch(`${i}/${n}`)).json();return OE[n]=l,l}function bH(n){const r=[...n.creditLines.features.map(u=>u.properties.credits)],i=[...n.rpPoints.features.map(u=>u.properties.rpCredits),...n.userPoints.features.map(u=>u.properties.userCredits)];return{lines:u_(r),points:u_(i)}}function l_({activeOrg:n,basemapStyle:r,creditLevels:i,creditType:u,geoJSON:l,organizationType:d}){const h={},v=[];if(l&&i){const C=d==="user"?"rp":"user",x=l[`${d}Points`],R=l[`${C}Points`],T=`${d}Credits`,A=`${C}Credits`;h.organizations={type:"geojson",data:x};const N={user:[],rp:[]},O=[];i.points.forEach((L,V)=>{Object.keys(fw).forEach(F=>{N[F].push(L[1],fw[F].colors[V])}),O.push(L[1],5*(V+1))});const _=[];if(i.lines.forEach((L,V)=>{_.push(L[1],1*(V+1))}),v.push({id:"organizations",type:"circle",source:"organizations",paint:{"circle-radius":["interpolate",["linear"],["get",T],...O],"circle-color":["interpolate",["linear"],["get",T],...N[d]],"circle-opacity":n?["match",["id"],n.id,1,.3]:1,"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),n&&u!=="allocated"){h.opp={type:"geojson",data:R};const L=["get",n.id.toString(),["get",`${A}Map`]];v.push({id:"opp",type:"circle",source:"opp",filter:["has",n.id.toString(),["get",`${A}Map`]],paint:{"circle-radius":["interpolate",["linear"],L,...O],"circle-color":["interpolate",["linear"],L,...N[C]],"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),h.credits={type:"geojson",data:l.creditLines},v.push({id:"credits",type:"line",source:"credits",filter:["==",["get",`${d}_organization_id`],n.id],paint:{"line-color":"#444444","line-opacity":.4,"line-width":["interpolate",["linear"],["get","credits"],..._]}})}}const y=r||{version:8,sources:{},layers:[]};return{...y,sources:{...y.sources,...h},layers:[...y.layers.filter(C=>C.id!=="Marine waterbody/label/2x large"),...v]}}function CH(n,r,i,u,l=20){return[...Array(l+1).keys()].map(d=>d/l).map(d=>{let h=d*(i-n)+n,v=d*(u-r)+r+Math.abs(Math.sin(d*Math.PI)*(i-n)*.1);return[h,v]})}function xH(n,r,i){const u={};return n.features.forEach(d=>u[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=>u[d.user_organization_id]!==void 0&&(i==="allocated"||u[d.rp_organization_id]!==void 0)).map(d=>{const h=u[d.user_organization_id],v=u[d.rp_organization_id];if(h.properties.userCredits+=d.credits,v&&(v.properties.rpCredits+=d.credits),h.properties.userCreditsMap[d.rp_organization_id]=(h.properties.userCreditsMap[d.rp_organization_id]||0)+d.credits,v&&(v.properties.rpCreditsMap[d.user_organization_id]=(v.properties.rpCreditsMap[d.user_organization_id]||0)+d.credits),i!=="allocated")return{type:"Feature",geometry:{type:"LineString",coordinates:CH(...u[d.user_organization_id].geometry.coordinates,...u[d.rp_organization_id].geometry.coordinates)},properties:d}}).filter(d=>d!==void 0)},userPoints:{type:"FeatureCollection",features:Object.values(u).filter(d=>d.properties.userCredits>0).sort((d,h)=>d.properties.userCredits>h.properties.userCredits?-1:1)},rpPoints:{type:"FeatureCollection",features:Object.values(u).filter(d=>d.properties.rpCredits>0).sort((d,h)=>d.properties.rpCredits>h.properties.rpCredits?-1:1)}}}function u_(n,r=[0,.3,.6,.9]){return r.map((i,u)=>{const l=SH(n,i),d=u===r.length-1?"+":"";return[`${DA(Math.round(l))}${d}`,l]})}function SH(n,r){n.sort((d,h)=>d-h);const i=(n.length-1)*r,u=Math.floor(i),l=i-u;return n[u+1]!==void 0?n[u]+l*(n[u+1]-n[u]):n[u]}const EH="_fullscreen_1iid9_6",wH="_map_1iid9_14",Ab={"allocations-map":"_allocations-map_1iid9_1",fullscreen:EH,map:wH},RH="_group_11k83_1",TH="_button_11k83_6",IH="_icon_11k83_16",AE={group:RH,button:TH,icon:IH};function c_({choices:n,disabledValues:r=[],label:i,value:u,setValue:l}){const d=[];return n.forEach(([h,v])=>d.push(b.jsx("input",{type:"radio",className:"btn-check",name:h,id:h,autoComplete:"off",checked:u===h,onChange:()=>l(h),disabled:r.includes(h)},h),b.jsxs("label",{className:`btn btn-outline-primary ${AE.button}`,htmlFor:h,disabled:r.includes(h),children:[u===h?b.jsx("i",{className:`bi bi-check ${AE.icon}`}):null," ",v]},`${h}-label`))),b.jsx("div",{className:"mb-2",children:b.jsx("div",{className:`btn-group ${AE.group}`,role:"group","aria-label":i,children:d})})}const NH="_controls_1be4t_1",_H={controls:NH};function OH({creditType:n,organizationType:r,setCreditType:i,setOrganizationType:u}){return b.jsxs("div",{className:_H.controls,children:[b.jsx("h2",{children:"ACCESS Allocations"}),b.jsx(c_,{choices:[["allocated","Allocations"],["exchanged","Exchanges"],["used","Usage"]],label:"Credit Type",value:n,setValue:i}),b.jsx(c_,{choices:[["user","By Research Institution"],["rp","By Resource Provider"]],disabledValues:n==="allocated"?["rp"]:[],label:"Organization Type",value:r,setValue:u})]})}const AH="_legend_odgg9_1",jH="_symbols_odgg9_17",DH="_symbol_odgg9_17",$b={legend:AH,symbols:jH,symbol:DH};function kH(n,r){const i=2*n+2;return b.jsx("svg",{viewBox:`0 0 ${i} ${i}`,xmlns:"http://www.w3.org/2000/svg",stroke:"white",strokeWidth:"1",height:i,width:i,children:b.jsx("circle",{fill:r,cx:n+1,cy:n+1,r:n})})}function MH({activeOrg:n,creditLevels:r,organizationType:i}){if(n||!r)return;const u=r.points.map((l,d)=>b.jsxs("div",{className:$b.symbol,children:[kH(5*(d+1),fw[i].colors[d]),b.jsx("br",{}),b.jsx("span",{className:"label",children:l[0]})]},l[0]));return b.jsxs("div",{className:$b.legend,children:[b.jsxs("h2",{className:"fs-6 mt-0 mb-0",children:["ACCESS Credits ",b.jsx("small",{children:"or credit equivalents"})]}),b.jsx("div",{className:$b.symbols,children:u})]})}const LH="_info_oxxoh_1",PH="_user_oxxoh_7",FH="_rp_oxxoh_10",VH="_credits_oxxoh_15",Gb={info:LH,user:PH,rp:FH,credits:VH};function f_(n,r,i){n.sort((l,d)=>d[1]-l[1]);const u=n.slice(0,3).map(l=>l[0]);return n.length>3&&(u[2]=`${n.length-2} other ${i}s`),u.reduce((l,d,h,v)=>[l,b.jsx("span",{className:`name ${Gb[r]}`,children:d},d),[""," and ",", "][v.length-h-1]],[])}function BH({activeOrg:n,creditType:r,organizationMap:i,organizationType:u}){if(!n||!i)return;const l=n.properties,d=l[`${u}Credits`],h=u==="rp"?"user":"rp",v=JSON.parse(l[`${u}CreditsMap`]),y={user:[],rp:[]};return y[u].push([l.name,d]),Object.keys(v).forEach(C=>y[h].push([i[C],v[C]])),b.jsx("div",{className:`${$b.legend} ${Gb.info}`,children:b.jsxs("p",{className:Gb[u],children:["Researchers at ",f_(y.user,"user","research institution")," ",r==="allocated"?"were ":"",r," ",b.jsxs("span",{className:Gb.credits,children:[DA(d)," ACCESS Credits"]}),r!=="allocated"?b.jsxs(b.Fragment,{children:[" ",r==="exchanged"?"for":"on"," resources at"," ",f_(y.rp,"rp","resource provider")]}):"","."]})})}function zH(){const n=M.useRef(null),r=M.useRef(null),[i,u]=M.useState(null),[l,d]=M.useState(null),[h,v]=M.useState(null),[y,C]=M.useState(!1),[x,R]=M.useState(null),[T,A]=M.useState(null),[N,O]=M.useState(null),[_,L]=M.useState("user"),[V,F]=M.useState("exchanged");return M.useEffect(()=>{(async()=>d(await gH()))()},[]),M.useEffect(()=>{(async U=>{const[z,H]=await Promise.all(["organizations",`credits_${U}`].map(yH));if(!N){const q={};z.features.forEach(Re=>q[Re.id.toString()]=Re.properties.name),O(q)}const J=xH(z,H,V);R(J),U==="exchanged"&&!h&&v(bH(J))})(V)},[V]),M.useEffect(()=>{T&&T.setStyle(l_({activeOrg:i,basemapStyle:l,creditLevels:h,creditType:V,geoJSON:x,organizationType:_}))},[i,x,T,_]),M.useEffect(()=>{T&&(T.on("mousemove","organizations",U=>u(U.features.length?U.features[0]:null)),T.on("mouseleave","organizations",()=>u(null)))},[T]),M.useEffect(()=>{T&&T.resize()},[y]),M.useEffect(()=>{V==="allocated"&&L("user")},[V]),M.useLayoutEffect(()=>A(new maplibregl.Map({container:r.current,style:l_({activeOrg:i,basemapStyle:l,creditLevels:h,creditType:V,geoJSON:x,organizationType:_}),center:[-111.01,38.88],zoom:3.4,hash:!0})),[]),M.useLayoutEffect(()=>n.current.addEventListener("keydown",U=>{U.key==="Escape"&&C(!1)}),[]),b.jsxs("section",{className:`${Ab["allocations-map"]} ${y?Ab.fullscreen:"border border-3 border-primary"}`,ref:n,children:[b.jsx("div",{className:Ab.map,ref:r}),b.jsx(OH,{creditType:V,fullscreen:y,organizationType:_,setCreditType:F,setFullscreen:C,setOrganizationType:L}),b.jsx(MH,{activeOrg:i,creditLevels:h,organizationType:_}),b.jsx(BH,{activeOrg:i,creditType:V,organizationMap:N,organizationType:_}),b.jsx("button",{title:`${y?"Exit":"Enter"} Fullscreen`,className:Ab.fullscreen,onClick:()=>C(!y),children:b.jsx("i",{className:`bi ${y?"bi-fullscreen-exit":"bi-arrows-fullscreen"}`,"aria-label":"Fullscreen"})})]})}const Xl="https://allocations.access-ci.org",Nn={creditAlertThreshold:1e3,resourceTypeIcons:{credit:"cash-coin",compute:"cpu-fill",storage:"hdd-fill",program:"person-square"},routes:{edit_request_action_path:(n,r)=>`/requests/${n}/actions/${r}/edit`,edit_request_path:n=>`/requests/${n}/edit`,how_to_path:()=>"/how-to",get_your_first_project_path:()=>`${Xl}/get-your-first-project`,project_types_path:()=>`${Xl}/project-types`,projects_path:()=>`${Xl}/projects`,projects_save_users_path:()=>"/projects/save_users",renew_request_path:n=>`${Xl}/requests/${n}/renew`,request_action_path:(n,r)=>`${Xl}/requests/${n}/actions/${r}`,request_actions_path:n=>`${Xl}/requests/${n}/actions`,request_path:n=>`${Xl}/requests/${n}`,resources_path:()=>`${Xl}/resources`,search_people_path:()=>`${Xl}/search/people`,usage_detail_path:(n,r)=>`/usage/${n}/${r}`},roleIcons:{PI:"person-fill-check","Co-PI":"person-fill-add","Allocation Manager":"person-fill-gear",User:"people-fill"}};function c0({color:n="primary",href:r,icon:i,onClick:u,target:l,title:d}){const h=b.jsx("i",{className:`bi bi-${i}`}),v={className:`btn btn-sm ms-1 text-${n}`,href:r,onClick:u,style:{"--bs-btn-padding-x":"0.1rem","--bs-btn-padding-y":"0.1rem","--bs-btn-line-height":"1"},target:l,title:d};return r?b.jsx("a",{...v,children:h}):b.jsx("button",{...v,children:h})}const Fp=(n,r,i="round")=>{const u=Math.pow(10,r||0);return Math[i](n*u)/u},UH=n=>new Date(`${n}T00:00:00`),HH={year:"numeric",month:"short",day:"numeric"},Vp=(n,r)=>UH(n).toLocaleString("en-us",r||HH),ni=(n,{abbreviate:r=!1,decimalPlaces:i=void 0}={})=>{if(r){let u=0;for(;Math.abs(n)/Math.pow(1e3,u)>=1e3;)u+=1;const l=["","K","M","B","T","Q"][u];return`${(n/Math.pow(1e3,u)).toLocaleString("en-US",{maximumSignificantDigits:3})}${l}`}return n.toLocaleString("en-US",{maximumFractionDigits:i,minimumFractionDigits:i})},Kw=(n,r)=>{if(n.startDate&&n.endDate){const l=Vp(n.startDate,r),d=Vp(n.endDate,r);return`${n.allocationType}: ${l} to ${d}`}const i=Vp(n.entryDate,r),u=n.status=="Incomplete"?"Started":"Submitted";return`${n.allocationType}: ${u} ${i}`},mc=n=>b.jsx("i",{className:`bi bi-${n}`}),M0=n=>{const r=n.match(/^([^\(\)]+) (\(([^\)]+)\))?$/);return{full:n,short:r&&r[3]||null}},Uf=(n,{userGuide:r=!0}={})=>{const{full:i,short:u}=M0(n.name),l=u?b.jsx("abbr",{title:i,children:u}):i;return b.jsxs(b.Fragment,{children:[mc(Nn.resourceTypeIcons[n.icon])," ",l,!n.isCredit&&n.userGuideUrl&&r?b.jsx(c0,{icon:"book",href:n.userGuideUrl,target:"_blank",title:`${n.name} User Guide`}):null]})},d_=n=>{const r=M0(n.name);return r.short||r.full},f0=(n,r)=>n.isCredit>r.isCredit||n.isActive>r.isActive||d_(n)<d_(r)?-1:1,p_=(...n)=>{for(let r of n)if(r!=null)return r;return null},kA=(n,r="and",i=", ")=>n.reduce((u,l,d)=>b.jsxs(b.Fragment,{children:[u,n.length-1>d?i:` ${r} `,l]})),eR=n=>n?b.jsxs(b.Fragment,{children:[mc("check-circle")," Yes"]}):b.jsxs(b.Fragment,{children:[mc("x-circle")," No"]}),tR=n=>kA(n.users.filter(({role:r})=>["pi","co_pi","allocation_manager"].includes(r)).map(r=>`${r.firstName} ${r.lastName}`),"or"),v_=(n,r)=>r==1&&n.endsWith("s")?n.slice(0,-1):n,MA=n=>{let r=0,i=0;for(let u of n.resources)u.isBoolean||(r+=u.allocated*u.unitCost,i+=Math.min(u.used,u.allocated)*u.unitCost);return r>0?i/r:0},L0=[{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"}],LA={};for(let n of L0)LA[n.role]=n;const dw={};for(let{role:n,xrasRole:r}of L0)dw[n]=r;const pw=["info","success","secondary","warning","danger"],ea={error:"error",pending:"pending",success:"success"},d0=n=>n.endDate||n.startDate||(n.actions[0]||{}).entryDate,h_=n=>`${{pi:"01",co_pi:"02",allocation_manager:"03"}[n.role]||"04"} ${n.lastName}, ${n.firstName}`,$H=(n,{grantNumber:r,projectManager:i,requestMasterId:u,requests:l,title:d,users:h},v)=>{r=r||u,l.sort((x,R)=>d0(x)>d0(R)?-1:1);const y=l.find(x=>x.timeStatus=="current"),C=y?y.requestId:null;n.projects[r]={currentRequestId:C,grantNumber:r,isManager:i,requestsList:l.map(x=>{const{actions:R,allocationType:T,endDate:A,requestId:N,startDate:O,status:_}=x,L=R.map(({entryDate:V})=>V).sort()[0].split("T")[0];return GH(n,x,{entryDate:L,grantNumber:r}),{allocationType:T,endDate:A,entryDate:L,requestId:N,startDate:O,status:_}}),selectedRequestId:C||l[0].requestId,status:v,tab:"overview",title:d,users:h.map(({email:x,firstName:R,lastName:T,organization:A,resources:N,role:O,username:_})=>{const L=N.filter(H=>H.userAccountState=="active"&&H.unitType!="ACCESS Credits"),V=L.map(H=>H.xrasResourceId),F=L.filter(H=>H.resourceProviderState=="pending-active").map(H=>H.xrasResourceId),U=N.filter(H=>H.userAccountState!="active").map(H=>H.xrasResourceId),z={};for(let H of L)z[H.xrasResourceId]=H.resourceUsername;return{email:x,firstName:R,initialResourceIds:[...V],initialRole:O,lastName:T,organization:A,resourceAccountPendingIds:F,resourceAccountInactiveIds:U,resourceIds:V,resourceUsernames:z,role:O,username:_}}).sort((x,R)=>h_(x)<h_(R)?-1:1),usersNewRowIndex:0,usersStatus:null},n.projects[r].currentUser=n.projects[r].users.find(({username:x})=>x==n.username)},GH=(n,{actions:r,allocationType:i,allowedActions:u,endDate:l,requestId:d,requestType:h,resources:v,startDate:y,status:C,timeStatus:x},{entryDate:R,grantNumber:T})=>{v=v||[];const A={actions:r.map(({actionId:_,actionStatusType:L,actionType:V,allowedOperations:F,approvedStartDate:U,detailAvailable:z,entryDate:H,isRequest:J,requestedStartDate:q,resources:Re})=>({actionId:_,allowedOperations:F,detailAvailable:z,date:(U||q||H).split("T")[0],deleteStatus:null,isRequest:J,resources:Re.map(vw).sort(f0),showDeleteModal:!1,status:L,type:V})),allocationType:i,allowedActions:WH(u),endDate:l,entryDate:R,exchangeActionId:null,exchangeStatus:null,grantNumber:T,isMaximize:i=="Maximize",requestId:d,resources:v.map(vw).filter(_=>_.isCredit||_.allocated>0).sort(f0),resourcesReason:"",showActionsModal:!1,showConfirmModal:!1,showResourcesModal:!1,startDate:y,status:C,timeStatus:x,type:h,usageDetail:null,usageDetailStatus:null,usesCredits:["Explore","Discover","Accelerate"].includes(i)};let N={};for(let _ of A.actions)if(["Exchange","Transfer"].includes(_.type)&&["Submitted","Under Review"].includes(_.status)){A.exchangeActionId=_.actionId;for(let L of _.resources)N[L.resourceId]=L;for(let L of A.resources)L.resourceId in N&&(L.requested+=N[L.resourceId].requested,delete N[L.resourceId]);A.resources.push(...Object.values(N).map(L=>({...L,isNew:!0})));break}const O=A.allowedActions.Exchange||A.allowedActions.Transfer;if(O){N={};for(let _ of O.resources)N[_.resourceId]=_;for(let _ of A.resources)_.resourceId in N&&(_.questions=N[_.resourceId].questions||[])}!A.usesCredits&&v.length&&A.resources.push({allocated:0,decimalPlaces:0,icon:"credit",isActive:!0,isBoolean:!1,isCredit:!0,isFake:!0,name:"Credit Equivalents",requested:0,requires:[],resourceId:0,unit:"Credit Equivalents",unitCost:1,used:0}),n.requests[d]=A},WH=n=>{const r={};for(let{actionType:i,allowedResources:u,opportunityId:l,opportunityName:d}of n){let h={name:i,resources:u.map(vw).sort(f0),opportunityId:l,opportunityName:d};i in r?(Array.isArray(r[i])||(r[i]=[r[i]]),r[i].push(h)):r[i]=h}return"Transfer"in r&&!("Exchange"in r)&&(r.Exchange=r.Transfer),r},m_=(n,r)=>n.relativeOrder<r.relativeOrder?-1:1,vw=({allocationState:n,amountAllocated:r,amountApproved:i,amountRequested:u,amountUsed:l,attributeSets:d,dependentResourceXrasIds:h,displayResourceName:v,endDate:y,exchangeRate:C,resourceRepositoryKey:x,resourceType:R,startDate:T,unitType:A,userGuideUrl:N,xrasResourceId:O})=>({allocated:Fp(p_(r,i)||0,0,"floor"),decimalPlaces:0,endDate:y,icon:A=="ACCESS Credits"?"credit":R.toLowerCase(),isActive:n=="active",isBoolean:A=="[Yes = 1, No = 0]",isCredit:A=="ACCESS Credits",isFake:!1,isUnderReview:!1,isNew:!1,name:v.trim(),questions:(d||[]).filter(({isActive:_})=>_).sort(m_).map(_=>({attributeSetId:_.attributeSetId,attributes:_.attributes.sort(m_).map(L=>({required:L.isRequired,resourceAttributeId:L.resourceAttributeId,label:L.attributeName})),fieldType:_.attributeSetRelationType,label:_.attributeSetName,resourceId:O,values:[]})),requested:Fp(p_(u,r)||0,0,"floor"),requires:h||[],resourceId:O,resourceRepositoryKey:x,startDate:T,type:R,unit:A,unitCost:A!="[Yes = 1, No = 0]"&&C?C:0,used:Fp(l||0,0,"ceil"),userGuideUrl:N}),PA=(n,r)=>(n=[...n].sort(),r=[...r].sort(),n.length===r.length&&n.every((i,u)=>i===r[u])),jb=(n,r)=>{const i=Kr(n,r);for(let u of i.actions)if(u.actionId==r.payload.actionId)return u},qs=(n,r)=>n.projects[r.payload.grantNumber],Kr=(n,r)=>n.requests[r.payload.requestId],XH=(n,r)=>qs(n,r).users.find(({username:i})=>i==r.payload.username),hw=({allocated:n,isActive:r,isCredit:i})=>n>0&&r&&!i,g_=n=>n.hasChanges=n.isNew||n.role!=n.initialRole||!PA(n.resourceIds,n.initialResourceIds),FA=()=>document.querySelector("meta[name=csrf-token]").content,YH=async n=>{const r=new URLSearchParams({q:n});return(await(await fetch(`${Nn.routes.search_people_path()}?${r}`)).json()).map(({email:u,first_name:l,last_name:d,username:h,organization:v})=>({email:u,firstName:l,lastName:d,username:h,organization:v}))},Wb=Di("api/fetchProjectsList",async(n,{rejectWithValue:r})=>{const i=await fetch(`${Nn.routes.projects_path()}.json`);return i.status==200?{username:n,projectsList:(await i.json()).result}:r({})}),VA=Di("api/fetchProjectDetail",async({grantNumber:n},{rejectWithValue:r})=>r({grantNumber:n})),BA=Di("api/fetchRequestDetail",async({grantNumber:n,requestId:r},{rejectWithValue:i})=>i({grantNumber:n,requestId:r})),Xb=Di("api/fetchUsageDetail",async({grantNumber:n,requestId:r,resourceRepositoryKey:i},{rejectWithValue:u})=>{const l=await fetch(`${Nn.routes.usage_detail_path(n,i)}.json`);return l.status==200?{grantNumber:n,requestId:r,resourceRepositoryKey:i,usageDetail:(await l.json()).usage}:u({grantNumber:n,requestId:r,resourceRepositoryKey:i})}),Yb=Di("api/deleteAction",async({actionId:n,requestId:r},{getState:i,rejectWithValue:u})=>{const l=i().api.requests[r],d=l.actions.find(C=>C.actionId==n);if(!d||!d.allowedOperations||!d.allowedOperations.includes("Delete"))return u({actionId:n,requestId:r});const h=Nn.routes.request_action_path(l.requestId,d.actionId),v={_method:"delete",authenticity_token:FA()};return(await fetch(h,{body:Object.keys(v).map(C=>`${encodeURIComponent(C)}=${encodeURIComponent(v[C])}`).join("&"),headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})).status==200?{actionId:n,requestId:r}:u({actionId:n,requestId:r})}),Zb=Di("api/saveResources",async({requestId:n},{getState:r,rejectWithValue:i})=>{const u=r().api.requests[n],l={},d={};for(let{allocated:C,isFake:x,questions:R,requested:T,resourceId:A}of u.resources)if(T!=C&&!x){l[A]={resource_id:A,requested:1,amount:T-C};for(let{attributes:N,values:O,fieldType:_}of R)if(O.length){let L=N[0].resourceAttributeId,V=["drop_down","single_sel","multi_sel"].includes(_),U={resource_attribute_id:_=="multi_sel"?O:V?O[0]:L};V||(U.attribute_value=O[0]),d[L]=U}}const h={authenticity_token:FA(),request_action:{action_type:u.allowedActions.Exchange.name,user_comments:u.resourcesReason,resource_attributes:d},requested_resources:l},v=u.exchangeActionId?Nn.routes.request_action_path(u.requestId,u.exchangeActionId):Nn.routes.request_actions_path(u.requestId),y=await fetch(`${v}.json`,{body:JSON.stringify(h),headers:{"Content-Type":"application/json"},method:u.exchangeActionId?"PUT":"POST"});if(y.status==200){const C=parseInt(y.url.split("/").pop(),10);return{requestId:n,exchangeActionId:C}}return i({requestId:n})}),Jb=Di("api/saveUsers",async({grantNumber:n},{getState:r,rejectWithValue:i})=>{const l=r().api.projects[n].users,d=l.filter(C=>!PA(C.resourceIds,C.initialResourceIds)||C.isNew).length==0?[]:l.map(C=>({username:C.username,resources:C.resourceIds})),h=l.filter(C=>C.role!=C.initialRole).map(C=>({username:C.username,role:dw[C.role],initialRole:dw[C.initialRole]})),v={grantNumber:n,resourceChanges:d,roleChanges:h,authenticity_token:document.querySelector("meta[name=csrf-token]").content};return(await fetch(Nn.routes.projects_save_users_path(),{method:"POST",body:JSON.stringify(v),headers:{"Content-Type":"application/json"}})).status==200?{grantNumber:n}:i({grantNumber:n})}),zA=D0({name:"api",initialState:{error:null,projectsList:[],projectListLoading:!1,projects:{},requests:{},username:null},reducers:{addResource:(n,r)=>{const{resourceId:i}=r.payload,u=Kr(n,r),l=u.allowedActions.Exchange;if(!l)return;const d={};for(let y of l.resources)d[y.resourceId]=y;const h=u.resources.map(y=>y.resourceId),v=[i,...d[i].requires||[]].filter(y=>y in d&&!h.includes(y));u.resources.push(...v.map(y=>({...d[y],allocated:0,isNew:!0,used:0,requested:0})))},addUser:(n,r)=>{const i=qs(n,r),u=n.requests[i.currentRequestId],{user:l}=r.payload;i.users.map(({username:d})=>d).includes(l.username)||(i.users.push({...l,resourceIds:u.resources.filter(hw).map(d=>d.resourceId),role:"user",initialResourceIds:[],initialRole:"user",hasChanges:!0,isNew:!0}),i.usersNewRowIndex=i.users.length-1)},closeUsageDetailModal:(n,r)=>{const i=Kr(n,r);i.usageDetail=null,i.usageDetailStatus=null},resetResources:(n,r)=>{const i=Kr(n,r);i.resourcesReason="",i.resources=i.resources.filter(u=>u.isCredit||u.allocated).map(u=>({...u,requested:u.allocated}))},resetUsers:(n,r)=>{const i=qs(n,r);i.users=i.users.filter(({isNew:u})=>!u).map(u=>({...u,resourceIds:[...u.initialResourceIds],role:u.initialRole,hasChanges:!1}))},setRequest:(n,r)=>{const i=qs(n,r);i&&(i.selectedRequestId=r.payload.requestId,i.tab=="users"&&i.currentRequestId!=i.selectedRequestId&&(i.tab="overview"))},setResourceQuestionValues:(n,r)=>{const{attributeSetId:i,resourceId:u,values:l}=r.payload,d=Kr(n,r);for(let h of d.resources)if(h.resourceId==u){for(let v of h.questions)if(v.attributeSetId==i){v.values=l;break}break}},setResourceRequest:(n,r)=>{const{resourceId:i,requested:u}=r.payload,l=Kr(n,r);let d,h=0;for(let v of l.resources)v.resourceId==i&&(v.requested=u),v.isCredit?(d=v,h+=v.allocated*v.unitCost):h-=(v.requested-v.allocated)*v.unitCost;d&&(d.requested=Fp(h,d.decimalPlaces,"floor"))},setResourcesReason:(n,r)=>{const i=Kr(n,r);i.resourcesReason=r.payload.reason},setTab:(n,r)=>{const i=qs(n,r);i&&(i.tab=r.payload.tab)},setUserRole:(n,r)=>{const i=XH(n,r);i.role=r.payload.role,g_(i)},toggleActionsModal:(n,r)=>{const i=Kr(n,r);i.showActionsModal=!i.showActionsModal},toggleConfirmModal:(n,r)=>{const i=Kr(n,r);i.showConfirmModal=!i.showConfirmModal},toggleDeleteModal:(n,r)=>{const i=jb(n,r);i.showDeleteModal=!i.showDeleteModal},toggleResourcesModal:(n,r)=>{const i=Kr(n,r);i.showResourcesModal=!i.showResourcesModal},toggleUsersResources:(n,r)=>{const i=qs(n,r),u=n.requests[i.currentRequestId],{username:l,resourceId:d,checked:h}=r.payload,v=l?[i.users.find(y=>y.username==l)]:i.users;for(let y of v){if(d){let C=y.resourceIds.indexOf(d);h&&C==-1?y.resourceIds.push(d):!h&&C>=0&&y.resourceIds.splice(C,1)}else y.resourceIds=h?u.resources.filter(hw).map(({resourceId:C})=>C):[];g_(y)}}},extraReducers:n=>{n.addCase(Wb.pending,r=>{r.projectListLoading=!0}).addCase(Wb.fulfilled,(r,i)=>{i.payload.projectsList.sort((u,l)=>d0(u.requests[0])>d0(l.requests[0])?-1:1),r.username=i.payload.username,r.projectsList=i.payload.projectsList.map(u=>{const{grantNumber:l,requestMasterId:d,requests:h,status:v,title:y}=u,C=v||h&&(h.find(({timeStatus:x})=>x=="current")?"Active":h[0].timeStatus=="past"?"Inactive":h[0].status);return h&&$H(r,u,C),{grantNumber:l||d,status:C,title:y}}),r.projectListLoading=!1}).addCase(Wb.rejected,r=>{r.error="Failed to load project list.",r.projectListLoading=!1}).addCase(VA.rejected,(r,i)=>{const{grantNumber:u}=i.payload;r.projects[u]={error:"Failed to load project data."}}).addCase(BA.rejected,(r,i)=>{const{requestId:u}=i.payload;r.requests[u]={error:"Failed to load request data."}}).addCase(Xb.pending,(r,i)=>{const u=Kr(r,{payload:i.meta.arg});u.usageDetailStatus=ea.pending}).addCase(Xb.fulfilled,(r,i)=>{const u=Kr(r,i);u.usageDetail=i.payload.usageDetail,u.usageDetailStatus=ea.success}).addCase(Xb.rejected,(r,i)=>{const u=Kr(r,i);u.usageDetailStatus=ea.error}).addCase(Yb.pending,(r,i)=>{const u=jb(r,{payload:i.meta.arg});u.deleteStatus=ea.pending}).addCase(Yb.fulfilled,(r,i)=>{const u=Kr(r,i),l=jb(r,i);l.isRequest?(u.error="This request has been deleted.",l.allowedOperations=[]):u.actions=u.actions.filter(d=>d.actionId!=l.actionId),l.deleteStatus=ea.success,l.showDeleteModal=!1}).addCase(Yb.rejected,(r,i)=>{const u=jb(r,i);u.deleteStatus=ea.error}).addCase(Zb.pending,(r,i)=>{const u=Kr(r,{payload:i.meta.arg});u.exchangeStatus=ea.pending,u.showResourcesModal=!1}).addCase(Zb.fulfilled,(r,i)=>{const u=Kr(r,i);u.exchangeActionId=i.payload.exchangeActionId,u.exchangeStatus=ea.success}).addCase(Zb.rejected,(r,i)=>{const u=Kr(r,i);u.exchangeStatus=ea.error}).addCase(Jb.pending,(r,i)=>{const u=qs(r,{payload:i.meta.arg});u.usersStatus=ea.pending}).addCase(Jb.fulfilled,(r,i)=>{const u=qs(r,i);u.users=u.users.map(l=>({...l,initialResourceIds:[...l.resourceIds],initialRole:l.role,hasChanges:!1,isNew:!1})),u.usersStatus=ea.success}).addCase(Jb.rejected,(r,i)=>{const u=qs(r,i);u.usersStatus=ea.error})}}),ZH=n=>n.api.error,JH=n=>n.api.projectsList,qH=n=>n.api.projectListLoading,QH=(n,r)=>qs(n.api,{payload:{grantNumber:r}}),KH=(n,r)=>Kr(n.api,{payload:{requestId:r}}),e$=n=>n.api.username,{addResource:t$,addUser:n$,closeUsageDetailModal:r$,hideAlert:U8,resetResources:a$,resetUsers:i$,setRequest:o$,setResourceQuestionValues:s$,setResourceRequest:l$,setResourcesReason:u$,setTab:c$,setUserRole:f$,toggleActionsModal:d$,toggleConfirmModal:p$,toggleDeleteModal:v$,toggleResourcesModal:h$,toggleUsersResources:m$}=zA.actions,g$=zA.reducer,y$=n=>{const r=dr(ZH),i=dr(qH),u=dr(JH),l=To();return M.useEffect(()=>{l(Wb(n))},[]),{error:r,loading:i,projects:u}},Ji=(n,r)=>{const i=dr(d=>QH(d,n)),u=dr(e$),l=To();return M.useEffect(()=>{!i&&!r&&l(VA({grantNumber:n}))},[r]),{project:i,addUser:d=>l(n$({grantNumber:n,user:d})),resetUsers:()=>l(i$({grantNumber:n})),saveUsers:()=>l(Jb({grantNumber:n})),setRequest:d=>l(o$({grantNumber:n,requestId:d})),setTab:d=>l(c$({grantNumber:n,tab:d})),setUserRole:(d,h)=>l(f$({grantNumber:n,username:d,role:h})),statuses:ea,toggleUsersResources:(d,h,v)=>l(m$({grantNumber:n,username:h,resourceId:v,checked:d})),username:u}},ri=(n,r)=>{const i=dr(l=>KH(l,n)),u=To();return M.useEffect(()=>{i||u(BA({grantNumber:r,requestId:n}))},[r,n]),{request:i,addResource:l=>u(t$({requestId:n,resourceId:l})),closeUsageDetailModal:()=>u(r$({requestId:n})),deleteAction:l=>u(Yb({actionId:l,requestId:n})),openUsageDetailModal:l=>u(Xb({grantNumber:i.grantNumber,requestId:n,resourceRepositoryKey:l})),resetResources:()=>u(a$({requestId:n})),saveResources:()=>u(Zb({requestId:n})),setResourceQuestionValues:(l,d,h)=>u(s$({requestId:n,resourceId:l,attributeSetId:d,values:h})),setResourceRequest:(l,d)=>u(l$({requestId:n,resourceId:l,requested:d})),setResourcesReason:l=>u(u$({requestId:n,reason:l})),statuses:ea,toggleActionsModal:()=>u(d$({requestId:n})),toggleConfirmModal:()=>u(p$({requestId:n})),toggleDeleteModal:l=>u(v$({requestId:n,actionId:l})),toggleResourcesModal:()=>u(h$({requestId:n}))}},ma=({children:n,color:r})=>b.jsx("div",{className:`alert alert-${r} mt-3`,role:"alert",children:n}),b$="_project_qqnbz_1",C$="_expand_qqnbz_5",y_={project:b$,expand:C$};var mw={exports:{}},gw={exports:{}},En={};/** @license React v16.13.1
|
|
271
271
|
* react-is.production.min.js
|
|
272
272
|
*
|
|
273
273
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -281,29 +281,29 @@ ${le.current.stack}
|
|
|
281
281
|
*
|
|
282
282
|
* This source code is licensed under the MIT license found in the
|
|
283
283
|
* LICENSE file in the root directory of this source tree.
|
|
284
|
-
*/return n.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,u=r?Symbol.for("react.portal"):60106,l=r?Symbol.for("react.fragment"):60107,d=r?Symbol.for("react.strict_mode"):60108,h=r?Symbol.for("react.profiler"):60114,v=r?Symbol.for("react.provider"):60109,y=r?Symbol.for("react.context"):60110,C=r?Symbol.for("react.async_mode"):60111,x=r?Symbol.for("react.concurrent_mode"):60111,R=r?Symbol.for("react.forward_ref"):60112,T=r?Symbol.for("react.suspense"):60113,A=r?Symbol.for("react.suspense_list"):60120,N=r?Symbol.for("react.memo"):60115,O=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,L=r?Symbol.for("react.fundamental"):60117,V=r?Symbol.for("react.responder"):60118,F=r?Symbol.for("react.scope"):60119;function U(Ae){return typeof Ae=="string"||typeof Ae=="function"||Ae===l||Ae===x||Ae===h||Ae===d||Ae===T||Ae===A||typeof Ae=="object"&&Ae!==null&&(Ae.$$typeof===O||Ae.$$typeof===N||Ae.$$typeof===v||Ae.$$typeof===y||Ae.$$typeof===R||Ae.$$typeof===L||Ae.$$typeof===V||Ae.$$typeof===F||Ae.$$typeof===_)}function z(Ae){if(typeof Ae=="object"&&Ae!==null){var It=Ae.$$typeof;switch(It){case i:var pt=Ae.type;switch(pt){case C:case x:case l:case h:case d:case T:return pt;default:var Kt=pt&&pt.$$typeof;switch(Kt){case y:case R:case O:case N:case v:return Kt;default:return It}}case u:return It}}}var H=C,J=x,q=y,Re=v,he=i,ge=R,fe=l,Oe=O,Te=N,xe=u,je=h,Le=d,ne=T,_e=!1;function G(Ae){return _e||(_e=!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.")),Y(Ae)||z(Ae)===C}function Y(Ae){return z(Ae)===x}function re(Ae){return z(Ae)===y}function ye(Ae){return z(Ae)===v}function Se(Ae){return typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===i}function Ne(Ae){return z(Ae)===R}function le(Ae){return z(Ae)===l}function ve(Ae){return z(Ae)===O}function we(Ae){return z(Ae)===N}function Ve(Ae){return z(Ae)===u}function et(Ae){return z(Ae)===h}function tt(Ae){return z(Ae)===d}function ft(Ae){return z(Ae)===T}wn.AsyncMode=H,wn.ConcurrentMode=J,wn.ContextConsumer=q,wn.ContextProvider=Re,wn.Element=he,wn.ForwardRef=ge,wn.Fragment=fe,wn.Lazy=Oe,wn.Memo=Te,wn.Portal=xe,wn.Profiler=je,wn.StrictMode=Le,wn.Suspense=ne,wn.isAsyncMode=G,wn.isConcurrentMode=Y,wn.isContextConsumer=re,wn.isContextProvider=ye,wn.isElement=Se,wn.isForwardRef=Ne,wn.isFragment=le,wn.isLazy=ve,wn.isMemo=we,wn.isPortal=Ve,wn.isProfiler=et,wn.isStrictMode=tt,wn.isSuspense=ft,wn.isValidElementType=U,wn.typeOf=z}(),wn}var E$={};E$.NODE_ENV==="production"?
|
|
284
|
+
*/return n.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,u=r?Symbol.for("react.portal"):60106,l=r?Symbol.for("react.fragment"):60107,d=r?Symbol.for("react.strict_mode"):60108,h=r?Symbol.for("react.profiler"):60114,v=r?Symbol.for("react.provider"):60109,y=r?Symbol.for("react.context"):60110,C=r?Symbol.for("react.async_mode"):60111,x=r?Symbol.for("react.concurrent_mode"):60111,R=r?Symbol.for("react.forward_ref"):60112,T=r?Symbol.for("react.suspense"):60113,A=r?Symbol.for("react.suspense_list"):60120,N=r?Symbol.for("react.memo"):60115,O=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,L=r?Symbol.for("react.fundamental"):60117,V=r?Symbol.for("react.responder"):60118,F=r?Symbol.for("react.scope"):60119;function U(Ae){return typeof Ae=="string"||typeof Ae=="function"||Ae===l||Ae===x||Ae===h||Ae===d||Ae===T||Ae===A||typeof Ae=="object"&&Ae!==null&&(Ae.$$typeof===O||Ae.$$typeof===N||Ae.$$typeof===v||Ae.$$typeof===y||Ae.$$typeof===R||Ae.$$typeof===L||Ae.$$typeof===V||Ae.$$typeof===F||Ae.$$typeof===_)}function z(Ae){if(typeof Ae=="object"&&Ae!==null){var It=Ae.$$typeof;switch(It){case i:var pt=Ae.type;switch(pt){case C:case x:case l:case h:case d:case T:return pt;default:var Kt=pt&&pt.$$typeof;switch(Kt){case y:case R:case O:case N:case v:return Kt;default:return It}}case u:return It}}}var H=C,J=x,q=y,Re=v,he=i,ge=R,fe=l,Oe=O,Te=N,xe=u,je=h,Le=d,ne=T,_e=!1;function G(Ae){return _e||(_e=!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.")),Y(Ae)||z(Ae)===C}function Y(Ae){return z(Ae)===x}function re(Ae){return z(Ae)===y}function ye(Ae){return z(Ae)===v}function Se(Ae){return typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===i}function Ne(Ae){return z(Ae)===R}function le(Ae){return z(Ae)===l}function ve(Ae){return z(Ae)===O}function we(Ae){return z(Ae)===N}function Ve(Ae){return z(Ae)===u}function et(Ae){return z(Ae)===h}function tt(Ae){return z(Ae)===d}function ft(Ae){return z(Ae)===T}wn.AsyncMode=H,wn.ConcurrentMode=J,wn.ContextConsumer=q,wn.ContextProvider=Re,wn.Element=he,wn.ForwardRef=ge,wn.Fragment=fe,wn.Lazy=Oe,wn.Memo=Te,wn.Portal=xe,wn.Profiler=je,wn.StrictMode=Le,wn.Suspense=ne,wn.isAsyncMode=G,wn.isConcurrentMode=Y,wn.isContextConsumer=re,wn.isContextProvider=ye,wn.isElement=Se,wn.isForwardRef=Ne,wn.isFragment=le,wn.isLazy=ve,wn.isMemo=we,wn.isPortal=Ve,wn.isProfiler=et,wn.isStrictMode=tt,wn.isSuspense=ft,wn.isValidElementType=U,wn.typeOf=z}(),wn}var E$={};E$.NODE_ENV==="production"?gw.exports=x$():gw.exports=S$();var nR=gw.exports;/*
|
|
285
285
|
object-assign
|
|
286
286
|
(c) Sindre Sorhus
|
|
287
287
|
@license MIT
|
|
288
|
-
*/var
|
|
289
|
-
Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var Ae=ft(we,tt,Ne,le,ve+"."+tt,u);if(Ae)return Ae}return null}return L(re)}function xe(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(xe);if(Y===null||y(Y))return!0;var re=T(Y);if(re){var ye=re.call(Y),Se;if(re!==Y.entries){for(;!(Se=ye.next()).done;)if(!xe(Se.value))return!1}else for(;!(Se=ye.next()).done;){var Ne=Se.value;if(Ne&&!xe(Ne[1]))return!1}}else return!1;return!0;default:return!1}}function je(Y,re){return Y==="symbol"?!0:re?re["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&re instanceof Symbol:!1}function Le(Y){var re=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":je(re,Y)?"symbol":re}function ne(Y){if(typeof Y>"u"||Y===null)return""+Y;var re=Le(Y);if(re==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return re}function _e(Y){var re=ne(Y);switch(re){case"array":case"object":return"an "+re;case"boolean":case"date":case"regexp":return"a "+re;default:return re}}function G(Y){return!Y.constructor||!Y.constructor.name?A:Y.constructor.name}return N.checkPropTypes=d,N.resetWarningCache=d.resetWarningCache,N.PropTypes=N,N},
|
|
288
|
+
*/var jE,x_;function w$(){if(x_)return jE;x_=1;var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function u(d){if(d==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(d)}function l(){try{if(!Object.assign)return!1;var d=new String("abc");if(d[5]="de",Object.getOwnPropertyNames(d)[0]==="5")return!1;for(var h={},v=0;v<10;v++)h["_"+String.fromCharCode(v)]=v;var y=Object.getOwnPropertyNames(h).map(function(x){return h[x]});if(y.join("")!=="0123456789")return!1;var C={};return"abcdefghijklmnopqrst".split("").forEach(function(x){C[x]=x}),Object.keys(Object.assign({},C)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return jE=l()?Object.assign:function(d,h){for(var v,y=u(d),C,x=1;x<arguments.length;x++){v=Object(arguments[x]);for(var R in v)r.call(v,R)&&(y[R]=v[R]);if(n){C=n(v);for(var T=0;T<C.length;T++)i.call(v,C[T])&&(y[C[T]]=v[C[T]])}}return y},jE}var DE,S_;function rR(){if(S_)return DE;S_=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return DE=n,DE}var kE,E_;function UA(){return E_||(E_=1,kE=Function.call.bind(Object.prototype.hasOwnProperty)),kE}var ME,w_;function R$(){if(w_)return ME;w_=1;var n={},r=function(){};if(n.NODE_ENV!=="production"){var i=rR(),u={},l=UA();r=function(h){var v="Warning: "+h;typeof console<"u"&&console.error(v);try{throw new Error(v)}catch{}}}function d(h,v,y,C,x){if(n.NODE_ENV!=="production"){for(var R in h)if(l(h,R)){var T;try{if(typeof h[R]!="function"){var A=Error((C||"React class")+": "+y+" type `"+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[R]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}T=h[R](v,R,C,y,null,i)}catch(O){T=O}if(T&&!(T instanceof Error)&&r((C||"React class")+": type specification of "+y+" `"+R+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof T+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),T instanceof Error&&!(T.message in u)){u[T.message]=!0;var N=x?x():"";r("Failed "+y+" type: "+T.message+(N??""))}}}}return d.resetWarningCache=function(){n.NODE_ENV!=="production"&&(u={})},ME=d,ME}var LE,R_;function T$(){if(R_)return LE;R_=1;var n={},r=nR,i=w$(),u=rR(),l=UA(),d=R$(),h=function(){};n.NODE_ENV!=="production"&&(h=function(y){var C="Warning: "+y;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});function v(){return null}return LE=function(y,C){var x=typeof Symbol=="function"&&Symbol.iterator,R="@@iterator";function T(Y){var re=Y&&(x&&Y[x]||Y[R]);if(typeof re=="function")return re}var A="<<anonymous>>",N={array:V("array"),bigint:V("bigint"),bool:V("boolean"),func:V("function"),number:V("number"),object:V("object"),string:V("string"),symbol:V("symbol"),any:F(),arrayOf:U,element:z(),elementType:H(),instanceOf:J,node:ge(),objectOf:Re,oneOf:q,oneOfType:he,shape:Oe,exact:Te};function O(Y,re){return Y===re?Y!==0||1/Y===1/re:Y!==Y&&re!==re}function _(Y,re){this.message=Y,this.data=re&&typeof re=="object"?re:{},this.stack=""}_.prototype=Error.prototype;function L(Y){if(n.NODE_ENV!=="production")var re={},ye=0;function Se(le,ve,we,Ve,et,tt,ft){if(Ve=Ve||A,tt=tt||we,ft!==u){if(C){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(n.NODE_ENV!=="production"&&typeof console<"u"){var It=Ve+":"+we;!re[It]&&ye<3&&(h("You are manually calling a React.PropTypes validation function for the `"+tt+"` 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."),re[It]=!0,ye++)}}return ve[we]==null?le?ve[we]===null?new _("The "+et+" `"+tt+"` is marked as required "+("in `"+Ve+"`, but its value is `null`.")):new _("The "+et+" `"+tt+"` is marked as required in "+("`"+Ve+"`, but its value is `undefined`.")):null:Y(ve,we,Ve,et,tt)}var Ne=Se.bind(null,!1);return Ne.isRequired=Se.bind(null,!0),Ne}function V(Y){function re(ye,Se,Ne,le,ve,we){var Ve=ye[Se],et=Le(Ve);if(et!==Y){var tt=ne(Ve);return new _("Invalid "+le+" `"+ve+"` of type "+("`"+tt+"` supplied to `"+Ne+"`, expected ")+("`"+Y+"`."),{expectedType:Y})}return null}return L(re)}function F(){return L(v)}function U(Y){function re(ye,Se,Ne,le,ve){if(typeof Y!="function")return new _("Property `"+ve+"` of component `"+Ne+"` has invalid PropType notation inside arrayOf.");var we=ye[Se];if(!Array.isArray(we)){var Ve=Le(we);return new _("Invalid "+le+" `"+ve+"` of type "+("`"+Ve+"` supplied to `"+Ne+"`, expected an array."))}for(var et=0;et<we.length;et++){var tt=Y(we,et,Ne,le,ve+"["+et+"]",u);if(tt instanceof Error)return tt}return null}return L(re)}function z(){function Y(re,ye,Se,Ne,le){var ve=re[ye];if(!y(ve)){var we=Le(ve);return new _("Invalid "+Ne+" `"+le+"` of type "+("`"+we+"` supplied to `"+Se+"`, expected a single ReactElement."))}return null}return L(Y)}function H(){function Y(re,ye,Se,Ne,le){var ve=re[ye];if(!r.isValidElementType(ve)){var we=Le(ve);return new _("Invalid "+Ne+" `"+le+"` of type "+("`"+we+"` supplied to `"+Se+"`, expected a single ReactElement type."))}return null}return L(Y)}function J(Y){function re(ye,Se,Ne,le,ve){if(!(ye[Se]instanceof Y)){var we=Y.name||A,Ve=G(ye[Se]);return new _("Invalid "+le+" `"+ve+"` of type "+("`"+Ve+"` supplied to `"+Ne+"`, expected ")+("instance of `"+we+"`."))}return null}return L(re)}function q(Y){if(!Array.isArray(Y))return n.NODE_ENV!=="production"&&(arguments.length>1?h("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])."):h("Invalid argument supplied to oneOf, expected an array.")),v;function re(ye,Se,Ne,le,ve){for(var we=ye[Se],Ve=0;Ve<Y.length;Ve++)if(O(we,Y[Ve]))return null;var et=JSON.stringify(Y,function(ft,Ae){var It=ne(Ae);return It==="symbol"?String(Ae):Ae});return new _("Invalid "+le+" `"+ve+"` of value `"+String(we)+"` "+("supplied to `"+Ne+"`, expected one of "+et+"."))}return L(re)}function Re(Y){function re(ye,Se,Ne,le,ve){if(typeof Y!="function")return new _("Property `"+ve+"` of component `"+Ne+"` has invalid PropType notation inside objectOf.");var we=ye[Se],Ve=Le(we);if(Ve!=="object")return new _("Invalid "+le+" `"+ve+"` of type "+("`"+Ve+"` supplied to `"+Ne+"`, expected an object."));for(var et in we)if(l(we,et)){var tt=Y(we,et,Ne,le,ve+"."+et,u);if(tt instanceof Error)return tt}return null}return L(re)}function he(Y){if(!Array.isArray(Y))return n.NODE_ENV!=="production"&&h("Invalid argument supplied to oneOfType, expected an instance of array."),v;for(var re=0;re<Y.length;re++){var ye=Y[re];if(typeof ye!="function")return h("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_e(ye)+" at index "+re+"."),v}function Se(Ne,le,ve,we,Ve){for(var et=[],tt=0;tt<Y.length;tt++){var ft=Y[tt],Ae=ft(Ne,le,ve,we,Ve,u);if(Ae==null)return null;Ae.data&&l(Ae.data,"expectedType")&&et.push(Ae.data.expectedType)}var It=et.length>0?", expected one of type ["+et.join(", ")+"]":"";return new _("Invalid "+we+" `"+Ve+"` supplied to "+("`"+ve+"`"+It+"."))}return L(Se)}function ge(){function Y(re,ye,Se,Ne,le){return xe(re[ye])?null:new _("Invalid "+Ne+" `"+le+"` supplied to "+("`"+Se+"`, expected a ReactNode."))}return L(Y)}function fe(Y,re,ye,Se,Ne){return new _((Y||"React class")+": "+re+" type `"+ye+"."+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ne+"`.")}function Oe(Y){function re(ye,Se,Ne,le,ve){var we=ye[Se],Ve=Le(we);if(Ve!=="object")return new _("Invalid "+le+" `"+ve+"` of type `"+Ve+"` "+("supplied to `"+Ne+"`, expected `object`."));for(var et in Y){var tt=Y[et];if(typeof tt!="function")return fe(Ne,le,ve,et,ne(tt));var ft=tt(we,et,Ne,le,ve+"."+et,u);if(ft)return ft}return null}return L(re)}function Te(Y){function re(ye,Se,Ne,le,ve){var we=ye[Se],Ve=Le(we);if(Ve!=="object")return new _("Invalid "+le+" `"+ve+"` of type `"+Ve+"` "+("supplied to `"+Ne+"`, expected `object`."));var et=i({},ye[Se],Y);for(var tt in et){var ft=Y[tt];if(l(Y,tt)&&typeof ft!="function")return fe(Ne,le,ve,tt,ne(ft));if(!ft)return new _("Invalid "+le+" `"+ve+"` key `"+tt+"` supplied to `"+Ne+"`.\nBad object: "+JSON.stringify(ye[Se],null," ")+`
|
|
289
|
+
Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var Ae=ft(we,tt,Ne,le,ve+"."+tt,u);if(Ae)return Ae}return null}return L(re)}function xe(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(xe);if(Y===null||y(Y))return!0;var re=T(Y);if(re){var ye=re.call(Y),Se;if(re!==Y.entries){for(;!(Se=ye.next()).done;)if(!xe(Se.value))return!1}else for(;!(Se=ye.next()).done;){var Ne=Se.value;if(Ne&&!xe(Ne[1]))return!1}}else return!1;return!0;default:return!1}}function je(Y,re){return Y==="symbol"?!0:re?re["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&re instanceof Symbol:!1}function Le(Y){var re=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":je(re,Y)?"symbol":re}function ne(Y){if(typeof Y>"u"||Y===null)return""+Y;var re=Le(Y);if(re==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return re}function _e(Y){var re=ne(Y);switch(re){case"array":case"object":return"an "+re;case"boolean":case"date":case"regexp":return"a "+re;default:return re}}function G(Y){return!Y.constructor||!Y.constructor.name?A:Y.constructor.name}return N.checkPropTypes=d,N.resetWarningCache=d.resetWarningCache,N.PropTypes=N,N},LE}var PE,T_;function I$(){if(T_)return PE;T_=1;var n=rR();function r(){}function i(){}return i.resetWarningCache=r,PE=function(){function u(h,v,y,C,x,R){if(R!==n){var T=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 T.name="Invariant Violation",T}}u.isRequired=u;function l(){return u}var d={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:l,element:u,elementType:u,instanceOf:l,node:u,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:i,resetWarningCache:r};return d.PropTypes=d,d},PE}var N$={};if(N$.NODE_ENV!=="production"){var _$=nR,O$=!0;mw.exports=T$()(_$.isElement,O$)}else mw.exports=I$()();var A$=mw.exports;const _t=qp(A$);function HA(n,r,i){const u=M.useRef(n!==void 0),[l,d]=M.useState(r),h=n!==void 0,v=u.current;return u.current=h,!h&&v&&l!==r&&d(r),[h?n:l,M.useCallback((...y)=>{const[C,...x]=y;let R=i==null?void 0:i(C,...x);return d(C),R},[i])]}var $A={};const p0={prefix:String(Math.round(Math.random()*1e10)),current:0},GA=kr.createContext(p0),j$=kr.createContext(!1);let D$=!!(typeof window<"u"&&window.document&&window.document.createElement),FE=new WeakMap;function k$(n=!1){let r=M.useContext(GA),i=M.useRef(null);if(i.current===null&&!n){var u,l;let d=(l=kr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||l===void 0||(u=l.ReactCurrentOwner)===null||u===void 0?void 0:u.current;if(d){let h=FE.get(d);h==null?FE.set(d,{id:r.current,state:d.memoizedState}):d.memoizedState!==h.state&&(r.current=h.id,FE.delete(d))}i.current=++r.current}return i.current}function M$(n){let r=M.useContext(GA);r===p0&&!D$&&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=k$(!!n),u=r===p0&&$A.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return n||`${u}-${i}`}function L$(n){let r=kr.useId(),[i]=M.useState(B$()),u=i||$A.NODE_ENV==="test"?"react-aria":`react-aria${p0.prefix}`;return n||`${u}-${r}`}const WA=typeof kr.useId=="function"?L$:M$;function P$(){return!1}function F$(){return!0}function V$(n){return()=>{}}function B$(){return typeof kr.useSyncExternalStore=="function"?kr.useSyncExternalStore(V$,P$,F$):M.useContext(j$)}const z$=M.createContext(null),Kp=z$,U$=M.createContext(null),Wf=(n,r=null)=>n!=null?String(n):r||null,nu=U$;function H$(n){const r=M.useRef(n);return M.useEffect(()=>{r.current=n},[n]),r}function gr(n){const r=H$(n);return M.useCallback(function(...i){return r.current&&r.current(...i)},[r])}const I_=n=>!n||typeof n=="function"?n:r=>{n.current=r};function $$(n,r){const i=I_(n),u=I_(r);return l=>{i&&i(l),u&&u(l)}}function ds(n,r){return M.useMemo(()=>$$(n,r),[n,r])}function aR({children:n,in:r,onExited:i,mountOnEnter:u,unmountOnExit:l}){const d=M.useRef(null),h=M.useRef(r),v=gr(i);M.useEffect(()=>{r?h.current=!0:v(d.current)},[r,v]);const y=ds(d,n.ref),C=M.cloneElement(n,{ref:y});return r?C:l||!h.current&&u?null:C}const G$=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],W$=["activeKey","getControlledId","getControllerId"],X$=["as"];function yw(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function XA(n){let{active:r,eventKey:i,mountOnEnter:u,transition:l,unmountOnExit:d,role:h="tabpanel",onEnter:v,onEntering:y,onEntered:C,onExit:x,onExiting:R,onExited:T}=n,A=yw(n,G$);const N=M.useContext(Kp);if(!N)return[Object.assign({},A,{role:h}),{eventKey:i,isActive:r,mountOnEnter:u,transition:l,unmountOnExit:d,onEnter:v,onEntering:y,onEntered:C,onExit:x,onExiting:R,onExited:T}];const{activeKey:O,getControlledId:_,getControllerId:L}=N,V=yw(N,W$),F=Wf(i);return[Object.assign({},A,{role:h,id:_(i),"aria-labelledby":L(i)}),{eventKey:i,isActive:r==null&&F!=null?Wf(O)===F:r,transition:l||V.transition,mountOnEnter:u??V.mountOnEnter,unmountOnExit:d??V.unmountOnExit,onEnter:v,onEntering:y,onEntered:C,onExit:x,onExiting:R,onExited:T}]}const YA=M.forwardRef((n,r)=>{let{as:i="div"}=n,u=yw(n,X$);const[l,{isActive:d,onEnter:h,onEntering:v,onEntered:y,onExit:C,onExiting:x,onExited:R,mountOnEnter:T,unmountOnExit:A,transition:N=aR}]=XA(u);return b.jsx(Kp.Provider,{value:null,children:b.jsx(nu.Provider,{value:null,children:b.jsx(N,{in:d,onEnter:h,onEntering:v,onEntered:y,onExit:C,onExiting:x,onExited:R,mountOnEnter:T,unmountOnExit:A,children:b.jsx(i,Object.assign({},l,{ref:r,hidden:!d,"aria-hidden":!d}))})})})});YA.displayName="TabPanel";const ZA=n=>{const{id:r,generateChildId:i,onSelect:u,activeKey:l,defaultActiveKey:d,transition:h,mountOnEnter:v,unmountOnExit:y,children:C}=n,[x,R]=HA(l,d,u),T=WA(r),A=M.useMemo(()=>i||((O,_)=>T?`${T}-${_}-${O}`:null),[T,i]),N=M.useMemo(()=>({onSelect:R,activeKey:x,transition:h,mountOnEnter:v||!1,unmountOnExit:y||!1,getControlledId:O=>A(O,"tabpane"),getControllerId:O=>A(O,"tab")}),[R,x,h,v,y,A]);return b.jsx(Kp.Provider,{value:N,children:b.jsx(nu.Provider,{value:R||null,children:C})})};ZA.Panel=YA;const JA=ZA;var qA={exports:{}};/*!
|
|
290
290
|
Copyright (c) 2018 Jed Watson.
|
|
291
291
|
Licensed under the MIT License (MIT), see
|
|
292
292
|
http://jedwatson.github.io/classnames
|
|
293
|
-
*/(function(n){(function(){var r={}.hasOwnProperty;function i(){for(var d="",h=0;h<arguments.length;h++){var v=arguments[h];v&&(d=l(d,u(v)))}return d}function u(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 h="";for(var v in d)r.call(d,v)&&d[v]&&(h=l(h,v));return h}function l(d,h){return h?d?d+" "+h:d+h:d}n.exports?(i.default=i,n.exports=i):window.classNames=i})()})(qA);var Y$=qA.exports;const qt=Jp(Y$);function oR(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function h0(n,r){return h0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,l){return u.__proto__=l,u},h0(n,r)}function Z$(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,h0(n,r)}const N_={disabled:!1};var QA={},J$=QA.NODE_ENV!=="production"?_t.oneOfType([_t.number,_t.shape({enter:_t.number,exit:_t.number,appear:_t.number}).isRequired]):null;QA.NODE_ENV!=="production"&&_t.oneOfType([_t.string,_t.shape({enter:_t.string,exit:_t.string,active:_t.string}),_t.shape({enter:_t.string,enterDone:_t.string,enterActive:_t.string,exit:_t.string,exitDone:_t.string,exitActive:_t.string})]);const KA=kr.createContext(null);var q$=function(r){return r.scrollTop},Q$={},fm="unmounted",dc="exited",Zl="entering",pc="entered",m0="exiting",au=function(n){Z$(r,n);function r(u,l){var d;d=n.call(this,u,l)||this;var h=l,v=h&&!h.isMounting?u.enter:u.appear,y;return d.appearStatus=null,u.in?v?(y=dc,d.appearStatus=Zl):y=pc:u.unmountOnExit||u.mountOnEnter?y=fm:y=dc,d.state={status:y},d.nextCallback=null,d}r.getDerivedStateFromProps=function(l,d){var h=l.in;return h&&d.status===fm?{status:dc}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(l){var d=null;if(l!==this.props){var h=this.state.status;this.props.in?h!==Zl&&h!==pc&&(d=Zl):(h===Zl||h===pc)&&(d=m0)}this.updateStatus(!1,d)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var l=this.props.timeout,d,h,v;return d=h=v=l,l!=null&&typeof l!="number"&&(d=l.exit,h=l.enter,v=l.appear!==void 0?l.appear:h),{exit:d,enter:h,appear:v}},i.updateStatus=function(l,d){if(l===void 0&&(l=!1),d!==null)if(this.cancelNextCallback(),d===Zl){if(this.props.unmountOnExit||this.props.mountOnEnter){var h=this.props.nodeRef?this.props.nodeRef.current:Bf.findDOMNode(this);h&&q$(h)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===dc&&this.setState({status:fm})},i.performEnter=function(l){var d=this,h=this.props.enter,v=this.context?this.context.isMounting:l,y=this.props.nodeRef?[v]:[Bf.findDOMNode(this),v],C=y[0],x=y[1],R=this.getTimeouts(),T=v?R.appear:R.enter;if(!l&&!h||N_.disabled){this.safeSetState({status:pc},function(){d.props.onEntered(C)});return}this.props.onEnter(C,x),this.safeSetState({status:Zl},function(){d.props.onEntering(C,x),d.onTransitionEnd(T,function(){d.safeSetState({status:pc},function(){d.props.onEntered(C,x)})})})},i.performExit=function(){var l=this,d=this.props.exit,h=this.getTimeouts(),v=this.props.nodeRef?void 0:Bf.findDOMNode(this);if(!d||N_.disabled){this.safeSetState({status:dc},function(){l.props.onExited(v)});return}this.props.onExit(v),this.safeSetState({status:m0},function(){l.props.onExiting(v),l.onTransitionEnd(h.exit,function(){l.safeSetState({status:dc},function(){l.props.onExited(v)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(l,d){d=this.setNextCallback(d),this.setState(l,d)},i.setNextCallback=function(l){var d=this,h=!0;return this.nextCallback=function(v){h&&(h=!1,d.nextCallback=null,l(v))},this.nextCallback.cancel=function(){h=!1},this.nextCallback},i.onTransitionEnd=function(l,d){this.setNextCallback(d);var h=this.props.nodeRef?this.props.nodeRef.current:Bf.findDOMNode(this),v=l==null&&!this.props.addEndListener;if(!h||v){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var y=this.props.nodeRef?[this.nextCallback]:[h,this.nextCallback],C=y[0],x=y[1];this.props.addEndListener(C,x)}l!=null&&setTimeout(this.nextCallback,l)},i.render=function(){var l=this.state.status;if(l===fm)return null;var d=this.props,h=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 v=oR(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return kr.createElement(KA.Provider,{value:null},typeof h=="function"?h(l,v):kr.cloneElement(kr.Children.only(h),v))},r}(kr.Component);au.contextType=KA;au.propTypes=Q$.NODE_ENV!=="production"?{nodeRef:_t.shape({current:typeof Element>"u"?_t.any:function(n,r,i,u,l,d){var h=n[r];return _t.instanceOf(h&&"ownerDocument"in h?h.ownerDocument.defaultView.Element:Element)(n,r,i,u,l,d)}}),children:_t.oneOfType([_t.func.isRequired,_t.element.isRequired]).isRequired,in:_t.bool,mountOnEnter:_t.bool,unmountOnExit:_t.bool,appear:_t.bool,enter:_t.bool,exit:_t.bool,timeout:function(r){var i=J$;r.addEndListener||(i=i.isRequired);for(var u=arguments.length,l=new Array(u>1?u-1:0),d=1;d<u;d++)l[d-1]=arguments[d];return i.apply(void 0,[r].concat(l))},addEndListener:_t.func,onEnter:_t.func,onEntering:_t.func,onEntered:_t.func,onExit:_t.func,onExiting:_t.func,onExited:_t.func}:{};function Dp(){}au.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dp,onEntering:Dp,onEntered:Dp,onExit:Dp,onExiting:Dp,onExited:Dp};au.UNMOUNTED=fm;au.EXITED=dc;au.ENTERING=Zl;au.ENTERED=pc;au.EXITING=m0;const K$=au;function Kp(n){return n&&n.ownerDocument||document}function e3(n){var r=Kp(n);return r&&r.defaultView||window}function t3(n,r){return e3(n).getComputedStyle(n,r)}var n3=/([A-Z])/g;function r3(n){return n.replace(n3,"-$1").toLowerCase()}var a3=/^ms-/;function Db(n){return r3(n).replace(a3,"-ms-")}var i3=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function o3(n){return!!(n&&i3.test(n))}function Kl(n,r){var i="",u="";if(typeof r=="string")return n.style.getPropertyValue(Db(r))||t3(n).getPropertyValue(Db(r));Object.keys(r).forEach(function(l){var d=r[l];!d&&d!==0?n.style.removeProperty(Db(l)):o3(l)?u+=l+"("+d+") ":i+=Db(l)+": "+d+";"}),u&&(i+="transform: "+u+";"),n.style.cssText+=";"+i}const ev=!!(typeof window<"u"&&window.document&&window.document.createElement);var Cw=!1,xw=!1;try{var BE={get passive(){return Cw=!0},get once(){return xw=Cw=!0}};ev&&(window.addEventListener("test",BE,BE),window.removeEventListener("test",BE,!0))}catch{}function sR(n,r,i,u){if(u&&typeof u!="boolean"&&!xw){var l=u.once,d=u.capture,h=i;!xw&&l&&(h=i.__once||function v(y){this.removeEventListener(r,v,d),i.call(this,y)},i.__once=h),n.addEventListener(r,h,Cw?u:d)}n.addEventListener(r,i,u)}function Sw(n,r,i,u){var l=u&&typeof u!="boolean"?u.capture:u;n.removeEventListener(r,i,l),i.__once&&n.removeEventListener(r,i.__once,l)}function ql(n,r,i,u){return sR(n,r,i,u),function(){Sw(n,r,i,u)}}function s3(n,r,i,u){if(i===void 0&&(i=!1),u===void 0&&(u=!0),n){var l=document.createEvent("HTMLEvents");l.initEvent(r,i,u),n.dispatchEvent(l)}}function l3(n){var r=Kl(n,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function u3(n,r,i){i===void 0&&(i=5);var u=!1,l=setTimeout(function(){u||s3(n,"transitionend",!0)},r+i),d=ql(n,"transitionend",function(){u=!0},{once:!0});return function(){clearTimeout(l),d()}}function ej(n,r,i,u){i==null&&(i=l3(n)||0);var l=u3(n,i,u),d=ql(n,"transitionend",r);return function(){l(),d()}}function __(n,r){const i=Kl(n,r)||"",u=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*u}function tj(n,r){const i=__(n,"transitionDuration"),u=__(n,"transitionDelay"),l=ej(n,d=>{d.target===n&&(l(),r(d))},i+u)}function nj(n){n.offsetHeight}function g0(n){return n&&"setState"in n?Bf.findDOMNode(n):n??null}const c3=kr.forwardRef(({onEnter:n,onEntering:r,onEntered:i,onExit:u,onExiting:l,onExited:d,addEndListener:h,children:v,childRef:y,...C},x)=>{const R=M.useRef(null),T=ds(R,y),A=H=>{T(g0(H))},N=H=>J=>{H&&R.current&&H(R.current,J)},O=M.useCallback(N(n),[n]),_=M.useCallback(N(r),[r]),L=M.useCallback(N(i),[i]),V=M.useCallback(N(u),[u]),F=M.useCallback(N(l),[l]),U=M.useCallback(N(d),[d]),z=M.useCallback(N(h),[h]);return b.jsx(K$,{ref:x,...C,onEnter:O,onEntered:L,onEntering:_,onExit:V,onExited:U,onExiting:F,addEndListener:z,nodeRef:R,children:typeof v=="function"?(H,J)=>v(H,{...J,ref:A}):kr.cloneElement(v,{ref:A})})}),rj=c3,f3={[Zl]:"show",[pc]:"show"},aj=M.forwardRef(({className:n,children:r,transitionClasses:i={},onEnter:u,...l},d)=>{const h={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...l},v=M.useCallback((y,C)=>{nj(y),u==null||u(y,C)},[u]);return b.jsx(rj,{ref:d,addEndListener:tj,...h,onEnter:v,childRef:r.ref,children:(y,C)=>M.cloneElement(r,{...C,className:qt("fade",n,r.props.className,f3[y],i[y])})})});aj.displayName="Fade";const Hp=aj;function lR(n){return typeof n=="boolean"?n?Hp:iR:n}const ij=({transition:n,...r})=>b.jsx(JA,{...r,transition:lR(n)});ij.displayName="TabContainer";const d3=ij,p3=["xxl","xl","lg","md","sm","xs"],v3="xs",oj=M.createContext({prefixes:{},breakpoints:p3,minBreakpoint:v3});function bn(n,r){const{prefixes:i}=M.useContext(oj);return n||i[r]||r}function F0(){const{dir:n}=M.useContext(oj);return n==="rtl"}const sj=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"tab-content"),b.jsx(i,{ref:l,className:qt(n,r),...u})));sj.displayName="TabContent";const lj=sj,uj=M.forwardRef(({bsPrefix:n,transition:r,...i},u)=>{const[{className:l,as:d="div",...h},{isActive:v,onEnter:y,onEntering:C,onEntered:x,onExit:R,onExiting:T,onExited:A,mountOnEnter:N,unmountOnExit:O,transition:_=Hp}]=XA({...i,transition:lR(r)}),L=bn(n,"tab-pane");return b.jsx(Qp.Provider,{value:null,children:b.jsx(nu.Provider,{value:null,children:b.jsx(_,{in:v,onEnter:y,onEntering:C,onEntered:x,onExit:R,onExiting:T,onExited:A,mountOnEnter:N,unmountOnExit:O,children:b.jsx(d,{...h,ref:u,className:qt(l,L,v&&"active")})})})})});uj.displayName="TabPane";const cj=uj,h3={eventKey:_t.oneOfType([_t.string,_t.number]),title:_t.node.isRequired,disabled:_t.bool,tabClassName:_t.string,tabAttrs:_t.object},fj=()=>{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")};fj.propTypes=h3;const kb=Object.assign(fj,{Container:d3,Content:lj,Pane:cj});function Rt(){return Rt=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},Rt.apply(this,arguments)}var m3={},g3=function(n,r,i,u,l,d,h,v){if(m3.NODE_ENV!=="production"&&r===void 0)throw new Error("invariant requires an error message argument");if(!n){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 C=[i,u,l,d,h,v],x=0;y=new Error(r.replace(/%s/g,function(){return C[x++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}},y3=g3;const O_=Jp(y3);function A_(n){return"default"+n.charAt(0).toUpperCase()+n.substr(1)}function b3(n){var r=C3(n,"string");return typeof r=="symbol"?r:String(r)}function C3(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var u=i.call(n,r||"default");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function dj(n,r,i){var u=M.useRef(n!==void 0),l=M.useState(r),d=l[0],h=l[1],v=n!==void 0,y=u.current;return u.current=v,!v&&y&&d!==r&&h(r),[v?n:d,M.useCallback(function(C){for(var x=arguments.length,R=new Array(x>1?x-1:0),T=1;T<x;T++)R[T-1]=arguments[T];i&&i.apply(void 0,[C].concat(R)),h(C)},[i])]}function V0(n,r){return Object.keys(r).reduce(function(i,u){var l,d=i,h=d[A_(u)],v=d[u],y=oR(d,[A_(u),u].map(b3)),C=r[u],x=dj(v,h,n[C]),R=x[0],T=x[1];return Rt({},y,(l={},l[u]=R,l[C]=T,l))},n)}var j_={exports:{}},Ew={exports:{}};(function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;function i(u){function l(h,v,y,C,x,R){var T=C||"<<anonymous>>",A=R||y;if(v[y]==null)return h?new Error("Required "+x+" `"+A+"` was not specified "+("in `"+T+"`.")):null;for(var N=arguments.length,O=Array(N>6?N-6:0),_=6;_<N;_++)O[_-6]=arguments[_];return u.apply(void 0,[v,y,T,x,A].concat(O))}var d=l.bind(null,!1);return d.isRequired=l.bind(null,!0),d}n.exports=r.default})(Ew,Ew.exports);var x3=Ew.exports;(function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var i=x3,u=l(i);function l(h){return h&&h.__esModule?h:{default:h}}function d(){for(var h=arguments.length,v=Array(h),y=0;y<h;y++)v[y]=arguments[y];function C(){for(var x=arguments.length,R=Array(x),T=0;T<x;T++)R[T]=arguments[T];var A=null;return v.forEach(function(N){if(A==null){var O=N.apply(void 0,R);O!=null&&(A=O)}}),A}return(0,u.default)(C)}n.exports=r.default})(j_,j_.exports);var S3=Function.prototype.bind.call(Function.prototype.call,[].slice);function Jl(n,r){return S3(n.querySelectorAll(r))}function pj(){const[,n]=M.useReducer(r=>!r,!1);return n}const vj=M.createContext(null);vj.displayName="NavContext";const uR=vj,E3="data-rr-ui-",w3="rrUi";function tv(n){return`${E3}${n}`}function R3(n){return`${w3}${n}`}const T3=["as","disabled"];function I3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function N3(n){return!n||n.trim()==="#"}function cR({tagName:n,disabled:r,href:i,target:u,rel:l,role:d,onClick:h,tabIndex:v=0,type:y}){n||(i!=null||u!=null||l!=null?n="a":n="button");const C={tagName:n};if(n==="button")return[{type:y||"button",disabled:r},C];const x=T=>{if((r||n==="a"&&N3(i))&&T.preventDefault(),r){T.stopPropagation();return}h==null||h(T)},R=T=>{T.key===" "&&(T.preventDefault(),x(T))};return n==="a"&&(i||(i="#"),r&&(i=void 0)),[{role:d??"button",disabled:void 0,tabIndex:r?void 0:v,href:i,target:n==="a"?u:void 0,"aria-disabled":r||void 0,rel:n==="a"?l:void 0,onClick:x,onKeyDown:R},C]}const fR=M.forwardRef((n,r)=>{let{as:i,disabled:u}=n,l=I3(n,T3);const[d,{tagName:h}]=cR(Object.assign({tagName:i,disabled:u},l));return b.jsx(h,Object.assign({},l,d,{ref:r}))});fR.displayName="Button";const _3=["as","active","eventKey"];function O3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function hj({key:n,onClick:r,active:i,id:u,role:l,disabled:d}){const h=M.useContext(nu),v=M.useContext(uR),y=M.useContext(Qp);let C=i;const x={role:l};if(v){!l&&v.role==="tablist"&&(x.role="tab");const R=v.getControllerId(n??null),T=v.getControlledId(n??null);x[tv("event-key")]=n,x.id=R||u,C=i==null&&n!=null?v.activeKey===n:i,(C||!(y!=null&&y.unmountOnExit)&&!(y!=null&&y.mountOnEnter))&&(x["aria-controls"]=T)}return x.role==="tab"&&(x["aria-selected"]=C,C||(x.tabIndex=-1),d&&(x.tabIndex=-1,x["aria-disabled"]=!0)),x.onClick=gr(R=>{d||(r==null||r(R),n!=null&&h&&!R.isPropagationStopped()&&h(n,R))}),[x,{isActive:C}]}const mj=M.forwardRef((n,r)=>{let{as:i=fR,active:u,eventKey:l}=n,d=O3(n,_3);const[h,v]=hj(Object.assign({key:Wf(l,d.href),active:u},d));return h[tv("active")]=v.isActive,b.jsx(i,Object.assign({},d,h,{ref:r}))});mj.displayName="NavItem";const A3=mj,j3=["as","onSelect","activeKey","role","onKeyDown"];function D3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}const D_=()=>{},k_=tv("event-key"),gj=M.forwardRef((n,r)=>{let{as:i="div",onSelect:u,activeKey:l,role:d,onKeyDown:h}=n,v=D3(n,j3);const y=pj(),C=M.useRef(!1),x=M.useContext(nu),R=M.useContext(Qp);let T,A;R&&(d=d||"tablist",l=R.activeKey,T=R.getControlledId,A=R.getControllerId);const N=M.useRef(null),O=F=>{const U=N.current;if(!U)return null;const z=Jl(U,`[${k_}]:not([aria-disabled=true])`),H=U.querySelector("[aria-selected=true]");if(!H||H!==document.activeElement)return null;const J=z.indexOf(H);if(J===-1)return null;let q=J+F;return q>=z.length&&(q=0),q<0&&(q=z.length-1),z[q]},_=(F,U)=>{F!=null&&(u==null||u(F,U),x==null||x(F,U))},L=F=>{if(h==null||h(F),!R)return;let U;switch(F.key){case"ArrowLeft":case"ArrowUp":U=O(-1);break;case"ArrowRight":case"ArrowDown":U=O(1);break;default:return}U&&(F.preventDefault(),_(U.dataset[R3("EventKey")]||null,F),C.current=!0,y())};M.useEffect(()=>{if(N.current&&C.current){const F=N.current.querySelector(`[${k_}][aria-selected=true]`);F==null||F.focus()}C.current=!1});const V=ds(r,N);return b.jsx(nu.Provider,{value:_,children:b.jsx(uR.Provider,{value:{role:d,activeKey:Wf(l),getControlledId:T||D_,getControllerId:A||D_},children:b.jsx(i,Object.assign({},v,{onKeyDown:L,ref:V,role:d}))})})});gj.displayName="Nav";const k3=Object.assign(gj,{Item:A3}),yj=M.createContext(null);yj.displayName="NavbarContext";const bj=yj,Cj=M.createContext(null);Cj.displayName="CardHeaderContext";const M3=Cj,xj=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"nav-item"),b.jsx(i,{ref:l,className:qt(n,r),...u})));xj.displayName="NavItem";const Sj=xj;function y0(){return M.useState(null)}function L3(n,r,i,u=!1){const l=gr(i);M.useEffect(()=>{const d=typeof n=="function"?n():n;return d.addEventListener(r,l,u),()=>d.removeEventListener(r,l,u)},[n])}function dR(){const n=M.useRef(!0),r=M.useRef(()=>n.current);return M.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),r.current}function Ej(n){const r=M.useRef(null);return M.useEffect(()=>{r.current=n}),r.current}const P3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",F3=typeof document<"u",b0=F3||P3?M.useLayoutEffect:M.useEffect,V3=["onKeyDown"];function B3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function z3(n){return!n||n.trim()==="#"}const wj=M.forwardRef((n,r)=>{let{onKeyDown:i}=n,u=B3(n,V3);const[l]=cR(Object.assign({tagName:"a"},u)),d=gr(h=>{l.onKeyDown(h),i==null||i(h)});return z3(u.href)||u.role==="button"?b.jsx("a",Object.assign({ref:r},u,l,{onKeyDown:d})):b.jsx("a",Object.assign({ref:r},u,{onKeyDown:i}))});wj.displayName="Anchor";const Rj=wj,Tj=M.forwardRef(({bsPrefix:n,className:r,as:i=Rj,active:u,eventKey:l,disabled:d=!1,...h},v)=>{n=bn(n,"nav-link");const[y,C]=hj({key:Wf(l,h.href),active:u,disabled:d,...h});return b.jsx(i,{...h,...y,ref:v,disabled:d,className:qt(r,n,d&&"disabled",C.isActive&&"active")})});Tj.displayName="NavLink";const Ij=Tj,Nj=M.forwardRef((n,r)=>{const{as:i="div",bsPrefix:u,variant:l,fill:d=!1,justify:h=!1,navbar:v,navbarScroll:y,className:C,activeKey:x,...R}=V0(n,{activeKey:"onSelect"}),T=bn(u,"nav");let A,N,O=!1;const _=M.useContext(bj),L=M.useContext(M3);return _?(A=_.bsPrefix,O=v??!0):L&&({cardHeaderBsPrefix:N}=L),b.jsx(k3,{as:i,ref:r,activeKey:x,className:qt(C,{[T]:!O,[`${A}-nav`]:O,[`${A}-nav-scroll`]:O&&y,[`${N}-${l}`]:!!N,[`${T}-${l}`]:!!l,[`${T}-fill`]:d,[`${T}-justified`]:h}),...R})});Nj.displayName="Nav";const U3=Object.assign(Nj,{Item:Sj,Link:Ij});function M_(n,r){let i=0;return M.Children.map(n,u=>M.isValidElement(u)?r(u,i++):u)}function H3(n,r){let i=0;M.Children.forEach(n,u=>{M.isValidElement(u)&&r(u,i++)})}function $3(n){let r;return H3(n,i=>{r==null&&(r=i.props.eventKey)}),r}function G3(n){const{title:r,eventKey:i,disabled:u,tabClassName:l,tabAttrs:d,id:h}=n.props;return r==null?null:b.jsx(Sj,{as:"li",role:"presentation",children:b.jsx(Ij,{as:"button",type:"button",eventKey:i,disabled:u,id:h,className:l,...d,children:r})})}const _j=n=>{const{id:r,onSelect:i,transition:u,mountOnEnter:l=!1,unmountOnExit:d=!1,variant:h="tabs",children:v,activeKey:y=$3(v),...C}=V0(n,{activeKey:"onSelect"});return b.jsxs(JA,{id:r,activeKey:y,onSelect:i,transition:lR(u),mountOnEnter:l,unmountOnExit:d,children:[b.jsx(U3,{...C,role:"tablist",as:"ul",variant:h,children:M_(v,G3)}),b.jsx(lj,{children:M_(v,x=>{const R={...x.props};return delete R.title,delete R.disabled,delete R.tabClassName,delete R.tabAttrs,b.jsx(cj,{...R})})})]})};_j.displayName="Tabs";const W3=_j,X3=M.createContext(null),B0=X3;var L_=Object.prototype.hasOwnProperty;function P_(n,r,i){for(i of n.keys())if(pm(i,r))return i}function pm(n,r){var i,u,l;if(n===r)return!0;if(n&&r&&(i=n.constructor)===r.constructor){if(i===Date)return n.getTime()===r.getTime();if(i===RegExp)return n.toString()===r.toString();if(i===Array){if((u=n.length)===r.length)for(;u--&&pm(n[u],r[u]););return u===-1}if(i===Set){if(n.size!==r.size)return!1;for(u of n)if(l=u,l&&typeof l=="object"&&(l=P_(r,l),!l)||!r.has(l))return!1;return!0}if(i===Map){if(n.size!==r.size)return!1;for(u of n)if(l=u[0],l&&typeof l=="object"&&(l=P_(r,l),!l)||!pm(u[1],r.get(l)))return!1;return!0}if(i===ArrayBuffer)n=new Uint8Array(n),r=new Uint8Array(r);else if(i===DataView){if((u=n.byteLength)===r.byteLength)for(;u--&&n.getInt8(u)===r.getInt8(u););return u===-1}if(ArrayBuffer.isView(n)){if((u=n.byteLength)===r.byteLength)for(;u--&&n[u]===r[u];);return u===-1}if(!i||typeof n=="object"){u=0;for(i in n)if(L_.call(n,i)&&++u&&!L_.call(r,i)||!(i in r)||!pm(n[i],r[i]))return!1;return Object.keys(r).length===u}}return n!==n&&r!==r}function Y3(n){const r=dR();return[n[0],M.useCallback(i=>{if(r())return n[1](i)},[r,n[1]])]}var Oi="top",wo="bottom",Ro="right",Ai="left",pR="auto",Am=[Oi,wo,Ro,Ai],$p="start",bm="end",Z3="clippingParents",Oj="viewport",rm="popper",J3="reference",F_=Am.reduce(function(n,r){return n.concat([r+"-"+$p,r+"-"+bm])},[]),Aj=[].concat(Am,[pR]).reduce(function(n,r){return n.concat([r,r+"-"+$p,r+"-"+bm])},[]),q3="beforeRead",Q3="read",K3="afterRead",eG="beforeMain",tG="main",nG="afterMain",rG="beforeWrite",aG="write",iG="afterWrite",oG=[q3,Q3,K3,eG,tG,nG,rG,aG,iG];function Ks(n){return n.split("-")[0]}function qi(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var r=n.ownerDocument;return r&&r.defaultView||window}return n}function Xf(n){var r=qi(n).Element;return n instanceof r||n instanceof Element}function el(n){var r=qi(n).HTMLElement;return n instanceof r||n instanceof HTMLElement}function vR(n){if(typeof ShadowRoot>"u")return!1;var r=qi(n).ShadowRoot;return n instanceof r||n instanceof ShadowRoot}var Hf=Math.max,C0=Math.min,Gp=Math.round;function ww(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function jj(){return!/^((?!chrome|android).)*safari/i.test(ww())}function Wp(n,r,i){r===void 0&&(r=!1),i===void 0&&(i=!1);var u=n.getBoundingClientRect(),l=1,d=1;r&&el(n)&&(l=n.offsetWidth>0&&Gp(u.width)/n.offsetWidth||1,d=n.offsetHeight>0&&Gp(u.height)/n.offsetHeight||1);var h=Xf(n)?qi(n):window,v=h.visualViewport,y=!jj()&&i,C=(u.left+(y&&v?v.offsetLeft:0))/l,x=(u.top+(y&&v?v.offsetTop:0))/d,R=u.width/l,T=u.height/d;return{width:R,height:T,top:x,right:C+R,bottom:x+T,left:C,x:C,y:x}}function hR(n){var r=Wp(n),i=n.offsetWidth,u=n.offsetHeight;return Math.abs(r.width-i)<=1&&(i=r.width),Math.abs(r.height-u)<=1&&(u=r.height),{x:n.offsetLeft,y:n.offsetTop,width:i,height:u}}function Dj(n,r){var i=r.getRootNode&&r.getRootNode();if(n.contains(r))return!0;if(i&&vR(i)){var u=r;do{if(u&&n.isSameNode(u))return!0;u=u.parentNode||u.host}while(u)}return!1}function gc(n){return n?(n.nodeName||"").toLowerCase():null}function ru(n){return qi(n).getComputedStyle(n)}function sG(n){return["table","td","th"].indexOf(gc(n))>=0}function yc(n){return((Xf(n)?n.ownerDocument:n.document)||window.document).documentElement}function z0(n){return gc(n)==="html"?n:n.assignedSlot||n.parentNode||(vR(n)?n.host:null)||yc(n)}function V_(n){return!el(n)||ru(n).position==="fixed"?null:n.offsetParent}function lG(n){var r=/firefox/i.test(ww()),i=/Trident/i.test(ww());if(i&&el(n)){var u=ru(n);if(u.position==="fixed")return null}var l=z0(n);for(vR(l)&&(l=l.host);el(l)&&["html","body"].indexOf(gc(l))<0;){var d=ru(l);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 l;l=l.parentNode}return null}function jm(n){for(var r=qi(n),i=V_(n);i&&sG(i)&&ru(i).position==="static";)i=V_(i);return i&&(gc(i)==="html"||gc(i)==="body"&&ru(i).position==="static")?r:i||lG(n)||r}function mR(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function vm(n,r,i){return Hf(n,C0(r,i))}function uG(n,r,i){var u=vm(n,r,i);return u>i?i:u}function kj(){return{top:0,right:0,bottom:0,left:0}}function Mj(n){return Object.assign({},kj(),n)}function Lj(n,r){return r.reduce(function(i,u){return i[u]=n,i},{})}var cG=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,Mj(typeof r!="number"?r:Lj(r,Am))};function fG(n){var r,i=n.state,u=n.name,l=n.options,d=i.elements.arrow,h=i.modifiersData.popperOffsets,v=Ks(i.placement),y=mR(v),C=[Ai,Ro].indexOf(v)>=0,x=C?"height":"width";if(!(!d||!h)){var R=cG(l.padding,i),T=hR(d),A=y==="y"?Oi:Ai,N=y==="y"?wo:Ro,O=i.rects.reference[x]+i.rects.reference[y]-h[y]-i.rects.popper[x],_=h[y]-i.rects.reference[y],L=jm(d),V=L?y==="y"?L.clientHeight||0:L.clientWidth||0:0,F=O/2-_/2,U=R[A],z=V-T[x]-R[N],H=V/2-T[x]/2+F,J=vm(U,H,z),q=y;i.modifiersData[u]=(r={},r[q]=J,r.centerOffset=J-H,r)}}function dG(n){var r=n.state,i=n.options,u=i.element,l=u===void 0?"[data-popper-arrow]":u;l!=null&&(typeof l=="string"&&(l=r.elements.popper.querySelector(l),!l)||Dj(r.elements.popper,l)&&(r.elements.arrow=l))}const pG={name:"arrow",enabled:!0,phase:"main",fn:fG,effect:dG,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xp(n){return n.split("-")[1]}var vG={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hG(n,r){var i=n.x,u=n.y,l=r.devicePixelRatio||1;return{x:Gp(i*l)/l||0,y:Gp(u*l)/l||0}}function B_(n){var r,i=n.popper,u=n.popperRect,l=n.placement,d=n.variation,h=n.offsets,v=n.position,y=n.gpuAcceleration,C=n.adaptive,x=n.roundOffsets,R=n.isFixed,T=h.x,A=T===void 0?0:T,N=h.y,O=N===void 0?0:N,_=typeof x=="function"?x({x:A,y:O}):{x:A,y:O};A=_.x,O=_.y;var L=h.hasOwnProperty("x"),V=h.hasOwnProperty("y"),F=Ai,U=Oi,z=window;if(C){var H=jm(i),J="clientHeight",q="clientWidth";if(H===qi(i)&&(H=yc(i),ru(H).position!=="static"&&v==="absolute"&&(J="scrollHeight",q="scrollWidth")),H=H,l===Oi||(l===Ai||l===Ro)&&d===bm){U=wo;var Re=R&&H===z&&z.visualViewport?z.visualViewport.height:H[J];O-=Re-u.height,O*=y?1:-1}if(l===Ai||(l===Oi||l===wo)&&d===bm){F=Ro;var he=R&&H===z&&z.visualViewport?z.visualViewport.width:H[q];A-=he-u.width,A*=y?1:-1}}var ge=Object.assign({position:v},C&&vG),fe=x===!0?hG({x:A,y:O},qi(i)):{x:A,y:O};if(A=fe.x,O=fe.y,y){var Oe;return Object.assign({},ge,(Oe={},Oe[U]=V?"0":"",Oe[F]=L?"0":"",Oe.transform=(z.devicePixelRatio||1)<=1?"translate("+A+"px, "+O+"px)":"translate3d("+A+"px, "+O+"px, 0)",Oe))}return Object.assign({},ge,(r={},r[U]=V?O+"px":"",r[F]=L?A+"px":"",r.transform="",r))}function mG(n){var r=n.state,i=n.options,u=i.gpuAcceleration,l=u===void 0?!0:u,d=i.adaptive,h=d===void 0?!0:d,v=i.roundOffsets,y=v===void 0?!0:v,C={placement:Ks(r.placement),variation:Xp(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:l,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,B_(Object.assign({},C,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:h,roundOffsets:y})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,B_(Object.assign({},C,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const gG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mG,data:{}};var Mb={passive:!0};function yG(n){var r=n.state,i=n.instance,u=n.options,l=u.scroll,d=l===void 0?!0:l,h=u.resize,v=h===void 0?!0:h,y=qi(r.elements.popper),C=[].concat(r.scrollParents.reference,r.scrollParents.popper);return d&&C.forEach(function(x){x.addEventListener("scroll",i.update,Mb)}),v&&y.addEventListener("resize",i.update,Mb),function(){d&&C.forEach(function(x){x.removeEventListener("scroll",i.update,Mb)}),v&&y.removeEventListener("resize",i.update,Mb)}}const bG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yG,data:{}};var CG={left:"right",right:"left",bottom:"top",top:"bottom"};function qb(n){return n.replace(/left|right|bottom|top/g,function(r){return CG[r]})}var xG={start:"end",end:"start"};function z_(n){return n.replace(/start|end/g,function(r){return xG[r]})}function gR(n){var r=qi(n),i=r.pageXOffset,u=r.pageYOffset;return{scrollLeft:i,scrollTop:u}}function yR(n){return Wp(yc(n)).left+gR(n).scrollLeft}function SG(n,r){var i=qi(n),u=yc(n),l=i.visualViewport,d=u.clientWidth,h=u.clientHeight,v=0,y=0;if(l){d=l.width,h=l.height;var C=jj();(C||!C&&r==="fixed")&&(v=l.offsetLeft,y=l.offsetTop)}return{width:d,height:h,x:v+yR(n),y}}function EG(n){var r,i=yc(n),u=gR(n),l=(r=n.ownerDocument)==null?void 0:r.body,d=Hf(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),h=Hf(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),v=-u.scrollLeft+yR(n),y=-u.scrollTop;return ru(l||i).direction==="rtl"&&(v+=Hf(i.clientWidth,l?l.clientWidth:0)-d),{width:d,height:h,x:v,y}}function bR(n){var r=ru(n),i=r.overflow,u=r.overflowX,l=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+l+u)}function Pj(n){return["html","body","#document"].indexOf(gc(n))>=0?n.ownerDocument.body:el(n)&&bR(n)?n:Pj(z0(n))}function hm(n,r){var i;r===void 0&&(r=[]);var u=Pj(n),l=u===((i=n.ownerDocument)==null?void 0:i.body),d=qi(u),h=l?[d].concat(d.visualViewport||[],bR(u)?u:[]):u,v=r.concat(h);return l?v:v.concat(hm(z0(h)))}function Rw(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function wG(n,r){var i=Wp(n,!1,r==="fixed");return i.top=i.top+n.clientTop,i.left=i.left+n.clientLeft,i.bottom=i.top+n.clientHeight,i.right=i.left+n.clientWidth,i.width=n.clientWidth,i.height=n.clientHeight,i.x=i.left,i.y=i.top,i}function U_(n,r,i){return r===Oj?Rw(SG(n,i)):Xf(r)?wG(r,i):Rw(EG(yc(n)))}function RG(n){var r=hm(z0(n)),i=["absolute","fixed"].indexOf(ru(n).position)>=0,u=i&&el(n)?jm(n):n;return Xf(u)?r.filter(function(l){return Xf(l)&&Dj(l,u)&&gc(l)!=="body"}):[]}function TG(n,r,i,u){var l=r==="clippingParents"?RG(n):[].concat(r),d=[].concat(l,[i]),h=d[0],v=d.reduce(function(y,C){var x=U_(n,C,u);return y.top=Hf(x.top,y.top),y.right=C0(x.right,y.right),y.bottom=C0(x.bottom,y.bottom),y.left=Hf(x.left,y.left),y},U_(n,h,u));return v.width=v.right-v.left,v.height=v.bottom-v.top,v.x=v.left,v.y=v.top,v}function Fj(n){var r=n.reference,i=n.element,u=n.placement,l=u?Ks(u):null,d=u?Xp(u):null,h=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,y;switch(l){case Oi:y={x:h,y:r.y-i.height};break;case wo:y={x:h,y:r.y+r.height};break;case Ro:y={x:r.x+r.width,y:v};break;case Ai:y={x:r.x-i.width,y:v};break;default:y={x:r.x,y:r.y}}var C=l?mR(l):null;if(C!=null){var x=C==="y"?"height":"width";switch(d){case $p:y[C]=y[C]-(r[x]/2-i[x]/2);break;case bm:y[C]=y[C]+(r[x]/2-i[x]/2);break}}return y}function Cm(n,r){r===void 0&&(r={});var i=r,u=i.placement,l=u===void 0?n.placement:u,d=i.strategy,h=d===void 0?n.strategy:d,v=i.boundary,y=v===void 0?Z3:v,C=i.rootBoundary,x=C===void 0?Oj:C,R=i.elementContext,T=R===void 0?rm:R,A=i.altBoundary,N=A===void 0?!1:A,O=i.padding,_=O===void 0?0:O,L=Mj(typeof _!="number"?_:Lj(_,Am)),V=T===rm?J3:rm,F=n.rects.popper,U=n.elements[N?V:T],z=TG(Xf(U)?U:U.contextElement||yc(n.elements.popper),y,x,h),H=Wp(n.elements.reference),J=Fj({reference:H,element:F,strategy:"absolute",placement:l}),q=Rw(Object.assign({},F,J)),Re=T===rm?q:H,he={top:z.top-Re.top+L.top,bottom:Re.bottom-z.bottom+L.bottom,left:z.left-Re.left+L.left,right:Re.right-z.right+L.right},ge=n.modifiersData.offset;if(T===rm&&ge){var fe=ge[l];Object.keys(he).forEach(function(Oe){var Te=[Ro,wo].indexOf(Oe)>=0?1:-1,xe=[Oi,wo].indexOf(Oe)>=0?"y":"x";he[Oe]+=fe[xe]*Te})}return he}function IG(n,r){r===void 0&&(r={});var i=r,u=i.placement,l=i.boundary,d=i.rootBoundary,h=i.padding,v=i.flipVariations,y=i.allowedAutoPlacements,C=y===void 0?Aj:y,x=Xp(u),R=x?v?F_:F_.filter(function(N){return Xp(N)===x}):Am,T=R.filter(function(N){return C.indexOf(N)>=0});T.length===0&&(T=R);var A=T.reduce(function(N,O){return N[O]=Cm(n,{placement:O,boundary:l,rootBoundary:d,padding:h})[Ks(O)],N},{});return Object.keys(A).sort(function(N,O){return A[N]-A[O]})}function NG(n){if(Ks(n)===pR)return[];var r=qb(n);return[z_(n),r,z_(r)]}function _G(n){var r=n.state,i=n.options,u=n.name;if(!r.modifiersData[u]._skip){for(var l=i.mainAxis,d=l===void 0?!0:l,h=i.altAxis,v=h===void 0?!0:h,y=i.fallbackPlacements,C=i.padding,x=i.boundary,R=i.rootBoundary,T=i.altBoundary,A=i.flipVariations,N=A===void 0?!0:A,O=i.allowedAutoPlacements,_=r.options.placement,L=Ks(_),V=L===_,F=y||(V||!N?[qb(_)]:NG(_)),U=[_].concat(F).reduce(function(Se,Ne){return Se.concat(Ks(Ne)===pR?IG(r,{placement:Ne,boundary:x,rootBoundary:R,padding:C,flipVariations:N,allowedAutoPlacements:O}):Ne)},[]),z=r.rects.reference,H=r.rects.popper,J=new Map,q=!0,Re=U[0],he=0;he<U.length;he++){var ge=U[he],fe=Ks(ge),Oe=Xp(ge)===$p,Te=[Oi,wo].indexOf(fe)>=0,xe=Te?"width":"height",je=Cm(r,{placement:ge,boundary:x,rootBoundary:R,altBoundary:T,padding:C}),Le=Te?Oe?Ro:Ai:Oe?wo:Oi;z[xe]>H[xe]&&(Le=qb(Le));var ne=qb(Le),_e=[];if(d&&_e.push(je[fe]<=0),v&&_e.push(je[Le]<=0,je[ne]<=0),_e.every(function(Se){return Se})){Re=ge,q=!1;break}J.set(ge,_e)}if(q)for(var G=N?3:1,Y=function(Ne){var le=U.find(function(ve){var we=J.get(ve);if(we)return we.slice(0,Ne).every(function(Ve){return Ve})});if(le)return Re=le,"break"},re=G;re>0;re--){var ye=Y(re);if(ye==="break")break}r.placement!==Re&&(r.modifiersData[u]._skip=!0,r.placement=Re,r.reset=!0)}}const OG={name:"flip",enabled:!0,phase:"main",fn:_G,requiresIfExists:["offset"],data:{_skip:!1}};function H_(n,r,i){return i===void 0&&(i={x:0,y:0}),{top:n.top-r.height-i.y,right:n.right-r.width+i.x,bottom:n.bottom-r.height+i.y,left:n.left-r.width-i.x}}function $_(n){return[Oi,Ro,wo,Ai].some(function(r){return n[r]>=0})}function AG(n){var r=n.state,i=n.name,u=r.rects.reference,l=r.rects.popper,d=r.modifiersData.preventOverflow,h=Cm(r,{elementContext:"reference"}),v=Cm(r,{altBoundary:!0}),y=H_(h,u),C=H_(v,l,d),x=$_(y),R=$_(C);r.modifiersData[i]={referenceClippingOffsets:y,popperEscapeOffsets:C,isReferenceHidden:x,hasPopperEscaped:R},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":x,"data-popper-escaped":R})}const jG={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:AG};function DG(n,r,i){var u=Ks(n),l=[Ai,Oi].indexOf(u)>=0?-1:1,d=typeof i=="function"?i(Object.assign({},r,{placement:n})):i,h=d[0],v=d[1];return h=h||0,v=(v||0)*l,[Ai,Ro].indexOf(u)>=0?{x:v,y:h}:{x:h,y:v}}function kG(n){var r=n.state,i=n.options,u=n.name,l=i.offset,d=l===void 0?[0,0]:l,h=Aj.reduce(function(x,R){return x[R]=DG(R,r.rects,d),x},{}),v=h[r.placement],y=v.x,C=v.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=y,r.modifiersData.popperOffsets.y+=C),r.modifiersData[u]=h}const MG={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kG};function LG(n){var r=n.state,i=n.name;r.modifiersData[i]=Fj({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const PG={name:"popperOffsets",enabled:!0,phase:"read",fn:LG,data:{}};function FG(n){return n==="x"?"y":"x"}function VG(n){var r=n.state,i=n.options,u=n.name,l=i.mainAxis,d=l===void 0?!0:l,h=i.altAxis,v=h===void 0?!1:h,y=i.boundary,C=i.rootBoundary,x=i.altBoundary,R=i.padding,T=i.tether,A=T===void 0?!0:T,N=i.tetherOffset,O=N===void 0?0:N,_=Cm(r,{boundary:y,rootBoundary:C,padding:R,altBoundary:x}),L=Ks(r.placement),V=Xp(r.placement),F=!V,U=mR(L),z=FG(U),H=r.modifiersData.popperOffsets,J=r.rects.reference,q=r.rects.popper,Re=typeof O=="function"?O(Object.assign({},r.rects,{placement:r.placement})):O,he=typeof Re=="number"?{mainAxis:Re,altAxis:Re}:Object.assign({mainAxis:0,altAxis:0},Re),ge=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,fe={x:0,y:0};if(H){if(d){var Oe,Te=U==="y"?Oi:Ai,xe=U==="y"?wo:Ro,je=U==="y"?"height":"width",Le=H[U],ne=Le+_[Te],_e=Le-_[xe],G=A?-q[je]/2:0,Y=V===$p?J[je]:q[je],re=V===$p?-q[je]:-J[je],ye=r.elements.arrow,Se=A&&ye?hR(ye):{width:0,height:0},Ne=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:kj(),le=Ne[Te],ve=Ne[xe],we=vm(0,J[je],Se[je]),Ve=F?J[je]/2-G-we-le-he.mainAxis:Y-we-le-he.mainAxis,et=F?-J[je]/2+G+we+ve+he.mainAxis:re+we+ve+he.mainAxis,tt=r.elements.arrow&&jm(r.elements.arrow),ft=tt?U==="y"?tt.clientTop||0:tt.clientLeft||0:0,Ae=(Oe=ge==null?void 0:ge[U])!=null?Oe:0,It=Le+Ve-Ae-ft,pt=Le+et-Ae,Kt=vm(A?C0(ne,It):ne,Le,A?Hf(_e,pt):_e);H[U]=Kt,fe[U]=Kt-Le}if(v){var on,sn=U==="x"?Oi:Ai,_n=U==="x"?wo:Ro,Vt=H[z],Cn=z==="y"?"height":"width",qn=Vt+_[sn],Rr=Vt-_[_n],$n=[Oi,Ai].indexOf(L)!==-1,Tr=(on=ge==null?void 0:ge[z])!=null?on:0,xt=$n?qn:Vt-J[Cn]-q[Cn]-Tr+he.altAxis,Pn=$n?Vt+J[Cn]+q[Cn]-Tr-he.altAxis:Rr,ln=A&&$n?uG(xt,Vt,Pn):vm(A?xt:qn,Vt,A?Pn:Rr);H[z]=ln,fe[z]=ln-Vt}r.modifiersData[u]=fe}}const BG={name:"preventOverflow",enabled:!0,phase:"main",fn:VG,requiresIfExists:["offset"]};function zG(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function UG(n){return n===qi(n)||!el(n)?gR(n):zG(n)}function HG(n){var r=n.getBoundingClientRect(),i=Gp(r.width)/n.offsetWidth||1,u=Gp(r.height)/n.offsetHeight||1;return i!==1||u!==1}function $G(n,r,i){i===void 0&&(i=!1);var u=el(r),l=el(r)&&HG(r),d=yc(r),h=Wp(n,l,i),v={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(u||!u&&!i)&&((gc(r)!=="body"||bR(d))&&(v=UG(r)),el(r)?(y=Wp(r,!0),y.x+=r.clientLeft,y.y+=r.clientTop):d&&(y.x=yR(d))),{x:h.left+v.scrollLeft-y.x,y:h.top+v.scrollTop-y.y,width:h.width,height:h.height}}function GG(n){var r=new Map,i=new Set,u=[];n.forEach(function(d){r.set(d.name,d)});function l(d){i.add(d.name);var h=[].concat(d.requires||[],d.requiresIfExists||[]);h.forEach(function(v){if(!i.has(v)){var y=r.get(v);y&&l(y)}}),u.push(d)}return n.forEach(function(d){i.has(d.name)||l(d)}),u}function WG(n){var r=GG(n);return oG.reduce(function(i,u){return i.concat(r.filter(function(l){return l.phase===u}))},[])}function XG(n){var r;return function(){return r||(r=new Promise(function(i){Promise.resolve().then(function(){r=void 0,i(n())})})),r}}function YG(n){var r=n.reduce(function(i,u){var l=i[u.name];return i[u.name]=l?Object.assign({},l,u,{options:Object.assign({},l.options,u.options),data:Object.assign({},l.data,u.data)}):u,i},{});return Object.keys(r).map(function(i){return r[i]})}var G_={placement:"bottom",modifiers:[],strategy:"absolute"};function W_(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return!r.some(function(u){return!(u&&typeof u.getBoundingClientRect=="function")})}function ZG(n){n===void 0&&(n={});var r=n,i=r.defaultModifiers,u=i===void 0?[]:i,l=r.defaultOptions,d=l===void 0?G_:l;return function(v,y,C){C===void 0&&(C=d);var x={placement:"bottom",orderedModifiers:[],options:Object.assign({},G_,d),modifiersData:{},elements:{reference:v,popper:y},attributes:{},styles:{}},R=[],T=!1,A={state:x,setOptions:function(L){var V=typeof L=="function"?L(x.options):L;O(),x.options=Object.assign({},d,x.options,V),x.scrollParents={reference:Xf(v)?hm(v):v.contextElement?hm(v.contextElement):[],popper:hm(y)};var F=WG(YG([].concat(u,x.options.modifiers)));return x.orderedModifiers=F.filter(function(U){return U.enabled}),N(),A.update()},forceUpdate:function(){if(!T){var L=x.elements,V=L.reference,F=L.popper;if(W_(V,F)){x.rects={reference:$G(V,jm(F),x.options.strategy==="fixed"),popper:hR(F)},x.reset=!1,x.placement=x.options.placement,x.orderedModifiers.forEach(function(he){return x.modifiersData[he.name]=Object.assign({},he.data)});for(var U=0;U<x.orderedModifiers.length;U++){if(x.reset===!0){x.reset=!1,U=-1;continue}var z=x.orderedModifiers[U],H=z.fn,J=z.options,q=J===void 0?{}:J,Re=z.name;typeof H=="function"&&(x=H({state:x,options:q,name:Re,instance:A})||x)}}}},update:XG(function(){return new Promise(function(_){A.forceUpdate(),_(x)})}),destroy:function(){O(),T=!0}};if(!W_(v,y))return A;A.setOptions(C).then(function(_){!T&&C.onFirstUpdate&&C.onFirstUpdate(_)});function N(){x.orderedModifiers.forEach(function(_){var L=_.name,V=_.options,F=V===void 0?{}:V,U=_.effect;if(typeof U=="function"){var z=U({state:x,name:L,instance:A,options:F}),H=function(){};R.push(z||H)}})}function O(){R.forEach(function(_){return _()}),R=[]}return A}}const JG=ZG({defaultModifiers:[jG,PG,gG,bG,MG,OG,BG,pG]}),qG=["enabled","placement","strategy","modifiers"];function QG(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}const KG={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},e9={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:n})=>()=>{const{reference:r,popper:i}=n.elements;if("removeAttribute"in r){const u=(r.getAttribute("aria-describedby")||"").split(",").filter(l=>l.trim()!==i.id);u.length?r.setAttribute("aria-describedby",u.join(",")):r.removeAttribute("aria-describedby")}},fn:({state:n})=>{var r;const{popper:i,reference:u}=n.elements,l=(r=i.getAttribute("role"))==null?void 0:r.toLowerCase();if(i.id&&l==="tooltip"&&"setAttribute"in u){const d=u.getAttribute("aria-describedby");if(d&&d.split(",").indexOf(i.id)!==-1)return;u.setAttribute("aria-describedby",d?`${d},${i.id}`:i.id)}}},t9=[];function Vj(n,r,i={}){let{enabled:u=!0,placement:l="bottom",strategy:d="absolute",modifiers:h=t9}=i,v=QG(i,qG);const y=M.useRef(h),C=M.useRef(),x=M.useCallback(()=>{var _;(_=C.current)==null||_.update()},[]),R=M.useCallback(()=>{var _;(_=C.current)==null||_.forceUpdate()},[]),[T,A]=Y3(M.useState({placement:l,update:x,forceUpdate:R,attributes:{},styles:{popper:{},arrow:{}}})),N=M.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:_})=>{const L={},V={};Object.keys(_.elements).forEach(F=>{L[F]=_.styles[F],V[F]=_.attributes[F]}),A({state:_,styles:L,attributes:V,update:x,forceUpdate:R,placement:_.placement})}}),[x,R,A]),O=M.useMemo(()=>(pm(y.current,h)||(y.current=h),y.current),[h]);return M.useEffect(()=>{!C.current||!u||C.current.setOptions({placement:l,strategy:d,modifiers:[...O,N,KG]})},[d,l,N,u,O]),M.useEffect(()=>{if(!(!u||n==null||r==null))return C.current=JG(n,r,Object.assign({},v,{placement:l,strategy:d,modifiers:[...O,e9,N]})),()=>{C.current!=null&&(C.current.destroy(),C.current=void 0,A(_=>Object.assign({},_,{attributes:{},styles:{popper:{}}})))}},[u,n,r]),T}function xm(n,r){if(n.contains)return n.contains(r);if(n.compareDocumentPosition)return n===r||!!(n.compareDocumentPosition(r)&16)}var n9={},r9=n9.NODE_ENV!=="production",Bj=function(){};if(r9){var a9=function(r,i){var u=arguments.length;i=new Array(u>1?u-1:0);for(var l=1;l<u;l++)i[l-1]=arguments[l];var d=0,h="Warning: "+r.replace(/%s/g,function(){return i[d++]});typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}};Bj=function(n,r,i){var u=arguments.length;i=new Array(u>2?u-2:0);for(var l=2;l<u;l++)i[l-2]=arguments[l];if(r===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");n||a9.apply(null,[r].concat(i))}}var i9=Bj;const CR=Jp(i9),X_=()=>{};function o9(n){return n.button===0}function s9(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}const Qb=n=>n&&("current"in n?n.current:n),Y_={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function zj(n,r=X_,{disabled:i,clickTrigger:u="click"}={}){const l=M.useRef(!1),d=M.useRef(!1),h=M.useCallback(C=>{const x=Qb(n);CR(!!x,"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"),l.current=!x||s9(C)||!o9(C)||!!xm(x,C.target)||d.current,d.current=!1},[n]),v=gr(C=>{const x=Qb(n);x&&xm(x,C.target)&&(d.current=!0)}),y=gr(C=>{l.current||r(C)});M.useEffect(()=>{var C,x;if(i||n==null)return;const R=Kp(Qb(n)),T=R.defaultView||window;let A=(C=T.event)!=null?C:(x=T.parent)==null?void 0:x.event,N=null;Y_[u]&&(N=ql(R,Y_[u],v,!0));const O=ql(R,u,h,!0),_=ql(R,u,V=>{if(V===A){A=void 0;return}y(V)});let L=[];return"ontouchstart"in R.documentElement&&(L=[].slice.call(R.body.children).map(V=>ql(V,"mousemove",X_))),()=>{N==null||N(),O(),_(),L.forEach(V=>V())}},[n,i,u,h,v,y])}function l9(n){const r={};return Array.isArray(n)?(n==null||n.forEach(i=>{r[i.name]=i}),r):n||r}function u9(n={}){return Array.isArray(n)?n:Object.keys(n).map(r=>(n[r].name=r,n[r]))}function Uj({enabled:n,enableEvents:r,placement:i,flip:u,offset:l,fixed:d,containerPadding:h,arrowElement:v,popperConfig:y={}}){var C,x,R,T,A;const N=l9(y.modifiers);return Object.assign({},y,{placement:i,enabled:n,strategy:d?"fixed":y.strategy,modifiers:u9(Object.assign({},N,{eventListeners:{enabled:r,options:(C=N.eventListeners)==null?void 0:C.options},preventOverflow:Object.assign({},N.preventOverflow,{options:h?Object.assign({padding:h},(x=N.preventOverflow)==null?void 0:x.options):(R=N.preventOverflow)==null?void 0:R.options}),offset:{options:Object.assign({offset:l},(T=N.offset)==null?void 0:T.options)},arrow:Object.assign({},N.arrow,{enabled:!!v,options:Object.assign({},(A=N.arrow)==null?void 0:A.options,{element:v})}),flip:Object.assign({enabled:!!u},N.flip)}))})}const c9=["children"];function f9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}const d9=()=>{};function Hj(n={}){const r=M.useContext(B0),[i,u]=y0(),l=M.useRef(!1),{flip:d,offset:h,rootCloseEvent:v,fixed:y=!1,placement:C,popperConfig:x={},enableEventListeners:R=!0,usePopper:T=!!r}=n,A=(r==null?void 0:r.show)==null?!!n.show:r.show;A&&!l.current&&(l.current=!0);const N=H=>{r==null||r.toggle(!1,H)},{placement:O,setMenu:_,menuElement:L,toggleElement:V}=r||{},F=Vj(V,L,Uj({placement:C||O||"bottom-start",enabled:T,enableEvents:R??A,offset:h,flip:d,fixed:y,arrowElement:i,popperConfig:x})),U=Object.assign({ref:_||d9,"aria-labelledby":V==null?void 0:V.id},F.attributes.popper,{style:F.styles.popper}),z={show:A,placement:O,hasShown:l.current,toggle:r==null?void 0:r.toggle,popper:T?F:null,arrowProps:T?Object.assign({ref:u},F.attributes.arrow,{style:F.styles.arrow}):{}};return zj(L,N,{clickTrigger:v,disabled:!A}),[U,z]}const p9={usePopper:!0};function xR(n){let{children:r}=n,i=f9(n,c9);const[u,l]=Hj(i);return b.jsx(b.Fragment,{children:r(u,l)})}xR.displayName="DropdownMenu";xR.defaultProps=p9;const $j=n=>{var r;return((r=n.getAttribute("role"))==null?void 0:r.toLowerCase())==="menu"},Z_=()=>{};function Gj(){const n=WA(),{show:r=!1,toggle:i=Z_,setToggle:u,menuElement:l}=M.useContext(B0)||{},d=M.useCallback(v=>{i(!r,v)},[r,i]),h={id:n,ref:u||Z_,onClick:d,"aria-expanded":!!r};return l&&$j(l)&&(h["aria-haspopup"]=!0),[h,{show:r,toggle:i}]}function Wj({children:n}){const[r,i]=Gj();return b.jsx(b.Fragment,{children:n(r,i)})}Wj.displayName="DropdownToggle";const v9=["eventKey","disabled","onClick","active","as"];function h9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function Xj({key:n,href:r,active:i,disabled:u,onClick:l}){const d=M.useContext(nu),h=M.useContext(uR),{activeKey:v}=h||{},y=Wf(n,r),C=i==null&&n!=null?Wf(v)===y:i;return[{onClick:gr(R=>{u||(l==null||l(R),d&&!R.isPropagationStopped()&&d(y,R))}),"aria-disabled":u||void 0,"aria-selected":C,[tv("dropdown-item")]:""},{isActive:C}]}const Yj=M.forwardRef((n,r)=>{let{eventKey:i,disabled:u,onClick:l,active:d,as:h=fR}=n,v=h9(n,v9);const[y]=Xj({key:i,href:v.href,disabled:u,onClick:l,active:d});return b.jsx(h,Object.assign({},v,{ref:r},y))});Yj.displayName="DropdownItem";const Zj=M.createContext(ev?window:void 0);Zj.Provider;function U0(){return M.useContext(Zj)}function J_(){const n=pj(),r=M.useRef(null),i=M.useCallback(u=>{r.current=u,n()},[n]);return[r,i]}function Dm({defaultShow:n,show:r,onSelect:i,onToggle:u,itemSelector:l=`* [${tv("dropdown-item")}]`,focusFirstItemOnShow:d,placement:h="bottom-start",children:v}){const y=U0(),[C,x]=HA(r,n,u),[R,T]=J_(),A=R.current,[N,O]=J_(),_=N.current,L=Ej(C),V=M.useRef(null),F=M.useRef(!1),U=M.useContext(nu),z=M.useCallback((ge,fe,Oe=fe==null?void 0:fe.type)=>{x(ge,{originalEvent:fe,source:Oe})},[x]),H=gr((ge,fe)=>{i==null||i(ge,fe),z(!1,fe,"select"),fe.isPropagationStopped()||U==null||U(ge,fe)}),J=M.useMemo(()=>({toggle:z,placement:h,show:C,menuElement:A,toggleElement:_,setMenu:T,setToggle:O}),[z,h,C,A,_,T,O]);A&&L&&!C&&(F.current=A.contains(A.ownerDocument.activeElement));const q=gr(()=>{_&&_.focus&&_.focus()}),Re=gr(()=>{const ge=V.current;let fe=d;if(fe==null&&(fe=R.current&&$j(R.current)?"keyboard":!1),fe===!1||fe==="keyboard"&&!/^key.+$/.test(ge))return;const Oe=Jl(R.current,l)[0];Oe&&Oe.focus&&Oe.focus()});M.useEffect(()=>{C?Re():F.current&&(F.current=!1,q())},[C,F,q,Re]),M.useEffect(()=>{V.current=null});const he=(ge,fe)=>{if(!R.current)return null;const Oe=Jl(R.current,l);let Te=Oe.indexOf(ge)+fe;return Te=Math.max(0,Math.min(Te,Oe.length)),Oe[Te]};return L3(M.useCallback(()=>y.document,[y]),"keydown",ge=>{var fe,Oe;const{key:Te}=ge,xe=ge.target,je=(fe=R.current)==null?void 0:fe.contains(xe),Le=(Oe=N.current)==null?void 0:Oe.contains(xe);if(/input|textarea/i.test(xe.tagName)&&(Te===" "||Te!=="Escape"&&je||Te==="Escape"&&xe.type==="search")||!je&&!Le||Te==="Tab"&&(!R.current||!C))return;V.current=ge.type;const _e={originalEvent:ge,source:ge.type};switch(Te){case"ArrowUp":{const G=he(xe,-1);G&&G.focus&&G.focus(),ge.preventDefault();return}case"ArrowDown":if(ge.preventDefault(),!C)x(!0,_e);else{const G=he(xe,1);G&&G.focus&&G.focus()}return;case"Tab":sR(xe.ownerDocument,"keyup",G=>{var Y;(G.key==="Tab"&&!G.target||!((Y=R.current)!=null&&Y.contains(G.target)))&&x(!1,_e)},{once:!0});break;case"Escape":Te==="Escape"&&(ge.preventDefault(),ge.stopPropagation()),x(!1,_e);break}}),b.jsx(nu.Provider,{value:H,children:b.jsx(B0.Provider,{value:J,children:v})})}Dm.displayName="Dropdown";Dm.Menu=xR;Dm.Toggle=Wj;Dm.Item=Yj;const Jj=M.createContext({});Jj.displayName="DropdownContext";const qj=Jj,Qj=M.forwardRef(({className:n,bsPrefix:r,as:i="hr",role:u="separator",...l},d)=>(r=bn(r,"dropdown-divider"),b.jsx(i,{ref:d,className:qt(n,r),role:u,...l})));Qj.displayName="DropdownDivider";const m9=Qj,Kj=M.forwardRef(({className:n,bsPrefix:r,as:i="div",role:u="heading",...l},d)=>(r=bn(r,"dropdown-header"),b.jsx(i,{ref:d,className:qt(n,r),role:u,...l})));Kj.displayName="DropdownHeader";const g9=Kj,eD=M.forwardRef(({bsPrefix:n,className:r,eventKey:i,disabled:u=!1,onClick:l,active:d,as:h=Rj,...v},y)=>{const C=bn(n,"dropdown-item"),[x,R]=Xj({key:i,href:v.href,disabled:u,onClick:l,active:d});return b.jsx(h,{...v,...x,ref:y,className:qt(r,C,R.isActive&&"active",u&&"disabled")})});eD.displayName="DropdownItem";const y9=eD,tD=M.forwardRef(({className:n,bsPrefix:r,as:i="span",...u},l)=>(r=bn(r,"dropdown-item-text"),b.jsx(i,{ref:l,className:qt(n,r),...u})));tD.displayName="DropdownItemText";const b9=tD,nD=M.createContext(null);nD.displayName="InputGroupContext";const rD=nD;var q_={};function aD(n,r){if(q_.NODE_ENV==="production")return n;const i=M.useCallback(u=>{u==null||!u.isReactComponent||(q_.NODE_ENV!=="production"?O_(!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`):O_(!1))},[r]);return ds(i,n)}var C9={};function iD(n,r,i){const u=i?"top-end":"top-start",l=i?"top-start":"top-end",d=i?"bottom-end":"bottom-start",h=i?"bottom-start":"bottom-end",v=i?"right-start":"left-start",y=i?"right-end":"left-end",C=i?"left-start":"right-start",x=i?"left-end":"right-end";let R=n?h:d;return r==="up"?R=n?l:u:r==="end"?R=n?x:C:r==="start"?R=n?y:v:r==="down-centered"?R="bottom":r==="up-centered"&&(R="top"),R}const oD=M.forwardRef(({bsPrefix:n,className:r,align:i,rootCloseEvent:u,flip:l=!0,show:d,renderOnMount:h,as:v="div",popperConfig:y,variant:C,...x},R)=>{let T=!1;const A=M.useContext(bj),N=bn(n,"dropdown-menu"),{align:O,drop:_,isRTL:L}=M.useContext(qj);i=i||O;const V=M.useContext(rD),F=[];if(i)if(typeof i=="object"){const ge=Object.keys(i);if(C9.NODE_ENV!=="production"&&CR(ge.length===1,"There should only be 1 breakpoint when passing an object to `align`"),ge.length){const fe=ge[0],Oe=i[fe];T=Oe==="start",F.push(`${N}-${fe}-${Oe}`)}}else i==="end"&&(T=!0);const U=iD(T,_,L),[z,{hasShown:H,popper:J,show:q,toggle:Re}]=Hj({flip:l,rootCloseEvent:u,show:d,usePopper:!A&&F.length===0,offset:[0,2],popperConfig:y,placement:U});if(z.ref=ds(aD(R,"DropdownMenu"),z.ref),b0(()=>{q&&(J==null||J.update())},[q]),!H&&!h&&!V)return null;typeof v!="string"&&(z.show=q,z.close=()=>Re==null?void 0:Re(!1),z.align=i);let he=x.style;return J!=null&&J.placement&&(he={...x.style,...z.style},x["x-placement"]=J.placement),b.jsx(v,{...x,...z,style:he,...(F.length||A)&&{"data-bs-popper":"static"},className:qt(r,N,q&&"show",T&&`${N}-end`,C&&`${N}-${C}`,...F)})});oD.displayName="DropdownMenu";const x9=oD,sD=M.forwardRef(({as:n,bsPrefix:r,variant:i="primary",size:u,active:l=!1,disabled:d=!1,className:h,...v},y)=>{const C=bn(r,"btn"),[x,{tagName:R}]=cR({tagName:n,disabled:d,...v}),T=R;return b.jsx(T,{...x,...v,ref:y,disabled:d,className:qt(h,C,l&&"active",i&&`${C}-${i}`,u&&`${C}-${u}`,v.href&&d&&"disabled")})});sD.displayName="Button";const S9=sD,lD=M.forwardRef(({bsPrefix:n,split:r,className:i,childBsPrefix:u,as:l=S9,...d},h)=>{const v=bn(n,"dropdown-toggle"),y=M.useContext(B0);u!==void 0&&(d.bsPrefix=u);const[C]=Gj();return C.ref=ds(C.ref,aD(h,"DropdownToggle")),b.jsx(l,{className:qt(i,v,r&&`${v}-split`,(y==null?void 0:y.show)&&"show"),...C,...d})});lD.displayName="DropdownToggle";const E9=lD,uD=M.forwardRef((n,r)=>{const{bsPrefix:i,drop:u="down",show:l,className:d,align:h="start",onSelect:v,onToggle:y,focusFirstItemOnShow:C,as:x="div",navbar:R,autoClose:T=!0,...A}=V0(n,{show:"onToggle"}),N=M.useContext(rD),O=bn(i,"dropdown"),_=F0(),L=J=>T===!1?J==="click":T==="inside"?J!=="rootClose":T==="outside"?J!=="select":!0,V=gr((J,q)=>{var Re,he;!((Re=q.originalEvent)==null||(he=Re.target)==null)&&he.classList.contains("dropdown-toggle")&&q.source==="mousedown"||(q.originalEvent.currentTarget===document&&(q.source!=="keydown"||q.originalEvent.key==="Escape")&&(q.source="rootClose"),L(q.source)&&(y==null||y(J,q)))}),U=iD(h==="end",u,_),z=M.useMemo(()=>({align:h,drop:u,isRTL:_}),[h,u,_]),H={down:O,"down-centered":`${O}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return b.jsx(qj.Provider,{value:z,children:b.jsx(Dm,{placement:U,show:l,onSelect:v,onToggle:V,focusFirstItemOnShow:C,itemSelector:`.${O}-item:not(.disabled):not(:disabled)`,children:N?A.children:b.jsx(x,{...A,ref:r,className:qt(d,l&&"show",H[u])})})})});uD.displayName="Dropdown";const Lb=Object.assign(uD,{Toggle:E9,Menu:x9,Item:y9,ItemText:b9,Divider:m9,Header:g9});var Pb;function Q_(n){if((!Pb&&Pb!==0||n)&&ev){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),Pb=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return Pb}function w9(n){const r=M.useRef(n);return r.current=n,r}function SR(n){const r=w9(n);M.useEffect(()=>()=>r.current(),[])}function zE(n){n===void 0&&(n=Kp());try{var r=n.activeElement;return!r||!r.nodeName?null:r}catch{return n.body}}function R9(n=document){const r=n.defaultView;return Math.abs(r.innerWidth-n.documentElement.clientWidth)}const K_=tv("modal-open");class T9{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:u=!1}={}){this.handleContainerOverflow=i,this.isRTL=u,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return R9(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(r){}removeModalAttributes(r){}setContainerStyle(r){const i={overflow:"hidden"},u=this.isRTL?"paddingLeft":"paddingRight",l=this.getElement();r.style={overflow:l.style.overflow,[u]:l.style[u]},r.scrollBarWidth&&(i[u]=`${parseInt(Kl(l,u)||"0",10)+r.scrollBarWidth}px`),l.setAttribute(K_,""),Kl(l,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(K_),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 ER=T9,UE=(n,r)=>ev?n==null?(r||Kp()).body:(typeof n=="function"&&(n=n()),n&&"current"in n&&(n=n.current),n&&("nodeType"in n||n.getBoundingClientRect)?n:null):null;function Tw(n,r){const i=U0(),[u,l]=M.useState(()=>UE(n,i==null?void 0:i.document));if(!u){const d=UE(n);d&&l(d)}return M.useEffect(()=>{r&&u&&r(u)},[r,u]),M.useEffect(()=>{const d=UE(n);d!==u&&l(d)},[n,u]),u}function I9({in:n,onTransition:r}){const i=M.useRef(null),u=M.useRef(!0),l=gr(r);return b0(()=>{if(!i.current)return;let d=!1;return l({in:n,element:i.current,initial:u.current,isStale:()=>d}),()=>{d=!0}},[n,l]),b0(()=>(u.current=!1,()=>{u.current=!0}),[]),i}function N9({children:n,in:r,onExited:i,onEntered:u,transition:l}){const[d,h]=M.useState(!r);r&&d&&h(!1);const v=I9({in:!!r,onTransition:C=>{const x=()=>{C.isStale()||(C.in?u==null||u(C.element,C.initial):(h(!0),i==null||i(C.element)))};Promise.resolve(l(C)).then(x,R=>{throw C.in||h(!0),R})}}),y=ds(v,n.ref);return d&&!r?null:M.cloneElement(n,{ref:y})}function Iw(n,r,i){return n?b.jsx(n,Object.assign({},i)):r?b.jsx(N9,Object.assign({},i,{transition:r})):b.jsx(iR,Object.assign({},i))}function cD(n){return n.code==="Escape"||n.keyCode===27}const _9=["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 O9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}let HE;function A9(n){return HE||(HE=new ER({ownerDocument:n==null?void 0:n.document})),HE}function j9(n){const r=U0(),i=n||A9(r),u=M.useRef({dialog:null,backdrop:null});return Object.assign(u.current,{add:()=>i.add(u.current),remove:()=>i.remove(u.current),isTopModal:()=>i.isTopModal(u.current),setDialogRef:M.useCallback(l=>{u.current.dialog=l},[]),setBackdropRef:M.useCallback(l=>{u.current.backdrop=l},[])})}const fD=M.forwardRef((n,r)=>{let{show:i=!1,role:u="dialog",className:l,style:d,children:h,backdrop:v=!0,keyboard:y=!0,onBackdropClick:C,onEscapeKeyDown:x,transition:R,runTransition:T,backdropTransition:A,runBackdropTransition:N,autoFocus:O=!0,enforceFocus:_=!0,restoreFocus:L=!0,restoreFocusOptions:V,renderDialog:F,renderBackdrop:U=pt=>b.jsx("div",Object.assign({},pt)),manager:z,container:H,onShow:J,onHide:q=()=>{},onExit:Re,onExited:he,onExiting:ge,onEnter:fe,onEntering:Oe,onEntered:Te}=n,xe=O9(n,_9);const je=U0(),Le=Tw(H),ne=j9(z),_e=dR(),G=Ej(i),[Y,re]=M.useState(!i),ye=M.useRef(null);M.useImperativeHandle(r,()=>ne,[ne]),ev&&!G&&i&&(ye.current=zE(je==null?void 0:je.document)),i&&Y&&re(!1);const Se=gr(()=>{if(ne.add(),et.current=ql(document,"keydown",we),Ve.current=ql(document,"focus",()=>setTimeout(le),!0),J&&J(),O){var pt,Kt;const on=zE((pt=(Kt=ne.dialog)==null?void 0:Kt.ownerDocument)!=null?pt:je==null?void 0:je.document);ne.dialog&&on&&!xm(ne.dialog,on)&&(ye.current=on,ne.dialog.focus())}}),Ne=gr(()=>{if(ne.remove(),et.current==null||et.current(),Ve.current==null||Ve.current(),L){var pt;(pt=ye.current)==null||pt.focus==null||pt.focus(V),ye.current=null}});M.useEffect(()=>{!i||!Le||Se()},[i,Le,Se]),M.useEffect(()=>{Y&&Ne()},[Y,Ne]),SR(()=>{Ne()});const le=gr(()=>{if(!_||!_e()||!ne.isTopModal())return;const pt=zE(je==null?void 0:je.document);ne.dialog&&pt&&!xm(ne.dialog,pt)&&ne.dialog.focus()}),ve=gr(pt=>{pt.target===pt.currentTarget&&(C==null||C(pt),v===!0&&q())}),we=gr(pt=>{y&&cD(pt)&&ne.isTopModal()&&(x==null||x(pt),pt.defaultPrevented||q())}),Ve=M.useRef(),et=M.useRef(),tt=(...pt)=>{re(!0),he==null||he(...pt)};if(!Le)return null;const ft=Object.assign({role:u,ref:ne.setDialogRef,"aria-modal":u==="dialog"?!0:void 0},xe,{style:d,className:l,tabIndex:-1});let Ae=F?F(ft):b.jsx("div",Object.assign({},ft,{children:M.cloneElement(h,{role:"document"})}));Ae=Iw(R,T,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:Re,onExiting:ge,onExited:tt,onEnter:fe,onEntering:Oe,onEntered:Te,children:Ae});let It=null;return v&&(It=U({ref:ne.setBackdropRef,onClick:ve}),It=Iw(A,N,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:It})),b.jsx(b.Fragment,{children:Bf.createPortal(b.jsxs(b.Fragment,{children:[It,Ae]}),Le)})});fD.displayName="Modal";const D9=Object.assign(fD,{Manager:ER});function Nw(n,r){return n.classList?!!r&&n.classList.contains(r):(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+r+" ")!==-1}function k9(n,r){n.classList?n.classList.add(r):Nw(n,r)||(typeof n.className=="string"?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r))}function eO(n,r){return n.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function M9(n,r){n.classList?n.classList.remove(r):typeof n.className=="string"?n.className=eO(n.className,r):n.setAttribute("class",eO(n.className&&n.className.baseVal||"",r))}const kp={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class L9 extends ER{adjustAndStore(r,i,u){const l=i.style[r];i.dataset[r]=l,Kl(i,{[r]:`${parseFloat(Kl(i,r))+u}px`})}restore(r,i){const u=i.dataset[r];u!==void 0&&(delete i.dataset[r],Kl(i,{[r]:u}))}setContainerStyle(r){super.setContainerStyle(r);const i=this.getElement();if(k9(i,"modal-open"),!r.scrollBarWidth)return;const u=this.isRTL?"paddingLeft":"paddingRight",l=this.isRTL?"marginLeft":"marginRight";Jl(i,kp.FIXED_CONTENT).forEach(d=>this.adjustAndStore(u,d,r.scrollBarWidth)),Jl(i,kp.STICKY_CONTENT).forEach(d=>this.adjustAndStore(l,d,-r.scrollBarWidth)),Jl(i,kp.NAVBAR_TOGGLER).forEach(d=>this.adjustAndStore(l,d,r.scrollBarWidth))}removeContainerStyle(r){super.removeContainerStyle(r);const i=this.getElement();M9(i,"modal-open");const u=this.isRTL?"paddingLeft":"paddingRight",l=this.isRTL?"marginLeft":"marginRight";Jl(i,kp.FIXED_CONTENT).forEach(d=>this.restore(u,d)),Jl(i,kp.STICKY_CONTENT).forEach(d=>this.restore(l,d)),Jl(i,kp.NAVBAR_TOGGLER).forEach(d=>this.restore(l,d))}}let $E;function P9(n){return $E||($E=new L9(n)),$E}const dD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"modal-body"),b.jsx(i,{ref:l,className:qt(n,r),...u})));dD.displayName="ModalBody";const F9=dD,V9=M.createContext({onHide(){}}),pD=V9,vD=M.forwardRef(({bsPrefix:n,className:r,contentClassName:i,centered:u,size:l,fullscreen:d,children:h,scrollable:v,...y},C)=>{n=bn(n,"modal");const x=`${n}-dialog`,R=typeof d=="string"?`${n}-fullscreen-${d}`:`${n}-fullscreen`;return b.jsx("div",{...y,ref:C,className:qt(x,r,l&&`${n}-${l}`,u&&`${x}-centered`,v&&`${x}-scrollable`,d&&R),children:b.jsx("div",{className:qt(`${n}-content`,i),children:h})})});vD.displayName="ModalDialog";const hD=vD,mD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"modal-footer"),b.jsx(i,{ref:l,className:qt(n,r),...u})));mD.displayName="ModalFooter";const B9=mD,z9={"aria-label":_t.string,onClick:_t.func,variant:_t.oneOf(["white"])},wR=M.forwardRef(({className:n,variant:r,"aria-label":i="Close",...u},l)=>b.jsx("button",{ref:l,type:"button",className:qt("btn-close",r&&`btn-close-${r}`,n),"aria-label":i,...u}));wR.displayName="CloseButton";wR.propTypes=z9;const U9=wR,H9=M.forwardRef(({closeLabel:n="Close",closeVariant:r,closeButton:i=!1,onHide:u,children:l,...d},h)=>{const v=M.useContext(pD),y=gr(()=>{v==null||v.onHide(),u==null||u()});return b.jsxs("div",{ref:h,...d,children:[l,i&&b.jsx(U9,{"aria-label":n,variant:r,onClick:y})]})}),$9=H9,gD=M.forwardRef(({bsPrefix:n,className:r,closeLabel:i="Close",closeButton:u=!1,...l},d)=>(n=bn(n,"modal-header"),b.jsx($9,{ref:d,...l,className:qt(r,n),closeLabel:i,closeButton:u})));gD.displayName="ModalHeader";const G9=gD,W9=n=>M.forwardRef((r,i)=>b.jsx("div",{...r,ref:i,className:qt(r.className,n)})),X9=W9("h4"),yD=M.forwardRef(({className:n,bsPrefix:r,as:i=X9,...u},l)=>(r=bn(r,"modal-title"),b.jsx(i,{ref:l,className:qt(n,r),...u})));yD.displayName="ModalTitle";const Y9=yD;function Z9(n){return b.jsx(Hp,{...n,timeout:null})}function J9(n){return b.jsx(Hp,{...n,timeout:null})}const bD=M.forwardRef(({bsPrefix:n,className:r,style:i,dialogClassName:u,contentClassName:l,children:d,dialogAs:h=hD,"data-bs-theme":v,"aria-labelledby":y,"aria-describedby":C,"aria-label":x,show:R=!1,animation:T=!0,backdrop:A=!0,keyboard:N=!0,onEscapeKeyDown:O,onShow:_,onHide:L,container:V,autoFocus:F=!0,enforceFocus:U=!0,restoreFocus:z=!0,restoreFocusOptions:H,onEntered:J,onExit:q,onExiting:Re,onEnter:he,onEntering:ge,onExited:fe,backdropClassName:Oe,manager:Te,...xe},je)=>{const[Le,ne]=M.useState({}),[_e,G]=M.useState(!1),Y=M.useRef(!1),re=M.useRef(!1),ye=M.useRef(null),[Se,Ne]=y0(),le=ds(je,Ne),ve=gr(L),we=F0();n=bn(n,"modal");const Ve=M.useMemo(()=>({onHide:ve}),[ve]);function et(){return Te||P9({isRTL:we})}function tt(xt){if(!ev)return;const Pn=et().getScrollbarWidth()>0,ln=xt.scrollHeight>Kp(xt).documentElement.clientHeight;ne({paddingRight:Pn&&!ln?Q_():void 0,paddingLeft:!Pn&&ln?Q_():void 0})}const ft=gr(()=>{Se&&tt(Se.dialog)});SR(()=>{Sw(window,"resize",ft),ye.current==null||ye.current()});const Ae=()=>{Y.current=!0},It=xt=>{Y.current&&Se&&xt.target===Se.dialog&&(re.current=!0),Y.current=!1},pt=()=>{G(!0),ye.current=ej(Se.dialog,()=>{G(!1)})},Kt=xt=>{xt.target===xt.currentTarget&&pt()},on=xt=>{if(A==="static"){Kt(xt);return}if(re.current||xt.target!==xt.currentTarget){re.current=!1;return}L==null||L()},sn=xt=>{N?O==null||O(xt):(xt.preventDefault(),A==="static"&&pt())},_n=(xt,Pn)=>{xt&&tt(xt),he==null||he(xt,Pn)},Vt=xt=>{ye.current==null||ye.current(),q==null||q(xt)},Cn=(xt,Pn)=>{ge==null||ge(xt,Pn),sR(window,"resize",ft)},qn=xt=>{xt&&(xt.style.display=""),fe==null||fe(xt),Sw(window,"resize",ft)},Rr=M.useCallback(xt=>b.jsx("div",{...xt,className:qt(`${n}-backdrop`,Oe,!T&&"show")}),[T,Oe,n]),$n={...i,...Le};$n.display="block";const Tr=xt=>b.jsx("div",{role:"dialog",...xt,style:$n,className:qt(r,n,_e&&`${n}-static`,!T&&"show"),onClick:A?on:void 0,onMouseUp:It,"data-bs-theme":v,"aria-label":x,"aria-labelledby":y,"aria-describedby":C,children:b.jsx(h,{...xe,onMouseDown:Ae,className:u,contentClassName:l,children:d})});return b.jsx(pD.Provider,{value:Ve,children:b.jsx(D9,{show:R,ref:le,backdrop:A,container:V,keyboard:!0,autoFocus:F,enforceFocus:U,restoreFocus:z,restoreFocusOptions:H,onEscapeKeyDown:sn,onShow:_,onHide:L,onEnter:_n,onEntering:Cn,onEntered:J,onExit:Vt,onExiting:Re,onExited:qn,manager:et(),transition:T?Z9:void 0,backdropTransition:T?J9:void 0,renderBackdrop:Rr,renderDialog:Tr})})});bD.displayName="Modal";const Ln=Object.assign(bD,{Body:F9,Header:G9,Title:Y9,Footer:B9,Dialog:hD,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),q9=kr.forwardRef(({children:n,onClick:r},i)=>b.jsx("a",{className:"btn btn-secondary d-flex flex-column justify-content-center flex-grow-1",href:"",ref:i,onClick:u=>{u.preventDefault(),r(u)},children:b.jsx("span",{className:"dropdown-toggle",children:n})}));function Q9({requestId:n,grantNumber:r}){const{request:i,toggleActionsModal:u}=ri(n,r),{project:l}=Ji(r||i.grantNumber);if(!i||!l||i.error||l.error)return;const d=Nn.routes.request_action_path(n,"new"),h=i.allowedActions.Renewal?Array.isArray(i.allowedActions.Renewal)?[...i.allowedActions.Renewal]:[i.allowedActions.Renewal]:[];h.sort((C,x)=>C.opportunityId<x.opportunityId?-1:1);const v=[{id:"extension",action:`${d}?action_type=Extension`,isEnabled:"Extension"in i.allowedActions,button:"Request an Extension",enabled:i.usesCredits?b.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."}):b.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:b.jsxs("p",{children:["Your project is not currently eligible for an extension of its end date.",i.usesCredits?b.jsxs(b.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?b.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."]}):b.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:b.jsxs("p",{children:["Your project is not currently eligible for a supplement of additional"," ",i.usesCredits?"ACCESS Credits":"units","."]})},{id:"renewal",action:h.map(C=>[C.opportunityName,`${Nn.routes.renew_request_path(n)}?opportunity_id=${C.opportunityId}`,"post"]),isEnabled:"Renewal"in i.allowedActions,button:"Request a Renewal",enabled:b.jsxs("p",{children:["Your ",i.allocationType," project can be renewed! The requirements for renewing your project depend on the"," ",b.jsx("a",{href:Nn.routes.project_types_path(),target:"_blank",children:"new project type you select"}),"."]}),disabled:b.jsxs("p",{children:["Your project is not currently eligible for renewal.",i.usesCredits&&b.jsxs(b.Fragment,{children:[" ","Renewals are available starting 30 days before the project's current end date."]}),i.isMaximize&&b.jsxs(b.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",Nn.routes.how_to_path(),"get"],["Submit a Help Ticket","https://support.access-ci.org/open-a-ticket","get"]],isEnabled:!0,button:"Request Help",enabled:b.jsxs("p",{children:["Need to change something else about your project or expecting another option? Submit a help ticket that includes"," ",b.jsxs("em",{children:["grant number ",l.grantNumber]})," and a detailed description of the problem."]})}];v.sort((C,x)=>C.isEnabled<x.isEnabled?1:-1);const y=v.map(({id:C,action:x,isEnabled:R,button:T,enabled:A,disabled:N})=>b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-sm-4 mb-2 d-grid",children:Array.isArray(x)&&x.length?b.jsxs(Lb,{className:"d-flex flex-column",children:[b.jsx(Lb.Toggle,{as:q9,children:T}),b.jsx(Lb.Menu,{children:x.map(([O,_,L])=>b.jsx(Lb.Item,{href:_,onClick:V=>{L!=="get"&&(V.preventDefault(),V.target.dataset.method=L,$&&$.rails&&$.rails.handleMethod($(V.target)))},children:O},_))})]}):b.jsx("a",{className:`btn btn-secondary d-flex flex-column justify-content-center ${R?"":"disabled"}`,href:R?x:"",children:b.jsx("span",{children:T})})}),b.jsx("div",{className:"col-sm-8 mb-2",children:R?A:N})]},C));return b.jsxs(Ln,{size:"lg",show:i.showActionsModal,onHide:u,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Manage Your Project"})}),b.jsxs(Ln.Body,{children:[b.jsxs("p",{children:["Please select an action to manage your project"," ",b.jsxs("strong",{children:[l.grantNumber,": ",l.title]}),"."]}),y]})]})}function K9({requestId:n,grantNumber:r}){const{request:i,toggleActionsModal:u,toggleConfirmModal:l}=ri(n,r),{project:d}=Ji(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const h=i.usesCredits?"credits":"units",v=(1-MA(i))*100;return b.jsxs(Ln,{size:"lg",show:i.showConfirmModal,onHide:l,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Consider Requesting an Exchange"})}),b.jsx(Ln.Body,{children:b.jsxs("p",{children:[b.jsxs("strong",{children:[Math.round(v),"% of your allocation is unused."]})," ","Are you sure you want to request more ",h,"? You can exchange"," ",i.usesCredits?"credits for resources or ":""," one resource for another by changing the ",b.jsx("strong",{children:"balance"})," numbers in the table on the previous screen."]})}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:l,children:"Return to Exchange"}),b.jsxs("button",{type:"button",className:"btn btn-secondary",onClick:()=>{l(),u()},children:["Request More ",h]})]})})]})}function e4({requestId:n,grantNumber:r,actionId:i}){const{deleteAction:u,request:l,toggleDeleteModal:d}=ri(n,r);if(!l||l.error)return;const h=l.actions.find(T=>T.actionId==i);if(!h)return;const{deleteStatus:v,isRequest:y}=h,C=v==ea.pending,x=v==ea.error,R=()=>d(i);return b.jsxs(Ln,{show:h.showDeleteModal,onHide:R,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Confirm Deletion"})}),b.jsxs(Ln.Body,{children:[x&&b.jsxs(ma,{color:"danger",children:["Deletion of the ",y?"request":"action"," failed."]}),b.jsxs("p",{children:["Are you sure you want to delete"," ",!y&&b.jsxs(b.Fragment,{children:["action"," ",b.jsxs("strong",{children:[h.type,": ",Fp(h.date)]})," ","on"," "]}),"request ",b.jsx("strong",{children:eR(l)}),"? Deletions cannot be undone."]})]}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:R,disabled:C,children:"Cancel"}),b.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>u(i),disabled:C,children:C?"Deleting...":"Delete"})]})})]})}function CD({action:n,request:r,toggleDeleteModal:i}){const u=n.allowedOperations||[],l=[];u.includes("Edit")&&l.push(b.jsx(f0,{href:n.isRequest?Nn.routes.edit_request_path(r.requestId):Nn.routes.edit_request_action_path(r.requestId,n.actionId),icon:"pencil",title:"Edit action"},"edit")),u.includes("Delete")&&l.push(b.jsx(f0,{color:"danger",icon:"trash",onClick:()=>i(n.actionId),title:"Edit action"},"delete"));const d=`${n.type}: ${Fp(n.date)}`;return b.jsxs(b.Fragment,{children:[n.detailAvailable?b.jsx("a",{href:Nn.routes.request_action_path(r.requestId,n.actionId),children:d}):d,l]})}const t4="_grid_15z6r_1",n4="_important_15z6r_32",r4="_input_15z6r_36",a4="_edited_15z6r_40",i4="_disabled_15z6r_48",Vp={grid:t4,important:n4,input:r4,edited:a4,disabled:i4};function o4({column:n,row:r,style:i={}}){const u=n.format?n.format(r[n.key],r):r[n.key],l=["cell"];return n.class&&l.push(n.class),n.rowClass&&l.push(n.rowClass(r)),b.jsx("td",{className:l.join(" "),style:i,children:u})}const s4={text:o4};function Qf({columns:n,rows:r,classes:i,frozenColumns:u=0,minWidth:l,rowClasses:d=[],scrollBehavior:h="smooth",scrollRowIndex:v=0}){const y=M.useRef();M.useLayoutEffect(()=>{if(!y.current)return;const N=y.current.querySelector(`tbody tr:nth-child(${v+1})`);N&&N.scrollIntoView({behavior:h,block:"nearest",inline:"nearest"})},[v,h]);const C=[0];for(let N=0;N<u;N++)C[N+1]=C[N]+(n[N].width||100);const x=(N,O)=>N<u?{position:"sticky",left:`${C[N]}px`,minWidth:`${n[N].width||100}px`,width:`${n[N].width||100}px`,zIndex:O||1}:{},R=n.map((N,O)=>b.jsx("th",{className:N.headerClass||N.class||"",style:x(O,100),children:N.formatHeader?N.formatHeader(N.name,N):N.name},N.key)),T=r.map((N,O)=>{const _=n.map((L,V)=>{const F=s4[L.type||"text"];return b.jsx(F,{column:L,row:N,style:x(V)},L.key)});return b.jsx("tr",{className:d[O]||"",children:_},O)}),A={};return l&&(A.minWidth=l),b.jsx("div",{className:`${Vp.grid} ${i||""}`,ref:y,children:b.jsxs("table",{className:"table table-bordered",style:A,children:[b.jsx("thead",{children:b.jsx("tr",{children:R})}),b.jsx("tbody",{children:T})]})})}function Yp({status:n,title:r}){const i={Active:"primary",Approved:"primary",New:"secondary",Pending:"secondary","Under Review":"secondary"}[n]||"dark";return b.jsx("span",{className:`badge text-bg-${i} align-self-center`,title:r,children:n})}const l4=n=>b.jsx("span",{className:n<0?"text-danger":"",children:n===0?"":n.toLocaleString()});function u4({requestId:n,grantNumber:r}){const{request:i,toggleDeleteModal:u}=ri(n,r),{project:l,setRequest:d}=Ji(r||i.grantNumber);if(!i||!l)return;const h=l.requestsList;let v=0;for(;v<h.length&&h[v].requestId!==n;)v++;const y=h[v+1],C=h[v-1],x=(O,_)=>O?b.jsxs("button",{type:"button",className:"btn btn-light btn-sm",onClick:()=>d(O.requestId),children:[_=="prev"?b.jsx("i",{className:"bi bi-chevron-left"}):null,eR(O),_=="next"?b.jsx("i",{className:"bi bi-chevron-right"}):null]}):b.jsx("span",{}),R=new Set,T=[];for(let O of i.actions)for(let _ of O.resources)R.has(_.resourceId)||(R.add(_.resourceId),T.push(_));T.sort(d0);const A=[{key:"action",name:"Action Details",format:(O,_)=>b.jsx(CD,{action:_,request:i,toggleDeleteModal:u})},{key:"status",name:"Status",format:O=>b.jsx(Yp,{status:O})},...T.map(O=>({key:`resource${O.resourceId}`,name:O.name,icon:O.icon,class:"text-end",format:O.isBoolean?_=>_?tR(_):null:l4,formatHeader:(_,L)=>Uf(L,{userGuide:!1})}))],N=i.actions.map(O=>{const _={...O};for(let{resourceId:L}of T)_[`resource${L}`]=0;for(let{resourceId:L,approved:V,requested:F}of O.resources)_[`resource${L}`]=V||F||0;return _});return b.jsxs("div",{className:"history",children:[b.jsx(Qf,{columns:A,rows:N}),b.jsxs("div",{className:"buttons d-flex justify-content-between",children:[x(y,"prev"),x(C,"next")]})]})}function c4({requestId:n,grantNumber:r}){const{request:i,toggleDeleteModal:u}=ri(n,r);if(!i)return;const l=[{key:"type",name:"Action Details",format:(d,h)=>b.jsx(CD,{action:h,request:i,toggleDeleteModal:u})},{key:"status",name:"Status",format:d=>b.jsx(Yp,{status:d})}];if(i.actions&&i.actions.length)return b.jsx(Qf,{rows:i.actions,columns:l})}function am(...n){return n.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(...l){r.apply(this,l),i.apply(this,l)}},null)}const f4={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function d4(n,r){const i=`offset${n[0].toUpperCase()}${n.slice(1)}`,u=r[i],l=f4[n];return u+parseInt(Kl(r,l[0]),10)+parseInt(Kl(r,l[1]),10)}const p4={[dc]:"collapse",[m0]:"collapsing",[Zl]:"collapsing",[pc]:"collapse show"},v4=kr.forwardRef(({onEnter:n,onEntering:r,onEntered:i,onExit:u,onExiting:l,className:d,children:h,dimension:v="height",in:y=!1,timeout:C=300,mountOnEnter:x=!1,unmountOnExit:R=!1,appear:T=!1,getDimensionValue:A=d4,...N},O)=>{const _=typeof v=="function"?v():v,L=M.useMemo(()=>am(H=>{H.style[_]="0"},n),[_,n]),V=M.useMemo(()=>am(H=>{const J=`scroll${_[0].toUpperCase()}${_.slice(1)}`;H.style[_]=`${H[J]}px`},r),[_,r]),F=M.useMemo(()=>am(H=>{H.style[_]=null},i),[_,i]),U=M.useMemo(()=>am(H=>{H.style[_]=`${A(_,H)}px`,nj(H)},u),[u,A,_]),z=M.useMemo(()=>am(H=>{H.style[_]=null},l),[_,l]);return b.jsx(rj,{ref:O,addEndListener:tj,...N,"aria-expanded":N.role?y:null,onEnter:L,onEntering:V,onEntered:F,onExit:U,onExiting:z,childRef:h.ref,in:y,timeout:C,mountOnEnter:x,unmountOnExit:R,appear:T,children:(H,J)=>kr.cloneElement(h,{...J,className:qt(d,h.props.className,p4[H],_==="width"&&"collapse-horizontal")})})}),h4=v4;function xD(n,r){return Array.isArray(n)?n.includes(r):n===r}const SD=M.createContext({});SD.displayName="AccordionContext";const H0=SD,ED=M.forwardRef(({as:n="div",bsPrefix:r,className:i,children:u,eventKey:l,...d},h)=>{const{activeEventKey:v}=M.useContext(H0);return r=bn(r,"accordion-collapse"),b.jsx(h4,{ref:h,in:xD(v,l),...d,className:qt(i,r),children:b.jsx(n,{children:M.Children.only(u)})})});ED.displayName="AccordionCollapse";const wD=ED,RD=M.createContext({eventKey:""});RD.displayName="AccordionItemContext";const RR=RD,TD=M.forwardRef(({as:n="div",bsPrefix:r,className:i,onEnter:u,onEntering:l,onEntered:d,onExit:h,onExiting:v,onExited:y,...C},x)=>{r=bn(r,"accordion-body");const{eventKey:R}=M.useContext(RR);return b.jsx(wD,{eventKey:R,onEnter:u,onEntering:l,onEntered:d,onExit:h,onExiting:v,onExited:y,children:b.jsx(n,{ref:x,...C,className:qt(i,r)})})});TD.displayName="AccordionBody";const m4=TD;function g4(n,r){const{activeEventKey:i,onSelect:u,alwaysOpen:l}=M.useContext(H0);return d=>{let h=n===i?null:n;l&&(Array.isArray(i)?i.includes(n)?h=i.filter(v=>v!==n):h=[...i,n]:h=[n]),u==null||u(h,d),r==null||r(d)}}const ID=M.forwardRef(({as:n="button",bsPrefix:r,className:i,onClick:u,...l},d)=>{r=bn(r,"accordion-button");const{eventKey:h}=M.useContext(RR),v=g4(h,u),{activeEventKey:y}=M.useContext(H0);return n==="button"&&(l.type="button"),b.jsx(n,{ref:d,onClick:v,...l,"aria-expanded":Array.isArray(y)?y.includes(h):h===y,className:qt(i,r,!xD(y,h)&&"collapsed")})});ID.displayName="AccordionButton";const ND=ID,_D=M.forwardRef(({as:n="h2",bsPrefix:r,className:i,children:u,onClick:l,...d},h)=>(r=bn(r,"accordion-header"),b.jsx(n,{ref:h,...d,className:qt(i,r),children:b.jsx(ND,{onClick:l,children:u})})));_D.displayName="AccordionHeader";const y4=_D,OD=M.forwardRef(({as:n="div",bsPrefix:r,className:i,eventKey:u,...l},d)=>{r=bn(r,"accordion-item");const h=M.useMemo(()=>({eventKey:u}),[u]);return b.jsx(RR.Provider,{value:h,children:b.jsx(n,{ref:d,...l,className:qt(i,r)})})});OD.displayName="AccordionItem";const b4=OD,AD=M.forwardRef((n,r)=>{const{as:i="div",activeKey:u,bsPrefix:l,className:d,onSelect:h,flush:v,alwaysOpen:y,...C}=V0(n,{activeKey:"onSelect"}),x=bn(l,"accordion"),R=M.useMemo(()=>({activeEventKey:u,onSelect:h,alwaysOpen:y}),[u,h,y]);return b.jsx(H0.Provider,{value:R,children:b.jsx(i,{ref:r,...C,className:qt(d,x,v&&`${x}-flush`)})})});AD.displayName="Accordion";const os=Object.assign(AD,{Button:ND,Collapse:wD,Item:b4,Header:y4,Body:m4}),_w=2**31-1;function jD(n,r,i){const u=i-Date.now();n.current=u<=_w?setTimeout(r,u):setTimeout(()=>jD(n,r,i),_w)}function C4(){const n=dR(),r=M.useRef();return SR(()=>clearTimeout(r.current)),M.useMemo(()=>{const i=()=>clearTimeout(r.current);function u(l,d=0){n()&&(i(),d<=_w?r.current=setTimeout(l,d):jD(r,l,Date.now()+d))}return{set:u,clear:i,handleRef:r}},[])}const x4=()=>{};function S4(n,r,{disabled:i,clickTrigger:u}={}){const l=r||x4;zj(n,l,{disabled:i,clickTrigger:u});const d=gr(h=>{cD(h)&&l(h)});M.useEffect(()=>{if(i||n==null)return;const h=Kp(Qb(n));let v=(h.defaultView||window).event;const y=ql(h,"keyup",C=>{if(C===v){v=void 0;return}d(C)});return()=>{y()}},[n,i,d])}const DD=M.forwardRef((n,r)=>{const{flip:i,offset:u,placement:l,containerPadding:d,popperConfig:h={},transition:v,runTransition:y}=n,[C,x]=y0(),[R,T]=y0(),A=ds(x,r),N=Tw(n.container),O=Tw(n.target),[_,L]=M.useState(!n.show),V=Vj(O,C,Uj({placement:l,enableEvents:!!n.show,containerPadding:d||5,flip:i,offset:u,arrowElement:R,popperConfig:h}));n.show&&_&&L(!1);const F=(...ge)=>{L(!0),n.onExited&&n.onExited(...ge)},U=n.show||!_;if(S4(C,n.onHide,{disabled:!n.rootClose||n.rootCloseDisabled,clickTrigger:n.rootCloseEvent}),!U)return null;const{onExit:z,onExiting:H,onEnter:J,onEntering:q,onEntered:Re}=n;let he=n.children(Object.assign({},V.attributes.popper,{style:V.styles.popper,ref:A}),{popper:V,placement:l,show:!!n.show,arrowProps:Object.assign({},V.attributes.arrow,{style:V.styles.arrow,ref:T})});return he=Iw(v,y,{in:!!n.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:he,onExit:z,onExiting:H,onExited:F,onEnter:J,onEntering:q,onEntered:Re}),N?Bf.createPortal(he,N):null});DD.displayName="Overlay";const E4=DD,kD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"popover-header"),b.jsx(i,{ref:l,className:qt(n,r),...u})));kD.displayName="PopoverHeader";const w4=kD,MD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"popover-body"),b.jsx(i,{ref:l,className:qt(n,r),...u})));MD.displayName="PopoverBody";const LD=MD;function PD(n,r){let i=n;return n==="left"?i=r?"end":"start":n==="right"&&(i=r?"start":"end"),i}function FD(n="absolute"){return{position:n,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const R4=M.forwardRef(({bsPrefix:n,placement:r="right",className:i,style:u,children:l,body:d,arrowProps:h,hasDoneInitialMeasure:v,popper:y,show:C,...x},R)=>{const T=bn(n,"popover"),A=F0(),[N]=(r==null?void 0:r.split("-"))||[],O=PD(N,A);let _=u;return C&&!v&&(_={...u,...FD(y==null?void 0:y.strategy)}),b.jsxs("div",{ref:R,role:"tooltip",style:_,"x-placement":N,className:qt(i,T,N&&`bs-popover-${O}`),...x,children:[b.jsx("div",{className:"popover-arrow",...h}),d?b.jsx(LD,{children:l}):l]})}),T4=Object.assign(R4,{Header:w4,Body:LD,POPPER_OFFSET:[0,8]}),VD=M.forwardRef(({bsPrefix:n,placement:r="right",className:i,style:u,children:l,arrowProps:d,hasDoneInitialMeasure:h,popper:v,show:y,...C},x)=>{n=bn(n,"tooltip");const R=F0(),[T]=(r==null?void 0:r.split("-"))||[],A=PD(T,R);let N=u;return y&&!h&&(N={...u,...FD(v==null?void 0:v.strategy)}),b.jsxs("div",{ref:x,style:N,role:"tooltip","x-placement":T,className:qt(i,n,`bs-tooltip-${A}`),...C,children:[b.jsx("div",{className:"tooltip-arrow",...d}),b.jsx("div",{className:`${n}-inner`,children:l})]})});VD.displayName="Tooltip";const TR=Object.assign(VD,{TOOLTIP_OFFSET:[0,6]});function I4(n){const r=M.useRef(null),i=bn(void 0,"popover"),u=bn(void 0,"tooltip"),l=M.useMemo(()=>({name:"offset",options:{offset:()=>{if(n)return n;if(r.current){if(Nw(r.current,i))return T4.POPPER_OFFSET;if(Nw(r.current,u))return TR.TOOLTIP_OFFSET}return[0,0]}}}),[n,i,u]);return[r,[l]]}function N4(n,r){const{ref:i}=n,{ref:u}=r;n.ref=i.__wrapped||(i.__wrapped=l=>i(g0(l))),r.ref=u.__wrapped||(u.__wrapped=l=>u(g0(l)))}const BD=M.forwardRef(({children:n,transition:r=Hp,popperConfig:i={},rootClose:u=!1,placement:l="top",show:d=!1,...h},v)=>{const y=M.useRef({}),[C,x]=M.useState(null),[R,T]=I4(h.offset),A=ds(v,R),N=r===!0?Hp:r||void 0,O=gr(_=>{x(_),i==null||i.onFirstUpdate==null||i.onFirstUpdate(_)});return b0(()=>{C&&h.target&&(y.current.scheduleUpdate==null||y.current.scheduleUpdate())},[C,h.target]),M.useEffect(()=>{d||x(null)},[d]),b.jsx(E4,{...h,ref:A,popperConfig:{...i,modifiers:T.concat(i.modifiers||[]),onFirstUpdate:O},transition:N,rootClose:u,placement:l,show:d,children:(_,{arrowProps:L,popper:V,show:F})=>{var U,z;N4(_,L);const H=V==null?void 0:V.placement,J=Object.assign(y.current,{state:V==null?void 0:V.state,scheduleUpdate:V==null?void 0:V.update,placement:H,outOfBoundaries:(V==null||(U=V.state)==null||(z=U.modifiersData.hide)==null?void 0:z.isReferenceHidden)||!1,strategy:i.strategy}),q=!!C;return typeof n=="function"?n({..._,placement:H,show:F,...!r&&F&&{className:"show"},popper:J,arrowProps:L,hasDoneInitialMeasure:q}):M.cloneElement(n,{..._,placement:H,arrowProps:L,popper:J,hasDoneInitialMeasure:q,className:qt(n.props.className,!r&&F&&"show"),style:{...n.props.style,..._.style}})}})});BD.displayName="Overlay";const zD=BD;var _4={};function O4(n){return n&&typeof n=="object"?n:{show:n,hide:n}}function tO(n,r,i){const[u]=r,l=u.currentTarget,d=u.relatedTarget||u.nativeEvent[i];(!d||d!==l)&&!xm(l,d)&&n(...r)}_t.oneOf(["click","hover","focus"]);const A4=({trigger:n=["hover","focus"],overlay:r,children:i,popperConfig:u={},show:l,defaultShow:d=!1,onToggle:h,delay:v,placement:y,flip:C=y&&y.indexOf("auto")!==-1,...x})=>{const R=M.useRef(null),T=ds(R,i.ref),A=C4(),N=M.useRef(""),[O,_]=dj(l,d,h),L=O4(v),{onFocus:V,onBlur:F,onClick:U}=typeof i!="function"?M.Children.only(i).props:{},z=xe=>{T(g0(xe))},H=M.useCallback(()=>{if(A.clear(),N.current="show",!L.show){_(!0);return}A.set(()=>{N.current==="show"&&_(!0)},L.show)},[L.show,_,A]),J=M.useCallback(()=>{if(A.clear(),N.current="hide",!L.hide){_(!1);return}A.set(()=>{N.current==="hide"&&_(!1)},L.hide)},[L.hide,_,A]),q=M.useCallback((...xe)=>{H(),V==null||V(...xe)},[H,V]),Re=M.useCallback((...xe)=>{J(),F==null||F(...xe)},[J,F]),he=M.useCallback((...xe)=>{_(!O),U==null||U(...xe)},[U,_,O]),ge=M.useCallback((...xe)=>{tO(H,xe,"fromElement")},[H]),fe=M.useCallback((...xe)=>{tO(J,xe,"toElement")},[J]),Oe=n==null?[]:[].concat(n),Te={ref:z};return Oe.indexOf("click")!==-1&&(Te.onClick=he),Oe.indexOf("focus")!==-1&&(Te.onFocus=q,Te.onBlur=Re),Oe.indexOf("hover")!==-1&&(_4.NODE_ENV!=="production"&&CR(Oe.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.'),Te.onMouseOver=ge,Te.onMouseOut=fe),b.jsxs(b.Fragment,{children:[typeof i=="function"?i(Te):M.cloneElement(i,Te),b.jsx(zD,{...x,show:O,onHide:J,flip:C,placement:y,popperConfig:u,target:R.current,children:r})]})},UD=A4;function j4({requestId:n,grantNumber:r}){const{request:i}=ri(n,r),{project:u}=Ji(r||i.grantNumber),{setTab:l}=Ji(r||i.grantNumber);if(!i||!u)return;let d;const h={};for(let T of u.users||[])for(let A of T.resourceIds)h[A]=h[A]||0,h[A]+=1;const v=(i.resources||[]).filter(T=>T.isCredit?(d=T,!1):T.allocated>0).map((T,A)=>({...T,userCount:h[T.resourceId]||0,color:vw[A%vw.length]})),y=d?d.allocated:0,C="Exchange"in i.allowedActions,x=i.exchangeActionId!==null,R=[{key:"name",name:"Resource",format:(T,A)=>Uf(A)},{key:"isActive",name:"Status",format:T=>b.jsx(Yp,{status:T?"Active":"Inactive"})},{key:"used",name:"Balance",class:"position-relative",format:(T,A)=>{if(A.isBoolean)return tR(A.allocated);const N=A.allocated-T,O=Math.max(N,0)*100/A.allocated;return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:`usage bg-${A.color}`,style:{width:`${Math.min(O,100)}%`}}),ni(N,{abbreviate:!0})," of"," ",ni(A.allocated,{abbreviate:!0})," ",A.unit," ","remaining (",Math.round(O),"%)"]})}},{key:"endDate",name:"End Date",format:T=>Fp(T)}];return u.isManager&&R.push({key:"userCount",name:"Users",class:"text-end",format:ni}),u.currentUser&&R.push({key:"resourceUsername",name:"My Username",format:(T,A)=>{const N=u.currentUser.resourceUsernames[A.resourceId];if(N)return N;if(u.currentUser.resourceAccountPendingIds.includes(A.resourceId))return b.jsx(Yp,{status:"Pending",title:"Creation of your account by the resource provider is pending."});if(u.currentUser.resourceIds.includes(A.resourceId)||!A.isActive)return b.jsx(b.Fragment,{children:"—"});if(u.isManager)return b.jsx("a",{href:"#",onClick:_=>{_.preventDefault(),l("users")},children:"Grant access"});const O=b.jsxs(TR,{children:["Please contact ",nR(u)," to request access to this resource."]});return b.jsx(UD,{overlay:O,children:b.jsx("a",{href:"#",onClick:_=>{_.preventDefault()},children:"Request access"})})}}),b.jsxs("div",{className:"overview",children:[C&&!x&&y>Nn.creditAlertThreshold?b.jsxs("button",{onClick:()=>l("resources"),className:"alert alert-info d-flex justify-content-between align-items-center w-100",children:[b.jsxs("span",{children:[b.jsxs("span",{className:"fs-3",children:[mc(Nn.resourceTypeIcons[d.icon])," ",ni(y)]})," ",d.unit," available"]}),b.jsxs("span",{className:"align-middle d-flex align-items-center",children:["Exchange credits for resources!"," ",b.jsx("span",{className:"fs-3",children:mc("chevron-right")})]})]}):null,v.length?b.jsx(Qf,{columns:R,rows:v}):null]})}const D4=[{key:"role",name:"Role",format:n=>b.jsxs(b.Fragment,{children:[mc(Nn.roleIcons[n])," ",n]})},{key:"users",name:"Users",format:n=>{const r=n.slice(0,3);return n.length>4&&(r[2]=`${ni(n.length-3)} others`),r.map((i,u)=>{const l=r.length-u;return`${i}${l>2?",":l==2&&r.length>1?" and":""}`}).join(" ")}}],k4=({requestId:n,grantNumber:r})=>{const{project:i}=Ji(r);if(!i)return;const u=P0.map(({role:l,name:d})=>({role:d,users:(i.users||[]).filter(h=>h.role===l).map(h=>`${h.firstName} ${h.lastName}`)})).filter(l=>l.users.length>0);return u.length?b.jsx(Qf,{rows:u,columns:D4}):null};function M4({requestId:n,grantNumber:r}){const{request:i}=ri(n,r),{project:u,username:l}=Ji(r||i.grantNumber);if(!(!i||!u||i.error||u.error)&&i)return b.jsxs("div",{className:"overview",children:[b.jsx(j4,{requestId:n,grantNumber:r}),u.isManager?b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-lg-6",children:b.jsx(k4,{requestId:n,grantNumber:r})}),b.jsx("div",{className:"col-lg-6",children:b.jsx(c4,{requestId:n})})]}):null]})}function Yf(n){"@babel/helpers - typeof";return Yf=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},Yf(n)}function L4(n,r){if(Yf(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var u=i.call(n,r||"default");if(Yf(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function HD(n){var r=L4(n,"string");return Yf(r)=="symbol"?r:String(r)}function Lp(n,r,i){return r=HD(r),r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n}function nO(n,r){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);r&&(u=u.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,u)}return i}function yt(n){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?nO(Object(i),!0).forEach(function(u){Lp(n,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):nO(Object(i)).forEach(function(u){Object.defineProperty(n,u,Object.getOwnPropertyDescriptor(i,u))})}return n}function P4(n){if(Array.isArray(n))return n}function F4(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var u,l,d,h,v=[],y=!0,C=!1;try{if(d=(i=i.call(n)).next,r===0){if(Object(i)!==i)return;y=!1}else for(;!(y=(u=d.call(i)).done)&&(v.push(u.value),v.length!==r);y=!0);}catch(x){C=!0,l=x}finally{try{if(!y&&i.return!=null&&(h=i.return(),Object(h)!==h))return}finally{if(C)throw l}}return v}}function Ow(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,u=new Array(r);i<r;i++)u[i]=n[i];return u}function $D(n,r){if(n){if(typeof n=="string")return Ow(n,r);var i=Object.prototype.toString.call(n).slice(8,-1);if(i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set")return Array.from(n);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Ow(n,r)}}function V4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
294
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ta(n,r){return P4(n)||F4(n,r)||$D(n,r)||V4()}function nl(n,r){if(n==null)return{};var i=
|
|
295
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
296
|
-
`+u+"\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 h=J4(l);try{h.insertRule(u,h.cssRules.length)}catch(v){Fb.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(u)&&console.error('There was a problem inserting the following rule: "'+u+'"',v)}}else l.appendChild(document.createTextNode(u));this.ctr++},r.flush=function(){this.tags.forEach(function(u){return u.parentNode&&u.parentNode.removeChild(u)}),this.tags=[],this.ctr=0,Fb.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},n}(),Va="-ms-",S0="-moz-",gn="-webkit-",NR="comm",_R="rule",OR="decl",K4="@import",XD="@keyframes",eW="@layer",tW=Math.abs,$0=String.fromCharCode,nW=Object.assign;function rW(n,r){return ha(n,0)^45?(((r<<2^ha(n,0))<<2^ha(n,1))<<2^ha(n,2))<<2^ha(n,3):0}function YD(n){return n.trim()}function aW(n,r){return(n=r.exec(n))?n[0]:n}function yn(n,r,i){return n.replace(r,i)}function Aw(n,r){return n.indexOf(r)}function ha(n,r){return n.charCodeAt(r)|0}function Sm(n,r,i){return n.slice(r,i)}function Qs(n){return n.length}function AR(n){return n.length}function Vb(n,r){return r.push(n),n}function iW(n,r){return n.map(r).join("")}var G0=1,Zp=1,ZD=0,ji=0,Dr=0,nv="";function W0(n,r,i,u,l,d,h){return{value:n,root:r,parent:i,type:u,props:l,children:d,line:G0,column:Zp,length:h,return:""}}function im(n,r){return nW(W0("",null,null,"",null,null,0),n,{length:-n.length},r)}function oW(){return Dr}function sW(){return Dr=ji>0?ha(nv,--ji):0,Zp--,Dr===10&&(Zp=1,G0--),Dr}function Xi(){return Dr=ji<ZD?ha(nv,ji++):0,Zp++,Dr===10&&(Zp=1,G0++),Dr}function tl(){return ha(nv,ji)}function Kb(){return ji}function km(n,r){return Sm(nv,n,r)}function Em(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function JD(n){return G0=Zp=1,ZD=Qs(nv=n),ji=0,[]}function qD(n){return nv="",n}function e0(n){return YD(km(ji-1,jw(n===91?n+2:n===40?n+1:n)))}function lW(n){for(;(Dr=tl())&&Dr<33;)Xi();return Em(n)>2||Em(Dr)>3?"":" "}function uW(n,r){for(;--r&&Xi()&&!(Dr<48||Dr>102||Dr>57&&Dr<65||Dr>70&&Dr<97););return km(n,Kb()+(r<6&&tl()==32&&Xi()==32))}function jw(n){for(;Xi();)switch(Dr){case n:return ji;case 34:case 39:n!==34&&n!==39&&jw(Dr);break;case 40:n===41&&jw(n);break;case 92:Xi();break}return ji}function cW(n,r){for(;Xi()&&n+Dr!==57;)if(n+Dr===84&&tl()===47)break;return"/*"+km(r,ji-1)+"*"+$0(n===47?n:Xi())}function fW(n){for(;!Em(tl());)Xi();return km(n,ji)}function dW(n){return qD(t0("",null,null,null,[""],n=JD(n),0,[0],n))}function t0(n,r,i,u,l,d,h,v,y){for(var C=0,x=0,R=h,T=0,A=0,N=0,O=1,_=1,L=1,V=0,F="",U=l,z=d,H=u,J=F;_;)switch(N=V,V=Xi()){case 40:if(N!=108&&ha(J,R-1)==58){Aw(J+=yn(e0(V),"&","&\f"),"&\f")!=-1&&(L=-1);break}case 34:case 39:case 91:J+=e0(V);break;case 9:case 10:case 13:case 32:J+=lW(N);break;case 92:J+=uW(Kb()-1,7);continue;case 47:switch(tl()){case 42:case 47:Vb(pW(cW(Xi(),Kb()),r,i),y);break;default:J+="/"}break;case 123*O:v[C++]=Qs(J)*L;case 125*O:case 59:case 0:switch(V){case 0:case 125:_=0;case 59+x:L==-1&&(J=yn(J,/\f/g,"")),A>0&&Qs(J)-R&&Vb(A>32?iO(J+";",u,i,R-1):iO(yn(J," ","")+";",u,i,R-2),y);break;case 59:J+=";";default:if(Vb(H=aO(J,r,i,C,x,l,v,F,U=[],z=[],R),d),V===123)if(x===0)t0(J,r,H,H,U,d,R,v,z);else switch(T===99&&ha(J,3)===110?100:T){case 100:case 108:case 109:case 115:t0(n,H,H,u&&Vb(aO(n,H,H,0,0,l,v,F,l,U=[],R),z),l,z,R,v,u?U:z);break;default:t0(J,H,H,H,[""],z,0,v,z)}}C=x=A=0,O=L=1,F=J="",R=h;break;case 58:R=1+Qs(J),A=N;default:if(O<1){if(V==123)--O;else if(V==125&&O++==0&&sW()==125)continue}switch(J+=$0(V),V*O){case 38:L=x>0?1:(J+="\f",-1);break;case 44:v[C++]=(Qs(J)-1)*L,L=1;break;case 64:tl()===45&&(J+=e0(Xi())),T=tl(),x=R=Qs(F=J+=fW(Kb())),V++;break;case 45:N===45&&Qs(J)==2&&(O=0)}}return d}function aO(n,r,i,u,l,d,h,v,y,C,x){for(var R=l-1,T=l===0?d:[""],A=AR(T),N=0,O=0,_=0;N<u;++N)for(var L=0,V=Sm(n,R+1,R=tW(O=h[N])),F=n;L<A;++L)(F=YD(O>0?T[L]+" "+V:yn(V,/&\f/g,T[L])))&&(y[_++]=F);return W0(n,r,i,l===0?_R:v,y,C,x)}function pW(n,r,i){return W0(n,r,i,NR,$0(oW()),Sm(n,2,-2),0)}function iO(n,r,i,u){return W0(n,r,i,OR,Sm(n,0,u),Sm(n,u+1,-1),u)}function Bp(n,r){for(var i="",u=AR(n),l=0;l<u;l++)i+=r(n[l],l,n,r)||"";return i}function vW(n,r,i,u){switch(n.type){case eW:if(n.children.length)break;case K4:case OR:return n.return=n.return||n.value;case NR:return"";case XD:return n.return=n.value+"{"+Bp(n.children,u)+"}";case _R:n.value=n.props.join(",")}return Qs(i=Bp(n.children,u))?n.return=n.value+"{"+i+"}":""}function hW(n){var r=AR(n);return function(i,u,l,d){for(var h="",v=0;v<r;v++)h+=n[v](i,u,l,d)||"";return h}}function mW(n){return function(r){r.root||(r=r.return)&&n(r)}}function gW(n){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=n(i)),r[i]}}var om={},yW=function(r,i,u){for(var l=0,d=0;l=d,d=tl(),l===38&&d===12&&(i[u]=1),!Em(d);)Xi();return km(r,ji)},bW=function(r,i){var u=-1,l=44;do switch(Em(l)){case 0:l===38&&tl()===12&&(i[u]=1),r[u]+=yW(ji-1,i,u);break;case 2:r[u]+=e0(l);break;case 4:if(l===44){r[++u]=tl()===58?"&\f":"",i[u]=r[u].length;break}default:r[u]+=$0(l)}while(l=Xi());return r},CW=function(r,i){return qD(bW(JD(r),i))},oO=new WeakMap,xW=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var i=r.value,u=r.parent,l=r.column===u.column&&r.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(r.props.length===1&&i.charCodeAt(0)!==58&&!oO.get(u))&&!l){oO.set(r,!0);for(var d=[],h=CW(i,d),v=u.props,y=0,C=0;y<h.length;y++)for(var x=0;x<v.length;x++,C++)r.props[C]=d[y]?h[y].replace(/&\f/g,v[x]):v[x]+" "+h[y]}}},SW=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}},EW="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",wW=function(r){return r.type==="comm"&&r.children.indexOf(EW)>-1},RW=function(r){return function(i,u,l){if(!(i.type!=="rule"||r.compat)){var d=i.value.match(/(:first|:nth|:nth-last)-child/g);if(d){for(var h=!!i.parent,v=h?i.parent.children:l,y=v.length-1;y>=0;y--){var C=v[y];if(C.line<i.line)break;if(C.column<i.column){if(wW(C))return;break}}d.forEach(function(x){console.error('The pseudo class "'+x+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+x.split("-child")[0]+'-of-type".')})}}}},QD=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},TW=function(r,i){for(var u=r-1;u>=0;u--)if(!QD(i[u]))return!0;return!1},sO=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},IW=function(r,i,u){QD(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."),sO(r)):TW(i,u)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),sO(r)))};function KD(n,r){switch(rW(n,r)){case 5103:return gn+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gn+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return gn+n+S0+n+Va+n+n;case 6828:case 4268:return gn+n+Va+n+n;case 6165:return gn+n+Va+"flex-"+n+n;case 5187:return gn+n+yn(n,/(\w+).+(:[^]+)/,gn+"box-$1$2"+Va+"flex-$1$2")+n;case 5443:return gn+n+Va+"flex-item-"+yn(n,/flex-|-self/,"")+n;case 4675:return gn+n+Va+"flex-line-pack"+yn(n,/align-content|flex-|-self/,"")+n;case 5548:return gn+n+Va+yn(n,"shrink","negative")+n;case 5292:return gn+n+Va+yn(n,"basis","preferred-size")+n;case 6060:return gn+"box-"+yn(n,"-grow","")+gn+n+Va+yn(n,"grow","positive")+n;case 4554:return gn+yn(n,/([^-])(transform)/g,"$1"+gn+"$2")+n;case 6187:return yn(yn(yn(n,/(zoom-|grab)/,gn+"$1"),/(image-set)/,gn+"$1"),n,"")+n;case 5495:case 3959:return yn(n,/(image-set\([^]*)/,gn+"$1$`$1");case 4968:return yn(yn(n,/(.+:)(flex-)?(.*)/,gn+"box-pack:$3"+Va+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gn+n+n;case 4095:case 3583:case 4068:case 2532:return yn(n,/(.+)-inline(.+)/,gn+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qs(n)-1-r>6)switch(ha(n,r+1)){case 109:if(ha(n,r+4)!==45)break;case 102:return yn(n,/(.+:)(.+)-([^]+)/,"$1"+gn+"$2-$3$1"+S0+(ha(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~Aw(n,"stretch")?KD(yn(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(ha(n,r+1)!==115)break;case 6444:switch(ha(n,Qs(n)-3-(~Aw(n,"!important")&&10))){case 107:return yn(n,":",":"+gn)+n;case 101:return yn(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gn+(ha(n,14)===45?"inline-":"")+"box$3$1"+gn+"$2$3$1"+Va+"$2box$3")+n}break;case 5936:switch(ha(n,r+11)){case 114:return gn+n+Va+yn(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return gn+n+Va+yn(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return gn+n+Va+yn(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return gn+n+Va+n+n}return n}var NW=function(r,i,u,l){if(r.length>-1&&!r.return)switch(r.type){case OR:r.return=KD(r.value,r.length);break;case XD:return Bp([im(r,{value:yn(r.value,"@","@"+gn)})],l);case _R:if(r.length)return iW(r.props,function(d){switch(aW(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bp([im(r,{props:[yn(d,/:(read-\w+)/,":"+S0+"$1")]})],l);case"::placeholder":return Bp([im(r,{props:[yn(d,/:(plac\w+)/,":"+gn+"input-$1")]}),im(r,{props:[yn(d,/:(plac\w+)/,":"+S0+"$1")]}),im(r,{props:[yn(d,/:(plac\w+)/,Va+"input-$1")]})],l)}return""})}},_W=[NW],OW=function(r){var i=r.key;if(om.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.
|
|
297
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(i==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(O){var _=O.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var l=r.stylisPlugins||_W;if(
|
|
293
|
+
*/(function(n){(function(){var r={}.hasOwnProperty;function i(){for(var d="",h=0;h<arguments.length;h++){var v=arguments[h];v&&(d=l(d,u(v)))}return d}function u(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 h="";for(var v in d)r.call(d,v)&&d[v]&&(h=l(h,v));return h}function l(d,h){return h?d?d+" "+h:d+h:d}n.exports?(i.default=i,n.exports=i):window.classNames=i})()})(qA);var Y$=qA.exports;const qt=qp(Y$);function iR(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function v0(n,r){return v0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,l){return u.__proto__=l,u},v0(n,r)}function Z$(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,v0(n,r)}const N_={disabled:!1};var QA={},J$=QA.NODE_ENV!=="production"?_t.oneOfType([_t.number,_t.shape({enter:_t.number,exit:_t.number,appear:_t.number}).isRequired]):null;QA.NODE_ENV!=="production"&&_t.oneOfType([_t.string,_t.shape({enter:_t.string,exit:_t.string,active:_t.string}),_t.shape({enter:_t.string,enterDone:_t.string,enterActive:_t.string,exit:_t.string,exitDone:_t.string,exitActive:_t.string})]);const KA=kr.createContext(null);var q$=function(r){return r.scrollTop},Q$={},dm="unmounted",dc="exited",Zl="entering",pc="entered",h0="exiting",au=function(n){Z$(r,n);function r(u,l){var d;d=n.call(this,u,l)||this;var h=l,v=h&&!h.isMounting?u.enter:u.appear,y;return d.appearStatus=null,u.in?v?(y=dc,d.appearStatus=Zl):y=pc:u.unmountOnExit||u.mountOnEnter?y=dm:y=dc,d.state={status:y},d.nextCallback=null,d}r.getDerivedStateFromProps=function(l,d){var h=l.in;return h&&d.status===dm?{status:dc}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(l){var d=null;if(l!==this.props){var h=this.state.status;this.props.in?h!==Zl&&h!==pc&&(d=Zl):(h===Zl||h===pc)&&(d=h0)}this.updateStatus(!1,d)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var l=this.props.timeout,d,h,v;return d=h=v=l,l!=null&&typeof l!="number"&&(d=l.exit,h=l.enter,v=l.appear!==void 0?l.appear:h),{exit:d,enter:h,appear:v}},i.updateStatus=function(l,d){if(l===void 0&&(l=!1),d!==null)if(this.cancelNextCallback(),d===Zl){if(this.props.unmountOnExit||this.props.mountOnEnter){var h=this.props.nodeRef?this.props.nodeRef.current:Bf.findDOMNode(this);h&&q$(h)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===dc&&this.setState({status:dm})},i.performEnter=function(l){var d=this,h=this.props.enter,v=this.context?this.context.isMounting:l,y=this.props.nodeRef?[v]:[Bf.findDOMNode(this),v],C=y[0],x=y[1],R=this.getTimeouts(),T=v?R.appear:R.enter;if(!l&&!h||N_.disabled){this.safeSetState({status:pc},function(){d.props.onEntered(C)});return}this.props.onEnter(C,x),this.safeSetState({status:Zl},function(){d.props.onEntering(C,x),d.onTransitionEnd(T,function(){d.safeSetState({status:pc},function(){d.props.onEntered(C,x)})})})},i.performExit=function(){var l=this,d=this.props.exit,h=this.getTimeouts(),v=this.props.nodeRef?void 0:Bf.findDOMNode(this);if(!d||N_.disabled){this.safeSetState({status:dc},function(){l.props.onExited(v)});return}this.props.onExit(v),this.safeSetState({status:h0},function(){l.props.onExiting(v),l.onTransitionEnd(h.exit,function(){l.safeSetState({status:dc},function(){l.props.onExited(v)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(l,d){d=this.setNextCallback(d),this.setState(l,d)},i.setNextCallback=function(l){var d=this,h=!0;return this.nextCallback=function(v){h&&(h=!1,d.nextCallback=null,l(v))},this.nextCallback.cancel=function(){h=!1},this.nextCallback},i.onTransitionEnd=function(l,d){this.setNextCallback(d);var h=this.props.nodeRef?this.props.nodeRef.current:Bf.findDOMNode(this),v=l==null&&!this.props.addEndListener;if(!h||v){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var y=this.props.nodeRef?[this.nextCallback]:[h,this.nextCallback],C=y[0],x=y[1];this.props.addEndListener(C,x)}l!=null&&setTimeout(this.nextCallback,l)},i.render=function(){var l=this.state.status;if(l===dm)return null;var d=this.props,h=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 v=iR(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return kr.createElement(KA.Provider,{value:null},typeof h=="function"?h(l,v):kr.cloneElement(kr.Children.only(h),v))},r}(kr.Component);au.contextType=KA;au.propTypes=Q$.NODE_ENV!=="production"?{nodeRef:_t.shape({current:typeof Element>"u"?_t.any:function(n,r,i,u,l,d){var h=n[r];return _t.instanceOf(h&&"ownerDocument"in h?h.ownerDocument.defaultView.Element:Element)(n,r,i,u,l,d)}}),children:_t.oneOfType([_t.func.isRequired,_t.element.isRequired]).isRequired,in:_t.bool,mountOnEnter:_t.bool,unmountOnExit:_t.bool,appear:_t.bool,enter:_t.bool,exit:_t.bool,timeout:function(r){var i=J$;r.addEndListener||(i=i.isRequired);for(var u=arguments.length,l=new Array(u>1?u-1:0),d=1;d<u;d++)l[d-1]=arguments[d];return i.apply(void 0,[r].concat(l))},addEndListener:_t.func,onEnter:_t.func,onEntering:_t.func,onEntered:_t.func,onExit:_t.func,onExiting:_t.func,onExited:_t.func}:{};function Dp(){}au.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dp,onEntering:Dp,onEntered:Dp,onExit:Dp,onExiting:Dp,onExited:Dp};au.UNMOUNTED=dm;au.EXITED=dc;au.ENTERING=Zl;au.ENTERED=pc;au.EXITING=h0;const K$=au;function ev(n){return n&&n.ownerDocument||document}function eG(n){var r=ev(n);return r&&r.defaultView||window}function tG(n,r){return eG(n).getComputedStyle(n,r)}var nG=/([A-Z])/g;function rG(n){return n.replace(nG,"-$1").toLowerCase()}var aG=/^ms-/;function Db(n){return rG(n).replace(aG,"-ms-")}var iG=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function oG(n){return!!(n&&iG.test(n))}function Kl(n,r){var i="",u="";if(typeof r=="string")return n.style.getPropertyValue(Db(r))||tG(n).getPropertyValue(Db(r));Object.keys(r).forEach(function(l){var d=r[l];!d&&d!==0?n.style.removeProperty(Db(l)):oG(l)?u+=l+"("+d+") ":i+=Db(l)+": "+d+";"}),u&&(i+="transform: "+u+";"),n.style.cssText+=";"+i}const tv=!!(typeof window<"u"&&window.document&&window.document.createElement);var bw=!1,Cw=!1;try{var VE={get passive(){return bw=!0},get once(){return Cw=bw=!0}};tv&&(window.addEventListener("test",VE,VE),window.removeEventListener("test",VE,!0))}catch{}function oR(n,r,i,u){if(u&&typeof u!="boolean"&&!Cw){var l=u.once,d=u.capture,h=i;!Cw&&l&&(h=i.__once||function v(y){this.removeEventListener(r,v,d),i.call(this,y)},i.__once=h),n.addEventListener(r,h,bw?u:d)}n.addEventListener(r,i,u)}function xw(n,r,i,u){var l=u&&typeof u!="boolean"?u.capture:u;n.removeEventListener(r,i,l),i.__once&&n.removeEventListener(r,i.__once,l)}function ql(n,r,i,u){return oR(n,r,i,u),function(){xw(n,r,i,u)}}function sG(n,r,i,u){if(i===void 0&&(i=!1),u===void 0&&(u=!0),n){var l=document.createEvent("HTMLEvents");l.initEvent(r,i,u),n.dispatchEvent(l)}}function lG(n){var r=Kl(n,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function uG(n,r,i){i===void 0&&(i=5);var u=!1,l=setTimeout(function(){u||sG(n,"transitionend",!0)},r+i),d=ql(n,"transitionend",function(){u=!0},{once:!0});return function(){clearTimeout(l),d()}}function ej(n,r,i,u){i==null&&(i=lG(n)||0);var l=uG(n,i,u),d=ql(n,"transitionend",r);return function(){l(),d()}}function __(n,r){const i=Kl(n,r)||"",u=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*u}function tj(n,r){const i=__(n,"transitionDuration"),u=__(n,"transitionDelay"),l=ej(n,d=>{d.target===n&&(l(),r(d))},i+u)}function nj(n){n.offsetHeight}function m0(n){return n&&"setState"in n?Bf.findDOMNode(n):n??null}const cG=kr.forwardRef(({onEnter:n,onEntering:r,onEntered:i,onExit:u,onExiting:l,onExited:d,addEndListener:h,children:v,childRef:y,...C},x)=>{const R=M.useRef(null),T=ds(R,y),A=H=>{T(m0(H))},N=H=>J=>{H&&R.current&&H(R.current,J)},O=M.useCallback(N(n),[n]),_=M.useCallback(N(r),[r]),L=M.useCallback(N(i),[i]),V=M.useCallback(N(u),[u]),F=M.useCallback(N(l),[l]),U=M.useCallback(N(d),[d]),z=M.useCallback(N(h),[h]);return b.jsx(K$,{ref:x,...C,onEnter:O,onEntered:L,onEntering:_,onExit:V,onExited:U,onExiting:F,addEndListener:z,nodeRef:R,children:typeof v=="function"?(H,J)=>v(H,{...J,ref:A}):kr.cloneElement(v,{ref:A})})}),rj=cG,fG={[Zl]:"show",[pc]:"show"},aj=M.forwardRef(({className:n,children:r,transitionClasses:i={},onEnter:u,...l},d)=>{const h={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...l},v=M.useCallback((y,C)=>{nj(y),u==null||u(y,C)},[u]);return b.jsx(rj,{ref:d,addEndListener:tj,...h,onEnter:v,childRef:r.ref,children:(y,C)=>M.cloneElement(r,{...C,className:qt("fade",n,r.props.className,fG[y],i[y])})})});aj.displayName="Fade";const $p=aj;function sR(n){return typeof n=="boolean"?n?$p:aR:n}const ij=({transition:n,...r})=>b.jsx(JA,{...r,transition:sR(n)});ij.displayName="TabContainer";const dG=ij,pG=["xxl","xl","lg","md","sm","xs"],vG="xs",oj=M.createContext({prefixes:{},breakpoints:pG,minBreakpoint:vG});function bn(n,r){const{prefixes:i}=M.useContext(oj);return n||i[r]||r}function P0(){const{dir:n}=M.useContext(oj);return n==="rtl"}const sj=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"tab-content"),b.jsx(i,{ref:l,className:qt(n,r),...u})));sj.displayName="TabContent";const lj=sj,uj=M.forwardRef(({bsPrefix:n,transition:r,...i},u)=>{const[{className:l,as:d="div",...h},{isActive:v,onEnter:y,onEntering:C,onEntered:x,onExit:R,onExiting:T,onExited:A,mountOnEnter:N,unmountOnExit:O,transition:_=$p}]=XA({...i,transition:sR(r)}),L=bn(n,"tab-pane");return b.jsx(Kp.Provider,{value:null,children:b.jsx(nu.Provider,{value:null,children:b.jsx(_,{in:v,onEnter:y,onEntering:C,onEntered:x,onExit:R,onExiting:T,onExited:A,mountOnEnter:N,unmountOnExit:O,children:b.jsx(d,{...h,ref:u,className:qt(l,L,v&&"active")})})})})});uj.displayName="TabPane";const cj=uj,hG={eventKey:_t.oneOfType([_t.string,_t.number]),title:_t.node.isRequired,disabled:_t.bool,tabClassName:_t.string,tabAttrs:_t.object},fj=()=>{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")};fj.propTypes=hG;const kb=Object.assign(fj,{Container:dG,Content:lj,Pane:cj});function Rt(){return Rt=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},Rt.apply(this,arguments)}var mG={},gG=function(n,r,i,u,l,d,h,v){if(mG.NODE_ENV!=="production"&&r===void 0)throw new Error("invariant requires an error message argument");if(!n){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 C=[i,u,l,d,h,v],x=0;y=new Error(r.replace(/%s/g,function(){return C[x++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}},yG=gG;const O_=qp(yG);function A_(n){return"default"+n.charAt(0).toUpperCase()+n.substr(1)}function bG(n){var r=CG(n,"string");return typeof r=="symbol"?r:String(r)}function CG(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var u=i.call(n,r||"default");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function dj(n,r,i){var u=M.useRef(n!==void 0),l=M.useState(r),d=l[0],h=l[1],v=n!==void 0,y=u.current;return u.current=v,!v&&y&&d!==r&&h(r),[v?n:d,M.useCallback(function(C){for(var x=arguments.length,R=new Array(x>1?x-1:0),T=1;T<x;T++)R[T-1]=arguments[T];i&&i.apply(void 0,[C].concat(R)),h(C)},[i])]}function F0(n,r){return Object.keys(r).reduce(function(i,u){var l,d=i,h=d[A_(u)],v=d[u],y=iR(d,[A_(u),u].map(bG)),C=r[u],x=dj(v,h,n[C]),R=x[0],T=x[1];return Rt({},y,(l={},l[u]=R,l[C]=T,l))},n)}var j_={exports:{}},Sw={exports:{}};(function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;function i(u){function l(h,v,y,C,x,R){var T=C||"<<anonymous>>",A=R||y;if(v[y]==null)return h?new Error("Required "+x+" `"+A+"` was not specified "+("in `"+T+"`.")):null;for(var N=arguments.length,O=Array(N>6?N-6:0),_=6;_<N;_++)O[_-6]=arguments[_];return u.apply(void 0,[v,y,T,x,A].concat(O))}var d=l.bind(null,!1);return d.isRequired=l.bind(null,!0),d}n.exports=r.default})(Sw,Sw.exports);var xG=Sw.exports;(function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var i=xG,u=l(i);function l(h){return h&&h.__esModule?h:{default:h}}function d(){for(var h=arguments.length,v=Array(h),y=0;y<h;y++)v[y]=arguments[y];function C(){for(var x=arguments.length,R=Array(x),T=0;T<x;T++)R[T]=arguments[T];var A=null;return v.forEach(function(N){if(A==null){var O=N.apply(void 0,R);O!=null&&(A=O)}}),A}return(0,u.default)(C)}n.exports=r.default})(j_,j_.exports);var SG=Function.prototype.bind.call(Function.prototype.call,[].slice);function Jl(n,r){return SG(n.querySelectorAll(r))}function pj(){const[,n]=M.useReducer(r=>!r,!1);return n}const vj=M.createContext(null);vj.displayName="NavContext";const lR=vj,EG="data-rr-ui-",wG="rrUi";function nv(n){return`${EG}${n}`}function RG(n){return`${wG}${n}`}const TG=["as","disabled"];function IG(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function NG(n){return!n||n.trim()==="#"}function uR({tagName:n,disabled:r,href:i,target:u,rel:l,role:d,onClick:h,tabIndex:v=0,type:y}){n||(i!=null||u!=null||l!=null?n="a":n="button");const C={tagName:n};if(n==="button")return[{type:y||"button",disabled:r},C];const x=T=>{if((r||n==="a"&&NG(i))&&T.preventDefault(),r){T.stopPropagation();return}h==null||h(T)},R=T=>{T.key===" "&&(T.preventDefault(),x(T))};return n==="a"&&(i||(i="#"),r&&(i=void 0)),[{role:d??"button",disabled:void 0,tabIndex:r?void 0:v,href:i,target:n==="a"?u:void 0,"aria-disabled":r||void 0,rel:n==="a"?l:void 0,onClick:x,onKeyDown:R},C]}const cR=M.forwardRef((n,r)=>{let{as:i,disabled:u}=n,l=IG(n,TG);const[d,{tagName:h}]=uR(Object.assign({tagName:i,disabled:u},l));return b.jsx(h,Object.assign({},l,d,{ref:r}))});cR.displayName="Button";const _G=["as","active","eventKey"];function OG(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function hj({key:n,onClick:r,active:i,id:u,role:l,disabled:d}){const h=M.useContext(nu),v=M.useContext(lR),y=M.useContext(Kp);let C=i;const x={role:l};if(v){!l&&v.role==="tablist"&&(x.role="tab");const R=v.getControllerId(n??null),T=v.getControlledId(n??null);x[nv("event-key")]=n,x.id=R||u,C=i==null&&n!=null?v.activeKey===n:i,(C||!(y!=null&&y.unmountOnExit)&&!(y!=null&&y.mountOnEnter))&&(x["aria-controls"]=T)}return x.role==="tab"&&(x["aria-selected"]=C,C||(x.tabIndex=-1),d&&(x.tabIndex=-1,x["aria-disabled"]=!0)),x.onClick=gr(R=>{d||(r==null||r(R),n!=null&&h&&!R.isPropagationStopped()&&h(n,R))}),[x,{isActive:C}]}const mj=M.forwardRef((n,r)=>{let{as:i=cR,active:u,eventKey:l}=n,d=OG(n,_G);const[h,v]=hj(Object.assign({key:Wf(l,d.href),active:u},d));return h[nv("active")]=v.isActive,b.jsx(i,Object.assign({},d,h,{ref:r}))});mj.displayName="NavItem";const AG=mj,jG=["as","onSelect","activeKey","role","onKeyDown"];function DG(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}const D_=()=>{},k_=nv("event-key"),gj=M.forwardRef((n,r)=>{let{as:i="div",onSelect:u,activeKey:l,role:d,onKeyDown:h}=n,v=DG(n,jG);const y=pj(),C=M.useRef(!1),x=M.useContext(nu),R=M.useContext(Kp);let T,A;R&&(d=d||"tablist",l=R.activeKey,T=R.getControlledId,A=R.getControllerId);const N=M.useRef(null),O=F=>{const U=N.current;if(!U)return null;const z=Jl(U,`[${k_}]:not([aria-disabled=true])`),H=U.querySelector("[aria-selected=true]");if(!H||H!==document.activeElement)return null;const J=z.indexOf(H);if(J===-1)return null;let q=J+F;return q>=z.length&&(q=0),q<0&&(q=z.length-1),z[q]},_=(F,U)=>{F!=null&&(u==null||u(F,U),x==null||x(F,U))},L=F=>{if(h==null||h(F),!R)return;let U;switch(F.key){case"ArrowLeft":case"ArrowUp":U=O(-1);break;case"ArrowRight":case"ArrowDown":U=O(1);break;default:return}U&&(F.preventDefault(),_(U.dataset[RG("EventKey")]||null,F),C.current=!0,y())};M.useEffect(()=>{if(N.current&&C.current){const F=N.current.querySelector(`[${k_}][aria-selected=true]`);F==null||F.focus()}C.current=!1});const V=ds(r,N);return b.jsx(nu.Provider,{value:_,children:b.jsx(lR.Provider,{value:{role:d,activeKey:Wf(l),getControlledId:T||D_,getControllerId:A||D_},children:b.jsx(i,Object.assign({},v,{onKeyDown:L,ref:V,role:d}))})})});gj.displayName="Nav";const kG=Object.assign(gj,{Item:AG}),yj=M.createContext(null);yj.displayName="NavbarContext";const bj=yj,Cj=M.createContext(null);Cj.displayName="CardHeaderContext";const MG=Cj,xj=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"nav-item"),b.jsx(i,{ref:l,className:qt(n,r),...u})));xj.displayName="NavItem";const Sj=xj;function g0(){return M.useState(null)}function LG(n,r,i,u=!1){const l=gr(i);M.useEffect(()=>{const d=typeof n=="function"?n():n;return d.addEventListener(r,l,u),()=>d.removeEventListener(r,l,u)},[n])}function fR(){const n=M.useRef(!0),r=M.useRef(()=>n.current);return M.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),r.current}function Ej(n){const r=M.useRef(null);return M.useEffect(()=>{r.current=n}),r.current}const PG=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",FG=typeof document<"u",y0=FG||PG?M.useLayoutEffect:M.useEffect,VG=["onKeyDown"];function BG(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function zG(n){return!n||n.trim()==="#"}const wj=M.forwardRef((n,r)=>{let{onKeyDown:i}=n,u=BG(n,VG);const[l]=uR(Object.assign({tagName:"a"},u)),d=gr(h=>{l.onKeyDown(h),i==null||i(h)});return zG(u.href)||u.role==="button"?b.jsx("a",Object.assign({ref:r},u,l,{onKeyDown:d})):b.jsx("a",Object.assign({ref:r},u,{onKeyDown:i}))});wj.displayName="Anchor";const Rj=wj,Tj=M.forwardRef(({bsPrefix:n,className:r,as:i=Rj,active:u,eventKey:l,disabled:d=!1,...h},v)=>{n=bn(n,"nav-link");const[y,C]=hj({key:Wf(l,h.href),active:u,disabled:d,...h});return b.jsx(i,{...h,...y,ref:v,disabled:d,className:qt(r,n,d&&"disabled",C.isActive&&"active")})});Tj.displayName="NavLink";const Ij=Tj,Nj=M.forwardRef((n,r)=>{const{as:i="div",bsPrefix:u,variant:l,fill:d=!1,justify:h=!1,navbar:v,navbarScroll:y,className:C,activeKey:x,...R}=F0(n,{activeKey:"onSelect"}),T=bn(u,"nav");let A,N,O=!1;const _=M.useContext(bj),L=M.useContext(MG);return _?(A=_.bsPrefix,O=v??!0):L&&({cardHeaderBsPrefix:N}=L),b.jsx(kG,{as:i,ref:r,activeKey:x,className:qt(C,{[T]:!O,[`${A}-nav`]:O,[`${A}-nav-scroll`]:O&&y,[`${N}-${l}`]:!!N,[`${T}-${l}`]:!!l,[`${T}-fill`]:d,[`${T}-justified`]:h}),...R})});Nj.displayName="Nav";const UG=Object.assign(Nj,{Item:Sj,Link:Ij});function M_(n,r){let i=0;return M.Children.map(n,u=>M.isValidElement(u)?r(u,i++):u)}function HG(n,r){let i=0;M.Children.forEach(n,u=>{M.isValidElement(u)&&r(u,i++)})}function $G(n){let r;return HG(n,i=>{r==null&&(r=i.props.eventKey)}),r}function GG(n){const{title:r,eventKey:i,disabled:u,tabClassName:l,tabAttrs:d,id:h}=n.props;return r==null?null:b.jsx(Sj,{as:"li",role:"presentation",children:b.jsx(Ij,{as:"button",type:"button",eventKey:i,disabled:u,id:h,className:l,...d,children:r})})}const _j=n=>{const{id:r,onSelect:i,transition:u,mountOnEnter:l=!1,unmountOnExit:d=!1,variant:h="tabs",children:v,activeKey:y=$G(v),...C}=F0(n,{activeKey:"onSelect"});return b.jsxs(JA,{id:r,activeKey:y,onSelect:i,transition:sR(u),mountOnEnter:l,unmountOnExit:d,children:[b.jsx(UG,{...C,role:"tablist",as:"ul",variant:h,children:M_(v,GG)}),b.jsx(lj,{children:M_(v,x=>{const R={...x.props};return delete R.title,delete R.disabled,delete R.tabClassName,delete R.tabAttrs,b.jsx(cj,{...R})})})]})};_j.displayName="Tabs";const WG=_j,XG=M.createContext(null),V0=XG;var L_=Object.prototype.hasOwnProperty;function P_(n,r,i){for(i of n.keys())if(pm(i,r))return i}function pm(n,r){var i,u,l;if(n===r)return!0;if(n&&r&&(i=n.constructor)===r.constructor){if(i===Date)return n.getTime()===r.getTime();if(i===RegExp)return n.toString()===r.toString();if(i===Array){if((u=n.length)===r.length)for(;u--&&pm(n[u],r[u]););return u===-1}if(i===Set){if(n.size!==r.size)return!1;for(u of n)if(l=u,l&&typeof l=="object"&&(l=P_(r,l),!l)||!r.has(l))return!1;return!0}if(i===Map){if(n.size!==r.size)return!1;for(u of n)if(l=u[0],l&&typeof l=="object"&&(l=P_(r,l),!l)||!pm(u[1],r.get(l)))return!1;return!0}if(i===ArrayBuffer)n=new Uint8Array(n),r=new Uint8Array(r);else if(i===DataView){if((u=n.byteLength)===r.byteLength)for(;u--&&n.getInt8(u)===r.getInt8(u););return u===-1}if(ArrayBuffer.isView(n)){if((u=n.byteLength)===r.byteLength)for(;u--&&n[u]===r[u];);return u===-1}if(!i||typeof n=="object"){u=0;for(i in n)if(L_.call(n,i)&&++u&&!L_.call(r,i)||!(i in r)||!pm(n[i],r[i]))return!1;return Object.keys(r).length===u}}return n!==n&&r!==r}function YG(n){const r=fR();return[n[0],M.useCallback(i=>{if(r())return n[1](i)},[r,n[1]])]}var Oi="top",wo="bottom",Ro="right",Ai="left",dR="auto",Am=[Oi,wo,Ro,Ai],Gp="start",bm="end",ZG="clippingParents",Oj="viewport",am="popper",JG="reference",F_=Am.reduce(function(n,r){return n.concat([r+"-"+Gp,r+"-"+bm])},[]),Aj=[].concat(Am,[dR]).reduce(function(n,r){return n.concat([r,r+"-"+Gp,r+"-"+bm])},[]),qG="beforeRead",QG="read",KG="afterRead",e3="beforeMain",t3="main",n3="afterMain",r3="beforeWrite",a3="write",i3="afterWrite",o3=[qG,QG,KG,e3,t3,n3,r3,a3,i3];function Ks(n){return n.split("-")[0]}function qi(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var r=n.ownerDocument;return r&&r.defaultView||window}return n}function Xf(n){var r=qi(n).Element;return n instanceof r||n instanceof Element}function el(n){var r=qi(n).HTMLElement;return n instanceof r||n instanceof HTMLElement}function pR(n){if(typeof ShadowRoot>"u")return!1;var r=qi(n).ShadowRoot;return n instanceof r||n instanceof ShadowRoot}var Hf=Math.max,b0=Math.min,Wp=Math.round;function Ew(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function jj(){return!/^((?!chrome|android).)*safari/i.test(Ew())}function Xp(n,r,i){r===void 0&&(r=!1),i===void 0&&(i=!1);var u=n.getBoundingClientRect(),l=1,d=1;r&&el(n)&&(l=n.offsetWidth>0&&Wp(u.width)/n.offsetWidth||1,d=n.offsetHeight>0&&Wp(u.height)/n.offsetHeight||1);var h=Xf(n)?qi(n):window,v=h.visualViewport,y=!jj()&&i,C=(u.left+(y&&v?v.offsetLeft:0))/l,x=(u.top+(y&&v?v.offsetTop:0))/d,R=u.width/l,T=u.height/d;return{width:R,height:T,top:x,right:C+R,bottom:x+T,left:C,x:C,y:x}}function vR(n){var r=Xp(n),i=n.offsetWidth,u=n.offsetHeight;return Math.abs(r.width-i)<=1&&(i=r.width),Math.abs(r.height-u)<=1&&(u=r.height),{x:n.offsetLeft,y:n.offsetTop,width:i,height:u}}function Dj(n,r){var i=r.getRootNode&&r.getRootNode();if(n.contains(r))return!0;if(i&&pR(i)){var u=r;do{if(u&&n.isSameNode(u))return!0;u=u.parentNode||u.host}while(u)}return!1}function gc(n){return n?(n.nodeName||"").toLowerCase():null}function ru(n){return qi(n).getComputedStyle(n)}function s3(n){return["table","td","th"].indexOf(gc(n))>=0}function yc(n){return((Xf(n)?n.ownerDocument:n.document)||window.document).documentElement}function B0(n){return gc(n)==="html"?n:n.assignedSlot||n.parentNode||(pR(n)?n.host:null)||yc(n)}function V_(n){return!el(n)||ru(n).position==="fixed"?null:n.offsetParent}function l3(n){var r=/firefox/i.test(Ew()),i=/Trident/i.test(Ew());if(i&&el(n)){var u=ru(n);if(u.position==="fixed")return null}var l=B0(n);for(pR(l)&&(l=l.host);el(l)&&["html","body"].indexOf(gc(l))<0;){var d=ru(l);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 l;l=l.parentNode}return null}function jm(n){for(var r=qi(n),i=V_(n);i&&s3(i)&&ru(i).position==="static";)i=V_(i);return i&&(gc(i)==="html"||gc(i)==="body"&&ru(i).position==="static")?r:i||l3(n)||r}function hR(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function vm(n,r,i){return Hf(n,b0(r,i))}function u3(n,r,i){var u=vm(n,r,i);return u>i?i:u}function kj(){return{top:0,right:0,bottom:0,left:0}}function Mj(n){return Object.assign({},kj(),n)}function Lj(n,r){return r.reduce(function(i,u){return i[u]=n,i},{})}var c3=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,Mj(typeof r!="number"?r:Lj(r,Am))};function f3(n){var r,i=n.state,u=n.name,l=n.options,d=i.elements.arrow,h=i.modifiersData.popperOffsets,v=Ks(i.placement),y=hR(v),C=[Ai,Ro].indexOf(v)>=0,x=C?"height":"width";if(!(!d||!h)){var R=c3(l.padding,i),T=vR(d),A=y==="y"?Oi:Ai,N=y==="y"?wo:Ro,O=i.rects.reference[x]+i.rects.reference[y]-h[y]-i.rects.popper[x],_=h[y]-i.rects.reference[y],L=jm(d),V=L?y==="y"?L.clientHeight||0:L.clientWidth||0:0,F=O/2-_/2,U=R[A],z=V-T[x]-R[N],H=V/2-T[x]/2+F,J=vm(U,H,z),q=y;i.modifiersData[u]=(r={},r[q]=J,r.centerOffset=J-H,r)}}function d3(n){var r=n.state,i=n.options,u=i.element,l=u===void 0?"[data-popper-arrow]":u;l!=null&&(typeof l=="string"&&(l=r.elements.popper.querySelector(l),!l)||Dj(r.elements.popper,l)&&(r.elements.arrow=l))}const p3={name:"arrow",enabled:!0,phase:"main",fn:f3,effect:d3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yp(n){return n.split("-")[1]}var v3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h3(n,r){var i=n.x,u=n.y,l=r.devicePixelRatio||1;return{x:Wp(i*l)/l||0,y:Wp(u*l)/l||0}}function B_(n){var r,i=n.popper,u=n.popperRect,l=n.placement,d=n.variation,h=n.offsets,v=n.position,y=n.gpuAcceleration,C=n.adaptive,x=n.roundOffsets,R=n.isFixed,T=h.x,A=T===void 0?0:T,N=h.y,O=N===void 0?0:N,_=typeof x=="function"?x({x:A,y:O}):{x:A,y:O};A=_.x,O=_.y;var L=h.hasOwnProperty("x"),V=h.hasOwnProperty("y"),F=Ai,U=Oi,z=window;if(C){var H=jm(i),J="clientHeight",q="clientWidth";if(H===qi(i)&&(H=yc(i),ru(H).position!=="static"&&v==="absolute"&&(J="scrollHeight",q="scrollWidth")),H=H,l===Oi||(l===Ai||l===Ro)&&d===bm){U=wo;var Re=R&&H===z&&z.visualViewport?z.visualViewport.height:H[J];O-=Re-u.height,O*=y?1:-1}if(l===Ai||(l===Oi||l===wo)&&d===bm){F=Ro;var he=R&&H===z&&z.visualViewport?z.visualViewport.width:H[q];A-=he-u.width,A*=y?1:-1}}var ge=Object.assign({position:v},C&&v3),fe=x===!0?h3({x:A,y:O},qi(i)):{x:A,y:O};if(A=fe.x,O=fe.y,y){var Oe;return Object.assign({},ge,(Oe={},Oe[U]=V?"0":"",Oe[F]=L?"0":"",Oe.transform=(z.devicePixelRatio||1)<=1?"translate("+A+"px, "+O+"px)":"translate3d("+A+"px, "+O+"px, 0)",Oe))}return Object.assign({},ge,(r={},r[U]=V?O+"px":"",r[F]=L?A+"px":"",r.transform="",r))}function m3(n){var r=n.state,i=n.options,u=i.gpuAcceleration,l=u===void 0?!0:u,d=i.adaptive,h=d===void 0?!0:d,v=i.roundOffsets,y=v===void 0?!0:v,C={placement:Ks(r.placement),variation:Yp(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:l,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,B_(Object.assign({},C,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:h,roundOffsets:y})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,B_(Object.assign({},C,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const g3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m3,data:{}};var Mb={passive:!0};function y3(n){var r=n.state,i=n.instance,u=n.options,l=u.scroll,d=l===void 0?!0:l,h=u.resize,v=h===void 0?!0:h,y=qi(r.elements.popper),C=[].concat(r.scrollParents.reference,r.scrollParents.popper);return d&&C.forEach(function(x){x.addEventListener("scroll",i.update,Mb)}),v&&y.addEventListener("resize",i.update,Mb),function(){d&&C.forEach(function(x){x.removeEventListener("scroll",i.update,Mb)}),v&&y.removeEventListener("resize",i.update,Mb)}}const b3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:y3,data:{}};var C3={left:"right",right:"left",bottom:"top",top:"bottom"};function qb(n){return n.replace(/left|right|bottom|top/g,function(r){return C3[r]})}var x3={start:"end",end:"start"};function z_(n){return n.replace(/start|end/g,function(r){return x3[r]})}function mR(n){var r=qi(n),i=r.pageXOffset,u=r.pageYOffset;return{scrollLeft:i,scrollTop:u}}function gR(n){return Xp(yc(n)).left+mR(n).scrollLeft}function S3(n,r){var i=qi(n),u=yc(n),l=i.visualViewport,d=u.clientWidth,h=u.clientHeight,v=0,y=0;if(l){d=l.width,h=l.height;var C=jj();(C||!C&&r==="fixed")&&(v=l.offsetLeft,y=l.offsetTop)}return{width:d,height:h,x:v+gR(n),y}}function E3(n){var r,i=yc(n),u=mR(n),l=(r=n.ownerDocument)==null?void 0:r.body,d=Hf(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),h=Hf(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),v=-u.scrollLeft+gR(n),y=-u.scrollTop;return ru(l||i).direction==="rtl"&&(v+=Hf(i.clientWidth,l?l.clientWidth:0)-d),{width:d,height:h,x:v,y}}function yR(n){var r=ru(n),i=r.overflow,u=r.overflowX,l=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+l+u)}function Pj(n){return["html","body","#document"].indexOf(gc(n))>=0?n.ownerDocument.body:el(n)&&yR(n)?n:Pj(B0(n))}function hm(n,r){var i;r===void 0&&(r=[]);var u=Pj(n),l=u===((i=n.ownerDocument)==null?void 0:i.body),d=qi(u),h=l?[d].concat(d.visualViewport||[],yR(u)?u:[]):u,v=r.concat(h);return l?v:v.concat(hm(B0(h)))}function ww(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function w3(n,r){var i=Xp(n,!1,r==="fixed");return i.top=i.top+n.clientTop,i.left=i.left+n.clientLeft,i.bottom=i.top+n.clientHeight,i.right=i.left+n.clientWidth,i.width=n.clientWidth,i.height=n.clientHeight,i.x=i.left,i.y=i.top,i}function U_(n,r,i){return r===Oj?ww(S3(n,i)):Xf(r)?w3(r,i):ww(E3(yc(n)))}function R3(n){var r=hm(B0(n)),i=["absolute","fixed"].indexOf(ru(n).position)>=0,u=i&&el(n)?jm(n):n;return Xf(u)?r.filter(function(l){return Xf(l)&&Dj(l,u)&&gc(l)!=="body"}):[]}function T3(n,r,i,u){var l=r==="clippingParents"?R3(n):[].concat(r),d=[].concat(l,[i]),h=d[0],v=d.reduce(function(y,C){var x=U_(n,C,u);return y.top=Hf(x.top,y.top),y.right=b0(x.right,y.right),y.bottom=b0(x.bottom,y.bottom),y.left=Hf(x.left,y.left),y},U_(n,h,u));return v.width=v.right-v.left,v.height=v.bottom-v.top,v.x=v.left,v.y=v.top,v}function Fj(n){var r=n.reference,i=n.element,u=n.placement,l=u?Ks(u):null,d=u?Yp(u):null,h=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,y;switch(l){case Oi:y={x:h,y:r.y-i.height};break;case wo:y={x:h,y:r.y+r.height};break;case Ro:y={x:r.x+r.width,y:v};break;case Ai:y={x:r.x-i.width,y:v};break;default:y={x:r.x,y:r.y}}var C=l?hR(l):null;if(C!=null){var x=C==="y"?"height":"width";switch(d){case Gp:y[C]=y[C]-(r[x]/2-i[x]/2);break;case bm:y[C]=y[C]+(r[x]/2-i[x]/2);break}}return y}function Cm(n,r){r===void 0&&(r={});var i=r,u=i.placement,l=u===void 0?n.placement:u,d=i.strategy,h=d===void 0?n.strategy:d,v=i.boundary,y=v===void 0?ZG:v,C=i.rootBoundary,x=C===void 0?Oj:C,R=i.elementContext,T=R===void 0?am:R,A=i.altBoundary,N=A===void 0?!1:A,O=i.padding,_=O===void 0?0:O,L=Mj(typeof _!="number"?_:Lj(_,Am)),V=T===am?JG:am,F=n.rects.popper,U=n.elements[N?V:T],z=T3(Xf(U)?U:U.contextElement||yc(n.elements.popper),y,x,h),H=Xp(n.elements.reference),J=Fj({reference:H,element:F,strategy:"absolute",placement:l}),q=ww(Object.assign({},F,J)),Re=T===am?q:H,he={top:z.top-Re.top+L.top,bottom:Re.bottom-z.bottom+L.bottom,left:z.left-Re.left+L.left,right:Re.right-z.right+L.right},ge=n.modifiersData.offset;if(T===am&&ge){var fe=ge[l];Object.keys(he).forEach(function(Oe){var Te=[Ro,wo].indexOf(Oe)>=0?1:-1,xe=[Oi,wo].indexOf(Oe)>=0?"y":"x";he[Oe]+=fe[xe]*Te})}return he}function I3(n,r){r===void 0&&(r={});var i=r,u=i.placement,l=i.boundary,d=i.rootBoundary,h=i.padding,v=i.flipVariations,y=i.allowedAutoPlacements,C=y===void 0?Aj:y,x=Yp(u),R=x?v?F_:F_.filter(function(N){return Yp(N)===x}):Am,T=R.filter(function(N){return C.indexOf(N)>=0});T.length===0&&(T=R);var A=T.reduce(function(N,O){return N[O]=Cm(n,{placement:O,boundary:l,rootBoundary:d,padding:h})[Ks(O)],N},{});return Object.keys(A).sort(function(N,O){return A[N]-A[O]})}function N3(n){if(Ks(n)===dR)return[];var r=qb(n);return[z_(n),r,z_(r)]}function _3(n){var r=n.state,i=n.options,u=n.name;if(!r.modifiersData[u]._skip){for(var l=i.mainAxis,d=l===void 0?!0:l,h=i.altAxis,v=h===void 0?!0:h,y=i.fallbackPlacements,C=i.padding,x=i.boundary,R=i.rootBoundary,T=i.altBoundary,A=i.flipVariations,N=A===void 0?!0:A,O=i.allowedAutoPlacements,_=r.options.placement,L=Ks(_),V=L===_,F=y||(V||!N?[qb(_)]:N3(_)),U=[_].concat(F).reduce(function(Se,Ne){return Se.concat(Ks(Ne)===dR?I3(r,{placement:Ne,boundary:x,rootBoundary:R,padding:C,flipVariations:N,allowedAutoPlacements:O}):Ne)},[]),z=r.rects.reference,H=r.rects.popper,J=new Map,q=!0,Re=U[0],he=0;he<U.length;he++){var ge=U[he],fe=Ks(ge),Oe=Yp(ge)===Gp,Te=[Oi,wo].indexOf(fe)>=0,xe=Te?"width":"height",je=Cm(r,{placement:ge,boundary:x,rootBoundary:R,altBoundary:T,padding:C}),Le=Te?Oe?Ro:Ai:Oe?wo:Oi;z[xe]>H[xe]&&(Le=qb(Le));var ne=qb(Le),_e=[];if(d&&_e.push(je[fe]<=0),v&&_e.push(je[Le]<=0,je[ne]<=0),_e.every(function(Se){return Se})){Re=ge,q=!1;break}J.set(ge,_e)}if(q)for(var G=N?3:1,Y=function(Ne){var le=U.find(function(ve){var we=J.get(ve);if(we)return we.slice(0,Ne).every(function(Ve){return Ve})});if(le)return Re=le,"break"},re=G;re>0;re--){var ye=Y(re);if(ye==="break")break}r.placement!==Re&&(r.modifiersData[u]._skip=!0,r.placement=Re,r.reset=!0)}}const O3={name:"flip",enabled:!0,phase:"main",fn:_3,requiresIfExists:["offset"],data:{_skip:!1}};function H_(n,r,i){return i===void 0&&(i={x:0,y:0}),{top:n.top-r.height-i.y,right:n.right-r.width+i.x,bottom:n.bottom-r.height+i.y,left:n.left-r.width-i.x}}function $_(n){return[Oi,Ro,wo,Ai].some(function(r){return n[r]>=0})}function A3(n){var r=n.state,i=n.name,u=r.rects.reference,l=r.rects.popper,d=r.modifiersData.preventOverflow,h=Cm(r,{elementContext:"reference"}),v=Cm(r,{altBoundary:!0}),y=H_(h,u),C=H_(v,l,d),x=$_(y),R=$_(C);r.modifiersData[i]={referenceClippingOffsets:y,popperEscapeOffsets:C,isReferenceHidden:x,hasPopperEscaped:R},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":x,"data-popper-escaped":R})}const j3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:A3};function D3(n,r,i){var u=Ks(n),l=[Ai,Oi].indexOf(u)>=0?-1:1,d=typeof i=="function"?i(Object.assign({},r,{placement:n})):i,h=d[0],v=d[1];return h=h||0,v=(v||0)*l,[Ai,Ro].indexOf(u)>=0?{x:v,y:h}:{x:h,y:v}}function k3(n){var r=n.state,i=n.options,u=n.name,l=i.offset,d=l===void 0?[0,0]:l,h=Aj.reduce(function(x,R){return x[R]=D3(R,r.rects,d),x},{}),v=h[r.placement],y=v.x,C=v.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=y,r.modifiersData.popperOffsets.y+=C),r.modifiersData[u]=h}const M3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:k3};function L3(n){var r=n.state,i=n.name;r.modifiersData[i]=Fj({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const P3={name:"popperOffsets",enabled:!0,phase:"read",fn:L3,data:{}};function F3(n){return n==="x"?"y":"x"}function V3(n){var r=n.state,i=n.options,u=n.name,l=i.mainAxis,d=l===void 0?!0:l,h=i.altAxis,v=h===void 0?!1:h,y=i.boundary,C=i.rootBoundary,x=i.altBoundary,R=i.padding,T=i.tether,A=T===void 0?!0:T,N=i.tetherOffset,O=N===void 0?0:N,_=Cm(r,{boundary:y,rootBoundary:C,padding:R,altBoundary:x}),L=Ks(r.placement),V=Yp(r.placement),F=!V,U=hR(L),z=F3(U),H=r.modifiersData.popperOffsets,J=r.rects.reference,q=r.rects.popper,Re=typeof O=="function"?O(Object.assign({},r.rects,{placement:r.placement})):O,he=typeof Re=="number"?{mainAxis:Re,altAxis:Re}:Object.assign({mainAxis:0,altAxis:0},Re),ge=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,fe={x:0,y:0};if(H){if(d){var Oe,Te=U==="y"?Oi:Ai,xe=U==="y"?wo:Ro,je=U==="y"?"height":"width",Le=H[U],ne=Le+_[Te],_e=Le-_[xe],G=A?-q[je]/2:0,Y=V===Gp?J[je]:q[je],re=V===Gp?-q[je]:-J[je],ye=r.elements.arrow,Se=A&&ye?vR(ye):{width:0,height:0},Ne=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:kj(),le=Ne[Te],ve=Ne[xe],we=vm(0,J[je],Se[je]),Ve=F?J[je]/2-G-we-le-he.mainAxis:Y-we-le-he.mainAxis,et=F?-J[je]/2+G+we+ve+he.mainAxis:re+we+ve+he.mainAxis,tt=r.elements.arrow&&jm(r.elements.arrow),ft=tt?U==="y"?tt.clientTop||0:tt.clientLeft||0:0,Ae=(Oe=ge==null?void 0:ge[U])!=null?Oe:0,It=Le+Ve-Ae-ft,pt=Le+et-Ae,Kt=vm(A?b0(ne,It):ne,Le,A?Hf(_e,pt):_e);H[U]=Kt,fe[U]=Kt-Le}if(v){var on,sn=U==="x"?Oi:Ai,_n=U==="x"?wo:Ro,Vt=H[z],Cn=z==="y"?"height":"width",qn=Vt+_[sn],Rr=Vt-_[_n],$n=[Oi,Ai].indexOf(L)!==-1,Tr=(on=ge==null?void 0:ge[z])!=null?on:0,xt=$n?qn:Vt-J[Cn]-q[Cn]-Tr+he.altAxis,Pn=$n?Vt+J[Cn]+q[Cn]-Tr-he.altAxis:Rr,ln=A&&$n?u3(xt,Vt,Pn):vm(A?xt:qn,Vt,A?Pn:Rr);H[z]=ln,fe[z]=ln-Vt}r.modifiersData[u]=fe}}const B3={name:"preventOverflow",enabled:!0,phase:"main",fn:V3,requiresIfExists:["offset"]};function z3(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function U3(n){return n===qi(n)||!el(n)?mR(n):z3(n)}function H3(n){var r=n.getBoundingClientRect(),i=Wp(r.width)/n.offsetWidth||1,u=Wp(r.height)/n.offsetHeight||1;return i!==1||u!==1}function $3(n,r,i){i===void 0&&(i=!1);var u=el(r),l=el(r)&&H3(r),d=yc(r),h=Xp(n,l,i),v={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(u||!u&&!i)&&((gc(r)!=="body"||yR(d))&&(v=U3(r)),el(r)?(y=Xp(r,!0),y.x+=r.clientLeft,y.y+=r.clientTop):d&&(y.x=gR(d))),{x:h.left+v.scrollLeft-y.x,y:h.top+v.scrollTop-y.y,width:h.width,height:h.height}}function G3(n){var r=new Map,i=new Set,u=[];n.forEach(function(d){r.set(d.name,d)});function l(d){i.add(d.name);var h=[].concat(d.requires||[],d.requiresIfExists||[]);h.forEach(function(v){if(!i.has(v)){var y=r.get(v);y&&l(y)}}),u.push(d)}return n.forEach(function(d){i.has(d.name)||l(d)}),u}function W3(n){var r=G3(n);return o3.reduce(function(i,u){return i.concat(r.filter(function(l){return l.phase===u}))},[])}function X3(n){var r;return function(){return r||(r=new Promise(function(i){Promise.resolve().then(function(){r=void 0,i(n())})})),r}}function Y3(n){var r=n.reduce(function(i,u){var l=i[u.name];return i[u.name]=l?Object.assign({},l,u,{options:Object.assign({},l.options,u.options),data:Object.assign({},l.data,u.data)}):u,i},{});return Object.keys(r).map(function(i){return r[i]})}var G_={placement:"bottom",modifiers:[],strategy:"absolute"};function W_(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return!r.some(function(u){return!(u&&typeof u.getBoundingClientRect=="function")})}function Z3(n){n===void 0&&(n={});var r=n,i=r.defaultModifiers,u=i===void 0?[]:i,l=r.defaultOptions,d=l===void 0?G_:l;return function(v,y,C){C===void 0&&(C=d);var x={placement:"bottom",orderedModifiers:[],options:Object.assign({},G_,d),modifiersData:{},elements:{reference:v,popper:y},attributes:{},styles:{}},R=[],T=!1,A={state:x,setOptions:function(L){var V=typeof L=="function"?L(x.options):L;O(),x.options=Object.assign({},d,x.options,V),x.scrollParents={reference:Xf(v)?hm(v):v.contextElement?hm(v.contextElement):[],popper:hm(y)};var F=W3(Y3([].concat(u,x.options.modifiers)));return x.orderedModifiers=F.filter(function(U){return U.enabled}),N(),A.update()},forceUpdate:function(){if(!T){var L=x.elements,V=L.reference,F=L.popper;if(W_(V,F)){x.rects={reference:$3(V,jm(F),x.options.strategy==="fixed"),popper:vR(F)},x.reset=!1,x.placement=x.options.placement,x.orderedModifiers.forEach(function(he){return x.modifiersData[he.name]=Object.assign({},he.data)});for(var U=0;U<x.orderedModifiers.length;U++){if(x.reset===!0){x.reset=!1,U=-1;continue}var z=x.orderedModifiers[U],H=z.fn,J=z.options,q=J===void 0?{}:J,Re=z.name;typeof H=="function"&&(x=H({state:x,options:q,name:Re,instance:A})||x)}}}},update:X3(function(){return new Promise(function(_){A.forceUpdate(),_(x)})}),destroy:function(){O(),T=!0}};if(!W_(v,y))return A;A.setOptions(C).then(function(_){!T&&C.onFirstUpdate&&C.onFirstUpdate(_)});function N(){x.orderedModifiers.forEach(function(_){var L=_.name,V=_.options,F=V===void 0?{}:V,U=_.effect;if(typeof U=="function"){var z=U({state:x,name:L,instance:A,options:F}),H=function(){};R.push(z||H)}})}function O(){R.forEach(function(_){return _()}),R=[]}return A}}const J3=Z3({defaultModifiers:[j3,P3,g3,b3,M3,O3,B3,p3]}),q3=["enabled","placement","strategy","modifiers"];function Q3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}const K3={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},e9={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:n})=>()=>{const{reference:r,popper:i}=n.elements;if("removeAttribute"in r){const u=(r.getAttribute("aria-describedby")||"").split(",").filter(l=>l.trim()!==i.id);u.length?r.setAttribute("aria-describedby",u.join(",")):r.removeAttribute("aria-describedby")}},fn:({state:n})=>{var r;const{popper:i,reference:u}=n.elements,l=(r=i.getAttribute("role"))==null?void 0:r.toLowerCase();if(i.id&&l==="tooltip"&&"setAttribute"in u){const d=u.getAttribute("aria-describedby");if(d&&d.split(",").indexOf(i.id)!==-1)return;u.setAttribute("aria-describedby",d?`${d},${i.id}`:i.id)}}},t9=[];function Vj(n,r,i={}){let{enabled:u=!0,placement:l="bottom",strategy:d="absolute",modifiers:h=t9}=i,v=Q3(i,q3);const y=M.useRef(h),C=M.useRef(),x=M.useCallback(()=>{var _;(_=C.current)==null||_.update()},[]),R=M.useCallback(()=>{var _;(_=C.current)==null||_.forceUpdate()},[]),[T,A]=YG(M.useState({placement:l,update:x,forceUpdate:R,attributes:{},styles:{popper:{},arrow:{}}})),N=M.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:_})=>{const L={},V={};Object.keys(_.elements).forEach(F=>{L[F]=_.styles[F],V[F]=_.attributes[F]}),A({state:_,styles:L,attributes:V,update:x,forceUpdate:R,placement:_.placement})}}),[x,R,A]),O=M.useMemo(()=>(pm(y.current,h)||(y.current=h),y.current),[h]);return M.useEffect(()=>{!C.current||!u||C.current.setOptions({placement:l,strategy:d,modifiers:[...O,N,K3]})},[d,l,N,u,O]),M.useEffect(()=>{if(!(!u||n==null||r==null))return C.current=J3(n,r,Object.assign({},v,{placement:l,strategy:d,modifiers:[...O,e9,N]})),()=>{C.current!=null&&(C.current.destroy(),C.current=void 0,A(_=>Object.assign({},_,{attributes:{},styles:{popper:{}}})))}},[u,n,r]),T}function xm(n,r){if(n.contains)return n.contains(r);if(n.compareDocumentPosition)return n===r||!!(n.compareDocumentPosition(r)&16)}var n9={},r9=n9.NODE_ENV!=="production",Bj=function(){};if(r9){var a9=function(r,i){var u=arguments.length;i=new Array(u>1?u-1:0);for(var l=1;l<u;l++)i[l-1]=arguments[l];var d=0,h="Warning: "+r.replace(/%s/g,function(){return i[d++]});typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}};Bj=function(n,r,i){var u=arguments.length;i=new Array(u>2?u-2:0);for(var l=2;l<u;l++)i[l-2]=arguments[l];if(r===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");n||a9.apply(null,[r].concat(i))}}var i9=Bj;const bR=qp(i9),X_=()=>{};function o9(n){return n.button===0}function s9(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}const Qb=n=>n&&("current"in n?n.current:n),Y_={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function zj(n,r=X_,{disabled:i,clickTrigger:u="click"}={}){const l=M.useRef(!1),d=M.useRef(!1),h=M.useCallback(C=>{const x=Qb(n);bR(!!x,"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"),l.current=!x||s9(C)||!o9(C)||!!xm(x,C.target)||d.current,d.current=!1},[n]),v=gr(C=>{const x=Qb(n);x&&xm(x,C.target)&&(d.current=!0)}),y=gr(C=>{l.current||r(C)});M.useEffect(()=>{var C,x;if(i||n==null)return;const R=ev(Qb(n)),T=R.defaultView||window;let A=(C=T.event)!=null?C:(x=T.parent)==null?void 0:x.event,N=null;Y_[u]&&(N=ql(R,Y_[u],v,!0));const O=ql(R,u,h,!0),_=ql(R,u,V=>{if(V===A){A=void 0;return}y(V)});let L=[];return"ontouchstart"in R.documentElement&&(L=[].slice.call(R.body.children).map(V=>ql(V,"mousemove",X_))),()=>{N==null||N(),O(),_(),L.forEach(V=>V())}},[n,i,u,h,v,y])}function l9(n){const r={};return Array.isArray(n)?(n==null||n.forEach(i=>{r[i.name]=i}),r):n||r}function u9(n={}){return Array.isArray(n)?n:Object.keys(n).map(r=>(n[r].name=r,n[r]))}function Uj({enabled:n,enableEvents:r,placement:i,flip:u,offset:l,fixed:d,containerPadding:h,arrowElement:v,popperConfig:y={}}){var C,x,R,T,A;const N=l9(y.modifiers);return Object.assign({},y,{placement:i,enabled:n,strategy:d?"fixed":y.strategy,modifiers:u9(Object.assign({},N,{eventListeners:{enabled:r,options:(C=N.eventListeners)==null?void 0:C.options},preventOverflow:Object.assign({},N.preventOverflow,{options:h?Object.assign({padding:h},(x=N.preventOverflow)==null?void 0:x.options):(R=N.preventOverflow)==null?void 0:R.options}),offset:{options:Object.assign({offset:l},(T=N.offset)==null?void 0:T.options)},arrow:Object.assign({},N.arrow,{enabled:!!v,options:Object.assign({},(A=N.arrow)==null?void 0:A.options,{element:v})}),flip:Object.assign({enabled:!!u},N.flip)}))})}const c9=["children"];function f9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}const d9=()=>{};function Hj(n={}){const r=M.useContext(V0),[i,u]=g0(),l=M.useRef(!1),{flip:d,offset:h,rootCloseEvent:v,fixed:y=!1,placement:C,popperConfig:x={},enableEventListeners:R=!0,usePopper:T=!!r}=n,A=(r==null?void 0:r.show)==null?!!n.show:r.show;A&&!l.current&&(l.current=!0);const N=H=>{r==null||r.toggle(!1,H)},{placement:O,setMenu:_,menuElement:L,toggleElement:V}=r||{},F=Vj(V,L,Uj({placement:C||O||"bottom-start",enabled:T,enableEvents:R??A,offset:h,flip:d,fixed:y,arrowElement:i,popperConfig:x})),U=Object.assign({ref:_||d9,"aria-labelledby":V==null?void 0:V.id},F.attributes.popper,{style:F.styles.popper}),z={show:A,placement:O,hasShown:l.current,toggle:r==null?void 0:r.toggle,popper:T?F:null,arrowProps:T?Object.assign({ref:u},F.attributes.arrow,{style:F.styles.arrow}):{}};return zj(L,N,{clickTrigger:v,disabled:!A}),[U,z]}const p9={usePopper:!0};function CR(n){let{children:r}=n,i=f9(n,c9);const[u,l]=Hj(i);return b.jsx(b.Fragment,{children:r(u,l)})}CR.displayName="DropdownMenu";CR.defaultProps=p9;const $j=n=>{var r;return((r=n.getAttribute("role"))==null?void 0:r.toLowerCase())==="menu"},Z_=()=>{};function Gj(){const n=WA(),{show:r=!1,toggle:i=Z_,setToggle:u,menuElement:l}=M.useContext(V0)||{},d=M.useCallback(v=>{i(!r,v)},[r,i]),h={id:n,ref:u||Z_,onClick:d,"aria-expanded":!!r};return l&&$j(l)&&(h["aria-haspopup"]=!0),[h,{show:r,toggle:i}]}function Wj({children:n}){const[r,i]=Gj();return b.jsx(b.Fragment,{children:n(r,i)})}Wj.displayName="DropdownToggle";const v9=["eventKey","disabled","onClick","active","as"];function h9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function Xj({key:n,href:r,active:i,disabled:u,onClick:l}){const d=M.useContext(nu),h=M.useContext(lR),{activeKey:v}=h||{},y=Wf(n,r),C=i==null&&n!=null?Wf(v)===y:i;return[{onClick:gr(R=>{u||(l==null||l(R),d&&!R.isPropagationStopped()&&d(y,R))}),"aria-disabled":u||void 0,"aria-selected":C,[nv("dropdown-item")]:""},{isActive:C}]}const Yj=M.forwardRef((n,r)=>{let{eventKey:i,disabled:u,onClick:l,active:d,as:h=cR}=n,v=h9(n,v9);const[y]=Xj({key:i,href:v.href,disabled:u,onClick:l,active:d});return b.jsx(h,Object.assign({},v,{ref:r},y))});Yj.displayName="DropdownItem";const Zj=M.createContext(tv?window:void 0);Zj.Provider;function z0(){return M.useContext(Zj)}function J_(){const n=pj(),r=M.useRef(null),i=M.useCallback(u=>{r.current=u,n()},[n]);return[r,i]}function Dm({defaultShow:n,show:r,onSelect:i,onToggle:u,itemSelector:l=`* [${nv("dropdown-item")}]`,focusFirstItemOnShow:d,placement:h="bottom-start",children:v}){const y=z0(),[C,x]=HA(r,n,u),[R,T]=J_(),A=R.current,[N,O]=J_(),_=N.current,L=Ej(C),V=M.useRef(null),F=M.useRef(!1),U=M.useContext(nu),z=M.useCallback((ge,fe,Oe=fe==null?void 0:fe.type)=>{x(ge,{originalEvent:fe,source:Oe})},[x]),H=gr((ge,fe)=>{i==null||i(ge,fe),z(!1,fe,"select"),fe.isPropagationStopped()||U==null||U(ge,fe)}),J=M.useMemo(()=>({toggle:z,placement:h,show:C,menuElement:A,toggleElement:_,setMenu:T,setToggle:O}),[z,h,C,A,_,T,O]);A&&L&&!C&&(F.current=A.contains(A.ownerDocument.activeElement));const q=gr(()=>{_&&_.focus&&_.focus()}),Re=gr(()=>{const ge=V.current;let fe=d;if(fe==null&&(fe=R.current&&$j(R.current)?"keyboard":!1),fe===!1||fe==="keyboard"&&!/^key.+$/.test(ge))return;const Oe=Jl(R.current,l)[0];Oe&&Oe.focus&&Oe.focus()});M.useEffect(()=>{C?Re():F.current&&(F.current=!1,q())},[C,F,q,Re]),M.useEffect(()=>{V.current=null});const he=(ge,fe)=>{if(!R.current)return null;const Oe=Jl(R.current,l);let Te=Oe.indexOf(ge)+fe;return Te=Math.max(0,Math.min(Te,Oe.length)),Oe[Te]};return LG(M.useCallback(()=>y.document,[y]),"keydown",ge=>{var fe,Oe;const{key:Te}=ge,xe=ge.target,je=(fe=R.current)==null?void 0:fe.contains(xe),Le=(Oe=N.current)==null?void 0:Oe.contains(xe);if(/input|textarea/i.test(xe.tagName)&&(Te===" "||Te!=="Escape"&&je||Te==="Escape"&&xe.type==="search")||!je&&!Le||Te==="Tab"&&(!R.current||!C))return;V.current=ge.type;const _e={originalEvent:ge,source:ge.type};switch(Te){case"ArrowUp":{const G=he(xe,-1);G&&G.focus&&G.focus(),ge.preventDefault();return}case"ArrowDown":if(ge.preventDefault(),!C)x(!0,_e);else{const G=he(xe,1);G&&G.focus&&G.focus()}return;case"Tab":oR(xe.ownerDocument,"keyup",G=>{var Y;(G.key==="Tab"&&!G.target||!((Y=R.current)!=null&&Y.contains(G.target)))&&x(!1,_e)},{once:!0});break;case"Escape":Te==="Escape"&&(ge.preventDefault(),ge.stopPropagation()),x(!1,_e);break}}),b.jsx(nu.Provider,{value:H,children:b.jsx(V0.Provider,{value:J,children:v})})}Dm.displayName="Dropdown";Dm.Menu=CR;Dm.Toggle=Wj;Dm.Item=Yj;const Jj=M.createContext({});Jj.displayName="DropdownContext";const qj=Jj,Qj=M.forwardRef(({className:n,bsPrefix:r,as:i="hr",role:u="separator",...l},d)=>(r=bn(r,"dropdown-divider"),b.jsx(i,{ref:d,className:qt(n,r),role:u,...l})));Qj.displayName="DropdownDivider";const m9=Qj,Kj=M.forwardRef(({className:n,bsPrefix:r,as:i="div",role:u="heading",...l},d)=>(r=bn(r,"dropdown-header"),b.jsx(i,{ref:d,className:qt(n,r),role:u,...l})));Kj.displayName="DropdownHeader";const g9=Kj,eD=M.forwardRef(({bsPrefix:n,className:r,eventKey:i,disabled:u=!1,onClick:l,active:d,as:h=Rj,...v},y)=>{const C=bn(n,"dropdown-item"),[x,R]=Xj({key:i,href:v.href,disabled:u,onClick:l,active:d});return b.jsx(h,{...v,...x,ref:y,className:qt(r,C,R.isActive&&"active",u&&"disabled")})});eD.displayName="DropdownItem";const y9=eD,tD=M.forwardRef(({className:n,bsPrefix:r,as:i="span",...u},l)=>(r=bn(r,"dropdown-item-text"),b.jsx(i,{ref:l,className:qt(n,r),...u})));tD.displayName="DropdownItemText";const b9=tD,nD=M.createContext(null);nD.displayName="InputGroupContext";const rD=nD;var q_={};function aD(n,r){if(q_.NODE_ENV==="production")return n;const i=M.useCallback(u=>{u==null||!u.isReactComponent||(q_.NODE_ENV!=="production"?O_(!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`):O_(!1))},[r]);return ds(i,n)}var C9={};function iD(n,r,i){const u=i?"top-end":"top-start",l=i?"top-start":"top-end",d=i?"bottom-end":"bottom-start",h=i?"bottom-start":"bottom-end",v=i?"right-start":"left-start",y=i?"right-end":"left-end",C=i?"left-start":"right-start",x=i?"left-end":"right-end";let R=n?h:d;return r==="up"?R=n?l:u:r==="end"?R=n?x:C:r==="start"?R=n?y:v:r==="down-centered"?R="bottom":r==="up-centered"&&(R="top"),R}const oD=M.forwardRef(({bsPrefix:n,className:r,align:i,rootCloseEvent:u,flip:l=!0,show:d,renderOnMount:h,as:v="div",popperConfig:y,variant:C,...x},R)=>{let T=!1;const A=M.useContext(bj),N=bn(n,"dropdown-menu"),{align:O,drop:_,isRTL:L}=M.useContext(qj);i=i||O;const V=M.useContext(rD),F=[];if(i)if(typeof i=="object"){const ge=Object.keys(i);if(C9.NODE_ENV!=="production"&&bR(ge.length===1,"There should only be 1 breakpoint when passing an object to `align`"),ge.length){const fe=ge[0],Oe=i[fe];T=Oe==="start",F.push(`${N}-${fe}-${Oe}`)}}else i==="end"&&(T=!0);const U=iD(T,_,L),[z,{hasShown:H,popper:J,show:q,toggle:Re}]=Hj({flip:l,rootCloseEvent:u,show:d,usePopper:!A&&F.length===0,offset:[0,2],popperConfig:y,placement:U});if(z.ref=ds(aD(R,"DropdownMenu"),z.ref),y0(()=>{q&&(J==null||J.update())},[q]),!H&&!h&&!V)return null;typeof v!="string"&&(z.show=q,z.close=()=>Re==null?void 0:Re(!1),z.align=i);let he=x.style;return J!=null&&J.placement&&(he={...x.style,...z.style},x["x-placement"]=J.placement),b.jsx(v,{...x,...z,style:he,...(F.length||A)&&{"data-bs-popper":"static"},className:qt(r,N,q&&"show",T&&`${N}-end`,C&&`${N}-${C}`,...F)})});oD.displayName="DropdownMenu";const x9=oD,sD=M.forwardRef(({as:n,bsPrefix:r,variant:i="primary",size:u,active:l=!1,disabled:d=!1,className:h,...v},y)=>{const C=bn(r,"btn"),[x,{tagName:R}]=uR({tagName:n,disabled:d,...v}),T=R;return b.jsx(T,{...x,...v,ref:y,disabled:d,className:qt(h,C,l&&"active",i&&`${C}-${i}`,u&&`${C}-${u}`,v.href&&d&&"disabled")})});sD.displayName="Button";const S9=sD,lD=M.forwardRef(({bsPrefix:n,split:r,className:i,childBsPrefix:u,as:l=S9,...d},h)=>{const v=bn(n,"dropdown-toggle"),y=M.useContext(V0);u!==void 0&&(d.bsPrefix=u);const[C]=Gj();return C.ref=ds(C.ref,aD(h,"DropdownToggle")),b.jsx(l,{className:qt(i,v,r&&`${v}-split`,(y==null?void 0:y.show)&&"show"),...C,...d})});lD.displayName="DropdownToggle";const E9=lD,uD=M.forwardRef((n,r)=>{const{bsPrefix:i,drop:u="down",show:l,className:d,align:h="start",onSelect:v,onToggle:y,focusFirstItemOnShow:C,as:x="div",navbar:R,autoClose:T=!0,...A}=F0(n,{show:"onToggle"}),N=M.useContext(rD),O=bn(i,"dropdown"),_=P0(),L=J=>T===!1?J==="click":T==="inside"?J!=="rootClose":T==="outside"?J!=="select":!0,V=gr((J,q)=>{var Re,he;!((Re=q.originalEvent)==null||(he=Re.target)==null)&&he.classList.contains("dropdown-toggle")&&q.source==="mousedown"||(q.originalEvent.currentTarget===document&&(q.source!=="keydown"||q.originalEvent.key==="Escape")&&(q.source="rootClose"),L(q.source)&&(y==null||y(J,q)))}),U=iD(h==="end",u,_),z=M.useMemo(()=>({align:h,drop:u,isRTL:_}),[h,u,_]),H={down:O,"down-centered":`${O}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return b.jsx(qj.Provider,{value:z,children:b.jsx(Dm,{placement:U,show:l,onSelect:v,onToggle:V,focusFirstItemOnShow:C,itemSelector:`.${O}-item:not(.disabled):not(:disabled)`,children:N?A.children:b.jsx(x,{...A,ref:r,className:qt(d,l&&"show",H[u])})})})});uD.displayName="Dropdown";const Lb=Object.assign(uD,{Toggle:E9,Menu:x9,Item:y9,ItemText:b9,Divider:m9,Header:g9});var Pb;function Q_(n){if((!Pb&&Pb!==0||n)&&tv){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),Pb=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return Pb}function w9(n){const r=M.useRef(n);return r.current=n,r}function xR(n){const r=w9(n);M.useEffect(()=>()=>r.current(),[])}function BE(n){n===void 0&&(n=ev());try{var r=n.activeElement;return!r||!r.nodeName?null:r}catch{return n.body}}function R9(n=document){const r=n.defaultView;return Math.abs(r.innerWidth-n.documentElement.clientWidth)}const K_=nv("modal-open");class T9{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:u=!1}={}){this.handleContainerOverflow=i,this.isRTL=u,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return R9(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(r){}removeModalAttributes(r){}setContainerStyle(r){const i={overflow:"hidden"},u=this.isRTL?"paddingLeft":"paddingRight",l=this.getElement();r.style={overflow:l.style.overflow,[u]:l.style[u]},r.scrollBarWidth&&(i[u]=`${parseInt(Kl(l,u)||"0",10)+r.scrollBarWidth}px`),l.setAttribute(K_,""),Kl(l,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(K_),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 SR=T9,zE=(n,r)=>tv?n==null?(r||ev()).body:(typeof n=="function"&&(n=n()),n&&"current"in n&&(n=n.current),n&&("nodeType"in n||n.getBoundingClientRect)?n:null):null;function Rw(n,r){const i=z0(),[u,l]=M.useState(()=>zE(n,i==null?void 0:i.document));if(!u){const d=zE(n);d&&l(d)}return M.useEffect(()=>{r&&u&&r(u)},[r,u]),M.useEffect(()=>{const d=zE(n);d!==u&&l(d)},[n,u]),u}function I9({in:n,onTransition:r}){const i=M.useRef(null),u=M.useRef(!0),l=gr(r);return y0(()=>{if(!i.current)return;let d=!1;return l({in:n,element:i.current,initial:u.current,isStale:()=>d}),()=>{d=!0}},[n,l]),y0(()=>(u.current=!1,()=>{u.current=!0}),[]),i}function N9({children:n,in:r,onExited:i,onEntered:u,transition:l}){const[d,h]=M.useState(!r);r&&d&&h(!1);const v=I9({in:!!r,onTransition:C=>{const x=()=>{C.isStale()||(C.in?u==null||u(C.element,C.initial):(h(!0),i==null||i(C.element)))};Promise.resolve(l(C)).then(x,R=>{throw C.in||h(!0),R})}}),y=ds(v,n.ref);return d&&!r?null:M.cloneElement(n,{ref:y})}function Tw(n,r,i){return n?b.jsx(n,Object.assign({},i)):r?b.jsx(N9,Object.assign({},i,{transition:r})):b.jsx(aR,Object.assign({},i))}function cD(n){return n.code==="Escape"||n.keyCode===27}const _9=["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 O9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}let UE;function A9(n){return UE||(UE=new SR({ownerDocument:n==null?void 0:n.document})),UE}function j9(n){const r=z0(),i=n||A9(r),u=M.useRef({dialog:null,backdrop:null});return Object.assign(u.current,{add:()=>i.add(u.current),remove:()=>i.remove(u.current),isTopModal:()=>i.isTopModal(u.current),setDialogRef:M.useCallback(l=>{u.current.dialog=l},[]),setBackdropRef:M.useCallback(l=>{u.current.backdrop=l},[])})}const fD=M.forwardRef((n,r)=>{let{show:i=!1,role:u="dialog",className:l,style:d,children:h,backdrop:v=!0,keyboard:y=!0,onBackdropClick:C,onEscapeKeyDown:x,transition:R,runTransition:T,backdropTransition:A,runBackdropTransition:N,autoFocus:O=!0,enforceFocus:_=!0,restoreFocus:L=!0,restoreFocusOptions:V,renderDialog:F,renderBackdrop:U=pt=>b.jsx("div",Object.assign({},pt)),manager:z,container:H,onShow:J,onHide:q=()=>{},onExit:Re,onExited:he,onExiting:ge,onEnter:fe,onEntering:Oe,onEntered:Te}=n,xe=O9(n,_9);const je=z0(),Le=Rw(H),ne=j9(z),_e=fR(),G=Ej(i),[Y,re]=M.useState(!i),ye=M.useRef(null);M.useImperativeHandle(r,()=>ne,[ne]),tv&&!G&&i&&(ye.current=BE(je==null?void 0:je.document)),i&&Y&&re(!1);const Se=gr(()=>{if(ne.add(),et.current=ql(document,"keydown",we),Ve.current=ql(document,"focus",()=>setTimeout(le),!0),J&&J(),O){var pt,Kt;const on=BE((pt=(Kt=ne.dialog)==null?void 0:Kt.ownerDocument)!=null?pt:je==null?void 0:je.document);ne.dialog&&on&&!xm(ne.dialog,on)&&(ye.current=on,ne.dialog.focus())}}),Ne=gr(()=>{if(ne.remove(),et.current==null||et.current(),Ve.current==null||Ve.current(),L){var pt;(pt=ye.current)==null||pt.focus==null||pt.focus(V),ye.current=null}});M.useEffect(()=>{!i||!Le||Se()},[i,Le,Se]),M.useEffect(()=>{Y&&Ne()},[Y,Ne]),xR(()=>{Ne()});const le=gr(()=>{if(!_||!_e()||!ne.isTopModal())return;const pt=BE(je==null?void 0:je.document);ne.dialog&&pt&&!xm(ne.dialog,pt)&&ne.dialog.focus()}),ve=gr(pt=>{pt.target===pt.currentTarget&&(C==null||C(pt),v===!0&&q())}),we=gr(pt=>{y&&cD(pt)&&ne.isTopModal()&&(x==null||x(pt),pt.defaultPrevented||q())}),Ve=M.useRef(),et=M.useRef(),tt=(...pt)=>{re(!0),he==null||he(...pt)};if(!Le)return null;const ft=Object.assign({role:u,ref:ne.setDialogRef,"aria-modal":u==="dialog"?!0:void 0},xe,{style:d,className:l,tabIndex:-1});let Ae=F?F(ft):b.jsx("div",Object.assign({},ft,{children:M.cloneElement(h,{role:"document"})}));Ae=Tw(R,T,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:Re,onExiting:ge,onExited:tt,onEnter:fe,onEntering:Oe,onEntered:Te,children:Ae});let It=null;return v&&(It=U({ref:ne.setBackdropRef,onClick:ve}),It=Tw(A,N,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:It})),b.jsx(b.Fragment,{children:Bf.createPortal(b.jsxs(b.Fragment,{children:[It,Ae]}),Le)})});fD.displayName="Modal";const D9=Object.assign(fD,{Manager:SR});function Iw(n,r){return n.classList?!!r&&n.classList.contains(r):(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+r+" ")!==-1}function k9(n,r){n.classList?n.classList.add(r):Iw(n,r)||(typeof n.className=="string"?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r))}function eO(n,r){return n.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function M9(n,r){n.classList?n.classList.remove(r):typeof n.className=="string"?n.className=eO(n.className,r):n.setAttribute("class",eO(n.className&&n.className.baseVal||"",r))}const kp={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class L9 extends SR{adjustAndStore(r,i,u){const l=i.style[r];i.dataset[r]=l,Kl(i,{[r]:`${parseFloat(Kl(i,r))+u}px`})}restore(r,i){const u=i.dataset[r];u!==void 0&&(delete i.dataset[r],Kl(i,{[r]:u}))}setContainerStyle(r){super.setContainerStyle(r);const i=this.getElement();if(k9(i,"modal-open"),!r.scrollBarWidth)return;const u=this.isRTL?"paddingLeft":"paddingRight",l=this.isRTL?"marginLeft":"marginRight";Jl(i,kp.FIXED_CONTENT).forEach(d=>this.adjustAndStore(u,d,r.scrollBarWidth)),Jl(i,kp.STICKY_CONTENT).forEach(d=>this.adjustAndStore(l,d,-r.scrollBarWidth)),Jl(i,kp.NAVBAR_TOGGLER).forEach(d=>this.adjustAndStore(l,d,r.scrollBarWidth))}removeContainerStyle(r){super.removeContainerStyle(r);const i=this.getElement();M9(i,"modal-open");const u=this.isRTL?"paddingLeft":"paddingRight",l=this.isRTL?"marginLeft":"marginRight";Jl(i,kp.FIXED_CONTENT).forEach(d=>this.restore(u,d)),Jl(i,kp.STICKY_CONTENT).forEach(d=>this.restore(l,d)),Jl(i,kp.NAVBAR_TOGGLER).forEach(d=>this.restore(l,d))}}let HE;function P9(n){return HE||(HE=new L9(n)),HE}const dD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"modal-body"),b.jsx(i,{ref:l,className:qt(n,r),...u})));dD.displayName="ModalBody";const F9=dD,V9=M.createContext({onHide(){}}),pD=V9,vD=M.forwardRef(({bsPrefix:n,className:r,contentClassName:i,centered:u,size:l,fullscreen:d,children:h,scrollable:v,...y},C)=>{n=bn(n,"modal");const x=`${n}-dialog`,R=typeof d=="string"?`${n}-fullscreen-${d}`:`${n}-fullscreen`;return b.jsx("div",{...y,ref:C,className:qt(x,r,l&&`${n}-${l}`,u&&`${x}-centered`,v&&`${x}-scrollable`,d&&R),children:b.jsx("div",{className:qt(`${n}-content`,i),children:h})})});vD.displayName="ModalDialog";const hD=vD,mD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"modal-footer"),b.jsx(i,{ref:l,className:qt(n,r),...u})));mD.displayName="ModalFooter";const B9=mD,z9={"aria-label":_t.string,onClick:_t.func,variant:_t.oneOf(["white"])},ER=M.forwardRef(({className:n,variant:r,"aria-label":i="Close",...u},l)=>b.jsx("button",{ref:l,type:"button",className:qt("btn-close",r&&`btn-close-${r}`,n),"aria-label":i,...u}));ER.displayName="CloseButton";ER.propTypes=z9;const U9=ER,H9=M.forwardRef(({closeLabel:n="Close",closeVariant:r,closeButton:i=!1,onHide:u,children:l,...d},h)=>{const v=M.useContext(pD),y=gr(()=>{v==null||v.onHide(),u==null||u()});return b.jsxs("div",{ref:h,...d,children:[l,i&&b.jsx(U9,{"aria-label":n,variant:r,onClick:y})]})}),$9=H9,gD=M.forwardRef(({bsPrefix:n,className:r,closeLabel:i="Close",closeButton:u=!1,...l},d)=>(n=bn(n,"modal-header"),b.jsx($9,{ref:d,...l,className:qt(r,n),closeLabel:i,closeButton:u})));gD.displayName="ModalHeader";const G9=gD,W9=n=>M.forwardRef((r,i)=>b.jsx("div",{...r,ref:i,className:qt(r.className,n)})),X9=W9("h4"),yD=M.forwardRef(({className:n,bsPrefix:r,as:i=X9,...u},l)=>(r=bn(r,"modal-title"),b.jsx(i,{ref:l,className:qt(n,r),...u})));yD.displayName="ModalTitle";const Y9=yD;function Z9(n){return b.jsx($p,{...n,timeout:null})}function J9(n){return b.jsx($p,{...n,timeout:null})}const bD=M.forwardRef(({bsPrefix:n,className:r,style:i,dialogClassName:u,contentClassName:l,children:d,dialogAs:h=hD,"data-bs-theme":v,"aria-labelledby":y,"aria-describedby":C,"aria-label":x,show:R=!1,animation:T=!0,backdrop:A=!0,keyboard:N=!0,onEscapeKeyDown:O,onShow:_,onHide:L,container:V,autoFocus:F=!0,enforceFocus:U=!0,restoreFocus:z=!0,restoreFocusOptions:H,onEntered:J,onExit:q,onExiting:Re,onEnter:he,onEntering:ge,onExited:fe,backdropClassName:Oe,manager:Te,...xe},je)=>{const[Le,ne]=M.useState({}),[_e,G]=M.useState(!1),Y=M.useRef(!1),re=M.useRef(!1),ye=M.useRef(null),[Se,Ne]=g0(),le=ds(je,Ne),ve=gr(L),we=P0();n=bn(n,"modal");const Ve=M.useMemo(()=>({onHide:ve}),[ve]);function et(){return Te||P9({isRTL:we})}function tt(xt){if(!tv)return;const Pn=et().getScrollbarWidth()>0,ln=xt.scrollHeight>ev(xt).documentElement.clientHeight;ne({paddingRight:Pn&&!ln?Q_():void 0,paddingLeft:!Pn&&ln?Q_():void 0})}const ft=gr(()=>{Se&&tt(Se.dialog)});xR(()=>{xw(window,"resize",ft),ye.current==null||ye.current()});const Ae=()=>{Y.current=!0},It=xt=>{Y.current&&Se&&xt.target===Se.dialog&&(re.current=!0),Y.current=!1},pt=()=>{G(!0),ye.current=ej(Se.dialog,()=>{G(!1)})},Kt=xt=>{xt.target===xt.currentTarget&&pt()},on=xt=>{if(A==="static"){Kt(xt);return}if(re.current||xt.target!==xt.currentTarget){re.current=!1;return}L==null||L()},sn=xt=>{N?O==null||O(xt):(xt.preventDefault(),A==="static"&&pt())},_n=(xt,Pn)=>{xt&&tt(xt),he==null||he(xt,Pn)},Vt=xt=>{ye.current==null||ye.current(),q==null||q(xt)},Cn=(xt,Pn)=>{ge==null||ge(xt,Pn),oR(window,"resize",ft)},qn=xt=>{xt&&(xt.style.display=""),fe==null||fe(xt),xw(window,"resize",ft)},Rr=M.useCallback(xt=>b.jsx("div",{...xt,className:qt(`${n}-backdrop`,Oe,!T&&"show")}),[T,Oe,n]),$n={...i,...Le};$n.display="block";const Tr=xt=>b.jsx("div",{role:"dialog",...xt,style:$n,className:qt(r,n,_e&&`${n}-static`,!T&&"show"),onClick:A?on:void 0,onMouseUp:It,"data-bs-theme":v,"aria-label":x,"aria-labelledby":y,"aria-describedby":C,children:b.jsx(h,{...xe,onMouseDown:Ae,className:u,contentClassName:l,children:d})});return b.jsx(pD.Provider,{value:Ve,children:b.jsx(D9,{show:R,ref:le,backdrop:A,container:V,keyboard:!0,autoFocus:F,enforceFocus:U,restoreFocus:z,restoreFocusOptions:H,onEscapeKeyDown:sn,onShow:_,onHide:L,onEnter:_n,onEntering:Cn,onEntered:J,onExit:Vt,onExiting:Re,onExited:qn,manager:et(),transition:T?Z9:void 0,backdropTransition:T?J9:void 0,renderBackdrop:Rr,renderDialog:Tr})})});bD.displayName="Modal";const Ln=Object.assign(bD,{Body:F9,Header:G9,Title:Y9,Footer:B9,Dialog:hD,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),q9=kr.forwardRef(({children:n,onClick:r},i)=>b.jsx("a",{className:"btn btn-secondary d-flex flex-column justify-content-center flex-grow-1",href:"",ref:i,onClick:u=>{u.preventDefault(),r(u)},children:b.jsx("span",{className:"dropdown-toggle",children:n})}));function Q9({requestId:n,grantNumber:r}){const{request:i,toggleActionsModal:u}=ri(n,r),{project:l}=Ji(r||i.grantNumber);if(!i||!l||i.error||l.error)return;const d=Nn.routes.request_action_path(n,"new"),h=i.allowedActions.Renewal?Array.isArray(i.allowedActions.Renewal)?[...i.allowedActions.Renewal]:[i.allowedActions.Renewal]:[];h.sort((C,x)=>C.opportunityId<x.opportunityId?-1:1);const v=[{id:"extension",action:`${d}?action_type=Extension`,isEnabled:"Extension"in i.allowedActions,button:"Request an Extension",enabled:i.usesCredits?b.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."}):b.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:b.jsxs("p",{children:["Your project is not currently eligible for an extension of its end date.",i.usesCredits?b.jsxs(b.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?b.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."]}):b.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:b.jsxs("p",{children:["Your project is not currently eligible for a supplement of additional"," ",i.usesCredits?"ACCESS Credits":"units","."]})},{id:"renewal",action:h.map(C=>[C.opportunityName,`${Nn.routes.renew_request_path(n)}?opportunity_id=${C.opportunityId}`,"post"]),isEnabled:"Renewal"in i.allowedActions,button:"Request a Renewal",enabled:b.jsxs("p",{children:["Your ",i.allocationType," project can be renewed! The requirements for renewing your project depend on the"," ",b.jsx("a",{href:Nn.routes.project_types_path(),target:"_blank",children:"new project type you select"}),"."]}),disabled:b.jsxs("p",{children:["Your project is not currently eligible for renewal.",i.usesCredits&&b.jsxs(b.Fragment,{children:[" ","Renewals are available starting 30 days before the project's current end date."]}),i.isMaximize&&b.jsxs(b.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",Nn.routes.how_to_path(),"get"],["Submit a Help Ticket","https://support.access-ci.org/open-a-ticket","get"]],isEnabled:!0,button:"Request Help",enabled:b.jsxs("p",{children:["Need to change something else about your project or expecting another option? Submit a help ticket that includes"," ",b.jsxs("em",{children:["grant number ",l.grantNumber]})," and a detailed description of the problem."]})}];v.sort((C,x)=>C.isEnabled<x.isEnabled?1:-1);const y=v.map(({id:C,action:x,isEnabled:R,button:T,enabled:A,disabled:N})=>b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-sm-4 mb-2 d-grid",children:Array.isArray(x)&&x.length?b.jsxs(Lb,{className:"d-flex flex-column",children:[b.jsx(Lb.Toggle,{as:q9,children:T}),b.jsx(Lb.Menu,{children:x.map(([O,_,L])=>b.jsx(Lb.Item,{href:_,onClick:V=>{L!=="get"&&(V.preventDefault(),V.target.dataset.method=L,$&&$.rails&&$.rails.handleMethod($(V.target)))},children:O},_))})]}):b.jsx("a",{className:`btn btn-secondary d-flex flex-column justify-content-center ${R?"":"disabled"}`,href:R?x:"",children:b.jsx("span",{children:T})})}),b.jsx("div",{className:"col-sm-8 mb-2",children:R?A:N})]},C));return b.jsxs(Ln,{size:"lg",show:i.showActionsModal,onHide:u,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Manage Your Project"})}),b.jsxs(Ln.Body,{children:[b.jsxs("p",{children:["Please select an action to manage your project"," ",b.jsxs("strong",{children:[l.grantNumber,": ",l.title]}),"."]}),y]})]})}function K9({requestId:n,grantNumber:r}){const{request:i,toggleActionsModal:u,toggleConfirmModal:l}=ri(n,r),{project:d}=Ji(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const h=i.usesCredits?"credits":"units",v=(1-MA(i))*100;return b.jsxs(Ln,{size:"lg",show:i.showConfirmModal,onHide:l,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Consider Requesting an Exchange"})}),b.jsx(Ln.Body,{children:b.jsxs("p",{children:[b.jsxs("strong",{children:[Math.round(v),"% of your allocation is unused."]})," ","Are you sure you want to request more ",h,"? You can exchange"," ",i.usesCredits?"credits for resources or ":""," one resource for another by changing the ",b.jsx("strong",{children:"balance"})," numbers in the table on the previous screen."]})}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:l,children:"Return to Exchange"}),b.jsxs("button",{type:"button",className:"btn btn-secondary",onClick:()=>{l(),u()},children:["Request More ",h]})]})})]})}function e4({requestId:n,grantNumber:r,actionId:i}){const{deleteAction:u,request:l,toggleDeleteModal:d}=ri(n,r);if(!l||l.error)return;const h=l.actions.find(T=>T.actionId==i);if(!h)return;const{deleteStatus:v,isRequest:y}=h,C=v==ea.pending,x=v==ea.error,R=()=>d(i);return b.jsxs(Ln,{show:h.showDeleteModal,onHide:R,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Confirm Deletion"})}),b.jsxs(Ln.Body,{children:[x&&b.jsxs(ma,{color:"danger",children:["Deletion of the ",y?"request":"action"," failed."]}),b.jsxs("p",{children:["Are you sure you want to delete"," ",!y&&b.jsxs(b.Fragment,{children:["action"," ",b.jsxs("strong",{children:[h.type,": ",Vp(h.date)]})," ","on"," "]}),"request ",b.jsx("strong",{children:Kw(l)}),"? Deletions cannot be undone."]})]}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:R,disabled:C,children:"Cancel"}),b.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>u(i),disabled:C,children:C?"Deleting...":"Delete"})]})})]})}function CD({action:n,request:r,toggleDeleteModal:i}){const u=n.allowedOperations||[],l=[];u.includes("Edit")&&l.push(b.jsx(c0,{href:n.isRequest?Nn.routes.edit_request_path(r.requestId):Nn.routes.edit_request_action_path(r.requestId,n.actionId),icon:"pencil",title:"Edit action"},"edit")),u.includes("Delete")&&l.push(b.jsx(c0,{color:"danger",icon:"trash",onClick:()=>i(n.actionId),title:"Edit action"},"delete"));const d=`${n.type}: ${Vp(n.date)}`;return b.jsxs(b.Fragment,{children:[n.detailAvailable?b.jsx("a",{href:Nn.routes.request_action_path(r.requestId,n.actionId),children:d}):d,l]})}const t4="_grid_15z6r_1",n4="_important_15z6r_32",r4="_input_15z6r_36",a4="_edited_15z6r_40",i4="_disabled_15z6r_48",Bp={grid:t4,important:n4,input:r4,edited:a4,disabled:i4};function o4({column:n,row:r,style:i={}}){const u=n.format?n.format(r[n.key],r):r[n.key],l=["cell"];return n.class&&l.push(n.class),n.rowClass&&l.push(n.rowClass(r)),b.jsx("td",{className:l.join(" "),style:i,children:u})}const s4={text:o4};function Qf({columns:n,rows:r,classes:i,frozenColumns:u=0,minWidth:l,rowClasses:d=[],scrollBehavior:h="smooth",scrollRowIndex:v=0}){const y=M.useRef();M.useLayoutEffect(()=>{if(!y.current)return;const N=y.current.querySelector(`tbody tr:nth-child(${v+1})`);N&&N.scrollIntoView({behavior:h,block:"nearest",inline:"nearest"})},[v,h]);const C=[0];for(let N=0;N<u;N++)C[N+1]=C[N]+(n[N].width||100);const x=(N,O)=>N<u?{position:"sticky",left:`${C[N]}px`,minWidth:`${n[N].width||100}px`,width:`${n[N].width||100}px`,zIndex:O||1}:{},R=n.map((N,O)=>b.jsx("th",{className:N.headerClass||N.class||"",style:x(O,100),children:N.formatHeader?N.formatHeader(N.name,N):N.name},N.key)),T=r.map((N,O)=>{const _=n.map((L,V)=>{const F=s4[L.type||"text"];return b.jsx(F,{column:L,row:N,style:x(V)},L.key)});return b.jsx("tr",{className:d[O]||"",children:_},O)}),A={};return l&&(A.minWidth=l),b.jsx("div",{className:`${Bp.grid} ${i||""}`,ref:y,children:b.jsxs("table",{className:"table table-bordered",style:A,children:[b.jsx("thead",{children:b.jsx("tr",{children:R})}),b.jsx("tbody",{children:T})]})})}function Zp({status:n,title:r}){const i={Active:"primary",Approved:"primary",New:"secondary",Pending:"secondary","Under Review":"secondary"}[n]||"dark";return b.jsx("span",{className:`badge text-bg-${i} align-self-center`,title:r,children:n})}const l4=n=>b.jsx("span",{className:n<0?"text-danger":"",children:n===0?"":n.toLocaleString()});function u4({requestId:n,grantNumber:r}){const{request:i,toggleDeleteModal:u}=ri(n,r),{project:l,setRequest:d}=Ji(r||i.grantNumber);if(!i||!l)return;const h=l.requestsList;let v=0;for(;v<h.length&&h[v].requestId!==n;)v++;const y=h[v+1],C=h[v-1],x=(O,_)=>O?b.jsxs("button",{type:"button",className:"btn btn-light btn-sm",onClick:()=>d(O.requestId),children:[_=="prev"?b.jsx("i",{className:"bi bi-chevron-left"}):null,Kw(O),_=="next"?b.jsx("i",{className:"bi bi-chevron-right"}):null]}):b.jsx("span",{}),R=new Set,T=[];for(let O of i.actions)for(let _ of O.resources)R.has(_.resourceId)||(R.add(_.resourceId),T.push(_));T.sort(f0);const A=[{key:"action",name:"Action Details",format:(O,_)=>b.jsx(CD,{action:_,request:i,toggleDeleteModal:u})},{key:"status",name:"Status",format:O=>b.jsx(Zp,{status:O})},...T.map(O=>({key:`resource${O.resourceId}`,name:O.name,icon:O.icon,class:"text-end",format:O.isBoolean?_=>_?eR(_):null:l4,formatHeader:(_,L)=>Uf(L,{userGuide:!1})}))],N=i.actions.map(O=>{const _={...O};for(let{resourceId:L}of T)_[`resource${L}`]=0;for(let{resourceId:L,approved:V,requested:F}of O.resources)_[`resource${L}`]=V||F||0;return _});return b.jsxs("div",{className:"history",children:[b.jsx(Qf,{columns:A,rows:N}),b.jsxs("div",{className:"buttons d-flex justify-content-between",children:[x(y,"prev"),x(C,"next")]})]})}function c4({requestId:n,grantNumber:r}){const{request:i,toggleDeleteModal:u}=ri(n,r);if(!i)return;const l=[{key:"type",name:"Action Details",format:(d,h)=>b.jsx(CD,{action:h,request:i,toggleDeleteModal:u})},{key:"status",name:"Status",format:d=>b.jsx(Zp,{status:d})}];if(i.actions&&i.actions.length)return b.jsx(Qf,{rows:i.actions,columns:l})}function im(...n){return n.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(...l){r.apply(this,l),i.apply(this,l)}},null)}const f4={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function d4(n,r){const i=`offset${n[0].toUpperCase()}${n.slice(1)}`,u=r[i],l=f4[n];return u+parseInt(Kl(r,l[0]),10)+parseInt(Kl(r,l[1]),10)}const p4={[dc]:"collapse",[h0]:"collapsing",[Zl]:"collapsing",[pc]:"collapse show"},v4=kr.forwardRef(({onEnter:n,onEntering:r,onEntered:i,onExit:u,onExiting:l,className:d,children:h,dimension:v="height",in:y=!1,timeout:C=300,mountOnEnter:x=!1,unmountOnExit:R=!1,appear:T=!1,getDimensionValue:A=d4,...N},O)=>{const _=typeof v=="function"?v():v,L=M.useMemo(()=>im(H=>{H.style[_]="0"},n),[_,n]),V=M.useMemo(()=>im(H=>{const J=`scroll${_[0].toUpperCase()}${_.slice(1)}`;H.style[_]=`${H[J]}px`},r),[_,r]),F=M.useMemo(()=>im(H=>{H.style[_]=null},i),[_,i]),U=M.useMemo(()=>im(H=>{H.style[_]=`${A(_,H)}px`,nj(H)},u),[u,A,_]),z=M.useMemo(()=>im(H=>{H.style[_]=null},l),[_,l]);return b.jsx(rj,{ref:O,addEndListener:tj,...N,"aria-expanded":N.role?y:null,onEnter:L,onEntering:V,onEntered:F,onExit:U,onExiting:z,childRef:h.ref,in:y,timeout:C,mountOnEnter:x,unmountOnExit:R,appear:T,children:(H,J)=>kr.cloneElement(h,{...J,className:qt(d,h.props.className,p4[H],_==="width"&&"collapse-horizontal")})})}),h4=v4;function xD(n,r){return Array.isArray(n)?n.includes(r):n===r}const SD=M.createContext({});SD.displayName="AccordionContext";const U0=SD,ED=M.forwardRef(({as:n="div",bsPrefix:r,className:i,children:u,eventKey:l,...d},h)=>{const{activeEventKey:v}=M.useContext(U0);return r=bn(r,"accordion-collapse"),b.jsx(h4,{ref:h,in:xD(v,l),...d,className:qt(i,r),children:b.jsx(n,{children:M.Children.only(u)})})});ED.displayName="AccordionCollapse";const wD=ED,RD=M.createContext({eventKey:""});RD.displayName="AccordionItemContext";const wR=RD,TD=M.forwardRef(({as:n="div",bsPrefix:r,className:i,onEnter:u,onEntering:l,onEntered:d,onExit:h,onExiting:v,onExited:y,...C},x)=>{r=bn(r,"accordion-body");const{eventKey:R}=M.useContext(wR);return b.jsx(wD,{eventKey:R,onEnter:u,onEntering:l,onEntered:d,onExit:h,onExiting:v,onExited:y,children:b.jsx(n,{ref:x,...C,className:qt(i,r)})})});TD.displayName="AccordionBody";const m4=TD;function g4(n,r){const{activeEventKey:i,onSelect:u,alwaysOpen:l}=M.useContext(U0);return d=>{let h=n===i?null:n;l&&(Array.isArray(i)?i.includes(n)?h=i.filter(v=>v!==n):h=[...i,n]:h=[n]),u==null||u(h,d),r==null||r(d)}}const ID=M.forwardRef(({as:n="button",bsPrefix:r,className:i,onClick:u,...l},d)=>{r=bn(r,"accordion-button");const{eventKey:h}=M.useContext(wR),v=g4(h,u),{activeEventKey:y}=M.useContext(U0);return n==="button"&&(l.type="button"),b.jsx(n,{ref:d,onClick:v,...l,"aria-expanded":Array.isArray(y)?y.includes(h):h===y,className:qt(i,r,!xD(y,h)&&"collapsed")})});ID.displayName="AccordionButton";const ND=ID,_D=M.forwardRef(({as:n="h2",bsPrefix:r,className:i,children:u,onClick:l,...d},h)=>(r=bn(r,"accordion-header"),b.jsx(n,{ref:h,...d,className:qt(i,r),children:b.jsx(ND,{onClick:l,children:u})})));_D.displayName="AccordionHeader";const y4=_D,OD=M.forwardRef(({as:n="div",bsPrefix:r,className:i,eventKey:u,...l},d)=>{r=bn(r,"accordion-item");const h=M.useMemo(()=>({eventKey:u}),[u]);return b.jsx(wR.Provider,{value:h,children:b.jsx(n,{ref:d,...l,className:qt(i,r)})})});OD.displayName="AccordionItem";const b4=OD,AD=M.forwardRef((n,r)=>{const{as:i="div",activeKey:u,bsPrefix:l,className:d,onSelect:h,flush:v,alwaysOpen:y,...C}=F0(n,{activeKey:"onSelect"}),x=bn(l,"accordion"),R=M.useMemo(()=>({activeEventKey:u,onSelect:h,alwaysOpen:y}),[u,h,y]);return b.jsx(U0.Provider,{value:R,children:b.jsx(i,{ref:r,...C,className:qt(d,x,v&&`${x}-flush`)})})});AD.displayName="Accordion";const os=Object.assign(AD,{Button:ND,Collapse:wD,Item:b4,Header:y4,Body:m4}),Nw=2**31-1;function jD(n,r,i){const u=i-Date.now();n.current=u<=Nw?setTimeout(r,u):setTimeout(()=>jD(n,r,i),Nw)}function C4(){const n=fR(),r=M.useRef();return xR(()=>clearTimeout(r.current)),M.useMemo(()=>{const i=()=>clearTimeout(r.current);function u(l,d=0){n()&&(i(),d<=Nw?r.current=setTimeout(l,d):jD(r,l,Date.now()+d))}return{set:u,clear:i,handleRef:r}},[])}const x4=()=>{};function S4(n,r,{disabled:i,clickTrigger:u}={}){const l=r||x4;zj(n,l,{disabled:i,clickTrigger:u});const d=gr(h=>{cD(h)&&l(h)});M.useEffect(()=>{if(i||n==null)return;const h=ev(Qb(n));let v=(h.defaultView||window).event;const y=ql(h,"keyup",C=>{if(C===v){v=void 0;return}d(C)});return()=>{y()}},[n,i,d])}const DD=M.forwardRef((n,r)=>{const{flip:i,offset:u,placement:l,containerPadding:d,popperConfig:h={},transition:v,runTransition:y}=n,[C,x]=g0(),[R,T]=g0(),A=ds(x,r),N=Rw(n.container),O=Rw(n.target),[_,L]=M.useState(!n.show),V=Vj(O,C,Uj({placement:l,enableEvents:!!n.show,containerPadding:d||5,flip:i,offset:u,arrowElement:R,popperConfig:h}));n.show&&_&&L(!1);const F=(...ge)=>{L(!0),n.onExited&&n.onExited(...ge)},U=n.show||!_;if(S4(C,n.onHide,{disabled:!n.rootClose||n.rootCloseDisabled,clickTrigger:n.rootCloseEvent}),!U)return null;const{onExit:z,onExiting:H,onEnter:J,onEntering:q,onEntered:Re}=n;let he=n.children(Object.assign({},V.attributes.popper,{style:V.styles.popper,ref:A}),{popper:V,placement:l,show:!!n.show,arrowProps:Object.assign({},V.attributes.arrow,{style:V.styles.arrow,ref:T})});return he=Tw(v,y,{in:!!n.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:he,onExit:z,onExiting:H,onExited:F,onEnter:J,onEntering:q,onEntered:Re}),N?Bf.createPortal(he,N):null});DD.displayName="Overlay";const E4=DD,kD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"popover-header"),b.jsx(i,{ref:l,className:qt(n,r),...u})));kD.displayName="PopoverHeader";const w4=kD,MD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"popover-body"),b.jsx(i,{ref:l,className:qt(n,r),...u})));MD.displayName="PopoverBody";const LD=MD;function PD(n,r){let i=n;return n==="left"?i=r?"end":"start":n==="right"&&(i=r?"start":"end"),i}function FD(n="absolute"){return{position:n,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const R4=M.forwardRef(({bsPrefix:n,placement:r="right",className:i,style:u,children:l,body:d,arrowProps:h,hasDoneInitialMeasure:v,popper:y,show:C,...x},R)=>{const T=bn(n,"popover"),A=P0(),[N]=(r==null?void 0:r.split("-"))||[],O=PD(N,A);let _=u;return C&&!v&&(_={...u,...FD(y==null?void 0:y.strategy)}),b.jsxs("div",{ref:R,role:"tooltip",style:_,"x-placement":N,className:qt(i,T,N&&`bs-popover-${O}`),...x,children:[b.jsx("div",{className:"popover-arrow",...h}),d?b.jsx(LD,{children:l}):l]})}),T4=Object.assign(R4,{Header:w4,Body:LD,POPPER_OFFSET:[0,8]}),VD=M.forwardRef(({bsPrefix:n,placement:r="right",className:i,style:u,children:l,arrowProps:d,hasDoneInitialMeasure:h,popper:v,show:y,...C},x)=>{n=bn(n,"tooltip");const R=P0(),[T]=(r==null?void 0:r.split("-"))||[],A=PD(T,R);let N=u;return y&&!h&&(N={...u,...FD(v==null?void 0:v.strategy)}),b.jsxs("div",{ref:x,style:N,role:"tooltip","x-placement":T,className:qt(i,n,`bs-tooltip-${A}`),...C,children:[b.jsx("div",{className:"tooltip-arrow",...d}),b.jsx("div",{className:`${n}-inner`,children:l})]})});VD.displayName="Tooltip";const RR=Object.assign(VD,{TOOLTIP_OFFSET:[0,6]});function I4(n){const r=M.useRef(null),i=bn(void 0,"popover"),u=bn(void 0,"tooltip"),l=M.useMemo(()=>({name:"offset",options:{offset:()=>{if(n)return n;if(r.current){if(Iw(r.current,i))return T4.POPPER_OFFSET;if(Iw(r.current,u))return RR.TOOLTIP_OFFSET}return[0,0]}}}),[n,i,u]);return[r,[l]]}function N4(n,r){const{ref:i}=n,{ref:u}=r;n.ref=i.__wrapped||(i.__wrapped=l=>i(m0(l))),r.ref=u.__wrapped||(u.__wrapped=l=>u(m0(l)))}const BD=M.forwardRef(({children:n,transition:r=$p,popperConfig:i={},rootClose:u=!1,placement:l="top",show:d=!1,...h},v)=>{const y=M.useRef({}),[C,x]=M.useState(null),[R,T]=I4(h.offset),A=ds(v,R),N=r===!0?$p:r||void 0,O=gr(_=>{x(_),i==null||i.onFirstUpdate==null||i.onFirstUpdate(_)});return y0(()=>{C&&h.target&&(y.current.scheduleUpdate==null||y.current.scheduleUpdate())},[C,h.target]),M.useEffect(()=>{d||x(null)},[d]),b.jsx(E4,{...h,ref:A,popperConfig:{...i,modifiers:T.concat(i.modifiers||[]),onFirstUpdate:O},transition:N,rootClose:u,placement:l,show:d,children:(_,{arrowProps:L,popper:V,show:F})=>{var U,z;N4(_,L);const H=V==null?void 0:V.placement,J=Object.assign(y.current,{state:V==null?void 0:V.state,scheduleUpdate:V==null?void 0:V.update,placement:H,outOfBoundaries:(V==null||(U=V.state)==null||(z=U.modifiersData.hide)==null?void 0:z.isReferenceHidden)||!1,strategy:i.strategy}),q=!!C;return typeof n=="function"?n({..._,placement:H,show:F,...!r&&F&&{className:"show"},popper:J,arrowProps:L,hasDoneInitialMeasure:q}):M.cloneElement(n,{..._,placement:H,arrowProps:L,popper:J,hasDoneInitialMeasure:q,className:qt(n.props.className,!r&&F&&"show"),style:{...n.props.style,..._.style}})}})});BD.displayName="Overlay";const zD=BD;var _4={};function O4(n){return n&&typeof n=="object"?n:{show:n,hide:n}}function tO(n,r,i){const[u]=r,l=u.currentTarget,d=u.relatedTarget||u.nativeEvent[i];(!d||d!==l)&&!xm(l,d)&&n(...r)}_t.oneOf(["click","hover","focus"]);const A4=({trigger:n=["hover","focus"],overlay:r,children:i,popperConfig:u={},show:l,defaultShow:d=!1,onToggle:h,delay:v,placement:y,flip:C=y&&y.indexOf("auto")!==-1,...x})=>{const R=M.useRef(null),T=ds(R,i.ref),A=C4(),N=M.useRef(""),[O,_]=dj(l,d,h),L=O4(v),{onFocus:V,onBlur:F,onClick:U}=typeof i!="function"?M.Children.only(i).props:{},z=xe=>{T(m0(xe))},H=M.useCallback(()=>{if(A.clear(),N.current="show",!L.show){_(!0);return}A.set(()=>{N.current==="show"&&_(!0)},L.show)},[L.show,_,A]),J=M.useCallback(()=>{if(A.clear(),N.current="hide",!L.hide){_(!1);return}A.set(()=>{N.current==="hide"&&_(!1)},L.hide)},[L.hide,_,A]),q=M.useCallback((...xe)=>{H(),V==null||V(...xe)},[H,V]),Re=M.useCallback((...xe)=>{J(),F==null||F(...xe)},[J,F]),he=M.useCallback((...xe)=>{_(!O),U==null||U(...xe)},[U,_,O]),ge=M.useCallback((...xe)=>{tO(H,xe,"fromElement")},[H]),fe=M.useCallback((...xe)=>{tO(J,xe,"toElement")},[J]),Oe=n==null?[]:[].concat(n),Te={ref:z};return Oe.indexOf("click")!==-1&&(Te.onClick=he),Oe.indexOf("focus")!==-1&&(Te.onFocus=q,Te.onBlur=Re),Oe.indexOf("hover")!==-1&&(_4.NODE_ENV!=="production"&&bR(Oe.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.'),Te.onMouseOver=ge,Te.onMouseOut=fe),b.jsxs(b.Fragment,{children:[typeof i=="function"?i(Te):M.cloneElement(i,Te),b.jsx(zD,{...x,show:O,onHide:J,flip:C,placement:y,popperConfig:u,target:R.current,children:r})]})},UD=A4;function j4({requestId:n,grantNumber:r}){const{request:i}=ri(n,r),{project:u}=Ji(r||i.grantNumber),{setTab:l}=Ji(r||i.grantNumber);if(!i||!u)return;let d;const h={};for(let T of u.users||[])for(let A of T.resourceIds)h[A]=h[A]||0,h[A]+=1;const v=(i.resources||[]).filter(T=>T.isCredit?(d=T,!1):T.allocated>0).map((T,A)=>({...T,userCount:h[T.resourceId]||0,color:pw[A%pw.length]})),y=d?d.allocated:0,C="Exchange"in i.allowedActions,x=i.exchangeActionId!==null,R=[{key:"name",name:"Resource",format:(T,A)=>Uf(A)},{key:"isActive",name:"Status",format:T=>b.jsx(Zp,{status:T?"Active":"Inactive"})},{key:"used",name:"Balance",class:"position-relative",format:(T,A)=>{if(A.isBoolean)return eR(A.allocated);const N=A.allocated-T,O=Math.max(N,0)*100/A.allocated;return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:`usage bg-${A.color}`,style:{width:`${Math.min(O,100)}%`}}),ni(N,{abbreviate:!0})," of"," ",ni(A.allocated,{abbreviate:!0})," ",A.unit," ","remaining (",Math.round(O),"%)"]})}},{key:"endDate",name:"End Date",format:T=>Vp(T)}];return u.isManager&&R.push({key:"userCount",name:"Users",class:"text-end",format:ni}),u.currentUser&&R.push({key:"resourceUsername",name:"My Username",format:(T,A)=>{const N=u.currentUser.resourceUsernames[A.resourceId];if(N)return N;if(u.currentUser.resourceAccountPendingIds.includes(A.resourceId))return b.jsx(Zp,{status:"Pending",title:"Creation of your account by the resource provider is pending."});if(u.currentUser.resourceIds.includes(A.resourceId)||!A.isActive)return b.jsx(b.Fragment,{children:"—"});if(u.isManager)return b.jsx("a",{href:"#",onClick:_=>{_.preventDefault(),l("users")},children:"Grant access"});const O=b.jsxs(RR,{children:["Please contact ",tR(u)," to request access to this resource."]});return b.jsx(UD,{overlay:O,children:b.jsx("a",{href:"#",onClick:_=>{_.preventDefault()},children:"Request access"})})}}),b.jsxs("div",{className:"overview",children:[C&&!x&&y>Nn.creditAlertThreshold?b.jsxs("button",{onClick:()=>l("resources"),className:"alert alert-info d-flex justify-content-between align-items-center w-100",children:[b.jsxs("span",{children:[b.jsxs("span",{className:"fs-3",children:[mc(Nn.resourceTypeIcons[d.icon])," ",ni(y)]})," ",d.unit," available"]}),b.jsxs("span",{className:"align-middle d-flex align-items-center",children:["Exchange credits for resources!"," ",b.jsx("span",{className:"fs-3",children:mc("chevron-right")})]})]}):null,v.length?b.jsx(Qf,{columns:R,rows:v}):null]})}const D4=[{key:"role",name:"Role",format:n=>b.jsxs(b.Fragment,{children:[mc(Nn.roleIcons[n])," ",n]})},{key:"users",name:"Users",format:n=>{const r=n.slice(0,3);return n.length>4&&(r[2]=`${ni(n.length-3)} others`),r.map((i,u)=>{const l=r.length-u;return`${i}${l>2?",":l==2&&r.length>1?" and":""}`}).join(" ")}}],k4=({requestId:n,grantNumber:r})=>{const{project:i}=Ji(r);if(!i)return;const u=L0.map(({role:l,name:d})=>({role:d,users:(i.users||[]).filter(h=>h.role===l).map(h=>`${h.firstName} ${h.lastName}`)})).filter(l=>l.users.length>0);return u.length?b.jsx(Qf,{rows:u,columns:D4}):null};function M4({requestId:n,grantNumber:r}){const{request:i}=ri(n,r),{project:u,username:l}=Ji(r||i.grantNumber);if(!(!i||!u||i.error||u.error)&&i)return b.jsxs("div",{className:"overview",children:[b.jsx(j4,{requestId:n,grantNumber:r}),u.isManager?b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-lg-6",children:b.jsx(k4,{requestId:n,grantNumber:r})}),b.jsx("div",{className:"col-lg-6",children:b.jsx(c4,{requestId:n})})]}):null]})}function Yf(n){"@babel/helpers - typeof";return Yf=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},Yf(n)}function L4(n,r){if(Yf(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var u=i.call(n,r||"default");if(Yf(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function HD(n){var r=L4(n,"string");return Yf(r)=="symbol"?r:String(r)}function Lp(n,r,i){return r=HD(r),r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n}function nO(n,r){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);r&&(u=u.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,u)}return i}function yt(n){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?nO(Object(i),!0).forEach(function(u){Lp(n,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):nO(Object(i)).forEach(function(u){Object.defineProperty(n,u,Object.getOwnPropertyDescriptor(i,u))})}return n}function P4(n){if(Array.isArray(n))return n}function F4(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var u,l,d,h,v=[],y=!0,C=!1;try{if(d=(i=i.call(n)).next,r===0){if(Object(i)!==i)return;y=!1}else for(;!(y=(u=d.call(i)).done)&&(v.push(u.value),v.length!==r);y=!0);}catch(x){C=!0,l=x}finally{try{if(!y&&i.return!=null&&(h=i.return(),Object(h)!==h))return}finally{if(C)throw l}}return v}}function _w(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,u=new Array(r);i<r;i++)u[i]=n[i];return u}function $D(n,r){if(n){if(typeof n=="string")return _w(n,r);var i=Object.prototype.toString.call(n).slice(8,-1);if(i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set")return Array.from(n);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _w(n,r)}}function V4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
294
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ta(n,r){return P4(n)||F4(n,r)||$D(n,r)||V4()}function nl(n,r){if(n==null)return{};var i=iR(n,r),u,l;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(l=0;l<d.length;l++)u=d[l],!(r.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(n,u)&&(i[u]=n[u])}return i}var B4=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function GD(n){var r=n.defaultInputValue,i=r===void 0?"":r,u=n.defaultMenuIsOpen,l=u===void 0?!1:u,d=n.defaultValue,h=d===void 0?null:d,v=n.inputValue,y=n.menuIsOpen,C=n.onChange,x=n.onInputChange,R=n.onMenuClose,T=n.onMenuOpen,A=n.value,N=nl(n,B4),O=M.useState(v!==void 0?v:i),_=ta(O,2),L=_[0],V=_[1],F=M.useState(y!==void 0?y:l),U=ta(F,2),z=U[0],H=U[1],J=M.useState(A!==void 0?A:h),q=ta(J,2),Re=q[0],he=q[1],ge=M.useCallback(function(ne,_e){typeof C=="function"&&C(ne,_e),he(ne)},[C]),fe=M.useCallback(function(ne,_e){var G;typeof x=="function"&&(G=x(ne,_e)),V(G!==void 0?G:ne)},[x]),Oe=M.useCallback(function(){typeof T=="function"&&T(),H(!0)},[T]),Te=M.useCallback(function(){typeof R=="function"&&R(),H(!1)},[R]),xe=v!==void 0?v:L,je=y!==void 0?y:z,Le=A!==void 0?A:Re;return yt(yt({},N),{},{inputValue:xe,menuIsOpen:je,onChange:ge,onInputChange:fe,onMenuClose:Te,onMenuOpen:Oe,value:Le})}function z4(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function rO(n,r){for(var i=0;i<r.length;i++){var u=r[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,HD(u.key),u)}}function U4(n,r,i){return r&&rO(n.prototype,r),i&&rO(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function H4(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),r&&v0(n,r)}function C0(n){return C0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},C0(n)}function WD(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WD=function(){return!!n})()}function $4(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function G4(n,r){if(r&&(Yf(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $4(n)}function W4(n){var r=WD();return function(){var u=C0(n),l;if(r){var d=C0(this).constructor;l=Reflect.construct(u,arguments,d)}else l=u.apply(this,arguments);return G4(this,l)}}function X4(n){if(Array.isArray(n))return _w(n)}function Y4(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Z4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
295
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TR(n){return X4(n)||Y4(n)||$D(n)||Z4()}var Fb={};function J4(n){if(n.sheet)return n.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===n)return document.styleSheets[r]}function q4(n){var r=document.createElement("style");return r.setAttribute("data-emotion",n.key),n.nonce!==void 0&&r.setAttribute("nonce",n.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var Q4=function(){function n(i){var u=this;this._insertTag=function(l){var d;u.tags.length===0?u.insertionPoint?d=u.insertionPoint.nextSibling:u.prepend?d=u.container.firstChild:d=u.before:d=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(l,d),u.tags.push(l)},this.isSpeedy=i.speedy===void 0?Fb.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=n.prototype;return r.hydrate=function(u){u.forEach(this._insertTag)},r.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(q4(this));var l=this.tags[this.tags.length-1];if(Fb.NODE_ENV!=="production"){var d=u.charCodeAt(0)===64&&u.charCodeAt(1)===105;d&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
296
|
+
`+u+"\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 h=J4(l);try{h.insertRule(u,h.cssRules.length)}catch(v){Fb.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(u)&&console.error('There was a problem inserting the following rule: "'+u+'"',v)}}else l.appendChild(document.createTextNode(u));this.ctr++},r.flush=function(){this.tags.forEach(function(u){return u.parentNode&&u.parentNode.removeChild(u)}),this.tags=[],this.ctr=0,Fb.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},n}(),Va="-ms-",x0="-moz-",gn="-webkit-",IR="comm",NR="rule",_R="decl",K4="@import",XD="@keyframes",eW="@layer",tW=Math.abs,H0=String.fromCharCode,nW=Object.assign;function rW(n,r){return ha(n,0)^45?(((r<<2^ha(n,0))<<2^ha(n,1))<<2^ha(n,2))<<2^ha(n,3):0}function YD(n){return n.trim()}function aW(n,r){return(n=r.exec(n))?n[0]:n}function yn(n,r,i){return n.replace(r,i)}function Ow(n,r){return n.indexOf(r)}function ha(n,r){return n.charCodeAt(r)|0}function Sm(n,r,i){return n.slice(r,i)}function Qs(n){return n.length}function OR(n){return n.length}function Vb(n,r){return r.push(n),n}function iW(n,r){return n.map(r).join("")}var $0=1,Jp=1,ZD=0,ji=0,Dr=0,rv="";function G0(n,r,i,u,l,d,h){return{value:n,root:r,parent:i,type:u,props:l,children:d,line:$0,column:Jp,length:h,return:""}}function om(n,r){return nW(G0("",null,null,"",null,null,0),n,{length:-n.length},r)}function oW(){return Dr}function sW(){return Dr=ji>0?ha(rv,--ji):0,Jp--,Dr===10&&(Jp=1,$0--),Dr}function Xi(){return Dr=ji<ZD?ha(rv,ji++):0,Jp++,Dr===10&&(Jp=1,$0++),Dr}function tl(){return ha(rv,ji)}function Kb(){return ji}function km(n,r){return Sm(rv,n,r)}function Em(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function JD(n){return $0=Jp=1,ZD=Qs(rv=n),ji=0,[]}function qD(n){return rv="",n}function e0(n){return YD(km(ji-1,Aw(n===91?n+2:n===40?n+1:n)))}function lW(n){for(;(Dr=tl())&&Dr<33;)Xi();return Em(n)>2||Em(Dr)>3?"":" "}function uW(n,r){for(;--r&&Xi()&&!(Dr<48||Dr>102||Dr>57&&Dr<65||Dr>70&&Dr<97););return km(n,Kb()+(r<6&&tl()==32&&Xi()==32))}function Aw(n){for(;Xi();)switch(Dr){case n:return ji;case 34:case 39:n!==34&&n!==39&&Aw(Dr);break;case 40:n===41&&Aw(n);break;case 92:Xi();break}return ji}function cW(n,r){for(;Xi()&&n+Dr!==57;)if(n+Dr===84&&tl()===47)break;return"/*"+km(r,ji-1)+"*"+H0(n===47?n:Xi())}function fW(n){for(;!Em(tl());)Xi();return km(n,ji)}function dW(n){return qD(t0("",null,null,null,[""],n=JD(n),0,[0],n))}function t0(n,r,i,u,l,d,h,v,y){for(var C=0,x=0,R=h,T=0,A=0,N=0,O=1,_=1,L=1,V=0,F="",U=l,z=d,H=u,J=F;_;)switch(N=V,V=Xi()){case 40:if(N!=108&&ha(J,R-1)==58){Ow(J+=yn(e0(V),"&","&\f"),"&\f")!=-1&&(L=-1);break}case 34:case 39:case 91:J+=e0(V);break;case 9:case 10:case 13:case 32:J+=lW(N);break;case 92:J+=uW(Kb()-1,7);continue;case 47:switch(tl()){case 42:case 47:Vb(pW(cW(Xi(),Kb()),r,i),y);break;default:J+="/"}break;case 123*O:v[C++]=Qs(J)*L;case 125*O:case 59:case 0:switch(V){case 0:case 125:_=0;case 59+x:L==-1&&(J=yn(J,/\f/g,"")),A>0&&Qs(J)-R&&Vb(A>32?iO(J+";",u,i,R-1):iO(yn(J," ","")+";",u,i,R-2),y);break;case 59:J+=";";default:if(Vb(H=aO(J,r,i,C,x,l,v,F,U=[],z=[],R),d),V===123)if(x===0)t0(J,r,H,H,U,d,R,v,z);else switch(T===99&&ha(J,3)===110?100:T){case 100:case 108:case 109:case 115:t0(n,H,H,u&&Vb(aO(n,H,H,0,0,l,v,F,l,U=[],R),z),l,z,R,v,u?U:z);break;default:t0(J,H,H,H,[""],z,0,v,z)}}C=x=A=0,O=L=1,F=J="",R=h;break;case 58:R=1+Qs(J),A=N;default:if(O<1){if(V==123)--O;else if(V==125&&O++==0&&sW()==125)continue}switch(J+=H0(V),V*O){case 38:L=x>0?1:(J+="\f",-1);break;case 44:v[C++]=(Qs(J)-1)*L,L=1;break;case 64:tl()===45&&(J+=e0(Xi())),T=tl(),x=R=Qs(F=J+=fW(Kb())),V++;break;case 45:N===45&&Qs(J)==2&&(O=0)}}return d}function aO(n,r,i,u,l,d,h,v,y,C,x){for(var R=l-1,T=l===0?d:[""],A=OR(T),N=0,O=0,_=0;N<u;++N)for(var L=0,V=Sm(n,R+1,R=tW(O=h[N])),F=n;L<A;++L)(F=YD(O>0?T[L]+" "+V:yn(V,/&\f/g,T[L])))&&(y[_++]=F);return G0(n,r,i,l===0?NR:v,y,C,x)}function pW(n,r,i){return G0(n,r,i,IR,H0(oW()),Sm(n,2,-2),0)}function iO(n,r,i,u){return G0(n,r,i,_R,Sm(n,0,u),Sm(n,u+1,-1),u)}function zp(n,r){for(var i="",u=OR(n),l=0;l<u;l++)i+=r(n[l],l,n,r)||"";return i}function vW(n,r,i,u){switch(n.type){case eW:if(n.children.length)break;case K4:case _R:return n.return=n.return||n.value;case IR:return"";case XD:return n.return=n.value+"{"+zp(n.children,u)+"}";case NR:n.value=n.props.join(",")}return Qs(i=zp(n.children,u))?n.return=n.value+"{"+i+"}":""}function hW(n){var r=OR(n);return function(i,u,l,d){for(var h="",v=0;v<r;v++)h+=n[v](i,u,l,d)||"";return h}}function mW(n){return function(r){r.root||(r=r.return)&&n(r)}}function gW(n){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=n(i)),r[i]}}var sm={},yW=function(r,i,u){for(var l=0,d=0;l=d,d=tl(),l===38&&d===12&&(i[u]=1),!Em(d);)Xi();return km(r,ji)},bW=function(r,i){var u=-1,l=44;do switch(Em(l)){case 0:l===38&&tl()===12&&(i[u]=1),r[u]+=yW(ji-1,i,u);break;case 2:r[u]+=e0(l);break;case 4:if(l===44){r[++u]=tl()===58?"&\f":"",i[u]=r[u].length;break}default:r[u]+=H0(l)}while(l=Xi());return r},CW=function(r,i){return qD(bW(JD(r),i))},oO=new WeakMap,xW=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var i=r.value,u=r.parent,l=r.column===u.column&&r.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(r.props.length===1&&i.charCodeAt(0)!==58&&!oO.get(u))&&!l){oO.set(r,!0);for(var d=[],h=CW(i,d),v=u.props,y=0,C=0;y<h.length;y++)for(var x=0;x<v.length;x++,C++)r.props[C]=d[y]?h[y].replace(/&\f/g,v[x]):v[x]+" "+h[y]}}},SW=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}},EW="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",wW=function(r){return r.type==="comm"&&r.children.indexOf(EW)>-1},RW=function(r){return function(i,u,l){if(!(i.type!=="rule"||r.compat)){var d=i.value.match(/(:first|:nth|:nth-last)-child/g);if(d){for(var h=!!i.parent,v=h?i.parent.children:l,y=v.length-1;y>=0;y--){var C=v[y];if(C.line<i.line)break;if(C.column<i.column){if(wW(C))return;break}}d.forEach(function(x){console.error('The pseudo class "'+x+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+x.split("-child")[0]+'-of-type".')})}}}},QD=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},TW=function(r,i){for(var u=r-1;u>=0;u--)if(!QD(i[u]))return!0;return!1},sO=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},IW=function(r,i,u){QD(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."),sO(r)):TW(i,u)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),sO(r)))};function KD(n,r){switch(rW(n,r)){case 5103:return gn+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gn+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return gn+n+x0+n+Va+n+n;case 6828:case 4268:return gn+n+Va+n+n;case 6165:return gn+n+Va+"flex-"+n+n;case 5187:return gn+n+yn(n,/(\w+).+(:[^]+)/,gn+"box-$1$2"+Va+"flex-$1$2")+n;case 5443:return gn+n+Va+"flex-item-"+yn(n,/flex-|-self/,"")+n;case 4675:return gn+n+Va+"flex-line-pack"+yn(n,/align-content|flex-|-self/,"")+n;case 5548:return gn+n+Va+yn(n,"shrink","negative")+n;case 5292:return gn+n+Va+yn(n,"basis","preferred-size")+n;case 6060:return gn+"box-"+yn(n,"-grow","")+gn+n+Va+yn(n,"grow","positive")+n;case 4554:return gn+yn(n,/([^-])(transform)/g,"$1"+gn+"$2")+n;case 6187:return yn(yn(yn(n,/(zoom-|grab)/,gn+"$1"),/(image-set)/,gn+"$1"),n,"")+n;case 5495:case 3959:return yn(n,/(image-set\([^]*)/,gn+"$1$`$1");case 4968:return yn(yn(n,/(.+:)(flex-)?(.*)/,gn+"box-pack:$3"+Va+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gn+n+n;case 4095:case 3583:case 4068:case 2532:return yn(n,/(.+)-inline(.+)/,gn+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qs(n)-1-r>6)switch(ha(n,r+1)){case 109:if(ha(n,r+4)!==45)break;case 102:return yn(n,/(.+:)(.+)-([^]+)/,"$1"+gn+"$2-$3$1"+x0+(ha(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~Ow(n,"stretch")?KD(yn(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(ha(n,r+1)!==115)break;case 6444:switch(ha(n,Qs(n)-3-(~Ow(n,"!important")&&10))){case 107:return yn(n,":",":"+gn)+n;case 101:return yn(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gn+(ha(n,14)===45?"inline-":"")+"box$3$1"+gn+"$2$3$1"+Va+"$2box$3")+n}break;case 5936:switch(ha(n,r+11)){case 114:return gn+n+Va+yn(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return gn+n+Va+yn(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return gn+n+Va+yn(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return gn+n+Va+n+n}return n}var NW=function(r,i,u,l){if(r.length>-1&&!r.return)switch(r.type){case _R:r.return=KD(r.value,r.length);break;case XD:return zp([om(r,{value:yn(r.value,"@","@"+gn)})],l);case NR:if(r.length)return iW(r.props,function(d){switch(aW(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zp([om(r,{props:[yn(d,/:(read-\w+)/,":"+x0+"$1")]})],l);case"::placeholder":return zp([om(r,{props:[yn(d,/:(plac\w+)/,":"+gn+"input-$1")]}),om(r,{props:[yn(d,/:(plac\w+)/,":"+x0+"$1")]}),om(r,{props:[yn(d,/:(plac\w+)/,Va+"input-$1")]})],l)}return""})}},_W=[NW],OW=function(r){var i=r.key;if(sm.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.
|
|
297
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(i==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(O){var _=O.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var l=r.stylisPlugins||_W;if(sm.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={},h,v=[];h=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(O){for(var _=O.getAttribute("data-emotion").split(" "),L=1;L<_.length;L++)d[_[L]]=!0;v.push(O)});var y,C=[xW,SW];sm.NODE_ENV!=="production"&&C.push(RW({get compat(){return N.compat}}),IW);{var x,R=[vW,sm.NODE_ENV!=="production"?function(O){O.root||(O.return?x.insert(O.return):O.value&&O.type!==IR&&x.insert(O.value+"{}"))}:mW(function(O){x.insert(O)})],T=hW(C.concat(l,R)),A=function(_){return zp(dW(_),T)};y=function(_,L,V,F){x=V,sm.NODE_ENV!=="production"&&L.map!==void 0&&(x={insert:function(z){V.insert(z+L.map)}}),A(_?_+"{"+L.styles+"}":L.styles),F&&(N.inserted[L.name]=!0)}}var N={key:i,sheet:new Q4({key:i,container:h,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:d,registered:{},insert:y};return N.sheet.hydrate(v),N},ek=nR,AW={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jW={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tk={};tk[ek.ForwardRef]=AW;tk[ek.Memo]=jW;var DW=!0;function nk(n,r,i){var u="";return i.split(" ").forEach(function(l){n[l]!==void 0?r.push(n[l]+";"):u+=l+" "}),u}var AR=function(r,i,u){var l=r.key+"-"+i.name;(u===!1||DW===!1)&&r.registered[l]===void 0&&(r.registered[l]=i.styles)},jR=function(r,i,u){AR(r,i,u);var l=r.key+"-"+i.name;if(r.inserted[i.name]===void 0){var d=i;do r.insert(i===d?"."+l:"",d,r.sheet,!0),d=d.next;while(d!==void 0)}};function kW(n){for(var r=0,i,u=0,l=n.length;l>=4;++u,l-=4)i=n.charCodeAt(u)&255|(n.charCodeAt(++u)&255)<<8|(n.charCodeAt(++u)&255)<<16|(n.charCodeAt(++u)&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(l){case 3:r^=(n.charCodeAt(u+2)&255)<<16;case 2:r^=(n.charCodeAt(u+1)&255)<<8;case 1:r^=n.charCodeAt(u)&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 MW={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},Eo={},lO=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
298
298
|
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';".
|
|
299
299
|
You can read more about this here:
|
|
300
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,LW="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",PW=/[A-Z]|^ms/g,rk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,
|
|
300
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,LW="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",PW=/[A-Z]|^ms/g,rk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DR=function(r){return r.charCodeAt(1)===45},uO=function(r){return r!=null&&typeof r!="boolean"},$E=gW(function(n){return DR(n)?n:n.replace(PW,"-$&").toLowerCase()}),S0=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(rk,function(u,l,d){return ss={name:l,styles:d,next:ss},l})}return MW[r]!==1&&!DR(r)&&typeof i=="number"&&i!==0?i+"px":i};if(Eo.NODE_ENV!=="production"){var FW=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,VW=["normal","none","initial","inherit","unset"],BW=S0,zW=/^-ms-/,UW=/-(.)/g,cO={};S0=function(r,i){if(r==="content"&&(typeof i!="string"||VW.indexOf(i)===-1&&!FW.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 u=BW(r,i);return u!==""&&!DR(r)&&r.indexOf("-")!==-1&&cO[r]===void 0&&(cO[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(zW,"ms-").replace(UW,function(l,d){return d.toUpperCase()})+"?")),u}}var ak="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function wm(n,r,i){if(i==null)return"";if(i.__emotion_styles!==void 0){if(Eo.NODE_ENV!=="production"&&i.toString()==="NO_COMPONENT_SELECTOR")throw new Error(ak);return i}switch(typeof i){case"boolean":return"";case"object":{if(i.anim===1)return ss={name:i.name,styles:i.styles,next:ss},i.name;if(i.styles!==void 0){var u=i.next;if(u!==void 0)for(;u!==void 0;)ss={name:u.name,styles:u.styles,next:ss},u=u.next;var l=i.styles+";";return Eo.NODE_ENV!=="production"&&i.map!==void 0&&(l+=i.map),l}return HW(n,r,i)}case"function":{if(n!==void 0){var d=ss,h=i(n);return ss=d,wm(n,r,h)}else Eo.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(Eo.NODE_ENV!=="production"){var v=[],y=i.replace(rk,function(x,R,T){var A="animation"+v.length;return v.push("const "+A+" = keyframes`"+T.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+A+"}"});v.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(v,["`"+y+"`"]).join(`
|
|
301
301
|
`)+`
|
|
302
302
|
|
|
303
303
|
You should wrap it with \`css\` like this:
|
|
304
304
|
|
|
305
|
-
`+("css`"+y+"`"))}break}if(r==null)return i;var C=r[i];return C!==void 0?C:i}function HW(n,r,i){var u="";if(Array.isArray(i))for(var l=0;l<i.length;l++)u+=wm(n,r,i[l])+";";else for(var d in i){var h=i[d];if(typeof h!="object")r!=null&&r[h]!==void 0?u+=d+"{"+r[h]+"}":uO(h)&&(u
|
|
306
|
-
`),u=0;u<i.length;u++){var l=GW(i[u]);if(l){if(WW.has(l))break;if(/^[A-Z]/.test(l))return XW(l)}}},Dw="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",kw="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",ZW=function(r,i){if(Zf.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 u={};for(var l in i)MR.call(i,l)&&(u[l]=i[l]);if(u[Dw]=r,Zf.NODE_ENV!=="production"&&i.css&&(typeof i.css!="object"||typeof i.css.name!="string"||i.css.name.indexOf("-")===-1)){var d=YW(new Error().stack);d&&(u[kw]=d)}return u},JW=function(r){var i=r.cache,u=r.serialized,l=r.isStringTag;return jR(i,u,l),sk(function(){return DR(i,u,l)}),null},lk=PR(function(n,r,i){var u=n.css;typeof u=="string"&&r.registered[u]!==void 0&&(u=r.registered[u]);var l=n[Dw],d=[u],h="";typeof n.className=="string"?h=nk(r.registered,d,n.className):n.className!=null&&(h=n.className+" ");var v=Rm(d,void 0,M.useContext(X0));if(Zf.NODE_ENV!=="production"&&v.name.indexOf("-")===-1){var y=n[kw];y&&(v=Rm([v,"label:"+y+";"]))}h+=r.key+"-"+v.name;var C={};for(var x in n)MR.call(n,x)&&x!=="css"&&x!==Dw&&(Zf.NODE_ENV==="production"||x!==kw)&&(C[x]=n[x]);return C.ref=i,C.className=h,M.createElement(M.Fragment,null,M.createElement(JW,{cache:r,serialized:v,isStringTag:typeof l=="string"}),M.createElement(l,C))});Zf.NODE_ENV!=="production"&&(lk.displayName="EmotionCssPropInternal");var qW=lk,Jf={},QW={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"}}}}},Et=function(r,i){var u=arguments;if(i==null||!MR.call(i,"css"))return M.createElement.apply(void 0,u);var l=u.length,d=new Array(l);d[0]=qW,d[1]=ZW(r,i);for(var h=2;h<l;h++)d[h]=u[h];return M.createElement.apply(null,d)},vO=!1,KW=PR(function(n,r){Jf.NODE_ENV!=="production"&&!vO&&(n.className||n.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),vO=!0);var i=n.styles,u=Rm([i],void 0,M.useContext(X0)),l=M.useRef();return dO(function(){var d=r.key+"-global",h=new r.sheet.constructor({key:d,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),v=!1,y=document.querySelector('style[data-emotion="'+d+" "+u.name+'"]');return r.sheet.tags.length&&(h.before=r.sheet.tags[0]),y!==null&&(v=!0,y.setAttribute("data-emotion",d),h.hydrate([y])),l.current=[h,v],function(){h.flush()}},[r]),dO(function(){var d=l.current,h=d[0],v=d[1];if(v){d[1]=!1;return}if(u.next!==void 0&&DR(r,u.next,!0),h.tags.length){var y=h.tags[h.tags.length-1].nextElementSibling;h.before=y,h.flush()}r.insert("",u,h,!1)},[r,u.name]),null});Jf.NODE_ENV!=="production"&&(KW.displayName="EmotionGlobal");function FR(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Rm(r)}var e5=function(){var r=FR.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_"}}},t5=function n(r){for(var i=r.length,u=0,l="";u<i;u++){var d=r[u];if(d!=null){var h=void 0;switch(typeof d){case"boolean":break;case"object":{if(Array.isArray(d))h=n(d);else{Jf.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."),h="";for(var v in d)d[v]&&v&&(h&&(h+=" "),h+=v)}break}default:h=d}h&&(l&&(l+=" "),l+=h)}}return l};function n5(n,r,i){var u=[],l=nk(n,u,i);return u.length<2?i:l+r(u)}var r5=function(r){var i=r.cache,u=r.serializedArr;return sk(function(){for(var l=0;l<u.length;l++)DR(i,u[l],!1)}),null},a5=PR(function(n,r){var i=!1,u=[],l=function(){if(i&&Jf.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];var T=Rm(x,r.registered);return u.push(T),jR(r,T,!1),r.key+"-"+T.name},d=function(){if(i&&Jf.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];return n5(r.registered,l,t5(x))},h={css:l,cx:d,theme:M.useContext(X0)},v=n.children(h);return i=!0,M.createElement(M.Fragment,null,M.createElement(r5,{cache:r,serializedArr:u}),v)});Jf.NODE_ENV!=="production"&&(a5.displayName="EmotionClassNames");if(Jf.NODE_ENV!=="production"){var hO=!0,i5=typeof jest<"u"||typeof vi<"u";if(hO&&!i5){var mO=typeof globalThis<"u"?globalThis:hO?window:global,gO="__EMOTION_REACT_"+QW.version.split(".")[0]+"__";mO[gO]&&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."),mO[gO]=!0}}function o5(n,r){return r||(r=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}const s5=Math.min,l5=Math.max,w0=Math.round,Bb=Math.floor,R0=n=>({x:n,y:n});function u5(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function uk(n){return fk(n)?(n.nodeName||"").toLowerCase():"#document"}function cs(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function ck(n){var r;return(r=(fk(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function fk(n){return n instanceof Node||n instanceof cs(n).Node}function Mw(n){return n instanceof Element||n instanceof cs(n).Element}function VR(n){return n instanceof HTMLElement||n instanceof cs(n).HTMLElement}function yO(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof cs(n).ShadowRoot}function dk(n){const{overflow:r,overflowX:i,overflowY:u,display:l}=BR(n);return/auto|scroll|overlay|hidden|clip/.test(r+u+i)&&!["inline","contents"].includes(l)}function c5(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function f5(n){return["html","body","#document"].includes(uk(n))}function BR(n){return cs(n).getComputedStyle(n)}function d5(n){if(uk(n)==="html")return n;const r=n.assignedSlot||n.parentNode||yO(n)&&n.host||ck(n);return yO(r)?r.host:r}function pk(n){const r=d5(n);return f5(r)?n.ownerDocument?n.ownerDocument.body:n.body:VR(r)&&dk(r)?r:pk(r)}function T0(n,r,i){var u;r===void 0&&(r=[]),i===void 0&&(i=!0);const l=pk(n),d=l===((u=n.ownerDocument)==null?void 0:u.body),h=cs(l);return d?r.concat(h,h.visualViewport||[],dk(l)?l:[],h.frameElement&&i?T0(h.frameElement):[]):r.concat(l,T0(l,[],i))}function p5(n){const r=BR(n);let i=parseFloat(r.width)||0,u=parseFloat(r.height)||0;const l=VR(n),d=l?n.offsetWidth:i,h=l?n.offsetHeight:u,v=w0(i)!==d||w0(u)!==h;return v&&(i=d,u=h),{width:i,height:u,$:v}}function zR(n){return Mw(n)?n:n.contextElement}function WE(n){const r=zR(n);if(!VR(r))return R0(1);const i=r.getBoundingClientRect(),{width:u,height:l,$:d}=p5(r);let h=(d?w0(i.width):i.width)/u,v=(d?w0(i.height):i.height)/l;return(!h||!Number.isFinite(h))&&(h=1),(!v||!Number.isFinite(v))&&(v=1),{x:h,y:v}}const v5=R0(0);function h5(n){const r=cs(n);return!c5()||!r.visualViewport?v5:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function m5(n,r,i){return r===void 0&&(r=!1),!i||r&&i!==cs(n)?!1:r}function bO(n,r,i,u){r===void 0&&(r=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=zR(n);let h=R0(1);r&&(u?Mw(u)&&(h=WE(u)):h=WE(n));const v=m5(d,i,u)?h5(d):R0(0);let y=(l.left+v.x)/h.x,C=(l.top+v.y)/h.y,x=l.width/h.x,R=l.height/h.y;if(d){const T=cs(d),A=u&&Mw(u)?cs(u):u;let N=T.frameElement;for(;N&&u&&A!==T;){const O=WE(N),_=N.getBoundingClientRect(),L=BR(N),V=_.left+(N.clientLeft+parseFloat(L.paddingLeft))*O.x,F=_.top+(N.clientTop+parseFloat(L.paddingTop))*O.y;y*=O.x,C*=O.y,x*=O.x,R*=O.y,y+=V,C+=F,N=cs(N).frameElement}}return u5({width:x,height:R,x:y,y:C})}function g5(n,r){let i=null,u;const l=ck(n);function d(){var v;clearTimeout(u),(v=i)==null||v.disconnect(),i=null}function h(v,y){v===void 0&&(v=!1),y===void 0&&(y=1),d();const{left:C,top:x,width:R,height:T}=n.getBoundingClientRect();if(v||r(),!R||!T)return;const A=Bb(x),N=Bb(l.clientWidth-(C+R)),O=Bb(l.clientHeight-(x+T)),_=Bb(C),V={rootMargin:-A+"px "+-N+"px "+-O+"px "+-_+"px",threshold:l5(0,s5(1,y))||1};let F=!0;function U(z){const H=z[0].intersectionRatio;if(H!==y){if(!F)return h();H?h(!1,H):u=setTimeout(()=>{h(!1,1e-7)},100)}F=!1}try{i=new IntersectionObserver(U,{...V,root:l.ownerDocument})}catch{i=new IntersectionObserver(U,V)}i.observe(n)}return h(!0),d}function y5(n,r,i,u){u===void 0&&(u={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:y=!1}=u,C=zR(n),x=l||d?[...C?T0(C):[],...T0(r)]:[];x.forEach(L=>{l&&L.addEventListener("scroll",i,{passive:!0}),d&&L.addEventListener("resize",i)});const R=C&&v?g5(C,i):null;let T=-1,A=null;h&&(A=new ResizeObserver(L=>{let[V]=L;V&&V.target===C&&A&&(A.unobserve(r),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var F;(F=A)==null||F.observe(r)})),i()}),C&&!y&&A.observe(C),A.observe(r));let N,O=y?bO(n):null;y&&_();function _(){const L=bO(n);O&&(L.x!==O.x||L.y!==O.y||L.width!==O.width||L.height!==O.height)&&i(),O=L,N=requestAnimationFrame(_)}return i(),()=>{var L;x.forEach(V=>{l&&V.removeEventListener("scroll",i),d&&V.removeEventListener("resize",i)}),R==null||R(),(L=A)==null||L.disconnect(),A=null,y&&cancelAnimationFrame(N)}}var Lw=M.useLayoutEffect,Pw={},b5=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],I0=function(){};function C5(n,r){return r?r[0]==="-"?n+r:n+"__"+r:n}function x5(n,r){for(var i=arguments.length,u=new Array(i>2?i-2:0),l=2;l<i;l++)u[l-2]=arguments[l];var d=[].concat(u);if(r&&n)for(var h in r)r.hasOwnProperty(h)&&r[h]&&d.push("".concat(C5(n,h)));return d.filter(function(v){return v}).map(function(v){return String(v).trim()}).join(" ")}var CO=function(r){return A5(r)?r.filter(Boolean):Yf(r)==="object"&&r!==null?[r]:[]},vk=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=nl(r,b5);return yt({},i)},yr=function(r,i,u){var l=r.cx,d=r.getStyles,h=r.getClassNames,v=r.className;return{css:d(i,r),className:l(u??{},h(i,r),v)}};function S5(n,r,i){if(i){var u=i(n,r);if(typeof u=="string")return u}return n}function Y0(n){return[document.documentElement,document.body,window].indexOf(n)>-1}function E5(n){return Y0(n)?window.innerHeight:n.clientHeight}function hk(n){return Y0(n)?window.pageYOffset:n.scrollTop}function N0(n,r){if(Y0(n)){window.scrollTo(0,r);return}n.scrollTop=r}function w5(n){var r=getComputedStyle(n),i=r.position==="absolute",u=/(auto|scroll)/;if(r.position==="fixed")return document.documentElement;for(var l=n;l=l.parentElement;)if(r=getComputedStyle(l),!(i&&r.position==="static")&&u.test(r.overflow+r.overflowY+r.overflowX))return l;return document.documentElement}function R5(n,r,i,u){return i*((n=n/u-1)*n*n+1)+r}function zb(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:I0,l=hk(n),d=r-l,h=10,v=0;function y(){v+=h;var C=R5(v,l,d,i);N0(n,C),v<i?window.requestAnimationFrame(y):u(n)}y()}function xO(n,r){var i=n.getBoundingClientRect(),u=r.getBoundingClientRect(),l=r.offsetHeight/3;u.bottom+l>i.bottom?N0(n,Math.min(r.offsetTop+r.clientHeight-n.offsetHeight+l,n.scrollHeight)):u.top-l<i.top&&N0(n,Math.max(r.offsetTop-l,0))}function T5(n){var r=n.getBoundingClientRect();return{bottom:r.bottom,height:r.height,left:r.left,right:r.right,top:r.top,width:r.width}}function SO(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function I5(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var mk=!1,N5={get passive(){return mk=!0}},Ub=typeof window<"u"?window:{};Ub.addEventListener&&Ub.removeEventListener&&(Ub.addEventListener("p",I0,N5),Ub.removeEventListener("p",I0,!1));var _5=mk;function O5(n){return n!=null}function A5(n){return Array.isArray(n)}function Hb(n,r,i){return n?r:i}var j5=function(r){for(var i=arguments.length,u=new Array(i>1?i-1:0),l=1;l<i;l++)u[l-1]=arguments[l];var d=Object.entries(r).filter(function(h){var v=ta(h,1),y=v[0];return!u.includes(y)});return d.reduce(function(h,v){var y=ta(v,2),C=y[0],x=y[1];return h[C]=x,h},{})},D5=["children","innerProps"],k5=["children","innerProps"];function M5(n){var r=n.maxHeight,i=n.menuEl,u=n.minHeight,l=n.placement,d=n.shouldScroll,h=n.isFixedPosition,v=n.controlHeight,y=w5(i),C={placement:"bottom",maxHeight:r};if(!i||!i.offsetParent)return C;var x=y.getBoundingClientRect(),R=x.height,T=i.getBoundingClientRect(),A=T.bottom,N=T.height,O=T.top,_=i.offsetParent.getBoundingClientRect(),L=_.top,V=h?window.innerHeight:E5(y),F=hk(y),U=parseInt(getComputedStyle(i).marginBottom,10),z=parseInt(getComputedStyle(i).marginTop,10),H=L-z,J=V-O,q=H+F,Re=R-F-O,he=A-V+F+U,ge=F+O-z,fe=160;switch(l){case"auto":case"bottom":if(J>=N)return{placement:"bottom",maxHeight:r};if(Re>=N&&!h)return d&&zb(y,he,fe),{placement:"bottom",maxHeight:r};if(!h&&Re>=u||h&&J>=u){d&&zb(y,he,fe);var Oe=h?J-U:Re-U;return{placement:"bottom",maxHeight:Oe}}if(l==="auto"||h){var Te=r,xe=h?H:q;return xe>=u&&(Te=Math.min(xe-U-v,r)),{placement:"top",maxHeight:Te}}if(l==="bottom")return d&&N0(y,he),{placement:"bottom",maxHeight:r};break;case"top":if(H>=N)return{placement:"top",maxHeight:r};if(q>=N&&!h)return d&&zb(y,ge,fe),{placement:"top",maxHeight:r};if(!h&&q>=u||h&&H>=u){var je=r;return(!h&&q>=u||h&&H>=u)&&(je=h?H-z:q-z),d&&zb(y,ge,fe),{placement:"top",maxHeight:je}}return{placement:"bottom",maxHeight:r};default:throw new Error('Invalid placement provided "'.concat(l,'".'))}return C}function L5(n){var r={bottom:"top",top:"bottom"};return n?r[n]:"bottom"}var gk=function(r){return r==="auto"?"bottom":r},P5=function(r,i){var u,l=r.placement,d=r.theme,h=d.borderRadius,v=d.spacing,y=d.colors;return yt((u={label:"menu"},Lp(u,L5(l),"100%"),Lp(u,"position","absolute"),Lp(u,"width","100%"),Lp(u,"zIndex",1),u),i?{}:{backgroundColor:y.neutral0,borderRadius:h,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:v.menuGutter,marginTop:v.menuGutter})},yk=M.createContext(null),F5=function(r){var i=r.children,u=r.minMenuHeight,l=r.maxMenuHeight,d=r.menuPlacement,h=r.menuPosition,v=r.menuShouldScrollIntoView,y=r.theme,C=M.useContext(yk)||{},x=C.setPortalPlacement,R=M.useRef(null),T=M.useState(l),A=ta(T,2),N=A[0],O=A[1],_=M.useState(null),L=ta(_,2),V=L[0],F=L[1],U=y.spacing.controlHeight;return Lw(function(){var z=R.current;if(z){var H=h==="fixed",J=v&&!H,q=M5({maxHeight:l,menuEl:z,minHeight:u,placement:d,shouldScroll:J,isFixedPosition:H,controlHeight:U});O(q.maxHeight),F(q.placement),x==null||x(q.placement)}},[l,d,h,v,u,x,U]),i({ref:R,placerProps:yt(yt({},r),{},{placement:V||gk(d),maxHeight:N})})},V5=function(r){var i=r.children,u=r.innerRef,l=r.innerProps;return Et("div",Rt({},yr(r,"menu",{menu:!0}),{ref:u},l),i)},B5=V5,z5=function(r,i){var u=r.maxHeight,l=r.theme.spacing.baseUnit;return yt({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},i?{}:{paddingBottom:l,paddingTop:l})},U5=function(r){var i=r.children,u=r.innerProps,l=r.innerRef,d=r.isMulti;return Et("div",Rt({},yr(r,"menuList",{"menu-list":!0,"menu-list--is-multi":d}),{ref:l},u),i)},bk=function(r,i){var u=r.theme,l=u.spacing.baseUnit,d=u.colors;return yt({textAlign:"center"},i?{}:{color:d.neutral40,padding:"".concat(l*2,"px ").concat(l*3,"px")})},H5=bk,$5=bk,G5=function(r){var i=r.children,u=i===void 0?"No options":i,l=r.innerProps,d=nl(r,D5);return Et("div",Rt({},yr(yt(yt({},d),{},{children:u,innerProps:l}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),l),u)},W5=function(r){var i=r.children,u=i===void 0?"Loading...":i,l=r.innerProps,d=nl(r,k5);return Et("div",Rt({},yr(yt(yt({},d),{},{children:u,innerProps:l}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),l),u)},X5=function(r){var i=r.rect,u=r.offset,l=r.position;return{left:i.left,position:l,top:u,width:i.width,zIndex:1}},Y5=function(r){var i=r.appendTo,u=r.children,l=r.controlElement,d=r.innerProps,h=r.menuPlacement,v=r.menuPosition,y=M.useRef(null),C=M.useRef(null),x=M.useState(gk(h)),R=ta(x,2),T=R[0],A=R[1],N=M.useMemo(function(){return{setPortalPlacement:A}},[]),O=M.useState(null),_=ta(O,2),L=_[0],V=_[1],F=M.useCallback(function(){if(l){var J=T5(l),q=v==="fixed"?0:window.pageYOffset,Re=J[T]+q;(Re!==(L==null?void 0:L.offset)||J.left!==(L==null?void 0:L.rect.left)||J.width!==(L==null?void 0:L.rect.width))&&V({offset:Re,rect:J})}},[l,v,T,L==null?void 0:L.offset,L==null?void 0:L.rect.left,L==null?void 0:L.rect.width]);Lw(function(){F()},[F]);var U=M.useCallback(function(){typeof C.current=="function"&&(C.current(),C.current=null),l&&y.current&&(C.current=y5(l,y.current,F,{elementResize:"ResizeObserver"in window}))},[l,F]);Lw(function(){U()},[U]);var z=M.useCallback(function(J){y.current=J,U()},[U]);if(!i&&v!=="fixed"||!L)return null;var H=Et("div",Rt({ref:z},yr(yt(yt({},r),{},{offset:L.offset,position:v,rect:L.rect}),"menuPortal",{"menu-portal":!0}),d),u);return Et(yk.Provider,{value:N},i?$w.createPortal(H,i):H)},Z5=function(r){var i=r.isDisabled,u=r.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},J5=function(r){var i=r.children,u=r.innerProps,l=r.isDisabled,d=r.isRtl;return Et("div",Rt({},yr(r,"container",{"--is-disabled":l,"--is-rtl":d}),u),i)},q5=function(r,i){var u=r.theme.spacing,l=r.isMulti,d=r.hasValue,h=r.selectProps.controlShouldRenderValue;return yt({alignItems:"center",display:l&&d&&h?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},i?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},Q5=function(r){var i=r.children,u=r.innerProps,l=r.isMulti,d=r.hasValue;return Et("div",Rt({},yr(r,"valueContainer",{"value-container":!0,"value-container--is-multi":l,"value-container--has-value":d}),u),i)},K5=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},eX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"indicatorsContainer",{indicators:!0}),u),i)},EO,tX=["size"],nX=["innerProps","isRtl","size"];function rX(){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 aX=Pw.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:rX},Ck=function(r){var i=r.size,u=nl(r,tX);return Et("svg",Rt({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:aX},u))},UR=function(r){return Et(Ck,Rt({size:20},r),Et("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"}))},xk=function(r){return Et(Ck,Rt({size:20},r),Et("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"}))},Sk=function(r,i){var u=r.isFocused,l=r.theme,d=l.spacing.baseUnit,h=l.colors;return yt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},i?{}:{color:u?h.neutral60:h.neutral20,padding:d*2,":hover":{color:u?h.neutral80:h.neutral40}})},iX=Sk,oX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),i||Et(xk,null))},sX=Sk,lX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),i||Et(UR,null))},uX=function(r,i){var u=r.isDisabled,l=r.theme,d=l.spacing.baseUnit,h=l.colors;return yt({label:"indicatorSeparator",alignSelf:"stretch",width:1},i?{}:{backgroundColor:u?h.neutral10:h.neutral20,marginBottom:d*2,marginTop:d*2})},cX=function(r){var i=r.innerProps;return Et("span",Rt({},i,yr(r,"indicatorSeparator",{"indicator-separator":!0})))},fX=e5(EO||(EO=o5([`
|
|
305
|
+
`+("css`"+y+"`"))}break}if(r==null)return i;var C=r[i];return C!==void 0?C:i}function HW(n,r,i){var u="";if(Array.isArray(i))for(var l=0;l<i.length;l++)u+=wm(n,r,i[l])+";";else for(var d in i){var h=i[d];if(typeof h!="object")r!=null&&r[h]!==void 0?u+=d+"{"+r[h]+"}":uO(h)&&(u+=$E(d)+":"+S0(d,h)+";");else{if(d==="NO_COMPONENT_SELECTOR"&&Eo.NODE_ENV!=="production")throw new Error(ak);if(Array.isArray(h)&&typeof h[0]=="string"&&(r==null||r[h[0]]===void 0))for(var v=0;v<h.length;v++)uO(h[v])&&(u+=$E(d)+":"+S0(d,h[v])+";");else{var y=wm(n,r,h);switch(d){case"animation":case"animationName":{u+=$E(d)+":"+y+";";break}default:Eo.NODE_ENV!=="production"&&d==="undefined"&&console.error(LW),u+=d+"{"+y+"}"}}}}return u}var fO=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ik;Eo.NODE_ENV!=="production"&&(ik=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ss,Rm=function(r,i,u){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var l=!0,d="";ss=void 0;var h=r[0];h==null||h.raw===void 0?(l=!1,d+=wm(u,i,h)):(Eo.NODE_ENV!=="production"&&h[0]===void 0&&console.error(lO),d+=h[0]);for(var v=1;v<r.length;v++)d+=wm(u,i,r[v]),l&&(Eo.NODE_ENV!=="production"&&h[v]===void 0&&console.error(lO),d+=h[v]);var y;Eo.NODE_ENV!=="production"&&(d=d.replace(ik,function(T){return y=T,""})),fO.lastIndex=0;for(var C="",x;(x=fO.exec(d))!==null;)C+="-"+x[1];var R=kW(d)+C;return Eo.NODE_ENV!=="production"?{name:R,styles:d,map:y,next:ss,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:R,styles:d,next:ss}},$W=function(r){return r()},ok=l0.useInsertionEffect?l0.useInsertionEffect:!1,sk=ok||$W,dO=ok||M.useLayoutEffect,Zf={},kR={}.hasOwnProperty,MR=M.createContext(typeof HTMLElement<"u"?OW({key:"css"}):null);Zf.NODE_ENV!=="production"&&(MR.displayName="EmotionCacheContext");MR.Provider;var LR=function(r){return M.forwardRef(function(i,u){var l=M.useContext(MR);return r(i,l,u)})},W0=M.createContext({});Zf.NODE_ENV!=="production"&&(W0.displayName="EmotionThemeContext");var pO=function(r){var i=r.split(".");return i[i.length-1]},GW=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 pO(i[1])},WW=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),XW=function(r){return r.replace(/\$/g,"-")},YW=function(r){if(r)for(var i=r.split(`
|
|
306
|
+
`),u=0;u<i.length;u++){var l=GW(i[u]);if(l){if(WW.has(l))break;if(/^[A-Z]/.test(l))return XW(l)}}},jw="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Dw="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",ZW=function(r,i){if(Zf.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 u={};for(var l in i)kR.call(i,l)&&(u[l]=i[l]);if(u[jw]=r,Zf.NODE_ENV!=="production"&&i.css&&(typeof i.css!="object"||typeof i.css.name!="string"||i.css.name.indexOf("-")===-1)){var d=YW(new Error().stack);d&&(u[Dw]=d)}return u},JW=function(r){var i=r.cache,u=r.serialized,l=r.isStringTag;return AR(i,u,l),sk(function(){return jR(i,u,l)}),null},lk=LR(function(n,r,i){var u=n.css;typeof u=="string"&&r.registered[u]!==void 0&&(u=r.registered[u]);var l=n[jw],d=[u],h="";typeof n.className=="string"?h=nk(r.registered,d,n.className):n.className!=null&&(h=n.className+" ");var v=Rm(d,void 0,M.useContext(W0));if(Zf.NODE_ENV!=="production"&&v.name.indexOf("-")===-1){var y=n[Dw];y&&(v=Rm([v,"label:"+y+";"]))}h+=r.key+"-"+v.name;var C={};for(var x in n)kR.call(n,x)&&x!=="css"&&x!==jw&&(Zf.NODE_ENV==="production"||x!==Dw)&&(C[x]=n[x]);return C.ref=i,C.className=h,M.createElement(M.Fragment,null,M.createElement(JW,{cache:r,serialized:v,isStringTag:typeof l=="string"}),M.createElement(l,C))});Zf.NODE_ENV!=="production"&&(lk.displayName="EmotionCssPropInternal");var qW=lk,Jf={},QW={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"}}}}},Et=function(r,i){var u=arguments;if(i==null||!kR.call(i,"css"))return M.createElement.apply(void 0,u);var l=u.length,d=new Array(l);d[0]=qW,d[1]=ZW(r,i);for(var h=2;h<l;h++)d[h]=u[h];return M.createElement.apply(null,d)},vO=!1,KW=LR(function(n,r){Jf.NODE_ENV!=="production"&&!vO&&(n.className||n.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),vO=!0);var i=n.styles,u=Rm([i],void 0,M.useContext(W0)),l=M.useRef();return dO(function(){var d=r.key+"-global",h=new r.sheet.constructor({key:d,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),v=!1,y=document.querySelector('style[data-emotion="'+d+" "+u.name+'"]');return r.sheet.tags.length&&(h.before=r.sheet.tags[0]),y!==null&&(v=!0,y.setAttribute("data-emotion",d),h.hydrate([y])),l.current=[h,v],function(){h.flush()}},[r]),dO(function(){var d=l.current,h=d[0],v=d[1];if(v){d[1]=!1;return}if(u.next!==void 0&&jR(r,u.next,!0),h.tags.length){var y=h.tags[h.tags.length-1].nextElementSibling;h.before=y,h.flush()}r.insert("",u,h,!1)},[r,u.name]),null});Jf.NODE_ENV!=="production"&&(KW.displayName="EmotionGlobal");function PR(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Rm(r)}var e5=function(){var r=PR.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_"}}},t5=function n(r){for(var i=r.length,u=0,l="";u<i;u++){var d=r[u];if(d!=null){var h=void 0;switch(typeof d){case"boolean":break;case"object":{if(Array.isArray(d))h=n(d);else{Jf.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."),h="";for(var v in d)d[v]&&v&&(h&&(h+=" "),h+=v)}break}default:h=d}h&&(l&&(l+=" "),l+=h)}}return l};function n5(n,r,i){var u=[],l=nk(n,u,i);return u.length<2?i:l+r(u)}var r5=function(r){var i=r.cache,u=r.serializedArr;return sk(function(){for(var l=0;l<u.length;l++)jR(i,u[l],!1)}),null},a5=LR(function(n,r){var i=!1,u=[],l=function(){if(i&&Jf.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];var T=Rm(x,r.registered);return u.push(T),AR(r,T,!1),r.key+"-"+T.name},d=function(){if(i&&Jf.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];return n5(r.registered,l,t5(x))},h={css:l,cx:d,theme:M.useContext(W0)},v=n.children(h);return i=!0,M.createElement(M.Fragment,null,M.createElement(r5,{cache:r,serializedArr:u}),v)});Jf.NODE_ENV!=="production"&&(a5.displayName="EmotionClassNames");if(Jf.NODE_ENV!=="production"){var hO=!0,i5=typeof jest<"u"||typeof vi<"u";if(hO&&!i5){var mO=typeof globalThis<"u"?globalThis:hO?window:global,gO="__EMOTION_REACT_"+QW.version.split(".")[0]+"__";mO[gO]&&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."),mO[gO]=!0}}function o5(n,r){return r||(r=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}const s5=Math.min,l5=Math.max,E0=Math.round,Bb=Math.floor,w0=n=>({x:n,y:n});function u5(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function uk(n){return fk(n)?(n.nodeName||"").toLowerCase():"#document"}function cs(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function ck(n){var r;return(r=(fk(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function fk(n){return n instanceof Node||n instanceof cs(n).Node}function kw(n){return n instanceof Element||n instanceof cs(n).Element}function FR(n){return n instanceof HTMLElement||n instanceof cs(n).HTMLElement}function yO(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof cs(n).ShadowRoot}function dk(n){const{overflow:r,overflowX:i,overflowY:u,display:l}=VR(n);return/auto|scroll|overlay|hidden|clip/.test(r+u+i)&&!["inline","contents"].includes(l)}function c5(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function f5(n){return["html","body","#document"].includes(uk(n))}function VR(n){return cs(n).getComputedStyle(n)}function d5(n){if(uk(n)==="html")return n;const r=n.assignedSlot||n.parentNode||yO(n)&&n.host||ck(n);return yO(r)?r.host:r}function pk(n){const r=d5(n);return f5(r)?n.ownerDocument?n.ownerDocument.body:n.body:FR(r)&&dk(r)?r:pk(r)}function R0(n,r,i){var u;r===void 0&&(r=[]),i===void 0&&(i=!0);const l=pk(n),d=l===((u=n.ownerDocument)==null?void 0:u.body),h=cs(l);return d?r.concat(h,h.visualViewport||[],dk(l)?l:[],h.frameElement&&i?R0(h.frameElement):[]):r.concat(l,R0(l,[],i))}function p5(n){const r=VR(n);let i=parseFloat(r.width)||0,u=parseFloat(r.height)||0;const l=FR(n),d=l?n.offsetWidth:i,h=l?n.offsetHeight:u,v=E0(i)!==d||E0(u)!==h;return v&&(i=d,u=h),{width:i,height:u,$:v}}function BR(n){return kw(n)?n:n.contextElement}function GE(n){const r=BR(n);if(!FR(r))return w0(1);const i=r.getBoundingClientRect(),{width:u,height:l,$:d}=p5(r);let h=(d?E0(i.width):i.width)/u,v=(d?E0(i.height):i.height)/l;return(!h||!Number.isFinite(h))&&(h=1),(!v||!Number.isFinite(v))&&(v=1),{x:h,y:v}}const v5=w0(0);function h5(n){const r=cs(n);return!c5()||!r.visualViewport?v5:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function m5(n,r,i){return r===void 0&&(r=!1),!i||r&&i!==cs(n)?!1:r}function bO(n,r,i,u){r===void 0&&(r=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=BR(n);let h=w0(1);r&&(u?kw(u)&&(h=GE(u)):h=GE(n));const v=m5(d,i,u)?h5(d):w0(0);let y=(l.left+v.x)/h.x,C=(l.top+v.y)/h.y,x=l.width/h.x,R=l.height/h.y;if(d){const T=cs(d),A=u&&kw(u)?cs(u):u;let N=T.frameElement;for(;N&&u&&A!==T;){const O=GE(N),_=N.getBoundingClientRect(),L=VR(N),V=_.left+(N.clientLeft+parseFloat(L.paddingLeft))*O.x,F=_.top+(N.clientTop+parseFloat(L.paddingTop))*O.y;y*=O.x,C*=O.y,x*=O.x,R*=O.y,y+=V,C+=F,N=cs(N).frameElement}}return u5({width:x,height:R,x:y,y:C})}function g5(n,r){let i=null,u;const l=ck(n);function d(){var v;clearTimeout(u),(v=i)==null||v.disconnect(),i=null}function h(v,y){v===void 0&&(v=!1),y===void 0&&(y=1),d();const{left:C,top:x,width:R,height:T}=n.getBoundingClientRect();if(v||r(),!R||!T)return;const A=Bb(x),N=Bb(l.clientWidth-(C+R)),O=Bb(l.clientHeight-(x+T)),_=Bb(C),V={rootMargin:-A+"px "+-N+"px "+-O+"px "+-_+"px",threshold:l5(0,s5(1,y))||1};let F=!0;function U(z){const H=z[0].intersectionRatio;if(H!==y){if(!F)return h();H?h(!1,H):u=setTimeout(()=>{h(!1,1e-7)},100)}F=!1}try{i=new IntersectionObserver(U,{...V,root:l.ownerDocument})}catch{i=new IntersectionObserver(U,V)}i.observe(n)}return h(!0),d}function y5(n,r,i,u){u===void 0&&(u={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:y=!1}=u,C=BR(n),x=l||d?[...C?R0(C):[],...R0(r)]:[];x.forEach(L=>{l&&L.addEventListener("scroll",i,{passive:!0}),d&&L.addEventListener("resize",i)});const R=C&&v?g5(C,i):null;let T=-1,A=null;h&&(A=new ResizeObserver(L=>{let[V]=L;V&&V.target===C&&A&&(A.unobserve(r),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var F;(F=A)==null||F.observe(r)})),i()}),C&&!y&&A.observe(C),A.observe(r));let N,O=y?bO(n):null;y&&_();function _(){const L=bO(n);O&&(L.x!==O.x||L.y!==O.y||L.width!==O.width||L.height!==O.height)&&i(),O=L,N=requestAnimationFrame(_)}return i(),()=>{var L;x.forEach(V=>{l&&V.removeEventListener("scroll",i),d&&V.removeEventListener("resize",i)}),R==null||R(),(L=A)==null||L.disconnect(),A=null,y&&cancelAnimationFrame(N)}}var Mw=M.useLayoutEffect,Lw={},b5=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],T0=function(){};function C5(n,r){return r?r[0]==="-"?n+r:n+"__"+r:n}function x5(n,r){for(var i=arguments.length,u=new Array(i>2?i-2:0),l=2;l<i;l++)u[l-2]=arguments[l];var d=[].concat(u);if(r&&n)for(var h in r)r.hasOwnProperty(h)&&r[h]&&d.push("".concat(C5(n,h)));return d.filter(function(v){return v}).map(function(v){return String(v).trim()}).join(" ")}var CO=function(r){return A5(r)?r.filter(Boolean):Yf(r)==="object"&&r!==null?[r]:[]},vk=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=nl(r,b5);return yt({},i)},yr=function(r,i,u){var l=r.cx,d=r.getStyles,h=r.getClassNames,v=r.className;return{css:d(i,r),className:l(u??{},h(i,r),v)}};function S5(n,r,i){if(i){var u=i(n,r);if(typeof u=="string")return u}return n}function X0(n){return[document.documentElement,document.body,window].indexOf(n)>-1}function E5(n){return X0(n)?window.innerHeight:n.clientHeight}function hk(n){return X0(n)?window.pageYOffset:n.scrollTop}function I0(n,r){if(X0(n)){window.scrollTo(0,r);return}n.scrollTop=r}function w5(n){var r=getComputedStyle(n),i=r.position==="absolute",u=/(auto|scroll)/;if(r.position==="fixed")return document.documentElement;for(var l=n;l=l.parentElement;)if(r=getComputedStyle(l),!(i&&r.position==="static")&&u.test(r.overflow+r.overflowY+r.overflowX))return l;return document.documentElement}function R5(n,r,i,u){return i*((n=n/u-1)*n*n+1)+r}function zb(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T0,l=hk(n),d=r-l,h=10,v=0;function y(){v+=h;var C=R5(v,l,d,i);I0(n,C),v<i?window.requestAnimationFrame(y):u(n)}y()}function xO(n,r){var i=n.getBoundingClientRect(),u=r.getBoundingClientRect(),l=r.offsetHeight/3;u.bottom+l>i.bottom?I0(n,Math.min(r.offsetTop+r.clientHeight-n.offsetHeight+l,n.scrollHeight)):u.top-l<i.top&&I0(n,Math.max(r.offsetTop-l,0))}function T5(n){var r=n.getBoundingClientRect();return{bottom:r.bottom,height:r.height,left:r.left,right:r.right,top:r.top,width:r.width}}function SO(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function I5(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var mk=!1,N5={get passive(){return mk=!0}},Ub=typeof window<"u"?window:{};Ub.addEventListener&&Ub.removeEventListener&&(Ub.addEventListener("p",T0,N5),Ub.removeEventListener("p",T0,!1));var _5=mk;function O5(n){return n!=null}function A5(n){return Array.isArray(n)}function Hb(n,r,i){return n?r:i}var j5=function(r){for(var i=arguments.length,u=new Array(i>1?i-1:0),l=1;l<i;l++)u[l-1]=arguments[l];var d=Object.entries(r).filter(function(h){var v=ta(h,1),y=v[0];return!u.includes(y)});return d.reduce(function(h,v){var y=ta(v,2),C=y[0],x=y[1];return h[C]=x,h},{})},D5=["children","innerProps"],k5=["children","innerProps"];function M5(n){var r=n.maxHeight,i=n.menuEl,u=n.minHeight,l=n.placement,d=n.shouldScroll,h=n.isFixedPosition,v=n.controlHeight,y=w5(i),C={placement:"bottom",maxHeight:r};if(!i||!i.offsetParent)return C;var x=y.getBoundingClientRect(),R=x.height,T=i.getBoundingClientRect(),A=T.bottom,N=T.height,O=T.top,_=i.offsetParent.getBoundingClientRect(),L=_.top,V=h?window.innerHeight:E5(y),F=hk(y),U=parseInt(getComputedStyle(i).marginBottom,10),z=parseInt(getComputedStyle(i).marginTop,10),H=L-z,J=V-O,q=H+F,Re=R-F-O,he=A-V+F+U,ge=F+O-z,fe=160;switch(l){case"auto":case"bottom":if(J>=N)return{placement:"bottom",maxHeight:r};if(Re>=N&&!h)return d&&zb(y,he,fe),{placement:"bottom",maxHeight:r};if(!h&&Re>=u||h&&J>=u){d&&zb(y,he,fe);var Oe=h?J-U:Re-U;return{placement:"bottom",maxHeight:Oe}}if(l==="auto"||h){var Te=r,xe=h?H:q;return xe>=u&&(Te=Math.min(xe-U-v,r)),{placement:"top",maxHeight:Te}}if(l==="bottom")return d&&I0(y,he),{placement:"bottom",maxHeight:r};break;case"top":if(H>=N)return{placement:"top",maxHeight:r};if(q>=N&&!h)return d&&zb(y,ge,fe),{placement:"top",maxHeight:r};if(!h&&q>=u||h&&H>=u){var je=r;return(!h&&q>=u||h&&H>=u)&&(je=h?H-z:q-z),d&&zb(y,ge,fe),{placement:"top",maxHeight:je}}return{placement:"bottom",maxHeight:r};default:throw new Error('Invalid placement provided "'.concat(l,'".'))}return C}function L5(n){var r={bottom:"top",top:"bottom"};return n?r[n]:"bottom"}var gk=function(r){return r==="auto"?"bottom":r},P5=function(r,i){var u,l=r.placement,d=r.theme,h=d.borderRadius,v=d.spacing,y=d.colors;return yt((u={label:"menu"},Lp(u,L5(l),"100%"),Lp(u,"position","absolute"),Lp(u,"width","100%"),Lp(u,"zIndex",1),u),i?{}:{backgroundColor:y.neutral0,borderRadius:h,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:v.menuGutter,marginTop:v.menuGutter})},yk=M.createContext(null),F5=function(r){var i=r.children,u=r.minMenuHeight,l=r.maxMenuHeight,d=r.menuPlacement,h=r.menuPosition,v=r.menuShouldScrollIntoView,y=r.theme,C=M.useContext(yk)||{},x=C.setPortalPlacement,R=M.useRef(null),T=M.useState(l),A=ta(T,2),N=A[0],O=A[1],_=M.useState(null),L=ta(_,2),V=L[0],F=L[1],U=y.spacing.controlHeight;return Mw(function(){var z=R.current;if(z){var H=h==="fixed",J=v&&!H,q=M5({maxHeight:l,menuEl:z,minHeight:u,placement:d,shouldScroll:J,isFixedPosition:H,controlHeight:U});O(q.maxHeight),F(q.placement),x==null||x(q.placement)}},[l,d,h,v,u,x,U]),i({ref:R,placerProps:yt(yt({},r),{},{placement:V||gk(d),maxHeight:N})})},V5=function(r){var i=r.children,u=r.innerRef,l=r.innerProps;return Et("div",Rt({},yr(r,"menu",{menu:!0}),{ref:u},l),i)},B5=V5,z5=function(r,i){var u=r.maxHeight,l=r.theme.spacing.baseUnit;return yt({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},i?{}:{paddingBottom:l,paddingTop:l})},U5=function(r){var i=r.children,u=r.innerProps,l=r.innerRef,d=r.isMulti;return Et("div",Rt({},yr(r,"menuList",{"menu-list":!0,"menu-list--is-multi":d}),{ref:l},u),i)},bk=function(r,i){var u=r.theme,l=u.spacing.baseUnit,d=u.colors;return yt({textAlign:"center"},i?{}:{color:d.neutral40,padding:"".concat(l*2,"px ").concat(l*3,"px")})},H5=bk,$5=bk,G5=function(r){var i=r.children,u=i===void 0?"No options":i,l=r.innerProps,d=nl(r,D5);return Et("div",Rt({},yr(yt(yt({},d),{},{children:u,innerProps:l}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),l),u)},W5=function(r){var i=r.children,u=i===void 0?"Loading...":i,l=r.innerProps,d=nl(r,k5);return Et("div",Rt({},yr(yt(yt({},d),{},{children:u,innerProps:l}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),l),u)},X5=function(r){var i=r.rect,u=r.offset,l=r.position;return{left:i.left,position:l,top:u,width:i.width,zIndex:1}},Y5=function(r){var i=r.appendTo,u=r.children,l=r.controlElement,d=r.innerProps,h=r.menuPlacement,v=r.menuPosition,y=M.useRef(null),C=M.useRef(null),x=M.useState(gk(h)),R=ta(x,2),T=R[0],A=R[1],N=M.useMemo(function(){return{setPortalPlacement:A}},[]),O=M.useState(null),_=ta(O,2),L=_[0],V=_[1],F=M.useCallback(function(){if(l){var J=T5(l),q=v==="fixed"?0:window.pageYOffset,Re=J[T]+q;(Re!==(L==null?void 0:L.offset)||J.left!==(L==null?void 0:L.rect.left)||J.width!==(L==null?void 0:L.rect.width))&&V({offset:Re,rect:J})}},[l,v,T,L==null?void 0:L.offset,L==null?void 0:L.rect.left,L==null?void 0:L.rect.width]);Mw(function(){F()},[F]);var U=M.useCallback(function(){typeof C.current=="function"&&(C.current(),C.current=null),l&&y.current&&(C.current=y5(l,y.current,F,{elementResize:"ResizeObserver"in window}))},[l,F]);Mw(function(){U()},[U]);var z=M.useCallback(function(J){y.current=J,U()},[U]);if(!i&&v!=="fixed"||!L)return null;var H=Et("div",Rt({ref:z},yr(yt(yt({},r),{},{offset:L.offset,position:v,rect:L.rect}),"menuPortal",{"menu-portal":!0}),d),u);return Et(yk.Provider,{value:N},i?Hw.createPortal(H,i):H)},Z5=function(r){var i=r.isDisabled,u=r.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},J5=function(r){var i=r.children,u=r.innerProps,l=r.isDisabled,d=r.isRtl;return Et("div",Rt({},yr(r,"container",{"--is-disabled":l,"--is-rtl":d}),u),i)},q5=function(r,i){var u=r.theme.spacing,l=r.isMulti,d=r.hasValue,h=r.selectProps.controlShouldRenderValue;return yt({alignItems:"center",display:l&&d&&h?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},i?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},Q5=function(r){var i=r.children,u=r.innerProps,l=r.isMulti,d=r.hasValue;return Et("div",Rt({},yr(r,"valueContainer",{"value-container":!0,"value-container--is-multi":l,"value-container--has-value":d}),u),i)},K5=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},eX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"indicatorsContainer",{indicators:!0}),u),i)},EO,tX=["size"],nX=["innerProps","isRtl","size"];function rX(){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 aX=Lw.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:rX},Ck=function(r){var i=r.size,u=nl(r,tX);return Et("svg",Rt({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:aX},u))},zR=function(r){return Et(Ck,Rt({size:20},r),Et("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"}))},xk=function(r){return Et(Ck,Rt({size:20},r),Et("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"}))},Sk=function(r,i){var u=r.isFocused,l=r.theme,d=l.spacing.baseUnit,h=l.colors;return yt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},i?{}:{color:u?h.neutral60:h.neutral20,padding:d*2,":hover":{color:u?h.neutral80:h.neutral40}})},iX=Sk,oX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),i||Et(xk,null))},sX=Sk,lX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),i||Et(zR,null))},uX=function(r,i){var u=r.isDisabled,l=r.theme,d=l.spacing.baseUnit,h=l.colors;return yt({label:"indicatorSeparator",alignSelf:"stretch",width:1},i?{}:{backgroundColor:u?h.neutral10:h.neutral20,marginBottom:d*2,marginTop:d*2})},cX=function(r){var i=r.innerProps;return Et("span",Rt({},i,yr(r,"indicatorSeparator",{"indicator-separator":!0})))},fX=e5(EO||(EO=o5([`
|
|
307
307
|
0%, 80%, 100% { opacity: 0; }
|
|
308
308
|
40% { opacity: 1; }
|
|
309
|
-
`]))),dX=function(r,i){var u=r.isFocused,l=r.size,d=r.theme,h=d.colors,v=d.spacing.baseUnit;return yt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:l,lineHeight:1,marginRight:l,textAlign:"center",verticalAlign:"middle"},i?{}:{color:u?h.neutral60:h.neutral20,padding:v*2})},XE=function(r){var i=r.delay,u=r.offset;return Et("span",{css:FR({animation:"".concat(fX," 1s ease-in-out ").concat(i,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},Pw.NODE_ENV==="production"?"":";label:LoadingDot;",Pw.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 */")})},pX=function(r){var i=r.innerProps,u=r.isRtl,l=r.size,d=l===void 0?4:l,h=nl(r,nX);return Et("div",Rt({},yr(yt(yt({},h),{},{innerProps:i,isRtl:u,size:d}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),Et(XE,{delay:0,offset:u}),Et(XE,{delay:160,offset:!0}),Et(XE,{delay:320,offset:!u}))},vX=function(r,i){var u=r.isDisabled,l=r.isFocused,d=r.theme,h=d.colors,v=d.borderRadius,y=d.spacing;return yt({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:u?h.neutral5:h.neutral0,borderColor:u?h.neutral10:l?h.primary:h.neutral20,borderRadius:v,borderStyle:"solid",borderWidth:1,boxShadow:l?"0 0 0 1px ".concat(h.primary):void 0,"&:hover":{borderColor:l?h.primary:h.neutral30}})},hX=function(r){var i=r.children,u=r.isDisabled,l=r.isFocused,d=r.innerRef,h=r.innerProps,v=r.menuIsOpen;return Et("div",Rt({ref:d},yr(r,"control",{control:!0,"control--is-disabled":u,"control--is-focused":l,"control--menu-is-open":v}),h,{"aria-disabled":u||void 0}),i)},mX=hX,gX=["data"],yX=function(r,i){var u=r.theme.spacing;return i?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},bX=function(r){var i=r.children,u=r.cx,l=r.getStyles,d=r.getClassNames,h=r.Heading,v=r.headingProps,y=r.innerProps,C=r.label,x=r.theme,R=r.selectProps;return Et("div",Rt({},yr(r,"group",{group:!0}),y),Et(h,Rt({},v,{selectProps:R,theme:x,getStyles:l,getClassNames:d,cx:u}),C),Et("div",null,i))},CX=function(r,i){var u=r.theme,l=u.colors,d=u.spacing;return yt({label:"group",cursor:"default",display:"block"},i?{}:{color:l.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:d.baseUnit*3,paddingRight:d.baseUnit*3,textTransform:"uppercase"})},xX=function(r){var i=vk(r);i.data;var u=nl(i,gX);return Et("div",Rt({},yr(r,"groupHeading",{"group-heading":!0}),u))},SX=bX,EX=["innerRef","isDisabled","isHidden","inputClassName"],wX=function(r,i){var u=r.isDisabled,l=r.value,d=r.theme,h=d.spacing,v=d.colors;return yt(yt({visibility:u?"hidden":"visible",transform:l?"translateZ(0)":""},RX),i?{}:{margin:h.baseUnit/2,paddingBottom:h.baseUnit/2,paddingTop:h.baseUnit/2,color:v.neutral80})},Ek={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},RX={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":yt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ek)},TX=function(r){return yt({label:"input",color:"inherit",background:0,opacity:r?0:1,width:"100%"},Ek)},IX=function(r){var i=r.cx,u=r.value,l=vk(r),d=l.innerRef,h=l.isDisabled,v=l.isHidden,y=l.inputClassName,C=nl(l,EX);return Et("div",Rt({},yr(r,"input",{"input-container":!0}),{"data-value":u||""}),Et("input",Rt({className:i({input:!0},y),ref:d,style:TX(v),disabled:h},C)))},NX=IX,_X=function(r,i){var u=r.theme,l=u.spacing,d=u.borderRadius,h=u.colors;return yt({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:h.neutral10,borderRadius:d/2,margin:l.baseUnit/2})},OX=function(r,i){var u=r.theme,l=u.borderRadius,d=u.colors,h=r.cropWithEllipsis;return yt({overflow:"hidden",textOverflow:h||h===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:l/2,color:d.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},AX=function(r,i){var u=r.theme,l=u.spacing,d=u.borderRadius,h=u.colors,v=r.isFocused;return yt({alignItems:"center",display:"flex"},i?{}:{borderRadius:d/2,backgroundColor:v?h.dangerLight:void 0,paddingLeft:l.baseUnit,paddingRight:l.baseUnit,":hover":{backgroundColor:h.dangerLight,color:h.danger}})},wk=function(r){var i=r.children,u=r.innerProps;return Et("div",u,i)},jX=wk,DX=wk;function kX(n){var r=n.children,i=n.innerProps;return Et("div",Rt({role:"button"},i),r||Et(UR,{size:14}))}var MX=function(r){var i=r.children,u=r.components,l=r.data,d=r.innerProps,h=r.isDisabled,v=r.removeProps,y=r.selectProps,C=u.Container,x=u.Label,R=u.Remove;return Et(C,{data:l,innerProps:yt(yt({},yr(r,"multiValue",{"multi-value":!0,"multi-value--is-disabled":h})),d),selectProps:y},Et(x,{data:l,innerProps:yt({},yr(r,"multiValueLabel",{"multi-value__label":!0})),selectProps:y},i),Et(R,{data:l,innerProps:yt(yt({},yr(r,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},v),selectProps:y}))},LX=MX,PX=function(r,i){var u=r.isDisabled,l=r.isFocused,d=r.isSelected,h=r.theme,v=h.spacing,y=h.colors;return yt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},i?{}:{backgroundColor:d?y.primary:l?y.primary25:"transparent",color:u?y.neutral20:d?y.neutral0:"inherit",padding:"".concat(v.baseUnit*2,"px ").concat(v.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:d?y.primary:y.primary50}})},FX=function(r){var i=r.children,u=r.isDisabled,l=r.isFocused,d=r.isSelected,h=r.innerRef,v=r.innerProps;return Et("div",Rt({},yr(r,"option",{option:!0,"option--is-disabled":u,"option--is-focused":l,"option--is-selected":d}),{ref:h,"aria-disabled":u},v),i)},VX=FX,BX=function(r,i){var u=r.theme,l=u.spacing,d=u.colors;return yt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:d.neutral50,marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2})},zX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"placeholder",{placeholder:!0}),u),i)},UX=zX,HX=function(r,i){var u=r.isDisabled,l=r.theme,d=l.spacing,h=l.colors;return yt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i?{}:{color:u?h.neutral40:h.neutral80,marginLeft:d.baseUnit/2,marginRight:d.baseUnit/2})},$X=function(r){var i=r.children,u=r.isDisabled,l=r.innerProps;return Et("div",Rt({},yr(r,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),l),i)},GX=$X,WX={ClearIndicator:lX,Control:mX,DropdownIndicator:oX,DownChevron:xk,CrossIcon:UR,Group:SX,GroupHeading:xX,IndicatorsContainer:eX,IndicatorSeparator:cX,Input:NX,LoadingIndicator:pX,Menu:B5,MenuList:U5,MenuPortal:Y5,LoadingMessage:W5,NoOptionsMessage:G5,MultiValue:LX,MultiValueContainer:jX,MultiValueLabel:DX,MultiValueRemove:kX,Option:VX,Placeholder:UX,SelectContainer:J5,SingleValue:GX,ValueContainer:Q5},XX=function(r){return yt(yt({},WX),r.components)},wO=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function YX(n,r){return!!(n===r||wO(n)&&wO(r))}function ZX(n,r){if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!YX(n[i],r[i]))return!1;return!0}function JX(n,r){r===void 0&&(r=ZX);var i=null;function u(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];if(i&&i.lastThis===this&&r(l,i.lastArgs))return i.lastResult;var h=n.apply(this,l);return i={lastResult:h,lastArgs:l,lastThis:this},h}return u.clear=function(){i=null},u}var Tm={};function qX(){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 QX=Tm.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:qX},KX=function(r){return Et("span",Rt({css:QX},r))},RO=KX,eY={guidance:function(r){var i=r.isSearchable,u=r.isMulti,l=r.tabSelectsValue,d=r.context,h=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(l?", press Tab to select the option and exit the menu":"",".");case"input":return h?"".concat(r["aria-label"]||"Select"," is focused ").concat(i?",type to refine list":"",", press Down to open the menu, ").concat(u?" 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,u=r.label,l=u===void 0?"":u,d=r.labels,h=r.isDisabled;switch(i){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(l,", 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 h?"option ".concat(l," is disabled. Select another option."):"option ".concat(l,", selected.");default:return""}},onFocus:function(r){var i=r.context,u=r.focused,l=r.options,d=r.label,h=d===void 0?"":d,v=r.selectValue,y=r.isDisabled,C=r.isSelected,x=r.isAppleDevice,R=function(O,_){return O&&O.length?"".concat(O.indexOf(_)+1," of ").concat(O.length):""};if(i==="value"&&v)return"value ".concat(h," focused, ").concat(R(v,u),".");if(i==="menu"&&x){var T=y?" disabled":"",A="".concat(C?" selected":"").concat(T);return"".concat(h).concat(A,", ").concat(R(l,u),".")}return""},onFilter:function(r){var i=r.inputValue,u=r.resultsMessage;return"".concat(u).concat(i?" for search term "+i:"",".")}},tY=function(r){var i=r.ariaSelection,u=r.focusedOption,l=r.focusedValue,d=r.focusableOptions,h=r.isFocused,v=r.selectValue,y=r.selectProps,C=r.id,x=r.isAppleDevice,R=y.ariaLiveMessages,T=y.getOptionLabel,A=y.inputValue,N=y.isMulti,O=y.isOptionDisabled,_=y.isSearchable,L=y.menuIsOpen,V=y.options,F=y.screenReaderStatus,U=y.tabSelectsValue,z=y.isLoading,H=y["aria-label"],J=y["aria-live"],q=M.useMemo(function(){return yt(yt({},eY),R||{})},[R]),Re=M.useMemo(function(){var xe="";if(i&&q.onChange){var je=i.option,Le=i.options,ne=i.removedValue,_e=i.removedValues,G=i.value,Y=function(we){return Array.isArray(we)?null:we},re=ne||je||Y(G),ye=re?T(re):"",Se=Le||_e||void 0,Ne=Se?Se.map(T):[],le=yt({isDisabled:re&&O(re,v),label:ye,labels:Ne},i);xe=q.onChange(le)}return xe},[i,q,O,v,T]),he=M.useMemo(function(){var xe="",je=u||l,Le=!!(u&&v&&v.includes(u));if(je&&q.onFocus){var ne={focused:je,label:T(je),isDisabled:O(je,v),isSelected:Le,options:d,context:je===u?"menu":"value",selectValue:v,isAppleDevice:x};xe=q.onFocus(ne)}return xe},[u,l,T,O,q,d,v,x]),ge=M.useMemo(function(){var xe="";if(L&&V.length&&!z&&q.onFilter){var je=F({count:d.length});xe=q.onFilter({inputValue:A,resultsMessage:je})}return xe},[d,A,L,q,V,F,z]),fe=(i==null?void 0:i.action)==="initial-input-focus",Oe=M.useMemo(function(){var xe="";if(q.guidance){var je=l?"value":L?"menu":"input";xe=q.guidance({"aria-label":H,context:je,isDisabled:u&&O(u,v),isMulti:N,isSearchable:_,tabSelectsValue:U,isInitialFocus:fe})}return xe},[H,u,l,N,O,_,L,q,v,U,fe]),Te=Et(M.Fragment,null,Et("span",{id:"aria-selection"},Re),Et("span",{id:"aria-focused"},he),Et("span",{id:"aria-results"},ge),Et("span",{id:"aria-guidance"},Oe));return Et(M.Fragment,null,Et(RO,{id:C},fe&&Te),Et(RO,{"aria-live":J,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},h&&!fe&&Te))},nY=tY,Fw=[{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źẑżžẓẕƶȥɀⱬꝣ"}],rY=new RegExp("["+Fw.map(function(n){return n.letters}).join("")+"]","g"),Rk={};for(var YE=0;YE<Fw.length;YE++)for(var ZE=Fw[YE],JE=0;JE<ZE.letters.length;JE++)Rk[ZE.letters[JE]]=ZE.base;var Tk=function(r){return r.replace(rY,function(i){return Rk[i]})},aY=JX(Tk),TO=function(r){return r.replace(/^\s+|\s+$/g,"")},iY=function(r){return"".concat(r.label," ").concat(r.value)},oY=function(r){return function(i,u){if(i.data.__isNew__)return!0;var l=yt({ignoreCase:!0,ignoreAccents:!0,stringify:iY,trim:!0,matchFrom:"any"},r),d=l.ignoreCase,h=l.ignoreAccents,v=l.stringify,y=l.trim,C=l.matchFrom,x=y?TO(u):u,R=y?TO(v(i)):v(i);return d&&(x=x.toLowerCase(),R=R.toLowerCase()),h&&(x=aY(x),R=Tk(R)),C==="start"?R.substr(0,x.length)===x:R.indexOf(x)>-1}},sY=["innerRef"];function lY(n){var r=n.innerRef,i=nl(n,sY),u=j5(i,"onExited","in","enter","exit","appear");return Et("input",Rt({ref:r},u,{css:FR({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)"},Tm.NODE_ENV==="production"?"":";label:DummyInput;",Tm.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var uY=function(r){r.cancelable&&r.preventDefault(),r.stopPropagation()};function cY(n){var r=n.isEnabled,i=n.onBottomArrive,u=n.onBottomLeave,l=n.onTopArrive,d=n.onTopLeave,h=M.useRef(!1),v=M.useRef(!1),y=M.useRef(0),C=M.useRef(null),x=M.useCallback(function(_,L){if(C.current!==null){var V=C.current,F=V.scrollTop,U=V.scrollHeight,z=V.clientHeight,H=C.current,J=L>0,q=U-z-F,Re=!1;q>L&&h.current&&(u&&u(_),h.current=!1),J&&v.current&&(d&&d(_),v.current=!1),J&&L>q?(i&&!h.current&&i(_),H.scrollTop=U,Re=!0,h.current=!0):!J&&-L>F&&(l&&!v.current&&l(_),H.scrollTop=0,Re=!0,v.current=!0),Re&&uY(_)}},[i,u,l,d]),R=M.useCallback(function(_){x(_,_.deltaY)},[x]),T=M.useCallback(function(_){y.current=_.changedTouches[0].clientY},[]),A=M.useCallback(function(_){var L=y.current-_.changedTouches[0].clientY;x(_,L)},[x]),N=M.useCallback(function(_){if(_){var L=_5?{passive:!1}:!1;_.addEventListener("wheel",R,L),_.addEventListener("touchstart",T,L),_.addEventListener("touchmove",A,L)}},[A,T,R]),O=M.useCallback(function(_){_&&(_.removeEventListener("wheel",R,!1),_.removeEventListener("touchstart",T,!1),_.removeEventListener("touchmove",A,!1))},[A,T,R]);return M.useEffect(function(){if(r){var _=C.current;return N(_),function(){O(_)}}},[r,N,O]),function(_){C.current=_}}var IO=["boxSizing","height","overflow","paddingRight","position"],NO={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function _O(n){n.preventDefault()}function OO(n){n.stopPropagation()}function AO(){var n=this.scrollTop,r=this.scrollHeight,i=n+this.offsetHeight;n===0?this.scrollTop=1:i===r&&(this.scrollTop=n-1)}function jO(){return"ontouchstart"in window||navigator.maxTouchPoints}var DO=!!(typeof window<"u"&&window.document&&window.document.createElement),sm=0,Mp={capture:!1,passive:!1};function fY(n){var r=n.isEnabled,i=n.accountForScrollbars,u=i===void 0?!0:i,l=M.useRef({}),d=M.useRef(null),h=M.useCallback(function(y){if(DO){var C=document.body,x=C&&C.style;if(u&&IO.forEach(function(N){var O=x&&x[N];l.current[N]=O}),u&&sm<1){var R=parseInt(l.current.paddingRight,10)||0,T=document.body?document.body.clientWidth:0,A=window.innerWidth-T+R||0;Object.keys(NO).forEach(function(N){var O=NO[N];x&&(x[N]=O)}),x&&(x.paddingRight="".concat(A,"px"))}C&&jO()&&(C.addEventListener("touchmove",_O,Mp),y&&(y.addEventListener("touchstart",AO,Mp),y.addEventListener("touchmove",OO,Mp))),sm+=1}},[u]),v=M.useCallback(function(y){if(DO){var C=document.body,x=C&&C.style;sm=Math.max(sm-1,0),u&&sm<1&&IO.forEach(function(R){var T=l.current[R];x&&(x[R]=T)}),C&&jO()&&(C.removeEventListener("touchmove",_O,Mp),y&&(y.removeEventListener("touchstart",AO,Mp),y.removeEventListener("touchmove",OO,Mp)))}},[u]);return M.useEffect(function(){if(r){var y=d.current;return h(y),function(){v(y)}}},[r,h,v]),function(y){d.current=y}}function dY(){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 pY=function(r){var i=r.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},vY=Tm.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:dY};function hY(n){var r=n.children,i=n.lockEnabled,u=n.captureEnabled,l=u===void 0?!0:u,d=n.onBottomArrive,h=n.onBottomLeave,v=n.onTopArrive,y=n.onTopLeave,C=cY({isEnabled:l,onBottomArrive:d,onBottomLeave:h,onTopArrive:v,onTopLeave:y}),x=fY({isEnabled:i}),R=function(A){C(A),x(A)};return Et(M.Fragment,null,i&&Et("div",{onClick:pY,css:vY}),r(R))}function mY(){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 gY=Tm.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:mY},yY=function(r){var i=r.name,u=r.onFocus;return Et("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:gY,value:"",onChange:function(){}})},bY=yY;function HR(n){var r;return typeof window<"u"&&window.navigator!=null?n.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function CY(){return HR(/^iPhone/i)}function Ik(){return HR(/^Mac/i)}function xY(){return HR(/^iPad/i)||Ik()&&navigator.maxTouchPoints>1}function SY(){return CY()||xY()}function EY(){return Ik()||SY()}var wY=function(r){return r.label},RY=function(r){return r.label},TY=function(r){return r.value},IY=function(r){return!!r.isDisabled},NY={clearIndicator:sX,container:Z5,control:vX,dropdownIndicator:iX,group:yX,groupHeading:CX,indicatorsContainer:K5,indicatorSeparator:uX,input:wX,loadingIndicator:dX,loadingMessage:$5,menu:P5,menuList:z5,menuPortal:X5,multiValue:_X,multiValueLabel:OX,multiValueRemove:AX,noOptionsMessage:H5,option:PX,placeholder:BX,singleValue:HX,valueContainer:q5},_Y={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%)"},OY=4,Nk=4,AY=38,jY=Nk*2,DY={baseUnit:Nk,controlHeight:AY,menuGutter:jY},qE={borderRadius:OY,colors:_Y,spacing:DY},kY={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:SO(),captureMenuScroll:!SO(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:oY(),formatGroupLabel:wY,getOptionLabel:RY,getOptionValue:TY,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:IY,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!I5(),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 kO(n,r,i,u){var l=Ak(n,r,i),d=jk(n,r,i),h=Ok(n,r),v=_0(n,r);return{type:"option",data:r,isDisabled:l,isSelected:d,label:h,value:v,index:u}}function n0(n,r){return n.options.map(function(i,u){if("options"in i){var l=i.options.map(function(h,v){return kO(n,h,r,v)}).filter(function(h){return LO(n,h)});return l.length>0?{type:"group",data:i,options:l,index:u}:void 0}var d=kO(n,i,r,u);return LO(n,d)?d:void 0}).filter(O5)}function _k(n){return n.reduce(function(r,i){return i.type==="group"?r.push.apply(r,IR(i.options.map(function(u){return u.data}))):r.push(i.data),r},[])}function MO(n,r){return n.reduce(function(i,u){return u.type==="group"?i.push.apply(i,IR(u.options.map(function(l){return{data:l.data,id:"".concat(r,"-").concat(u.index,"-").concat(l.index)}}))):i.push({data:u.data,id:"".concat(r,"-").concat(u.index)}),i},[])}function MY(n,r){return _k(n0(n,r))}function LO(n,r){var i=n.inputValue,u=i===void 0?"":i,l=r.data,d=r.isSelected,h=r.label,v=r.value;return(!kk(n)||!d)&&Dk(n,{label:h,value:v,data:l},u)}function LY(n,r){var i=n.focusedValue,u=n.selectValue,l=u.indexOf(i);if(l>-1){var d=r.indexOf(i);if(d>-1)return i;if(l<r.length)return r[l]}return null}function PY(n,r){var i=n.focusedOption;return i&&r.indexOf(i)>-1?i:r[0]}var QE=function(r,i){var u,l=(u=r.find(function(d){return d.data===i}))===null||u===void 0?void 0:u.id;return l||null},Ok=function(r,i){return r.getOptionLabel(i)},_0=function(r,i){return r.getOptionValue(i)};function Ak(n,r,i){return typeof n.isOptionDisabled=="function"?n.isOptionDisabled(r,i):!1}function jk(n,r,i){if(i.indexOf(r)>-1)return!0;if(typeof n.isOptionSelected=="function")return n.isOptionSelected(r,i);var u=_0(n,r);return i.some(function(l){return _0(n,l)===u})}function Dk(n,r,i){return n.filterOption?n.filterOption(r,i):!0}var kk=function(r){var i=r.hideSelectedOptions,u=r.isMulti;return i===void 0?u:i},FY=1,$R=function(n){H4(i,n);var r=W4(i);function i(u){var l;if(z4(this,i),l=r.call(this,u),l.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:""},l.blockOptionHover=!1,l.isComposing=!1,l.commonProps=void 0,l.initialTouchX=0,l.initialTouchY=0,l.openAfterFocus=!1,l.scrollToFocusedOptionOnUpdate=!1,l.userIsDragging=void 0,l.isAppleDevice=EY(),l.controlRef=null,l.getControlRef=function(y){l.controlRef=y},l.focusedOptionRef=null,l.getFocusedOptionRef=function(y){l.focusedOptionRef=y},l.menuListRef=null,l.getMenuListRef=function(y){l.menuListRef=y},l.inputRef=null,l.getInputRef=function(y){l.inputRef=y},l.focus=l.focusInput,l.blur=l.blurInput,l.onChange=function(y,C){var x=l.props,R=x.onChange,T=x.name;C.name=T,l.ariaOnChange(y,C),R(y,C)},l.setValue=function(y,C,x){var R=l.props,T=R.closeMenuOnSelect,A=R.isMulti,N=R.inputValue;l.onInputChange("",{action:"set-value",prevInputValue:N}),T&&(l.setState({inputIsHiddenAfterUpdate:!A}),l.onMenuClose()),l.setState({clearFocusValueOnUpdate:!0}),l.onChange(y,{action:C,option:x})},l.selectOption=function(y){var C=l.props,x=C.blurInputOnSelect,R=C.isMulti,T=C.name,A=l.state.selectValue,N=R&&l.isOptionSelected(y,A),O=l.isOptionDisabled(y,A);if(N){var _=l.getOptionValue(y);l.setValue(A.filter(function(L){return l.getOptionValue(L)!==_}),"deselect-option",y)}else if(!O)R?l.setValue([].concat(IR(A),[y]),"select-option",y):l.setValue(y,"select-option");else{l.ariaOnChange(y,{action:"select-option",option:y,name:T});return}x&&l.blurInput()},l.removeValue=function(y){var C=l.props.isMulti,x=l.state.selectValue,R=l.getOptionValue(y),T=x.filter(function(N){return l.getOptionValue(N)!==R}),A=Hb(C,T,T[0]||null);l.onChange(A,{action:"remove-value",removedValue:y}),l.focusInput()},l.clearValue=function(){var y=l.state.selectValue;l.onChange(Hb(l.props.isMulti,[],null),{action:"clear",removedValues:y})},l.popValue=function(){var y=l.props.isMulti,C=l.state.selectValue,x=C[C.length-1],R=C.slice(0,C.length-1),T=Hb(y,R,R[0]||null);l.onChange(T,{action:"pop-value",removedValue:x})},l.getFocusedOptionId=function(y){return QE(l.state.focusableOptionsWithIds,y)},l.getFocusableOptionsWithIds=function(){return MO(n0(l.props,l.state.selectValue),l.getElementId("option"))},l.getValue=function(){return l.state.selectValue},l.cx=function(){for(var y=arguments.length,C=new Array(y),x=0;x<y;x++)C[x]=arguments[x];return x5.apply(void 0,[l.props.classNamePrefix].concat(C))},l.getOptionLabel=function(y){return Ok(l.props,y)},l.getOptionValue=function(y){return _0(l.props,y)},l.getStyles=function(y,C){var x=l.props.unstyled,R=NY[y](C,x);R.boxSizing="border-box";var T=l.props.styles[y];return T?T(R,C):R},l.getClassNames=function(y,C){var x,R;return(x=(R=l.props.classNames)[y])===null||x===void 0?void 0:x.call(R,C)},l.getElementId=function(y){return"".concat(l.state.instancePrefix,"-").concat(y)},l.getComponents=function(){return XX(l.props)},l.buildCategorizedOptions=function(){return n0(l.props,l.state.selectValue)},l.getCategorizedOptions=function(){return l.props.menuIsOpen?l.buildCategorizedOptions():[]},l.buildFocusableOptions=function(){return _k(l.buildCategorizedOptions())},l.getFocusableOptions=function(){return l.props.menuIsOpen?l.buildFocusableOptions():[]},l.ariaOnChange=function(y,C){l.setState({ariaSelection:yt({value:y},C)})},l.onMenuMouseDown=function(y){y.button===0&&(y.stopPropagation(),y.preventDefault(),l.focusInput())},l.onMenuMouseMove=function(y){l.blockOptionHover=!1},l.onControlMouseDown=function(y){if(!y.defaultPrevented){var C=l.props.openMenuOnClick;l.state.isFocused?l.props.menuIsOpen?y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&l.onMenuClose():C&&l.openMenu("first"):(C&&(l.openAfterFocus=!0),l.focusInput()),y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&y.preventDefault()}},l.onDropdownIndicatorMouseDown=function(y){if(!(y&&y.type==="mousedown"&&y.button!==0)&&!l.props.isDisabled){var C=l.props,x=C.isMulti,R=C.menuIsOpen;l.focusInput(),R?(l.setState({inputIsHiddenAfterUpdate:!x}),l.onMenuClose()):l.openMenu("first"),y.preventDefault()}},l.onClearIndicatorMouseDown=function(y){y&&y.type==="mousedown"&&y.button!==0||(l.clearValue(),y.preventDefault(),l.openAfterFocus=!1,y.type==="touchend"?l.focusInput():setTimeout(function(){return l.focusInput()}))},l.onScroll=function(y){typeof l.props.closeMenuOnScroll=="boolean"?y.target instanceof HTMLElement&&Y0(y.target)&&l.props.onMenuClose():typeof l.props.closeMenuOnScroll=="function"&&l.props.closeMenuOnScroll(y)&&l.props.onMenuClose()},l.onCompositionStart=function(){l.isComposing=!0},l.onCompositionEnd=function(){l.isComposing=!1},l.onTouchStart=function(y){var C=y.touches,x=C&&C.item(0);x&&(l.initialTouchX=x.clientX,l.initialTouchY=x.clientY,l.userIsDragging=!1)},l.onTouchMove=function(y){var C=y.touches,x=C&&C.item(0);if(x){var R=Math.abs(x.clientX-l.initialTouchX),T=Math.abs(x.clientY-l.initialTouchY),A=5;l.userIsDragging=R>A||T>A}},l.onTouchEnd=function(y){l.userIsDragging||(l.controlRef&&!l.controlRef.contains(y.target)&&l.menuListRef&&!l.menuListRef.contains(y.target)&&l.blurInput(),l.initialTouchX=0,l.initialTouchY=0)},l.onControlTouchEnd=function(y){l.userIsDragging||l.onControlMouseDown(y)},l.onClearIndicatorTouchEnd=function(y){l.userIsDragging||l.onClearIndicatorMouseDown(y)},l.onDropdownIndicatorTouchEnd=function(y){l.userIsDragging||l.onDropdownIndicatorMouseDown(y)},l.handleInputChange=function(y){var C=l.props.inputValue,x=y.currentTarget.value;l.setState({inputIsHiddenAfterUpdate:!1}),l.onInputChange(x,{action:"input-change",prevInputValue:C}),l.props.menuIsOpen||l.onMenuOpen()},l.onInputFocus=function(y){l.props.onFocus&&l.props.onFocus(y),l.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(l.openAfterFocus||l.props.openMenuOnFocus)&&l.openMenu("first"),l.openAfterFocus=!1},l.onInputBlur=function(y){var C=l.props.inputValue;if(l.menuListRef&&l.menuListRef.contains(document.activeElement)){l.inputRef.focus();return}l.props.onBlur&&l.props.onBlur(y),l.onInputChange("",{action:"input-blur",prevInputValue:C}),l.onMenuClose(),l.setState({focusedValue:null,isFocused:!1})},l.onOptionHover=function(y){if(!(l.blockOptionHover||l.state.focusedOption===y)){var C=l.getFocusableOptions(),x=C.indexOf(y);l.setState({focusedOption:y,focusedOptionId:x>-1?l.getFocusedOptionId(y):null})}},l.shouldHideSelectedOptions=function(){return kk(l.props)},l.onValueInputFocus=function(y){y.preventDefault(),y.stopPropagation(),l.focus()},l.onKeyDown=function(y){var C=l.props,x=C.isMulti,R=C.backspaceRemovesValue,T=C.escapeClearsValue,A=C.inputValue,N=C.isClearable,O=C.isDisabled,_=C.menuIsOpen,L=C.onKeyDown,V=C.tabSelectsValue,F=C.openMenuOnFocus,U=l.state,z=U.focusedOption,H=U.focusedValue,J=U.selectValue;if(!O&&!(typeof L=="function"&&(L(y),y.defaultPrevented))){switch(l.blockOptionHover=!0,y.key){case"ArrowLeft":if(!x||A)return;l.focusValue("previous");break;case"ArrowRight":if(!x||A)return;l.focusValue("next");break;case"Delete":case"Backspace":if(A)return;if(H)l.removeValue(H);else{if(!R)return;x?l.popValue():N&&l.clearValue()}break;case"Tab":if(l.isComposing||y.shiftKey||!_||!V||!z||F&&l.isOptionSelected(z,J))return;l.selectOption(z);break;case"Enter":if(y.keyCode===229)break;if(_){if(!z||l.isComposing)return;l.selectOption(z);break}return;case"Escape":_?(l.setState({inputIsHiddenAfterUpdate:!1}),l.onInputChange("",{action:"menu-close",prevInputValue:A}),l.onMenuClose()):N&&T&&l.clearValue();break;case" ":if(A)return;if(!_){l.openMenu("first");break}if(!z)return;l.selectOption(z);break;case"ArrowUp":_?l.focusOption("up"):l.openMenu("last");break;case"ArrowDown":_?l.focusOption("down"):l.openMenu("first");break;case"PageUp":if(!_)return;l.focusOption("pageup");break;case"PageDown":if(!_)return;l.focusOption("pagedown");break;case"Home":if(!_)return;l.focusOption("first");break;case"End":if(!_)return;l.focusOption("last");break;default:return}y.preventDefault()}},l.state.instancePrefix="react-select-"+(l.props.instanceId||++FY),l.state.selectValue=CO(u.value),u.menuIsOpen&&l.state.selectValue.length){var d=l.getFocusableOptionsWithIds(),h=l.buildFocusableOptions(),v=h.indexOf(l.state.selectValue[0]);l.state.focusableOptionsWithIds=d,l.state.focusedOption=h[v],l.state.focusedOptionId=QE(d,h[v])}return l}return U4(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&&xO(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(l){var d=this.props,h=d.isDisabled,v=d.menuIsOpen,y=this.state.isFocused;(y&&!h&&l.isDisabled||y&&v&&!l.menuIsOpen)&&this.focusInput(),y&&h&&!l.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!y&&!h&&l.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(xO(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(l,d){this.props.onInputChange(l,d)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(l){var d=this,h=this.state,v=h.selectValue,y=h.isFocused,C=this.buildFocusableOptions(),x=l==="first"?0:C.length-1;if(!this.props.isMulti){var R=C.indexOf(v[0]);R>-1&&(x=R)}this.scrollToFocusedOptionOnUpdate=!(y&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:C[x],focusedOptionId:this.getFocusedOptionId(C[x])},function(){return d.onMenuOpen()})}},{key:"focusValue",value:function(l){var d=this.state,h=d.selectValue,v=d.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var y=h.indexOf(v);v||(y=-1);var C=h.length-1,x=-1;if(h.length){switch(l){case"previous":y===0?x=0:y===-1?x=C:x=y-1;break;case"next":y>-1&&y<C&&(x=y+1);break}this.setState({inputIsHidden:x!==-1,focusedValue:h[x]})}}}},{key:"focusOption",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",d=this.props.pageSize,h=this.state.focusedOption,v=this.getFocusableOptions();if(v.length){var y=0,C=v.indexOf(h);h||(C=-1),l==="up"?y=C>0?C-1:v.length-1:l==="down"?y=(C+1)%v.length:l==="pageup"?(y=C-d,y<0&&(y=0)):l==="pagedown"?(y=C+d,y>v.length-1&&(y=v.length-1)):l==="last"&&(y=v.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:v[y],focusedValue:null,focusedOptionId:this.getFocusedOptionId(v[y])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(qE):yt(yt({},qE),this.props.theme):qE}},{key:"getCommonProps",value:function(){var l=this.clearValue,d=this.cx,h=this.getStyles,v=this.getClassNames,y=this.getValue,C=this.selectOption,x=this.setValue,R=this.props,T=R.isMulti,A=R.isRtl,N=R.options,O=this.hasValue();return{clearValue:l,cx:d,getStyles:h,getClassNames:v,getValue:y,hasValue:O,isMulti:T,isRtl:A,options:N,selectOption:C,selectProps:R,setValue:x,theme:this.getTheme()}}},{key:"hasValue",value:function(){var l=this.state.selectValue;return l.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var l=this.props,d=l.isClearable,h=l.isMulti;return d===void 0?h:d}},{key:"isOptionDisabled",value:function(l,d){return Ak(this.props,l,d)}},{key:"isOptionSelected",value:function(l,d){return jk(this.props,l,d)}},{key:"filterOption",value:function(l,d){return Dk(this.props,l,d)}},{key:"formatOptionLabel",value:function(l,d){if(typeof this.props.formatOptionLabel=="function"){var h=this.props.inputValue,v=this.state.selectValue;return this.props.formatOptionLabel(l,{context:d,inputValue:h,selectValue:v})}else return this.getOptionLabel(l)}},{key:"formatGroupLabel",value:function(l){return this.props.formatGroupLabel(l)}},{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 l=this.props,d=l.isDisabled,h=l.isSearchable,v=l.inputId,y=l.inputValue,C=l.tabIndex,x=l.form,R=l.menuIsOpen,T=l.required,A=this.getComponents(),N=A.Input,O=this.state,_=O.inputIsHidden,L=O.ariaSelection,V=this.commonProps,F=v||this.getElementId("input"),U=yt(yt(yt({"aria-autocomplete":"list","aria-expanded":R,"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":T,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},R&&{"aria-controls":this.getElementId("listbox")}),!h&&{"aria-readonly":!0}),this.hasValue()?(L==null?void 0:L.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return h?M.createElement(N,Rt({},V,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:F,innerRef:this.getInputRef,isDisabled:d,isHidden:_,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:C,form:x,type:"text",value:y},U)):M.createElement(lY,Rt({id:F,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:I0,onFocus:this.onInputFocus,disabled:d,tabIndex:C,inputMode:"none",form:x,value:""},U))}},{key:"renderPlaceholderOrValue",value:function(){var l=this,d=this.getComponents(),h=d.MultiValue,v=d.MultiValueContainer,y=d.MultiValueLabel,C=d.MultiValueRemove,x=d.SingleValue,R=d.Placeholder,T=this.commonProps,A=this.props,N=A.controlShouldRenderValue,O=A.isDisabled,_=A.isMulti,L=A.inputValue,V=A.placeholder,F=this.state,U=F.selectValue,z=F.focusedValue,H=F.isFocused;if(!this.hasValue()||!N)return L?null:M.createElement(R,Rt({},T,{key:"placeholder",isDisabled:O,isFocused:H,innerProps:{id:this.getElementId("placeholder")}}),V);if(_)return U.map(function(q,Re){var he=q===z,ge="".concat(l.getOptionLabel(q),"-").concat(l.getOptionValue(q));return M.createElement(h,Rt({},T,{components:{Container:v,Label:y,Remove:C},isFocused:he,isDisabled:O,key:ge,index:Re,removeProps:{onClick:function(){return l.removeValue(q)},onTouchEnd:function(){return l.removeValue(q)},onMouseDown:function(Oe){Oe.preventDefault()}},data:q}),l.formatOptionLabel(q,"value"))});if(L)return null;var J=U[0];return M.createElement(x,Rt({},T,{data:J,isDisabled:O}),this.formatOptionLabel(J,"value"))}},{key:"renderClearIndicator",value:function(){var l=this.getComponents(),d=l.ClearIndicator,h=this.commonProps,v=this.props,y=v.isDisabled,C=v.isLoading,x=this.state.isFocused;if(!this.isClearable()||!d||y||!this.hasValue()||C)return null;var R={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return M.createElement(d,Rt({},h,{innerProps:R,isFocused:x}))}},{key:"renderLoadingIndicator",value:function(){var l=this.getComponents(),d=l.LoadingIndicator,h=this.commonProps,v=this.props,y=v.isDisabled,C=v.isLoading,x=this.state.isFocused;if(!d||!C)return null;var R={"aria-hidden":"true"};return M.createElement(d,Rt({},h,{innerProps:R,isDisabled:y,isFocused:x}))}},{key:"renderIndicatorSeparator",value:function(){var l=this.getComponents(),d=l.DropdownIndicator,h=l.IndicatorSeparator;if(!d||!h)return null;var v=this.commonProps,y=this.props.isDisabled,C=this.state.isFocused;return M.createElement(h,Rt({},v,{isDisabled:y,isFocused:C}))}},{key:"renderDropdownIndicator",value:function(){var l=this.getComponents(),d=l.DropdownIndicator;if(!d)return null;var h=this.commonProps,v=this.props.isDisabled,y=this.state.isFocused,C={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return M.createElement(d,Rt({},h,{innerProps:C,isDisabled:v,isFocused:y}))}},{key:"renderMenu",value:function(){var l=this,d=this.getComponents(),h=d.Group,v=d.GroupHeading,y=d.Menu,C=d.MenuList,x=d.MenuPortal,R=d.LoadingMessage,T=d.NoOptionsMessage,A=d.Option,N=this.commonProps,O=this.state.focusedOption,_=this.props,L=_.captureMenuScroll,V=_.inputValue,F=_.isLoading,U=_.loadingMessage,z=_.minMenuHeight,H=_.maxMenuHeight,J=_.menuIsOpen,q=_.menuPlacement,Re=_.menuPosition,he=_.menuPortalTarget,ge=_.menuShouldBlockScroll,fe=_.menuShouldScrollIntoView,Oe=_.noOptionsMessage,Te=_.onMenuScrollToTop,xe=_.onMenuScrollToBottom;if(!J)return null;var je=function(ye,Se){var Ne=ye.type,le=ye.data,ve=ye.isDisabled,we=ye.isSelected,Ve=ye.label,et=ye.value,tt=O===le,ft=ve?void 0:function(){return l.onOptionHover(le)},Ae=ve?void 0:function(){return l.selectOption(le)},It="".concat(l.getElementId("option"),"-").concat(Se),pt={id:It,onClick:Ae,onMouseMove:ft,onMouseOver:ft,tabIndex:-1,role:"option","aria-selected":l.isAppleDevice?void 0:we};return M.createElement(A,Rt({},N,{innerProps:pt,data:le,isDisabled:ve,isSelected:we,key:It,label:Ve,type:Ne,value:et,isFocused:tt,innerRef:tt?l.getFocusedOptionRef:void 0}),l.formatOptionLabel(ye.data,"menu"))},Le;if(this.hasOptions())Le=this.getCategorizedOptions().map(function(re){if(re.type==="group"){var ye=re.data,Se=re.options,Ne=re.index,le="".concat(l.getElementId("group"),"-").concat(Ne),ve="".concat(le,"-heading");return M.createElement(h,Rt({},N,{key:le,data:ye,options:Se,Heading:v,headingProps:{id:ve,data:re.data},label:l.formatGroupLabel(re.data)}),re.options.map(function(we){return je(we,"".concat(Ne,"-").concat(we.index))}))}else if(re.type==="option")return je(re,"".concat(re.index))});else if(F){var ne=U({inputValue:V});if(ne===null)return null;Le=M.createElement(R,N,ne)}else{var _e=Oe({inputValue:V});if(_e===null)return null;Le=M.createElement(T,N,_e)}var G={minMenuHeight:z,maxMenuHeight:H,menuPlacement:q,menuPosition:Re,menuShouldScrollIntoView:fe},Y=M.createElement(F5,Rt({},N,G),function(re){var ye=re.ref,Se=re.placerProps,Ne=Se.placement,le=Se.maxHeight;return M.createElement(y,Rt({},N,G,{innerRef:ye,innerProps:{onMouseDown:l.onMenuMouseDown,onMouseMove:l.onMenuMouseMove},isLoading:F,placement:Ne}),M.createElement(hY,{captureEnabled:L,onTopArrive:Te,onBottomArrive:xe,lockEnabled:ge},function(ve){return M.createElement(C,Rt({},N,{innerRef:function(Ve){l.getMenuListRef(Ve),ve(Ve)},innerProps:{role:"listbox","aria-multiselectable":N.isMulti,id:l.getElementId("listbox")},isLoading:F,maxHeight:le,focusedOption:O}),Le)}))});return he||Re==="fixed"?M.createElement(x,Rt({},N,{appendTo:he,controlElement:this.controlRef,menuPlacement:q,menuPosition:Re}),Y):Y}},{key:"renderFormField",value:function(){var l=this,d=this.props,h=d.delimiter,v=d.isDisabled,y=d.isMulti,C=d.name,x=d.required,R=this.state.selectValue;if(x&&!this.hasValue()&&!v)return M.createElement(bY,{name:C,onFocus:this.onValueInputFocus});if(!(!C||v))if(y)if(h){var T=R.map(function(O){return l.getOptionValue(O)}).join(h);return M.createElement("input",{name:C,type:"hidden",value:T})}else{var A=R.length>0?R.map(function(O,_){return M.createElement("input",{key:"i-".concat(_),name:C,type:"hidden",value:l.getOptionValue(O)})}):M.createElement("input",{name:C,type:"hidden",value:""});return M.createElement("div",null,A)}else{var N=R[0]?this.getOptionValue(R[0]):"";return M.createElement("input",{name:C,type:"hidden",value:N})}}},{key:"renderLiveRegion",value:function(){var l=this.commonProps,d=this.state,h=d.ariaSelection,v=d.focusedOption,y=d.focusedValue,C=d.isFocused,x=d.selectValue,R=this.getFocusableOptions();return M.createElement(nY,Rt({},l,{id:this.getElementId("live-region"),ariaSelection:h,focusedOption:v,focusedValue:y,isFocused:C,selectValue:x,focusableOptions:R,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var l=this.getComponents(),d=l.Control,h=l.IndicatorsContainer,v=l.SelectContainer,y=l.ValueContainer,C=this.props,x=C.className,R=C.id,T=C.isDisabled,A=C.menuIsOpen,N=this.state.isFocused,O=this.commonProps=this.getCommonProps();return M.createElement(v,Rt({},O,{className:x,innerProps:{id:R,onKeyDown:this.onKeyDown},isDisabled:T,isFocused:N}),this.renderLiveRegion(),M.createElement(d,Rt({},O,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:T,isFocused:N,menuIsOpen:A}),M.createElement(y,Rt({},O,{isDisabled:T}),this.renderPlaceholderOrValue(),this.renderInput()),M.createElement(h,Rt({},O,{isDisabled:T}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(l,d){var h=d.prevProps,v=d.clearFocusValueOnUpdate,y=d.inputIsHiddenAfterUpdate,C=d.ariaSelection,x=d.isFocused,R=d.prevWasFocused,T=d.instancePrefix,A=l.options,N=l.value,O=l.menuIsOpen,_=l.inputValue,L=l.isMulti,V=CO(N),F={};if(h&&(N!==h.value||A!==h.options||O!==h.menuIsOpen||_!==h.inputValue)){var U=O?MY(l,V):[],z=O?MO(n0(l,V),"".concat(T,"-option")):[],H=v?LY(d,V):null,J=PY(d,U),q=QE(z,J);F={selectValue:V,focusedOption:J,focusedOptionId:q,focusableOptionsWithIds:z,focusedValue:H,clearFocusValueOnUpdate:!1}}var Re=y!=null&&l!==h?{inputIsHidden:y,inputIsHiddenAfterUpdate:void 0}:{},he=C,ge=x&&R;return x&&!ge&&(he={value:Hb(L,V,V[0]||null),options:V,action:"initial-input-focus"},ge=!R),(C==null?void 0:C.action)==="initial-input-focus"&&(he=null),yt(yt(yt({},F),Re),{},{prevProps:l,ariaSelection:he,prevWasFocused:ge})}}]),i}(M.Component);$R.defaultProps=kY;var VY=M.forwardRef(function(n,r){var i=GD(n);return M.createElement($R,Rt({ref:r},i))}),GR=VY;function zp({bg:n="dark",children:r,color:i="light",fontWeight:u="bold",icon:l="info-circle-fill",initial:d=!1,maxWidth:h="200px",padding:v="10px",placement:y,target:C,trigger:x="click",visible:R=!0}){const T=typeof d=="string"||d instanceof String,[A,N]=M.useState(T?localStorage.getItem(d)!="true":d),[O,_]=M.useState(!1);M.useEffect(()=>{setTimeout(()=>_(!0),100)},[]);const L=()=>{T&&localStorage.setItem(d,"true")},V=b.jsxs(TR,{style:{"--bs-tooltip-bg":`var(--bs-${n})`,"--bs-tooltip-color":`var(--bs-${i})`,"--bs-tooltip-max-width":h,"--bs-tooltip-padding-x":v,"--bs-tooltip-padding-y":v,fontWeight:u},children:[b.jsx("button",{"aria-label":"Close",onClick:()=>{L(),N(!1)},style:{background:"transparent",border:"0 none transparent",float:"right"},children:b.jsx("i",{className:"bi bi-x-lg"})}),r]});return C&&C.current?b.jsx(zD,{target:C.current,placement:y,show:A&&R&&O,children:V}):b.jsx(UD,{placement:y,onToggle:F=>{L(),N(F)},overlay:V,show:A&&R&&O,trigger:x,children:b.jsx("button",{className:"btn bnt-clear border-0",style:{backgroundColor:"transparent"},children:b.jsx("i",{className:`bi bi-${l}`})})})}const BY="_items_c2dbg_1",zY="_item_c2dbg_1",UY="_details_c2dbg_14",HY="_text_c2dbg_20",$Y="_number_c2dbg_35",GY="_outer_c2dbg_50",WY="_inner_c2dbg_61",Yl={items:BY,item:zY,details:UY,text:HY,number:$Y,outer:GY,inner:WY},lm=(n,r)=>`${Math.cos(2*Math.PI*n)*r} ${Math.sin(2*Math.PI*n)*r}`;function XY({requestId:n,grantNumber:r,creditColorClass:i="gray-300",colorClasses:u=vw}){const{request:l}=ri(n,r);if(!l)return;let d=0,h;const v=[];for(let T of l.resources)T.isBoolean||(T.isCredit?h=T:v.push(T),d+=T.requested*T.unitCost);const y=[],C=[];let x=-.25;const R=[...v,h].map((T,A)=>{if(!T)return null;const N=A+1,_=T.requested*T.unitCost/d,L=T.requested-T.used,V=Math.max(0,L),F=T.isCredit?d/T.unitCost:T.requested,U=F==0?0:100*V/F,H=`var(--bs-${T.isCredit?i:u[A%u.length]})`;if(_>0){const J=x,q=x+_/2,Re=x+=_,he=_>.5?1:0,ge=[`M ${lm(J,100)}`,`A 100 100 0 ${he} 1 ${lm(Re,100)}`,`L ${lm(Re,50)}`,`A 50 50 0 ${he} 0 ${lm(J,50)}`].join(" "),[fe,Oe]=lm(q,75).split(" ").map(Te=>parseFloat(Te));y.push(b.jsx("path",{d:ge,style:{fill:H}},T.resourceId)),C.push(b.jsx("circle",{cx:fe,cy:Oe,r:"8",fill:"black"},`${T.resourceId}-circle`),b.jsx("text",{x:fe-4,y:Oe+4,fill:"white",className:Yl.number,children:N},`${T.resourceId}-text`))}return T.isCredit&&C.push(b.jsx("foreignObject",{x:"-50",y:"-50",width:"100",height:"100",children:b.jsx("div",{className:Yl.text,children:b.jsxs("div",{children:[b.jsx("strong",{children:ni(V,{abbreviate:!0})}),T.unit," available"]})})},"center-text")),b.jsxs("li",{className:Yl.item,children:[b.jsx("span",{className:Yl.number,children:N}),b.jsx("span",{className:`${Yl.outer} ms-2 me-2`,style:{borderColor:H},children:b.jsx("span",{className:Yl.inner,style:{backgroundColor:H,width:`${U}%`}})}),b.jsxs("strong",{className:Yl.name,children:[Uf(T,{userGuide:!1}),": "]}),b.jsxs("span",{className:Yl.details,children:[ni(L,{abbreviate:!0})," ",T.isCredit?null:b.jsxs(b.Fragment,{children:["of ",ni(F,{abbreviate:!0})," "]}),T.unit," ",T.isCredit?"available":"remaining"," (",Math.round(U),"%)"]})]},T.resourceId)});return b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-lg-3 mb-3 d-flex flex-row align-items-center justify-content-center",children:b.jsxs("svg",{version:"1.1",viewBox:"-100 -100 200 200",width:"200",height:"200",xmlns:"http://www.w3.org/2000/svg",children:[y,C]})}),b.jsx("div",{className:"col-lg-9 mb-3 d-flex flex-column justify-content-center",children:b.jsx("ul",{className:Yl.items,children:R})})]})}const PO=n=>n;function YY({classes:n,clean:r=PO,format:i=PO,label:u,setValue:l,style:d,value:h}){const v=i(h),[y,C]=M.useState(v);return M.useEffect(()=>{C(v)},[v]),b.jsx("input",{type:"text","aria-label":u,className:`form-control ${n}`,value:y,style:d,onChange:x=>C(x.target.value),onBlur:x=>{const R=r(x.target.value);C(i(R)),l(R)},onKeyDown:x=>{x.code=="Enter"&&(x.preventDefault(),x.target.blur())}})}function ZY({requestId:n,grantNumber:r}){const{request:i,addResource:u,openUsageDetailModal:l,resetResources:d,setResourceRequest:h,setResourcesReason:v,statuses:y,toggleActionsModal:C,toggleConfirmModal:x,toggleResourcesModal:R}=ri(n,r),{project:T}=Ji(r||i&&i.grantNumber),A=M.useRef(null),N=M.useRef(null);if(!i||!T)return;const O="Exchange"in i.allowedActions,_="Renewal"in i.allowedActions,L="Supplement"in i.allowedActions,V=i.exchangeStatus==y.pending,F=i.exchangeStatus==y.success,U=i.exchangeStatus==y.error,z=i.exchangeActionId!==null,H=i.resources,J=i.resourcesReason,q={};for(let le of H)q[le.resourceId]=le;const Re=()=>{MA(i)>=.75?C():x()},he=[];for(let le of H){let ve=[];if(le.requested>0){for(let we of le.requires||[]){let Ve=q[we];if(Ve){if(Ve.requested>0){ve=[];break}ve.push(Ve)}}ve.length&&he.push(b.jsxs("span",{children:[Uf(le,{userGuide:!1})," requires"," ",kA(ve.map(we=>Uf(we,{userGuide:!1})),"or"),"."]},le.resourceId))}}const ge=he.length>0;let fe;F?fe=b.jsx(ma,{color:"info",children:"Your exchange request has been submitted."}):z?fe=b.jsx(ma,{color:"warning",children:"You have an exchange request under review. The information below reflects the pending exchange request."}):U?fe=b.jsx(ma,{color:"danger",children:"Sorry, your exchange request could not be submitted. Please try again later."}):i.timeStatus=="current"&&!T.isManager?fe=b.jsxs(ma,{color:"warning",children:["You do not have permission to manage resources for this project. Please contact ",nR(T)," to request a change."]}):ge&&(fe=b.jsxs(ma,{color:"warning",children:[he," Please adjust your balance values."]}));const Oe=J.length>0;let Te=!1,xe=!1;for(let le of H)if(le.isNew&&(Te=!0),le.allocated!=le.requested&&(xe=!0),Te&&xe)break;const je=H.map(le=>le.resourceId),Le=O&&!F&&!z?i.allowedActions.Exchange.resources.filter(le=>!je.includes(le.resourceId)).map(le=>{const ve=L0(le.name),we=ve.short?`${ve.short} (${ve.full.replace(/ \([^(]+\)/,"")})`:ve.full;return{value:le.resourceId,label:we}}):[],ne=O?i.allowedActions.Exchange.resources.map(le=>le.resourceId):[];let _e;const G=[],Y=[];for(let le of H)le.isCredit?_e=le:(G.push(le),Y.push(!F&&!z&&(le.isNew||le.allocated!=le.requested)?Vp.edited:ne.includes(le.resourceId)?"":Vp.disabled));const re=`Add ${G.length?"another":"a"} resource to your exchange...`,ye=le=>le.requested-le.used,Se=(le,ve)=>{let we=Pp(Number(le.replace(/[^0-9-.]/g,""))+ve.used,ve.decimalPlaces);isNaN(we)&&(we=ve.allocated);const Ve=Math.min(ve.allocated,ve.used);return we<Ve?Ve:ve.unitCost*(we-ve.requested)>_e.requested?Pp(_e.requested/ve.unitCost,ve.decimalPlaces,"floor")+ve.requested:we},Ne=[{key:"name",name:"Resource",format:(le,ve)=>Uf(ve),width:Math.min(350,window.innerWidth*.3)},{key:"isActive",name:"Status",format:(le,ve)=>b.jsx(Yp,{status:le?"Active":ve.isNew?"New":"Inactive"}),width:100},{key:"unit",name:"Unit",width:150,format:(le,ve)=>ve.isBoolean?b.jsx(b.Fragment,{children:"—"}):b.jsx("abbr",{title:`1 ${v_(le,1)} = ${ni(ve.unitCost)} ${v_(_e.name,ve.unitCost)}`,children:le})},{key:"used",name:"Usage",class:"text-end",format:(le,ve)=>ve.isBoolean?b.jsx(b.Fragment,{children:"—"}):b.jsxs(b.Fragment,{children:[ni(le),(T.currentUser.resourceIds.includes(ve.resourceId)||T.currentUser.resourceAccountInactiveIds.includes(ve.resourceId))&&b.jsx(f0,{icon:"table",onClick:()=>l(ve.resourceRepositoryKey),target:"_blank",title:`${ve.name} Usage Details`})]})}];return O&&Ne.push({key:"requested",name:"Balance",class:"text-end",rowClass:le=>!F&&!z&&ne.includes(le.resourceId)?Vp.input:"",format:(le,ve)=>{const we=!F&&!z&&ne.includes(ve.resourceId);return ve.isBoolean?b.jsx("input",{className:"form-check-input",type:"checkbox",checked:le==1,disabled:!we,onChange:Ve=>h(ve.resourceId,Ve.target.checked?1:0)}):we?b.jsx(YY,{classes:"text-end w-100",clean:Ve=>Se(Ve,ve)-ve.used,format:ni,label:`Balance for ${ve.name}`,setValue:Ve=>{h(ve.resourceId,Ve+ve.used)},style:{padding:"0.1rem 0.5rem"},value:ye(ve)}):ni(ye(ve))},formatHeader:le=>b.jsxs(b.Fragment,{children:[le,!F&&!z?b.jsx(zp,{bg:"secondary",color:"dark",initial:"myprojects.requestedAllocation",placement:"top-end",visible:T.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]})}),b.jsxs("div",{className:"resources",children:[fe,H.length?b.jsx(XY,{requestId:n}):null,_e&&(O||_||L)?b.jsxs("h2",{className:"mb-1 mt-2 d-flex justify-content-between",children:[b.jsxs("span",{children:[mc(Nn.resourceTypeIcons.credit)," ",ni(_e.requested,_e)," ",_e.unit," available to exchange"]}),_||L?b.jsxs("button",{type:"button",className:"btn btn-sm btn-primary ms-2",onClick:Re,children:[mc(Nn.resourceTypeIcons.credit)," Request More"," ",i.usesCredits?"Credits":"Units"]}):null]}):null,G.length?b.jsx(Qf,{columns:Ne,rows:G,rowClasses:Y,classes:Le.length?"mb-0":"",frozenColumns:2,minWidth:"800px"}):b.jsx("div",{className:"card p-2 text-bg-light p-3",children:"This project does not have any resources."}),Le.length?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"p-2",style:{backgroundColor:"var(--teal-200)",border:"1px solid #cccccc",marginTop:"-1px"},ref:A,children:b.jsx(GR,{classNames:{control:()=>"react-select mb-1"},options:Le,onChange:le=>u(le.value),placeholder:re,value:null,"aria-label":re})}),G.length?null:b.jsx(zp,{bg:"secondary",color:"dark",visible:T.tab=="resources",initial:!0,target:A,children:"Ready to get started? Search for a resource to add it to your project."}),b.jsxs("p",{className:"text-black-50",style:{fontSize:"0.9rem"},children:["Need help choosing a resource? Visit our"," ",b.jsx("a",{href:Nn.routes.resources_path(),children:"Resource Catalog"}),"."]})]}):null,O&&!F&&!z?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"mb-3",children:[b.jsx("label",{htmlFor:"resources-reason",className:"form-label required",children:"Please briefly explain how the requested resources and amounts will contribute to your research."}),b.jsx("textarea",{className:"form-control",id:"resources-reason",rows:"2",value:J,onChange:le=>v(le.target.value),style:{minHeight:"3rem"}})]}),b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:V||!xe&&!Oe&&!Te,onClick:d,children:"Reset Form"}),b.jsx("button",{ref:N,type:"button",className:"btn btn-secondary",disabled:V||!xe||!Oe||ge,onClick:R,children:V?"Submitting...":"Submit for Approval"})]}),xe&&!ge?b.jsx(zp,{bg:"secondary",color:"dark",initial:"myprojects.submitExchange",maxWidth:"390px",placement:"right",target:N,visible:T.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 JY({question:n,requestId:r,grantNumber:i}){const{request:u,setResourceQuestionValues:l}=ri(r,i),d=M.useId();if(!n||!u||u.error)return;const{attributeSetId:h,attributes:v,fieldType:y,label:C,resourceId:x,values:R}=n,T=v[0],A=T.required?"required":"",N=F=>l(x,h,F.target.value?[F.target.value]:[]),O=F=>{l(x,h,Array.from(F.target.options).filter(({selected:U})=>U).map(({value:U})=>parseInt(U,10)))},_=F=>{const U=parseInt(F.target.value,10),z=F.target.checked?[...R,U]:R.filter(H=>H!=U);l(x,h,z)},L=F=>{const U=parseInt(F.target.value);l(x,h,isNaN(U)?[]:[U])};let V;if(["calendar","integer_only","text"].includes(y)){const F={calendar:"date",integer_only:"number",text:"text"}[y];V=b.jsx("input",{className:"form-control",id:d,type:F,placeholder:T.label,required:T.required,value:R[0]||"",onChange:y=="integer_only"?L:N})}else if(y=="textarea")V=b.jsx("textarea",{className:"form-control",id:d,placeholder:T.label,required:T.required,value:R[0]||"",onChange:N});else if(y=="drop_down"||v.length>=10){const F=y=="multi_sel";V=b.jsxs("select",{id:d,className:"form-select",required:T.required,multiple:F,onChange:F?O:L,value:F?R:R[0]||"",children:[F?null:b.jsx("option",{}),v.map(U=>b.jsx("option",{value:U.resourceAttributeId,children:U.label},U.resourceAttributeId))]})}else V=b.jsx("div",{id:d,children:v.map(F=>{const U=`resource-attribute-${F.resourceAttributeId}`;return b.jsxs("div",{className:"form-check",children:[b.jsx("input",{className:"form-check-input",type:y=="single_sel"?"radio":"checkbox",id:U,value:F.resourceAttributeId,checked:R.includes(F.resourceAttributeId),onChange:y=="single_sel"?L:_}),b.jsx("label",{className:"form-check-label",htmlFor:U,children:F.label})]},F.resourceAttributeId)})});return b.jsxs("div",{className:"mb-3",children:[b.jsx("label",{htmlFor:d,className:`form-label ${A}`,children:C}),V]})}function qY({requestId:n,grantNumber:r}){const{request:i,saveResources:u,toggleResourcesModal:l}=ri(n,r),{project:d}=Ji(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const h=[],v=i.resources.filter(C=>C.allocated!=C.requested).map(C=>{const x=C.requested-C.allocated;return C.questions&&h.push(...C.questions),b.jsxs("li",{className:"list-group-item d-flex justify-content-between align-items-center mb-0",children:[C.name,b.jsx("span",{className:`badge bg-${x>0?"primary":"danger"} rounded-pill`,children:C.isBoolean?tR(C.requested):b.jsxs(b.Fragment,{children:[x>0?"+":"",ni(x,C)," ",C.unit]})})]},C.resourceId)}),y=h.some(({attributes:C,values:x})=>x.length==0&&C[0].required);return b.jsxs(Ln,{size:"lg",show:i.showResourcesModal,onHide:l,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Complete Your Exchange"})}),b.jsxs(Ln.Body,{children:[b.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."}),b.jsx("ul",{className:"list-group mb-3",children:v}),h.length?b.jsxs(b.Fragment,{children:[b.jsx("h2",{children:"Resource Questions"}),b.jsx("p",{children:"Some of the resources you selected have associated questions. Please answer the questions below."}),h.map(C=>b.jsx(JY,{question:C,requestId:n,grantNumber:r},C.attributeSetId))]}):null]}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:l,children:"Continue Editing"}),b.jsx("button",{type:"button",className:"btn btn-secondary",onClick:u,disabled:y,children:"Submit"})]})})]})}function Mm(){return b.jsx("div",{className:"spinner-border",role:"status",children:b.jsx("span",{className:"visually-hidden",children:"Loading..."})})}function Mk({user:n}){const r=`${n.lastName}, ${n.firstName}`;let i=r,u=[n.organization,n.email].filter(l=>l).join(", ");return u&&(i+=`: ${u}`),b.jsx("abbr",{title:i,children:r})}function QY({requestId:n,grantNumber:r}){const{project:i}=Ji(r),{request:u,closeUsageDetailModal:l}=ri(n,r);if(!u||u.error||!i||i.error||!u.usageDetailStatus)return;let d,h="Usage";if(u.usageDetailStatus==ea.pending)d=b.jsx(Mm,{});else if(u.usageDetailStatus==ea.error)d=b.jsx(ma,{color:"danger",children:"An error occurred while loading usage data."});else{const{projectTitle:v,resourceDisplayName:y,resourceRepositoryKey:C,users:x}=u.usageDetail,{full:R,short:T}=L0(y),A=u.resources.find(L=>L.resourceRepositoryKey==C),N=L=>ni(L,{decimalPlaces:A?A.decimalPlaces:void 0}),O={};for(let L of i.users)O[L.username]=L;h=b.jsxs(b.Fragment,{children:["Usage: ",T||R," for ",v]});const _=[{key:"name",name:"Name",format:(L,{lastName:V,firstName:F,portalUsername:U})=>{const z=O[U];return z?b.jsx(Mk,{user:z}):`${V}, ${F}`}},{key:"portalUsername",name:"Resource Username",format:L=>{const V=O[L],F=V?V.resourceUsernames[A.resourceId]:null;return F||b.jsx(b.Fragment,{children:"—"})}},{key:"role",name:"Role",format:L=>LA[L].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=x.length?b.jsx(Qf,{rows:x,columns:_}):b.jsx(ma,{color:"info",children:"There is no usage for this resource."})}return b.jsxs(Ln,{show:!0,size:"lg",onHide:l,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:h})}),b.jsx(Ln.Body,{children:d})]})}var KY=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function eZ(n){var r=n.defaultOptions,i=r===void 0?!1:r,u=n.cacheOptions,l=u===void 0?!1:u,d=n.loadOptions;n.options;var h=n.isLoading,v=h===void 0?!1:h,y=n.onInputChange,C=n.filterOption,x=C===void 0?null:C,R=nl(n,KY),T=R.inputValue,A=M.useRef(void 0),N=M.useRef(!1),O=M.useState(Array.isArray(i)?i:void 0),_=ta(O,2),L=_[0],V=_[1],F=M.useState(typeof T<"u"?T:""),U=ta(F,2),z=U[0],H=U[1],J=M.useState(i===!0),q=ta(J,2),Re=q[0],he=q[1],ge=M.useState(void 0),fe=ta(ge,2),Oe=fe[0],Te=fe[1],xe=M.useState([]),je=ta(xe,2),Le=je[0],ne=je[1],_e=M.useState(!1),G=ta(_e,2),Y=G[0],re=G[1],ye=M.useState({}),Se=ta(ye,2),Ne=Se[0],le=Se[1],ve=M.useState(void 0),we=ta(ve,2),Ve=we[0],et=we[1],tt=M.useState(void 0),ft=ta(tt,2),Ae=ft[0],It=ft[1];l!==Ae&&(le({}),It(l)),i!==Ve&&(V(Array.isArray(i)?i:void 0),et(i)),M.useEffect(function(){return N.current=!0,function(){N.current=!1}},[]);var pt=M.useCallback(function(sn,_n){if(!d)return _n();var Vt=d(sn,_n);Vt&&typeof Vt.then=="function"&&Vt.then(_n,function(){return _n()})},[d]);M.useEffect(function(){i===!0&&pt(z,function(sn){N.current&&(V(sn||[]),he(!!A.current))})},[]);var Kt=M.useCallback(function(sn,_n){var Vt=S5(sn,_n,y);if(!Vt){A.current=void 0,H(""),Te(""),ne([]),he(!1),re(!1);return}if(l&&Ne[Vt])H(Vt),Te(Vt),ne(Ne[Vt]),he(!1),re(!1);else{var Cn=A.current={};H(Vt),he(!0),re(!Oe),pt(Vt,function(qn){N&&Cn===A.current&&(A.current=void 0,he(!1),Te(Vt),ne(qn||[]),re(!1),le(qn?yt(yt({},Ne),{},Lp({},Vt,qn)):Ne))})}},[l,pt,Oe,Ne,y]),on=Y?[]:z&&Oe?Le:L||[];return yt(yt({},R),{},{options:on,isLoading:Re||v,onInputChange:Kt,filterOption:x})}var tZ=M.forwardRef(function(n,r){var i=eZ(n),u=GD(i);return M.createElement($R,Rt({ref:r},u))}),nZ=tZ;const FO=({description:n,disabled:r=!1,onChange:i,selectedLength:u,totalLength:l})=>{const d=M.useRef(),h=M.useId();let v=u==l,y=u>0&&!v;return M.useEffect(()=>{d.current&&(d.current.checked=v,d.current.indeterminate=y)},[v,y]),b.jsxs(b.Fragment,{children:[b.jsx("input",{className:"custom-checkbox form-check-input",disabled:r,id:h,onChange:C=>i(C.target.checked),ref:d,type:"checkbox"}),b.jsx("label",{className:"form-check-label",htmlFor:h,"aria-description":`${v?"Deselect":"Select"} ${n}`})]})};function rZ({grantNumber:n,requestId:r}){const{project:i,addUser:u,resetUsers:l,saveUsers:d,setTab:h,setUserRole:v,statuses:y,toggleUsersResources:C}=Ji(n),{request:x}=i?ri(r||i.currentRequestId,n):{request:null};if(!i||!i.currentRequestId||!x||i.error||x.error)return;const R=i.isManager,T="Exchange"in x.allowedActions,A=i.usersStatus==y.pending,N=i.usersStatus==y.success,O=i.usersStatus==y.error,_=i.users,L=x.resources.filter(mw),V=L.length==0,F=_.find(he=>he.hasChanges)!==void 0,U=_.find(he=>he.role!="pi")!==void 0;let z;N&&!F?z=b.jsx(ma,{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."}):O?z=b.jsx(ma,{color:"danger",children:"Sorry, your changes could not be saved. Please try again later."}):R?L.length?V&&(z=b.jsx(ma,{color:"warning",children:"This project does not have any active resources."})):z=b.jsxs(ma,{color:"warning",children:["This project does not have any resources."," ",T?b.jsx("a",{href:Nn.routes.request_action_path(x.requestId,"new?action_type=Exchange"),onClick:he=>{he.preventDefault(),h("resources")},children:"Exchange credits for resources."}):null," ","Additional users can be added after an exchange is approved."]}):z=b.jsxs(ma,{color:"warning",children:["You do not have permission to manage users for this project. Please contact ",nR(i)," to request a change."]});const H=(he,ge)=>{let fe,Oe,Te,xe;if(ge.key=="all"){fe="all resources for all users",Oe=je=>C(je),Te=0;for(let je of _)Te+=je.resourceIds.length;xe=_.length*L.length}else fe=`all users for ${ge.name}`,Oe=je=>C(je,null,ge.key),Te=_.filter(({resourceIds:je})=>je.includes(ge.key)).length,xe=_.length;return b.jsxs(b.Fragment,{children:[ge.key=="all"?he:Uf(ge,{userGuide:!1}),b.jsx("br",{}),b.jsx(FO,{description:fe,disabled:ge.disabled,onChange:Oe,selectedLength:Te,totalLength:xe})]})},J=P0.map(({role:he,name:ge})=>b.jsx("option",{value:he,children:ge},he)),q=[{key:"name",name:"Name",width:200,format:(he,ge)=>b.jsx(Mk,{user:ge})},{key:"username",name:"ACCESS Username",width:100},{key:"role",name:"Role",width:100,format:(he,ge)=>b.jsx("select",{className:"form-select",value:he,onChange:fe=>v(ge.username,fe.target.value),disabled:!R||he=="pi"||he=="co_pi",style:{position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:0},children:J.filter(fe=>fe.key==he||!["pi","co_pi"].includes(fe.key))})}];L.length&&q.push({key:"all",name:"All Resources",class:`text-center ${Vp.important}`,disabled:!R||V,width:100,format:(he,ge)=>b.jsx(FO,{description:`all users for ${ge.name}`,disabled:!R||V,onChange:fe=>C(fe,ge.username),selectedLength:ge.resourceIds.length,totalLength:L.length}),formatHeader:H});for(let he of L)q.push({key:he.resourceId,name:he.name,class:"text-center",disabled:!R||!he.isActive,icon:he.icon,format:(ge,fe)=>b.jsx(b.Fragment,{children:b.jsx("input",{className:"form-check-input",disabled:!R||!he.isActive,onChange:Oe=>C(Oe.target.checked,fe.username,he.resourceId),type:"checkbox",checked:fe.resourceIds.includes(he.resourceId)})}),formatHeader:H});const Re=_.map(he=>he.hasChanges?Vp.edited:"");return b.jsxs(b.Fragment,{children:[z,b.jsx(Qf,{rows:_,columns:q,frozenColumns:L.length?4:3,classes:"mb-0",minWidth:"800px",rowClasses:Re,scrollRowIndex:i.usersNewRowIndex}),R&&L.length&&!V?b.jsx("div",{style:{marginTop:"-1px",position:"relative",zIndex:100},children:b.jsx(nZ,{classNames:{control:()=>"react-select"},loadOptions:async he=>(await YH(he)).map(fe=>({value:fe,label:`${fe.username} (${fe.firstName} ${fe.lastName}, ${fe.organization}${fe.email?`, ${fe.email}`:""})`})),onChange:he=>u(he.value),placeholder:"Add another user...",value:null,"aria-label":"Add another user"})}):null,R&&(L.length&&!V||U)?b.jsxs("div",{className:"d-flex mt-3",children:[b.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:A||!F,onClick:l,children:"Reset Form"}),b.jsx("button",{type:"button",className:"btn btn-secondary",disabled:A||!F,onClick:d,children:A?"Saving...":"Save Changes"})]}):null]})}function aZ({requestId:n,grantNumber:r}){const{request:i}=ri(n,r),{project:u,setRequest:l,setTab:d}=Ji(r||i.grantNumber);if(!i)return;if(i.error)return b.jsx(ma,{color:"danger",children:i.error});const h=i.timeStatus||i.actions[0].status.toLowerCase(),v=i.actions.find(({showDeleteModal:C})=>C),y=[];return i.resources.length||y.push("resources"),n!=u.currentRequestId&&y.push("users"),b.jsxs("div",{className:"request",children:[i.timeStatus!="current"?b.jsxs(ma,{color:"warning",children:["You are viewing ","aeiou".includes(h[0])?"an":"a"," ",h," request."," ",y.length?`You cannot manage ${y.join(" or ")} for this request.`:""," ",u.currentRequestId?b.jsx("a",{href:Nn.routes.request_path(u.currentRequestId),onClick:C=>{C.preventDefault(),l(u.currentRequestId)},children:"Go to the current request."}):null]}):null,b.jsxs(W3,{activeKey:u.tab,onSelect:d,className:"mt-3 mb-3",children:[b.jsx(kb,{eventKey:"overview",title:"Overview",className:"mb-0",children:b.jsx(M4,{requestId:n,grantNumber:r})}),b.jsx(kb,{eventKey:"resources",title:i.usesCredits?"Credits + Resources":"Resources",disabled:y.includes("resources"),children:b.jsx(ZY,{requestId:n})}),b.jsx(kb,{eventKey:"users",title:"Users + Roles",disabled:y.includes("users"),children:b.jsx(rZ,{grantNumber:r})}),b.jsx(kb,{eventKey:"history",title:"History",children:b.jsx(u4,{requestId:n})})]}),b.jsx(Q9,{grantNumber:r,requestId:n}),b.jsx(K9,{grantNumber:r,requestId:n}),b.jsx(e4,{grantNumber:r,requestId:n,actionId:v?v.actionId:null}),b.jsx(qY,{grantNumber:r,requestId:n}),b.jsx(QY,{grantNumber:r,requestId:n})]})}function iZ({requestId:n,grantNumber:r}){const{request:i,toggleActionsModal:u,toggleDeleteModal:l}=ri(n,r);if(!i)return;const{actions:d,allowedActions:h}=i,v=[];h&&(("Extension"in h||"Renewal"in h)&&v.push(["Extend End Date",C=>{C.preventDefault(),u()},"calendar-plus"]),"Final Report"in h&&v.push(["Submit Final Report",`${Nn.routes.request_action_path(n,"new")}?action_type=Final+Report`,"file-earmark-check"]));const y=d.find(C=>C.isRequest);if(y){const C=y.allowedOperations||[];C.includes("Edit")&&v.push(["Edit",Nn.routes.edit_request_path(i.requestId),"pencil"]),C.includes("Delete")&&v.push(["Delete",x=>{x.preventDefault(),l(y.actionId)},"trash","danger"])}return v.map(([C,x,R,T])=>{const A=b.jsxs(b.Fragment,{children:[" ",R&&b.jsx("i",{className:`bi bi-${R} me-1`}),C]});return typeof x=="function"?b.jsx("button",{className:`btn btn-${T||"primary"} ms-2 text-nowrap`,onClick:x,children:A},C):b.jsx("a",{className:`btn btn-${T||"primary"} ms-2 text-nowrap`,href:x,children:A},C)})}function oZ({open:n=!1,grantNumber:r,title:i,status:u}){const[l,d]=M.useState(n),{project:h,setRequest:v}=Ji(r,!l&&i&&u&&!0),y=`project-${r}`;let C=null;if(l&&h)if(h.error)C=b.jsx(ma,{color:"danger",children:h.error});else{let x;const R=h.requestsList.map(T=>(T.requestId==h.selectedRequestId&&(x=T),b.jsx("option",{value:T.requestId,children:eR(T)},T.requestId)));C=b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"d-flex",children:[b.jsx("select",{className:"form-select","aria-label":"Select a request to display",onChange:T=>v(parseInt(T.target.value,10)),value:h.selectedRequestId,disabled:R.length<2,children:R}),b.jsx(iZ,{requestId:h.selectedRequestId,grantNumber:r})]}),x?b.jsx(aZ,{...x,grantNumber:r}):null]})}return b.jsxs("div",{className:`${y_.project} card mb-3`,children:[b.jsxs("div",{className:`card-header d-flex justify-content-between ${l?"":"border-bottom-0"}`,children:[b.jsx("button",{"aria-expanded":l,"aria-controls":y,className:y_.expand,onClick:()=>d(!l),children:b.jsxs("h2",{className:"mb-1 mt-1 text-start",children:[b.jsx("i",{className:`bi bi-caret-${l?"down":"right"}-fill`})," ",/^[A-Z]/.test(r)?b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"grant-number",children:[r,":"]})," "]}):null,i||h.title]})}),b.jsx(Yp,{status:u||h.status})]}),b.jsx("div",{className:"card-body",id:y,hidden:!l||!h,children:C})]})}function sZ({username:n,openFirst:r=1}){const{error:i,loading:u,projects:l}=y$(n);return u?b.jsx(Mm,{}):i?b.jsxs(ma,{color:"danger",children:[i," ",b.jsx("a",{href:"#",onClick:d=>{d.preventDefault(),window.location.reload()},children:"Reload the page"})," ","to try again."]}):l.length?l.map((d,h)=>b.jsx(oZ,{open:h<r,...d},d.grantNumber)):b.jsxs("div",{className:"pt-5 pb-5 text-bg-light border border-light-subtle",children:[b.jsx("p",{className:"fs-2 text-center mb-4",children:"You don't have any projects yet."}),b.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[b.jsxs("a",{className:"btn btn-primary w-25",href:Nn.routes.project_types_path(),children:[b.jsx("i",{className:"bi bi-boxes fs-1 d-block"})," Learn about Project Types"]}),b.jsxs("a",{className:"btn btn-secondary w-25",href:Nn.routes.get_your_first_project_path(),children:[b.jsx("i",{className:"bi bi-cpu fs-1 d-block"})," Learn How to Get Your"," ",b.jsx("br",{className:"d-none d-xxl-inline"})," First Project"]}),b.jsxs("a",{className:"btn btn-primary w-25",href:Nn.routes.how_to_path(),children:[b.jsx("i",{className:"bi bi-person-plus fs-1 d-block"})," Learn How to Join an Existing Project"]})]})]})}const Lk={apiUrl:null,pages:1,projects:[],projectsLoaded:!1,filtersLoaded:!0,showPagination:!1,filters:{org:"",allocationType:"",allFosToggled:!0,resource:""},pageData:{current_page:1,last_page:1},typeLists:{orgs:[],fosTypes:[],allocationTypes:[],resources:[]}},lZ=Di("projectsBrowser/initApp",async(n,{getState:r,dispatch:i})=>{await i(Vw()),await i($f()),i(uZ())}),uZ=Di("projectsBrowser/filterCleanup",async(n,{getState:r,dispatch:i})=>{const l=r().projectsBrowser.typeLists;i(Pk({...l,orgs:["-- ALL --"].concat(l.orgs)}))}),Vw=Di("projectsBrowser/getFilters",async(n,{getState:r,dispatch:i})=>{const l=`${r().projectsBrowser.apiUrl}?filters=1`,h=await(await fetch(l)).json();i(Pk(h.filters))}),$f=Di("projectsBrowser/getProjects",async(n,{getState:r})=>{const i=r().projectsBrowser,u=i.filters,l=i.typeLists,d=l.fosTypes.filter(C=>C.checked);let h=`${i.apiUrl}?page=${i.pageData.current_page}`;return d.length!=l.fosTypes.length&&(h+=`&fos=${d.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()}),WR=k0({name:"projectsBrowser",initialState:Lk,reducers:{resetFilters:n=>{n.filters={org:"",allocationType:"",allFosToggled:!1,resource:""},WR.caseReducers.toggleAllFos(n)},setApiUrl:(n,{payload:r})=>{n.apiUrl=r},setShowPagination:(n,{payload:r})=>{n.showPagination=r},setTypeLists:(n,{payload:r})=>{n.typeLists=r},toggleAllFos:n=>{n.typeLists.fosTypes.forEach(r=>r.checked=!n.filters.allFosToggled),n.filters.allFosToggled=!n.filters.allFosToggled},toggleFos:(n,{payload:r})=>{n.typeLists.fosTypes.forEach(i=>{i.fosTypeId==r.fosTypeId&&(i.checked=!i.checked)}),n.typeLists.fosTypes.filter(i=>i.checked).length!=n.typeLists.fosTypes.length?n.filters.allFosToggled=!1:n.filters.allFosToggled=!0},updateFilter:(n,{payload:r})=>{n.filters[r.name]=r.value},updatePageData:(n,{payload:r})=>{r.current_page&&(n.pageData.current_page=r.current_page),r.last_page&&(n.pageData.last_page=r.last_page)}},extraReducers:n=>{n.addCase($f.pending,r=>{r.projectsLoaded=!1}).addCase($f.fulfilled,(r,i)=>{const u=i.payload;r.projectsLoaded=!0,r.projects=u.projects,u.pages!=r.pageData.last_page&&(r.pageData.current_page=1),r.showPagination=!0,r.pageData.last_page=u.pages}).addCase($f.rejected,(r,i)=>{console.log(i.error)}).addCase(Vw.pending,r=>{r.filtersLoaded=!1}).addCase(Vw.fulfilled,r=>{r.filtersLoaded=!0})}}),{resetFilters:cZ,setApiUrl:H8,setShowPagination:VO,setTypeLists:Pk,toggleAllFos:fZ,toggleFos:dZ,updateFilter:BO,updatePageData:Bw}=WR.actions,pZ=n=>n.projectsBrowser.filters,vZ=n=>n.projectsBrowser.filtersLoaded,hZ=n=>n.projectsBrowser.projectsLoaded,mZ=n=>n.projectsBrowser.pageData,gZ=n=>n.projectsBrowser.projects,yZ=n=>n.projectsBrowser.filtersLoaded&&n.projectsBrowser.projectsLoaded&&n.projectsBrowser.pageData.last_page>1,bZ=n=>n.projectsBrowser.typeLists,CZ=WR.reducer;const xZ=()=>{const n=To(),r=dr(pZ),i=dr(bZ),u=i.orgs.map(O=>({label:O,value:O})),l=M.useRef(),[d,h]=M.useState(null),[v,y]=M.useState(!1),C={height:"200px",overflowX:"auto",padding:"2px"},x=O=>{n(BO({name:O.target.name,value:O.target.value}))},R=()=>{window.scrollTo(0,0),y(!0),n(VO(!1)),n(Bw({current_page:1})),n($f())},T=()=>{h(null),n(VO(!1)),n(Bw({current_page:1})),n(cZ()),v&&(window.scrollTo(0,0),n($f()),y(!1))},A=O=>{h(O),n(BO({name:"org",value:O.value}))},N=()=>r.org==""&&r.allocationType==""&&r.allFosToggled&&r.resource=="";return b.jsx("div",{className:"row sticky-top mb-2",children:b.jsxs("div",{className:"col",children:[b.jsx("h3",{className:"mb-2",children:"Filters"}),b.jsx("h5",{className:"mb-1",children:"Field of Science"}),b.jsxs("div",{className:"border mb-3",style:C,children:[b.jsxs("div",{className:"form-check",children:[b.jsx("input",{className:"form-check-input",type:"checkbox",value:"",id:"toggle_all",checked:r.allFosToggled,onChange:()=>{n(fZ())}}),b.jsx("label",{className:"form-check-label",htmlFor:"toggle_all",children:"(Toggle All)"})]}),i.fosTypes.map(O=>b.jsxs("div",{className:"form-check",children:[b.jsx("input",{className:"form-check-input",type:"checkbox",value:O.fosTypeId,id:`fos_${O.fosTypeId}`,checked:O.checked,onChange:()=>n(dZ(O))}),b.jsx("label",{className:"form-check-label",htmlFor:`fos_${O.fosTypeId}`,children:O.fosName})]},`fos_${O.fosTypeId}`))]}),b.jsx("h5",{id:"org_select_label",className:"mb-1",children:"Organization"}),b.jsx("div",{className:"mb-3",children:b.jsx(GR,{options:u,openMenuOnClick:!0,name:"org",inputId:"orgs_filter",ref:l,closeMenuOnSelect:!0,onChange:A,value:d,"aria-labelledby":"org_select_label"},"org_select")}),b.jsx("h5",{id:"project_type_label",className:"mb-1",children:b.jsx("abbr",{title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),b.jsx("div",{className:"mb-3",children:b.jsxs("select",{name:"allocationType",id:"project_type_select",value:r.allocationType,className:"form-control","aria-labelledby":"project_type_label",onChange:O=>x(O),children:[b.jsx("option",{value:"",children:"-- All --"}),i.allocationTypes.map((O,_)=>b.jsx("option",{value:O,children:O},`allocation_type_${_}`))]})}),b.jsx("h5",{id:"resource_filter_label",className:"mb-1",children:"Resource"}),b.jsx("div",{className:"mb-3",children:b.jsxs("select",{name:"resource",id:"resource_select",value:r.resource,className:"form-control","aria-labelledby":"resource_filter_label",onChange:O=>x(O),children:[b.jsx("option",{value:"",children:"-- All --"}),i.resources.map((O,_)=>b.jsx("option",{value:O.resourceId,children:O.resourceName},`resource_${_}`))]})}),b.jsxs("div",{className:"mt-2",children:[b.jsx("button",{className:"btn btn-primary me-2",onClick:R,children:"Submit"}),b.jsx("button",{className:"btn btn-secondary",disabled:N(),onClick:T,children:"Reset"})]})]})})};const SZ=({project:n})=>{const r=n.resources,i=l=>{let d=l.units?l.units:l.resourceUnits;const h=l.allocation?l.allocation:l.amount;if(d=="[Yes = 1, No = 0]")return l.allocation=="1.0"?"Yes":"No";{let v="0";return parseInt(h)&&(v=parseInt(h).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),d=="ACCESS Credits"&&(d=b.jsx("span",{className:"tooltip-underline",title:"universal currency that can be exchanged for resource units",children:"ACCESS Credits"})),d=="Dollars"?`$${v}`:b.jsxs(b.Fragment,{children:[v," ",d]})}},u=()=>n.requestNumber&&n.requestNumber!=""?`(${n.requestNumber})`:"";return b.jsxs("div",{className:"card mb-4",children:[b.jsxs("div",{className:"card-header bg-primary text-white",children:[b.jsxs("span",{className:"fw-bold",children:[u()," ",n.requestTitle]})," ",b.jsx("br",{}),b.jsxs("span",{className:"fst-italic",children:[n.pi," ",b.jsxs("small",{children:[" (",n.piInstitution,") "]})]})]}),b.jsxs("div",{className:"card-body",children:[b.jsxs("div",{className:"row fw-bold border-bottom",children:[b.jsx("div",{className:"col",children:b.jsx("span",{className:"mb-1 pb-0",children:"Field of Science"})}),b.jsx("div",{className:"col",children:b.jsx("span",{className:"mb-1 pb-0 tooltip-underline",title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),b.jsx("div",{className:"col",children:b.jsx("span",{className:"mb-1 pb-0",children:"Dates"})})]}),b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col",children:n.fos}),b.jsx("div",{className:"col",children:n.allocationType}),b.jsxs("div",{className:"col",children:[n.beginDate," to ",n.endDate]})]}),b.jsxs(os,{flush:!0,className:"mt-3 mb-1",children:[b.jsxs(os.Item,{eventKey:"0",children:[b.jsx(os.Header,{children:"Resources"}),b.jsx(os.Body,{children:b.jsxs("table",{className:"table table-striped table-bordered mt-2 mb-0",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx("span",{className:"m-0 p-0",children:"Resource"})}),b.jsx("td",{children:b.jsx("span",{className:"m-0 p-0 d-inline",children:"Allocation"})})]})}),b.jsx("tbody",{children:r.map((l,d)=>b.jsxs("tr",{children:[b.jsx("td",{children:l.resourceName}),b.jsx("td",{style:{whiteSpace:"nowrap"},children:i(l)})]},`resource_${n.requestId}_${d}`))})]})})]}),b.jsxs(os.Item,{eventKey:"1",children:[b.jsx(os.Header,{children:"Abstract"}),b.jsx(os.Body,{children:b.jsx("div",{style:{whiteSpace:"pre-wrap",padding:"5px"},children:n.abstract})})]})]})]})]})},EZ=()=>{const n=dr(gZ);return n.length==0?b.jsx("div",{children:"No Projects Found"}):b.jsx("div",{children:n.map((r,i)=>b.jsx(SZ,{project:r},`project_${i}`))})};const zO=()=>{const n=To(),r=dr(mZ),[i,u]=M.useState([]),[l,d]=M.useState("0"),h=Array.from({length:r.last_page},(N,O)=>O),v=10,y={width:"50px",textAlign:"center"};M.useEffect(()=>{R()},[r]);const C=N=>{const O=parseInt(N);n(Bw({current_page:N})),n($f(O))},x=N=>(event.preventDefault(),d("0"),C(N),!1),R=()=>{const N=[];if(r.last_page>v)if(r.current_page>4){N.push(1),N.push("spacer");for(var O=1;O>0;O--)r.current_page-O>1&&N.push(r.current_page-O);N.push(["current",r.current_page]);for(var O=1;O<2;O++)r.current_page+O<=r.last_page&&N.push(r.current_page+O);r.last_page-r.current_page>1&&(N.push("spacer"),N.push(r.last_page))}else[1,2,3,4,5].forEach(_=>{_==r.current_page?N.push(["current",_]):N.push(_)}),N.push("spacer"),N.push(r.last_page);else for(var O=1;O<=r.last_page;O++)O==r.current_page?N.push(["current",O]):N.push(O);u(N)},T=N=>{let O="";return typeof N=="object"?[N,O]=N:O=N,N=="spacer"?b.jsx("li",{className:"page-item disabled",children:b.jsx("span",{className:"page-link",style:y,children:". . ."})}):N=="current"?b.jsx("li",{className:"page-item active","aria-current":"page",children:b.jsx("span",{className:"page-link",style:y,children:O})}):b.jsx("li",{className:"page-item",children:b.jsx("button",{className:"page-link",style:y,onClick:()=>C(N),children:O})})},A=()=>b.jsx("li",{className:"page-item",children:b.jsxs("select",{className:"page-link",style:{...y,height:"100%"},value:l,onChange:N=>x(N.target.value),children:[b.jsx("option",{value:"0",children:"Go To"}),h.map(N=>b.jsx("option",{value:N+1,children:N+1},`page_option_${N}`))]})});return b.jsx("div",{children:b.jsx("nav",{"aria-label":"Pages for the table",children:b.jsxs("ul",{className:"pagination",children:[b.jsx("li",{className:`page-item ${r.current_page==1?"disabled":""}`,children:b.jsx("button",{className:"page-link",style:{width:"50px",textAlign:"center"},onClick:()=>C(r.current_page-1),disabled:r.current_page==1,"aria-label":"Previous Page Button",children:"<"})}),i.map((N,O)=>b.jsx(kr.Fragment,{children:T(N)},`page_${O}`)),r.last_page>v?A():"",b.jsx("li",{className:`page-item ${r.current_page==r.last_page?"disabled":""}`,children:b.jsx("button",{className:"page-link",style:y,onClick:()=>C(r.current_page+1),disabled:r.current_page==r.last_page,"aria-label":"Next Page Button",children:">"})})]})})})},wZ=({api_url:n})=>{const r=To(),i=dr(hZ),u=dr(vZ),l=dr(yZ),d=b.jsx("div",{className:"loadingDiv",children:"Loading ..."});return M.useEffect(()=>{r(lZ())},[]),b.jsx("div",{className:"container-fluid",children:b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-sm-3",children:b.jsx(xZ,{})}),b.jsxs("div",{className:"col-sm-9",children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:l?b.jsx(zO,{}):""})}),b.jsx("div",{className:"row",id:"projectListRow",children:b.jsx("div",{className:"col",children:i&&u?b.jsx(EZ,{}):d})}),b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:l?b.jsx(zO,{scroll:"projects_browser_app"}):""})})]})]})})},RZ=n=>n.publications_store.publication,TZ=n=>n.publications_store.publication.doi,IZ=n=>n.publications_store.publication_types,Fk=n=>n.publications_store.publication.authors,NZ=n=>n.publications_store.tag_categories,_Z=n=>n.publications_store.projects,OZ=n=>n.publications_store.publication.tags,AZ=n=>n.publications_store.errors,Vk=n=>n.publications_store.data_loaded,Bk=n=>n.publications_store.show_saved,XR=n=>n.publications_store.saving,jZ=n=>n.publications_store.modal,zk=n=>n.publications_store.form_valid,Uk=n=>!XR(n)&&Vk(n)&&zk(n)&&Hk(n)&&n.publications_store.projects.filter(r=>r.selected).length>0,Hk=n=>{const r=Fk(n);return r.length==0?!1:r.filter(i=>i.first_name==""||i.last_name=="").length==0},$k=n=>({type:"UPDATE_PUBLICATION",payload:n}),DZ=n=>({type:"UPDATE_FIELD",payload:n}),zw=n=>({type:"CHANGE_PUB_TYPE",payload:n}),kZ=n=>({type:"SET_PUBLICATION",payload:n}),MZ=()=>({type:"ADD_AUTHOR"}),LZ=n=>({type:"UPDATE_AUTHOR",payload:n}),PZ=n=>({type:"TOGGLE_REQUEST",payload:n}),Im=n=>({type:"UPDATE_ERRORS",payload:n}),Gk=n=>({type:"HIDE_ERROR",payload:n}),FZ=n=>({type:"UPDATE_SELECTED_TAGS",payload:n}),VZ=n=>({type:"DELETE_AUTHOR",payload:n}),BZ=n=>({type:"DATA_LOADED",payload:n}),Wk=n=>({type:"UPDATE_SHOW_SAVED",payload:n}),zZ=()=>({type:"RESET_STATE"}),KE=n=>({type:"UPDATE_SAVING",payload:n}),UZ=n=>({type:"SET_FORM_VALID",payload:n}),Xk=n=>({type:"SET_GRANT_NUMBER",payload:n}),HZ=n=>({type:"ADD_PROJECT",payload:n}),vc={routes:{}},$Z=(n,r,i)=>{let u=!0;const l=[];for(const h of r)n[h]||(u=!1,l.push(h));const d=n.authors||[];for(const h of d)for(const v of i)h[v]||(u=!1,l.includes(v)||l.push(v));return{formValid:u,missingFields:l}},GZ=n=>n.length>0?b.jsxs("div",{role:"alert",children:[b.jsx("p",{children:"Please provide the following information before submitting:"}),b.jsx("ul",{children:n.map(r=>b.jsx("li",{children:WZ(r)},r))})]}):null;function WZ(n){return n.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}const XZ=()=>async(n,r)=>{const i=r().publications_store.publication.doi,u=encodeURIComponent(i).replaceAll(".","%2E"),l="Unable to retrieve publication. Double check your DOI, or continue entering information manually.";fetch(`/publications/lookup?doi=${u}`).then(d=>d.json()).then(d=>{if(d.title!=""){let h=r().publications_store.publication_types.find(v=>v.citation_style_type==d.type);n(zw(h?h.publication_type:"Other")),n(kZ(d))}else n(Im(l))},d=>{n(Im(l))})},YZ=()=>async(n,r)=>{const i=r().publications_store.grant_number,u=vc.routes.publications_find_project_path();await fetch(`${u}?grant_number=${i}`).then(l=>l.json()).then(l=>{n(HZ(l)),n(Xk(""))},()=>{n(Im("Unable to find a project with this grant number."))})},Yk=()=>async n=>{const r=/^\/requests/.test(window.location.pathname)?vc.routes.publication_path("new.json"):window.location.href+".json";await fetch(r).then(i=>i.json()).then(i=>{n(BZ(i))})},Zk=()=>async(n,r)=>{const i=r().publications_store,u=i.projects.filter(T=>T.selected),l=Object.keys(i.selected_tags).map(T=>i.selected_tags[T]).flat(),d={...i.publication},h=i.errors,{formValid:v,missingFields:y}=$Z(d,["title","publication_year","publication_month"],["first_name","last_name"]);if(!v){h.length>0&&Array.from(h).forEach(A=>{n(Gk(A.id))});const T=GZ(y);n(Im(T));return}const C={authenticity_token:document.getElementsByName("authenticity_token")[0].value,publication:d,authors:d.authors.map(T=>({...T,order:0})),tags:l,projects:u};let x,R;d.publication_id?(x=vc.routes.publication_path(d.publication_id),R="PATCH"):(x=vc.routes.publications_path(),R="POST"),n(KE(!0)),await fetch(x,{method:R,headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}).then(T=>{i.redirect?window.location.href=vc.routes.publications_path():(d.publication_id||(n(zZ()),n(Yk())),n(Wk(!0)),n(KE(!1)))},()=>{n(KE(!1)),n(Im("There was an error saving this publication."))})},ZZ=({doi:n,updatePublication:r,doiLookup:i})=>b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{htmlFor:"doi",className:"form-label",children:"DOI"}),b.jsxs("div",{className:"input-group",children:[b.jsx("input",{type:"text",className:"form-control",id:"doi",name:"publication[doi]","aria-label":"DOI Input and Search box","aria-describedby":"doi_button",value:n,onChange:u=>r(u.target.value)}),b.jsx("button",{className:"btn btn-primary",type:"button",id:"doi_button",onClick:()=>i(),children:"Lookup Publication"})]})]})}),JZ=n=>({doi:TZ(n)}),qZ=n=>({updatePublication:r=>n($k({key:"doi",value:r})),doiLookup:()=>n(XZ())}),QZ=fs(JZ,qZ)(ZZ),KZ=({author:n,authorKey:r,updateAuthor:i,deleteAuthor:u})=>{const l=v=>{i({key:v.target.name,value:v.target.value,idx:r})},d=v=>b.jsx("td",{children:b.jsx("input",{type:"text",className:"form-control",name:v,id:v,value:n[v],onChange:y=>l(y)})},`field_${v}`),h=["first_name","last_name","affiliation"];return b.jsxs("tr",{children:[h.map(v=>d(v)),b.jsx("td",{children:r!==0&&b.jsx("button",{className:"btn btn-sm btn-danger",onClick:()=>u(r),children:b.jsx("i",{className:"bi bi-trash"})})})]})},e6=n=>({updateAuthor:r=>n(LZ(r)),deleteAuthor:r=>n(VZ(r))}),UO=fs(null,e6)(KZ),t6=({authors:n,addAuthor:r,authors_exist:i})=>{const u=n.length===0,l=()=>i?"":b.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 b.jsxs("div",{children:[l(),b.jsxs("table",{className:"table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"First Name"}),b.jsx("th",{children:"Last Name"}),b.jsx("th",{children:"Affiliation"}),b.jsx("th",{})]})}),b.jsxs("tbody",{children:[n.map((d,h)=>b.jsx(UO,{author:d,authorKey:h},`author_${h}`)),u&&b.jsx(UO,{author:r()})]})]}),b.jsx("button",{className:"btn btn-primary mt-3",onClick:()=>r(),children:"Add Author"})]})},n6=n=>({authors:Fk(n),authors_exist:Hk(n)}),r6=n=>({addAuthor:()=>n(MZ())}),a6=fs(n6,r6)(t6),i6=({category:n,publication_tags:r,updateSelectedTags:i,index:u})=>{const l=M.useRef(null),d=()=>{const v=r.filter(y=>y.label==n.label)[0];return v?v.options:[]},h=v=>{i({category:n.label,tags:v})};return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"fw-bold mb-1",children:n.label}),b.jsx("div",{className:"mb-3",children:b.jsx(GR,{classNames:{control:v=>v.isFocused?"custom-select-selected":"border-grey-300"},defaultValue:d(),options:n.options,isMulti:!0,openMenuOnClick:!0,name:`tags_${u}`,inputId:`tags_${u}`,ref:l,closeMenuOnSelect:!1,onChange:h})})]})},o6=n=>({updateSelectedTags:r=>n(FZ(r))}),s6=n=>({publication_tags:OZ(n)}),l6=fs(s6,o6)(i6),u6=({projects:n,toggleProject:r})=>{const i=l=>`list-group-item list-group-item-action clickable ${l.selected?"list-group-item-success":""}`,u=()=>n.filter(l=>l.selected).length>0;return b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[u()?"":b.jsx("div",{className:"alert alert-danger",children:"You must select at least one project"}),b.jsx("div",{className:"list-group",children:n.map((l,d)=>b.jsxs("div",{className:i(l),onClick:()=>r(d),children:[l.grant_number,": ",l.title]},`project_${l.grant_number}`))})]})})},c6=n=>({projects:_Z(n)}),f6=n=>({toggleProject:r=>n(PZ(r))}),d6=fs(c6,f6)(u6),p6=({grant_number:n,setGrantNumber:r,grantSearch:i})=>b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:["If your project isn't listed above, you can manually add it by entering the grant number below.",b.jsxs("div",{className:"input-group mt-1",children:[b.jsx("input",{type:"text",className:"form-control",value:n,onChange:u=>r(u.target.value),placeholder:"Enter a grant number"}),b.jsx("button",{className:"btn btn-primary",onClick:()=>i(),children:"Find Project"})]})]})}),v6=n=>({setGrantNumber:r=>n(Xk(r)),grantSearch:()=>n(YZ())}),h6=n=>({grant_number:n.publications_store.grant_number}),m6=fs(h6,v6)(p6),g6=({publication:n,updateField:r,publication_types:i,changePubType:u,updatePublication:l,tag_categories:d,savePublication:h,modal:v,save_enabled:y,setFormValid:C,form_valid:x})=>{const R=V=>{V.target.value.trim()==""?C(!1):C(!0),l({key:"title",value:V.target.value})},T=()=>n.fields.map((V,F)=>b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{htmlFor:`field_${V.csl_field_name}`,className:"form-label",children:V.name}),b.jsx("input",{type:"text",className:"form-control",name:`field_${V.csl_field_name}`,id:`field_${V.csl_field_name}`,value:V.field_value,onChange:U=>r({index:F,value:U.target.value})})]})},`field_${V.csl_field_name}`)),A=()=>{const V=new Date().getFullYear()+2;let F=1980;const U=[];for(;F<=V;)U.push(F++);const z=["January","February","March","April","May","June","July","August","September","October","November","December"],H=b.jsx("i",{className:"bi bi-asterisk text-danger"});return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsxs("label",{className:"form-label",htmlFor:"publication_title",children:["Title ",H]}),b.jsx("input",{name:"publication_title",id:"publication_title",type:"text",className:`form-control ${x?"":"is-invalid"}`,value:n.title,onChange:J=>R(J)})]})}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{className:"form-label",htmlFor:"publication_year",children:"Year Published"}),b.jsx("select",{name:"publication_year",id:"publication_year",className:"form-control",value:n.publication_year,onChange:J=>{l({key:"publication_year",value:J.target.value})},children:U.map(J=>b.jsx("option",{value:J,children:J},`year_${J}`))})]})}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{className:"form-label",htmlFor:"publication_month",children:"Month Published"}),b.jsx("select",{name:"publication_month",id:"publication_month",className:"form-control",value:n.publication_month,onChange:J=>{l({key:"publication_month",value:J.target.value})},children:z.map((J,q)=>b.jsx("option",{value:q+1,children:J},`month_${q}`))})]})})]})},N=b.jsxs("div",{className:"card",children:[b.jsx("div",{className:"card-header",children:b.jsx("h2",{children:"Publication Information"})}),b.jsxs("div",{className:"card-body",children:[b.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.'}),b.jsx(QZ,{}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{htmlFor:"publication_type",className:"form-label",children:"Publication Type"}),b.jsx("select",{name:"publication[publication_type]",id:"publication_type",className:"form-control",value:n.publication_type,onChange:V=>u(V.target.value),children:i.map(V=>b.jsx("option",{value:V.publication_type,children:V.publication_type},`pub_type_${V.type_id}`))})]})}),A(),T()]})]}),O=b.jsxs("div",{className:"card mt-3",children:[b.jsxs("div",{className:"card-header d-flex",children:[b.jsx("h2",{children:"Authors"}),b.jsxs(zp,{children:[`Add authors by clicking the "Add Authors" button below and entering the author's details. You may also remove authors by clicking the `,b.jsx("i",{className:"bi bi-trash fw-bold text-danger"})," ","button"]})]}),b.jsx("div",{className:"card-body",children:b.jsx(a6,{})})]}),_=b.jsxs("div",{className:"card mt-3",children:[b.jsxs("div",{className:"card-header d-flex",children:[b.jsx("h2",{children:"Tags"}),b.jsx(zp,{children:"Add related tags from the lists below. You may choose multiple tags per category."})]}),b.jsx("div",{className:"card-body",children:d.map((V,F)=>b.jsx(l6,{index:F,category:V},`tc_${F}`))})]}),L=b.jsxs("div",{className:"card mt-3",children:[b.jsxs("div",{className:"card-header d-flex",children:[b.jsx("h2",{children:"Associated Projects"}),b.jsx(zp,{children:"Click/Tap each project that this publication is related to."})]}),b.jsxs("div",{className:"card-body",children:[b.jsx(d6,{}),b.jsx("hr",{}),b.jsx(m6,{})]})]});return b.jsxs(b.Fragment,{children:[N,O,_,L,v?null:b.jsx("p",{className:"mt-3",children:b.jsx("button",{onClick:()=>h(),className:"btn btn-success",disabled:!y,children:"Save Publication"})})]})},y6=n=>({publication:RZ(n),publication_types:IZ(n),tag_categories:NZ(n),saving:XR(n),modal:jZ(n),save_enabled:Uk(n),form_valid:zk(n)}),b6=n=>({updateField:r=>n(DZ(r)),changePubType:r=>n(zw(r)),updatePublication:r=>n($k(r)),savePublication:()=>n(Zk()),setFormValid:r=>n(UZ(r))}),C6=fs(y6,b6)(g6),x6=({errors:n,hideError:r})=>b.jsx(b.Fragment,{children:n.map(i=>b.jsxs("div",{className:"alert alert-danger alert-dismissible sticky-top",children:[i.message,b.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(i.id)})]},`err_${i.id}`))}),S6=n=>({errors:AZ(n)}),E6=n=>({hideError:r=>n(Gk(r))}),w6=fs(S6,E6)(x6),R6=({show_saved:n,updateShowSaved:r})=>{const i=b.jsxs("div",{className:"alert alert-success alert-dismissible sticky-top",children:["Publication Saved Successfully!",b.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(!1)})]});return n?i:b.jsx(b.Fragment,{})},T6=n=>({show_saved:Bk(n)}),I6=n=>({updateShowSaved:r=>n(Wk(r))}),N6=fs(T6,I6)(R6),_6=({getData:n,data_loaded:r})=>(M.useEffect(()=>{n()},[]),b.jsxs(b.Fragment,{children:[b.jsx(N6,{}),b.jsx(w6,{}),r?b.jsx(C6,{}):b.jsx(Mm,{})]})),O6=n=>({data_loaded:Vk(n)}),A6=n=>({getData:()=>n(Yk())}),Jk=fs(O6,A6)(_6),j6=({saving:n,savePublication:r,showSaved:i,updatePublications:u,save_enabled:l})=>{const[d,h]=M.useState(!1);return M.useEffect(()=>{!n&&i&&u()},[n,i]),b.jsxs(b.Fragment,{children:[b.jsxs(Ln,{size:"xl",show:d,onHide:()=>h(!1),scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Add Publication"})}),b.jsx(Ln.Body,{children:b.jsx(Jk,{})}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-danger me-2",onClick:()=>h(!1),children:"Cancel"}),b.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>{r(),h(!1)},children:"Save Publication"})]})})]}),b.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>h(!0),children:"Add a New Publication"})]})},D6=n=>({saving:XR(n),showSaved:Bk(n),save_enabled:Uk(n)}),k6=n=>({savePublication:()=>n(Zk())}),M6=fs(D6,k6)(j6),L6=({usernames:n=[],publication_ids:r=[]})=>{const[i,u]=M.useState(n),[l,d]=M.useState(r),[h,v]=M.useState([]),y=M.useRef(i),C=O=>{y.current=O,u(O)},x=async()=>{const _=await(await fetch(vc.routes.search_publications_path({usernames:i}))).json();v(_)};M.useEffect(()=>{x()},[i]),M.useEffect(()=>{addEventListener("requestAddRole",O=>C([...y.current,O.detail.username])),addEventListener("requestRemoveRole",O=>C(y.current.filter(_=>_!=O.detail.username)))},[]);let R=!1,T=!1;const A=h.map(O=>{const _=l.includes(O.publication_id);R=R||_,T=T||!_;const L=new Date(O.publication_year,O.publication_month-1);return b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx("input",{type:"checkbox",name:"publication_ids[]",value:O.publication_id,checked:_,onChange:()=>d(_?l.filter(V=>V!=O.publication_id):[...l,O.publication_id])})}),b.jsx("td",{children:O.title}),b.jsx("td",{children:O.authors.map(V=>`${V.first_name} ${V.last_name}`).join(", ")}),b.jsx("td",{children:O.publication_type}),b.jsxs("td",{children:[L.toLocaleString("default",{month:"short"})," ",O.publication_year]})]},O.publication_id)}),N=`${T?"Select":"Deselect"} all`;return b.jsxs("div",{className:"publications-select",children:[b.jsxs("table",{className:"table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:b.jsx("input",{type:"checkbox",value:"","aria-label":N,title:N,checked:R&&!T,onChange:()=>d(T?h.map(O=>O.publication_id):[]),ref:O=>{O&&(O.indeterminate=R&&T)}})}),b.jsx("th",{children:"Title"}),b.jsx("th",{children:"Authors"}),b.jsx("th",{children:"Type"}),b.jsx("th",{children:"Date"})]})}),b.jsx("tbody",{children:A})]}),b.jsx(M6,{updatePublications:x})]})},P6=()=>`${Math.random().toString(36).slice(2)}`,Uw=document.querySelector("#publications-react"),F6=Uw?Uw.dataset:{},HO={publication_types:[],tag_categories:[],publication:{},projects:[],errors:[],selected_tags:{},data_loaded:!1,saving:!1,show_saved:!1,redirect:F6.redirect||!1,modal:Uw==null,form_valid:!1,grant_number:""},V6=(n=HO,r)=>{const{type:i,payload:u}=r;switch(i){case"UPDATE_FIELD":return So(n,d=>(d.publication.fields[u.index].field_value=u.value,d));case"CHANGE_PUB_TYPE":return So(n,d=>{let h=d.publication_types.find(v=>v.publication_type==u).fields;return h.forEach(v=>{const y=d.publication.fields.find(C=>C.csl_field_name==v.csl_field_name);y&&(v.value=y.value)}),d.publication.publication_type=u,d.publication.fields=h,d});case"UPDATE_PUBLICATION":return{...n,publication:{...n.publication,[u.key]:u.value}};case"SET_PUBLICATION":return So(n,d=>(d.publication.fields.forEach(h=>{h.field_value=u[h.csl_field_name]}),Object.keys(d.publication).forEach(h=>{u[h]&&(d.publication[h]=u[h])}),d.form_valid=u.title.trim()!="",d));case"ADD_AUTHOR":{const l={portal_username:"",first_name:"",middle_name:"",last_name:"",prefix:"",suffix:"",initials:"",affiliation:"",hash:{}};return So(n,h=>{h.publication.authors.push(l)})}case"UPDATE_AUTHOR":return So(n,d=>{d.publication.authors[u.idx][u.key]=u.value});case"TOGGLE_TAG":return So(n,d=>{let h=d.tag_categories.find(v=>v.publication_tags_category_id==u.publication_tags_category_id);h.tags[u.idx].selected=!h.tags[u.idx].selected});case"TOGGLE_REQUEST":return So(n,d=>(d.projects[u].selected=!d.projects[u].selected,d));case"UPDATE_ERRORS":{const l={id:P6(),message:u};return{...n,errors:[...n.errors,l]}}case"HIDE_ERROR":{const l=n.errors.filter(d=>d.id!=u);return{...n,errors:l}}case"UPDATE_SELECTED_TAGS":return So(n,d=>{const h=u.tags.map(v=>v.value);return d.selected_tags[u.category]=h,d});case"DELETE_AUTHOR":return So(n,d=>(d.publication.authors.splice(u,1),d));case"DATA_LOADED":return So(n,d=>(d.publication=u.publication,d.form_valid=u.publication.title.trim()!="",d.publication.authors.forEach(h=>{h.affiliation||(h.affiliation="")}),d.publication_types=u.publication_types,d.tag_categories=u.tag_categories,d.projects=u.publication.projects,u.publication.tags.forEach(h=>d.selected_tags[h.label]=h.options.map(v=>v.value)),d.data_loaded=!0,d));case"UPDATE_SHOW_SAVED":return{...n,show_saved:u};case"UPDATE_SAVING":return{...n,saving:u};case"RESET_STATE":return HO;case"SET_FORM_VALID":return{...n,form_valid:u};case"SET_GRANT_NUMBER":return{...n,grant_number:u};case"ADD_PROJECT":return{...n,projects:[...n.projects,u]};default:return n}},B6={catalogs:{},filteredResources:[],filters:[],hasErrors:!1,onRamps:!1,resources:[],resourcesLoaded:!1},r0=Di("resourceCatalog/getResources",async(n,{dispatch:r})=>{r($O(!1));let i=[];n.catalogSources?i=n.catalogSources:i.push({...n,catalogLabel:"Default"}),n.onRamps&&i.push({apiUrl:"https://allocations.access-ci.org/resources.json",catalogLabel:"ACCESS",allowedCategories:[],allowedFilters:[],allowedResources:[],excludedCategories:["Resource Category"],excludedFilters:[],excludedResources:["ACCESS Credits"]});const u=await Promise.all(i.map(async l=>{const h=await(await fetch(l.apiUrl)).json();return{...l,data:h}}));r($6({data:u,params:n})),r($O(!0))});Di("resourceCatalog/getResources",async(n,{dispatch:r})=>{r(W6(n)),r(Qk())});const z6=n=>{const r=[],i=n.filter(u=>u.features.filter(l=>l.selected).length>0);return n.forEach(u=>{u.features.forEach(l=>{l.selected&&r.push(l.featureId)})}),i.map(u=>({...u,features:u.features.filter(l=>l.selected)}))},U6=n=>{const r={},i={};let u={};return n.forEach(d=>{r[d.catalogLabel]={...d,resourceIds:[],selected:!1,catalogId:d.catalogLabel.replace(/[^(A-z)]/,"")},delete r[d.catalogLabel].data,d.data.forEach(h=>{if(Hw(d.allowedResources,d.excludedResources,h.resourceName)){const{categories:v,formattedResource:y}=H6(d,h,u);i[h.resourceId]=y,r[d.catalogLabel].resourceIds.push(h.resourceId),u=v}})}),{resources:Object.keys(i).map(d=>i[d]),catalogs:r,categories:u}},Hw=(n,r,i)=>!n&&!r||n&&n.length==0&&r&&r.length==0?!0:n&&n.length>0?n.find(u=>u==i):r&&r.length>0?!r.find(u=>u==i):!0,H6=(n,r,i)=>{const u=[];r.featureCategories.filter(h=>h.categoryIsFilter).forEach(h=>{const v=h.categoryId;!i[v]&&Hw(n.allowedCategories,n.excludedCategories,h.categoryName)&&(i[v]={categoryId:v,categoryName:h.categoryName,categoryDescription:h.categoryDescription,features:{}}),h.features.forEach(y=>{const C={featureId:y.featureId,name:y.name,description:y.description,categoryId:v,selected:!1},x=Hw(n.allowedFilters,n.excludedFilters,C.name);x&&u.push(C),i[v]&&x&&!i[v].features[y.featureId]&&(i[v].features[y.featureId]=C)})});const l=u.map(h=>h.name).sort((h,v)=>h>v);return{formattedResource:{...r,resourceName:r.resourceName.trim(),features:l,featureIds:u.map(h=>h.featureId)},categories:i}},qk=k0({name:"resourceCatalog",initialState:B6,reducers:{handleResponse:(n,{payload:r})=>{const i=r.data,{resources:u,catalogs:l,categories:d}=U6(i);n.catalogs=l,n.onRamps=r.params.onRamps;for(const h in d){const v=d[h],y=[];for(const C in v.features)y.push(v.features[C]);n.filters.push({...v,features:y.sort((C,x)=>C.name>x.name)})}n.filters=n.filters.sort((h,v)=>h.categoryName.localeCompare(v.categoryName)),n.resources=u.sort((h,v)=>h.resourceName.localeCompare(v.resourceName)),n.filteredResources=[...n.resources],n.resourcesLoaded=!0},resetFilters:n=>{n.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),n.filteredResources=[...n.resources]},setResourcesLoaded:(n,{payload:r})=>{n.resourcesLoaded=r},toggleCatalog:(n,{payload:r})=>{const{catalog:i,selected:u}=r;n.catalogs[i.catalogLabel].selected=u},toggleFilter:(n,{payload:r})=>{if(r){const h=r,y=n.filters.find(C=>C.categoryId==h.categoryId).features.find(C=>C.featureId==h.featureId);y.selected=!y.selected}const i=z6(n.filters);let u=[];if(i.length>0){const h=i.map(v=>v.features.map(y=>y.featureId));n.resources.forEach(v=>{let y=0;h.forEach(C=>{let x=!1;v.featureIds.forEach(R=>{C.indexOf(R)>=0&&(x=!0)}),x&&(y+=1)}),y>=h.length&&u.push(v)})}else u=n.resources;const l=Object.keys(n.catalogs).map(h=>n.catalogs[h]),d=l.filter(h=>h.selected);if(d.length>0&&d.length<l.length){const h=d.map(v=>v.resourceIds).flat();u=u.filter(v=>h.indexOf(v.resourceId)>=0)}n.filteredResources=u}},extraReducers:n=>{n.addCase(r0.pending,r=>{}).addCase(r0.fulfilled,(r,i)=>{}).addCase(r0.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:$6,processData:$8,resetFilters:G6,setResourcesLoaded:$O,toggleCatalog:W6,toggleFilter:Qk}=qk.actions,Kk=n=>n.resourceCatalog.catalogs,X6=n=>n.resourceCatalog.filters,Y6=n=>n.resourceCatalog.hasErrors,Z6=n=>n.resourceCatalog.resourcesLoaded,J6=n=>n.resourceCatalog.filteredResources,q6=qk.reducer,Q6=(typeof document>"u"?require("url").pathToFileURL(__filename).href:i0&&i0.src||new URL("xras-ui.cjs",document.baseURI).href).replace(/\/[^/]+$/,""),K6=b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col d-flex",children:b.jsx("img",{alt:"Access Logo",style:{height:"75px"},src:`${Q6}/access_logo.png`})})}),b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsx("h3",{className:"border-bottom",children:"The ACCESS On-Ramps Program"})})}),b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[b.jsx("p",{children:"Need more advanced computing and storage options for your work? The On-Ramps program offers your institution cost-free entry to the nation's cyberinfrastructure resources. Simply select a resource from the catalog below to get started. On-Ramps expands your cyberinfrastructure with many powerful resource options."}),b.jsx("p",{children:b.jsx("a",{href:"https://allocations.access-ci.org",target:"_blank",children:"Learn more on our About On-Ramps page"})}),b.jsx("h4",{className:"border-bottom",children:"About ACCESS"}),b.jsx("p",{children:"ACCESS is a program established and funded by the National Science Foundation to help researchers and educators, with or without supporting grants, to utilize the nation's advanced computing systems and services — at no cost."}),b.jsx("p",{children:b.jsx("a",{href:"https://access-ci.org",target:"_blank",children:"Learn more about ACCESS"})})]})})]}),e8="_access_alul3_2",t8="_resourceName_alul3_6",n8="_description_alul3_11",r8="_filterBar_alul3_15",a8="_cardBg_alul3_21",i8="_active_alul3_26",o8="_plainButton_alul3_31",dm={access:e8,resourceName:t8,description:n8,filterBar:r8,cardBg:a8,active:i8,plainButton:o8},s8=({resource:n})=>{const[r,i]=M.useState(!0),u=C=>{const x={"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 x[C]?b.jsx("i",{title:C,className:`bi bi-${x[C]} me-2 `},`${n.resourceId}_${x[C]}`):""},l=()=>b.jsxs("span",{className:"float-end",children:[n.features.map(C=>u(C)),n.resourceType]}),d=C=>C.length==0?"":b.jsx(b.Fragment,{children:C.map((x,R)=>b.jsx("span",{className:"badge text-bg-secondary me-2",children:x},`feature_${n.resourceId}_${R}`))}),h=()=>{let C=n.resourceDescription;return C&&C!=""?(dm.plainButton,b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col fw-bold",children:["About ",n.resourceName]})}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col ",children:[b.jsx("div",{className:dm.description,dangerouslySetInnerHTML:{__html:C}}),""]})})]})):""},v=()=>n.recommendedUse&&n.recommendedUse!=""?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col fw-bold",children:"Recommended Use"})}),b.jsx("div",{className:"row mb-3",children:b.jsx("div",{className:"col",children:b.jsx("div",{className:dm.description,dangerouslySetInnerHTML:{__html:n.recommendedUse}})})})]}):"",y=()=>dm.cardBg;return b.jsx(b.Fragment,{children:b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsxs("div",{className:"card mb-3",children:[b.jsxs("div",{className:`card-header ${y()}`,children:[b.jsx("span",{className:"",children:n.resourceName}),l()]}),b.jsxs("div",{className:"card-body",children:[b.jsx("div",{className:"row mb-3",children:b.jsx("div",{className:"col",children:d(n.features)})}),v(),h()]}),b.jsx("div",{className:"card-footer",children:b.jsxs("a",{target:"_blank",href:n.userGuideUrl,className:"btn btn-info me-2 fw-bold",children:["System Info ",b.jsx("i",{className:"bi bi-box-arrow-up-right"})]})})]})})})})},l8=({filter:n})=>{const r=To(),i=()=>{r(Qk(n))};return b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsxs("div",{className:"form-check",children:[b.jsx("label",{className:"form-check-label",htmlFor:`filter_${n.featureId}`,children:n.name}),b.jsx("input",{className:"form-check-input",type:"checkbox",value:n.featureId,id:`filter_${n.featureId}`,checked:n.selected,onChange:i})]})})})},u8=({category:n})=>b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[b.jsx("div",{className:"fw-bold mb-1 mt-1",children:b.jsx("abbr",{title:n.categoryDescription,children:n.categoryName})}),n.features.map(r=>b.jsx(l8,{filter:r},r.featureId))]})}),c8=()=>{const n=To(),r=dr(Kk),i=dr(X6),u=i.filter(l=>l.features.filter(d=>d.selected).length>0);return Object.keys(r).map(l=>r[l]),b.jsxs("div",{children:[i.map(l=>b.jsx(u8,{category:l},l.categoryId)),b.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>n(G6()),disabled:u.length==0,children:"Reset Filters"})]})},f8=()=>{const[n,r]=M.useState(!1),i=()=>r(!1),u=()=>r(!0);return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:`offcanvas offcanvas-start ${n?"show":""}`,tabIndex:"-1",id:"offcanvas","aria-labelledby":"offcanvasLabel",children:[b.jsxs("div",{className:"offcanvas-header",children:[b.jsx("h5",{className:"offcanvas-title",id:"offcanvasLabel",children:"Filters"}),b.jsx("button",{type:"button",className:"btn-close",onClick:i,"aria-label":"Close"})]}),b.jsx("div",{className:"offcanvas-body",children:b.jsx(c8,{})})]}),b.jsx("div",{className:"row mb-2",children:b.jsx("div",{className:"col pt-2 pb-2",children:b.jsx("div",{className:"p-1 pb-0 border-bottom bg-white shadow",children:b.jsxs("button",{className:"btn btn-outline-primary mb-1 mt-1",type:"button",onClick:u,children:[b.jsx("i",{className:"bi bi-filter"})," Filters"]})})})})]})},d8=()=>{const n=dr(J6);return n.length==0?b.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):b.jsx("div",{className:"card shadow",children:b.jsxs("div",{className:"card-body",children:[b.jsx(f8,{}),n.map(r=>b.jsx(s8,{resource:r},r.resourceId))]})})},p8=({catalogSources:n=[],onRamps:r=!1})=>{const i=To(),u=dr(Z6),l=dr(Y6),d=dr(Kk),h=Object.keys(d).map(y=>d[y]);M.useEffect(()=>{i(r0({catalogSources:n,onRamps:r}))},[]);const v=()=>r&&h.length>1?b.jsx(b.Fragment,{children:h.filter(y=>y.catalogLabel!="ACCESS").map((y,C)=>b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsxs("h4",{className:"border-bottom",children:["About ",y.catalogLabel]}),b.jsx("div",{dangerouslySetInnerHTML:{__html:y.description}})]})},`catalog_${C}`))}):"";return l?b.jsx("div",{className:"row",children:b.jsx("div",{className:"col text-center mt-2",children:b.jsx("h4",{children:"Unable to Load Resources"})})}):u?b.jsxs("div",{className:`container mt-3 ${dm.access}`,children:[r?K6:"",v(),b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsx(d8,{})})})]}):b.jsx(Mm,{})},v8={filters:[],resources:[],filteredResources:[],resourcesLoaded:!1,hasErrors:!1},a0=Di("resourceCatalog/getResources",async(n,{dispatch:r})=>{const u=await(await fetch(n.apiUrl)).json();r(m8({data:u,params:n}))}),h8=n=>{const r=[],i=n.filter(u=>u.features.filter(l=>l.selected).length>0);return n.forEach(u=>{u.features.forEach(l=>{l.selected&&r.push(l.featureId)})}),i.map(u=>({...u,features:u.features.filter(l=>l.selected)}))},GO=(n,r,i)=>{if(n.length==0&&r.length==0)return!0;if(n.length>0)return n.find(u=>u==i);if(r.length>0)return!r.find(u=>u==i)},eM=k0({name:"resourceCatalog",initialState:v8,reducers:{handleResponse:(n,{payload:r})=>{const i=r.data,u=r.params.excludedCategories,l=r.params.excludedFilters,d=r.params.excludedResources,h=r.params.allowedCategories,v=r.params.allowedFilters,y=[],C={};i.filter(x=>!d.includes(x.resourceName)).forEach(x=>{const R=[];x.featureCategories.filter(A=>A.categoryIsFilter).forEach(A=>{const N=A.categoryId;!C[N]&&GO(h,u,A.categoryName)&&(C[N]={categoryId:N,categoryName:A.categoryName,categoryDescription:A.categoryDescription,features:{}}),A.features.forEach(O=>{const _={featureId:O.featureId,name:O.name,description:O.description,categoryId:N,selected:!1},L=GO(v,l,_.name);L&&R.push(_),C[N]&&L&&!C[N].features[O.featureId]&&(C[N].features[O.featureId]=_)})});const T={resourceName:x.resourceName,resourceId:x.resourceId,resourceType:x.resourceType,organization:x.organization,units:x.units,userGuideUrl:x.userGuideUrl,resourceDescription:x.resourceDescription,description:x.description,recommendedUse:x.recommendedUse,features:R.map(A=>A.name).sort((A,N)=>A>N),featureIds:R.map(A=>A.featureId)};y.push(T)});for(const x in C){const R=C[x],T=[];for(const A in R.features)T.push(R.features[A]);n.filters.push({...R,features:T.sort((A,N)=>A.name>N.name)})}n.filters=n.filters.sort((x,R)=>x.categoryName.localeCompare(R.categoryName)),n.resources=y.sort((x,R)=>x.resourceName.localeCompare(R.resourceName)),n.filteredResources=[...n.resources],n.resourcesLoaded=!0},resetFilters:n=>{n.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),n.filteredResources=[...n.resources]},toggleFilter:(n,{payload:r})=>{const i=r,l=n.filters.find(h=>h.categoryId==i.categoryId).features.find(h=>h.featureId==i.featureId);l.selected=!l.selected;const d=h8(n.filters);if(d.length>0){const h=[],v=d.map(y=>y.features.map(C=>C.featureId));n.resources.forEach(y=>{let C=0;v.forEach(x=>{let R=!1;y.featureIds.forEach(T=>{x.indexOf(T)>=0&&(R=!0)}),R&&(C+=1)}),C>=v.length&&h.push(y)}),n.filteredResources=h}else n.filteredResources=[...n.resources]}},extraReducers:n=>{n.addCase(a0.pending,r=>{}).addCase(a0.fulfilled,(r,i)=>{}).addCase(a0.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:m8,processData:G8,resetFilters:g8,toggleFilter:y8}=eM.actions,b8=n=>n.resourceCatalog.hasErrors,C8=n=>n.resourceCatalog.resourcesLoaded,x8=n=>n.resourceCatalog.filters,S8=n=>n.resourceCatalog.filteredResources,E8=eM.reducer,w8=({resource:n})=>{const r=u=>u.length==0?"":b.jsx("ul",{children:u.map((l,d)=>b.jsx("li",{children:l},`feature_${n.resourceId}_${d}`))}),i=(u,l)=>l&&l!=""?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col fw-bold",children:u})}),b.jsx("div",{className:"row mb-3",children:b.jsx("div",{className:"col",dangerouslySetInnerHTML:{__html:l}})})]}):"";return b.jsxs(os.Item,{eventKey:n.resourceId,children:[b.jsx(os.Header,{children:n.resourceName}),b.jsxs(os.Body,{children:[b.jsx("table",{className:"table",children:b.jsxs("tbody",{children:[b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Resource Type:"}),b.jsx("td",{children:n.resourceType})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Organization:"}),b.jsx("td",{children:n.organization})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Units:"}),b.jsx("td",{children:n.units})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"User Guide:"}),b.jsx("td",{children:n.userGuideUrl==""?"":b.jsx("a",{href:n.userGuideUrl,target:"_blank",rel:"noreferrer",children:"Link to User Guide"})})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Features Available:"}),b.jsx("td",{children:r(n.features)})]})]})}),i("Resource Description",n.resourceDescription),i("Allocations Description",n.description),i("Recommended Use",n.recommendedUse)]})]})},R8=()=>{const n=dr(S8);return n.length==0?b.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):b.jsxs("div",{children:[b.jsx("h4",{className:"mb-0",children:"Resources"}),b.jsx(os,{children:n.map(r=>b.jsx(w8,{resource:r},r.resourceId))})]})},T8=({filter:n})=>{const r=To(),i=()=>{r(y8(n))};return b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsxs("div",{className:"form-check",children:[b.jsx("label",{className:"form-check-label",htmlFor:`filter_${n.featureId}`,children:n.name}),b.jsx("input",{className:"form-check-input",type:"checkbox",value:n.featureId,id:`filter_${n.featureId}`,checked:n.selected,onChange:i})]})})})},I8=({category:n})=>b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[b.jsx("div",{className:"fw-bold mb-1 mt-1",children:b.jsx("abbr",{title:n.categoryDescription,children:n.categoryName})}),n.features.map(r=>b.jsx(T8,{filter:r},r.featureId))]})}),N8=()=>{const n=To(),r=dr(x8),i=r.filter(u=>u.features.filter(l=>l.selected).length>0);return b.jsxs("div",{children:[b.jsx("h4",{className:"mb-0",children:"Filters"}),r.map(u=>b.jsx(I8,{category:u},u.categoryId)),b.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>n(g8()),disabled:i.length==0,children:"Reset Filters"})]})},_8=({apiUrl:n,excludedCategories:r=[],excludedFilters:i=[],excludedResources:u=[],allowedCategories:l=[],allowedFilters:d=[]})=>{const h=To(),v=dr(C8),y=dr(b8);return M.useEffect(()=>{h(a0({apiUrl:n,excludedCategories:r,excludedFilters:i,excludedResources:u,allowedCategories:l,allowedFilters:d}))},[]),y?b.jsx("div",{className:"row",children:b.jsx("div",{className:"col text-center mt-2",children:b.jsx("h4",{children:"Unable to Load Resources"})})}):v?b.jsx(b.Fragment,{children:b.jsxs("div",{className:"row mt-3",children:[b.jsx("div",{className:"col-sm-4",children:b.jsx(N8,{})}),b.jsx("div",{className:"col-sm-8",children:b.jsx(R8,{})})]})}):b.jsx(Mm,{})};function O8(n,{bootstrapFonts:r=!0,bootstrapVariables:i=!0,access:u=!1,baseUrl:l=null}={}){const d=n.attachShadow({mode:"open"}),h=document.createElement("div"),v=document.createElement("div"),y=document.createElement("div"),C=document.createElement("div"),x=document.createElement("link"),R=document.createElement("link"),T=document.createElement("link");return l=l??(typeof document>"u"?require("url").pathToFileURL(__filename).href:i0&&i0.src||new URL("xras-ui.cjs",document.baseURI).href).replace(/\/[^/]+$/,""),x.rel="stylesheet",x.href=`${l}/bootstrap.css`,R.rel="stylesheet",R.href=`${l}/xras-ui.css`,T.rel="stylesheet",T.href=`${l}/access.css`,y.appendChild(C),v.appendChild(y),h.appendChild(v),d.appendChild(x),d.appendChild(R),d.appendChild(T),d.appendChild(h),h.classList.add("bootstrap"),i&&v.classList.add("bootstrap-variables"),r&&(y.classList.add("bootstrap-fonts"),y.setAttribute("data-bs-theme","light")),C}function A8({target:n}){ls.createRoot(n).render(b.jsx(zH,{}))}function j8({target:n,username:r,routes:i}){i&&(Nn.routes=i);const u=Om({reducer:{api:g$}});ls.createRoot(n).render(b.jsx(qp,{store:u,children:b.jsx(sZ,{username:r})}))}function D8({target:n,apiUrl:r}){const i=Om({reducer:{projectsBrowser:CZ},preloadedState:{projectsBrowser:{...Lk,apiUrl:r}}});ls.createRoot(n).render(b.jsx(qp,{store:i,children:b.jsx(wZ,{})}))}function tM(){return Om({reducer:{publications_store:V6}})}function k8({target:n,routes:r}){r&&(vc.routes=r),ls.createRoot(n).render(b.jsx(qp,{store:tM(),children:b.jsx(Jk,{})}))}function M8({target:n,routes:r}){r&&(vc.routes=r),ls.createRoot(n).render(b.jsx(qp,{store:tM(),children:b.jsx(L6,{...JSON.parse(n.dataset.publicationsSelectProps)})}))}function L8({target:n,catalogSources:r,onRamps:i}){const u=Om({reducer:{resourceCatalog:q6}});ls.createRoot(n).render(b.jsx(qp,{store:u,children:b.jsx(p8,{catalogSources:r,onRamps:i})}))}function P8({target:n,apiUrl:r,excludedCategories:i,excludedFilters:u,excludedResources:l,allowedCategories:d,allowedFilters:h}){const v=Om({reducer:{resourceCatalog:E8}});ls.createRoot(n).render(b.jsx(qp,{store:v,children:b.jsx(_8,{apiUrl:r,excludedCategories:i,excludedFilters:u,excludedResources:l,allowedCategories:d,allowedFilters:h})}))}exports.allocationsMap=A8;exports.onRampsResourceCatalog=L8;exports.projects=j8;exports.projectsBrowser=D8;exports.publications=k8;exports.publicationsSelect=M8;exports.resourceCatalog=P8;exports.shadowTarget=O8;
|
|
309
|
+
`]))),dX=function(r,i){var u=r.isFocused,l=r.size,d=r.theme,h=d.colors,v=d.spacing.baseUnit;return yt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:l,lineHeight:1,marginRight:l,textAlign:"center",verticalAlign:"middle"},i?{}:{color:u?h.neutral60:h.neutral20,padding:v*2})},WE=function(r){var i=r.delay,u=r.offset;return Et("span",{css:PR({animation:"".concat(fX," 1s ease-in-out ").concat(i,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},Lw.NODE_ENV==="production"?"":";label:LoadingDot;",Lw.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 */")})},pX=function(r){var i=r.innerProps,u=r.isRtl,l=r.size,d=l===void 0?4:l,h=nl(r,nX);return Et("div",Rt({},yr(yt(yt({},h),{},{innerProps:i,isRtl:u,size:d}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),Et(WE,{delay:0,offset:u}),Et(WE,{delay:160,offset:!0}),Et(WE,{delay:320,offset:!u}))},vX=function(r,i){var u=r.isDisabled,l=r.isFocused,d=r.theme,h=d.colors,v=d.borderRadius,y=d.spacing;return yt({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:u?h.neutral5:h.neutral0,borderColor:u?h.neutral10:l?h.primary:h.neutral20,borderRadius:v,borderStyle:"solid",borderWidth:1,boxShadow:l?"0 0 0 1px ".concat(h.primary):void 0,"&:hover":{borderColor:l?h.primary:h.neutral30}})},hX=function(r){var i=r.children,u=r.isDisabled,l=r.isFocused,d=r.innerRef,h=r.innerProps,v=r.menuIsOpen;return Et("div",Rt({ref:d},yr(r,"control",{control:!0,"control--is-disabled":u,"control--is-focused":l,"control--menu-is-open":v}),h,{"aria-disabled":u||void 0}),i)},mX=hX,gX=["data"],yX=function(r,i){var u=r.theme.spacing;return i?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},bX=function(r){var i=r.children,u=r.cx,l=r.getStyles,d=r.getClassNames,h=r.Heading,v=r.headingProps,y=r.innerProps,C=r.label,x=r.theme,R=r.selectProps;return Et("div",Rt({},yr(r,"group",{group:!0}),y),Et(h,Rt({},v,{selectProps:R,theme:x,getStyles:l,getClassNames:d,cx:u}),C),Et("div",null,i))},CX=function(r,i){var u=r.theme,l=u.colors,d=u.spacing;return yt({label:"group",cursor:"default",display:"block"},i?{}:{color:l.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:d.baseUnit*3,paddingRight:d.baseUnit*3,textTransform:"uppercase"})},xX=function(r){var i=vk(r);i.data;var u=nl(i,gX);return Et("div",Rt({},yr(r,"groupHeading",{"group-heading":!0}),u))},SX=bX,EX=["innerRef","isDisabled","isHidden","inputClassName"],wX=function(r,i){var u=r.isDisabled,l=r.value,d=r.theme,h=d.spacing,v=d.colors;return yt(yt({visibility:u?"hidden":"visible",transform:l?"translateZ(0)":""},RX),i?{}:{margin:h.baseUnit/2,paddingBottom:h.baseUnit/2,paddingTop:h.baseUnit/2,color:v.neutral80})},Ek={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},RX={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":yt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ek)},TX=function(r){return yt({label:"input",color:"inherit",background:0,opacity:r?0:1,width:"100%"},Ek)},IX=function(r){var i=r.cx,u=r.value,l=vk(r),d=l.innerRef,h=l.isDisabled,v=l.isHidden,y=l.inputClassName,C=nl(l,EX);return Et("div",Rt({},yr(r,"input",{"input-container":!0}),{"data-value":u||""}),Et("input",Rt({className:i({input:!0},y),ref:d,style:TX(v),disabled:h},C)))},NX=IX,_X=function(r,i){var u=r.theme,l=u.spacing,d=u.borderRadius,h=u.colors;return yt({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:h.neutral10,borderRadius:d/2,margin:l.baseUnit/2})},OX=function(r,i){var u=r.theme,l=u.borderRadius,d=u.colors,h=r.cropWithEllipsis;return yt({overflow:"hidden",textOverflow:h||h===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:l/2,color:d.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},AX=function(r,i){var u=r.theme,l=u.spacing,d=u.borderRadius,h=u.colors,v=r.isFocused;return yt({alignItems:"center",display:"flex"},i?{}:{borderRadius:d/2,backgroundColor:v?h.dangerLight:void 0,paddingLeft:l.baseUnit,paddingRight:l.baseUnit,":hover":{backgroundColor:h.dangerLight,color:h.danger}})},wk=function(r){var i=r.children,u=r.innerProps;return Et("div",u,i)},jX=wk,DX=wk;function kX(n){var r=n.children,i=n.innerProps;return Et("div",Rt({role:"button"},i),r||Et(zR,{size:14}))}var MX=function(r){var i=r.children,u=r.components,l=r.data,d=r.innerProps,h=r.isDisabled,v=r.removeProps,y=r.selectProps,C=u.Container,x=u.Label,R=u.Remove;return Et(C,{data:l,innerProps:yt(yt({},yr(r,"multiValue",{"multi-value":!0,"multi-value--is-disabled":h})),d),selectProps:y},Et(x,{data:l,innerProps:yt({},yr(r,"multiValueLabel",{"multi-value__label":!0})),selectProps:y},i),Et(R,{data:l,innerProps:yt(yt({},yr(r,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},v),selectProps:y}))},LX=MX,PX=function(r,i){var u=r.isDisabled,l=r.isFocused,d=r.isSelected,h=r.theme,v=h.spacing,y=h.colors;return yt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},i?{}:{backgroundColor:d?y.primary:l?y.primary25:"transparent",color:u?y.neutral20:d?y.neutral0:"inherit",padding:"".concat(v.baseUnit*2,"px ").concat(v.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:d?y.primary:y.primary50}})},FX=function(r){var i=r.children,u=r.isDisabled,l=r.isFocused,d=r.isSelected,h=r.innerRef,v=r.innerProps;return Et("div",Rt({},yr(r,"option",{option:!0,"option--is-disabled":u,"option--is-focused":l,"option--is-selected":d}),{ref:h,"aria-disabled":u},v),i)},VX=FX,BX=function(r,i){var u=r.theme,l=u.spacing,d=u.colors;return yt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:d.neutral50,marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2})},zX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"placeholder",{placeholder:!0}),u),i)},UX=zX,HX=function(r,i){var u=r.isDisabled,l=r.theme,d=l.spacing,h=l.colors;return yt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i?{}:{color:u?h.neutral40:h.neutral80,marginLeft:d.baseUnit/2,marginRight:d.baseUnit/2})},$X=function(r){var i=r.children,u=r.isDisabled,l=r.innerProps;return Et("div",Rt({},yr(r,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),l),i)},GX=$X,WX={ClearIndicator:lX,Control:mX,DropdownIndicator:oX,DownChevron:xk,CrossIcon:zR,Group:SX,GroupHeading:xX,IndicatorsContainer:eX,IndicatorSeparator:cX,Input:NX,LoadingIndicator:pX,Menu:B5,MenuList:U5,MenuPortal:Y5,LoadingMessage:W5,NoOptionsMessage:G5,MultiValue:LX,MultiValueContainer:jX,MultiValueLabel:DX,MultiValueRemove:kX,Option:VX,Placeholder:UX,SelectContainer:J5,SingleValue:GX,ValueContainer:Q5},XX=function(r){return yt(yt({},WX),r.components)},wO=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function YX(n,r){return!!(n===r||wO(n)&&wO(r))}function ZX(n,r){if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!YX(n[i],r[i]))return!1;return!0}function JX(n,r){r===void 0&&(r=ZX);var i=null;function u(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];if(i&&i.lastThis===this&&r(l,i.lastArgs))return i.lastResult;var h=n.apply(this,l);return i={lastResult:h,lastArgs:l,lastThis:this},h}return u.clear=function(){i=null},u}var Tm={};function qX(){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 QX=Tm.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:qX},KX=function(r){return Et("span",Rt({css:QX},r))},RO=KX,eY={guidance:function(r){var i=r.isSearchable,u=r.isMulti,l=r.tabSelectsValue,d=r.context,h=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(l?", press Tab to select the option and exit the menu":"",".");case"input":return h?"".concat(r["aria-label"]||"Select"," is focused ").concat(i?",type to refine list":"",", press Down to open the menu, ").concat(u?" 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,u=r.label,l=u===void 0?"":u,d=r.labels,h=r.isDisabled;switch(i){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(l,", 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 h?"option ".concat(l," is disabled. Select another option."):"option ".concat(l,", selected.");default:return""}},onFocus:function(r){var i=r.context,u=r.focused,l=r.options,d=r.label,h=d===void 0?"":d,v=r.selectValue,y=r.isDisabled,C=r.isSelected,x=r.isAppleDevice,R=function(O,_){return O&&O.length?"".concat(O.indexOf(_)+1," of ").concat(O.length):""};if(i==="value"&&v)return"value ".concat(h," focused, ").concat(R(v,u),".");if(i==="menu"&&x){var T=y?" disabled":"",A="".concat(C?" selected":"").concat(T);return"".concat(h).concat(A,", ").concat(R(l,u),".")}return""},onFilter:function(r){var i=r.inputValue,u=r.resultsMessage;return"".concat(u).concat(i?" for search term "+i:"",".")}},tY=function(r){var i=r.ariaSelection,u=r.focusedOption,l=r.focusedValue,d=r.focusableOptions,h=r.isFocused,v=r.selectValue,y=r.selectProps,C=r.id,x=r.isAppleDevice,R=y.ariaLiveMessages,T=y.getOptionLabel,A=y.inputValue,N=y.isMulti,O=y.isOptionDisabled,_=y.isSearchable,L=y.menuIsOpen,V=y.options,F=y.screenReaderStatus,U=y.tabSelectsValue,z=y.isLoading,H=y["aria-label"],J=y["aria-live"],q=M.useMemo(function(){return yt(yt({},eY),R||{})},[R]),Re=M.useMemo(function(){var xe="";if(i&&q.onChange){var je=i.option,Le=i.options,ne=i.removedValue,_e=i.removedValues,G=i.value,Y=function(we){return Array.isArray(we)?null:we},re=ne||je||Y(G),ye=re?T(re):"",Se=Le||_e||void 0,Ne=Se?Se.map(T):[],le=yt({isDisabled:re&&O(re,v),label:ye,labels:Ne},i);xe=q.onChange(le)}return xe},[i,q,O,v,T]),he=M.useMemo(function(){var xe="",je=u||l,Le=!!(u&&v&&v.includes(u));if(je&&q.onFocus){var ne={focused:je,label:T(je),isDisabled:O(je,v),isSelected:Le,options:d,context:je===u?"menu":"value",selectValue:v,isAppleDevice:x};xe=q.onFocus(ne)}return xe},[u,l,T,O,q,d,v,x]),ge=M.useMemo(function(){var xe="";if(L&&V.length&&!z&&q.onFilter){var je=F({count:d.length});xe=q.onFilter({inputValue:A,resultsMessage:je})}return xe},[d,A,L,q,V,F,z]),fe=(i==null?void 0:i.action)==="initial-input-focus",Oe=M.useMemo(function(){var xe="";if(q.guidance){var je=l?"value":L?"menu":"input";xe=q.guidance({"aria-label":H,context:je,isDisabled:u&&O(u,v),isMulti:N,isSearchable:_,tabSelectsValue:U,isInitialFocus:fe})}return xe},[H,u,l,N,O,_,L,q,v,U,fe]),Te=Et(M.Fragment,null,Et("span",{id:"aria-selection"},Re),Et("span",{id:"aria-focused"},he),Et("span",{id:"aria-results"},ge),Et("span",{id:"aria-guidance"},Oe));return Et(M.Fragment,null,Et(RO,{id:C},fe&&Te),Et(RO,{"aria-live":J,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},h&&!fe&&Te))},nY=tY,Pw=[{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źẑżžẓẕƶȥɀⱬꝣ"}],rY=new RegExp("["+Pw.map(function(n){return n.letters}).join("")+"]","g"),Rk={};for(var XE=0;XE<Pw.length;XE++)for(var YE=Pw[XE],ZE=0;ZE<YE.letters.length;ZE++)Rk[YE.letters[ZE]]=YE.base;var Tk=function(r){return r.replace(rY,function(i){return Rk[i]})},aY=JX(Tk),TO=function(r){return r.replace(/^\s+|\s+$/g,"")},iY=function(r){return"".concat(r.label," ").concat(r.value)},oY=function(r){return function(i,u){if(i.data.__isNew__)return!0;var l=yt({ignoreCase:!0,ignoreAccents:!0,stringify:iY,trim:!0,matchFrom:"any"},r),d=l.ignoreCase,h=l.ignoreAccents,v=l.stringify,y=l.trim,C=l.matchFrom,x=y?TO(u):u,R=y?TO(v(i)):v(i);return d&&(x=x.toLowerCase(),R=R.toLowerCase()),h&&(x=aY(x),R=Tk(R)),C==="start"?R.substr(0,x.length)===x:R.indexOf(x)>-1}},sY=["innerRef"];function lY(n){var r=n.innerRef,i=nl(n,sY),u=j5(i,"onExited","in","enter","exit","appear");return Et("input",Rt({ref:r},u,{css:PR({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)"},Tm.NODE_ENV==="production"?"":";label:DummyInput;",Tm.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var uY=function(r){r.cancelable&&r.preventDefault(),r.stopPropagation()};function cY(n){var r=n.isEnabled,i=n.onBottomArrive,u=n.onBottomLeave,l=n.onTopArrive,d=n.onTopLeave,h=M.useRef(!1),v=M.useRef(!1),y=M.useRef(0),C=M.useRef(null),x=M.useCallback(function(_,L){if(C.current!==null){var V=C.current,F=V.scrollTop,U=V.scrollHeight,z=V.clientHeight,H=C.current,J=L>0,q=U-z-F,Re=!1;q>L&&h.current&&(u&&u(_),h.current=!1),J&&v.current&&(d&&d(_),v.current=!1),J&&L>q?(i&&!h.current&&i(_),H.scrollTop=U,Re=!0,h.current=!0):!J&&-L>F&&(l&&!v.current&&l(_),H.scrollTop=0,Re=!0,v.current=!0),Re&&uY(_)}},[i,u,l,d]),R=M.useCallback(function(_){x(_,_.deltaY)},[x]),T=M.useCallback(function(_){y.current=_.changedTouches[0].clientY},[]),A=M.useCallback(function(_){var L=y.current-_.changedTouches[0].clientY;x(_,L)},[x]),N=M.useCallback(function(_){if(_){var L=_5?{passive:!1}:!1;_.addEventListener("wheel",R,L),_.addEventListener("touchstart",T,L),_.addEventListener("touchmove",A,L)}},[A,T,R]),O=M.useCallback(function(_){_&&(_.removeEventListener("wheel",R,!1),_.removeEventListener("touchstart",T,!1),_.removeEventListener("touchmove",A,!1))},[A,T,R]);return M.useEffect(function(){if(r){var _=C.current;return N(_),function(){O(_)}}},[r,N,O]),function(_){C.current=_}}var IO=["boxSizing","height","overflow","paddingRight","position"],NO={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function _O(n){n.preventDefault()}function OO(n){n.stopPropagation()}function AO(){var n=this.scrollTop,r=this.scrollHeight,i=n+this.offsetHeight;n===0?this.scrollTop=1:i===r&&(this.scrollTop=n-1)}function jO(){return"ontouchstart"in window||navigator.maxTouchPoints}var DO=!!(typeof window<"u"&&window.document&&window.document.createElement),lm=0,Mp={capture:!1,passive:!1};function fY(n){var r=n.isEnabled,i=n.accountForScrollbars,u=i===void 0?!0:i,l=M.useRef({}),d=M.useRef(null),h=M.useCallback(function(y){if(DO){var C=document.body,x=C&&C.style;if(u&&IO.forEach(function(N){var O=x&&x[N];l.current[N]=O}),u&&lm<1){var R=parseInt(l.current.paddingRight,10)||0,T=document.body?document.body.clientWidth:0,A=window.innerWidth-T+R||0;Object.keys(NO).forEach(function(N){var O=NO[N];x&&(x[N]=O)}),x&&(x.paddingRight="".concat(A,"px"))}C&&jO()&&(C.addEventListener("touchmove",_O,Mp),y&&(y.addEventListener("touchstart",AO,Mp),y.addEventListener("touchmove",OO,Mp))),lm+=1}},[u]),v=M.useCallback(function(y){if(DO){var C=document.body,x=C&&C.style;lm=Math.max(lm-1,0),u&&lm<1&&IO.forEach(function(R){var T=l.current[R];x&&(x[R]=T)}),C&&jO()&&(C.removeEventListener("touchmove",_O,Mp),y&&(y.removeEventListener("touchstart",AO,Mp),y.removeEventListener("touchmove",OO,Mp)))}},[u]);return M.useEffect(function(){if(r){var y=d.current;return h(y),function(){v(y)}}},[r,h,v]),function(y){d.current=y}}function dY(){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 pY=function(r){var i=r.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},vY=Tm.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:dY};function hY(n){var r=n.children,i=n.lockEnabled,u=n.captureEnabled,l=u===void 0?!0:u,d=n.onBottomArrive,h=n.onBottomLeave,v=n.onTopArrive,y=n.onTopLeave,C=cY({isEnabled:l,onBottomArrive:d,onBottomLeave:h,onTopArrive:v,onTopLeave:y}),x=fY({isEnabled:i}),R=function(A){C(A),x(A)};return Et(M.Fragment,null,i&&Et("div",{onClick:pY,css:vY}),r(R))}function mY(){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 gY=Tm.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:mY},yY=function(r){var i=r.name,u=r.onFocus;return Et("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:gY,value:"",onChange:function(){}})},bY=yY;function UR(n){var r;return typeof window<"u"&&window.navigator!=null?n.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function CY(){return UR(/^iPhone/i)}function Ik(){return UR(/^Mac/i)}function xY(){return UR(/^iPad/i)||Ik()&&navigator.maxTouchPoints>1}function SY(){return CY()||xY()}function EY(){return Ik()||SY()}var wY=function(r){return r.label},RY=function(r){return r.label},TY=function(r){return r.value},IY=function(r){return!!r.isDisabled},NY={clearIndicator:sX,container:Z5,control:vX,dropdownIndicator:iX,group:yX,groupHeading:CX,indicatorsContainer:K5,indicatorSeparator:uX,input:wX,loadingIndicator:dX,loadingMessage:$5,menu:P5,menuList:z5,menuPortal:X5,multiValue:_X,multiValueLabel:OX,multiValueRemove:AX,noOptionsMessage:H5,option:PX,placeholder:BX,singleValue:HX,valueContainer:q5},_Y={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%)"},OY=4,Nk=4,AY=38,jY=Nk*2,DY={baseUnit:Nk,controlHeight:AY,menuGutter:jY},JE={borderRadius:OY,colors:_Y,spacing:DY},kY={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:SO(),captureMenuScroll:!SO(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:oY(),formatGroupLabel:wY,getOptionLabel:RY,getOptionValue:TY,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:IY,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!I5(),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 kO(n,r,i,u){var l=Ak(n,r,i),d=jk(n,r,i),h=Ok(n,r),v=N0(n,r);return{type:"option",data:r,isDisabled:l,isSelected:d,label:h,value:v,index:u}}function n0(n,r){return n.options.map(function(i,u){if("options"in i){var l=i.options.map(function(h,v){return kO(n,h,r,v)}).filter(function(h){return LO(n,h)});return l.length>0?{type:"group",data:i,options:l,index:u}:void 0}var d=kO(n,i,r,u);return LO(n,d)?d:void 0}).filter(O5)}function _k(n){return n.reduce(function(r,i){return i.type==="group"?r.push.apply(r,TR(i.options.map(function(u){return u.data}))):r.push(i.data),r},[])}function MO(n,r){return n.reduce(function(i,u){return u.type==="group"?i.push.apply(i,TR(u.options.map(function(l){return{data:l.data,id:"".concat(r,"-").concat(u.index,"-").concat(l.index)}}))):i.push({data:u.data,id:"".concat(r,"-").concat(u.index)}),i},[])}function MY(n,r){return _k(n0(n,r))}function LO(n,r){var i=n.inputValue,u=i===void 0?"":i,l=r.data,d=r.isSelected,h=r.label,v=r.value;return(!kk(n)||!d)&&Dk(n,{label:h,value:v,data:l},u)}function LY(n,r){var i=n.focusedValue,u=n.selectValue,l=u.indexOf(i);if(l>-1){var d=r.indexOf(i);if(d>-1)return i;if(l<r.length)return r[l]}return null}function PY(n,r){var i=n.focusedOption;return i&&r.indexOf(i)>-1?i:r[0]}var qE=function(r,i){var u,l=(u=r.find(function(d){return d.data===i}))===null||u===void 0?void 0:u.id;return l||null},Ok=function(r,i){return r.getOptionLabel(i)},N0=function(r,i){return r.getOptionValue(i)};function Ak(n,r,i){return typeof n.isOptionDisabled=="function"?n.isOptionDisabled(r,i):!1}function jk(n,r,i){if(i.indexOf(r)>-1)return!0;if(typeof n.isOptionSelected=="function")return n.isOptionSelected(r,i);var u=N0(n,r);return i.some(function(l){return N0(n,l)===u})}function Dk(n,r,i){return n.filterOption?n.filterOption(r,i):!0}var kk=function(r){var i=r.hideSelectedOptions,u=r.isMulti;return i===void 0?u:i},FY=1,HR=function(n){H4(i,n);var r=W4(i);function i(u){var l;if(z4(this,i),l=r.call(this,u),l.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:""},l.blockOptionHover=!1,l.isComposing=!1,l.commonProps=void 0,l.initialTouchX=0,l.initialTouchY=0,l.openAfterFocus=!1,l.scrollToFocusedOptionOnUpdate=!1,l.userIsDragging=void 0,l.isAppleDevice=EY(),l.controlRef=null,l.getControlRef=function(y){l.controlRef=y},l.focusedOptionRef=null,l.getFocusedOptionRef=function(y){l.focusedOptionRef=y},l.menuListRef=null,l.getMenuListRef=function(y){l.menuListRef=y},l.inputRef=null,l.getInputRef=function(y){l.inputRef=y},l.focus=l.focusInput,l.blur=l.blurInput,l.onChange=function(y,C){var x=l.props,R=x.onChange,T=x.name;C.name=T,l.ariaOnChange(y,C),R(y,C)},l.setValue=function(y,C,x){var R=l.props,T=R.closeMenuOnSelect,A=R.isMulti,N=R.inputValue;l.onInputChange("",{action:"set-value",prevInputValue:N}),T&&(l.setState({inputIsHiddenAfterUpdate:!A}),l.onMenuClose()),l.setState({clearFocusValueOnUpdate:!0}),l.onChange(y,{action:C,option:x})},l.selectOption=function(y){var C=l.props,x=C.blurInputOnSelect,R=C.isMulti,T=C.name,A=l.state.selectValue,N=R&&l.isOptionSelected(y,A),O=l.isOptionDisabled(y,A);if(N){var _=l.getOptionValue(y);l.setValue(A.filter(function(L){return l.getOptionValue(L)!==_}),"deselect-option",y)}else if(!O)R?l.setValue([].concat(TR(A),[y]),"select-option",y):l.setValue(y,"select-option");else{l.ariaOnChange(y,{action:"select-option",option:y,name:T});return}x&&l.blurInput()},l.removeValue=function(y){var C=l.props.isMulti,x=l.state.selectValue,R=l.getOptionValue(y),T=x.filter(function(N){return l.getOptionValue(N)!==R}),A=Hb(C,T,T[0]||null);l.onChange(A,{action:"remove-value",removedValue:y}),l.focusInput()},l.clearValue=function(){var y=l.state.selectValue;l.onChange(Hb(l.props.isMulti,[],null),{action:"clear",removedValues:y})},l.popValue=function(){var y=l.props.isMulti,C=l.state.selectValue,x=C[C.length-1],R=C.slice(0,C.length-1),T=Hb(y,R,R[0]||null);l.onChange(T,{action:"pop-value",removedValue:x})},l.getFocusedOptionId=function(y){return qE(l.state.focusableOptionsWithIds,y)},l.getFocusableOptionsWithIds=function(){return MO(n0(l.props,l.state.selectValue),l.getElementId("option"))},l.getValue=function(){return l.state.selectValue},l.cx=function(){for(var y=arguments.length,C=new Array(y),x=0;x<y;x++)C[x]=arguments[x];return x5.apply(void 0,[l.props.classNamePrefix].concat(C))},l.getOptionLabel=function(y){return Ok(l.props,y)},l.getOptionValue=function(y){return N0(l.props,y)},l.getStyles=function(y,C){var x=l.props.unstyled,R=NY[y](C,x);R.boxSizing="border-box";var T=l.props.styles[y];return T?T(R,C):R},l.getClassNames=function(y,C){var x,R;return(x=(R=l.props.classNames)[y])===null||x===void 0?void 0:x.call(R,C)},l.getElementId=function(y){return"".concat(l.state.instancePrefix,"-").concat(y)},l.getComponents=function(){return XX(l.props)},l.buildCategorizedOptions=function(){return n0(l.props,l.state.selectValue)},l.getCategorizedOptions=function(){return l.props.menuIsOpen?l.buildCategorizedOptions():[]},l.buildFocusableOptions=function(){return _k(l.buildCategorizedOptions())},l.getFocusableOptions=function(){return l.props.menuIsOpen?l.buildFocusableOptions():[]},l.ariaOnChange=function(y,C){l.setState({ariaSelection:yt({value:y},C)})},l.onMenuMouseDown=function(y){y.button===0&&(y.stopPropagation(),y.preventDefault(),l.focusInput())},l.onMenuMouseMove=function(y){l.blockOptionHover=!1},l.onControlMouseDown=function(y){if(!y.defaultPrevented){var C=l.props.openMenuOnClick;l.state.isFocused?l.props.menuIsOpen?y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&l.onMenuClose():C&&l.openMenu("first"):(C&&(l.openAfterFocus=!0),l.focusInput()),y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&y.preventDefault()}},l.onDropdownIndicatorMouseDown=function(y){if(!(y&&y.type==="mousedown"&&y.button!==0)&&!l.props.isDisabled){var C=l.props,x=C.isMulti,R=C.menuIsOpen;l.focusInput(),R?(l.setState({inputIsHiddenAfterUpdate:!x}),l.onMenuClose()):l.openMenu("first"),y.preventDefault()}},l.onClearIndicatorMouseDown=function(y){y&&y.type==="mousedown"&&y.button!==0||(l.clearValue(),y.preventDefault(),l.openAfterFocus=!1,y.type==="touchend"?l.focusInput():setTimeout(function(){return l.focusInput()}))},l.onScroll=function(y){typeof l.props.closeMenuOnScroll=="boolean"?y.target instanceof HTMLElement&&X0(y.target)&&l.props.onMenuClose():typeof l.props.closeMenuOnScroll=="function"&&l.props.closeMenuOnScroll(y)&&l.props.onMenuClose()},l.onCompositionStart=function(){l.isComposing=!0},l.onCompositionEnd=function(){l.isComposing=!1},l.onTouchStart=function(y){var C=y.touches,x=C&&C.item(0);x&&(l.initialTouchX=x.clientX,l.initialTouchY=x.clientY,l.userIsDragging=!1)},l.onTouchMove=function(y){var C=y.touches,x=C&&C.item(0);if(x){var R=Math.abs(x.clientX-l.initialTouchX),T=Math.abs(x.clientY-l.initialTouchY),A=5;l.userIsDragging=R>A||T>A}},l.onTouchEnd=function(y){l.userIsDragging||(l.controlRef&&!l.controlRef.contains(y.target)&&l.menuListRef&&!l.menuListRef.contains(y.target)&&l.blurInput(),l.initialTouchX=0,l.initialTouchY=0)},l.onControlTouchEnd=function(y){l.userIsDragging||l.onControlMouseDown(y)},l.onClearIndicatorTouchEnd=function(y){l.userIsDragging||l.onClearIndicatorMouseDown(y)},l.onDropdownIndicatorTouchEnd=function(y){l.userIsDragging||l.onDropdownIndicatorMouseDown(y)},l.handleInputChange=function(y){var C=l.props.inputValue,x=y.currentTarget.value;l.setState({inputIsHiddenAfterUpdate:!1}),l.onInputChange(x,{action:"input-change",prevInputValue:C}),l.props.menuIsOpen||l.onMenuOpen()},l.onInputFocus=function(y){l.props.onFocus&&l.props.onFocus(y),l.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(l.openAfterFocus||l.props.openMenuOnFocus)&&l.openMenu("first"),l.openAfterFocus=!1},l.onInputBlur=function(y){var C=l.props.inputValue;if(l.menuListRef&&l.menuListRef.contains(document.activeElement)){l.inputRef.focus();return}l.props.onBlur&&l.props.onBlur(y),l.onInputChange("",{action:"input-blur",prevInputValue:C}),l.onMenuClose(),l.setState({focusedValue:null,isFocused:!1})},l.onOptionHover=function(y){if(!(l.blockOptionHover||l.state.focusedOption===y)){var C=l.getFocusableOptions(),x=C.indexOf(y);l.setState({focusedOption:y,focusedOptionId:x>-1?l.getFocusedOptionId(y):null})}},l.shouldHideSelectedOptions=function(){return kk(l.props)},l.onValueInputFocus=function(y){y.preventDefault(),y.stopPropagation(),l.focus()},l.onKeyDown=function(y){var C=l.props,x=C.isMulti,R=C.backspaceRemovesValue,T=C.escapeClearsValue,A=C.inputValue,N=C.isClearable,O=C.isDisabled,_=C.menuIsOpen,L=C.onKeyDown,V=C.tabSelectsValue,F=C.openMenuOnFocus,U=l.state,z=U.focusedOption,H=U.focusedValue,J=U.selectValue;if(!O&&!(typeof L=="function"&&(L(y),y.defaultPrevented))){switch(l.blockOptionHover=!0,y.key){case"ArrowLeft":if(!x||A)return;l.focusValue("previous");break;case"ArrowRight":if(!x||A)return;l.focusValue("next");break;case"Delete":case"Backspace":if(A)return;if(H)l.removeValue(H);else{if(!R)return;x?l.popValue():N&&l.clearValue()}break;case"Tab":if(l.isComposing||y.shiftKey||!_||!V||!z||F&&l.isOptionSelected(z,J))return;l.selectOption(z);break;case"Enter":if(y.keyCode===229)break;if(_){if(!z||l.isComposing)return;l.selectOption(z);break}return;case"Escape":_?(l.setState({inputIsHiddenAfterUpdate:!1}),l.onInputChange("",{action:"menu-close",prevInputValue:A}),l.onMenuClose()):N&&T&&l.clearValue();break;case" ":if(A)return;if(!_){l.openMenu("first");break}if(!z)return;l.selectOption(z);break;case"ArrowUp":_?l.focusOption("up"):l.openMenu("last");break;case"ArrowDown":_?l.focusOption("down"):l.openMenu("first");break;case"PageUp":if(!_)return;l.focusOption("pageup");break;case"PageDown":if(!_)return;l.focusOption("pagedown");break;case"Home":if(!_)return;l.focusOption("first");break;case"End":if(!_)return;l.focusOption("last");break;default:return}y.preventDefault()}},l.state.instancePrefix="react-select-"+(l.props.instanceId||++FY),l.state.selectValue=CO(u.value),u.menuIsOpen&&l.state.selectValue.length){var d=l.getFocusableOptionsWithIds(),h=l.buildFocusableOptions(),v=h.indexOf(l.state.selectValue[0]);l.state.focusableOptionsWithIds=d,l.state.focusedOption=h[v],l.state.focusedOptionId=qE(d,h[v])}return l}return U4(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&&xO(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(l){var d=this.props,h=d.isDisabled,v=d.menuIsOpen,y=this.state.isFocused;(y&&!h&&l.isDisabled||y&&v&&!l.menuIsOpen)&&this.focusInput(),y&&h&&!l.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!y&&!h&&l.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(xO(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(l,d){this.props.onInputChange(l,d)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(l){var d=this,h=this.state,v=h.selectValue,y=h.isFocused,C=this.buildFocusableOptions(),x=l==="first"?0:C.length-1;if(!this.props.isMulti){var R=C.indexOf(v[0]);R>-1&&(x=R)}this.scrollToFocusedOptionOnUpdate=!(y&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:C[x],focusedOptionId:this.getFocusedOptionId(C[x])},function(){return d.onMenuOpen()})}},{key:"focusValue",value:function(l){var d=this.state,h=d.selectValue,v=d.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var y=h.indexOf(v);v||(y=-1);var C=h.length-1,x=-1;if(h.length){switch(l){case"previous":y===0?x=0:y===-1?x=C:x=y-1;break;case"next":y>-1&&y<C&&(x=y+1);break}this.setState({inputIsHidden:x!==-1,focusedValue:h[x]})}}}},{key:"focusOption",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",d=this.props.pageSize,h=this.state.focusedOption,v=this.getFocusableOptions();if(v.length){var y=0,C=v.indexOf(h);h||(C=-1),l==="up"?y=C>0?C-1:v.length-1:l==="down"?y=(C+1)%v.length:l==="pageup"?(y=C-d,y<0&&(y=0)):l==="pagedown"?(y=C+d,y>v.length-1&&(y=v.length-1)):l==="last"&&(y=v.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:v[y],focusedValue:null,focusedOptionId:this.getFocusedOptionId(v[y])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(JE):yt(yt({},JE),this.props.theme):JE}},{key:"getCommonProps",value:function(){var l=this.clearValue,d=this.cx,h=this.getStyles,v=this.getClassNames,y=this.getValue,C=this.selectOption,x=this.setValue,R=this.props,T=R.isMulti,A=R.isRtl,N=R.options,O=this.hasValue();return{clearValue:l,cx:d,getStyles:h,getClassNames:v,getValue:y,hasValue:O,isMulti:T,isRtl:A,options:N,selectOption:C,selectProps:R,setValue:x,theme:this.getTheme()}}},{key:"hasValue",value:function(){var l=this.state.selectValue;return l.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var l=this.props,d=l.isClearable,h=l.isMulti;return d===void 0?h:d}},{key:"isOptionDisabled",value:function(l,d){return Ak(this.props,l,d)}},{key:"isOptionSelected",value:function(l,d){return jk(this.props,l,d)}},{key:"filterOption",value:function(l,d){return Dk(this.props,l,d)}},{key:"formatOptionLabel",value:function(l,d){if(typeof this.props.formatOptionLabel=="function"){var h=this.props.inputValue,v=this.state.selectValue;return this.props.formatOptionLabel(l,{context:d,inputValue:h,selectValue:v})}else return this.getOptionLabel(l)}},{key:"formatGroupLabel",value:function(l){return this.props.formatGroupLabel(l)}},{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 l=this.props,d=l.isDisabled,h=l.isSearchable,v=l.inputId,y=l.inputValue,C=l.tabIndex,x=l.form,R=l.menuIsOpen,T=l.required,A=this.getComponents(),N=A.Input,O=this.state,_=O.inputIsHidden,L=O.ariaSelection,V=this.commonProps,F=v||this.getElementId("input"),U=yt(yt(yt({"aria-autocomplete":"list","aria-expanded":R,"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":T,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},R&&{"aria-controls":this.getElementId("listbox")}),!h&&{"aria-readonly":!0}),this.hasValue()?(L==null?void 0:L.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return h?M.createElement(N,Rt({},V,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:F,innerRef:this.getInputRef,isDisabled:d,isHidden:_,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:C,form:x,type:"text",value:y},U)):M.createElement(lY,Rt({id:F,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:T0,onFocus:this.onInputFocus,disabled:d,tabIndex:C,inputMode:"none",form:x,value:""},U))}},{key:"renderPlaceholderOrValue",value:function(){var l=this,d=this.getComponents(),h=d.MultiValue,v=d.MultiValueContainer,y=d.MultiValueLabel,C=d.MultiValueRemove,x=d.SingleValue,R=d.Placeholder,T=this.commonProps,A=this.props,N=A.controlShouldRenderValue,O=A.isDisabled,_=A.isMulti,L=A.inputValue,V=A.placeholder,F=this.state,U=F.selectValue,z=F.focusedValue,H=F.isFocused;if(!this.hasValue()||!N)return L?null:M.createElement(R,Rt({},T,{key:"placeholder",isDisabled:O,isFocused:H,innerProps:{id:this.getElementId("placeholder")}}),V);if(_)return U.map(function(q,Re){var he=q===z,ge="".concat(l.getOptionLabel(q),"-").concat(l.getOptionValue(q));return M.createElement(h,Rt({},T,{components:{Container:v,Label:y,Remove:C},isFocused:he,isDisabled:O,key:ge,index:Re,removeProps:{onClick:function(){return l.removeValue(q)},onTouchEnd:function(){return l.removeValue(q)},onMouseDown:function(Oe){Oe.preventDefault()}},data:q}),l.formatOptionLabel(q,"value"))});if(L)return null;var J=U[0];return M.createElement(x,Rt({},T,{data:J,isDisabled:O}),this.formatOptionLabel(J,"value"))}},{key:"renderClearIndicator",value:function(){var l=this.getComponents(),d=l.ClearIndicator,h=this.commonProps,v=this.props,y=v.isDisabled,C=v.isLoading,x=this.state.isFocused;if(!this.isClearable()||!d||y||!this.hasValue()||C)return null;var R={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return M.createElement(d,Rt({},h,{innerProps:R,isFocused:x}))}},{key:"renderLoadingIndicator",value:function(){var l=this.getComponents(),d=l.LoadingIndicator,h=this.commonProps,v=this.props,y=v.isDisabled,C=v.isLoading,x=this.state.isFocused;if(!d||!C)return null;var R={"aria-hidden":"true"};return M.createElement(d,Rt({},h,{innerProps:R,isDisabled:y,isFocused:x}))}},{key:"renderIndicatorSeparator",value:function(){var l=this.getComponents(),d=l.DropdownIndicator,h=l.IndicatorSeparator;if(!d||!h)return null;var v=this.commonProps,y=this.props.isDisabled,C=this.state.isFocused;return M.createElement(h,Rt({},v,{isDisabled:y,isFocused:C}))}},{key:"renderDropdownIndicator",value:function(){var l=this.getComponents(),d=l.DropdownIndicator;if(!d)return null;var h=this.commonProps,v=this.props.isDisabled,y=this.state.isFocused,C={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return M.createElement(d,Rt({},h,{innerProps:C,isDisabled:v,isFocused:y}))}},{key:"renderMenu",value:function(){var l=this,d=this.getComponents(),h=d.Group,v=d.GroupHeading,y=d.Menu,C=d.MenuList,x=d.MenuPortal,R=d.LoadingMessage,T=d.NoOptionsMessage,A=d.Option,N=this.commonProps,O=this.state.focusedOption,_=this.props,L=_.captureMenuScroll,V=_.inputValue,F=_.isLoading,U=_.loadingMessage,z=_.minMenuHeight,H=_.maxMenuHeight,J=_.menuIsOpen,q=_.menuPlacement,Re=_.menuPosition,he=_.menuPortalTarget,ge=_.menuShouldBlockScroll,fe=_.menuShouldScrollIntoView,Oe=_.noOptionsMessage,Te=_.onMenuScrollToTop,xe=_.onMenuScrollToBottom;if(!J)return null;var je=function(ye,Se){var Ne=ye.type,le=ye.data,ve=ye.isDisabled,we=ye.isSelected,Ve=ye.label,et=ye.value,tt=O===le,ft=ve?void 0:function(){return l.onOptionHover(le)},Ae=ve?void 0:function(){return l.selectOption(le)},It="".concat(l.getElementId("option"),"-").concat(Se),pt={id:It,onClick:Ae,onMouseMove:ft,onMouseOver:ft,tabIndex:-1,role:"option","aria-selected":l.isAppleDevice?void 0:we};return M.createElement(A,Rt({},N,{innerProps:pt,data:le,isDisabled:ve,isSelected:we,key:It,label:Ve,type:Ne,value:et,isFocused:tt,innerRef:tt?l.getFocusedOptionRef:void 0}),l.formatOptionLabel(ye.data,"menu"))},Le;if(this.hasOptions())Le=this.getCategorizedOptions().map(function(re){if(re.type==="group"){var ye=re.data,Se=re.options,Ne=re.index,le="".concat(l.getElementId("group"),"-").concat(Ne),ve="".concat(le,"-heading");return M.createElement(h,Rt({},N,{key:le,data:ye,options:Se,Heading:v,headingProps:{id:ve,data:re.data},label:l.formatGroupLabel(re.data)}),re.options.map(function(we){return je(we,"".concat(Ne,"-").concat(we.index))}))}else if(re.type==="option")return je(re,"".concat(re.index))});else if(F){var ne=U({inputValue:V});if(ne===null)return null;Le=M.createElement(R,N,ne)}else{var _e=Oe({inputValue:V});if(_e===null)return null;Le=M.createElement(T,N,_e)}var G={minMenuHeight:z,maxMenuHeight:H,menuPlacement:q,menuPosition:Re,menuShouldScrollIntoView:fe},Y=M.createElement(F5,Rt({},N,G),function(re){var ye=re.ref,Se=re.placerProps,Ne=Se.placement,le=Se.maxHeight;return M.createElement(y,Rt({},N,G,{innerRef:ye,innerProps:{onMouseDown:l.onMenuMouseDown,onMouseMove:l.onMenuMouseMove},isLoading:F,placement:Ne}),M.createElement(hY,{captureEnabled:L,onTopArrive:Te,onBottomArrive:xe,lockEnabled:ge},function(ve){return M.createElement(C,Rt({},N,{innerRef:function(Ve){l.getMenuListRef(Ve),ve(Ve)},innerProps:{role:"listbox","aria-multiselectable":N.isMulti,id:l.getElementId("listbox")},isLoading:F,maxHeight:le,focusedOption:O}),Le)}))});return he||Re==="fixed"?M.createElement(x,Rt({},N,{appendTo:he,controlElement:this.controlRef,menuPlacement:q,menuPosition:Re}),Y):Y}},{key:"renderFormField",value:function(){var l=this,d=this.props,h=d.delimiter,v=d.isDisabled,y=d.isMulti,C=d.name,x=d.required,R=this.state.selectValue;if(x&&!this.hasValue()&&!v)return M.createElement(bY,{name:C,onFocus:this.onValueInputFocus});if(!(!C||v))if(y)if(h){var T=R.map(function(O){return l.getOptionValue(O)}).join(h);return M.createElement("input",{name:C,type:"hidden",value:T})}else{var A=R.length>0?R.map(function(O,_){return M.createElement("input",{key:"i-".concat(_),name:C,type:"hidden",value:l.getOptionValue(O)})}):M.createElement("input",{name:C,type:"hidden",value:""});return M.createElement("div",null,A)}else{var N=R[0]?this.getOptionValue(R[0]):"";return M.createElement("input",{name:C,type:"hidden",value:N})}}},{key:"renderLiveRegion",value:function(){var l=this.commonProps,d=this.state,h=d.ariaSelection,v=d.focusedOption,y=d.focusedValue,C=d.isFocused,x=d.selectValue,R=this.getFocusableOptions();return M.createElement(nY,Rt({},l,{id:this.getElementId("live-region"),ariaSelection:h,focusedOption:v,focusedValue:y,isFocused:C,selectValue:x,focusableOptions:R,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var l=this.getComponents(),d=l.Control,h=l.IndicatorsContainer,v=l.SelectContainer,y=l.ValueContainer,C=this.props,x=C.className,R=C.id,T=C.isDisabled,A=C.menuIsOpen,N=this.state.isFocused,O=this.commonProps=this.getCommonProps();return M.createElement(v,Rt({},O,{className:x,innerProps:{id:R,onKeyDown:this.onKeyDown},isDisabled:T,isFocused:N}),this.renderLiveRegion(),M.createElement(d,Rt({},O,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:T,isFocused:N,menuIsOpen:A}),M.createElement(y,Rt({},O,{isDisabled:T}),this.renderPlaceholderOrValue(),this.renderInput()),M.createElement(h,Rt({},O,{isDisabled:T}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(l,d){var h=d.prevProps,v=d.clearFocusValueOnUpdate,y=d.inputIsHiddenAfterUpdate,C=d.ariaSelection,x=d.isFocused,R=d.prevWasFocused,T=d.instancePrefix,A=l.options,N=l.value,O=l.menuIsOpen,_=l.inputValue,L=l.isMulti,V=CO(N),F={};if(h&&(N!==h.value||A!==h.options||O!==h.menuIsOpen||_!==h.inputValue)){var U=O?MY(l,V):[],z=O?MO(n0(l,V),"".concat(T,"-option")):[],H=v?LY(d,V):null,J=PY(d,U),q=qE(z,J);F={selectValue:V,focusedOption:J,focusedOptionId:q,focusableOptionsWithIds:z,focusedValue:H,clearFocusValueOnUpdate:!1}}var Re=y!=null&&l!==h?{inputIsHidden:y,inputIsHiddenAfterUpdate:void 0}:{},he=C,ge=x&&R;return x&&!ge&&(he={value:Hb(L,V,V[0]||null),options:V,action:"initial-input-focus"},ge=!R),(C==null?void 0:C.action)==="initial-input-focus"&&(he=null),yt(yt(yt({},F),Re),{},{prevProps:l,ariaSelection:he,prevWasFocused:ge})}}]),i}(M.Component);HR.defaultProps=kY;var VY=M.forwardRef(function(n,r){var i=GD(n);return M.createElement(HR,Rt({ref:r},i))}),$R=VY;function Up({bg:n="dark",children:r,color:i="light",fontWeight:u="bold",icon:l="info-circle-fill",initial:d=!1,maxWidth:h="200px",padding:v="10px",placement:y,target:C,trigger:x="click",visible:R=!0}){const T=typeof d=="string"||d instanceof String,[A,N]=M.useState(T?localStorage.getItem(d)!="true":d),[O,_]=M.useState(!1);M.useEffect(()=>{setTimeout(()=>_(!0),100)},[]);const L=()=>{T&&localStorage.setItem(d,"true")},V=b.jsxs(RR,{style:{"--bs-tooltip-bg":`var(--bs-${n})`,"--bs-tooltip-color":`var(--bs-${i})`,"--bs-tooltip-max-width":h,"--bs-tooltip-padding-x":v,"--bs-tooltip-padding-y":v,fontWeight:u},children:[b.jsx("button",{"aria-label":"Close",onClick:()=>{L(),N(!1)},style:{background:"transparent",border:"0 none transparent",float:"right"},children:b.jsx("i",{className:"bi bi-x-lg"})}),r]});return C&&C.current?b.jsx(zD,{target:C.current,placement:y,show:A&&R&&O,children:V}):b.jsx(UD,{placement:y,onToggle:F=>{L(),N(F)},overlay:V,show:A&&R&&O,trigger:x,children:b.jsx("button",{className:"btn bnt-clear border-0",style:{backgroundColor:"transparent"},children:b.jsx("i",{className:`bi bi-${l}`})})})}const BY="_items_c2dbg_1",zY="_item_c2dbg_1",UY="_details_c2dbg_14",HY="_text_c2dbg_20",$Y="_number_c2dbg_35",GY="_outer_c2dbg_50",WY="_inner_c2dbg_61",Yl={items:BY,item:zY,details:UY,text:HY,number:$Y,outer:GY,inner:WY},um=(n,r)=>`${Math.cos(2*Math.PI*n)*r} ${Math.sin(2*Math.PI*n)*r}`;function XY({requestId:n,grantNumber:r,creditColorClass:i="gray-300",colorClasses:u=pw}){const{request:l}=ri(n,r);if(!l)return;let d=0,h;const v=[];for(let T of l.resources)T.isBoolean||(T.isCredit?h=T:v.push(T),d+=T.requested*T.unitCost);const y=[],C=[];let x=-.25;const R=[...v,h].map((T,A)=>{if(!T)return null;const N=A+1,_=T.requested*T.unitCost/d,L=T.requested-T.used,V=Math.max(0,L),F=T.isCredit?d/T.unitCost:T.requested,U=F==0?0:100*V/F,H=`var(--bs-${T.isCredit?i:u[A%u.length]})`;if(_>0){const J=x,q=x+_/2,Re=x+=_,he=_>.5?1:0,ge=[`M ${um(J,100)}`,`A 100 100 0 ${he} 1 ${um(Re,100)}`,`L ${um(Re,50)}`,`A 50 50 0 ${he} 0 ${um(J,50)}`].join(" "),[fe,Oe]=um(q,75).split(" ").map(Te=>parseFloat(Te));y.push(b.jsx("path",{d:ge,style:{fill:H}},T.resourceId)),C.push(b.jsx("circle",{cx:fe,cy:Oe,r:"8",fill:"black"},`${T.resourceId}-circle`),b.jsx("text",{x:fe-4,y:Oe+4,fill:"white",className:Yl.number,children:N},`${T.resourceId}-text`))}return T.isCredit&&C.push(b.jsx("foreignObject",{x:"-50",y:"-50",width:"100",height:"100",children:b.jsx("div",{className:Yl.text,children:b.jsxs("div",{children:[b.jsx("strong",{children:ni(V,{abbreviate:!0})}),T.unit," available"]})})},"center-text")),b.jsxs("li",{className:Yl.item,children:[b.jsx("span",{className:Yl.number,children:N}),b.jsx("span",{className:`${Yl.outer} ms-2 me-2`,style:{borderColor:H},children:b.jsx("span",{className:Yl.inner,style:{backgroundColor:H,width:`${U}%`}})}),b.jsxs("strong",{className:Yl.name,children:[Uf(T,{userGuide:!1}),": "]}),b.jsxs("span",{className:Yl.details,children:[ni(L,{abbreviate:!0})," ",T.isCredit?null:b.jsxs(b.Fragment,{children:["of ",ni(F,{abbreviate:!0})," "]}),T.unit," ",T.isCredit?"available":"remaining"," (",Math.round(U),"%)"]})]},T.resourceId)});return b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-lg-3 mb-3 d-flex flex-row align-items-center justify-content-center",children:b.jsxs("svg",{version:"1.1",viewBox:"-100 -100 200 200",width:"200",height:"200",xmlns:"http://www.w3.org/2000/svg",children:[y,C]})}),b.jsx("div",{className:"col-lg-9 mb-3 d-flex flex-column justify-content-center",children:b.jsx("ul",{className:Yl.items,children:R})})]})}const PO=n=>n;function YY({classes:n,clean:r=PO,format:i=PO,label:u,setValue:l,style:d,value:h}){const v=i(h),[y,C]=M.useState(v);return M.useEffect(()=>{C(v)},[v]),b.jsx("input",{type:"text","aria-label":u,className:`form-control ${n}`,value:y,style:d,onChange:x=>C(x.target.value),onBlur:x=>{const R=r(x.target.value);C(i(R)),l(R)},onKeyDown:x=>{x.code=="Enter"&&(x.preventDefault(),x.target.blur())}})}function ZY({requestId:n,grantNumber:r}){const{request:i,addResource:u,openUsageDetailModal:l,resetResources:d,setResourceRequest:h,setResourcesReason:v,statuses:y,toggleActionsModal:C,toggleConfirmModal:x,toggleResourcesModal:R}=ri(n,r),{project:T}=Ji(r||i&&i.grantNumber),A=M.useRef(null),N=M.useRef(null);if(!i||!T)return;const O="Exchange"in i.allowedActions,_="Renewal"in i.allowedActions,L="Supplement"in i.allowedActions,V=i.exchangeStatus==y.pending,F=i.exchangeStatus==y.success,U=i.exchangeStatus==y.error,z=i.exchangeActionId!==null,H=i.resources,J=i.resourcesReason,q={};for(let le of H)q[le.resourceId]=le;const Re=()=>{MA(i)>=.75?C():x()},he=[];for(let le of H){let ve=[];if(le.requested>0){for(let we of le.requires||[]){let Ve=q[we];if(Ve){if(Ve.requested>0){ve=[];break}ve.push(Ve)}}ve.length&&he.push(b.jsxs("span",{children:[Uf(le,{userGuide:!1})," requires"," ",kA(ve.map(we=>Uf(we,{userGuide:!1})),"or"),"."]},le.resourceId))}}const ge=he.length>0;let fe;F?fe=b.jsx(ma,{color:"info",children:"Your exchange request has been submitted."}):z?fe=b.jsx(ma,{color:"warning",children:"You have an exchange request under review. The information below reflects the pending exchange request."}):U?fe=b.jsx(ma,{color:"danger",children:"Sorry, your exchange request could not be submitted. Please try again later."}):i.timeStatus=="current"&&!T.isManager?fe=b.jsxs(ma,{color:"warning",children:["You do not have permission to manage resources for this project. Please contact ",tR(T)," to request a change."]}):ge&&(fe=b.jsxs(ma,{color:"warning",children:[he," Please adjust your balance values."]}));const Oe=J.length>0;let Te=!1,xe=!1;for(let le of H)if(le.isNew&&(Te=!0),le.allocated!=le.requested&&(xe=!0),Te&&xe)break;const je=H.map(le=>le.resourceId),Le=O&&!F&&!z?i.allowedActions.Exchange.resources.filter(le=>!je.includes(le.resourceId)).map(le=>{const ve=M0(le.name),we=ve.short?`${ve.short} (${ve.full.replace(/ \([^(]+\)/,"")})`:ve.full;return{value:le.resourceId,label:we}}):[],ne=O?i.allowedActions.Exchange.resources.map(le=>le.resourceId):[];let _e;const G=[],Y=[];for(let le of H)le.isCredit?_e=le:(G.push(le),Y.push(!F&&!z&&(le.isNew||le.allocated!=le.requested)?Bp.edited:ne.includes(le.resourceId)?"":Bp.disabled));const re=`Add ${G.length?"another":"a"} resource to your exchange...`,ye=le=>le.requested-le.used,Se=(le,ve)=>{let we=Fp(Number(le.replace(/[^0-9-.]/g,""))+ve.used,ve.decimalPlaces);isNaN(we)&&(we=ve.allocated);const Ve=Math.min(ve.allocated,ve.used);return we<Ve?Ve:ve.unitCost*(we-ve.requested)>_e.requested?Fp(_e.requested/ve.unitCost,ve.decimalPlaces,"floor")+ve.requested:we},Ne=[{key:"name",name:"Resource",format:(le,ve)=>Uf(ve),width:Math.min(350,window.innerWidth*.3)},{key:"isActive",name:"Status",format:(le,ve)=>b.jsx(Zp,{status:le?"Active":ve.isNew?"New":"Inactive"}),width:100},{key:"unit",name:"Unit",width:150,format:(le,ve)=>ve.isBoolean?b.jsx(b.Fragment,{children:"—"}):b.jsx("abbr",{title:`1 ${v_(le,1)} = ${ni(ve.unitCost)} ${v_(_e.name,ve.unitCost)}`,children:le})},{key:"used",name:"Usage",class:"text-end",format:(le,ve)=>ve.isBoolean?b.jsx(b.Fragment,{children:"—"}):b.jsxs(b.Fragment,{children:[ni(le),(T.currentUser.resourceIds.includes(ve.resourceId)||T.currentUser.resourceAccountInactiveIds.includes(ve.resourceId))&&b.jsx(c0,{icon:"table",onClick:()=>l(ve.resourceRepositoryKey),target:"_blank",title:`${ve.name} Usage Details`})]})}];return O&&Ne.push({key:"requested",name:"Balance",class:"text-end",rowClass:le=>!F&&!z&&ne.includes(le.resourceId)?Bp.input:"",format:(le,ve)=>{const we=!F&&!z&&ne.includes(ve.resourceId);return ve.isBoolean?b.jsx("input",{className:"form-check-input",type:"checkbox",checked:le==1,disabled:!we,onChange:Ve=>h(ve.resourceId,Ve.target.checked?1:0)}):we?b.jsx(YY,{classes:"text-end w-100",clean:Ve=>Se(Ve,ve)-ve.used,format:ni,label:`Balance for ${ve.name}`,setValue:Ve=>{h(ve.resourceId,Ve+ve.used)},style:{padding:"0.1rem 0.5rem"},value:ye(ve)}):ni(ye(ve))},formatHeader:le=>b.jsxs(b.Fragment,{children:[le,!F&&!z?b.jsx(Up,{bg:"secondary",color:"dark",initial:"myprojects.requestedAllocation",placement:"top-end",visible:T.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]})}),b.jsxs("div",{className:"resources",children:[fe,H.length?b.jsx(XY,{requestId:n}):null,_e&&(O||_||L)?b.jsxs("h2",{className:"mb-1 mt-2 d-flex justify-content-between",children:[b.jsxs("span",{children:[mc(Nn.resourceTypeIcons.credit)," ",ni(_e.requested,_e)," ",_e.unit," available to exchange"]}),_||L?b.jsxs("button",{type:"button",className:"btn btn-sm btn-primary ms-2",onClick:Re,children:[mc(Nn.resourceTypeIcons.credit)," Request More"," ",i.usesCredits?"Credits":"Units"]}):null]}):null,G.length?b.jsx(Qf,{columns:Ne,rows:G,rowClasses:Y,classes:Le.length?"mb-0":"",frozenColumns:2,minWidth:"800px"}):b.jsx("div",{className:"card p-2 text-bg-light p-3",children:"This project does not have any resources."}),Le.length?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"p-2",style:{backgroundColor:"var(--teal-200)",border:"1px solid #cccccc",marginTop:"-1px"},ref:A,children:b.jsx($R,{classNames:{control:()=>"react-select mb-1"},options:Le,onChange:le=>u(le.value),placeholder:re,value:null,"aria-label":re})}),G.length?null:b.jsx(Up,{bg:"secondary",color:"dark",visible:T.tab=="resources",initial:!0,target:A,children:"Ready to get started? Search for a resource to add it to your project."}),b.jsxs("p",{className:"text-black-50",style:{fontSize:"0.9rem"},children:["Need help choosing a resource? Visit our"," ",b.jsx("a",{href:Nn.routes.resources_path(),children:"Resource Catalog"}),"."]})]}):null,O&&!F&&!z?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"mb-3",children:[b.jsx("label",{htmlFor:"resources-reason",className:"form-label required",children:"Please briefly explain how the requested resources and amounts will contribute to your research."}),b.jsx("textarea",{className:"form-control",id:"resources-reason",rows:"2",value:J,onChange:le=>v(le.target.value),style:{minHeight:"3rem"}})]}),b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:V||!xe&&!Oe&&!Te,onClick:d,children:"Reset Form"}),b.jsx("button",{ref:N,type:"button",className:"btn btn-secondary",disabled:V||!xe||!Oe||ge,onClick:R,children:V?"Submitting...":"Submit for Approval"})]}),xe&&!ge?b.jsx(Up,{bg:"secondary",color:"dark",initial:"myprojects.submitExchange",maxWidth:"390px",placement:"right",target:N,visible:T.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 JY({question:n,requestId:r,grantNumber:i}){const{request:u,setResourceQuestionValues:l}=ri(r,i),d=M.useId();if(!n||!u||u.error)return;const{attributeSetId:h,attributes:v,fieldType:y,label:C,resourceId:x,values:R}=n,T=v[0],A=T.required?"required":"",N=F=>l(x,h,F.target.value?[F.target.value]:[]),O=F=>{l(x,h,Array.from(F.target.options).filter(({selected:U})=>U).map(({value:U})=>parseInt(U,10)))},_=F=>{const U=parseInt(F.target.value,10),z=F.target.checked?[...R,U]:R.filter(H=>H!=U);l(x,h,z)},L=F=>{const U=parseInt(F.target.value);l(x,h,isNaN(U)?[]:[U])};let V;if(["calendar","integer_only","text"].includes(y)){const F={calendar:"date",integer_only:"number",text:"text"}[y];V=b.jsx("input",{className:"form-control",id:d,type:F,placeholder:T.label,required:T.required,value:R[0]||"",onChange:y=="integer_only"?L:N})}else if(y=="textarea")V=b.jsx("textarea",{className:"form-control",id:d,placeholder:T.label,required:T.required,value:R[0]||"",onChange:N});else if(y=="drop_down"||v.length>=10){const F=y=="multi_sel";V=b.jsxs("select",{id:d,className:"form-select",required:T.required,multiple:F,onChange:F?O:L,value:F?R:R[0]||"",children:[F?null:b.jsx("option",{}),v.map(U=>b.jsx("option",{value:U.resourceAttributeId,children:U.label},U.resourceAttributeId))]})}else V=b.jsx("div",{id:d,children:v.map(F=>{const U=`resource-attribute-${F.resourceAttributeId}`;return b.jsxs("div",{className:"form-check",children:[b.jsx("input",{className:"form-check-input",type:y=="single_sel"?"radio":"checkbox",id:U,value:F.resourceAttributeId,checked:R.includes(F.resourceAttributeId),onChange:y=="single_sel"?L:_}),b.jsx("label",{className:"form-check-label",htmlFor:U,children:F.label})]},F.resourceAttributeId)})});return b.jsxs("div",{className:"mb-3",children:[b.jsx("label",{htmlFor:d,className:`form-label ${A}`,children:C}),V]})}function qY({requestId:n,grantNumber:r}){const{request:i,saveResources:u,toggleResourcesModal:l}=ri(n,r),{project:d}=Ji(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const h=[],v=i.resources.filter(C=>C.allocated!=C.requested).map(C=>{const x=C.requested-C.allocated;return C.questions&&h.push(...C.questions),b.jsxs("li",{className:"list-group-item d-flex justify-content-between align-items-center mb-0",children:[C.name,b.jsx("span",{className:`badge bg-${x>0?"primary":"danger"} rounded-pill`,children:C.isBoolean?eR(C.requested):b.jsxs(b.Fragment,{children:[x>0?"+":"",ni(x,C)," ",C.unit]})})]},C.resourceId)}),y=h.some(({attributes:C,values:x})=>x.length==0&&C[0].required);return b.jsxs(Ln,{size:"lg",show:i.showResourcesModal,onHide:l,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Complete Your Exchange"})}),b.jsxs(Ln.Body,{children:[b.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."}),b.jsx("ul",{className:"list-group mb-3",children:v}),h.length?b.jsxs(b.Fragment,{children:[b.jsx("h2",{children:"Resource Questions"}),b.jsx("p",{children:"Some of the resources you selected have associated questions. Please answer the questions below."}),h.map(C=>b.jsx(JY,{question:C,requestId:n,grantNumber:r},C.attributeSetId))]}):null]}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:l,children:"Continue Editing"}),b.jsx("button",{type:"button",className:"btn btn-secondary",onClick:u,disabled:y,children:"Submit"})]})})]})}function Mm(){return b.jsx("div",{className:"spinner-border",role:"status",children:b.jsx("span",{className:"visually-hidden",children:"Loading..."})})}function Mk({user:n}){const r=`${n.lastName}, ${n.firstName}`;let i=r,u=[n.organization,n.email].filter(l=>l).join(", ");return u&&(i+=`: ${u}`),b.jsx("abbr",{title:i,children:r})}function QY({requestId:n,grantNumber:r}){const{project:i}=Ji(r),{request:u,closeUsageDetailModal:l}=ri(n,r);if(!u||u.error||!i||i.error||!u.usageDetailStatus)return;let d,h="Usage";if(u.usageDetailStatus==ea.pending)d=b.jsx(Mm,{});else if(u.usageDetailStatus==ea.error)d=b.jsx(ma,{color:"danger",children:"An error occurred while loading usage data."});else{const{projectTitle:v,resourceDisplayName:y,resourceRepositoryKey:C,users:x}=u.usageDetail,{full:R,short:T}=M0(y),A=u.resources.find(L=>L.resourceRepositoryKey==C),N=L=>ni(L,{decimalPlaces:A?A.decimalPlaces:void 0}),O={};for(let L of i.users)O[L.username]=L;h=b.jsxs(b.Fragment,{children:["Usage: ",T||R," for ",v]});const _=[{key:"name",name:"Name",format:(L,{lastName:V,firstName:F,portalUsername:U})=>{const z=O[U];return z?b.jsx(Mk,{user:z}):`${V}, ${F}`}},{key:"portalUsername",name:"Resource Username",format:L=>{const V=O[L],F=V?V.resourceUsernames[A.resourceId]:null;return F||b.jsx(b.Fragment,{children:"—"})}},{key:"role",name:"Role",format:L=>LA[L].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=x.length?b.jsx(Qf,{rows:x,columns:_}):b.jsx(ma,{color:"info",children:"There is no usage for this resource."})}return b.jsxs(Ln,{show:!0,size:"lg",onHide:l,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:h})}),b.jsx(Ln.Body,{children:d})]})}var KY=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function eZ(n){var r=n.defaultOptions,i=r===void 0?!1:r,u=n.cacheOptions,l=u===void 0?!1:u,d=n.loadOptions;n.options;var h=n.isLoading,v=h===void 0?!1:h,y=n.onInputChange,C=n.filterOption,x=C===void 0?null:C,R=nl(n,KY),T=R.inputValue,A=M.useRef(void 0),N=M.useRef(!1),O=M.useState(Array.isArray(i)?i:void 0),_=ta(O,2),L=_[0],V=_[1],F=M.useState(typeof T<"u"?T:""),U=ta(F,2),z=U[0],H=U[1],J=M.useState(i===!0),q=ta(J,2),Re=q[0],he=q[1],ge=M.useState(void 0),fe=ta(ge,2),Oe=fe[0],Te=fe[1],xe=M.useState([]),je=ta(xe,2),Le=je[0],ne=je[1],_e=M.useState(!1),G=ta(_e,2),Y=G[0],re=G[1],ye=M.useState({}),Se=ta(ye,2),Ne=Se[0],le=Se[1],ve=M.useState(void 0),we=ta(ve,2),Ve=we[0],et=we[1],tt=M.useState(void 0),ft=ta(tt,2),Ae=ft[0],It=ft[1];l!==Ae&&(le({}),It(l)),i!==Ve&&(V(Array.isArray(i)?i:void 0),et(i)),M.useEffect(function(){return N.current=!0,function(){N.current=!1}},[]);var pt=M.useCallback(function(sn,_n){if(!d)return _n();var Vt=d(sn,_n);Vt&&typeof Vt.then=="function"&&Vt.then(_n,function(){return _n()})},[d]);M.useEffect(function(){i===!0&&pt(z,function(sn){N.current&&(V(sn||[]),he(!!A.current))})},[]);var Kt=M.useCallback(function(sn,_n){var Vt=S5(sn,_n,y);if(!Vt){A.current=void 0,H(""),Te(""),ne([]),he(!1),re(!1);return}if(l&&Ne[Vt])H(Vt),Te(Vt),ne(Ne[Vt]),he(!1),re(!1);else{var Cn=A.current={};H(Vt),he(!0),re(!Oe),pt(Vt,function(qn){N&&Cn===A.current&&(A.current=void 0,he(!1),Te(Vt),ne(qn||[]),re(!1),le(qn?yt(yt({},Ne),{},Lp({},Vt,qn)):Ne))})}},[l,pt,Oe,Ne,y]),on=Y?[]:z&&Oe?Le:L||[];return yt(yt({},R),{},{options:on,isLoading:Re||v,onInputChange:Kt,filterOption:x})}var tZ=M.forwardRef(function(n,r){var i=eZ(n),u=GD(i);return M.createElement(HR,Rt({ref:r},u))}),nZ=tZ;const FO=({description:n,disabled:r=!1,onChange:i,selectedLength:u,totalLength:l})=>{const d=M.useRef(),h=M.useId();let v=u==l,y=u>0&&!v;return M.useEffect(()=>{d.current&&(d.current.checked=v,d.current.indeterminate=y)},[v,y]),b.jsxs(b.Fragment,{children:[b.jsx("input",{className:"custom-checkbox form-check-input",disabled:r,id:h,onChange:C=>i(C.target.checked),ref:d,type:"checkbox"}),b.jsx("label",{className:"form-check-label",htmlFor:h,"aria-description":`${v?"Deselect":"Select"} ${n}`})]})};function rZ({grantNumber:n,requestId:r}){const{project:i,addUser:u,resetUsers:l,saveUsers:d,setTab:h,setUserRole:v,statuses:y,toggleUsersResources:C}=Ji(n),{request:x}=i?ri(r||i.currentRequestId,n):{request:null};if(!i||!i.currentRequestId||!x||i.error||x.error)return;const R=i.isManager,T="Exchange"in x.allowedActions,A=i.usersStatus==y.pending,N=i.usersStatus==y.success,O=i.usersStatus==y.error,_=i.users,L=x.resources.filter(hw),V=L.length==0,F=_.find(he=>he.hasChanges)!==void 0,U=_.find(he=>he.role!="pi")!==void 0;let z;N&&!F?z=b.jsx(ma,{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."}):O?z=b.jsx(ma,{color:"danger",children:"Sorry, your changes could not be saved. Please try again later."}):R?L.length?V&&(z=b.jsx(ma,{color:"warning",children:"This project does not have any active resources."})):z=b.jsxs(ma,{color:"warning",children:["This project does not have any resources."," ",T?b.jsx("a",{href:Nn.routes.request_action_path(x.requestId,"new?action_type=Exchange"),onClick:he=>{he.preventDefault(),h("resources")},children:"Exchange credits for resources."}):null," ","Additional users can be added after an exchange is approved."]}):z=b.jsxs(ma,{color:"warning",children:["You do not have permission to manage users for this project. Please contact ",tR(i)," to request a change."]});const H=(he,ge)=>{let fe,Oe,Te,xe;if(ge.key=="all"){fe="all resources for all users",Oe=je=>C(je),Te=0;for(let je of _)Te+=je.resourceIds.length;xe=_.length*L.length}else fe=`all users for ${ge.name}`,Oe=je=>C(je,null,ge.key),Te=_.filter(({resourceIds:je})=>je.includes(ge.key)).length,xe=_.length;return b.jsxs(b.Fragment,{children:[ge.key=="all"?he:Uf(ge,{userGuide:!1}),b.jsx("br",{}),b.jsx(FO,{description:fe,disabled:ge.disabled,onChange:Oe,selectedLength:Te,totalLength:xe})]})},J=L0.map(({role:he,name:ge})=>b.jsx("option",{value:he,children:ge},he)),q=[{key:"name",name:"Name",width:200,format:(he,ge)=>b.jsx(Mk,{user:ge})},{key:"username",name:"ACCESS Username",width:100},{key:"role",name:"Role",width:100,format:(he,ge)=>b.jsx("select",{className:"form-select",value:he,onChange:fe=>v(ge.username,fe.target.value),disabled:!R||he=="pi"||he=="co_pi",style:{position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:0},children:J.filter(fe=>fe.key==he||!["pi","co_pi"].includes(fe.key))})}];L.length&&q.push({key:"all",name:"All Resources",class:`text-center ${Bp.important}`,disabled:!R||V,width:100,format:(he,ge)=>b.jsx(FO,{description:`all users for ${ge.name}`,disabled:!R||V,onChange:fe=>C(fe,ge.username),selectedLength:ge.resourceIds.length,totalLength:L.length}),formatHeader:H});for(let he of L)q.push({key:he.resourceId,name:he.name,class:"text-center",disabled:!R||!he.isActive,icon:he.icon,format:(ge,fe)=>b.jsx(b.Fragment,{children:b.jsx("input",{className:"form-check-input",disabled:!R||!he.isActive,onChange:Oe=>C(Oe.target.checked,fe.username,he.resourceId),type:"checkbox",checked:fe.resourceIds.includes(he.resourceId)})}),formatHeader:H});const Re=_.map(he=>he.hasChanges?Bp.edited:"");return b.jsxs(b.Fragment,{children:[z,b.jsx(Qf,{rows:_,columns:q,frozenColumns:L.length?4:3,classes:"mb-0",minWidth:"800px",rowClasses:Re,scrollRowIndex:i.usersNewRowIndex}),R&&L.length&&!V?b.jsx("div",{style:{marginTop:"-1px",position:"relative",zIndex:100},children:b.jsx(nZ,{classNames:{control:()=>"react-select"},loadOptions:async he=>(await YH(he)).map(fe=>({value:fe,label:`${fe.username} (${fe.firstName} ${fe.lastName}, ${fe.organization}${fe.email?`, ${fe.email}`:""})`})),onChange:he=>u(he.value),placeholder:"Add another user...",value:null,"aria-label":"Add another user"})}):null,R&&(L.length&&!V||U)?b.jsxs("div",{className:"d-flex mt-3",children:[b.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:A||!F,onClick:l,children:"Reset Form"}),b.jsx("button",{type:"button",className:"btn btn-secondary",disabled:A||!F,onClick:d,children:A?"Saving...":"Save Changes"})]}):null]})}function aZ({requestId:n,grantNumber:r}){const{request:i}=ri(n,r),{project:u,setRequest:l,setTab:d}=Ji(r||i.grantNumber);if(!i)return;if(i.error)return b.jsx(ma,{color:"danger",children:i.error});const h=i.timeStatus||i.actions[0].status.toLowerCase(),v=i.actions.find(({showDeleteModal:C})=>C),y=[];return i.resources.length||y.push("resources"),n!=u.currentRequestId&&y.push("users"),b.jsxs("div",{className:"request",children:[i.timeStatus!="current"?b.jsxs(ma,{color:"warning",children:["You are viewing ","aeiou".includes(h[0])?"an":"a"," ",h," request."," ",y.length?`You cannot manage ${y.join(" or ")} for this request.`:""," ",u.currentRequestId?b.jsx("a",{href:Nn.routes.request_path(u.currentRequestId),onClick:C=>{C.preventDefault(),l(u.currentRequestId)},children:"Go to the current request."}):null]}):null,b.jsxs(WG,{activeKey:u.tab,onSelect:d,className:"mt-3 mb-3",children:[b.jsx(kb,{eventKey:"overview",title:"Overview",className:"mb-0",children:b.jsx(M4,{requestId:n,grantNumber:r})}),b.jsx(kb,{eventKey:"resources",title:i.usesCredits?"Credits + Resources":"Resources",disabled:y.includes("resources"),children:b.jsx(ZY,{requestId:n})}),b.jsx(kb,{eventKey:"users",title:"Users + Roles",disabled:y.includes("users"),children:b.jsx(rZ,{grantNumber:r})}),b.jsx(kb,{eventKey:"history",title:"History",children:b.jsx(u4,{requestId:n})})]}),b.jsx(Q9,{grantNumber:r,requestId:n}),b.jsx(K9,{grantNumber:r,requestId:n}),b.jsx(e4,{grantNumber:r,requestId:n,actionId:v?v.actionId:null}),b.jsx(qY,{grantNumber:r,requestId:n}),b.jsx(QY,{grantNumber:r,requestId:n})]})}function iZ({requestId:n,grantNumber:r}){const{request:i,toggleActionsModal:u,toggleDeleteModal:l}=ri(n,r);if(!i)return;const{actions:d,allowedActions:h}=i,v=[];h&&(("Extension"in h||"Renewal"in h)&&v.push(["Extend End Date",C=>{C.preventDefault(),u()},"calendar-plus"]),"Final Report"in h&&v.push(["Submit Final Report",`${Nn.routes.request_action_path(n,"new")}?action_type=Final+Report`,"file-earmark-check"]));const y=d.find(C=>C.isRequest);if(y){const C=y.allowedOperations||[];C.includes("Edit")&&v.push(["Edit",Nn.routes.edit_request_path(i.requestId),"pencil"]),C.includes("Delete")&&v.push(["Delete",x=>{x.preventDefault(),l(y.actionId)},"trash","danger"])}return v.map(([C,x,R,T])=>{const A=b.jsxs(b.Fragment,{children:[" ",R&&b.jsx("i",{className:`bi bi-${R} me-1`}),C]});return typeof x=="function"?b.jsx("button",{className:`btn btn-${T||"primary"} ms-2 text-nowrap`,onClick:x,children:A},C):b.jsx("a",{className:`btn btn-${T||"primary"} ms-2 text-nowrap`,href:x,children:A},C)})}function oZ({open:n=!1,grantNumber:r,title:i,status:u}){const[l,d]=M.useState(n),{project:h,setRequest:v}=Ji(r,!l&&i&&u&&!0),y=`project-${r}`;let C=null;if(l&&h)if(h.error)C=b.jsx(ma,{color:"danger",children:h.error});else{let x;const R=h.requestsList.map(T=>(T.requestId==h.selectedRequestId&&(x=T),b.jsx("option",{value:T.requestId,children:Kw(T)},T.requestId)));C=b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"d-flex",children:[b.jsx("select",{className:"form-select","aria-label":"Select a request to display",onChange:T=>v(parseInt(T.target.value,10)),value:h.selectedRequestId,disabled:R.length<2,children:R}),b.jsx(iZ,{requestId:h.selectedRequestId,grantNumber:r})]}),x?b.jsx(aZ,{...x,grantNumber:r}):null]})}return b.jsxs("div",{className:`${y_.project} card mb-3`,children:[b.jsxs("div",{className:`card-header d-flex justify-content-between ${l?"":"border-bottom-0"}`,children:[b.jsx("button",{"aria-expanded":l,"aria-controls":y,className:y_.expand,onClick:()=>d(!l),children:b.jsxs("h2",{className:"mb-1 mt-1 text-start",children:[b.jsx("i",{className:`bi bi-caret-${l?"down":"right"}-fill`})," ",/^[A-Z]/.test(r)?b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"grant-number",children:[r,":"]})," "]}):null,i||h.title]})}),b.jsx(Zp,{status:u||h.status})]}),b.jsx("div",{className:"card-body",id:y,hidden:!l||!h,children:C})]})}function sZ({username:n,openFirst:r=1}){const{error:i,loading:u,projects:l}=y$(n);return u?b.jsx(Mm,{}):i?b.jsxs(ma,{color:"danger",children:[i," ",b.jsx("a",{href:"#",onClick:d=>{d.preventDefault(),window.location.reload()},children:"Reload the page"})," ","to try again."]}):l.length?l.map((d,h)=>b.jsx(oZ,{open:h<r,...d},d.grantNumber)):b.jsxs("div",{className:"pt-5 pb-5 text-bg-light border border-light-subtle",children:[b.jsx("p",{className:"fs-2 text-center mb-4",children:"You don't have any projects yet."}),b.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[b.jsxs("a",{className:"btn btn-primary w-25",href:Nn.routes.project_types_path(),children:[b.jsx("i",{className:"bi bi-boxes fs-1 d-block"})," Learn about Project Types"]}),b.jsxs("a",{className:"btn btn-secondary w-25",href:Nn.routes.get_your_first_project_path(),children:[b.jsx("i",{className:"bi bi-cpu fs-1 d-block"})," Learn How to Get Your"," ",b.jsx("br",{className:"d-none d-xxl-inline"})," First Project"]}),b.jsxs("a",{className:"btn btn-primary w-25",href:Nn.routes.how_to_path(),children:[b.jsx("i",{className:"bi bi-person-plus fs-1 d-block"})," Learn How to Join an Existing Project"]})]})]})}const Lk={apiUrl:null,pages:1,projects:[],projectsLoaded:!1,filtersLoaded:!0,showPagination:!1,filters:{org:"",allocationType:"",allFosToggled:!0,resource:""},pageData:{current_page:1,last_page:1},typeLists:{orgs:[],fosTypes:[],allocationTypes:[],resources:[]}},lZ=Di("projectsBrowser/initApp",async(n,{getState:r,dispatch:i})=>{await i(Fw()),await i($f()),i(uZ())}),uZ=Di("projectsBrowser/filterCleanup",async(n,{getState:r,dispatch:i})=>{const l=r().projectsBrowser.typeLists;i(Pk({...l,orgs:["-- ALL --"].concat(l.orgs)}))}),Fw=Di("projectsBrowser/getFilters",async(n,{getState:r,dispatch:i})=>{const l=`${r().projectsBrowser.apiUrl}?filters=1`,h=await(await fetch(l)).json();i(Pk(h.filters))}),$f=Di("projectsBrowser/getProjects",async(n,{getState:r})=>{const i=r().projectsBrowser,u=i.filters,l=i.typeLists,d=l.fosTypes.filter(C=>C.checked);let h=`${i.apiUrl}?page=${i.pageData.current_page}`;return d.length!=l.fosTypes.length&&(h+=`&fos=${d.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()}),GR=D0({name:"projectsBrowser",initialState:Lk,reducers:{resetFilters:n=>{n.filters={org:"",allocationType:"",allFosToggled:!1,resource:""},GR.caseReducers.toggleAllFos(n)},setApiUrl:(n,{payload:r})=>{n.apiUrl=r},setShowPagination:(n,{payload:r})=>{n.showPagination=r},setTypeLists:(n,{payload:r})=>{n.typeLists=r},toggleAllFos:n=>{n.typeLists.fosTypes.forEach(r=>r.checked=!n.filters.allFosToggled),n.filters.allFosToggled=!n.filters.allFosToggled},toggleFos:(n,{payload:r})=>{n.typeLists.fosTypes.forEach(i=>{i.fosTypeId==r.fosTypeId&&(i.checked=!i.checked)}),n.typeLists.fosTypes.filter(i=>i.checked).length!=n.typeLists.fosTypes.length?n.filters.allFosToggled=!1:n.filters.allFosToggled=!0},updateFilter:(n,{payload:r})=>{n.filters[r.name]=r.value},updatePageData:(n,{payload:r})=>{r.current_page&&(n.pageData.current_page=r.current_page),r.last_page&&(n.pageData.last_page=r.last_page)}},extraReducers:n=>{n.addCase($f.pending,r=>{r.projectsLoaded=!1}).addCase($f.fulfilled,(r,i)=>{const u=i.payload;r.projectsLoaded=!0,r.projects=u.projects,u.pages!=r.pageData.last_page&&(r.pageData.current_page=1),r.showPagination=!0,r.pageData.last_page=u.pages}).addCase($f.rejected,(r,i)=>{console.log(i.error)}).addCase(Fw.pending,r=>{r.filtersLoaded=!1}).addCase(Fw.fulfilled,r=>{r.filtersLoaded=!0})}}),{resetFilters:cZ,setApiUrl:H8,setShowPagination:VO,setTypeLists:Pk,toggleAllFos:fZ,toggleFos:dZ,updateFilter:BO,updatePageData:Vw}=GR.actions,pZ=n=>n.projectsBrowser.filters,vZ=n=>n.projectsBrowser.filtersLoaded,hZ=n=>n.projectsBrowser.projectsLoaded,mZ=n=>n.projectsBrowser.pageData,gZ=n=>n.projectsBrowser.projects,yZ=n=>n.projectsBrowser.filtersLoaded&&n.projectsBrowser.projectsLoaded&&n.projectsBrowser.pageData.last_page>1,bZ=n=>n.projectsBrowser.typeLists,CZ=GR.reducer;const xZ=()=>{const n=To(),r=dr(pZ),i=dr(bZ),u=i.orgs.map(O=>({label:O,value:O})),l=M.useRef(),[d,h]=M.useState(null),[v,y]=M.useState(!1),C={height:"200px",overflowX:"auto",padding:"2px"},x=O=>{n(BO({name:O.target.name,value:O.target.value}))},R=()=>{window.scrollTo(0,0),y(!0),n(VO(!1)),n(Vw({current_page:1})),n($f())},T=()=>{h(null),n(VO(!1)),n(Vw({current_page:1})),n(cZ()),v&&(window.scrollTo(0,0),n($f()),y(!1))},A=O=>{h(O),n(BO({name:"org",value:O.value}))},N=()=>r.org==""&&r.allocationType==""&&r.allFosToggled&&r.resource=="";return b.jsx("div",{className:"row sticky-top mb-2",children:b.jsxs("div",{className:"col",children:[b.jsx("h3",{className:"mb-2",children:"Filters"}),b.jsx("h5",{className:"mb-1",children:"Field of Science"}),b.jsxs("div",{className:"border mb-3",style:C,children:[b.jsxs("div",{className:"form-check",children:[b.jsx("input",{className:"form-check-input",type:"checkbox",value:"",id:"toggle_all",checked:r.allFosToggled,onChange:()=>{n(fZ())}}),b.jsx("label",{className:"form-check-label",htmlFor:"toggle_all",children:"(Toggle All)"})]}),i.fosTypes.map(O=>b.jsxs("div",{className:"form-check",children:[b.jsx("input",{className:"form-check-input",type:"checkbox",value:O.fosTypeId,id:`fos_${O.fosTypeId}`,checked:O.checked,onChange:()=>n(dZ(O))}),b.jsx("label",{className:"form-check-label",htmlFor:`fos_${O.fosTypeId}`,children:O.fosName})]},`fos_${O.fosTypeId}`))]}),b.jsx("h5",{id:"org_select_label",className:"mb-1",children:"Organization"}),b.jsx("div",{className:"mb-3",children:b.jsx($R,{options:u,openMenuOnClick:!0,name:"org",inputId:"orgs_filter",ref:l,closeMenuOnSelect:!0,onChange:A,value:d,"aria-labelledby":"org_select_label"},"org_select")}),b.jsx("h5",{id:"project_type_label",className:"mb-1",children:b.jsx("abbr",{title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),b.jsx("div",{className:"mb-3",children:b.jsxs("select",{name:"allocationType",id:"project_type_select",value:r.allocationType,className:"form-control","aria-labelledby":"project_type_label",onChange:O=>x(O),children:[b.jsx("option",{value:"",children:"-- All --"}),i.allocationTypes.map((O,_)=>b.jsx("option",{value:O,children:O},`allocation_type_${_}`))]})}),b.jsx("h5",{id:"resource_filter_label",className:"mb-1",children:"Resource"}),b.jsx("div",{className:"mb-3",children:b.jsxs("select",{name:"resource",id:"resource_select",value:r.resource,className:"form-control","aria-labelledby":"resource_filter_label",onChange:O=>x(O),children:[b.jsx("option",{value:"",children:"-- All --"}),i.resources.map((O,_)=>b.jsx("option",{value:O.resourceId,children:O.resourceName},`resource_${_}`))]})}),b.jsxs("div",{className:"mt-2",children:[b.jsx("button",{className:"btn btn-primary me-2",onClick:R,children:"Submit"}),b.jsx("button",{className:"btn btn-secondary",disabled:N(),onClick:T,children:"Reset"})]})]})})};const SZ=({project:n})=>{const r=n.resources,i=l=>{let d=l.units?l.units:l.resourceUnits;const h=l.allocation?l.allocation:l.amount;if(d=="[Yes = 1, No = 0]")return l.allocation=="1.0"?"Yes":"No";{let v="0";return parseInt(h)&&(v=parseInt(h).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),d=="ACCESS Credits"&&(d=b.jsx("span",{className:"tooltip-underline",title:"universal currency that can be exchanged for resource units",children:"ACCESS Credits"})),d=="Dollars"?`$${v}`:b.jsxs(b.Fragment,{children:[v," ",d]})}},u=()=>n.requestNumber&&n.requestNumber!=""?`(${n.requestNumber})`:"";return b.jsxs("div",{className:"card mb-4",children:[b.jsxs("div",{className:"card-header bg-primary text-white",children:[b.jsxs("span",{className:"fw-bold",children:[u()," ",n.requestTitle]})," ",b.jsx("br",{}),b.jsxs("span",{className:"fst-italic",children:[n.pi," ",b.jsxs("small",{children:[" (",n.piInstitution,") "]})]})]}),b.jsxs("div",{className:"card-body",children:[b.jsxs("div",{className:"row fw-bold border-bottom",children:[b.jsx("div",{className:"col",children:b.jsx("span",{className:"mb-1 pb-0",children:"Field of Science"})}),b.jsx("div",{className:"col",children:b.jsx("span",{className:"mb-1 pb-0 tooltip-underline",title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),b.jsx("div",{className:"col",children:b.jsx("span",{className:"mb-1 pb-0",children:"Dates"})})]}),b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col",children:n.fos}),b.jsx("div",{className:"col",children:n.allocationType}),b.jsxs("div",{className:"col",children:[n.beginDate," to ",n.endDate]})]}),b.jsxs(os,{flush:!0,className:"mt-3 mb-1",children:[b.jsxs(os.Item,{eventKey:"0",children:[b.jsx(os.Header,{children:"Resources"}),b.jsx(os.Body,{children:b.jsxs("table",{className:"table table-striped table-bordered mt-2 mb-0",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx("span",{className:"m-0 p-0",children:"Resource"})}),b.jsx("td",{children:b.jsx("span",{className:"m-0 p-0 d-inline",children:"Allocation"})})]})}),b.jsx("tbody",{children:r.map((l,d)=>b.jsxs("tr",{children:[b.jsx("td",{children:l.resourceName}),b.jsx("td",{style:{whiteSpace:"nowrap"},children:i(l)})]},`resource_${n.requestId}_${d}`))})]})})]}),b.jsxs(os.Item,{eventKey:"1",children:[b.jsx(os.Header,{children:"Abstract"}),b.jsx(os.Body,{children:b.jsx("div",{style:{whiteSpace:"pre-wrap",padding:"5px"},children:n.abstract})})]})]})]})]})},EZ=()=>{const n=dr(gZ);return n.length==0?b.jsx("div",{children:"No Projects Found"}):b.jsx("div",{children:n.map((r,i)=>b.jsx(SZ,{project:r},`project_${i}`))})};const zO=()=>{const n=To(),r=dr(mZ),[i,u]=M.useState([]),[l,d]=M.useState("0"),h=Array.from({length:r.last_page},(N,O)=>O),v=10,y={width:"50px",textAlign:"center"};M.useEffect(()=>{R()},[r]);const C=N=>{const O=parseInt(N);n(Vw({current_page:N})),n($f(O))},x=N=>(event.preventDefault(),d("0"),C(N),!1),R=()=>{const N=[];if(r.last_page>v)if(r.current_page>4){N.push(1),N.push("spacer");for(var O=1;O>0;O--)r.current_page-O>1&&N.push(r.current_page-O);N.push(["current",r.current_page]);for(var O=1;O<2;O++)r.current_page+O<=r.last_page&&N.push(r.current_page+O);r.last_page-r.current_page>1&&(N.push("spacer"),N.push(r.last_page))}else[1,2,3,4,5].forEach(_=>{_==r.current_page?N.push(["current",_]):N.push(_)}),N.push("spacer"),N.push(r.last_page);else for(var O=1;O<=r.last_page;O++)O==r.current_page?N.push(["current",O]):N.push(O);u(N)},T=N=>{let O="";return typeof N=="object"?[N,O]=N:O=N,N=="spacer"?b.jsx("li",{className:"page-item disabled",children:b.jsx("span",{className:"page-link",style:y,children:". . ."})}):N=="current"?b.jsx("li",{className:"page-item active","aria-current":"page",children:b.jsx("span",{className:"page-link",style:y,children:O})}):b.jsx("li",{className:"page-item",children:b.jsx("button",{className:"page-link",style:y,onClick:()=>C(N),children:O})})},A=()=>b.jsx("li",{className:"page-item",children:b.jsxs("select",{className:"page-link",style:{...y,height:"100%"},value:l,onChange:N=>x(N.target.value),children:[b.jsx("option",{value:"0",children:"Go To"}),h.map(N=>b.jsx("option",{value:N+1,children:N+1},`page_option_${N}`))]})});return b.jsx("div",{children:b.jsx("nav",{"aria-label":"Pages for the table",children:b.jsxs("ul",{className:"pagination",children:[b.jsx("li",{className:`page-item ${r.current_page==1?"disabled":""}`,children:b.jsx("button",{className:"page-link",style:{width:"50px",textAlign:"center"},onClick:()=>C(r.current_page-1),disabled:r.current_page==1,"aria-label":"Previous Page Button",children:"<"})}),i.map((N,O)=>b.jsx(kr.Fragment,{children:T(N)},`page_${O}`)),r.last_page>v?A():"",b.jsx("li",{className:`page-item ${r.current_page==r.last_page?"disabled":""}`,children:b.jsx("button",{className:"page-link",style:y,onClick:()=>C(r.current_page+1),disabled:r.current_page==r.last_page,"aria-label":"Next Page Button",children:">"})})]})})})},wZ=({api_url:n})=>{const r=To(),i=dr(hZ),u=dr(vZ),l=dr(yZ),d=b.jsx("div",{className:"loadingDiv",children:"Loading ..."});return M.useEffect(()=>{r(lZ())},[]),b.jsx("div",{className:"container-fluid",children:b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-sm-3",children:b.jsx(xZ,{})}),b.jsxs("div",{className:"col-sm-9",children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:l?b.jsx(zO,{}):""})}),b.jsx("div",{className:"row",id:"projectListRow",children:b.jsx("div",{className:"col",children:i&&u?b.jsx(EZ,{}):d})}),b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:l?b.jsx(zO,{scroll:"projects_browser_app"}):""})})]})]})})},RZ=n=>n.publications_store.publication,TZ=n=>n.publications_store.publication.doi,IZ=n=>n.publications_store.publication_types,Fk=n=>n.publications_store.publication.authors,NZ=n=>n.publications_store.tag_categories,_Z=n=>n.publications_store.projects,OZ=n=>n.publications_store.publication.tags,AZ=n=>n.publications_store.errors,Vk=n=>n.publications_store.data_loaded,Bk=n=>n.publications_store.show_saved,WR=n=>n.publications_store.saving,jZ=n=>n.publications_store.modal,zk=n=>n.publications_store.form_valid,Uk=n=>!WR(n)&&Vk(n)&&zk(n)&&Hk(n)&&n.publications_store.projects.filter(r=>r.selected).length>0,Hk=n=>{const r=Fk(n);return r.length==0?!1:r.filter(i=>i.first_name==""||i.last_name=="").length==0},$k=n=>({type:"UPDATE_PUBLICATION",payload:n}),DZ=n=>({type:"UPDATE_FIELD",payload:n}),Bw=n=>({type:"CHANGE_PUB_TYPE",payload:n}),kZ=n=>({type:"SET_PUBLICATION",payload:n}),MZ=()=>({type:"ADD_AUTHOR"}),LZ=n=>({type:"UPDATE_AUTHOR",payload:n}),PZ=n=>({type:"TOGGLE_REQUEST",payload:n}),Im=n=>({type:"UPDATE_ERRORS",payload:n}),Gk=n=>({type:"HIDE_ERROR",payload:n}),FZ=n=>({type:"UPDATE_SELECTED_TAGS",payload:n}),VZ=n=>({type:"DELETE_AUTHOR",payload:n}),BZ=n=>({type:"DATA_LOADED",payload:n}),Wk=n=>({type:"UPDATE_SHOW_SAVED",payload:n}),zZ=()=>({type:"RESET_STATE"}),QE=n=>({type:"UPDATE_SAVING",payload:n}),UZ=n=>({type:"SET_FORM_VALID",payload:n}),Xk=n=>({type:"SET_GRANT_NUMBER",payload:n}),HZ=n=>({type:"ADD_PROJECT",payload:n}),vc={routes:{}},$Z=(n,r,i)=>{let u=!0;const l=[];for(const h of r)n[h]||(u=!1,l.push(h));const d=n.authors||[];for(const h of d)for(const v of i)h[v]||(u=!1,l.includes(v)||l.push(v));return{formValid:u,missingFields:l}},GZ=n=>n.length>0?b.jsxs("div",{role:"alert",children:[b.jsx("p",{children:"Please provide the following information before submitting:"}),b.jsx("ul",{children:n.map(r=>b.jsx("li",{children:WZ(r)},r))})]}):null;function WZ(n){return n.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}const XZ=()=>async(n,r)=>{const i=r().publications_store.publication.doi,u=encodeURIComponent(i).replaceAll(".","%2E"),l="Unable to retrieve publication. Double check your DOI, or continue entering information manually.";fetch(`/publications/lookup?doi=${u}`).then(d=>d.json()).then(d=>{if(d.title!=""){let h=r().publications_store.publication_types.find(v=>v.citation_style_type==d.type);n(Bw(h?h.publication_type:"Other")),n(kZ(d))}else n(Im(l))},d=>{n(Im(l))})},YZ=()=>async(n,r)=>{const i=r().publications_store.grant_number,u=vc.routes.publications_find_project_path();await fetch(`${u}?grant_number=${i}`).then(l=>l.json()).then(l=>{n(HZ(l)),n(Xk(""))},()=>{n(Im("Unable to find a project with this grant number."))})},Yk=()=>async n=>{const r=/^\/requests/.test(window.location.pathname)?vc.routes.publication_path("new.json"):window.location.href+".json";await fetch(r).then(i=>i.json()).then(i=>{n(BZ(i))})},Zk=()=>async(n,r)=>{const i=r().publications_store,u=i.projects.filter(T=>T.selected),l=Object.keys(i.selected_tags).map(T=>i.selected_tags[T]).flat(),d={...i.publication},h=i.errors,{formValid:v,missingFields:y}=$Z(d,["title","publication_year","publication_month"],["first_name","last_name"]);if(!v){h.length>0&&Array.from(h).forEach(A=>{n(Gk(A.id))});const T=GZ(y);n(Im(T));return}const C={authenticity_token:document.getElementsByName("authenticity_token")[0].value,publication:d,authors:d.authors.map(T=>({...T,order:0})),tags:l,projects:u};let x,R;d.publication_id?(x=vc.routes.publication_path(d.publication_id),R="PATCH"):(x=vc.routes.publications_path(),R="POST"),n(QE(!0)),await fetch(x,{method:R,headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}).then(T=>{i.redirect?window.location.href=vc.routes.publications_path():(d.publication_id||(n(zZ()),n(Yk())),n(Wk(!0)),n(QE(!1)))},()=>{n(QE(!1)),n(Im("There was an error saving this publication."))})},ZZ=({doi:n,updatePublication:r,doiLookup:i})=>b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{htmlFor:"doi",className:"form-label",children:"DOI"}),b.jsxs("div",{className:"input-group",children:[b.jsx("input",{type:"text",className:"form-control",id:"doi",name:"publication[doi]","aria-label":"DOI Input and Search box","aria-describedby":"doi_button",value:n,onChange:u=>r(u.target.value)}),b.jsx("button",{className:"btn btn-primary",type:"button",id:"doi_button",onClick:()=>i(),children:"Lookup Publication"})]})]})}),JZ=n=>({doi:TZ(n)}),qZ=n=>({updatePublication:r=>n($k({key:"doi",value:r})),doiLookup:()=>n(XZ())}),QZ=fs(JZ,qZ)(ZZ),KZ=({author:n,authorKey:r,updateAuthor:i,deleteAuthor:u})=>{const l=v=>{i({key:v.target.name,value:v.target.value,idx:r})},d=v=>b.jsx("td",{children:b.jsx("input",{type:"text",className:"form-control",name:v,id:v,value:n[v],onChange:y=>l(y)})},`field_${v}`),h=["first_name","last_name","affiliation"];return b.jsxs("tr",{children:[h.map(v=>d(v)),b.jsx("td",{children:r!==0&&b.jsx("button",{className:"btn btn-sm btn-danger",onClick:()=>u(r),children:b.jsx("i",{className:"bi bi-trash"})})})]})},e6=n=>({updateAuthor:r=>n(LZ(r)),deleteAuthor:r=>n(VZ(r))}),UO=fs(null,e6)(KZ),t6=({authors:n,addAuthor:r,authors_exist:i})=>{const u=n.length===0,l=()=>i?"":b.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 b.jsxs("div",{children:[l(),b.jsxs("table",{className:"table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"First Name"}),b.jsx("th",{children:"Last Name"}),b.jsx("th",{children:"Affiliation"}),b.jsx("th",{})]})}),b.jsxs("tbody",{children:[n.map((d,h)=>b.jsx(UO,{author:d,authorKey:h},`author_${h}`)),u&&b.jsx(UO,{author:r()})]})]}),b.jsx("button",{className:"btn btn-primary mt-3",onClick:()=>r(),children:"Add Author"})]})},n6=n=>({authors:Fk(n),authors_exist:Hk(n)}),r6=n=>({addAuthor:()=>n(MZ())}),a6=fs(n6,r6)(t6),i6=({category:n,publication_tags:r,updateSelectedTags:i,index:u})=>{const l=M.useRef(null),d=()=>{const v=r.filter(y=>y.label==n.label)[0];return v?v.options:[]},h=v=>{i({category:n.label,tags:v})};return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"fw-bold mb-1",children:n.label}),b.jsx("div",{className:"mb-3",children:b.jsx($R,{classNames:{control:v=>v.isFocused?"custom-select-selected":"border-grey-300"},defaultValue:d(),options:n.options,isMulti:!0,openMenuOnClick:!0,name:`tags_${u}`,inputId:`tags_${u}`,ref:l,closeMenuOnSelect:!1,onChange:h})})]})},o6=n=>({updateSelectedTags:r=>n(FZ(r))}),s6=n=>({publication_tags:OZ(n)}),l6=fs(s6,o6)(i6),u6=({projects:n,toggleProject:r})=>{const i=l=>`list-group-item list-group-item-action clickable ${l.selected?"list-group-item-success":""}`,u=()=>n.filter(l=>l.selected).length>0;return b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[u()?"":b.jsx("div",{className:"alert alert-danger",children:"You must select at least one project"}),b.jsx("div",{className:"list-group",children:n.map((l,d)=>b.jsxs("div",{className:i(l),onClick:()=>r(d),children:[l.grant_number,": ",l.title]},`project_${l.grant_number}`))})]})})},c6=n=>({projects:_Z(n)}),f6=n=>({toggleProject:r=>n(PZ(r))}),d6=fs(c6,f6)(u6),p6=({grant_number:n,setGrantNumber:r,grantSearch:i})=>b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:["If your project isn't listed above, you can manually add it by entering the grant number below.",b.jsxs("div",{className:"input-group mt-1",children:[b.jsx("input",{type:"text",className:"form-control",value:n,onChange:u=>r(u.target.value),placeholder:"Enter a grant number"}),b.jsx("button",{className:"btn btn-primary",onClick:()=>i(),children:"Find Project"})]})]})}),v6=n=>({setGrantNumber:r=>n(Xk(r)),grantSearch:()=>n(YZ())}),h6=n=>({grant_number:n.publications_store.grant_number}),m6=fs(h6,v6)(p6),g6=({publication:n,updateField:r,publication_types:i,changePubType:u,updatePublication:l,tag_categories:d,savePublication:h,modal:v,save_enabled:y,setFormValid:C,form_valid:x})=>{const R=V=>{V.target.value.trim()==""?C(!1):C(!0),l({key:"title",value:V.target.value})},T=()=>n.fields.map((V,F)=>b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{htmlFor:`field_${V.csl_field_name}`,className:"form-label",children:V.name}),b.jsx("input",{type:"text",className:"form-control",name:`field_${V.csl_field_name}`,id:`field_${V.csl_field_name}`,value:V.field_value,onChange:U=>r({index:F,value:U.target.value})})]})},`field_${V.csl_field_name}`)),A=()=>{const V=new Date().getFullYear()+2;let F=1980;const U=[];for(;F<=V;)U.push(F++);const z=["January","February","March","April","May","June","July","August","September","October","November","December"],H=b.jsx("i",{className:"bi bi-asterisk text-danger"});return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsxs("label",{className:"form-label",htmlFor:"publication_title",children:["Title ",H]}),b.jsx("input",{name:"publication_title",id:"publication_title",type:"text",className:`form-control ${x?"":"is-invalid"}`,value:n.title,onChange:J=>R(J)})]})}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{className:"form-label",htmlFor:"publication_year",children:"Year Published"}),b.jsx("select",{name:"publication_year",id:"publication_year",className:"form-control",value:n.publication_year,onChange:J=>{l({key:"publication_year",value:J.target.value})},children:U.map(J=>b.jsx("option",{value:J,children:J},`year_${J}`))})]})}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{className:"form-label",htmlFor:"publication_month",children:"Month Published"}),b.jsx("select",{name:"publication_month",id:"publication_month",className:"form-control",value:n.publication_month,onChange:J=>{l({key:"publication_month",value:J.target.value})},children:z.map((J,q)=>b.jsx("option",{value:q+1,children:J},`month_${q}`))})]})})]})},N=b.jsxs("div",{className:"card",children:[b.jsx("div",{className:"card-header",children:b.jsx("h2",{children:"Publication Information"})}),b.jsxs("div",{className:"card-body",children:[b.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.'}),b.jsx(QZ,{}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{htmlFor:"publication_type",className:"form-label",children:"Publication Type"}),b.jsx("select",{name:"publication[publication_type]",id:"publication_type",className:"form-control",value:n.publication_type,onChange:V=>u(V.target.value),children:i.map(V=>b.jsx("option",{value:V.publication_type,children:V.publication_type},`pub_type_${V.type_id}`))})]})}),A(),T()]})]}),O=b.jsxs("div",{className:"card mt-3",children:[b.jsxs("div",{className:"card-header d-flex",children:[b.jsx("h2",{children:"Authors"}),b.jsxs(Up,{children:[`Add authors by clicking the "Add Authors" button below and entering the author's details. You may also remove authors by clicking the `,b.jsx("i",{className:"bi bi-trash fw-bold text-danger"})," ","button"]})]}),b.jsx("div",{className:"card-body",children:b.jsx(a6,{})})]}),_=b.jsxs("div",{className:"card mt-3",children:[b.jsxs("div",{className:"card-header d-flex",children:[b.jsx("h2",{children:"Tags"}),b.jsx(Up,{children:"Add related tags from the lists below. You may choose multiple tags per category."})]}),b.jsx("div",{className:"card-body",children:d.map((V,F)=>b.jsx(l6,{index:F,category:V},`tc_${F}`))})]}),L=b.jsxs("div",{className:"card mt-3",children:[b.jsxs("div",{className:"card-header d-flex",children:[b.jsx("h2",{children:"Associated Projects"}),b.jsx(Up,{children:"Click/Tap each project that this publication is related to."})]}),b.jsxs("div",{className:"card-body",children:[b.jsx(d6,{}),b.jsx("hr",{}),b.jsx(m6,{})]})]});return b.jsxs(b.Fragment,{children:[N,O,_,L,v?null:b.jsx("p",{className:"mt-3",children:b.jsx("button",{onClick:()=>h(),className:"btn btn-success",disabled:!y,children:"Save Publication"})})]})},y6=n=>({publication:RZ(n),publication_types:IZ(n),tag_categories:NZ(n),saving:WR(n),modal:jZ(n),save_enabled:Uk(n),form_valid:zk(n)}),b6=n=>({updateField:r=>n(DZ(r)),changePubType:r=>n(Bw(r)),updatePublication:r=>n($k(r)),savePublication:()=>n(Zk()),setFormValid:r=>n(UZ(r))}),C6=fs(y6,b6)(g6),x6=({errors:n,hideError:r})=>b.jsx(b.Fragment,{children:n.map(i=>b.jsxs("div",{className:"alert alert-danger alert-dismissible sticky-top",children:[i.message,b.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(i.id)})]},`err_${i.id}`))}),S6=n=>({errors:AZ(n)}),E6=n=>({hideError:r=>n(Gk(r))}),w6=fs(S6,E6)(x6),R6=({show_saved:n,updateShowSaved:r})=>{const i=b.jsxs("div",{className:"alert alert-success alert-dismissible sticky-top",children:["Publication Saved Successfully!",b.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(!1)})]});return n?i:b.jsx(b.Fragment,{})},T6=n=>({show_saved:Bk(n)}),I6=n=>({updateShowSaved:r=>n(Wk(r))}),N6=fs(T6,I6)(R6),_6=({getData:n,data_loaded:r})=>(M.useEffect(()=>{n()},[]),b.jsxs(b.Fragment,{children:[b.jsx(N6,{}),b.jsx(w6,{}),r?b.jsx(C6,{}):b.jsx(Mm,{})]})),O6=n=>({data_loaded:Vk(n)}),A6=n=>({getData:()=>n(Yk())}),Jk=fs(O6,A6)(_6),j6=({saving:n,savePublication:r,showSaved:i,updatePublications:u,save_enabled:l})=>{const[d,h]=M.useState(!1);return M.useEffect(()=>{!n&&i&&u()},[n,i]),b.jsxs(b.Fragment,{children:[b.jsxs(Ln,{size:"xl",show:d,onHide:()=>h(!1),scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Add Publication"})}),b.jsx(Ln.Body,{children:b.jsx(Jk,{})}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-danger me-2",onClick:()=>h(!1),children:"Cancel"}),b.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>{r(),h(!1)},children:"Save Publication"})]})})]}),b.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>h(!0),children:"Add a New Publication"})]})},D6=n=>({saving:WR(n),showSaved:Bk(n),save_enabled:Uk(n)}),k6=n=>({savePublication:()=>n(Zk())}),M6=fs(D6,k6)(j6),L6=({usernames:n=[],publication_ids:r=[]})=>{const[i,u]=M.useState(n),[l,d]=M.useState(r),[h,v]=M.useState([]),y=M.useRef(i),C=O=>{y.current=O,u(O)},x=async()=>{const _=await(await fetch(vc.routes.search_publications_path({usernames:i}))).json();v(_)};M.useEffect(()=>{x()},[i]),M.useEffect(()=>{addEventListener("requestAddRole",O=>C([...y.current,O.detail.username])),addEventListener("requestRemoveRole",O=>C(y.current.filter(_=>_!=O.detail.username)))},[]);let R=!1,T=!1;const A=h.map(O=>{const _=l.includes(O.publication_id);R=R||_,T=T||!_;const L=new Date(O.publication_year,O.publication_month-1);return b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx("input",{type:"checkbox",name:"publication_ids[]",value:O.publication_id,checked:_,onChange:()=>d(_?l.filter(V=>V!=O.publication_id):[...l,O.publication_id])})}),b.jsx("td",{children:O.title}),b.jsx("td",{children:O.authors.map(V=>`${V.first_name} ${V.last_name}`).join(", ")}),b.jsx("td",{children:O.publication_type}),b.jsxs("td",{children:[L.toLocaleString("default",{month:"short"})," ",O.publication_year]})]},O.publication_id)}),N=`${T?"Select":"Deselect"} all`;return b.jsxs("div",{className:"publications-select",children:[b.jsxs("table",{className:"table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:b.jsx("input",{type:"checkbox",value:"","aria-label":N,title:N,checked:R&&!T,onChange:()=>d(T?h.map(O=>O.publication_id):[]),ref:O=>{O&&(O.indeterminate=R&&T)}})}),b.jsx("th",{children:"Title"}),b.jsx("th",{children:"Authors"}),b.jsx("th",{children:"Type"}),b.jsx("th",{children:"Date"})]})}),b.jsx("tbody",{children:A})]}),b.jsx(M6,{updatePublications:x})]})},P6=()=>`${Math.random().toString(36).slice(2)}`,zw=document.querySelector("#publications-react"),F6=zw?zw.dataset:{},HO={publication_types:[],tag_categories:[],publication:{},projects:[],errors:[],selected_tags:{},data_loaded:!1,saving:!1,show_saved:!1,redirect:F6.redirect||!1,modal:zw==null,form_valid:!1,grant_number:""},V6=(n=HO,r)=>{const{type:i,payload:u}=r;switch(i){case"UPDATE_FIELD":return So(n,d=>(d.publication.fields[u.index].field_value=u.value,d));case"CHANGE_PUB_TYPE":return So(n,d=>{let h=d.publication_types.find(v=>v.publication_type==u).fields;return h.forEach(v=>{const y=d.publication.fields.find(C=>C.csl_field_name==v.csl_field_name);y&&(v.value=y.value)}),d.publication.publication_type=u,d.publication.fields=h,d});case"UPDATE_PUBLICATION":return{...n,publication:{...n.publication,[u.key]:u.value}};case"SET_PUBLICATION":return So(n,d=>(d.publication.fields.forEach(h=>{h.field_value=u[h.csl_field_name]}),Object.keys(d.publication).forEach(h=>{u[h]&&(d.publication[h]=u[h])}),d.form_valid=u.title.trim()!="",d));case"ADD_AUTHOR":{const l={portal_username:"",first_name:"",middle_name:"",last_name:"",prefix:"",suffix:"",initials:"",affiliation:"",hash:{}};return So(n,h=>{h.publication.authors.push(l)})}case"UPDATE_AUTHOR":return So(n,d=>{d.publication.authors[u.idx][u.key]=u.value});case"TOGGLE_TAG":return So(n,d=>{let h=d.tag_categories.find(v=>v.publication_tags_category_id==u.publication_tags_category_id);h.tags[u.idx].selected=!h.tags[u.idx].selected});case"TOGGLE_REQUEST":return So(n,d=>(d.projects[u].selected=!d.projects[u].selected,d));case"UPDATE_ERRORS":{const l={id:P6(),message:u};return{...n,errors:[...n.errors,l]}}case"HIDE_ERROR":{const l=n.errors.filter(d=>d.id!=u);return{...n,errors:l}}case"UPDATE_SELECTED_TAGS":return So(n,d=>{const h=u.tags.map(v=>v.value);return d.selected_tags[u.category]=h,d});case"DELETE_AUTHOR":return So(n,d=>(d.publication.authors.splice(u,1),d));case"DATA_LOADED":return So(n,d=>(d.publication=u.publication,d.form_valid=u.publication.title.trim()!="",d.publication.authors.forEach(h=>{h.affiliation||(h.affiliation="")}),d.publication_types=u.publication_types,d.tag_categories=u.tag_categories,d.projects=u.publication.projects,u.publication.tags.forEach(h=>d.selected_tags[h.label]=h.options.map(v=>v.value)),d.data_loaded=!0,d));case"UPDATE_SHOW_SAVED":return{...n,show_saved:u};case"UPDATE_SAVING":return{...n,saving:u};case"RESET_STATE":return HO;case"SET_FORM_VALID":return{...n,form_valid:u};case"SET_GRANT_NUMBER":return{...n,grant_number:u};case"ADD_PROJECT":return{...n,projects:[...n.projects,u]};default:return n}},B6={catalogs:{},filteredResources:[],filters:[],hasErrors:!1,onRamps:!1,resources:[],resourcesLoaded:!1},r0=Di("resourceCatalog/getResources",async(n,{dispatch:r})=>{r($O(!1));let i=[];n.catalogSources?i=n.catalogSources:i.push({...n,catalogLabel:"Default"}),n.onRamps&&i.push({apiUrl:"https://allocations.access-ci.org/resources.json",catalogLabel:"ACCESS",allowedCategories:[],allowedFilters:[],allowedResources:[],excludedCategories:["Resource Category"],excludedFilters:[],excludedResources:["ACCESS Credits"]});const u=await Promise.all(i.map(async l=>{const h=await(await fetch(l.apiUrl)).json();return{...l,data:h}}));r($6({data:u,params:n})),r($O(!0))});Di("resourceCatalog/getResources",async(n,{dispatch:r})=>{r(W6(n)),r(Qk())});const z6=n=>{const r=[],i=n.filter(u=>u.features.filter(l=>l.selected).length>0);return n.forEach(u=>{u.features.forEach(l=>{l.selected&&r.push(l.featureId)})}),i.map(u=>({...u,features:u.features.filter(l=>l.selected)}))},U6=n=>{const r={},i={};let u={};return n.forEach(d=>{r[d.catalogLabel]={...d,resourceIds:[],selected:!1,catalogId:d.catalogLabel.replace(/[^(A-z)]/,"")},delete r[d.catalogLabel].data,d.data.forEach(h=>{if(Uw(d.allowedResources,d.excludedResources,h.resourceName)){const{categories:v,formattedResource:y}=H6(d,h,u);i[h.resourceId]=y,r[d.catalogLabel].resourceIds.push(h.resourceId),u=v}})}),{resources:Object.keys(i).map(d=>i[d]),catalogs:r,categories:u}},Uw=(n,r,i)=>!n&&!r||n&&n.length==0&&r&&r.length==0?!0:n&&n.length>0?n.find(u=>u==i):r&&r.length>0?!r.find(u=>u==i):!0,H6=(n,r,i)=>{const u=[];r.featureCategories.filter(h=>h.categoryIsFilter).forEach(h=>{const v=h.categoryId;!i[v]&&Uw(n.allowedCategories,n.excludedCategories,h.categoryName)&&(i[v]={categoryId:v,categoryName:h.categoryName,categoryDescription:h.categoryDescription,features:{}}),h.features.forEach(y=>{const C={featureId:y.featureId,name:y.name,description:y.description,categoryId:v,selected:!1},x=Uw(n.allowedFilters,n.excludedFilters,C.name);x&&u.push(C),i[v]&&x&&!i[v].features[y.featureId]&&(i[v].features[y.featureId]=C)})});const l=u.map(h=>h.name).sort((h,v)=>h>v);return{formattedResource:{...r,resourceName:r.resourceName.trim(),features:l,featureIds:u.map(h=>h.featureId)},categories:i}},qk=D0({name:"resourceCatalog",initialState:B6,reducers:{handleResponse:(n,{payload:r})=>{const i=r.data,{resources:u,catalogs:l,categories:d}=U6(i);n.catalogs=l,n.onRamps=r.params.onRamps;for(const h in d){const v=d[h],y=[];for(const C in v.features)y.push(v.features[C]);n.filters.push({...v,features:y.sort((C,x)=>C.name>x.name)})}n.filters=n.filters.sort((h,v)=>h.categoryName.localeCompare(v.categoryName)),n.resources=u.sort((h,v)=>h.resourceName.localeCompare(v.resourceName)),n.filteredResources=[...n.resources],n.resourcesLoaded=!0},resetFilters:n=>{n.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),n.filteredResources=[...n.resources]},setResourcesLoaded:(n,{payload:r})=>{n.resourcesLoaded=r},toggleCatalog:(n,{payload:r})=>{const{catalog:i,selected:u}=r;n.catalogs[i.catalogLabel].selected=u},toggleFilter:(n,{payload:r})=>{if(r){const h=r,y=n.filters.find(C=>C.categoryId==h.categoryId).features.find(C=>C.featureId==h.featureId);y.selected=!y.selected}const i=z6(n.filters);let u=[];if(i.length>0){const h=i.map(v=>v.features.map(y=>y.featureId));n.resources.forEach(v=>{let y=0;h.forEach(C=>{let x=!1;v.featureIds.forEach(R=>{C.indexOf(R)>=0&&(x=!0)}),x&&(y+=1)}),y>=h.length&&u.push(v)})}else u=n.resources;const l=Object.keys(n.catalogs).map(h=>n.catalogs[h]),d=l.filter(h=>h.selected);if(d.length>0&&d.length<l.length){const h=d.map(v=>v.resourceIds).flat();u=u.filter(v=>h.indexOf(v.resourceId)>=0)}n.filteredResources=u}},extraReducers:n=>{n.addCase(r0.pending,r=>{}).addCase(r0.fulfilled,(r,i)=>{}).addCase(r0.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:$6,processData:$8,resetFilters:G6,setResourcesLoaded:$O,toggleCatalog:W6,toggleFilter:Qk}=qk.actions,Kk=n=>n.resourceCatalog.catalogs,X6=n=>n.resourceCatalog.filters,Y6=n=>n.resourceCatalog.hasErrors,Z6=n=>n.resourceCatalog.resourcesLoaded,J6=n=>n.resourceCatalog.filteredResources,q6=qk.reducer,Q6="_access_1sxq2_2",K6="_resourceName_1sxq2_6",e8="_description_1sxq2_11",t8="_filterBar_1sxq2_15",n8="_cardBg_1sxq2_21",r8="_active_1sxq2_26",a8="_plainButton_1sxq2_31",i8="_btnSecondary_1sxq2_41",Pp={access:Q6,resourceName:K6,description:e8,filterBar:t8,cardBg:n8,active:r8,plainButton:a8,btnSecondary:i8},o8=({resource:n})=>{const[r,i]=M.useState(!0),u=C=>{const x={"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 x[C]?b.jsx("i",{title:C,className:`bi bi-${x[C]} me-2 `},`${n.resourceId}_${x[C]}`):""},l=()=>b.jsxs("span",{className:"float-end",children:[n.features.map(C=>u(C)),n.resourceType]}),d=C=>C.length==0?"":b.jsx(b.Fragment,{children:C.map((x,R)=>b.jsx("span",{className:"badge text-bg-secondary me-2",children:x},`feature_${n.resourceId}_${R}`))}),h=()=>{let C=n.resourceDescription;return C&&C!=""?(Pp.plainButton,b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col fw-bold",children:["About ",n.resourceName]})}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col ",children:[b.jsx("div",{className:Pp.description,dangerouslySetInnerHTML:{__html:C}}),""]})})]})):""},v=()=>n.recommendedUse&&n.recommendedUse!=""?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col fw-bold",children:"Recommended Use"})}),b.jsx("div",{className:"row mb-3",children:b.jsx("div",{className:"col",children:b.jsx("div",{className:Pp.description,dangerouslySetInnerHTML:{__html:n.recommendedUse}})})})]}):"",y=()=>Pp.cardBg;return b.jsx(b.Fragment,{children:b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsxs("div",{className:"card mb-3",children:[b.jsxs("div",{className:`card-header ${y()}`,children:[b.jsx("span",{className:"",children:n.resourceName}),l()]}),b.jsxs("div",{className:"card-body",children:[b.jsx("div",{className:"row mb-3",children:b.jsx("div",{className:"col",children:d(n.features)})}),v(),h()]}),b.jsx("div",{className:"card-footer",children:b.jsxs("a",{target:"_blank",href:n.userGuideUrl,className:"btn btn-info me-2 fw-bold",children:["System Info ",b.jsx("i",{className:"bi bi-box-arrow-up-right"})]})})]})})})})},s8=({filter:n})=>{const r=To(),i=()=>{r(Qk(n))};return b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsxs("div",{className:"form-check",children:[b.jsx("label",{className:"form-check-label",htmlFor:`filter_${n.featureId}`,children:n.name}),b.jsx("input",{className:"form-check-input",type:"checkbox",value:n.featureId,id:`filter_${n.featureId}`,checked:n.selected,onChange:i})]})})})},l8=({category:n})=>b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[b.jsx("div",{className:"fw-bold mb-1 mt-1",children:b.jsx("abbr",{title:n.categoryDescription,children:n.categoryName})}),n.features.map(r=>b.jsx(s8,{filter:r},r.featureId))]})}),u8=()=>{const n=To(),r=dr(Kk),i=dr(X6),u=i.filter(l=>l.features.filter(d=>d.selected).length>0);return Object.keys(r).map(l=>r[l]),b.jsxs("div",{children:[i.map(l=>b.jsx(l8,{category:l},l.categoryId)),b.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>n(G6()),disabled:u.length==0,children:"Reset Filters"})]})},c8=()=>{const[n,r]=M.useState(!1),i=()=>r(!1),u=()=>r(!0);return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:`offcanvas offcanvas-start ${n?"show":""}`,tabIndex:"-1",id:"offcanvas","aria-labelledby":"offcanvasLabel",children:[b.jsxs("div",{className:"offcanvas-header",children:[b.jsx("h5",{className:"offcanvas-title",id:"offcanvasLabel",children:"Filters"}),b.jsx("button",{type:"button",className:"btn-close",onClick:i,"aria-label":"Close"})]}),b.jsx("div",{className:"offcanvas-body",children:b.jsx(u8,{})})]}),b.jsx("div",{className:"row mb-2",children:b.jsx("div",{className:"col pt-2 pb-2",children:b.jsx("div",{className:"p-1 pb-0 border-bottom bg-white shadow",children:b.jsxs("button",{className:"btn btn-outline-primary mb-1 mt-1",type:"button",onClick:u,children:[b.jsx("i",{className:"bi bi-filter"})," Filters"]})})})})]})},f8=()=>{const n=dr(J6);return n.length==0?b.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):b.jsx("div",{className:"card shadow",children:b.jsxs("div",{className:"card-body",children:[b.jsx(c8,{}),n.map(r=>b.jsx(o8,{resource:r},r.resourceId))]})})},d8=({baseUrl:n})=>b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col d-flex",children:b.jsx("img",{alt:"Access Logo",style:{height:"75px"},src:`${n}/access_logo.png`})})}),b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsx("h3",{className:"border-bottom",children:"The ACCESS On-Ramps Program"})})}),b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[b.jsx("p",{children:"Need more advanced computing and storage options for your work? The On-Ramps program offers your institution cost-free entry to the nation's cyberinfrastructure resources. Simply select a resource from the catalog below to get started. On-Ramps expands your cyberinfrastructure with many powerful resource options."}),b.jsx("p",{children:b.jsx("a",{href:"https://allocations.access-ci.org",target:"_blank",children:"Learn more on our About On-Ramps page"})}),b.jsx("h4",{className:"border-bottom",children:"About ACCESS"}),b.jsx("p",{children:"ACCESS is a program established and funded by the National Science Foundation to help researchers and educators, with or without supporting grants, to utilize the nation's advanced computing systems and services — at no cost."}),b.jsxs("p",{children:[b.jsxs("a",{href:"https://access-ci.org",target:"_blank",className:"btn btn-info me-2 fw-bold",children:["Learn more about ACCESS ",b.jsx("i",{className:"bi bi-box-arrow-up-right"})]}),b.jsxs("a",{href:"https://allocations.access-ci.org/get-your-first-project",target:"_blank",className:`btn btn-secondary fw-bold ${Pp.btnSecondary}`,children:["Get Your First Project ",b.jsx("i",{className:"bi bi-box-arrow-up-right"})]})]})]})})]}),p8=({catalogSources:n=[],onRamps:r=!1,baseUrl:i})=>{const u=To(),l=dr(Z6),d=dr(Y6),h=dr(Kk),v=Object.keys(h).map(C=>h[C]);M.useEffect(()=>{u(r0({catalogSources:n,onRamps:r}))},[]);const y=()=>r&&v.length>1?b.jsx(b.Fragment,{children:v.filter(C=>C.catalogLabel!="ACCESS").map((C,x)=>b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsxs("h4",{className:"border-bottom",children:["About ",C.catalogLabel]}),b.jsx("div",{dangerouslySetInnerHTML:{__html:C.description}})]})},`catalog_${x}`))}):"";return d?b.jsx("div",{className:"row",children:b.jsx("div",{className:"col text-center mt-2",children:b.jsx("h4",{children:"Unable to Load Resources"})})}):l?b.jsxs("div",{className:`container mt-3 ${Pp.access}`,children:[r?b.jsx(d8,{baseUrl:i}):"",y(),b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsx(f8,{})})})]}):b.jsx(Mm,{})},v8={filters:[],resources:[],filteredResources:[],resourcesLoaded:!1,hasErrors:!1},a0=Di("resourceCatalog/getResources",async(n,{dispatch:r})=>{const u=await(await fetch(n.apiUrl)).json();r(m8({data:u,params:n}))}),h8=n=>{const r=[],i=n.filter(u=>u.features.filter(l=>l.selected).length>0);return n.forEach(u=>{u.features.forEach(l=>{l.selected&&r.push(l.featureId)})}),i.map(u=>({...u,features:u.features.filter(l=>l.selected)}))},GO=(n,r,i)=>{if(n.length==0&&r.length==0)return!0;if(n.length>0)return n.find(u=>u==i);if(r.length>0)return!r.find(u=>u==i)},eM=D0({name:"resourceCatalog",initialState:v8,reducers:{handleResponse:(n,{payload:r})=>{const i=r.data,u=r.params.excludedCategories,l=r.params.excludedFilters,d=r.params.excludedResources,h=r.params.allowedCategories,v=r.params.allowedFilters,y=[],C={};i.filter(x=>!d.includes(x.resourceName)).forEach(x=>{const R=[];x.featureCategories.filter(A=>A.categoryIsFilter).forEach(A=>{const N=A.categoryId;!C[N]&&GO(h,u,A.categoryName)&&(C[N]={categoryId:N,categoryName:A.categoryName,categoryDescription:A.categoryDescription,features:{}}),A.features.forEach(O=>{const _={featureId:O.featureId,name:O.name,description:O.description,categoryId:N,selected:!1},L=GO(v,l,_.name);L&&R.push(_),C[N]&&L&&!C[N].features[O.featureId]&&(C[N].features[O.featureId]=_)})});const T={resourceName:x.resourceName,resourceId:x.resourceId,resourceType:x.resourceType,organization:x.organization,units:x.units,userGuideUrl:x.userGuideUrl,resourceDescription:x.resourceDescription,description:x.description,recommendedUse:x.recommendedUse,features:R.map(A=>A.name).sort((A,N)=>A>N),featureIds:R.map(A=>A.featureId)};y.push(T)});for(const x in C){const R=C[x],T=[];for(const A in R.features)T.push(R.features[A]);n.filters.push({...R,features:T.sort((A,N)=>A.name>N.name)})}n.filters=n.filters.sort((x,R)=>x.categoryName.localeCompare(R.categoryName)),n.resources=y.sort((x,R)=>x.resourceName.localeCompare(R.resourceName)),n.filteredResources=[...n.resources],n.resourcesLoaded=!0},resetFilters:n=>{n.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),n.filteredResources=[...n.resources]},toggleFilter:(n,{payload:r})=>{const i=r,l=n.filters.find(h=>h.categoryId==i.categoryId).features.find(h=>h.featureId==i.featureId);l.selected=!l.selected;const d=h8(n.filters);if(d.length>0){const h=[],v=d.map(y=>y.features.map(C=>C.featureId));n.resources.forEach(y=>{let C=0;v.forEach(x=>{let R=!1;y.featureIds.forEach(T=>{x.indexOf(T)>=0&&(R=!0)}),R&&(C+=1)}),C>=v.length&&h.push(y)}),n.filteredResources=h}else n.filteredResources=[...n.resources]}},extraReducers:n=>{n.addCase(a0.pending,r=>{}).addCase(a0.fulfilled,(r,i)=>{}).addCase(a0.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:m8,processData:G8,resetFilters:g8,toggleFilter:y8}=eM.actions,b8=n=>n.resourceCatalog.hasErrors,C8=n=>n.resourceCatalog.resourcesLoaded,x8=n=>n.resourceCatalog.filters,S8=n=>n.resourceCatalog.filteredResources,E8=eM.reducer,w8=({resource:n})=>{const r=u=>u.length==0?"":b.jsx("ul",{children:u.map((l,d)=>b.jsx("li",{children:l},`feature_${n.resourceId}_${d}`))}),i=(u,l)=>l&&l!=""?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col fw-bold",children:u})}),b.jsx("div",{className:"row mb-3",children:b.jsx("div",{className:"col",dangerouslySetInnerHTML:{__html:l}})})]}):"";return b.jsxs(os.Item,{eventKey:n.resourceId,children:[b.jsx(os.Header,{children:n.resourceName}),b.jsxs(os.Body,{children:[b.jsx("table",{className:"table",children:b.jsxs("tbody",{children:[b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Resource Type:"}),b.jsx("td",{children:n.resourceType})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Organization:"}),b.jsx("td",{children:n.organization})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Units:"}),b.jsx("td",{children:n.units})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"User Guide:"}),b.jsx("td",{children:n.userGuideUrl==""?"":b.jsx("a",{href:n.userGuideUrl,target:"_blank",rel:"noreferrer",children:"Link to User Guide"})})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Features Available:"}),b.jsx("td",{children:r(n.features)})]})]})}),i("Resource Description",n.resourceDescription),i("Allocations Description",n.description),i("Recommended Use",n.recommendedUse)]})]})},R8=()=>{const n=dr(S8);return n.length==0?b.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):b.jsxs("div",{children:[b.jsx("h4",{className:"mb-0",children:"Resources"}),b.jsx(os,{children:n.map(r=>b.jsx(w8,{resource:r},r.resourceId))})]})},T8=({filter:n})=>{const r=To(),i=()=>{r(y8(n))};return b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsxs("div",{className:"form-check",children:[b.jsx("label",{className:"form-check-label",htmlFor:`filter_${n.featureId}`,children:n.name}),b.jsx("input",{className:"form-check-input",type:"checkbox",value:n.featureId,id:`filter_${n.featureId}`,checked:n.selected,onChange:i})]})})})},I8=({category:n})=>b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[b.jsx("div",{className:"fw-bold mb-1 mt-1",children:b.jsx("abbr",{title:n.categoryDescription,children:n.categoryName})}),n.features.map(r=>b.jsx(T8,{filter:r},r.featureId))]})}),N8=()=>{const n=To(),r=dr(x8),i=r.filter(u=>u.features.filter(l=>l.selected).length>0);return b.jsxs("div",{children:[b.jsx("h4",{className:"mb-0",children:"Filters"}),r.map(u=>b.jsx(I8,{category:u},u.categoryId)),b.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>n(g8()),disabled:i.length==0,children:"Reset Filters"})]})},_8=({apiUrl:n,excludedCategories:r=[],excludedFilters:i=[],excludedResources:u=[],allowedCategories:l=[],allowedFilters:d=[]})=>{const h=To(),v=dr(C8),y=dr(b8);return M.useEffect(()=>{h(a0({apiUrl:n,excludedCategories:r,excludedFilters:i,excludedResources:u,allowedCategories:l,allowedFilters:d}))},[]),y?b.jsx("div",{className:"row",children:b.jsx("div",{className:"col text-center mt-2",children:b.jsx("h4",{children:"Unable to Load Resources"})})}):v?b.jsx(b.Fragment,{children:b.jsxs("div",{className:"row mt-3",children:[b.jsx("div",{className:"col-sm-4",children:b.jsx(N8,{})}),b.jsx("div",{className:"col-sm-8",children:b.jsx(R8,{})})]})}):b.jsx(Mm,{})};function O8(n,{bootstrapFonts:r=!0,bootstrapVariables:i=!0,access:u=!1,baseUrl:l=null}={}){const d=n.attachShadow({mode:"open"}),h=document.createElement("div"),v=document.createElement("div"),y=document.createElement("div"),C=document.createElement("div"),x=document.createElement("link"),R=document.createElement("link"),T=document.createElement("link");return l=l??(typeof document>"u"?require("url").pathToFileURL(__filename).href:IN&&IN.src||new URL("xras-ui.cjs",document.baseURI).href).replace(/\/[^/]+$/,""),x.rel="stylesheet",x.href=`${l}/bootstrap.css`,R.rel="stylesheet",R.href=`${l}/xras-ui.css`,T.rel="stylesheet",T.href=`${l}/access.css`,y.appendChild(C),v.appendChild(y),h.appendChild(v),d.appendChild(x),d.appendChild(R),d.appendChild(T),d.appendChild(h),h.classList.add("bootstrap"),i&&v.classList.add("bootstrap-variables"),r&&(y.classList.add("bootstrap-fonts"),y.setAttribute("data-bs-theme","light")),C}function A8({target:n}){ls.createRoot(n).render(b.jsx(zH,{}))}function j8({target:n,username:r,routes:i}){i&&(Nn.routes=i);const u=Om({reducer:{api:g$}});ls.createRoot(n).render(b.jsx(Qp,{store:u,children:b.jsx(sZ,{username:r})}))}function D8({target:n,apiUrl:r}){const i=Om({reducer:{projectsBrowser:CZ},preloadedState:{projectsBrowser:{...Lk,apiUrl:r}}});ls.createRoot(n).render(b.jsx(Qp,{store:i,children:b.jsx(wZ,{})}))}function tM(){return Om({reducer:{publications_store:V6}})}function k8({target:n,routes:r}){r&&(vc.routes=r),ls.createRoot(n).render(b.jsx(Qp,{store:tM(),children:b.jsx(Jk,{})}))}function M8({target:n,routes:r}){r&&(vc.routes=r),ls.createRoot(n).render(b.jsx(Qp,{store:tM(),children:b.jsx(L6,{...JSON.parse(n.dataset.publicationsSelectProps)})}))}function L8({target:n,catalogSources:r,onRamps:i,baseUrl:u}){const l=Om({reducer:{resourceCatalog:q6}});ls.createRoot(n).render(b.jsx(Qp,{store:l,children:b.jsx(p8,{catalogSources:r,onRamps:i,baseUrl:u})}))}function P8({target:n,apiUrl:r,excludedCategories:i,excludedFilters:u,excludedResources:l,allowedCategories:d,allowedFilters:h}){const v=Om({reducer:{resourceCatalog:E8}});ls.createRoot(n).render(b.jsx(Qp,{store:v,children:b.jsx(_8,{apiUrl:r,excludedCategories:i,excludedFilters:u,excludedResources:l,allowedCategories:d,allowedFilters:h})}))}exports.allocationsMap=A8;exports.onRampsResourceCatalog=L8;exports.projects=j8;exports.projectsBrowser=D8;exports.publications=k8;exports.publicationsSelect=M8;exports.resourceCatalog=P8;exports.shadowTarget=O8;
|