UNPKG

sidebar-ui-react

Version:
43 lines 58.2 kB
function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,n={exports:{}},r={};var o,a,i,u={exports:{}}; /** * @license React * react.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"production"===process.env.NODE_ENV?n.exports=function(){if(t)return r;t=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var C=b.prototype=new g;C.constructor=b,h(C,v.prototype),C.isPureReactComponent=!0;var _=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function S(t,n,r){var o,a={},i=null,u=null;if(null!=n)for(o in void 0!==n.ref&&(u=n.ref),void 0!==n.key&&(i=""+n.key),n)w.call(n,o)&&!x.hasOwnProperty(o)&&(a[o]=n[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];a.children=c}if(t&&t.defaultProps)for(o in s=t.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:e,type:t,key:i,ref:u,props:a,_owner:E.current}}function k(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var O=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(t,r,o,a,i){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var s=!1;if(null===t)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case e:case n:s=!0}}if(s)return i=i(s=t),t=""===a?"."+R(s,0):a,_(i)?(o="",null!=t&&(o=t.replace(O,"$&/")+"/"),N(i,r,o,"",(function(e){return e}))):null!=i&&(k(i)&&(i=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(O,"$&/")+"/")+t)),r.push(i)),1;if(s=0,a=""===a?".":a+":",_(t))for(var c=0;c<t.length;c++){var l=a+R(u=t[c],c);s+=N(u,r,o,l,i)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(t),"function"==typeof l)for(t=l.call(t),c=0;!(u=t.next()).done;)s+=N(u=u.value,r,o,l=a+R(u,c++),i);else if("object"===u)throw r=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function j(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},L={transition:null},T={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:L,ReactCurrentOwner:E};return r.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=v,r.Fragment=o,r.Profiler=i,r.PureComponent=b,r.StrictMode=a,r.Suspense=l,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,r.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=h({},t.props),a=t.key,i=t.ref,u=t._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,u=E.current),void 0!==n.key&&(a=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in n)w.call(n,c)&&!x.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==s?s[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var l=0;l<c;l++)s[l]=arguments[l+2];o.children=s}return{$$typeof:e,type:t.type,key:a,ref:i,props:o,_owner:u}},r.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},r.createElement=S,r.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:c,render:e}},r.isValidElement=k,r.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},r.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},r.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},r.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},r.useCallback=function(e,t){return D.current.useCallback(e,t)},r.useContext=function(e){return D.current.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e){return D.current.useDeferredValue(e)},r.useEffect=function(e,t){return D.current.useEffect(e,t)},r.useId=function(){return D.current.useId()},r.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},r.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},r.useMemo=function(e,t){return D.current.useMemo(e,t)},r.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},r.useRef=function(e){return D.current.useRef(e)},r.useState=function(e){return D.current.useState(e)},r.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},r.useTransition=function(){return D.current.useTransition()},r.version="18.2.0",r}():n.exports=(o||(o=1,a=u,i=u.exports,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h=Symbol.iterator,y="@@iterator";function v(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e[y];return"function"==typeof t?t:null}var g={current:null},b={transition:null},C={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},_={current:null},w={},E=null;function x(e){E=e}w.setExtraStackFrame=function(e){E=e},w.getCurrentStack=null,w.getStackAddendum=function(){var e="";E&&(e+=E);var t=w.getCurrentStack;return t&&(e+=t()||""),e};var S=!1,k=!1,O=!1,R=!1,N=!1,j={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:b,ReactCurrentOwner:_};function P(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];L("warn",e,n)}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];L("error",e,n)}function L(e,t,n){var r=j.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}j.ReactDebugCurrentFrame=w,j.ReactCurrentActQueue=C;var T={};function $(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;T[o]||(D("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.",t,r),T[o]=!0)}var V={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){$(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){$(e,"replaceState")},enqueueSetState:function(e,t,n,r){$(e,"setState")}},A=Object.assign,I={};function U(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||V}Object.freeze(I),U.prototype.isReactComponent={},U.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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,e,t,"setState")},U.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var F={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)."]},M=function(e,t){Object.defineProperty(U.prototype,e,{get:function(){P("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var z in F)F.hasOwnProperty(z)&&M(z,F[z]);function B(){}function W(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||V}B.prototype=U.prototype;var H=W.prototype=new B;H.constructor=W,A(H,U.prototype),H.isPureReactComponent=!0;var q=Array.isArray;function Y(e){return q(e)}function K(e){return""+e}function G(e){if(function(e){try{return K(e),!1}catch(e){return!0}}(e))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),K(e)}function J(e){return e.displayName||"Context"}function X(e){if(null==e)return null;if("number"==typeof e.tag&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case n:return"Fragment";case t:return"Portal";case o:return"Profiler";case r:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return J(e)+".Consumer";case u:return J(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var a=e.displayName||null;return null!==a?a:X(e.type)||"Memo";case d:var i=e,m=i._payload,h=i._init;try{return X(h(m))}catch(e){return null}}return null}var Q,Z,ee,te=Object.prototype.hasOwnProperty,ne={key:!0,ref:!0,__self:!0,__source:!0};function re(e){if(te.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function oe(e){if(te.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}ee={};var ae=function(t,n,r,o,a,i,u){var s={$$typeof:e,type:t,key:n,ref:r,props:u,_owner:i,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ie(e,t,n){var r,o={},a=null,i=null,u=null,s=null;if(null!=t)for(r in re(t)&&(i=t.ref,function(e){if("string"==typeof e.ref&&_.current&&e.__self&&_.current.stateNode!==e.__self){var t=X(_.current.type);ee[t]||(D('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',t,e.ref),ee[t]=!0)}}(t)),oe(t)&&(G(t.key),a=""+t.key),u=void 0===t.__self?null:t.__self,s=void 0===t.__source?null:t.__source,t)te.call(t,r)&&!ne.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(c>1){for(var l=Array(c),f=0;f<c;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(r in p)void 0===o[r]&&(o[r]=p[r])}if(a||i){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&function(e,t){var n=function(){Q||(Q=!0,D("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,d),i&&function(e,t){var n=function(){Z||(Z=!0,D("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(o,d)}return ae(e,a,i,u,s,_.current,o)}function ue(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,a=A({},e.props),i=e.key,u=e.ref,s=e._self,c=e._source,l=e._owner;if(null!=t)for(r in re(t)&&(u=t.ref,l=_.current),oe(t)&&(G(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)te.call(t,r)&&!ne.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==o?a[r]=o[r]:a[r]=t[r]);var f=arguments.length-2;if(1===f)a.children=n;else if(f>1){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];a.children=p}return ae(e.type,i,u,s,c,l,a)}function se(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var ce=".",le=":",fe=!1,pe=/\/+/g;function de(e){return e.replace(pe,"$&/")}function me(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(G(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function he(n,r,o,a,i){var u=typeof n;"undefined"!==u&&"boolean"!==u||(n=null);var s,c,l,f=!1;if(null===n)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(n.$$typeof){case e:case t:f=!0}}if(f){var p=n,d=i(p),m=""===a?ce+me(p,0):a;if(Y(d)){var h="";null!=m&&(h=de(m)+"/"),he(d,r,h,"",(function(e){return e}))}else null!=d&&(se(d)&&(!d.key||p&&p.key===d.key||G(d.key),s=d,c=o+(!d.key||p&&p.key===d.key?"":de(""+d.key)+"/")+m,d=ae(s.type,c,s.ref,s._self,s._source,s._owner,s.props)),r.push(d));return 1}var y=0,g=""===a?ce:a+le;if(Y(n))for(var b=0;b<n.length;b++)y+=he(l=n[b],r,o,g+me(l,b),i);else{var C=v(n);if("function"==typeof C){var _=n;C===_.entries&&(fe||P("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),fe=!0);for(var w,E=C.call(_),x=0;!(w=E.next()).done;)y+=he(l=w.value,r,o,g+me(l,x++),i)}else if("object"===u){var S=String(n);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===S?"object with keys {"+Object.keys(n).join(", ")+"}":S)+"). If you meant to render a collection of children, use an array instead.")}}return y}function ye(e,t,n){if(null==e)return e;var r=[],o=0;return he(e,r,"","",(function(e){return t.call(n,e,o++)})),r}var ve,ge=-1,be=0,Ce=1,_e=2;function we(e){if(e._status===ge){var t=(0,e._result)();if(t.then((function(t){if(e._status===be||e._status===ge){var n=e;n._status=Ce,n._result=t}}),(function(t){if(e._status===be||e._status===ge){var n=e;n._status=_e,n._result=t}})),e._status===ge){var n=e;n._status=be,n._result=t}}if(e._status===Ce){var r=e._result;return void 0===r&&D("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||D("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function Ee(e){return"string"==typeof e||"function"==typeof e||!!(e===n||e===o||N||e===r||e===l||e===f||R||e===m||S||k||O)||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===u||e.$$typeof===s||e.$$typeof===c||e.$$typeof===ve||void 0!==e.getModuleId)}function xe(){var e=g.current;return null===e&&D("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ve=Symbol.for("react.module.reference");var Se,ke,Oe,Re,Ne,je,Pe,De=0;function Le(){}Le.__reactDisabledLog=!0;var Te,$e=j.ReactCurrentDispatcher;function Ve(e,t,n){if(void 0===Te)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Te=r&&r[1]||""}return"\n"+Te+e}var Ae,Ie=!1,Ue="function"==typeof WeakMap?WeakMap:Map;function Fe(e,t){if(!e||Ie)return"";var n,r=Ae.get(e);if(void 0!==r)return r;Ie=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=$e.current,$e.current=null,function(){if(0===De){Se=console.log,ke=console.info,Oe=console.warn,Re=console.error,Ne=console.group,je=console.groupCollapsed,Pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}De++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var u=t.stack.split("\n"),s=n.stack.split("\n"),c=u.length-1,l=s.length-1;c>=1&&l>=0&&u[c]!==s[l];)l--;for(;c>=1&&l>=0;c--,l--)if(u[c]!==s[l]){if(1!==c||1!==l)do{if(c--,--l<0||u[c]!==s[l]){var f="\n"+u[c].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ae.set(e,f),f}}while(c>=1&&l>=0);break}}}finally{Ie=!1,$e.current=o,function(){if(0==--De){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:Se}),info:A({},e,{value:ke}),warn:A({},e,{value:Oe}),error:A({},e,{value:Re}),group:A({},e,{value:Ne}),groupCollapsed:A({},e,{value:je}),groupEnd:A({},e,{value:Pe})})}De<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=e?e.displayName||e.name:"",d=p?Ve(p):"";return"function"==typeof e&&Ae.set(e,d),d}function Me(e,t,n){if(null==e)return"";if("function"==typeof e)return Fe(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Ve(e);switch(e){case l:return Ve("Suspense");case f:return Ve("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Fe(e.render,!1);case p:return Me(e.type,t,n);case d:var r=e,o=r._payload,a=r._init;try{return Me(a(o),t,n)}catch(e){}}return""}Ae=new Ue;var ze,Be={},We=j.ReactDebugCurrentFrame;function He(e){if(e){var t=e._owner,n=Me(e.type,e._source,t?t.type:null);We.setExtraStackFrame(n)}else We.setExtraStackFrame(null)}function qe(e){if(e){var t=e._owner;x(Me(e.type,e._source,t?t.type:null))}else x(null)}function Ye(){if(_.current){var e=X(_.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ze=!1;var Ke={};function Ge(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Ye();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Ke[n]){Ke[n]=!0;var r="";e&&e._owner&&e._owner!==_.current&&(r=" It was passed a child from "+X(e._owner.type)+"."),qe(e),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),qe(null)}}}function Je(e,t){if("object"==typeof e)if(Y(e))for(var n=0;n<e.length;n++){var r=e[n];se(r)&&Ge(r,t)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var o=v(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)se(a.value)&&Ge(a.value,t)}}function Xe(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=X(n);!function(e,t,n,r,o){var a=Function.call.bind(te);for(var i in e)if(a(e,i)){var u=void 0;try{if("function"!=typeof e[i]){var s=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}u=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(He(o),D("%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).",r||"React class",n,i,typeof u),He(null)),u instanceof Error&&!(u.message in Be)&&(Be[u.message]=!0,He(o),D("Failed %s type: %s",n,u.message),He(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ze||(ze=!0,D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(t,r,o){var a,i,u=Ee(t);if(!u){var s,c="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),c+=(null!=(a=r)&&void 0!==(i=a.__source)?"\n\nCheck your code at "+i.fileName.replace(/^.*[\\\/]/,"")+":"+i.lineNumber+".":"")||Ye(),null===t?s="null":Y(t)?s="array":void 0!==t&&t.$$typeof===e?(s="<"+(X(t.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):s=typeof t,D("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,c)}var l=ie.apply(this,arguments);if(null==l)return l;if(u)for(var f=2;f<arguments.length;f++)Je(arguments[f],t);return t===n?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){qe(e),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),qe(null);break}}null!==e.ref&&(qe(e),D("Invalid attribute `ref` supplied to `React.Fragment`."),qe(null))}(l):Xe(l),l}var Ze=!1,et=!1,tt=null,nt=0,rt=!1;function ot(e){e!==nt-1&&D("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),nt=e}function at(e,t,n){var r=C.current;if(null!==r)try{ut(r),function(e){if(null===tt)try{var t=("require"+Math.random()).slice(0,7);tt=(a&&a[t]).call(a,"timers").setImmediate}catch(e){tt=function(e){!1===et&&(et=!0,"undefined"==typeof MessageChannel&&D("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 t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}tt(e)}((function(){0===r.length?(C.current=null,t(e)):at(e,t,n)}))}catch(e){n(e)}else t(e)}var it=!1;function ut(e){if(!it){it=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{it=!1}}}var st=Qe,ct=function(e,t,n){for(var r=ue.apply(this,arguments),o=2;o<arguments.length;o++)Je(arguments[o],r.type);return Xe(r),r},lt=function(e){var t=Qe.bind(null,e);return t.type=e,Ze||(Ze=!0,P("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return P("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},ft={map:ye,forEach:function(e,t,n){ye(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return ye(e,(function(){t++})),t},toArray:function(e){return ye(e,(function(e){return e}))||[]},only:function(e){if(!se(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};i.Children=ft,i.Component=U,i.Fragment=n,i.Profiler=o,i.PureComponent=W,i.StrictMode=r,i.Suspense=l,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,i.cloneElement=ct,i.createContext=function(e){var t={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:u,_context:t};var n=!1,r=!1,o=!1,a={$$typeof:s,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,D("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,D("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(P("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t},i.createElement=st,i.createFactory=lt,i.createRef=function(){var e={current:null};return Object.seal(e),e},i.forwardRef=function(e){null!=e&&e.$$typeof===p?D("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?D("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&D("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||D("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:c,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},i.isValidElement=se,i.lazy=function(e){var t,n,r={$$typeof:d,_payload:{_status:ge,_result:e},_init:we};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){D("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){D("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},i.memo=function(e,t){Ee(e)||D("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:p,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},i.startTransition=function(e,t){var n=b.transition;b.transition={};var r=b.transition;b.transition._updatedFibers=new Set;try{e()}finally{b.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&P("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."),r._updatedFibers.clear())}},i.unstable_act=function(e){var t=nt;nt++,null===C.current&&(C.current=[]);var n,r=C.isBatchingLegacy;try{if(C.isBatchingLegacy=!0,n=e(),!r&&C.didScheduleLegacyUpdate){var o=C.current;null!==o&&(C.didScheduleLegacyUpdate=!1,ut(o))}}catch(e){throw ot(t),e}finally{C.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var a=n,i=!1,u={then:function(e,n){i=!0,a.then((function(r){ot(t),0===nt?at(r,e,n):e(r)}),(function(e){ot(t),n(e)}))}};return rt||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){i||(rt=!0,D("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 () => ...);"))})),u}var s=n;if(ot(t),0===nt){var c=C.current;return null!==c&&(ut(c),C.current=null),{then:function(e,t){null===C.current?(C.current=[],at(s,e,t)):e(s)}}}return{then:function(e,t){e(s)}}},i.useCallback=function(e,t){return xe().useCallback(e,t)},i.useContext=function(e){var t=xe();if(void 0!==e._context){var n=e._context;n.Consumer===e?D("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&D("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},i.useDebugValue=function(e,t){return xe().useDebugValue(e,t)},i.useDeferredValue=function(e){return xe().useDeferredValue(e)},i.useEffect=function(e,t){return xe().useEffect(e,t)},i.useId=function(){return xe().useId()},i.useImperativeHandle=function(e,t,n){return xe().useImperativeHandle(e,t,n)},i.useInsertionEffect=function(e,t){return xe().useInsertionEffect(e,t)},i.useLayoutEffect=function(e,t){return xe().useLayoutEffect(e,t)},i.useMemo=function(e,t){return xe().useMemo(e,t)},i.useReducer=function(e,t,n){return xe().useReducer(e,t,n)},i.useRef=function(e){return xe().useRef(e)},i.useState=function(e){return xe().useState(e)},i.useSyncExternalStore=function(e,t,n){return xe().useSyncExternalStore(e,t,n)},i.useTransition=function(){return xe().useTransition()},i.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),u.exports);var s=n.exports,c=e(s);function l(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}l('.sidebarContainer{height:100%;isolation:isolate;left:0;min-height:100%;position:fixed;top:0;width:fit-content}.sidebarContainer .sidebar{background-color:#fff;background-color:var(--sidebarBackground);box-shadow:0 6px 12px -2px rgba(50,50,93,.25),0 3px 7px -3px rgba(0,0,0,.3);height:100%;min-height:100%;padding:2rem 1.5rem;transition:all .5s;width:100%}.sidebarContainer .sidebar .logoContainer{align-items:center;display:flex;gap:10px;justify-content:flex-start;margin-left:10px}.sidebarContainer .sidebar .logoContainer h2.title{font-size:32.43px;padding:0 0 0 12px}.sidebarContainer .sidebar .burgerContainer{background-color:#235c71;border-radius:2rem;color:#fff;content:"";height:35px;position:absolute;right:-17.5px;top:7.8260869565rem;width:35px;z-index:1}.sidebarContainer .sidebar .burgerContainer:after{background-color:#fff;content:"";height:2px;position:absolute;right:35px;top:17.5px;width:21rem;z-index:0}.sidebarContainer .sidebar .profileContainer{align-items:center;display:flex;justify-content:flex-start;padding:3rem 0 0 .2rem}.sidebarContainer .sidebar .profileContainer img{height:3rem;width:auto}.sidebarContainer .sidebar .profileContainer .profileContents{padding:0 0 0 1rem}.sidebarContainer .sidebar .profileContainer .profileContents p.name{color:var(--fontColor);font-size:16.7px;font-weight:500;margin:0;padding:0;text-transform:capitalize}.sidebarContainer .sidebar .profileContainer .profileContents .email{color:var(--fontColor)}.sidebarContainer .sidebar .profileContainer .profileContents p{font-size:13.9px;margin:0;padding:0;text-transform:lowercase}.sidebarContainer .sidebar .contentsContainer{height:70%;margin:2rem 0 0}.sidebarContainer .sidebar.active{padding:4rem 1rem;transition:all .5s;width:3.5rem}.sidebarContainer .sidebar.active .logoContainer.active{padding-bottom:20px;padding-top:20px}.sidebarContainer .sidebar.active .logoContainer.active h2.title{display:none}.sidebarContainer .sidebar.active .profileContainer{padding-top:20px}.sidebarContainer .sidebar.active .profileContainer .profileContents{opacity:0}.sidebarContainer .sidebar.active .contentsContainer .title{display:none}.sidebarContainer .sidebar.active .contentsContainer .icon{margin-left:-10px;text-align:center}.sidebarContainer .sidebar.active .contentsContainer .icon2{display:none}.sidebarContainer .themeContainer{background-color:#fff}.sidebarContainer .burgerContainer.active{transition:all .5s}.sidebarContainer .burgerContainer.active .burgerMenu{background-color:#fff;transition:all .5s}.sidebarContainer .burgerContainer.active .burgerMenu:after,.sidebarContainer .burgerContainer.active .burgerMenu:before{transform:translateY(0) rotate(0deg);transition:all .5s}.sidebarContainer .hideToggleicon{display:none}.sidebarContainer .showToggleicon{position:absolute}.sidebarContainer .lefthamburger{background-color:#235c71;margin:20px 0 20px 25px;position:absolute}.sidebarContainer .righthamburger{background-color:#235c71;margin-left:290px;position:absolute}@media only screen and (max-width:460px){.sidebarContainer .sidebar.active{display:none}.sidebarContainer .righthamburger{opacity:1}.sidebarContainer .lefthamburger{opacity:0}.sidebarContainer .hideToggleicon{display:none}.sidebarContainer .showToggleicon{box-shadow:0 7px 29px 0 hsla(240,5%,41%,.2);padding:2px 4px;position:absolute}}');var f,p,d=function(e){return c.createElement(c.Fragment,null,c.createElement("img",{src:e.avatar,alt:"avatar"}),c.createElement("div",{className:"profileContents"},c.createElement("p",{className:"name"},e.name),c.createElement("p",{className:"email"},e.email)))},m=function(e){return c.createElement(c.Fragment,null,c.createElement("img",{className:"logo",width:"33px",src:e.headerImage,alt:"logo"}),c.createElement("div",{className:"headerContent"},c.createElement("h2",{className:"title"},e.heading)))};function h(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n} /** * @remix-run/router v1.7.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function v(e,t){if(!1===e||null==e)throw new Error(t)}function g(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function b(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function C(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function w(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function E(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function x(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=C(e):(o=y({},e),v(!o.pathname||!o.pathname.includes("?"),w("?","pathname","search",o)),v(!o.pathname||!o.pathname.includes("#"),w("#","pathname","hash",o)),v(!o.search||!o.search.includes("#"),w("#","search","hash",o)));let a,i=""===e||""===o.pathname,u=i?"/":o.pathname;if(r||null==u)a=n;else{let e=t.length-1;if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?C(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:k(r),hash:O(o)}}(o,a),c=u&&"/"!==u&&u.endsWith("/"),l=(i||"."===u)&&n.endsWith("/");return s.pathname.endsWith("/")||!c&&!l||(s.pathname+="/"),s}"function"==typeof SuppressedError&&SuppressedError,function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(f||(f={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={}));const S=e=>e.join("/").replace(/\/\/+/g,"/"),k=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",O=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",R=["post","put","patch","delete"];new Set(R);const N=["get",...R]; /** * React Router v6.14.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(this,arguments)}new Set(N);const P=s.createContext(null);"production"!==process.env.NODE_ENV&&(P.displayName="DataRouter");const D=s.createContext(null);"production"!==process.env.NODE_ENV&&(D.displayName="DataRouterState");const L=s.createContext(null);"production"!==process.env.NODE_ENV&&(L.displayName="Await");const T=s.createContext(null);"production"!==process.env.NODE_ENV&&(T.displayName="Navigation");const $=s.createContext(null);"production"!==process.env.NODE_ENV&&($.displayName="Location");const V=s.createContext({outlet:null,matches:[],isDataRoute:!1});"production"!==process.env.NODE_ENV&&(V.displayName="Route");const A=s.createContext(null);function I(){return null!=s.useContext($)}function U(){return I()||("production"!==process.env.NODE_ENV?v(!1,"useLocation() may be used only in the context of a <Router> component."):v(!1)),s.useContext($).location}"production"!==process.env.NODE_ENV&&(A.displayName="RouteError");const F="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function M(e){s.useContext(T).static||s.useLayoutEffect(e)}function z(){let{isDataRoute:e}=s.useContext(V);return e?function(){let{router:e}=function(e){let t=s.useContext(P);return t||("production"!==process.env.NODE_ENV?v(!1,Y(e)):v(!1)),t}(W.UseNavigateStable),t=K(H.UseNavigateStable),n=s.useRef(!1);return M((()=>{n.current=!0})),s.useCallback((function(r,o){void 0===o&&(o={}),"production"!==process.env.NODE_ENV&&g(n.current,F),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,j({fromRouteId:t},o)))}),[e,t])}():function(){I()||("production"!==process.env.NODE_ENV?v(!1,"useNavigate() may be used only in the context of a <Router> component."):v(!1));let e=s.useContext(P),{basename:t,navigator:n}=s.useContext(T),{matches:r}=s.useContext(V),{pathname:o}=U(),a=JSON.stringify(E(r).map((e=>e.pathnameBase))),i=s.useRef(!1);return M((()=>{i.current=!0})),s.useCallback((function(r,u){if(void 0===u&&(u={}),"production"!==process.env.NODE_ENV&&g(i.current,F),!i.current)return;if("number"==typeof r)return void n.go(r);let s=x(r,JSON.parse(a),o,"path"===u.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:S([t,s.pathname])),(u.replace?n.replace:n.push)(s,u.state,u)}),[t,n,a,o,e])}()}function B(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=s.useContext(V),{pathname:o}=U(),a=JSON.stringify(E(r).map((e=>e.pathnameBase)));return s.useMemo((()=>x(e,JSON.parse(a),o,"path"===n)),[e,a,o,n])}var W,H,q;function Y(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function K(e){let t=function(e){let t=s.useContext(V);return t||("production"!==process.env.NODE_ENV?v(!1,Y(e)):v(!1)),t}(e),n=t.matches[t.matches.length-1];return n.route.id||("production"!==process.env.NODE_ENV?v(!1,e+' can only be used on routes that contain a unique "id"'):v(!1)),n.route.id} /** * React Router DOM v6.14.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}function J(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(W||(W={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(H||(H={})),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(q||(q={})),new Promise((()=>{}));const X="get",Q="application/x-www-form-urlencoded";function Z(e){return null!=e&&"string"==typeof e.tagName}let ee=null;const te=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ne(e){return null==e||te.has(e)?e:("production"!==process.env.NODE_ENV&&g(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "'+Q+'"'),null)}function re(e,t){let n,r,o,a,i;if(Z(u=e)&&"form"===u.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?_(i,t):null,n=e.getAttribute("method")||X,o=ne(e.getAttribute("enctype"))||Q,a=new FormData(e)}else if(function(e){return Z(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Z(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||i.getAttribute("action");if(r=u?_(u,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||X,o=ne(e.getAttribute("formenctype"))||ne(i.getAttribute("enctype"))||Q,a=new FormData(i,e),!function(){if(null===ee)try{new FormData(document.createElement("form"),0),ee=!1}catch(e){ee=!0}return ee}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?t+".":"";a.append(e+"x","0"),a.append(e+"y","0")}else t&&a.append(t,r)}}else{if(Z(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=X,r=null,o=Q,i=e}var u;return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}const oe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],ae=["aria-current","caseSensitive","className","end","style","to","children"],ie=["reloadDocument","replace","method","action","onSubmit","submit","relative","preventScrollReset"];process.env.NODE_ENV;const ue="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,se=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ce=s.forwardRef((function(e,t){let n,{onClick:r,relative:o,reloadDocument:a,replace:i,state:u,target:c,to:l,preventScrollReset:f}=e,p=J(e,oe),{basename:d}=s.useContext(T),m=!1;if("string"==typeof l&&se.test(l)&&(n=l,ue))try{let e=new URL(window.location.href),t=l.startsWith("//")?new URL(e.protocol+l):new URL(l),n=_(t.pathname,d);t.origin===e.origin&&null!=n?l=n+t.search+t.hash:m=!0}catch(e){"production"!==process.env.NODE_ENV&&g(!1,'<Link to="'+l+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let h=function(e,t){let{relative:n}=void 0===t?{}:t;I()||("production"!==process.env.NODE_ENV?v(!1,"useHref() may be used only in the context of a <Router> component."):v(!1));let{basename:r,navigator:o}=s.useContext(T),{hash:a,pathname:i,search:u}=B(e,{relative:n}),c=i;return"/"!==r&&(c="/"===i?r:S([r,i])),o.createHref({pathname:c,search:u,hash:a})}(l,{relative:o}),y=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i}=void 0===t?{}:t,u=z(),c=U(),l=B(e,{relative:i});return s.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:b(c)===b(l);u(e,{replace:n,state:o,preventScrollReset:a,relative:i})}}),[c,u,l,r,o,n,e,a,i])}(l,{replace:i,state:u,target:c,preventScrollReset:f,relative:o});return s.createElement("a",G({},p,{href:n||h,onClick:m||a?r:function(e){r&&r(e),e.defaultPrevented||y(e)},ref:t,target:c}))}));"production"!==process.env.NODE_ENV&&(ce.displayName="Link");const le=s.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:o="",end:a=!1,style:i,to:u,children:c}=e,l=J(e,ae),f=B(u,{relative:l.relative}),p=U(),d=s.useContext(D),{navigator:m}=s.useContext(T),h=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,y=p.pathname,v=d&&d.navigation&&d.navigation.location?d.navigation.location.pathname:null;r||(y=y.toLowerCase(),v=v?v.toLowerCase():null,h=h.toLowerCase());let g,b=y===h||!a&&y.startsWith(h)&&"/"===y.charAt(h.length),C=null!=v&&(v===h||!a&&v.startsWith(h)&&"/"===v.charAt(h.length)),_=b?n:void 0;g="function"==typeof o?o({isActive:b,isPending:C}):[o,b?"active":null,C?"pending":null].filter(Boolean).join(" ");let w="function"==typeof i?i({isActive:b,isPending:C}):i;return s.createElement(ce,G({},l,{"aria-current":_,className:g,ref:t,style:w,to:u}),"function"==typeof c?c({isActive:b,isPending:C}):c)}));"production"!==process.env.NODE_ENV&&(le.displayName="NavLink");const fe=s.forwardRef(((e,t)=>{let n=function(){let{router:e}=function(e){let t=s.useContext(P);return t||("production"!==process.env.NODE_ENV?v(!1,function(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}(e)):v(!1)),t}(de.UseSubmit),{basename:t}=s.useContext(T),n=K(H.UseRouteId);return s.useCallback((function(r,o){void 0===o&&(o={}),function(){if("undefined"==typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();let{action:a,method:i,encType:u,formData:s,body:c}=re(r,t);e.navigate(o.action||a,{preventScrollReset:o.preven