660 lines
1.4 MiB
660 lines
1.4 MiB
function zX(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var ty=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function It(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var WN={exports:{}},ny={},ZN={exports:{}},up={exports:{}};up.exports;var EI;function UX(){return EI||(EI=1,(function(e,t){/**
|
||
* @license React
|
||
* react.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(){function n($,ue){Object.defineProperty(s.prototype,$,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",ue[0],ue[1])}})}function r($){return $===null||typeof $!="object"?null:($=ie&&$[ie]||$["@@iterator"],typeof $=="function"?$:null)}function o($,ue){$=($=$.constructor)&&($.displayName||$.name)||"ReactClass";var Ee=$+"."+ue;ze[Ee]||(console.error("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.",ue,$),ze[Ee]=!0)}function s($,ue,Ee){this.props=$,this.context=ue,this.refs=$e,this.updater=Ee||we}function u(){}function c($,ue,Ee){this.props=$,this.context=ue,this.refs=$e,this.updater=Ee||we}function f(){}function m($){return""+$}function g($){try{m($);var ue=!1}catch{ue=!0}if(ue){ue=console;var Ee=ue.error,Te=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return Ee.call(ue,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Te),m($)}}function p($){if($==null)return null;if(typeof $=="function")return $.$$typeof===xn?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case k:return"Fragment";case W:return"Profiler";case Q:return"StrictMode";case ce:return"Suspense";case xe:return"SuspenseList";case de:return"Activity"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case ne:return"Portal";case ge:return $.displayName||"Context";case ae:return($._context.displayName||"Context")+".Consumer";case Ne:var ue=$.render;return $=$.displayName,$||($=ue.displayName||ue.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case me:return ue=$.displayName||null,ue!==null?ue:p($.type)||"Memo";case be:ue=$._payload,$=$._init;try{return p($(ue))}catch{}}return null}function y($){if($===k)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===be)return"<...>";try{var ue=p($);return ue?"<"+ue+">":"<...>"}catch{return"<...>"}}function b(){var $=je.A;return $===null?null:$.getOwner()}function S(){return Error("react-stack-top-frame")}function x($){if(ir.call($,"key")){var ue=Object.getOwnPropertyDescriptor($,"key").get;if(ue&&ue.isReactWarning)return!1}return $.key!==void 0}function N($,ue){function Ee(){Un||(Un=!0,console.error("%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://react.dev/link/special-props)",ue))}Ee.isReactWarning=!0,Object.defineProperty($,"key",{get:Ee,configurable:!0})}function T(){var $=p(this.type);return di[$]||(di[$]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),$=this.props.ref,$!==void 0?$:null}function C($,ue,Ee,Te,Me,Ze){var Se=Ee.ref;return $={$$typeof:te,type:$,key:ue,props:Ee,_owner:Te},(Se!==void 0?Se:null)!==null?Object.defineProperty($,"ref",{enumerable:!1,get:T}):Object.defineProperty($,"ref",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty($,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Me}),Object.defineProperty($,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ze}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function D($,ue){return ue=C($.type,ue,$.props,$._owner,$._debugStack,$._debugTask),$._store&&(ue._store.validated=$._store.validated),ue}function P($){A($)?$._store&&($._store.validated=1):typeof $=="object"&&$!==null&&$.$$typeof===be&&($._payload.status==="fulfilled"?A($._payload.value)&&$._payload.value._store&&($._payload.value._store.validated=1):$._store&&($._store.validated=1))}function A($){return typeof $=="object"&&$!==null&&$.$$typeof===te}function _($){var ue={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(Ee){return ue[Ee]})}function j($,ue){return typeof $=="object"&&$!==null&&$.key!=null?(g($.key),_(""+$.key)):ue.toString(36)}function L($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(f,f):($.status="pending",$.then(function(ue){$.status==="pending"&&($.status="fulfilled",$.value=ue)},function(ue){$.status==="pending"&&($.status="rejected",$.reason=ue)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function V($,ue,Ee,Te,Me){var Ze=typeof $;(Ze==="undefined"||Ze==="boolean")&&($=null);var Se=!1;if($===null)Se=!0;else switch(Ze){case"bigint":case"string":case"number":Se=!0;break;case"object":switch($.$$typeof){case te:case ne:Se=!0;break;case be:return Se=$._init,V(Se($._payload),ue,Ee,Te,Me)}}if(Se){Se=$,Me=Me(Se);var He=Te===""?"."+j(Se,0):Te;return zn(Me)?(Ee="",He!=null&&(Ee=He.replace(cs,"$&/")+"/"),V(Me,ue,Ee,"",function($t){return $t})):Me!=null&&(A(Me)&&(Me.key!=null&&(Se&&Se.key===Me.key||g(Me.key)),Ee=D(Me,Ee+(Me.key==null||Se&&Se.key===Me.key?"":(""+Me.key).replace(cs,"$&/")+"/")+He),Te!==""&&Se!=null&&A(Se)&&Se.key==null&&Se._store&&!Se._store.validated&&(Ee._store.validated=2),Me=Ee),ue.push(Me)),1}if(Se=0,He=Te===""?".":Te+":",zn($))for(var Be=0;Be<$.length;Be++)Te=$[Be],Ze=He+j(Te,Be),Se+=V(Te,ue,Ee,Ze,Me);else if(Be=r($),typeof Be=="function")for(Be===$.entries&&(Ba||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ba=!0),$=Be.call($),Be=0;!(Te=$.next()).done;)Te=Te.value,Ze=He+j(Te,Be++),Se+=V(Te,ue,Ee,Ze,Me);else if(Ze==="object"){if(typeof $.then=="function")return V(L($),ue,Ee,Te,Me);throw ue=String($),Error("Objects are not valid as a React child (found: "+(ue==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":ue)+"). If you meant to render a collection of children, use an array instead.")}return Se}function B($,ue,Ee){if($==null)return $;var Te=[],Me=0;return V($,Te,"","",function(Ze){return ue.call(Ee,Ze,Me++)}),Te}function U($){if($._status===-1){var ue=$._ioInfo;ue!=null&&(ue.start=ue.end=performance.now()),ue=$._result;var Ee=ue();if(Ee.then(function(Me){if($._status===0||$._status===-1){$._status=1,$._result=Me;var Ze=$._ioInfo;Ze!=null&&(Ze.end=performance.now()),Ee.status===void 0&&(Ee.status="fulfilled",Ee.value=Me)}},function(Me){if($._status===0||$._status===-1){$._status=2,$._result=Me;var Ze=$._ioInfo;Ze!=null&&(Ze.end=performance.now()),Ee.status===void 0&&(Ee.status="rejected",Ee.reason=Me)}}),ue=$._ioInfo,ue!=null){ue.value=Ee;var Te=Ee.displayName;typeof Te=="string"&&(ue.name=Te)}$._status===-1&&($._status=0,$._result=Ee)}if($._status===1)return ue=$._result,ue===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
||
|
||
Your code should look like:
|
||
const MyComponent = lazy(() => import('./MyComponent'))
|
||
|
||
Did you accidentally put curly braces around the import?`,ue),"default"in ue||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
||
|
||
Your code should look like:
|
||
const MyComponent = lazy(() => import('./MyComponent'))`,ue),ue.default;throw $._result}function H(){var $=je.H;return $===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
||
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
||
2. You might be breaking the Rules of Hooks
|
||
3. You might have more than one copy of React in the same app
|
||
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),$}function G(){je.asyncTransitions--}function Y($){if(Lr===null)try{var ue=("require"+Math.random()).slice(0,7);Lr=(e&&e[ue]).call(e,"timers").setImmediate}catch{Lr=function(Te){ds===!1&&(ds=!0,typeof MessageChannel>"u"&&console.error("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 Me=new MessageChannel;Me.port1.onmessage=Te,Me.port2.postMessage(void 0)}}return Lr($)}function J($){return 1<$.length&&typeof AggregateError=="function"?new AggregateError($):$[0]}function q($,ue){ue!==mi-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),mi=ue}function z($,ue,Ee){var Te=je.actQueue;if(Te!==null)if(Te.length!==0)try{K(Te),Y(function(){return z($,ue,Ee)});return}catch(Me){je.thrownErrors.push(Me)}else je.actQueue=null;0<je.thrownErrors.length?(Te=J(je.thrownErrors),je.thrownErrors.length=0,Ee(Te)):ue($)}function K($){if(!mo){mo=!0;var ue=0;try{for(;ue<$.length;ue++){var Ee=$[ue];do{je.didUsePromise=!1;var Te=Ee(!1);if(Te!==null){if(je.didUsePromise){$[ue]=Ee,$.splice(0,ue);return}Ee=Te}else break}while(!0)}$.length=0}catch(Me){$.splice(0,ue+1),je.thrownErrors.push(Me)}finally{mo=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var te=Symbol.for("react.transitional.element"),ne=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ae=Symbol.for("react.consumer"),ge=Symbol.for("react.context"),Ne=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),xe=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),ie=Symbol.iterator,ze={},we={isMounted:function(){return!1},enqueueForceUpdate:function($){o($,"forceUpdate")},enqueueReplaceState:function($){o($,"replaceState")},enqueueSetState:function($){o($,"setState")}},lt=Object.assign,$e={};Object.freeze($e),s.prototype.isReactComponent={},s.prototype.setState=function($,ue){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,ue,"setState")},s.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};var et={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)."]};for(pi in et)et.hasOwnProperty(pi)&&n(pi,et[pi]);u.prototype=s.prototype,et=c.prototype=new u,et.constructor=c,lt(et,s.prototype),et.isPureReactComponent=!0;var zn=Array.isArray,xn=Symbol.for("react.client.reference"),je={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ir=Object.prototype.hasOwnProperty,wt=console.createTask?console.createTask:function(){return null};et={react_stack_bottom_frame:function($){return $()}};var Un,Mr,di={},Gr=et.react_stack_bottom_frame.bind(et,S)(),fi=wt(y(S)),Ba=!1,cs=/\/+/g,pa=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ue=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(ue))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},ds=!1,Lr=null,mi=0,fo=!1,mo=!1,po=typeof queueMicrotask=="function"?function($){queueMicrotask(function(){return queueMicrotask($)})}:Y;et=Object.freeze({__proto__:null,c:function($){return H().useMemoCache($)}});var pi={map:B,forEach:function($,ue,Ee){B($,function(){ue.apply(this,arguments)},Ee)},count:function($){var ue=0;return B($,function(){ue++}),ue},toArray:function($){return B($,function(ue){return ue})||[]},only:function($){if(!A($))throw Error("React.Children.only expected to receive a single React element child.");return $}};t.Activity=de,t.Children=pi,t.Component=s,t.Fragment=k,t.Profiler=W,t.PureComponent=c,t.StrictMode=Q,t.Suspense=ce,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=je,t.__COMPILER_RUNTIME=et,t.act=function($){var ue=je.actQueue,Ee=mi;mi++;var Te=je.actQueue=ue!==null?ue:[],Me=!1;try{var Ze=$()}catch(Be){je.thrownErrors.push(Be)}if(0<je.thrownErrors.length)throw q(ue,Ee),$=J(je.thrownErrors),je.thrownErrors.length=0,$;if(Ze!==null&&typeof Ze=="object"&&typeof Ze.then=="function"){var Se=Ze;return po(function(){Me||fo||(fo=!0,console.error("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 () => ...);"))}),{then:function(Be,$t){Me=!0,Se.then(function(br){if(q(ue,Ee),Ee===0){try{K(Te),Y(function(){return z(br,Be,$t)})}catch(Rn){je.thrownErrors.push(Rn)}if(0<je.thrownErrors.length){var dn=J(je.thrownErrors);je.thrownErrors.length=0,$t(dn)}}else Be(br)},function(br){q(ue,Ee),0<je.thrownErrors.length&&(br=J(je.thrownErrors),je.thrownErrors.length=0),$t(br)})}}}var He=Ze;if(q(ue,Ee),Ee===0&&(K(Te),Te.length!==0&&po(function(){Me||fo||(fo=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),je.actQueue=null),0<je.thrownErrors.length)throw $=J(je.thrownErrors),je.thrownErrors.length=0,$;return{then:function(Be,$t){Me=!0,Ee===0?(je.actQueue=Te,Y(function(){return z(He,Be,$t)})):Be(He)}}},t.cache=function($){return function(){return $.apply(null,arguments)}},t.cacheSignal=function(){return null},t.captureOwnerStack=function(){var $=je.getCurrentStack;return $===null?null:$()},t.cloneElement=function($,ue,Ee){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var Te=lt({},$.props),Me=$.key,Ze=$._owner;if(ue!=null){var Se;e:{if(ir.call(ue,"ref")&&(Se=Object.getOwnPropertyDescriptor(ue,"ref").get)&&Se.isReactWarning){Se=!1;break e}Se=ue.ref!==void 0}Se&&(Ze=b()),x(ue)&&(g(ue.key),Me=""+ue.key);for(He in ue)!ir.call(ue,He)||He==="key"||He==="__self"||He==="__source"||He==="ref"&&ue.ref===void 0||(Te[He]=ue[He])}var He=arguments.length-2;if(He===1)Te.children=Ee;else if(1<He){Se=Array(He);for(var Be=0;Be<He;Be++)Se[Be]=arguments[Be+2];Te.children=Se}for(Te=C($.type,Me,Te,Ze,$._debugStack,$._debugTask),Me=2;Me<arguments.length;Me++)P(arguments[Me]);return Te},t.createContext=function($){return $={$$typeof:ge,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:ae,_context:$},$._currentRenderer=null,$._currentRenderer2=null,$},t.createElement=function($,ue,Ee){for(var Te=2;Te<arguments.length;Te++)P(arguments[Te]);Te={};var Me=null;if(ue!=null)for(Be in Mr||!("__self"in ue)||"key"in ue||(Mr=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),x(ue)&&(g(ue.key),Me=""+ue.key),ue)ir.call(ue,Be)&&Be!=="key"&&Be!=="__self"&&Be!=="__source"&&(Te[Be]=ue[Be]);var Ze=arguments.length-2;if(Ze===1)Te.children=Ee;else if(1<Ze){for(var Se=Array(Ze),He=0;He<Ze;He++)Se[He]=arguments[He+2];Object.freeze&&Object.freeze(Se),Te.children=Se}if($&&$.defaultProps)for(Be in Ze=$.defaultProps,Ze)Te[Be]===void 0&&(Te[Be]=Ze[Be]);Me&&N(Te,typeof $=="function"?$.displayName||$.name||"Unknown":$);var Be=1e4>je.recentlyCreatedOwnerStacks++;return C($,Me,Te,b(),Be?Error("react-stack-top-frame"):Gr,Be?wt(y($)):fi)},t.createRef=function(){var $={current:null};return Object.seal($),$},t.forwardRef=function($){$!=null&&$.$$typeof===me?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof $!="function"?console.error("forwardRef requires a render function but was given %s.",$===null?"null":typeof $):$.length!==0&&$.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",$.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),$!=null&&$.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var ue={$$typeof:Ne,render:$},Ee;return Object.defineProperty(ue,"displayName",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(Te){Ee=Te,$.name||$.displayName||(Object.defineProperty($,"name",{value:Te}),$.displayName=Te)}}),ue},t.isValidElement=A,t.lazy=function($){$={_status:-1,_result:$};var ue={$$typeof:be,_payload:$,_init:U},Ee={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return $._ioInfo=Ee,ue._debugInfo=[{awaited:Ee}],ue},t.memo=function($,ue){$==null&&console.error("memo: The first argument must be a component. Instead received: %s",$===null?"null":typeof $),ue={$$typeof:me,type:$,compare:ue===void 0?null:ue};var Ee;return Object.defineProperty(ue,"displayName",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(Te){Ee=Te,$.name||$.displayName||(Object.defineProperty($,"name",{value:Te}),$.displayName=Te)}}),ue},t.startTransition=function($){var ue=je.T,Ee={};Ee._updatedFibers=new Set,je.T=Ee;try{var Te=$(),Me=je.S;Me!==null&&Me(Ee,Te),typeof Te=="object"&&Te!==null&&typeof Te.then=="function"&&(je.asyncTransitions++,Te.then(G,G),Te.then(f,pa))}catch(Ze){pa(Ze)}finally{ue===null&&Ee._updatedFibers&&($=Ee._updatedFibers.size,Ee._updatedFibers.clear(),10<$&&console.warn("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.")),ue!==null&&Ee.types!==null&&(ue.types!==null&&ue.types!==Ee.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),ue.types=Ee.types),je.T=ue}},t.unstable_useCacheRefresh=function(){return H().useCacheRefresh()},t.use=function($){return H().use($)},t.useActionState=function($,ue,Ee){return H().useActionState($,ue,Ee)},t.useCallback=function($,ue){return H().useCallback($,ue)},t.useContext=function($){var ue=H();return $.$$typeof===ae&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),ue.useContext($)},t.useDebugValue=function($,ue){return H().useDebugValue($,ue)},t.useDeferredValue=function($,ue){return H().useDeferredValue($,ue)},t.useEffect=function($,ue){return $==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useEffect($,ue)},t.useEffectEvent=function($){return H().useEffectEvent($)},t.useId=function(){return H().useId()},t.useImperativeHandle=function($,ue,Ee){return H().useImperativeHandle($,ue,Ee)},t.useInsertionEffect=function($,ue){return $==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useInsertionEffect($,ue)},t.useLayoutEffect=function($,ue){return $==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useLayoutEffect($,ue)},t.useMemo=function($,ue){return H().useMemo($,ue)},t.useOptimistic=function($,ue){return H().useOptimistic($,ue)},t.useReducer=function($,ue,Ee){return H().useReducer($,ue,Ee)},t.useRef=function($){return H().useRef($)},t.useState=function($){return H().useState($)},t.useSyncExternalStore=function($,ue,Ee){return H().useSyncExternalStore($,ue,Ee)},t.useTransition=function(){return H().useTransition()},t.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(up,up.exports)),up.exports}var SI;function ef(){return SI||(SI=1,ZN.exports=UX()),ZN.exports}var AI;function qX(){if(AI)return ny;AI=1;/**
|
||
* @license React
|
||
* react-jsx-dev-runtime.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/return(function(){function e(k){if(k==null)return null;if(typeof k=="function")return k.$$typeof===U?null:k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case N:return"Fragment";case C:return"Profiler";case T:return"StrictMode";case _:return"Suspense";case j:return"SuspenseList";case B:return"Activity"}if(typeof k=="object")switch(typeof k.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case x:return"Portal";case P:return k.displayName||"Context";case D:return(k._context.displayName||"Context")+".Consumer";case A:var Q=k.render;return k=k.displayName,k||(k=Q.displayName||Q.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case L:return Q=k.displayName||null,Q!==null?Q:e(k.type)||"Memo";case V:Q=k._payload,k=k._init;try{return e(k(Q))}catch{}}return null}function t(k){return""+k}function n(k){try{t(k);var Q=!1}catch{Q=!0}if(Q){Q=console;var W=Q.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return W.call(Q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(k)}}function r(k){if(k===N)return"<>";if(typeof k=="object"&&k!==null&&k.$$typeof===V)return"<...>";try{var Q=e(k);return Q?"<"+Q+">":"<...>"}catch{return"<...>"}}function o(){var k=H.A;return k===null?null:k.getOwner()}function s(){return Error("react-stack-top-frame")}function u(k){if(G.call(k,"key")){var Q=Object.getOwnPropertyDescriptor(k,"key").get;if(Q&&Q.isReactWarning)return!1}return k.key!==void 0}function c(k,Q){function W(){q||(q=!0,console.error("%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://react.dev/link/special-props)",Q))}W.isReactWarning=!0,Object.defineProperty(k,"key",{get:W,configurable:!0})}function f(){var k=e(this.type);return z[k]||(z[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function m(k,Q,W,ae,ge,Ne){var ce=W.ref;return k={$$typeof:S,type:k,key:Q,props:W,_owner:ae},(ce!==void 0?ce:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:f}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function g(k,Q,W,ae,ge,Ne){var ce=Q.children;if(ce!==void 0)if(ae)if(Y(ce)){for(ae=0;ae<ce.length;ae++)p(ce[ae]);Object.freeze&&Object.freeze(ce)}else console.error("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 p(ce);if(G.call(Q,"key")){ce=e(k);var xe=Object.keys(Q).filter(function(be){return be!=="key"});ae=0<xe.length?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}",ne[ce+ae]||(xe=0<xe.length?"{"+xe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
||
let props = %s;
|
||
<%s {...props} />
|
||
React keys must be passed directly to JSX without using spread:
|
||
let props = %s;
|
||
<%s key={someKey} {...props} />`,ae,ce,xe,ce),ne[ce+ae]=!0)}if(ce=null,W!==void 0&&(n(W),ce=""+W),u(Q)&&(n(Q.key),ce=""+Q.key),"key"in Q){W={};for(var me in Q)me!=="key"&&(W[me]=Q[me])}else W=Q;return ce&&c(W,typeof k=="function"?k.displayName||k.name||"Unknown":k),m(k,ce,W,o(),ge,Ne)}function p(k){y(k)?k._store&&(k._store.validated=1):typeof k=="object"&&k!==null&&k.$$typeof===V&&(k._payload.status==="fulfilled"?y(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function y(k){return typeof k=="object"&&k!==null&&k.$$typeof===S}var b=ef(),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),H=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,Y=Array.isArray,J=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(k){return k()}};var q,z={},K=b.react_stack_bottom_frame.bind(b,s)(),te=J(r(s)),ne={};ny.Fragment=N,ny.jsxDEV=function(k,Q,W,ae){var ge=1e4>H.recentlyCreatedOwnerStacks++;return g(k,Q,W,ae,ge?Error("react-stack-top-frame"):K,ge?J(r(k)):te)}})(),ny}var OI;function HX(){return OI||(OI=1,WN.exports=qX()),WN.exports}var w=HX(),Fu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},FX={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},KX=class{#t=FX;#e=!1;setTimeoutProvider(e){this.#e&&e!==this.#t&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#t,provider:e}),this.#t=e,this.#e=!1}setTimeout(e,t){return this.#e=!0,this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#e=!0,this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},hu=new KX;function GX(e){setTimeout(e,0)}var Su=typeof window>"u"||"Deno"in globalThis;function dr(){}function YX(e,t){return typeof e=="function"?e(t):e}function BT(e){return typeof e=="number"&&e>=0&&e!==1/0}function vz(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ol(e,t){return typeof e=="function"?e(t):e}function Pa(e,t){return typeof e=="function"?e(t):e}function TI(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:u,stale:c}=e;if(u){if(r){if(t.queryHash!==G_(u,t.options))return!1}else if(!Tp(t.queryKey,u))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||s&&!s(t))}function CI(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ll(t.options.mutationKey)!==ll(s))return!1}else if(!Tp(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function G_(e,t){return(t?.queryKeyHashFn||ll)(e)}function ll(e){return JSON.stringify(e,(t,n)=>zT(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Tp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Tp(e[n],t[n])):!1}var QX=Object.prototype.hasOwnProperty;function Vy(e,t){if(e===t)return e;const n=_I(e)&&_I(t);if(!n&&!(zT(e)&&zT(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),u=s.length,c=n?new Array(u):{};let f=0;for(let m=0;m<u;m++){const g=n?m:s[m],p=e[g],y=t[g];if(p===y){c[g]=p,(n?m<o:QX.call(e,g))&&f++;continue}if(p===null||y===null||typeof p!="object"||typeof y!="object"){c[g]=y;continue}const b=Vy(p,y);c[g]=b,b===p&&f++}return o===u&&f===o?e:c}function Cp(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function _I(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zT(e){if(!DI(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!DI(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function DI(e){return Object.prototype.toString.call(e)==="[object Object]"}function XX(e){return new Promise(t=>{hu.setTimeout(t,e)})}function UT(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Vy(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Vy(e,t)}return t}function WX(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ZX(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ar=Symbol();function yz(e,t){return e.queryFn===ar&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ar?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bz(e,t){return typeof e=="function"?e(...t):!!e}var JX=class extends Fu{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Su&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Y_=new JX;function qT(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var eW=GX;function tW(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=eW;const s=c=>{t?e.push(c):o(()=>{n(c)})},u=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||u()}return f},batchCalls:c=>(...f)=>{s(()=>{c(...f)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var hn=tW(),nW=class extends Fu{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Su&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},By=new nW;function rW(e){return Math.min(1e3*2**e,3e4)}function xz(e){return(e??"online")==="online"?By.isOnline():!0}var HT=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function wz(e){let t=!1,n=0,r;const o=qT(),s=()=>o.status!=="pending",u=x=>{if(!s()){const N=new HT(x);y(N),e.onCancel?.(N)}},c=()=>{t=!0},f=()=>{t=!1},m=()=>Y_.isFocused()&&(e.networkMode==="always"||By.isOnline())&&e.canRun(),g=()=>xz(e.networkMode)&&e.canRun(),p=x=>{s()||(r?.(),o.resolve(x))},y=x=>{s()||(r?.(),o.reject(x))},b=()=>new Promise(x=>{r=N=>{(s()||m())&&x(N)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),S=()=>{if(s())return;let x;const N=n===0?e.initialPromise:void 0;try{x=N??e.fn()}catch(T){x=Promise.reject(T)}Promise.resolve(x).then(p).catch(T=>{if(s())return;const C=e.retry??(Su?0:3),D=e.retryDelay??rW,P=typeof D=="function"?D(n,T):D,A=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,T);if(t||!A){y(T);return}n++,e.onFail?.(n,T),XX(P).then(()=>m()?void 0:b()).then(()=>{t?y(T):S()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(r?.(),o),cancelRetry:c,continueRetry:f,canStart:g,start:()=>(g()?S():b().then(S),o)}}var Nz=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),BT(this.gcTime)&&(this.#t=hu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Su?1/0:300*1e3))}clearGcTimeout(){this.#t&&(hu.clearTimeout(this.#t),this.#t=void 0)}},aW=class extends Nz{#t;#e;#n;#a;#r;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=RI(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=RI(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=UT(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(dr).catch(dr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Pa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ar||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ol(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!vz(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const c=yz(this.options,t),m=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(g),g})();return this.#s=!1,this.options.persister?this.options.persister(c,m,this):c(m)},u=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return r(c),c})();this.options.behavior?.onFetch(u,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#o({type:"fetch",meta:u.fetchOptions?.meta}),this.#r=wz({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:c=>{c instanceof HT&&c.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(c,f)=>{this.#o({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const c=await this.#r.start();if(c===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof HT){if(c.silent)return this.#r.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#o({type:"error",error:c}),this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Ez(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),hn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Ez(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xz(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RI(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Nh=class extends Fu{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=qT(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#i;#s;#o;#m;#d;#f;#u;#c;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),jI(this.#e,this.options)?this.#p():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return FT(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return FT(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pa(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#N(),this.#e.setOptions(this.options),t._defaulted&&!Cp(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&PI(this.#e,n,this.options,t)&&this.#p(),this.updateResult(),r&&(this.#e!==n||Pa(this.options.enabled,this.#e)!==Pa(t.enabled,this.#e)||ol(this.options.staleTime,this.#e)!==ol(t.staleTime,this.#e))&&this.#g();const o=this.#v();r&&(this.#e!==n||Pa(this.options.enabled,this.#e)!==Pa(t.enabled,this.#e)||o!==this.#l)&&this.#y(o)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return oW(this,n)&&(this.#a=n,this.#i=this.options,this.#r=this.#e.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#p(e){this.#N();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(dr)),t}#g(){this.#x();const e=ol(this.options.staleTime,this.#e);if(Su||this.#a.isStale||!BT(e))return;const n=vz(this.#a.dataUpdatedAt,e)+1;this.#u=hu.setTimeout(()=>{this.#a.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(Su||Pa(this.options.enabled,this.#e)===!1||!BT(this.#l)||this.#l===0)&&(this.#c=hu.setInterval(()=>{(this.options.refetchIntervalInBackground||Y_.isFocused())&&this.#p()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#x(){this.#u&&(hu.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#c&&(hu.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#e,r=this.options,o=this.#a,s=this.#r,u=this.#i,f=e!==n?e.state:this.#n,{state:m}=e;let g={...m},p=!1,y;if(t._optimisticResults){const L=this.hasListeners(),V=!L&&jI(e,t),B=L&&PI(e,n,t,r);(V||B)&&(g={...g,...Ez(m.data,e.options)}),t._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:S,status:x}=g;y=g.data;let N=!1;if(t.placeholderData!==void 0&&y===void 0&&x==="pending"){let L;o?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(L=o.data,N=!0):L=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,L!==void 0&&(x="success",y=UT(o?.data,L,t),p=!0)}if(t.select&&y!==void 0&&!N)if(o&&y===s?.data&&t.select===this.#m)y=this.#d;else try{this.#m=t.select,y=t.select(y),y=UT(o?.data,y,t),this.#d=y,this.#o=null}catch(L){this.#o=L}this.#o&&(b=this.#o,y=this.#d,S=Date.now(),x="error");const T=g.fetchStatus==="fetching",C=x==="pending",D=x==="error",P=C&&T,A=y!==void 0,j={status:x,fetchStatus:g.fetchStatus,isPending:C,isSuccess:x==="success",isError:D,isInitialLoading:P,isLoading:P,data:y,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:S,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:T,isRefetching:T&&!C,isLoadingError:D&&!A,isPaused:g.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:D&&A,isStale:Q_(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Pa(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=U=>{j.status==="error"?U.reject(j.error):j.data!==void 0&&U.resolve(j.data)},V=()=>{const U=this.#s=j.promise=qT();L(U)},B=this.#s;switch(B.status){case"pending":e.queryHash===n.queryHash&&L(B);break;case"fulfilled":(j.status==="error"||j.data!==B.value)&&V();break;case"rejected":(j.status!=="error"||j.error!==B.reason)&&V();break}}return j}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#i=this.options,this.#r.data!==void 0&&(this.#f=this.#e),Cp(t,e))return;this.#a=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#h.size)return!0;const s=new Set(o??this.#h);return this.options.throwOnError&&s.add("error"),Object.keys(this.#a).some(u=>{const c=u;return this.#a[c]!==e[c]&&s.has(c)})};this.#E({listeners:n()})}#N(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(e){hn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function iW(e,t){return Pa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function jI(e,t){return iW(e,t)||e.state.data!==void 0&&FT(e,t,t.refetchOnMount)}function FT(e,t,n){if(Pa(t.enabled,e)!==!1&&ol(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Q_(e,t)}return!1}function PI(e,t,n,r){return(e!==t||Pa(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Q_(e,n)}function Q_(e,t){return Pa(t.enabled,e)!==!1&&e.isStaleByTime(ol(t.staleTime,e))}function oW(e,t){return!Cp(e.getCurrentResult(),t)}function zy(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},f=0;const m=async()=>{let g=!1;const p=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=yz(t.options,t.fetchOptions),b=async(S,x,N)=>{if(g)return Promise.reject();if(x==null&&S.pages.length)return Promise.resolve(S);const C=(()=>{const _={client:t.client,queryKey:t.queryKey,pageParam:x,direction:N?"backward":"forward",meta:t.options.meta};return p(_),_})(),D=await y(C),{maxPages:P}=t.options,A=N?ZX:WX;return{pages:A(S.pages,D,P),pageParams:A(S.pageParams,x,P)}};if(o&&s.length){const S=o==="backward",x=S?Sz:KT,N={pages:s,pageParams:u},T=x(r,N);c=await b(N,T,S)}else{const S=e??s.length;do{const x=f===0?u[0]??r.initialPageParam:KT(r,c);if(f>0&&x==null)break;c=await b(c,x),f++}while(f<S)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=m}}}function KT(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Sz(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function sW(e,t){return t?KT(e,t)!=null:!1}function lW(e,t){return!t||!e.getPreviousPageParam?!1:Sz(e,t)!=null}var Az=class extends Nh{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:zy()})}getOptimisticResult(e){return e.behavior=zy(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:s,isError:u,isRefetchError:c}=r,f=n.fetchMeta?.fetchMore?.direction,m=u&&f==="forward",g=o&&f==="forward",p=u&&f==="backward",y=o&&f==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:sW(t,n.data),hasPreviousPage:lW(t,n.data),isFetchNextPageError:m,isFetchingNextPage:g,isFetchPreviousPageError:p,isFetchingPreviousPage:y,isRefetchError:c&&!m&&!p,isRefetching:s&&!g&&!y}}},uW=class extends Nz{#t;#e;#n;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||Oz(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=wz({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,u)=>{this.#r({type:"failed",failureCount:s,error:u})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#a.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const u=await this.options.onMutate?.(e,n);u!==this.state.context&&this.#r({type:"pending",context:u,variables:e,isPaused:o})}const s=await this.#a.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,e,this.state.context,this,n),await this.options.onError?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,e,this.state.context,n),s}finally{this.#r({type:"error",error:s})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),hn.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Oz(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var cW=class extends Fu{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new uW({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=ry(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=ry(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ry(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=ry(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){hn.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>CI(t,n))}findAll(e={}){return this.getAll().filter(t=>CI(e,t))}notify(e){hn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return hn.batch(()=>Promise.all(e.map(t=>t.continue().catch(dr))))}};function ry(e){return e.options.scope?.id}var dW=class extends Fu{#t;#e=void 0;#n;#a;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),Cp(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ll(n.mutationKey)!==ll(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(t,n){return this.#a=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??Oz();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){hn.batch(()=>{if(this.#a&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#a.onSuccess?.(t.data,n,r,o),this.#a.onSettled?.(t.data,null,n,r,o)):t?.type==="error"&&(this.#a.onError?.(t.error,n,r,o),this.#a.onSettled?.(void 0,t.error,n,r,o))}this.listeners.forEach(n=>{n(this.#e)})})}};function MI(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function fW(e,t,n){const r=e.slice(0);return r[t]=n,r}var mW=class extends Fu{#t;#e;#n;#a;#r;#i;#s;#o;#m=[];constructor(e,t,n){super(),this.#t=e,this.#a=n,this.#n=[],this.#r=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#a=t;{const n=e.map(r=>this.#t.defaultQueryOptions(r).queryHash);new Set(n).size!==n.length&&console.warn("[QueriesObserver]: Duplicate Queries found. This might result in unexpected behavior.")}hn.batch(()=>{const n=this.#r,r=this.#u(this.#n);this.#m=r,r.forEach(g=>g.observer.setOptions(g.defaultedQueryOptions));const o=r.map(g=>g.observer),s=o.map(g=>g.getCurrentResult()),u=n.length!==o.length,c=o.some((g,p)=>g!==n[p]),f=u||c,m=f?!0:s.some((g,p)=>{const y=this.#e[p];return!y||!Cp(g,y)});!f&&!m||(f&&(this.#r=o),this.#e=s,this.hasListeners()&&(f&&(MI(n,o).forEach(g=>{g.destroy()}),MI(o,n).forEach(g=>{g.subscribe(p=>{this.#c(g,p)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const n=this.#u(e),r=n.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[r,o=>this.#f(o??r,t),()=>this.#d(r,n)]}#d(e,t){return t.map((n,r)=>{const o=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?o:n.observer.trackResult(o,s=>{t.forEach(u=>{u.observer.trackProp(s)})})})}#f(e,t){return t?((!this.#i||this.#e!==this.#o||t!==this.#s)&&(this.#s=t,this.#o=this.#e,this.#i=Vy(this.#i,t(e))),this.#i):e}#u(e){const t=new Map(this.#r.map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const o=this.#t.defaultQueryOptions(r),s=t.get(o.queryHash);s?n.push({defaultedQueryOptions:o,observer:s}):n.push({defaultedQueryOptions:o,observer:new Nh(this.#t,o)})}),n}#c(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#e=fW(this.#e,n,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#i,t=this.#d(this.#e,this.#m),n=this.#f(t,this.#a?.combine);e!==n&&hn.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},pW=class extends Fu{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,o=t.queryHash??G_(r,t);let s=this.get(o);return s||(s=new aW({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){hn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>TI(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>TI(e,n)):t}notify(e){hn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){hn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){hn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},hW=class{#t;#e;#n;#a;#r;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new pW,this.#e=e.mutationCache||new cW,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=Y_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=By.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ol(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#t.get(r.queryHash)?.state.data,u=YX(t,s);if(u!==void 0)return this.#t.build(this,r).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return hn.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;hn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return hn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=hn.batch(()=>this.#t.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(dr).catch(dr)}invalidateQueries(e,t={}){return hn.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=hn.batch(()=>this.#t.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(dr)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(dr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(ol(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(dr).catch(dr)}fetchInfiniteQuery(e){return e.behavior=zy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dr).catch(dr)}ensureInfiniteQueryData(e){return e.behavior=zy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return By.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#a.set(ll(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{Tp(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(ll(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Tp(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=G_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ar&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},R=ef();const F=It(R),t0=zX({__proto__:null,default:F},[R]);var JN={exports:{}},Qm={},LI;function gW(){if(LI)return Qm;LI=1;/**
|
||
* @license React
|
||
* react-jsx-runtime.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/return(function(){function e(k){if(k==null)return null;if(typeof k=="function")return k.$$typeof===U?null:k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case N:return"Fragment";case C:return"Profiler";case T:return"StrictMode";case _:return"Suspense";case j:return"SuspenseList";case B:return"Activity"}if(typeof k=="object")switch(typeof k.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case x:return"Portal";case P:return k.displayName||"Context";case D:return(k._context.displayName||"Context")+".Consumer";case A:var Q=k.render;return k=k.displayName,k||(k=Q.displayName||Q.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case L:return Q=k.displayName||null,Q!==null?Q:e(k.type)||"Memo";case V:Q=k._payload,k=k._init;try{return e(k(Q))}catch{}}return null}function t(k){return""+k}function n(k){try{t(k);var Q=!1}catch{Q=!0}if(Q){Q=console;var W=Q.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return W.call(Q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(k)}}function r(k){if(k===N)return"<>";if(typeof k=="object"&&k!==null&&k.$$typeof===V)return"<...>";try{var Q=e(k);return Q?"<"+Q+">":"<...>"}catch{return"<...>"}}function o(){var k=H.A;return k===null?null:k.getOwner()}function s(){return Error("react-stack-top-frame")}function u(k){if(G.call(k,"key")){var Q=Object.getOwnPropertyDescriptor(k,"key").get;if(Q&&Q.isReactWarning)return!1}return k.key!==void 0}function c(k,Q){function W(){q||(q=!0,console.error("%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://react.dev/link/special-props)",Q))}W.isReactWarning=!0,Object.defineProperty(k,"key",{get:W,configurable:!0})}function f(){var k=e(this.type);return z[k]||(z[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function m(k,Q,W,ae,ge,Ne){var ce=W.ref;return k={$$typeof:S,type:k,key:Q,props:W,_owner:ae},(ce!==void 0?ce:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:f}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function g(k,Q,W,ae,ge,Ne){var ce=Q.children;if(ce!==void 0)if(ae)if(Y(ce)){for(ae=0;ae<ce.length;ae++)p(ce[ae]);Object.freeze&&Object.freeze(ce)}else console.error("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 p(ce);if(G.call(Q,"key")){ce=e(k);var xe=Object.keys(Q).filter(function(be){return be!=="key"});ae=0<xe.length?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}",ne[ce+ae]||(xe=0<xe.length?"{"+xe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
||
let props = %s;
|
||
<%s {...props} />
|
||
React keys must be passed directly to JSX without using spread:
|
||
let props = %s;
|
||
<%s key={someKey} {...props} />`,ae,ce,xe,ce),ne[ce+ae]=!0)}if(ce=null,W!==void 0&&(n(W),ce=""+W),u(Q)&&(n(Q.key),ce=""+Q.key),"key"in Q){W={};for(var me in Q)me!=="key"&&(W[me]=Q[me])}else W=Q;return ce&&c(W,typeof k=="function"?k.displayName||k.name||"Unknown":k),m(k,ce,W,o(),ge,Ne)}function p(k){y(k)?k._store&&(k._store.validated=1):typeof k=="object"&&k!==null&&k.$$typeof===V&&(k._payload.status==="fulfilled"?y(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function y(k){return typeof k=="object"&&k!==null&&k.$$typeof===S}var b=ef(),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),H=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,Y=Array.isArray,J=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(k){return k()}};var q,z={},K=b.react_stack_bottom_frame.bind(b,s)(),te=J(r(s)),ne={};Qm.Fragment=N,Qm.jsx=function(k,Q,W){var ae=1e4>H.recentlyCreatedOwnerStacks++;return g(k,Q,W,!1,ae?Error("react-stack-top-frame"):K,ae?J(r(k)):te)},Qm.jsxs=function(k,Q,W){var ae=1e4>H.recentlyCreatedOwnerStacks++;return g(k,Q,W,!0,ae?Error("react-stack-top-frame"):K,ae?J(r(k)):te)}})(),Qm}var kI;function vW(){return kI||(kI=1,JN.exports=gW()),JN.exports}var le=vW(),Tz=R.createContext(void 0),Eh=e=>{const t=R.useContext(Tz);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},yW=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),le.jsx(Tz.Provider,{value:e,children:t})),Cz=R.createContext(!1),_z=()=>R.useContext(Cz);Cz.Provider;function bW(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var xW=R.createContext(bW()),Dz=()=>R.useContext(xW),Rz=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},jz=e=>{R.useEffect(()=>{e.clearReset()},[e])},Pz=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||bz(n,[e.error,r])),X_=(e,t)=>t.state.data===void 0,Mz=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Lz=(e,t)=>e.isLoading&&e.isFetching&&!t,GT=(e,t)=>e?.suspense&&t.isPending,Uy=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function kz({queries:e,...t},n){const r=Eh(n),o=_z(),s=Dz(),u=R.useMemo(()=>e.map(x=>{const N=r.defaultQueryOptions(x);return N._optimisticResults=o?"isRestoring":"optimistic",N}),[e,r,o]);u.forEach(x=>{Mz(x),Rz(x,s)}),jz(s);const[c]=R.useState(()=>new mW(r,u,t)),[f,m,g]=c.getOptimisticResult(u,t.combine),p=!o&&t.subscribed!==!1;R.useSyncExternalStore(R.useCallback(x=>p?c.subscribe(hn.batchCalls(x)):dr,[c,p]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),R.useEffect(()=>{c.setQueries(u,t)},[u,t,c]);const b=f.some((x,N)=>GT(u[N],x))?f.flatMap((x,N)=>{const T=u[N];if(T){const C=new Nh(r,T);if(GT(T,x))return Uy(T,C,s);Lz(x,o)&&Uy(T,C,s)}return[]}):[];if(b.length>0)throw Promise.all(b);const S=f.find((x,N)=>{const T=u[N];return T&&Pz({result:x,errorResetBoundary:s,throwOnError:T.throwOnError,query:r.getQueryCache().get(T.queryHash),suspense:T.suspense})});if(S?.error)throw S.error;return m(g())}function n0(e,t,n){if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=_z(),o=Dz(),s=Eh(n),u=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u.queryFn||console.error(`[${u.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),u._optimisticResults=r?"isRestoring":"optimistic",Mz(u),Rz(u,o),jz(o);const c=!s.getQueryCache().get(u.queryHash),[f]=R.useState(()=>new t(s,u)),m=f.getOptimisticResult(u),g=!r&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(p=>{const y=g?f.subscribe(hn.batchCalls(p)):dr;return f.updateResult(),y},[f,g]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),R.useEffect(()=>{f.setOptions(u)},[u,f]),GT(u,m))throw Uy(u,f,o);if(Pz({result:m,errorResetBoundary:o,throwOnError:u.throwOnError,query:s.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw m.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(u,m),u.experimental_prefetchInRender&&!Su&&Lz(m,r)&&(c?Uy(u,f,o):s.getQueryCache().get(u.queryHash)?.promise)?.catch(dr).finally(()=>{f.updateResult()}),u.notifyOnChangeProps?m:f.trackResult(m)}function wW(e,t){return n0(e,Nh,t)}function NW(e,t){return e.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseQuery"),n0({...e,enabled:!0,suspense:!0,throwOnError:X_,placeholderData:void 0},Nh,t)}function EW(e,t){return e.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseInfiniteQuery"),n0({...e,enabled:!0,suspense:!0,throwOnError:X_},Az,t)}function SW(e,t){return kz({...e,queries:e.queries.map(n=>(n.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseQueries"),{...n,suspense:!0,throwOnError:X_,enabled:!0,placeholderData:void 0}))},t)}function AW(e,t){const n=Eh(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function OW(e,t){const n=Eh(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function TW(e,t){const n=Eh(t),[r]=R.useState(()=>new dW(n,e));R.useEffect(()=>{r.setOptions(e)},[r,e]);const o=R.useSyncExternalStore(R.useCallback(u=>r.subscribe(hn.batchCalls(u)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=R.useCallback((u,c)=>{r.mutate(u,c).catch(dr)},[r]);if(o.error&&bz(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function CW(e,t){return n0(e,Az,t)}function Au(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const _W=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Iz(e){return _W&&Au(e)&&Symbol.asyncIterator in e}var DW=Object.create,$z=Object.defineProperty,RW=Object.getOwnPropertyDescriptor,Vz=Object.getOwnPropertyNames,jW=Object.getPrototypeOf,PW=Object.prototype.hasOwnProperty,Sh=(e,t)=>function(){return t||(0,e[Vz(e)[0]])((t={exports:{}}).exports,t),t.exports},MW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Vz(t),s=0,u=o.length,c;s<u;s++)c=o[s],!PW.call(e,c)&&c!==n&&$z(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=RW(t,c))||r.enumerable});return e},r0=(e,t,n)=>(n=e!=null?DW(jW(e)):{},MW($z(n,"default",{value:e,enumerable:!0}),e));const Bz=()=>{},II=e=>{Object.freeze&&Object.freeze(e)};function zz(e,t,n){var r;const o=t.join(".");return(r=n[o])!==null&&r!==void 0||(n[o]=new Proxy(Bz,{get(s,u){if(!(typeof u!="string"||u==="then"))return zz(e,[...t,u],n)},apply(s,u,c){const f=t[t.length-1];let m={args:c,path:t};return f==="call"?m={args:c.length>=2?[c[1]]:[],path:t.slice(0,-1)}:f==="apply"&&(m={args:c.length>=2?c[1]:[],path:t.slice(0,-1)}),II(m.args),II(m.path),e(m)}})),n[o]}const a0=e=>zz(e,[],Object.create(null)),W_=e=>new Proxy(Bz,{get(t,n){if(n!=="then")return e(n)}});var Uz=Sh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),LW=Sh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Uz().default;function r(o,s){if(n(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var c=u.call(o,s||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),kW=Sh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Uz().default,r=LW();function o(s){var u=r(s,"string");return n(u)=="symbol"?u:u+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),qz=Sh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=kW();function r(o,s,u){return(s=n(s))in o?Object.defineProperty(o,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[s]=u,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Z_=Sh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=qz();function r(s,u){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);u&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),c.push.apply(c,f)}return c}function o(s){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{};u%2?r(Object(c),!0).forEach(function(f){n(s,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(s,f,Object.getOwnPropertyDescriptor(c,f))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});r0(Z_());r0(qz());var ay=r0(Z_());function IW(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,ay.default)((0,ay.default)({},e),{},{error:r})}}return{ok:!0,result:(0,ay.default)((0,ay.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var eE=class extends Error{constructor(){super("Unable to transform response from server")}};function $W(e,t){let n;try{n=IW(e,t)}catch{throw new eE}if(!n.ok&&(!Au(n.error.error)||typeof n.error.error.code!="number"))throw new eE;if(n.ok&&!Au(n.result))throw new eE;return n}r0(Z_());function i0(e){const t={subscribe(n){let r=null,o=!1,s=!1,u=!1;function c(){if(r===null){u=!0;return}s||(s=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(f){var m;o||(m=n.next)===null||m===void 0||m.call(n,f)},error(f){var m;o||(o=!0,(m=n.error)===null||m===void 0||m.call(n,f),c())},complete(){var f;o||(o=!0,(f=n.complete)===null||f===void 0||f.call(n),c())}}),u&&c(),{unsubscribe:c}},pipe(...n){return n.reduce(VW,t)}};return t}function VW(e,t){return t(e)}function BW(e){const t=new AbortController;return new Promise((r,o)=>{let s=!1;function u(){s||(s=!0,c.unsubscribe())}t.signal.addEventListener("abort",()=>{o(t.signal.reason)});const c=e.subscribe({next(f){s=!0,r(f),u()},error(f){o(f)},complete(){t.abort(),u()}})})}var zW=Object.create,Hz=Object.defineProperty,UW=Object.getOwnPropertyDescriptor,Fz=Object.getOwnPropertyNames,qW=Object.getPrototypeOf,HW=Object.prototype.hasOwnProperty,fl=(e,t)=>function(){return t||(0,e[Fz(e)[0]])((t={exports:{}}).exports,t),t.exports},FW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Fz(t),s=0,u=o.length,c;s<u;s++)c=o[s],!HW.call(e,c)&&c!==n&&Hz(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=UW(t,c))||r.enumerable});return e},Ku=(e,t,n)=>(n=e!=null?zW(qW(e)):{},FW(t||!e||!e.__esModule?Hz(n,"default",{value:e,enumerable:!0}):n,e)),KW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,o){if(r==null)return{};var s={};for(var u in r)if({}.hasOwnProperty.call(r,u)){if(o.includes(u))continue;s[u]=r[u]}return s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),GW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=KW();function r(o,s){if(o==null)return{};var u,c,f=n(o,s);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(o);for(c=0;c<m.length;c++)u=m[c],s.includes(u)||{}.propertyIsEnumerable.call(o,u)&&(f[u]=o[u])}return f}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Kz=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),YW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Kz().default;function r(o,s){if(n(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var c=u.call(o,s||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),QW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Kz().default,r=YW();function o(s){var u=r(s,"string");return n(u)=="symbol"?u:u+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),XW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=QW();function r(o,s,u){return(s=n(s))in o?Object.defineProperty(o,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[s]=u,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ah=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=XW();function r(s,u){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);u&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),c.push.apply(c,f)}return c}function o(s){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{};u%2?r(Object(c),!0).forEach(function(f){n(s,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(s,f,Object.getOwnPropertyDescriptor(c,f))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),WW=Ku(GW(),1),$I=Ku(Ah(),1);const ZW=["cursor","direction"];function Fi(e,t,n){const r=e.flatMap(o=>o.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&Au(t)&&("direction"in t||"cursor"in t)){const{cursor:o,direction:s}=t,u=(0,WW.default)(t,ZW);return[r,{input:u,type:"infinite"}]}return[r,(0,$I.default)((0,$I.default)({},typeof t<"u"&&t!==ar&&{input:t}),n&&n!=="any"&&{type:n})]}function jy(e){return Fi(e,void 0,"any")}var JW=Object.create,Gz=Object.defineProperty,eZ=Object.getOwnPropertyDescriptor,Yz=Object.getOwnPropertyNames,tZ=Object.getPrototypeOf,nZ=Object.prototype.hasOwnProperty,oo=(e,t)=>function(){return t||(0,e[Yz(e)[0]])((t={exports:{}}).exports,t),t.exports},rZ=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Yz(t),s=0,u=o.length,c;s<u;s++)c=o[s],!nZ.call(e,c)&&c!==n&&Gz(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=eZ(t,c))||r.enumerable});return e},bn=(e,t,n)=>(n=e!=null?JW(tZ(e)):{},rZ(t||!e||!e.__esModule?Gz(n,"default",{value:e,enumerable:!0}):n,e)),Qz=oo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),aZ=oo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Qz().default;function r(o,s){if(n(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var c=u.call(o,s||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),iZ=oo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Qz().default,r=aZ();function o(s){var u=r(s,"string");return n(u)=="symbol"?u:u+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gu=oo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=iZ();function r(o,s,u){return(s=n(s))in o?Object.defineProperty(o,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[s]=u,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),li=oo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Gu();function r(s,u){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);u&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),c.push.apply(c,f)}return c}function o(s){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{};u%2?r(Object(c),!0).forEach(function(f){n(s,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(s,f,Object.getOwnPropertyDescriptor(c,f))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});function oZ(e){return t=>{let n=0,r=null;const o=[];function s(){r||(r=t.subscribe({next(c){for(const m of o){var f;(f=m.next)===null||f===void 0||f.call(m,c)}},error(c){for(const m of o){var f;(f=m.error)===null||f===void 0||f.call(m,c)}},complete(){for(const f of o){var c;(c=f.complete)===null||c===void 0||c.call(f)}}}))}function u(){if(n===0&&r){const c=r;r=null,c.unsubscribe()}}return i0(c=>(n++,o.push(c),s(),{unsubscribe(){n--,u();const f=o.findIndex(m=>m===c);f>-1&&o.splice(f,1)}}))}}function sZ(e){let t=e;const n=[],r=u=>{t!==void 0&&u.next(t),n.push(u)},o=u=>{n.splice(n.indexOf(u),1)},s=i0(u=>(r(u),()=>{o(u)}));return s.next=u=>{if(t!==u){t=u;for(const c of n)c.next(u)}},s.get=()=>t,s}function lZ(e){return i0(t=>{function n(o=0,s=e.op){const u=e.links[o];if(!u)throw new Error("No more links to execute - did you forget to add an ending link?");return u({op:s,next(f){return n(o+1,f)}})}return n().subscribe(t)})}var iy=bn(Gu(),1),nd=bn(li(),1);function uZ(e){return e instanceof _p}function cZ(e){return Au(e)&&Au(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function dZ(e,t){return typeof e=="string"?e:Au(e)&&typeof e.message=="string"?e.message:t}var _p=class Py extends Error{constructor(t,n){var r,o;const s=n?.cause;super(t,{cause:s}),(0,iy.default)(this,"cause",void 0),(0,iy.default)(this,"shape",void 0),(0,iy.default)(this,"data",void 0),(0,iy.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=s,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(o=n.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Py.prototype)}static from(t,n={}){const r=t;return uZ(r)?(n.meta&&(r.meta=(0,nd.default)((0,nd.default)({},r.meta),n.meta)),r):cZ(r)?new Py(r.error.message,(0,nd.default)((0,nd.default)({},n),{},{result:r})):new Py(dZ(r,"Unknown error"),(0,nd.default)((0,nd.default)({},n),{},{cause:r}))}};function fZ(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const VI=e=>typeof e=="function";function mZ(e){if(e)return e;if(typeof window<"u"&&VI(window.fetch))return window.fetch;if(typeof globalThis<"u"&&VI(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var gp=bn(li());function pZ(e){return{url:e.url.toString(),fetch:e.fetch,transformer:fZ(e.transformer),methodOverride:e.methodOverride}}function hZ(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const gZ={query:"GET",mutation:"POST",subscription:"PATCH"};function Xz(e){return"input"in e?e.transformer.input.serialize(e.input):hZ(e.inputs.map(t=>e.transformer.input.serialize(t)))}const Wz=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const o=[];if(t[1]&&o.push(t[1]),"inputs"in e&&o.push("batch=1"),e.type==="query"||e.type==="subscription"){const s=Xz(e);s!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(s))}`)}return o.length&&(r+="?"+o.join("&")),r},vZ=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=Xz(e);return t!==void 0?JSON.stringify(t):void 0},yZ=e=>NZ((0,gp.default)((0,gp.default)({},e),{},{contentTypeHeader:"application/json",getUrl:Wz,getBody:vZ}));var bZ=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const xZ=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new bZ};async function wZ(e){var t;xZ(e.signal);const n=e.getUrl(e),r=e.getBody(e),o=(t=e.methodOverride)!==null&&t!==void 0?t:gZ[e.type],s=await(async()=>{const c=await e.headers();return Symbol.iterator in c?Object.fromEntries(c):c})(),u=(0,gp.default)((0,gp.default)((0,gp.default)({},e.contentTypeHeader&&o!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),s);return mZ(e.fetch)(n,{method:o,signal:e.signal,body:r,headers:u})}async function NZ(e){const t={},n=await wZ(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}bn(li(),1);const BI=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function zI(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function o(c){const f=[[]];let m=0;for(;;){const y=c[m];if(!y)break;const b=f[f.length-1];if(y.aborted){var g;(g=y.reject)===null||g===void 0||g.call(y,new Error("Aborted")),m++;continue}if(e.validate(b.concat(y).map(x=>x.key))){b.push(y),m++;continue}if(b.length===0){var p;(p=y.reject)===null||p===void 0||p.call(y,new Error("Input is too big for a single dispatch")),m++;continue}f.push([])}return f}function s(){const c=o(t);r();for(const f of c){if(!f.length)continue;const m={items:f};for(const p of f)p.batch=m;e.fetch(m.items.map(p=>p.key)).then(async p=>{await Promise.all(p.map(async(b,S)=>{const x=m.items[S];try{var N;const C=await Promise.resolve(b);(N=x.resolve)===null||N===void 0||N.call(x,C)}catch(C){var T;(T=x.reject)===null||T===void 0||T.call(x,C)}x.batch=null,x.reject=null,x.resolve=null}));for(const b of m.items){var y;(y=b.reject)===null||y===void 0||y.call(b,new Error("Missing result")),b.batch=null}}).catch(p=>{for(const b of m.items){var y;(y=b.reject)===null||y===void 0||y.call(b,p),b.batch=null}})}}function u(c){var f;const m={aborted:!1,key:c,batch:null,resolve:BI,reject:BI},g=new Promise((p,y)=>{var b;m.reject=y,m.resolve=p,(b=t)!==null&&b!==void 0||(t=[]),t.push(m)});return(f=n)!==null&&f!==void 0||(n=setTimeout(s)),g}return{load:u}}function EZ(...e){const t=new AbortController,n=e.length;let r=0;const o=()=>{++r===n&&t.abort()};for(const s of e)s?.aborted?o():s?.addEventListener("abort",o,{once:!0});return t.signal}var oy=bn(li(),1);function SZ(e){var t,n;const r=pZ(e),o=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,s=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const u=g=>({validate(p){if(o===1/0&&s===1/0)return!0;if(p.length>s)return!1;const y=p.map(x=>x.path).join(","),b=p.map(x=>x.input);return Wz((0,oy.default)((0,oy.default)({},r),{},{type:g,path:y,inputs:b,signal:null})).length<=o},async fetch(p){const y=p.map(C=>C.path).join(","),b=p.map(C=>C.input),S=EZ(...p.map(C=>C.signal)),x=await yZ((0,oy.default)((0,oy.default)({},r),{},{path:y,inputs:b,type:g,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:p}):e.headers:{}},signal:S}));return(Array.isArray(x.json)?x.json:p.map(()=>x.json)).map(C=>({meta:x.meta,json:C}))}}),c=zI(u("query")),f=zI(u("mutation")),m={query:c,mutation:f};return({op:g})=>i0(p=>{/* istanbul ignore if -- @preserve */if(g.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const b=m[g.type].load(g);let S;return b.then(x=>{S=x;const N=$W(x.json,r.transformer.output);if(!N.ok){p.error(_p.from(N.error,{meta:x.meta}));return}p.next({context:x.meta,result:N.result}),p.complete()}).catch(x=>{p.error(_p.from(x,{meta:S?.meta}))}),()=>{}})}}bn(li(),1);const Zz=(e,...t)=>typeof e=="function"?e(...t):e;bn(Gu(),1);function AZ(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function OZ(e){const t=await Zz(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function TZ(e){const t={method:"connectionParams",data:await Zz(e)};return JSON.stringify(t)}bn(Gu(),1);var cu=bn(Gu(),1);function CZ(e){const{promise:t,resolve:n,reject:r}=AZ();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function _Z(e,{intervalMs:t,pongTimeoutMs:n}){let r,o;function s(){r=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},n)},t)}function u(){clearTimeout(r),s()}function c(){clearTimeout(o),u()}e.addEventListener("open",s),e.addEventListener("message",({data:f})=>{clearTimeout(r),s(),f==="PONG"&&c()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(o)})}var DZ=class YT{constructor(t){var n;if((0,cu.default)(this,"id",++YT.connectCount),(0,cu.default)(this,"WebSocketPonyfill",void 0),(0,cu.default)(this,"urlOptions",void 0),(0,cu.default)(this,"keepAliveOpts",void 0),(0,cu.default)(this,"wsObservable",sZ(null)),(0,cu.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++YT.connectCount;const n=OZ(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&_Z(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await CZ(r),t.urlOptions.connectionParams&&r.send(await TZ(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,cu.default)(DZ,"connectCount",0);bn(Gu(),1);bn(li(),1);var tE=bn(Gu(),1),UI=bn(li(),1),o0=class{constructor(e){(0,tE.default)(this,"links",void 0),(0,tE.default)(this,"runtime",void 0),(0,tE.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return lZ({links:this.links,op:(0,UI.default)((0,UI.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(oZ())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await BW(n)).result.data}catch(n){throw _p.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(o){switch(o.result.type){case"state":{var s;(s=n.onConnectionStateChange)===null||s===void 0||s.call(n,o.result);break}case"started":{var u;(u=n.onStarted)===null||u===void 0||u.call(n,{context:o.context});break}case"stopped":{var c;(c=n.onStopped)===null||c===void 0||c.call(n);break}case"data":case void 0:{var f;(f=n.onData)===null||f===void 0||f.call(n,o.result.data);break}}},error(o){var s;(s=n.onError)===null||s===void 0||s.call(n,o)},complete(){var o;(o=n.onComplete)===null||o===void 0||o.call(n)}})}};const Jz=Symbol.for("trpc_untypedClient"),RZ={query:"query",mutate:"mutation",subscribe:"subscription"},jZ=e=>RZ[e];function eU(e){const t=a0(({path:n,args:r})=>{const o=[...n],s=jZ(o.pop()),u=o.join(".");return e[s](u,...r)});return W_(n=>n===Jz?e:t[n])}function PZ(e){const t=new o0(e);return eU(t)}function J_(e){return e[Jz]}bn(li(),1);bn(li(),1);var MZ=oo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var s,u,c,f=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,c=Symbol.iterator);f--;){if(u&&(s=o[u])!=null)return s.call(o);if(c&&(s=o[c])!=null)return new r(s.call(o));u="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function s(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var c=u.done;return Promise.resolve(u.value).then(function(f){return{value:f,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(c){var f=this.s.return;return f===void 0?Promise.resolve({value:c,done:!0}):s(f.apply(this.s,arguments))},throw:function(c){var f=this.s.return;return f===void 0?Promise.reject(c):s(f.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});bn(MZ(),1);bn(li(),1);var LZ=oo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(c,f){var m=Error();return m.name="SuppressedError",m.error=c,m.suppressed=f,m},o={},s=[];function u(c,f){if(f!=null){if(Object(f)!==f)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(c)var m=f[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(m===void 0&&(m=f[Symbol.dispose||Symbol.for("Symbol.dispose")],c))var g=m;if(typeof m!="function")throw new TypeError("Object is not disposable.");g&&(m=function(){try{g.call(f)}catch(y){return Promise.reject(y)}}),s.push({v:f,d:m,a:c})}else c&&s.push({d:f,a:c});return f}return{e:o,u:u.bind(null,!1),a:u.bind(null,!0),d:function(){var f,m=this.e,g=0;function p(){for(;f=s.pop();)try{if(!f.a&&g===1)return g=0,s.push(f),Promise.resolve().then(p);if(f.d){var b=f.d.call(f.v);if(f.a)return g|=2,Promise.resolve(b).then(p,y)}else g|=1}catch(S){return y(S)}if(g===1)return m!==o?Promise.reject(m):Promise.resolve();if(m!==o)throw m}function y(b){return m=m!==o?new r(b,m):b,p()}return p()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),tU=oo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,o){this.v=r,this.k=o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),kZ=oo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=tU();function r(o){return new n(o,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),IZ=oo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=tU();function r(s){return function(){return new o(s.apply(this,arguments))}}function o(s){var u,c;function f(g,p){try{var y=s[g](p),b=y.value,S=b instanceof n;Promise.resolve(S?b.v:b).then(function(x){if(S){var N=g==="return"?"return":"next";if(!b.k||x.done)return f(N,x);x=s[N](x).value}m(y.done?"return":"normal",x)},function(x){f("throw",x)})}catch(x){m("throw",x)}}function m(g,p){switch(g){case"return":u.resolve({value:p,done:!0});break;case"throw":u.reject(p);break;default:u.resolve({value:p,done:!1})}(u=u.next)?f(u.key,u.arg):c=null}this._invoke=function(g,p){return new Promise(function(y,b){var S={key:g,arg:p,resolve:y,reject:b,next:null};c?c=c.next=S:(u=c=S,f(g,p))})},typeof s.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(s){return this._invoke("next",s)},o.prototype.throw=function(s){return this._invoke("throw",s)},o.prototype.return=function(s){return this._invoke("return",s)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});bn(LZ(),1);bn(kZ(),1);bn(IZ(),1);bn(li(),1);function $Z(e){return a0(({path:t,args:n})=>{var r;const o=[...t],s=o.pop();if(s==="useMutation")return e[s](o,...n);if(s==="_def")return{path:o};const[u,...c]=n,f=(r=c[0])!==null&&r!==void 0?r:{};return e[s](o,u,f)})}var nE;const VZ=["client","ssrContext","ssrState","abortOnUnmount"],BZ=(nE=R.createContext)===null||nE===void 0?void 0:nE.call(t0,null),zZ=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function UZ(e){return a0(t=>{const n=[...t.path],r=n.pop(),o=[...t.args],s=o.shift(),u=zZ(r),c=Fi(n,s,u);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,c,o[0]),queryOptions:()=>e.queryOptions(n,c,...o),fetch:()=>e.fetchQuery(c,...o),fetchInfinite:()=>e.fetchInfiniteQuery(c,o[0]),prefetch:()=>e.prefetchQuery(c,...o),prefetchInfinite:()=>e.prefetchInfiniteQuery(c,o[0]),ensureData:()=>e.ensureQueryData(c,...o),invalidate:()=>e.invalidateQueries(c,...o),reset:()=>e.resetQueries(c,...o),refetch:()=>e.refetchQueries(c,...o),cancel:()=>e.cancelQuery(c,...o),setData:()=>{e.setQueryData(c,o[0],o[1])},setQueriesData:()=>e.setQueriesData(c,o[0],o[1],o[2]),setInfiniteData:()=>{e.setInfiniteQueryData(c,o[0],o[1])},getData:()=>e.getQueryData(c),getInfiniteData:()=>e.getInfiniteQueryData(c),setMutationDefaults:()=>e.setMutationDefaults(jy(n),s),getMutationDefaults:()=>e.getMutationDefaults(jy(n)),isMutating:()=>e.isMutating({mutationKey:jy(n)})}[r]()})}function qZ(e){const t=eU(e.client),n=UZ(e);return W_(r=>{const o=r;return o==="client"?t:VZ.includes(o)?e[o]:n[r]})}var HZ=Ku(Ah(),1);function qI(e){const t=e instanceof o0?e:J_(e);return a0(n=>{const r=n.path,o=r.join("."),[s,u]=n.args;return(0,HZ.default)({queryKey:Fi(r,s,"query"),queryFn:()=>t.query(o,s,u?.trpc)},u)})}var rE=Ku(Ah(),1);function _r(e,t,n){var r;const o=e[0];let s=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var u;s=(0,rE.default)((0,rE.default)((0,rE.default)({},(u=s)!==null&&u!==void 0?u:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[o.join("."),s,t?.trpc]}var FZ=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var s,u,c,f=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,c=Symbol.iterator);f--;){if(u&&(s=o[u])!=null)return s.call(o);if(c&&(s=o[c])!=null)return new r(s.call(o));u="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function s(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var c=u.done;return Promise.resolve(u.value).then(function(f){return{value:f,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(c){var f=this.s.return;return f===void 0?Promise.resolve({value:c,done:!0}):s(f.apply(this.s,arguments))},throw:function(c){var f=this.s.return;return f===void 0?Promise.reject(c):s(f.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),KZ=Ku(FZ(),1);function QT(e){return{path:e.path.join(".")}}function Xm(e){const t=QT(e);return R.useMemo(()=>t,[t])}async function nU(e,t,n){const o=t.getQueryCache().build(t,{queryKey:n});o.setState({data:[],status:"success"});const s=[];var u=!1,c=!1,f;try{for(var m=(0,KZ.default)(e),g;u=!(g=await m.next()).done;u=!1){const p=g.value;s.push(p),o.setState({data:[...s]})}}catch(p){c=!0,f=p}finally{try{u&&m.return!=null&&await m.return()}finally{if(c)throw f}}return s}var At=Ku(Ah(),1);function GZ(e){const{client:t,queryClient:n}=e,r=t instanceof o0?t:J_(t);return{infiniteQueryOptions:(o,s,u)=>{var c,f;const m=((c=s[1])===null||c===void 0?void 0:c.input)===ar,g=async p=>{var y;const b=(0,At.default)((0,At.default)({},u),{},{trpc:(0,At.default)((0,At.default)({},u?.trpc),!(u==null||(y=u.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:p.signal}:{signal:null})});return await r.query(..._r(s,b,{direction:p.direction,pageParam:p.pageParam}))};return Object.assign((0,At.default)((0,At.default)({},u),{},{initialData:u?.initialData,queryKey:s,queryFn:m?ar:g,initialPageParam:(f=u?.initialCursor)!==null&&f!==void 0?f:null}),{trpc:QT({path:o})})},queryOptions:(o,s,u)=>{var c;const f=((c=s[1])===null||c===void 0?void 0:c.input)===ar,m=async g=>{var p;const y=(0,At.default)((0,At.default)({},u),{},{trpc:(0,At.default)((0,At.default)({},u?.trpc),!(u==null||(p=u.trpc)===null||p===void 0)&&p.abortOnUnmount?{signal:g.signal}:{signal:null})}),b=await r.query(..._r(s,y));return Iz(b)?nU(b,n,s):b};return Object.assign((0,At.default)((0,At.default)({},u),{},{initialData:u?.initialData,queryKey:s,queryFn:f?ar:m}),{trpc:QT({path:o})})},fetchQuery:(o,s)=>n.fetchQuery((0,At.default)((0,At.default)({},s),{},{queryKey:o,queryFn:()=>r.query(..._r(o,s))})),fetchInfiniteQuery:(o,s)=>{var u;return n.fetchInfiniteQuery((0,At.default)((0,At.default)({},s),{},{queryKey:o,queryFn:({pageParam:c,direction:f})=>r.query(..._r(o,s,{pageParam:c,direction:f})),initialPageParam:(u=s?.initialCursor)!==null&&u!==void 0?u:null}))},prefetchQuery:(o,s)=>n.prefetchQuery((0,At.default)((0,At.default)({},s),{},{queryKey:o,queryFn:()=>r.query(..._r(o,s))})),prefetchInfiniteQuery:(o,s)=>{var u;return n.prefetchInfiniteQuery((0,At.default)((0,At.default)({},s),{},{queryKey:o,queryFn:({pageParam:c,direction:f})=>r.query(..._r(o,s,{pageParam:c,direction:f})),initialPageParam:(u=s?.initialCursor)!==null&&u!==void 0?u:null}))},ensureQueryData:(o,s)=>n.ensureQueryData((0,At.default)((0,At.default)({},s),{},{queryKey:o,queryFn:()=>r.query(..._r(o,s))})),invalidateQueries:(o,s,u)=>n.invalidateQueries((0,At.default)((0,At.default)({},s),{},{queryKey:o}),u),resetQueries:(o,s,u)=>n.resetQueries((0,At.default)((0,At.default)({},s),{},{queryKey:o}),u),refetchQueries:(o,s,u)=>n.refetchQueries((0,At.default)((0,At.default)({},s),{},{queryKey:o}),u),cancelQuery:(o,s)=>n.cancelQueries({queryKey:o},s),setQueryData:(o,s,u)=>n.setQueryData(o,s,u),setQueriesData:(o,s,u,c)=>n.setQueriesData((0,At.default)((0,At.default)({},s),{},{queryKey:o}),u,c),getQueryData:o=>n.getQueryData(o),setInfiniteQueryData:(o,s,u)=>n.setQueryData(o,s,u),getInfiniteQueryData:o=>n.getQueryData(o),setMutationDefaults:(o,s)=>{const u=o[0],c=f=>r.mutation(..._r([u,{input:f}],e));return n.setMutationDefaults(o,typeof s=="function"?s({canonicalMutationFn:c}):s)},getMutationDefaults:o=>n.getMutationDefaults(o),isMutating:o=>n.isMutating((0,At.default)((0,At.default)({},o),{},{exact:!0}))}}var Re=Ku(Ah());const HI=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function YZ(e){var t,n;const r=(t=void 0)!==null&&t!==void 0?t:A=>A.originalFn(),o=(n=void 0)!==null&&n!==void 0?n:BZ,s=PZ,u=A=>{var _;const{abortOnUnmount:j=!1,queryClient:L,ssrContext:V}=A,[B,U]=R.useState((_=A.ssrState)!==null&&_!==void 0?_:!1),H=A.client instanceof o0?A.client:J_(A.client),G=R.useMemo(()=>GZ({client:H,queryClient:L}),[H,L]),Y=R.useMemo(()=>(0,Re.default)({abortOnUnmount:j,queryClient:L,client:H,ssrContext:V??null,ssrState:B},G),[j,H,G,L,V,B]);return R.useEffect(()=>{U(J=>J?"mounted":!1)},[]),le.jsx(o.Provider,{value:Y,children:A.children})};function c(){const A=R.useContext(o);if(!A)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return A}function f(A,_){var j;const{queryClient:L,ssrState:V}=c();return V&&V!=="mounted"&&((j=L.getQueryCache().find({queryKey:A}))===null||j===void 0?void 0:j.state.status)==="error"?(0,Re.default)({retryOnMount:!1},_):_}function m(A,_,j){var L,V,B,U,H;const G=c(),{abortOnUnmount:Y,client:J,ssrState:q,queryClient:z,prefetchQuery:K}=G,te=Fi(A,_,"query"),ne=z.getQueryDefaults(te),k=_===ar;typeof window>"u"&&q==="prepass"&&(j==null||(L=j.trpc)===null||L===void 0?void 0:L.ssr)!==!1&&((V=j?.enabled)!==null&&V!==void 0?V:ne?.enabled)!==!1&&!k&&!z.getQueryCache().find({queryKey:te})&&K(te,j);const Q=f(te,(0,Re.default)((0,Re.default)({},ne),j)),W=(B=(U=j==null||(H=j.trpc)===null||H===void 0?void 0:H.abortOnUnmount)!==null&&U!==void 0?U:void 0)!==null&&B!==void 0?B:Y,ae=wW((0,Re.default)((0,Re.default)({},Q),{},{queryKey:te,queryFn:k?_:async ge=>{const Ne=(0,Re.default)((0,Re.default)({},Q),{},{trpc:(0,Re.default)((0,Re.default)({},Q?.trpc),W?{signal:ge.signal}:{signal:null})}),ce=await J.query(..._r(te,Ne));return Iz(ce)?nU(ce,z,te):ce}}),z);return ae.trpc=Xm({path:A}),ae}function g(A,_,j){var L,V,B;const U=c(),H=Fi(A,_,"query"),G=_===ar,Y=(L=(V=j==null||(B=j.trpc)===null||B===void 0?void 0:B.abortOnUnmount)!==null&&V!==void 0?V:void 0)!==null&&L!==void 0?L:U.abortOnUnmount;AW((0,Re.default)((0,Re.default)({},j),{},{queryKey:H,queryFn:G?_:J=>{const q={trpc:(0,Re.default)((0,Re.default)({},j?.trpc),Y?{signal:J.signal}:{})};return U.client.query(..._r(H,q))}}))}function p(A,_,j){var L,V,B;const U=c(),H=Fi(A,_,"query"),G=(L=(V=j==null||(B=j.trpc)===null||B===void 0?void 0:B.abortOnUnmount)!==null&&V!==void 0?V:void 0)!==null&&L!==void 0?L:U.abortOnUnmount,Y=NW((0,Re.default)((0,Re.default)({},j),{},{queryKey:H,queryFn:J=>{const q=(0,Re.default)((0,Re.default)({},j),{},{trpc:(0,Re.default)((0,Re.default)({},j?.trpc),G?{signal:J.signal}:{signal:null})});return U.client.query(..._r(H,q))}}),U.queryClient);return Y.trpc=Xm({path:A}),[Y.data,Y]}function y(A,_){const{client:j,queryClient:L}=c(),V=jy(A),B=L.defaultMutationOptions(L.getMutationDefaults(V)),U=TW((0,Re.default)((0,Re.default)({},_),{},{mutationKey:V,mutationFn:H=>j.mutation(..._r([A,{input:H}],_)),onSuccess(...H){var G,Y;return r({originalFn:()=>{var q,z,K;return(q=_==null||(z=_.onSuccess)===null||z===void 0?void 0:z.call(_,...H))!==null&&q!==void 0?q:B==null||(K=B.onSuccess)===null||K===void 0?void 0:K.call(B,...H)},queryClient:L,meta:(G=(Y=_?.meta)!==null&&Y!==void 0?Y:B?.meta)!==null&&G!==void 0?G:{}})}}),L);return U.trpc=Xm({path:A}),U}const b={data:void 0,error:null,status:"idle"},S={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function x(A,_,j){var L;const V=(L=j?.enabled)!==null&&L!==void 0?L:_!==ar,B=ll(Fi(A,_,"any")),{client:U}=c(),H=R.useRef(j);R.useEffect(()=>{H.current=j});const[G]=R.useState(new Set([])),Y=R.useCallback(k=>{G.add(k)},[G]),J=R.useRef(null),q=R.useCallback(k=>{const Q=K.current,W=K.current=k(Q);let ae=!1;for(const ge of G)if(Q[ge]!==W[ge]){ae=!0;break}ae&&ne(HI(W,Y))},[Y,G]),z=R.useCallback(()=>{var k;if((k=J.current)===null||k===void 0||k.unsubscribe(),!V){q(()=>(0,Re.default)((0,Re.default)({},b),{},{reset:z}));return}q(()=>(0,Re.default)((0,Re.default)({},S),{},{reset:z}));const Q=U.subscription(A.join("."),_??void 0,{onStarted:()=>{var W,ae;(W=(ae=H.current).onStarted)===null||W===void 0||W.call(ae),q(ge=>(0,Re.default)((0,Re.default)({},ge),{},{status:"pending",error:null}))},onData:W=>{var ae,ge;(ae=(ge=H.current).onData)===null||ae===void 0||ae.call(ge,W),q(Ne=>(0,Re.default)((0,Re.default)({},Ne),{},{status:"pending",data:W,error:null}))},onError:W=>{var ae,ge;(ae=(ge=H.current).onError)===null||ae===void 0||ae.call(ge,W),q(Ne=>(0,Re.default)((0,Re.default)({},Ne),{},{status:"error",error:W}))},onConnectionStateChange:W=>{q(ae=>{switch(W.state){case"idle":return(0,Re.default)((0,Re.default)({},ae),{},{status:W.state,error:null,data:void 0});case"connecting":return(0,Re.default)((0,Re.default)({},ae),{},{error:W.error,status:W.state});case"pending":return ae}})},onComplete:()=>{var W,ae;(W=(ae=H.current).onComplete)===null||W===void 0||W.call(ae),q(ge=>(0,Re.default)((0,Re.default)({},ge),{},{status:"idle",error:null,data:void 0}))}});J.current=Q},[U,B,V,q]);R.useEffect(()=>(z(),()=>{var k;(k=J.current)===null||k===void 0||k.unsubscribe()}),[z]);const K=R.useRef(V?(0,Re.default)((0,Re.default)({},S),{},{reset:z}):(0,Re.default)((0,Re.default)({},b),{},{reset:z})),[te,ne]=R.useState(HI(K.current,Y));return te}function N(A,_,j){var L,V,B,U,H;const{client:G,ssrState:Y,prefetchInfiniteQuery:J,queryClient:q,abortOnUnmount:z}=c(),K=Fi(A,_,"infinite"),te=q.getQueryDefaults(K),ne=_===ar;typeof window>"u"&&Y==="prepass"&&(j==null||(L=j.trpc)===null||L===void 0?void 0:L.ssr)!==!1&&((V=j?.enabled)!==null&&V!==void 0?V:te?.enabled)!==!1&&!ne&&!q.getQueryCache().find({queryKey:K})&&J(K,(0,Re.default)((0,Re.default)({},te),j));const k=f(K,(0,Re.default)((0,Re.default)({},te),j)),Q=(B=j==null||(U=j.trpc)===null||U===void 0?void 0:U.abortOnUnmount)!==null&&B!==void 0?B:z,W=CW((0,Re.default)((0,Re.default)({},k),{},{initialPageParam:(H=j.initialCursor)!==null&&H!==void 0?H:null,persister:j.persister,queryKey:K,queryFn:ne?_:ae=>{var ge;const Ne=(0,Re.default)((0,Re.default)({},k),{},{trpc:(0,Re.default)((0,Re.default)({},k?.trpc),Q?{signal:ae.signal}:{signal:null})});return G.query(..._r(K,Ne,{pageParam:(ge=ae.pageParam)!==null&&ge!==void 0?ge:j.initialCursor,direction:ae.direction}))}}),q);return W.trpc=Xm({path:A}),W}function T(A,_,j){var L,V,B;const U=c(),H=Fi(A,_,"infinite"),G=U.queryClient.getQueryDefaults(H),Y=_===ar,J=f(H,(0,Re.default)((0,Re.default)({},G),j)),q=(L=j==null||(V=j.trpc)===null||V===void 0?void 0:V.abortOnUnmount)!==null&&L!==void 0?L:U.abortOnUnmount;OW((0,Re.default)((0,Re.default)({},j),{},{initialPageParam:(B=j.initialCursor)!==null&&B!==void 0?B:null,queryKey:H,queryFn:Y?_:z=>{var K;const te=(0,Re.default)((0,Re.default)({},J),{},{trpc:(0,Re.default)((0,Re.default)({},J?.trpc),q?{signal:z.signal}:{})});return U.client.query(..._r(H,te,{pageParam:(K=z.pageParam)!==null&&K!==void 0?K:j.initialCursor,direction:z.direction}))}}))}function C(A,_,j){var L,V,B;const U=c(),H=Fi(A,_,"infinite"),G=U.queryClient.getQueryDefaults(H),Y=f(H,(0,Re.default)((0,Re.default)({},G),j)),J=(L=j==null||(V=j.trpc)===null||V===void 0?void 0:V.abortOnUnmount)!==null&&L!==void 0?L:U.abortOnUnmount,q=EW((0,Re.default)((0,Re.default)({},j),{},{initialPageParam:(B=j.initialCursor)!==null&&B!==void 0?B:null,queryKey:H,queryFn:z=>{var K;const te=(0,Re.default)((0,Re.default)({},Y),{},{trpc:(0,Re.default)((0,Re.default)({},Y?.trpc),J?{signal:z.signal}:{})});return U.client.query(..._r(H,te,{pageParam:(K=z.pageParam)!==null&&K!==void 0?K:j.initialCursor,direction:z.direction}))}}),U.queryClient);return q.trpc=Xm({path:A}),[q.data,q]}return{Provider:u,createClient:s,useContext:c,useUtils:c,useQuery:m,usePrefetchQuery:g,useSuspenseQuery:p,useQueries:(A,_)=>{const{ssrState:j,queryClient:L,prefetchQuery:V,client:B}=c(),U=qI(B),H=A(U);if(typeof window>"u"&&j==="prepass")for(const Y of H){var G;const J=Y;((G=J.trpc)===null||G===void 0?void 0:G.ssr)!==!1&&!L.getQueryCache().find({queryKey:J.queryKey})&&V(J.queryKey,J)}return kz({queries:H.map(Y=>(0,Re.default)((0,Re.default)({},Y),{},{queryKey:Y.queryKey})),combine:_?.combine},L)},useSuspenseQueries:A=>{const{queryClient:_,client:j}=c(),L=qI(j),V=A(L),B=SW({queries:V.map(U=>(0,Re.default)((0,Re.default)({},U),{},{queryFn:U.queryFn,queryKey:U.queryKey}))},_);return[B.map(U=>U.data),B]},useMutation:y,useSubscription:x,useInfiniteQuery:N,usePrefetchInfiniteQuery:T,useSuspenseInfiniteQuery:C}}function QZ(e){const t=$Z(e);return W_(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return R.useMemo(()=>qZ(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function XZ(e){const t=YZ();return QZ(t)}const St=XZ(),Je=e=>typeof e=="string",Wm=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},FI=e=>e==null?"":""+e,WZ=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},ZZ=/###/g,KI=e=>e&&e.indexOf("###")>-1?e.replace(ZZ,"."):e,GI=e=>!e||Je(e),vp=(e,t,n)=>{const r=Je(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(GI(e))return{};const s=KI(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return GI(e)?{}:{obj:e,k:KI(r[o])}},YI=(e,t,n)=>{const{obj:r,k:o}=vp(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],u=t.slice(0,t.length-1),c=vp(e,u,Object);for(;c.obj===void 0&&u.length;)s=`${u[u.length-1]}.${s}`,u=u.slice(0,u.length-1),c=vp(e,u,Object),c?.obj&&typeof c.obj[`${c.k}.${s}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${s}`]=n},JZ=(e,t,n,r)=>{const{obj:o,k:s}=vp(e,t,Object);o[s]=o[s]||[],o[s].push(n)},qy=(e,t)=>{const{obj:n,k:r}=vp(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},eJ=(e,t,n)=>{const r=qy(e,n);return r!==void 0?r:qy(t,n)},rU=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Je(e[r])||e[r]instanceof String||Je(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):rU(e[r],t[r],n):e[r]=t[r]);return e},au=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var tJ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const nJ=e=>Je(e)?e.replace(/[&<>"'\/]/g,t=>tJ[t]):e;class rJ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const aJ=[" ",",","?","!",";"],iJ=new rJ(20),oJ=(e,t,n)=>{t=t||"",n=n||"";const r=aJ.filter(u=>t.indexOf(u)<0&&n.indexOf(u)<0);if(r.length===0)return!0;const o=iJ.getRegExp(`(${r.map(u=>u==="?"?"\\?":u).join("|")})`);let s=!o.test(e);if(!s){const u=e.indexOf(n);u>0&&!o.test(e.substring(0,u))&&(s=!0)}return s},XT=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let u,c="";for(let f=s;f<r.length;++f)if(f!==s&&(c+=n),c+=r[f],u=o[c],u!==void 0){if(["string","number","boolean"].indexOf(typeof u)>-1&&f<r.length-1)continue;s+=f-s+1;break}o=u}return o},Dp=e=>e?.replace("_","-"),sJ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class Hy{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||sJ,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(Je(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Hy(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Hy(this.logger,t)}}var Gi=new Hy;let s0=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,s])=>{for(let u=0;u<s;u++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,s])=>{for(let u=0;u<s;u++)o.apply(o,[t,...n])})}};class QI extends s0{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,o={}){const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):Je(r)&&s?c.push(...r.split(s)):c.push(r)));const f=qy(this.data,c);return!f&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),f||!u||!Je(r)?f:XT(this.data?.[t]?.[n],r,s)}addResource(t,n,r,o,s={silent:!1}){const u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(u?r.split(u):r)),t.indexOf(".")>-1&&(c=t.split("."),o=n,n=c[1]),this.addNamespaces(n),YI(this.data,c,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r,o={silent:!1}){for(const s in r)(Je(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s,u={silent:!1,skipCopy:!1}){let c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),o=r,r=n,n=c[1]),this.addNamespaces(n);let f=qy(this.data,c)||{};u.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?rU(f,r,s):f={...f,...r},YI(this.data,c,f),u.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var aU={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{t=this.processors[s]?.process(t,n,r,o)??t}),t}};const iU=Symbol("i18next/PATH_KEY");function lJ(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===iU?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function WT(e,t){const{[iU]:n}=e(lJ());return n.join(t?.keySeparator??".")}const XI={},aE=e=>!Je(e)&&typeof e!="boolean"&&typeof e!="number";class Fy extends s0{constructor(t,n={}){super(),WZ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Gi.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const o=this.resolve(t,r);if(o?.res===void 0)return!1;const s=aE(o.res);return!(r.returnObjects===!1&&s)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const u=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!oJ(t,r,o);if(u&&!c){const f=t.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:t,namespaces:Je(s)?[s]:s};const m=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(m[0])>-1)&&(s=m.shift()),t=m.join(o)}return{key:t,namespaces:Je(s)?[s]:s}}translate(t,n,r){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=WT(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);const s=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:c,namespaces:f}=this.extractFromKey(t[t.length-1],o),m=f[f.length-1];let g=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const p=o.lng||this.language,y=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p?.toLowerCase()==="cimode")return y?s?{res:`${m}${g}${c}`,usedKey:c,exactUsedKey:c,usedLng:p,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:`${m}${g}${c}`:s?{res:c,usedKey:c,exactUsedKey:c,usedLng:p,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:c;const b=this.resolve(t,o);let S=b?.res;const x=b?.usedKey||c,N=b?.exactUsedKey||c,T=["[object Number]","[object Function]","[object RegExp]"],C=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,P=o.count!==void 0&&!Je(o.count),A=Fy.hasDefaultValue(o),_=P?this.pluralResolver.getSuffix(p,o.count,o):"",j=o.ordinal&&P?this.pluralResolver.getSuffix(p,o.count,{ordinal:!1}):"",L=P&&!o.ordinal&&o.count===0,V=L&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${_}`]||o[`defaultValue${j}`]||o.defaultValue;let B=S;D&&!S&&A&&(B=V);const U=aE(B),H=Object.prototype.toString.apply(B);if(D&&B&&U&&T.indexOf(H)<0&&!(Je(C)&&Array.isArray(B))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const G=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,B,{...o,ns:f}):`key '${c} (${this.language})' returned an object instead of string.`;return s?(b.res=G,b.usedParams=this.getUsedParamsDetails(o),b):G}if(u){const G=Array.isArray(B),Y=G?[]:{},J=G?N:x;for(const q in B)if(Object.prototype.hasOwnProperty.call(B,q)){const z=`${J}${u}${q}`;A&&!S?Y[q]=this.translate(z,{...o,defaultValue:aE(V)?V[q]:void 0,joinArrays:!1,ns:f}):Y[q]=this.translate(z,{...o,joinArrays:!1,ns:f}),Y[q]===z&&(Y[q]=B[q])}S=Y}}else if(D&&Je(C)&&Array.isArray(S))S=S.join(C),S&&(S=this.extendTranslation(S,t,o,r));else{let G=!1,Y=!1;!this.isValidLookup(S)&&A&&(G=!0,S=V),this.isValidLookup(S)||(Y=!0,S=c);const q=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:S,z=A&&V!==S&&this.options.updateMissing;if(Y||G||z){if(this.logger.log(z?"updateKey":"missingKey",p,m,c,z?V:S),u){const k=this.resolve(c,{...o,keySeparator:!1});k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let K=[];const te=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&te&&te[0])for(let k=0;k<te.length;k++)K.push(te[k]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(o.lng||this.language):K.push(o.lng||this.language);const ne=(k,Q,W)=>{const ae=A&&W!==S?W:q;this.options.missingKeyHandler?this.options.missingKeyHandler(k,m,Q,ae,z,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(k,m,Q,ae,z,o),this.emit("missingKey",k,m,Q,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(k=>{const Q=this.pluralResolver.getSuffixes(k,o);L&&o[`defaultValue${this.options.pluralSeparator}zero`]&&Q.indexOf(`${this.options.pluralSeparator}zero`)<0&&Q.push(`${this.options.pluralSeparator}zero`),Q.forEach(W=>{ne([k],c+W,o[`defaultValue${W}`]||V)})}):ne(K,c,V))}S=this.extendTranslation(S,t,o,b,r),Y&&S===c&&this.options.appendNamespaceToMissingKey&&(S=`${m}${g}${c}`),(Y||G)&&this.options.parseMissingKeyHandler&&(S=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${c}`:c,G?S:void 0,o))}return s?(b.res=S,b.usedParams=this.getUsedParamsDetails(o),b):S}extendTranslation(t,n,r,o,s){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=Je(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(f){const p=t.match(this.interpolator.nestingRegexp);m=p&&p.length}let g=r.replace&&!Je(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),t=this.interpolator.interpolate(t,g,r.lng||this.language||o.usedLng,r),f){const p=t.match(this.interpolator.nestingRegexp),y=p&&p.length;m<y&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...p)=>s?.[0]===p[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):this.translate(...p,n),r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=Je(u)?[u]:u;return t!=null&&c?.length&&r.applyPostProcessor!==!1&&(t=aU.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,o,s,u,c;return Je(t)&&(t=[t]),t.forEach(f=>{if(this.isValidLookup(r))return;const m=this.extractFromKey(f,n),g=m.key;o=g;let p=m.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const y=n.count!==void 0&&!Je(n.count),b=y&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(Je(n.context)||typeof n.context=="number")&&n.context!=="",x=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(N=>{this.isValidLookup(r)||(c=N,!XI[`${x[0]}-${N}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(XI[`${x[0]}-${N}`]=!0,this.logger.warn(`key "${o}" for languages "${x.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(T=>{if(this.isValidLookup(r))return;u=T;const C=[g];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(C,g,T,N,n);else{let P;y&&(P=this.pluralResolver.getSuffix(T,n.count,n));const A=`${this.options.pluralSeparator}zero`,_=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(y&&(n.ordinal&&P.indexOf(_)===0&&C.push(g+P.replace(_,this.options.pluralSeparator)),C.push(g+P),b&&C.push(g+A)),S){const j=`${g}${this.options.contextSeparator||"_"}${n.context}`;C.push(j),y&&(n.ordinal&&P.indexOf(_)===0&&C.push(j+P.replace(_,this.options.pluralSeparator)),C.push(j+P),b&&C.push(j+A))}}let D;for(;D=C.pop();)this.isValidLookup(r)||(s=D,r=this.getResource(T,N,D,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:u,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Je(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const s of n)delete o[s]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class WI{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Gi.create("languageUtils")}getScriptPartFromCode(t){if(t=Dp(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Dp(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Je(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return n=o;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(u=>{if(u===s)return u;if(!(u.indexOf("-")<0&&s.indexOf("-")<0)&&(u.indexOf("-")>0&&s.indexOf("-")<0&&u.substring(0,u.indexOf("-"))===s||u.indexOf(s)===0&&s.length>1))return u})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Je(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),o=[],s=u=>{u&&(this.isSupportedCode(u)?o.push(u):this.logger.warn(`rejecting language code not found in supportedLngs: ${u}`))};return Je(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):Je(t)&&s(this.formatLanguageCode(t)),r.forEach(u=>{o.indexOf(u)<0&&s(this.formatLanguageCode(u))}),o}}const ZI={zero:0,one:1,two:2,few:3,many:4,other:5},JI={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class uJ{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Gi.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Dp(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:o});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let u;try{u=new Intl.PluralRules(r,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),JI;if(!t.match(/-|_/))return JI;const f=this.languageUtils.getLanguagePartFromCode(t);u=this.getRule(f,n)}return this.pluralRulesCache[s]=u,u}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,s)=>ZI[o]-ZI[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n,r={}){const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const e5=(e,t,n,r=".",o=!0)=>{let s=eJ(e,t,n);return!s&&o&&Je(n)&&(s=XT(e,n,r),s===void 0&&(s=XT(t,n,r))),s},iE=e=>e.replace(/\$/g,"$$$$");class t5{constructor(t={}){this.logger=Gi.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:u,suffix:c,suffixEscaped:f,formatSeparator:m,unescapeSuffix:g,unescapePrefix:p,nestingPrefix:y,nestingPrefixEscaped:b,nestingSuffix:S,nestingSuffixEscaped:x,nestingOptionsSeparator:N,maxReplaces:T,alwaysFormat:C}=t.interpolation;this.escape=n!==void 0?n:nJ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?au(s):u||"{{",this.suffix=c?au(c):f||"}}",this.formatSeparator=m||",",this.unescapePrefix=g?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=y?au(y):b||au("$t("),this.nestingSuffix=S?au(S):x||au(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=T||1e3,this.alwaysFormat=C!==void 0?C:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let s,u,c;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=b=>{if(b.indexOf(this.formatSeparator)<0){const T=e5(n,f,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,r,{...o,...n,interpolationkey:b}):T}const S=b.split(this.formatSeparator),x=S.shift().trim(),N=S.join(this.formatSeparator).trim();return this.format(e5(n,f,x,this.options.keySeparator,this.options.ignoreJSONStructure),N,r,{...o,...n,interpolationkey:x})};this.resetRegExp();const g=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>iE(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?iE(this.escape(b)):iE(b)}].forEach(b=>{for(c=0;s=b.regex.exec(t);){const S=s[1].trim();if(u=m(S),u===void 0)if(typeof g=="function"){const N=g(t,s,o);u=Je(N)?N:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))u="";else if(p){u=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),u="";else!Je(u)&&!this.useRawValueToEscape&&(u=FI(u));const x=b.safeValue(u);if(t=t.replace(s[0],x),p?(b.regex.lastIndex+=u.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n,r={}){let o,s,u;const c=(f,m)=>{const g=this.nestingOptionsSeparator;if(f.indexOf(g)<0)return f;const p=f.split(new RegExp(`${au(g)}[ ]*{`));let y=`{${p[1]}`;f=p[0],y=this.interpolate(y,u);const b=y.match(/'/g),S=y.match(/"/g);((b?.length??0)%2===0&&!S||(S?.length??0)%2!==0)&&(y=y.replace(/'/g,'"'));try{u=JSON.parse(y),m&&(u={...m,...u})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,x),`${f}${g}${y}`}return u.defaultValue&&u.defaultValue.indexOf(this.prefix)>-1&&delete u.defaultValue,f};for(;o=this.nestingRegexp.exec(t);){let f=[];u={...r},u=u.replace&&!Je(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;const m=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(m!==-1&&(f=o[1].slice(m).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),o[1]=o[1].slice(0,m)),s=n(c.call(this,o[1].trim(),u),u),s&&o[0]===t&&!Je(s))return s;Je(s)||(s=FI(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),f.length&&(s=f.reduce((g,p)=>this.format(g,p,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}const cJ=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(u=>{if(u){const[c,...f]=u.split(":"),m=f.join(":").trim().replace(/^'+|'+$/g,""),g=c.trim();n[g]||(n[g]=m),m==="false"&&(n[g]=!1),m==="true"&&(n[g]=!0),isNaN(m)||(n[g]=parseInt(m,10))}})}return{formatName:t,formatOptions:n}},n5=e=>{const t={};return(n,r,o)=>{let s=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(s={...s,[o.interpolationkey]:void 0});const u=r+JSON.stringify(s);let c=t[u];return c||(c=e(Dp(r),o),t[u]=c),c(n)}},dJ=e=>(t,n,r)=>e(Dp(n),r)(t);class fJ{constructor(t={}){this.logger=Gi.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?n5:dJ;this.formats={number:r((o,s)=>{const u=new Intl.NumberFormat(o,{...s});return c=>u.format(c)}),currency:r((o,s)=>{const u=new Intl.NumberFormat(o,{...s,style:"currency"});return c=>u.format(c)}),datetime:r((o,s)=>{const u=new Intl.DateTimeFormat(o,{...s});return c=>u.format(c)}),relativetime:r((o,s)=>{const u=new Intl.RelativeTimeFormat(o,{...s});return c=>u.format(c,s.range||"day")}),list:r((o,s)=>{const u=new Intl.ListFormat(o,{...s});return c=>u.format(c)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=n5(n)}format(t,n,r,o={}){const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(c=>c.indexOf(")")>-1)){const c=s.findIndex(f=>f.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,c)].join(this.formatSeparator)}return s.reduce((c,f)=>{const{formatName:m,formatOptions:g}=cJ(f);if(this.formats[m]){let p=c;try{const y=o?.formatParams?.[o.interpolationkey]||{},b=y.locale||y.lng||o.locale||o.lng||r;p=this.formats[m](c,b,{...g,...o,...y})}catch(y){this.logger.warn(y)}return p}else this.logger.warn(`there was no format function for ${m}`);return c},t)}}const mJ=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class pJ extends s0{constructor(t,n,r,o={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Gi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,n,r,o){const s={},u={},c={},f={};return t.forEach(m=>{let g=!0;n.forEach(p=>{const y=`${m}|${p}`;!r.reload&&this.store.hasResourceBundle(m,p)?this.state[y]=2:this.state[y]<0||(this.state[y]===1?u[y]===void 0&&(u[y]=!0):(this.state[y]=1,g=!1,u[y]===void 0&&(u[y]=!0),s[y]===void 0&&(s[y]=!0),f[p]===void 0&&(f[p]=!0)))}),g||(c[m]=!0)}),(Object.keys(s).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(u),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(f)}}loaded(t,n,r){const o=t.split("|"),s=o[0],u=o[1];n&&this.emit("failedLoading",s,u,n),!n&&r&&this.store.addResourceBundle(s,u,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(f=>{JZ(f.loaded,[s],u),mJ(f,t),n&&f.errors.push(n),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(m=>{c[m]||(c[m]={});const g=f.loaded[m];g.length&&g.forEach(p=>{c[m][p]===void 0&&(c[m][p]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(f=>!f.done)}read(t,n,r,o=0,s=this.retryTimeout,u){if(!t.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:u});return}this.readingCalls++;const c=(m,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(m&&g&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,u)},s);return}u(m,g)},f=this.backend[r].bind(this.backend);if(f.length===2){try{const m=f(t,n);m&&typeof m.then=="function"?m.then(g=>c(null,g)).catch(c):c(null,m)}catch(m){c(m)}return}return f(t,n,c)}prepareLoading(t,n,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Je(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Je(n)&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(u=>{this.loadOne(u)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(u,c)=>{u&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,u),!u&&c&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,c),this.loaded(t,u,c)})}saveMissing(t,n,r,o,s,u={},c=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const f={...u,isUpdate:s},m=this.backend.create.bind(this.backend);if(m.length<6)try{let g;m.length===5?g=m(t,n,r,o,f):g=m(t,n,r,o),g&&typeof g.then=="function"?g.then(p=>c(null,p)).catch(c):c(null,g)}catch(g){c(g)}else m(t,n,r,o,c,f)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const oE=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Je(e[1])&&(t.defaultValue=e[1]),Je(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),r5=e=>(Je(e.ns)&&(e.ns=[e.ns]),Je(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Je(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),sy=()=>{},hJ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},oU="__i18next_supportNoticeShown",gJ=()=>typeof globalThis<"u"&&!!globalThis[oU],vJ=()=>{typeof globalThis<"u"&&(globalThis[oU]=!0)},yJ=e=>!!(e?.modules?.backend?.name?.indexOf("Locize")>0||e?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||e?.options?.backend?.backends&&e.options.backend.backends.some(t=>t?.name?.indexOf("Locize")>0||t?.constructor?.name?.indexOf("Locize")>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(t=>t?.projectId));class yp extends s0{constructor(t={},n){if(super(),this.options=r5(t),this.services={},this.logger=Gi,this.modules={external:[]},hJ(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Je(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=oE();this.options={...r,...this.options,...r5(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!yJ(this)&&!gJ()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),vJ());const o=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Gi.init(o(this.modules.logger),this.options):Gi.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=fJ;const g=new WI(this.options);this.store=new QI(this.options.resources,this.options);const p=this.services;p.logger=Gi,p.resourceStore=this.store,p.languageUtils=g,p.pluralResolver=new uJ(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(p.formatter=o(m),p.formatter.init&&p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new t5(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new pJ(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",(b,...S)=>{this.emit(b,...S)}),this.modules.languageDetector&&(p.languageDetector=o(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=o(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new Fy(this.services,this.options),this.translator.on("*",(b,...S)=>{this.emit(b,...S)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=sy),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...g)=>this.store[m](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...g)=>(this.store[m](...g),this)});const c=Wm(),f=()=>{const m=(g,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(p),n(g,p)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),c}loadResources(t,n=sy){let r=n;const o=Je(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],u=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(m=>{m!=="cimode"&&s.indexOf(m)<0&&s.push(m)})};o?u(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>u(f)),this.options.preload?.forEach?.(c=>u(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const o=Wm();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=sy),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&aU.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Wm();this.emit("languageChanging",t);const o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},s=(c,f)=>{f?this.isLanguageChangingTo===t&&(o(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,r.resolve((...m)=>this.t(...m)),n&&n(c,(...m)=>this.t(...m))},u=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const f=Je(c)?c:c&&c[0],m=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(Je(c)?[c]:c);m&&(this.language||o(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,g=>{s(g,m)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),r}getFixedT(t,n,r){const o=(s,u,...c)=>{let f;typeof u!="object"?f=this.options.overloadTranslationOptionHandler([s,u].concat(c)):f={...u},f.lng=f.lng||o.lng,f.lngs=f.lngs||o.lngs,f.ns=f.ns||o.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||r||o.keyPrefix);const m=this.options.keySeparator||".";let g;return f.keyPrefix&&Array.isArray(s)?g=s.map(p=>(typeof p=="function"&&(p=WT(p,{...this.options,...u})),`${f.keyPrefix}${m}${p}`)):(typeof s=="function"&&(s=WT(s,{...this.options,...u})),g=f.keyPrefix?`${f.keyPrefix}${m}${s}`:s),this.t(g,f)};return Je(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const u=(c,f)=>{const m=this.services.backendConnector.state[`${c}|${f}`];return m===-1||m===0||m===2};if(n.precheck){const c=n.precheck(this,u);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(r,t)&&(!o||u(s,t)))}loadNamespaces(t,n){const r=Wm();return this.options.ns?(Je(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Wm();Je(t)&&(t=[t]);const o=this.options.preload||[],s=t.filter(u=>o.indexOf(u)<0&&this.services.languageUtils.isSupportedCode(u));return s.length?(this.options.preload=o.concat(s),this.loadResources(u=>{r.resolve(),n&&n(u)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const s=o.getTextInfo();if(s&&s.direction)return s.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new WI(oE());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new yp(t,n);return r.createInstance=yp.createInstance,r}cloneInstance(t={},n=sy){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new yp(o);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(c=>{s[c]=this[c]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const c=Object.keys(this.store.data).reduce((f,m)=>(f[m]={...this.store.data[m]},f[m]=Object.keys(f[m]).reduce((g,p)=>(g[p]={...f[m][p]},g),f[m]),f),{});s.store=new QI(c,o),s.services.resourceStore=s.store}if(t.interpolation){const f={...oE().interpolation,...this.options.interpolation,...t.interpolation},m={...o,interpolation:f};s.services.interpolator=new t5(m)}return s.translator=new Fy(s.services,o),s.translator.on("*",(c,...f)=>{s.emit(c,...f)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const yr=yp.createInstance();yr.createInstance;yr.dir;yr.init;yr.loadResources;yr.reloadResources;yr.use;yr.changeLanguage;yr.getFixedT;yr.t;yr.exists;yr.setDefaultNamespace;yr.hasLoadedNamespace;yr.loadNamespaces;yr.loadLanguages;const{slice:bJ,forEach:xJ}=[];function wJ(e){return xJ.call(bJ.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function NJ(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const a5=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,EJ=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let s=`${e}=${o}`;if(r.maxAge>0){const u=r.maxAge-0;if(Number.isNaN(u))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(u)}`}if(r.domain){if(!a5.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!a5.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},i5={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=EJ(e,t,o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var SJ={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return i5.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:s}=t;n&&typeof document<"u"&&i5.create(n,e,r,o,s)}},AJ={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let u=0;u<s.length;u++){const c=s[u].indexOf("=");c>0&&s[u].substring(0,c)===t&&(n=s[u].substring(c+1))}}return n}},OJ={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const s=o.substring(1);if(t){const u=s.split("&");for(let c=0;c<u.length;c++){const f=u[c].indexOf("=");f>0&&u[c].substring(0,f)===t&&(r=u[c].substring(f+1))}}if(r)return r;if(!r&&n>-1){const u=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(u)?u[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let rd=null;const o5=()=>{if(rd!==null)return rd;try{if(rd=typeof window<"u"&&window.localStorage!==null,!rd)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{rd=!1}return rd};var TJ={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&o5())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&o5()&&window.localStorage.setItem(n,e)}};let ad=null;const s5=()=>{if(ad!==null)return ad;try{if(ad=typeof window<"u"&&window.sessionStorage!==null,!ad)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{ad=!1}return ad};var CJ={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&s5())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&s5()&&window.sessionStorage.setItem(n,e)}},_J={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let s=0;s<n.length;s++)t.push(n[s]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},DJ={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},RJ={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},jJ={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let sU=!1;try{document.cookie,sU=!0}catch{}const lU=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];sU||lU.splice(1,1);const PJ=()=>({order:lU,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class uU{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=wJ(n,this.options||{},PJ()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(SJ),this.addDetector(AJ),this.addDetector(TJ),this.addDetector(CJ),this.addDetector(_J),this.addDetector(DJ),this.addDetector(RJ),this.addDetector(jJ),this.addDetector(OJ)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.filter(r=>r!=null&&!NJ(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}uU.type="languageDetector";const MJ=(e,t,n,r)=>{const o=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);Ou(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},l5={},cU=(e,t,n,r)=>{Ou(n)&&l5[n]||(Ou(n)&&(l5[n]=new Date),MJ(e,t,n,r))},dU=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},ZT=(e,t,n)=>{e.loadNamespaces(t,dU(e,n))},u5=(e,t,n,r)=>{if(Ou(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return ZT(e,n,r);n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,dU(e,r))},LJ=(e,t,n={})=>!t.languages||!t.languages.length?(cU(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),Ou=e=>typeof e=="string",kJ=e=>typeof e=="object"&&e!==null,IJ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,$J={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},VJ=e=>$J[e],BJ=e=>e.replace(IJ,VJ);let JT={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:BJ,transDefaultProps:void 0};const zJ=(e={})=>{JT={...JT,...e}},UJ=()=>JT;let fU;const qJ=e=>{fU=e},HJ=()=>fU,FJ={type:"3rdParty",init(e){zJ(e.options.react),qJ(e)}},KJ=R.createContext();class GJ{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var sE={exports:{}},lE={},c5;function YJ(){if(c5)return lE;c5=1;/**
|
||
* @license React
|
||
* use-sync-external-store-shim.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/return(function(){function e(b,S){return b===S&&(b!==0||1/b===1/S)||b!==b&&S!==S}function t(b,S){g||o.startTransition===void 0||(g=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var x=S();if(!p){var N=S();s(x,N)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}N=u({inst:{value:x,getSnapshot:S}});var T=N[0].inst,C=N[1];return f(function(){T.value=x,T.getSnapshot=S,n(T)&&C({inst:T})},[b,x,S]),c(function(){return n(T)&&C({inst:T}),b(function(){n(T)&&C({inst:T})})},[b]),m(x),x}function n(b){var S=b.getSnapshot;b=b.value;try{var x=S();return!s(b,x)}catch{return!0}}function r(b,S){return S()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=ef(),s=typeof Object.is=="function"?Object.is:e,u=o.useState,c=o.useEffect,f=o.useLayoutEffect,m=o.useDebugValue,g=!1,p=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;lE.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),lE}var d5;function QJ(){return d5||(d5=1,sE.exports=YJ()),sE.exports}var mU=QJ();const XJ=(e,t)=>Ou(t)?t:kJ(t)&&Ou(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,WJ={t:XJ,ready:!1},ZJ=()=>()=>{},l0=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=R.useContext(KJ)||{},s=n||r||HJ();s&&!s.reportNamespaces&&(s.reportNamespaces=new GJ),s||cU(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const u=R.useMemo(()=>({...UJ(),...s?.options?.react,...t}),[s,t]),{useSuspense:c,keyPrefix:f}=u,m=o||s?.options?.defaultNS,g=Ou(m)?[m]:m||["translation"],p=R.useMemo(()=>g,g);s?.reportNamespaces?.addUsedNamespaces?.(p);const y=R.useRef(0),b=R.useCallback(V=>{if(!s)return ZJ;const{bindI18n:B,bindI18nStore:U}=u,H=()=>{y.current+=1,V()};return B&&s.on(B,H),U&&s.store.on(U,H),()=>{B&&B.split(" ").forEach(G=>s.off(G,H)),U&&U.split(" ").forEach(G=>s.store.off(G,H))}},[s,u]),S=R.useRef(),x=R.useCallback(()=>{if(!s)return WJ;const V=!!(s.isInitialized||s.initializedStoreOnce)&&p.every(J=>LJ(J,s,u)),B=t.lng||s.language,U=y.current,H=S.current;if(H&&H.ready===V&&H.lng===B&&H.keyPrefix===f&&H.revision===U)return H;const Y={t:s.getFixedT(B,u.nsMode==="fallback"?p:p[0],f),ready:V,lng:B,keyPrefix:f,revision:U};return S.current=Y,Y},[s,p,f,u,t.lng]),[N,T]=R.useState(0),{t:C,ready:D}=mU.useSyncExternalStore(b,x,x);R.useEffect(()=>{if(s&&!D&&!c){const V=()=>T(B=>B+1);t.lng?u5(s,t.lng,p,V):ZT(s,p,V)}},[s,t.lng,p,D,c,N]);const P=s||{},A=R.useRef(null),_=R.useRef(),j=V=>{const B=Object.getOwnPropertyDescriptors(V);B.__original&&delete B.__original;const U=Object.create(Object.getPrototypeOf(V),B);if(!Object.prototype.hasOwnProperty.call(U,"__original"))try{Object.defineProperty(U,"__original",{value:V,writable:!1,enumerable:!1,configurable:!1})}catch{}return U},L=R.useMemo(()=>{const V=P,B=V?.language;let U=V;V&&(A.current&&A.current.__original===V?_.current!==B?(U=j(V),A.current=U,_.current=B):U=A.current:(U=j(V),A.current=U,_.current=B));const H=[C,U,D];return H.t=C,H.i18n=U,H.ready=D,H},[C,P,D,P.resolvedLanguage,P.language,P.languages]);if(s&&c&&!D)throw new Promise(V=>{const B=()=>V();t.lng?u5(s,t.lng,p,B):ZT(s,p,B)});return L},JJ={common:{save:"保存",cancel:"取消",delete:"删除",edit:"编辑",add:"新增",search:"搜索",filter:"筛选",export:"导出",import:"导入",refresh:"刷新",confirm:"确认",close:"关闭",loading:"加载中...",noData:"暂无数据",success:"操作成功",error:"操作失败",warning:"警告",info:"提示",all:"全部",enable:"启用",disable:"禁用",active:"激活",inactive:"未激活",status:"状态",actions:"操作",createdAt:"创建时间",updatedAt:"更新时间",version:"版本",description:"描述",name:"名称",type:"类型",language:"语言",jurisdiction:"司法辖区",assetType:"资产类型"},auth:{login:"管理员登录",loginSubtitle:"使用您的 NAC 系统账户登录",email:"邮箱地址",password:"密码",loginButton:"登录系统",loggingIn:"登录中...",loginSuccess:"登录成功",loginFailed:"登录失败,请检查邮箱和密码",logout:"退出登录",logoutSuccess:"已退出登录",authNotice:"本系统使用 NAC 原生认证服务,所有操作均记录审计日志",verifying:"验证身份中...",unauthorized:"无访问权限",adminOnly:"此系统仅限管理员访问"},nav:{dashboard:"态势感知",knowledgeBase:"知识库管理",crawlers:"采集器监控",approvalCases:"AI审批案例",tagEngine:"标签引擎",protocolRegistry:"协议族注册表",auditLog:"权限与审计",systemTitle:"NAC 知识引擎",systemSubtitle:"管理后台",adminPanel:"管理员面板"},dashboard:{title:"全局态势感知",subtitle:"实时监控知识引擎运行状态",totalRules:"合规规则总数",activeCrawlers:"活跃采集器",pendingReviews:"待审批案例",approvalRate:"审批通过率",knowledgeGrowth:"知识库增长趋势",jurisdictionCoverage:"司法辖区覆盖",assetDistribution:"资产类型分布",crawlerHealth:"采集器健康度",recentActivity:"最近活动",systemStatus:"系统状态",allSystemsNormal:"所有系统运行正常",lastUpdated:"最后更新",viewAll:"查看全部",rules:"条规则",crawlers:"个采集器",cases:"个案例"},knowledgeBase:{title:"知识库管理",subtitle:"管理合规规则、法规条文与交易细则",addRule:"新增规则",editRule:"编辑规则",deleteRule:"删除规则",ruleTitle:"规则标题",ruleContent:"规则内容",ruleSource:"规则来源",effectiveDate:"生效日期",translationStatus:"翻译状态",original:"原文",aiTranslated:"AI翻译",humanReviewed:"人工审核",addTranslation:"添加翻译",missingTranslation:"缺少翻译",languageCoverage:"语言覆盖",contentLanguage:"内容语言",switchLanguage:"切换语言查看",ruleActivated:"规则已启用",ruleDeactivated:"规则已禁用",searchPlaceholder:"搜索规则标题、内容或来源...",filterByJurisdiction:"按辖区筛选",filterByAssetType:"按资产类型筛选",filterByStatus:"按状态筛选",totalRules:"共 {{count}} 条规则"},crawlers:{title:"采集器监控与管理",subtitle:"实时监控内部与外部数据采集器",internalCrawlers:"内部采集器",externalCrawlers:"外部采集器",crawlerName:"采集器名称",crawlerType:"采集器类型",lastRun:"最后运行",nextRun:"下次运行",successRate:"成功率",totalCollected:"采集总量",triggerNow:"立即触发",triggering:"触发中...",triggered:"已触发采集任务",addSource:"新增采集源",editSource:"编辑采集源",sourceUrl:"采集源URL",frequency:"采集频率",internal:"内部",external:"外部",running:"运行中",idle:"空闲",error:"错误",logs:"采集日志",viewLogs:"查看日志"},approvals:{title:"AI审批案例审查",subtitle:"审查AI自动审批结果,对中风险案例进行人工复核",caseId:"案例ID",assetName:"资产名称",applicant:"申请人",submittedAt:"提交时间",riskLevel:"风险等级",aiDecision:"AI决策",humanDecision:"人工决策",reviewStatus:"审核状态",pendingReview:"待审核",approved:"已通过",rejected:"已拒绝",underReview:"审核中",highRisk:"高风险",mediumRisk:"中风险",lowRisk:"低风险",approve:"通过",reject:"拒绝",reviewComment:"审核意见",addComment:"添加审核意见...",submitReview:"提交审核",aiConfidence:"AI置信度",complianceScore:"合规评分",missingDocuments:"缺失文件",reviewHistory:"审核历史",caseDetails:"案例详情",viewDetails:"查看详情"},tagEngine:{title:"标签与规则引擎治理",subtitle:"管理自动化标签序列生成规则",tagId:"标签ID",tagName:"标签名称",tagCategory:"标签分类",tagRule:"匹配规则",matchPattern:"匹配模式",priority:"优先级",addTag:"新增标签",editTag:"编辑标签",deleteTag:"删除标签",testTag:"测试标签",testInput:"测试输入",testResult:"测试结果",jurisdictionDimension:"司法辖区维度",assetTypeDimension:"资产分类维度",complianceDimension:"合规要求维度",riskDimension:"风险等级维度",crossLanguageAlignment:"跨语言对齐",standardTagId:"标准标签ID",languageMappings:"语言映射"},protocols:{title:"协议族注册表管理",subtitle:"管理接入AI审批系统的所有NAC原生协议",protocolName:"协议名称",protocolCode:"协议代码",protocolVersion:"协议版本",protocolStatus:"协议状态",triggerConditions:"触发条件",endpoint:"服务端点",addProtocol:"注册新协议",editProtocol:"编辑协议",deactivateProtocol:"停用协议",activateProtocol:"激活协议",protocolActivated:"协议已激活",protocolDeactivated:"协议已停用",registeredAt:"注册时间",lastCalled:"最后调用",callCount:"调用次数",protocolFamily:"协议族",coreProtocols:"核心协议"},audit:{title:"权限与审计管理",subtitle:"基于角色的访问控制与不可篡改审计日志",users:"用户管理",roles:"角色管理",auditLogs:"审计日志",userId:"用户ID",userName:"用户名",userEmail:"邮箱",userRole:"角色",lastLogin:"最后登录",admin:"管理员",reviewer:"审核员",legal:"法务",operator:"运营",action:"操作",resource:"资源",ipAddress:"IP地址",timestamp:"时间戳",result:"结果",details:"详情",exportLogs:"导出日志",filterByUser:"按用户筛选",filterByAction:"按操作筛选",filterByDate:"按日期筛选",immutableNote:"审计日志不可篡改,所有关键操作均被记录"},languageSwitcher:{selectLanguage:"选择语言",currentLanguage:"当前语言",knowledgeLanguage:"知识库语言"},jurisdictions:{CN:"中国",HK:"香港",US:"美国",EU:"欧盟",SG:"新加坡",AE:"阿联酋",JP:"日本",KR:"韩国",RU:"俄罗斯",GB:"英国",ALL:"全部辖区"},assetTypes:{"RE.RESIDENTIAL":"住宅房地产","RE.COMMERCIAL":"商业地产","RE.INDUSTRIAL":"工业地产","FIN.EQUITY":"股权资产","FIN.DEBT":"债权资产","FIN.FUND":"基金份额","COMM.PRECIOUS":"贵金属","COMM.ENERGY":"能源商品","IP.PATENT":"专利权","IP.COPYRIGHT":"版权","INFRA.TRANSPORT":"交通基础设施",ALL:"全部类型"}},eee={common:{save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",search:"Search",filter:"Filter",export:"Export",import:"Import",refresh:"Refresh",confirm:"Confirm",close:"Close",loading:"Loading...",noData:"No data available",success:"Operation successful",error:"Operation failed",warning:"Warning",info:"Info",all:"All",enable:"Enable",disable:"Disable",active:"Active",inactive:"Inactive",status:"Status",actions:"Actions",createdAt:"Created At",updatedAt:"Updated At",version:"Version",description:"Description",name:"Name",type:"Type",language:"Language",jurisdiction:"Jurisdiction",assetType:"Asset Type"},auth:{login:"Administrator Login",loginSubtitle:"Sign in with your NAC system account",email:"Email Address",password:"Password",loginButton:"Sign In",loggingIn:"Signing in...",loginSuccess:"Login successful",loginFailed:"Login failed. Please check your email and password.",logout:"Sign Out",logoutSuccess:"Signed out successfully",authNotice:"This system uses NAC native authentication. All operations are recorded in audit logs.",verifying:"Verifying identity...",unauthorized:"Access Denied",adminOnly:"This system is restricted to administrators only."},nav:{dashboard:"Situational Awareness",knowledgeBase:"Knowledge Base",crawlers:"Crawler Monitor",approvalCases:"AI Approval Cases",tagEngine:"Tag Engine",protocolRegistry:"Protocol Registry",auditLog:"Permissions & Audit",systemTitle:"NAC Knowledge Engine",systemSubtitle:"Admin Console",adminPanel:"Admin Panel"},dashboard:{title:"Global Situational Awareness",subtitle:"Real-time monitoring of knowledge engine status",totalRules:"Total Compliance Rules",activeCrawlers:"Active Crawlers",pendingReviews:"Pending Reviews",approvalRate:"Approval Rate",knowledgeGrowth:"Knowledge Base Growth",jurisdictionCoverage:"Jurisdiction Coverage",assetDistribution:"Asset Type Distribution",crawlerHealth:"Crawler Health",recentActivity:"Recent Activity",systemStatus:"System Status",allSystemsNormal:"All systems operational",lastUpdated:"Last Updated",viewAll:"View All",rules:"rules",crawlers:"crawlers",cases:"cases"},knowledgeBase:{title:"Knowledge Base Management",subtitle:"Manage compliance rules, regulations and transaction details",addRule:"Add Rule",editRule:"Edit Rule",deleteRule:"Delete Rule",ruleTitle:"Rule Title",ruleContent:"Rule Content",ruleSource:"Rule Source",effectiveDate:"Effective Date",translationStatus:"Translation Status",original:"Original",aiTranslated:"AI Translated",humanReviewed:"Human Reviewed",addTranslation:"Add Translation",missingTranslation:"Missing Translation",languageCoverage:"Language Coverage",contentLanguage:"Content Language",switchLanguage:"Switch language to view",ruleActivated:"Rule activated",ruleDeactivated:"Rule deactivated",searchPlaceholder:"Search rule title, content or source...",filterByJurisdiction:"Filter by Jurisdiction",filterByAssetType:"Filter by Asset Type",filterByStatus:"Filter by Status",totalRules:"{{count}} rules total"},crawlers:{title:"Crawler Monitoring & Management",subtitle:"Real-time monitoring of internal and external data crawlers",internalCrawlers:"Internal Crawlers",externalCrawlers:"External Crawlers",crawlerName:"Crawler Name",crawlerType:"Crawler Type",lastRun:"Last Run",nextRun:"Next Run",successRate:"Success Rate",totalCollected:"Total Collected",triggerNow:"Trigger Now",triggering:"Triggering...",triggered:"Crawl task triggered",addSource:"Add Source",editSource:"Edit Source",sourceUrl:"Source URL",frequency:"Frequency",internal:"Internal",external:"External",running:"Running",idle:"Idle",error:"Error",logs:"Logs",viewLogs:"View Logs"},approvals:{title:"AI Approval Case Review",subtitle:"Review AI auto-approval results and manually review medium-risk cases",caseId:"Case ID",assetName:"Asset Name",applicant:"Applicant",submittedAt:"Submitted At",riskLevel:"Risk Level",aiDecision:"AI Decision",humanDecision:"Human Decision",reviewStatus:"Review Status",pendingReview:"Pending Review",approved:"Approved",rejected:"Rejected",underReview:"Under Review",highRisk:"High Risk",mediumRisk:"Medium Risk",lowRisk:"Low Risk",approve:"Approve",reject:"Reject",reviewComment:"Review Comment",addComment:"Add review comment...",submitReview:"Submit Review",aiConfidence:"AI Confidence",complianceScore:"Compliance Score",missingDocuments:"Missing Documents",reviewHistory:"Review History",caseDetails:"Case Details",viewDetails:"View Details"},tagEngine:{title:"Tag & Rule Engine Governance",subtitle:"Manage automated tag sequence generation rules",tagId:"Tag ID",tagName:"Tag Name",tagCategory:"Tag Category",tagRule:"Tag Rule",matchPattern:"Match Pattern",priority:"Priority",addTag:"Add Tag",editTag:"Edit Tag",deleteTag:"Delete Tag",testTag:"Test Tag",testInput:"Test Input",testResult:"Test Result",jurisdictionDimension:"Jurisdiction Dimension",assetTypeDimension:"Asset Type Dimension",complianceDimension:"Compliance Dimension",riskDimension:"Risk Dimension",crossLanguageAlignment:"Cross-Language Alignment",standardTagId:"Standard Tag ID",languageMappings:"Language Mappings"},protocols:{title:"Protocol Registry Management",subtitle:"Manage all NAC native protocols integrated with the AI approval system",protocolName:"Protocol Name",protocolCode:"Protocol Code",protocolVersion:"Protocol Version",protocolStatus:"Protocol Status",triggerConditions:"Trigger Conditions",endpoint:"Service Endpoint",addProtocol:"Register Protocol",editProtocol:"Edit Protocol",deactivateProtocol:"Deactivate Protocol",activateProtocol:"Activate Protocol",protocolActivated:"Protocol activated",protocolDeactivated:"Protocol deactivated",registeredAt:"Registered At",lastCalled:"Last Called",callCount:"Call Count",protocolFamily:"Protocol Family",coreProtocols:"Core Protocols"},audit:{title:"Permissions & Audit Management",subtitle:"Role-based access control and immutable audit logs",users:"User Management",roles:"Role Management",auditLogs:"Audit Logs",userId:"User ID",userName:"Username",userEmail:"Email",userRole:"Role",lastLogin:"Last Login",admin:"Admin",reviewer:"Reviewer",legal:"Legal",operator:"Operator",action:"Action",resource:"Resource",ipAddress:"IP Address",timestamp:"Timestamp",result:"Result",details:"Details",exportLogs:"Export Logs",filterByUser:"Filter by User",filterByAction:"Filter by Action",filterByDate:"Filter by Date",immutableNote:"Audit logs are immutable. All critical operations are recorded."},languageSwitcher:{selectLanguage:"Select Language",currentLanguage:"Current Language",knowledgeLanguage:"Knowledge Base Language"},jurisdictions:{CN:"China",HK:"Hong Kong",US:"United States",EU:"European Union",SG:"Singapore",AE:"UAE",JP:"Japan",KR:"South Korea",RU:"Russia",GB:"United Kingdom",ALL:"All Jurisdictions"},assetTypes:{"RE.RESIDENTIAL":"Residential Real Estate","RE.COMMERCIAL":"Commercial Real Estate","RE.INDUSTRIAL":"Industrial Real Estate","FIN.EQUITY":"Equity Assets","FIN.DEBT":"Debt Assets","FIN.FUND":"Fund Shares","COMM.PRECIOUS":"Precious Metals","COMM.ENERGY":"Energy Commodities","IP.PATENT":"Patents","IP.COPYRIGHT":"Copyrights","INFRA.TRANSPORT":"Transport Infrastructure",ALL:"All Types"}},tee={common:{save:"حفظ",cancel:"إلغاء",delete:"حذف",edit:"تعديل",add:"إضافة",search:"بحث",filter:"تصفية",export:"تصدير",import:"استيراد",refresh:"تحديث",confirm:"تأكيد",close:"إغلاق",loading:"جاري التحميل...",noData:"لا توجد بيانات",success:"تمت العملية بنجاح",error:"فشلت العملية",warning:"تحذير",info:"معلومات",all:"الكل",enable:"تفعيل",disable:"تعطيل",active:"نشط",inactive:"غير نشط",status:"الحالة",actions:"الإجراءات",createdAt:"تاريخ الإنشاء",updatedAt:"تاريخ التحديث",version:"الإصدار",description:"الوصف",name:"الاسم",type:"النوع",language:"اللغة",jurisdiction:"الولاية القضائية",assetType:"نوع الأصل"},auth:{login:"تسجيل دخول المسؤول",loginSubtitle:"سجّل الدخول باستخدام حساب NAC الخاص بك",email:"البريد الإلكتروني",password:"كلمة المرور",loginButton:"تسجيل الدخول",loggingIn:"جاري تسجيل الدخول...",loginSuccess:"تم تسجيل الدخول بنجاح",loginFailed:"فشل تسجيل الدخول. يرجى التحقق من البريد الإلكتروني وكلمة المرور.",logout:"تسجيل الخروج",logoutSuccess:"تم تسجيل الخروج بنجاح",authNotice:"يستخدم هذا النظام مصادقة NAC الأصلية. يتم تسجيل جميع العمليات في سجلات التدقيق.",verifying:"جاري التحقق من الهوية...",unauthorized:"تم رفض الوصول",adminOnly:"هذا النظام مقيد للمسؤولين فقط."},nav:{dashboard:"الوعي الظرفي",knowledgeBase:"قاعدة المعرفة",crawlers:"مراقبة الزواحف",approvalCases:"حالات الموافقة بالذكاء الاصطناعي",tagEngine:"محرك العلامات",protocolRegistry:"سجل البروتوكولات",auditLog:"الصلاحيات والتدقيق",systemTitle:"محرك معرفة NAC",systemSubtitle:"لوحة الإدارة",adminPanel:"لوحة المسؤول"},dashboard:{title:"الوعي الظرفي العالمي",subtitle:"مراقبة حالة محرك المعرفة في الوقت الفعلي",totalRules:"إجمالي قواعد الامتثال",activeCrawlers:"الزواحف النشطة",pendingReviews:"المراجعات المعلقة",approvalRate:"معدل الموافقة",knowledgeGrowth:"نمو قاعدة المعرفة",jurisdictionCoverage:"تغطية الولايات القضائية",assetDistribution:"توزيع أنواع الأصول",crawlerHealth:"صحة الزواحف",recentActivity:"النشاط الأخير",systemStatus:"حالة النظام",allSystemsNormal:"جميع الأنظمة تعمل بشكل طبيعي",lastUpdated:"آخر تحديث",viewAll:"عرض الكل",rules:"قاعدة",crawlers:"زاحف",cases:"حالة"},knowledgeBase:{title:"إدارة قاعدة المعرفة",subtitle:"إدارة قواعد الامتثال واللوائح وتفاصيل المعاملات",addRule:"إضافة قاعدة",editRule:"تعديل القاعدة",deleteRule:"حذف القاعدة",ruleTitle:"عنوان القاعدة",ruleContent:"محتوى القاعدة",ruleSource:"مصدر القاعدة",effectiveDate:"تاريخ السريان",translationStatus:"حالة الترجمة",original:"النص الأصلي",aiTranslated:"ترجمة ذكاء اصطناعي",humanReviewed:"مراجعة بشرية",addTranslation:"إضافة ترجمة",missingTranslation:"ترجمة مفقودة",languageCoverage:"تغطية اللغات",contentLanguage:"لغة المحتوى",switchLanguage:"تبديل اللغة للعرض",ruleActivated:"تم تفعيل القاعدة",ruleDeactivated:"تم تعطيل القاعدة",searchPlaceholder:"ابحث في عنوان القاعدة أو المحتوى أو المصدر...",filterByJurisdiction:"تصفية حسب الولاية",filterByAssetType:"تصفية حسب نوع الأصل",filterByStatus:"تصفية حسب الحالة",totalRules:"{{count}} قاعدة إجمالاً"},crawlers:{title:"مراقبة وإدارة الزواحف",subtitle:"مراقبة زواحف جمع البيانات الداخلية والخارجية في الوقت الفعلي",internalCrawlers:"الزواحف الداخلية",externalCrawlers:"الزواحف الخارجية",crawlerName:"اسم الزاحف",crawlerType:"نوع الزاحف",lastRun:"آخر تشغيل",nextRun:"التشغيل التالي",successRate:"معدل النجاح",totalCollected:"إجمالي المجموع",triggerNow:"تشغيل الآن",triggering:"جاري التشغيل...",triggered:"تم تشغيل مهمة الزحف",addSource:"إضافة مصدر",editSource:"تعديل المصدر",sourceUrl:"رابط المصدر",frequency:"التكرار",internal:"داخلي",external:"خارجي",running:"يعمل",idle:"خامل",error:"خطأ",logs:"السجلات",viewLogs:"عرض السجلات"},approvals:{title:"مراجعة حالات الموافقة بالذكاء الاصطناعي",subtitle:"مراجعة نتائج الموافقة التلقائية ومراجعة الحالات متوسطة المخاطر يدوياً",caseId:"معرف الحالة",assetName:"اسم الأصل",applicant:"مقدم الطلب",submittedAt:"تاريخ التقديم",riskLevel:"مستوى المخاطر",aiDecision:"قرار الذكاء الاصطناعي",humanDecision:"القرار البشري",reviewStatus:"حالة المراجعة",pendingReview:"في انتظار المراجعة",approved:"موافق عليه",rejected:"مرفوض",underReview:"قيد المراجعة",highRisk:"مخاطر عالية",mediumRisk:"مخاطر متوسطة",lowRisk:"مخاطر منخفضة",approve:"موافقة",reject:"رفض",reviewComment:"تعليق المراجعة",addComment:"أضف تعليق المراجعة...",submitReview:"إرسال المراجعة",aiConfidence:"ثقة الذكاء الاصطناعي",complianceScore:"درجة الامتثال",missingDocuments:"المستندات المفقودة",reviewHistory:"سجل المراجعة",caseDetails:"تفاصيل الحالة",viewDetails:"عرض التفاصيل"},tagEngine:{title:"حوكمة محرك العلامات والقواعد",subtitle:"إدارة قواعد توليد تسلسل العلامات التلقائية",tagId:"معرف العلامة",tagName:"اسم العلامة",tagCategory:"فئة العلامة",tagRule:"قاعدة العلامة",matchPattern:"نمط المطابقة",priority:"الأولوية",addTag:"إضافة علامة",editTag:"تعديل العلامة",deleteTag:"حذف العلامة",testTag:"اختبار العلامة",testInput:"مدخل الاختبار",testResult:"نتيجة الاختبار",jurisdictionDimension:"بُعد الولاية القضائية",assetTypeDimension:"بُعد نوع الأصل",complianceDimension:"بُعد الامتثال",riskDimension:"بُعد المخاطر",crossLanguageAlignment:"المحاذاة عبر اللغات",standardTagId:"معرف العلامة القياسي",languageMappings:"تعيينات اللغات"},protocols:{title:"إدارة سجل البروتوكولات",subtitle:"إدارة جميع بروتوكولات NAC الأصلية المدمجة مع نظام الموافقة بالذكاء الاصطناعي",protocolName:"اسم البروتوكول",protocolCode:"كود البروتوكول",protocolVersion:"إصدار البروتوكول",protocolStatus:"حالة البروتوكول",triggerConditions:"شروط التشغيل",endpoint:"نقطة الخدمة",addProtocol:"تسجيل بروتوكول",editProtocol:"تعديل البروتوكول",deactivateProtocol:"تعطيل البروتوكول",activateProtocol:"تفعيل البروتوكول",protocolActivated:"تم تفعيل البروتوكول",protocolDeactivated:"تم تعطيل البروتوكول",registeredAt:"تاريخ التسجيل",lastCalled:"آخر استدعاء",callCount:"عدد الاستدعاءات",protocolFamily:"عائلة البروتوكولات",coreProtocols:"البروتوكولات الأساسية"},audit:{title:"إدارة الصلاحيات والتدقيق",subtitle:"التحكم في الوصول المستند إلى الأدوار وسجلات التدقيق غير القابلة للتغيير",users:"إدارة المستخدمين",roles:"إدارة الأدوار",auditLogs:"سجلات التدقيق",userId:"معرف المستخدم",userName:"اسم المستخدم",userEmail:"البريد الإلكتروني",userRole:"دور المستخدم",lastLogin:"آخر تسجيل دخول",admin:"مسؤول",reviewer:"مراجع",legal:"قانوني",operator:"مشغل",action:"الإجراء",resource:"المورد",ipAddress:"عنوان IP",timestamp:"الطابع الزمني",result:"النتيجة",details:"التفاصيل",exportLogs:"تصدير السجلات",filterByUser:"تصفية حسب المستخدم",filterByAction:"تصفية حسب الإجراء",filterByDate:"تصفية حسب التاريخ",immutableNote:"سجلات التدقيق غير قابلة للتغيير. يتم تسجيل جميع العمليات الحرجة."},languageSwitcher:{selectLanguage:"اختر اللغة",currentLanguage:"اللغة الحالية",knowledgeLanguage:"لغة قاعدة المعرفة"},jurisdictions:{CN:"الصين",HK:"هونغ كونغ",US:"الولايات المتحدة",EU:"الاتحاد الأوروبي",SG:"سنغافورة",AE:"الإمارات العربية المتحدة",JP:"اليابان",KR:"كوريا الجنوبية",RU:"روسيا",GB:"المملكة المتحدة",ALL:"جميع الولايات"},assetTypes:{"RE.RESIDENTIAL":"العقارات السكنية","RE.COMMERCIAL":"العقارات التجارية","RE.INDUSTRIAL":"العقارات الصناعية","FIN.EQUITY":"أصول الملكية","FIN.DEBT":"أصول الدين","FIN.FUND":"حصص الصناديق","COMM.PRECIOUS":"المعادن الثمينة","COMM.ENERGY":"سلع الطاقة","IP.PATENT":"براءات الاختراع","IP.COPYRIGHT":"حقوق النشر","INFRA.TRANSPORT":"البنية التحتية للنقل",ALL:"جميع الأنواع"}},nee={common:{save:"保存",cancel:"キャンセル",delete:"削除",edit:"編集",add:"追加",search:"検索",filter:"フィルター",export:"エクスポート",import:"インポート",refresh:"更新",confirm:"確認",close:"閉じる",loading:"読み込み中...",noData:"データなし",success:"操作成功",error:"操作失敗",warning:"警告",info:"情報",all:"すべて",enable:"有効",disable:"無効",active:"アクティブ",inactive:"非アクティブ",status:"ステータス",actions:"操作",createdAt:"作成日時",updatedAt:"更新日時",version:"バージョン",description:"説明",name:"名前",type:"タイプ",language:"言語",jurisdiction:"司法管轄",assetType:"資産タイプ"},auth:{login:"管理者ログイン",loginSubtitle:"NACシステムアカウントでサインイン",email:"メールアドレス",password:"パスワード",loginButton:"ログイン",loggingIn:"ログイン中...",loginSuccess:"ログイン成功",loginFailed:"ログイン失敗。メールとパスワードを確認してください。",logout:"ログアウト",logoutSuccess:"ログアウトしました",authNotice:"このシステムはNACネイティブ認証を使用しています。すべての操作は監査ログに記録されます。",verifying:"認証中...",unauthorized:"アクセス拒否",adminOnly:"このシステムは管理者のみアクセス可能です。"},nav:{dashboard:"状況認識",knowledgeBase:"ナレッジベース",crawlers:"クローラー監視",approvalCases:"AI承認ケース",tagEngine:"タグエンジン",protocolRegistry:"プロトコルレジストリ",auditLog:"権限と監査",systemTitle:"NACナレッジエンジン",systemSubtitle:"管理コンソール",adminPanel:"管理パネル"},dashboard:{title:"グローバル状況認識",subtitle:"ナレッジエンジンの稼働状況をリアルタイム監視",totalRules:"コンプライアンスルール総数",activeCrawlers:"アクティブクローラー",pendingReviews:"承認待ちケース",approvalRate:"承認率",knowledgeGrowth:"ナレッジベース成長",jurisdictionCoverage:"管轄カバレッジ",assetDistribution:"資産タイプ分布",crawlerHealth:"クローラー健全性",recentActivity:"最近のアクティビティ",systemStatus:"システム状態",allSystemsNormal:"すべてのシステム正常稼働",lastUpdated:"最終更新",viewAll:"すべて表示",rules:"件のルール",crawlers:"台のクローラー",cases:"件のケース"},knowledgeBase:{title:"ナレッジベース管理",subtitle:"コンプライアンスルール、規制、取引詳細の管理",addRule:"ルール追加",editRule:"ルール編集",deleteRule:"ルール削除",ruleTitle:"ルールタイトル",ruleContent:"ルール内容",ruleSource:"ルールソース",effectiveDate:"発効日",translationStatus:"翻訳ステータス",original:"原文",aiTranslated:"AI翻訳",humanReviewed:"人間によるレビュー済み",addTranslation:"翻訳追加",missingTranslation:"翻訳なし",languageCoverage:"言語カバレッジ",contentLanguage:"コンテンツ言語",switchLanguage:"言語を切り替えて表示",ruleActivated:"ルールを有効化しました",ruleDeactivated:"ルールを無効化しました",searchPlaceholder:"ルールタイトル、内容、ソースを検索...",filterByJurisdiction:"管轄でフィルター",filterByAssetType:"資産タイプでフィルター",filterByStatus:"ステータスでフィルター",totalRules:"合計{{count}}件のルール"},crawlers:{title:"クローラー監視・管理",subtitle:"内部・外部データクローラーのリアルタイム監視",internalCrawlers:"内部クローラー",externalCrawlers:"外部クローラー",crawlerName:"クローラー名",crawlerType:"クローラータイプ",lastRun:"最終実行",nextRun:"次回実行",successRate:"成功率",totalCollected:"収集総数",triggerNow:"今すぐ実行",triggering:"実行中...",triggered:"クロールタスクを開始しました",addSource:"ソース追加",editSource:"ソース編集",sourceUrl:"ソースURL",frequency:"頻度",internal:"内部",external:"外部",running:"実行中",idle:"待機中",error:"エラー",logs:"ログ",viewLogs:"ログを表示"},approvals:{title:"AI承認ケースレビュー",subtitle:"AI自動承認結果のレビューと中リスクケースの手動審査",caseId:"ケースID",assetName:"資産名",applicant:"申請者",submittedAt:"提出日時",riskLevel:"リスクレベル",aiDecision:"AI判定",humanDecision:"人間の判定",reviewStatus:"レビューステータス",pendingReview:"レビュー待ち",approved:"承認済み",rejected:"却下済み",underReview:"レビュー中",highRisk:"高リスク",mediumRisk:"中リスク",lowRisk:"低リスク",approve:"承認",reject:"却下",reviewComment:"レビューコメント",addComment:"レビューコメントを追加...",submitReview:"レビュー送信",aiConfidence:"AI信頼度",complianceScore:"コンプライアンススコア",missingDocuments:"不足書類",reviewHistory:"レビュー履歴",caseDetails:"ケース詳細",viewDetails:"詳細を表示"},tagEngine:{title:"タグ・ルールエンジンガバナンス",subtitle:"自動タグシーケンス生成ルールの管理",tagId:"タグID",tagName:"タグ名",tagCategory:"タグカテゴリ",tagRule:"タグルール",matchPattern:"マッチパターン",priority:"優先度",addTag:"タグ追加",editTag:"タグ編集",deleteTag:"タグ削除",testTag:"タグテスト",testInput:"テスト入力",testResult:"テスト結果",jurisdictionDimension:"管轄ディメンション",assetTypeDimension:"資産タイプディメンション",complianceDimension:"コンプライアンスディメンション",riskDimension:"リスクディメンション",crossLanguageAlignment:"クロス言語アライメント",standardTagId:"標準タグID",languageMappings:"言語マッピング"},protocols:{title:"プロトコルレジストリ管理",subtitle:"AIシステムに統合されたすべてのNACネイティブプロトコルの管理",protocolName:"プロトコル名",protocolCode:"プロトコルコード",protocolVersion:"プロトコルバージョン",protocolStatus:"プロトコルステータス",triggerConditions:"トリガー条件",endpoint:"サービスエンドポイント",addProtocol:"プロトコル登録",editProtocol:"プロトコル編集",deactivateProtocol:"プロトコル無効化",activateProtocol:"プロトコル有効化",protocolActivated:"プロトコルを有効化しました",protocolDeactivated:"プロトコルを無効化しました",registeredAt:"登録日時",lastCalled:"最終呼び出し",callCount:"呼び出し回数",protocolFamily:"プロトコルファミリー",coreProtocols:"コアプロトコル"},audit:{title:"権限・監査管理",subtitle:"ロールベースのアクセス制御と改ざん不可能な監査ログ",users:"ユーザー管理",roles:"ロール管理",auditLogs:"監査ログ",userId:"ユーザーID",userName:"ユーザー名",userEmail:"メール",userRole:"ロール",lastLogin:"最終ログイン",admin:"管理者",reviewer:"レビュアー",legal:"法務",operator:"オペレーター",action:"アクション",resource:"リソース",ipAddress:"IPアドレス",timestamp:"タイムスタンプ",result:"結果",details:"詳細",exportLogs:"ログエクスポート",filterByUser:"ユーザーでフィルター",filterByAction:"アクションでフィルター",filterByDate:"日付でフィルター",immutableNote:"監査ログは改ざん不可能です。すべての重要な操作が記録されます。"},languageSwitcher:{selectLanguage:"言語を選択",currentLanguage:"現在の言語",knowledgeLanguage:"ナレッジベース言語"},jurisdictions:{CN:"中国",HK:"香港",US:"米国",EU:"EU",SG:"シンガポール",AE:"UAE",JP:"日本",KR:"韓国",RU:"ロシア",GB:"英国",ALL:"すべての管轄"},assetTypes:{"RE.RESIDENTIAL":"住宅不動産","RE.COMMERCIAL":"商業不動産","RE.INDUSTRIAL":"工業不動産","FIN.EQUITY":"株式資産","FIN.DEBT":"債務資産","FIN.FUND":"ファンド持分","COMM.PRECIOUS":"貴金属","COMM.ENERGY":"エネルギー商品","IP.PATENT":"特許","IP.COPYRIGHT":"著作権","INFRA.TRANSPORT":"交通インフラ",ALL:"すべてのタイプ"}},ree={common:{save:"저장",cancel:"취소",delete:"삭제",edit:"편집",add:"추가",search:"검색",filter:"필터",export:"내보내기",import:"가져오기",refresh:"새로고침",confirm:"확인",close:"닫기",loading:"로딩 중...",noData:"데이터 없음",success:"작업 성공",error:"작업 실패",warning:"경고",info:"정보",all:"전체",enable:"활성화",disable:"비활성화",active:"활성",inactive:"비활성",status:"상태",actions:"작업",createdAt:"생성일시",updatedAt:"수정일시",version:"버전",description:"설명",name:"이름",type:"유형",language:"언어",jurisdiction:"사법 관할",assetType:"자산 유형"},auth:{login:"관리자 로그인",loginSubtitle:"NAC 시스템 계정으로 로그인",email:"이메일 주소",password:"비밀번호",loginButton:"로그인",loggingIn:"로그인 중...",loginSuccess:"로그인 성공",loginFailed:"로그인 실패. 이메일과 비밀번호를 확인하세요.",logout:"로그아웃",logoutSuccess:"로그아웃되었습니다",authNotice:"이 시스템은 NAC 네이티브 인증을 사용합니다. 모든 작업은 감사 로그에 기록됩니다.",verifying:"신원 확인 중...",unauthorized:"접근 거부",adminOnly:"이 시스템은 관리자만 접근할 수 있습니다."},nav:{dashboard:"상황 인식",knowledgeBase:"지식 베이스",crawlers:"크롤러 모니터",approvalCases:"AI 승인 케이스",tagEngine:"태그 엔진",protocolRegistry:"프로토콜 레지스트리",auditLog:"권한 및 감사",systemTitle:"NAC 지식 엔진",systemSubtitle:"관리 콘솔",adminPanel:"관리자 패널"},dashboard:{title:"글로벌 상황 인식",subtitle:"지식 엔진 운영 상태 실시간 모니터링",totalRules:"총 컴플라이언스 규칙",activeCrawlers:"활성 크롤러",pendingReviews:"검토 대기 케이스",approvalRate:"승인율",knowledgeGrowth:"지식 베이스 성장",jurisdictionCoverage:"관할 커버리지",assetDistribution:"자산 유형 분포",crawlerHealth:"크롤러 상태",recentActivity:"최근 활동",systemStatus:"시스템 상태",allSystemsNormal:"모든 시스템 정상 운영",lastUpdated:"마지막 업데이트",viewAll:"전체 보기",rules:"개 규칙",crawlers:"개 크롤러",cases:"개 케이스"},knowledgeBase:{title:"지식 베이스 관리",subtitle:"컴플라이언스 규칙, 규정 및 거래 세부사항 관리",addRule:"규칙 추가",editRule:"규칙 편집",deleteRule:"규칙 삭제",ruleTitle:"규칙 제목",ruleContent:"규칙 내용",ruleSource:"규칙 출처",effectiveDate:"발효일",translationStatus:"번역 상태",original:"원문",aiTranslated:"AI 번역",humanReviewed:"인간 검토 완료",addTranslation:"번역 추가",missingTranslation:"번역 없음",languageCoverage:"언어 커버리지",contentLanguage:"콘텐츠 언어",switchLanguage:"언어 전환하여 보기",ruleActivated:"규칙이 활성화되었습니다",ruleDeactivated:"규칙이 비활성화되었습니다",searchPlaceholder:"규칙 제목, 내용 또는 출처 검색...",filterByJurisdiction:"관할로 필터",filterByAssetType:"자산 유형으로 필터",filterByStatus:"상태로 필터",totalRules:"총 {{count}}개 규칙"},crawlers:{title:"크롤러 모니터링 및 관리",subtitle:"내부 및 외부 데이터 크롤러 실시간 모니터링",internalCrawlers:"내부 크롤러",externalCrawlers:"외부 크롤러",crawlerName:"크롤러 이름",crawlerType:"크롤러 유형",lastRun:"마지막 실행",nextRun:"다음 실행",successRate:"성공률",totalCollected:"총 수집량",triggerNow:"지금 실행",triggering:"실행 중...",triggered:"크롤 작업이 시작되었습니다",addSource:"소스 추가",editSource:"소스 편집",sourceUrl:"소스 URL",frequency:"빈도",internal:"내부",external:"외부",running:"실행 중",idle:"대기 중",error:"오류",logs:"로그",viewLogs:"로그 보기"},approvals:{title:"AI 승인 케이스 검토",subtitle:"AI 자동 승인 결과 검토 및 중간 위험 케이스 수동 심사",caseId:"케이스 ID",assetName:"자산명",applicant:"신청자",submittedAt:"제출일시",riskLevel:"위험 수준",aiDecision:"AI 결정",humanDecision:"인간 결정",reviewStatus:"검토 상태",pendingReview:"검토 대기",approved:"승인됨",rejected:"거부됨",underReview:"검토 중",highRisk:"고위험",mediumRisk:"중간 위험",lowRisk:"저위험",approve:"승인",reject:"거부",reviewComment:"검토 의견",addComment:"검토 의견 추가...",submitReview:"검토 제출",aiConfidence:"AI 신뢰도",complianceScore:"컴플라이언스 점수",missingDocuments:"누락 서류",reviewHistory:"검토 이력",caseDetails:"케이스 상세",viewDetails:"상세 보기"},tagEngine:{title:"태그 및 규칙 엔진 거버넌스",subtitle:"자동화된 태그 시퀀스 생성 규칙 관리",tagId:"태그 ID",tagName:"태그 이름",tagCategory:"태그 카테고리",tagRule:"태그 규칙",matchPattern:"매칭 패턴",priority:"우선순위",addTag:"태그 추가",editTag:"태그 편집",deleteTag:"태그 삭제",testTag:"태그 테스트",testInput:"테스트 입력",testResult:"테스트 결과",jurisdictionDimension:"관할 차원",assetTypeDimension:"자산 유형 차원",complianceDimension:"컴플라이언스 차원",riskDimension:"위험 차원",crossLanguageAlignment:"교차 언어 정렬",standardTagId:"표준 태그 ID",languageMappings:"언어 매핑"},protocols:{title:"프로토콜 레지스트리 관리",subtitle:"AI 승인 시스템에 통합된 모든 NAC 네이티브 프로토콜 관리",protocolName:"프로토콜 이름",protocolCode:"프로토콜 코드",protocolVersion:"프로토콜 버전",protocolStatus:"프로토콜 상태",triggerConditions:"트리거 조건",endpoint:"서비스 엔드포인트",addProtocol:"프로토콜 등록",editProtocol:"프로토콜 편집",deactivateProtocol:"프로토콜 비활성화",activateProtocol:"프로토콜 활성화",protocolActivated:"프로토콜이 활성화되었습니다",protocolDeactivated:"프로토콜이 비활성화되었습니다",registeredAt:"등록일시",lastCalled:"마지막 호출",callCount:"호출 횟수",protocolFamily:"프로토콜 패밀리",coreProtocols:"핵심 프로토콜"},audit:{title:"권한 및 감사 관리",subtitle:"역할 기반 접근 제어 및 변경 불가능한 감사 로그",users:"사용자 관리",roles:"역할 관리",auditLogs:"감사 로그",userId:"사용자 ID",userName:"사용자명",userEmail:"이메일",userRole:"역할",lastLogin:"마지막 로그인",admin:"관리자",reviewer:"검토자",legal:"법무",operator:"운영자",action:"작업",resource:"리소스",ipAddress:"IP 주소",timestamp:"타임스탬프",result:"결과",details:"상세",exportLogs:"로그 내보내기",filterByUser:"사용자로 필터",filterByAction:"작업으로 필터",filterByDate:"날짜로 필터",immutableNote:"감사 로그는 변경할 수 없습니다. 모든 중요 작업이 기록됩니다."},languageSwitcher:{selectLanguage:"언어 선택",currentLanguage:"현재 언어",knowledgeLanguage:"지식 베이스 언어"},jurisdictions:{CN:"중국",HK:"홍콩",US:"미국",EU:"EU",SG:"싱가포르",AE:"UAE",JP:"일본",KR:"한국",RU:"러시아",GB:"영국",ALL:"모든 관할"},assetTypes:{"RE.RESIDENTIAL":"주거용 부동산","RE.COMMERCIAL":"상업용 부동산","RE.INDUSTRIAL":"산업용 부동산","FIN.EQUITY":"주식 자산","FIN.DEBT":"채무 자산","FIN.FUND":"펀드 지분","COMM.PRECIOUS":"귀금속","COMM.ENERGY":"에너지 상품","IP.PATENT":"특허","IP.COPYRIGHT":"저작권","INFRA.TRANSPORT":"교통 인프라",ALL:"모든 유형"}},aee={common:{save:"Enregistrer",cancel:"Annuler",delete:"Supprimer",edit:"Modifier",add:"Ajouter",search:"Rechercher",filter:"Filtrer",export:"Exporter",import:"Importer",refresh:"Actualiser",confirm:"Confirmer",close:"Fermer",loading:"Chargement...",noData:"Aucune donnée",success:"Opération réussie",error:"Opération échouée",warning:"Avertissement",info:"Information",all:"Tout",enable:"Activer",disable:"Désactiver",active:"Actif",inactive:"Inactif",status:"Statut",actions:"Actions",createdAt:"Créé le",updatedAt:"Mis à jour le",version:"Version",description:"Description",name:"Nom",type:"Type",language:"Langue",jurisdiction:"Juridiction",assetType:"Type d'actif"},auth:{login:"Connexion Administrateur",loginSubtitle:"Connectez-vous avec votre compte système NAC",email:"Adresse e-mail",password:"Mot de passe",loginButton:"Se connecter",loggingIn:"Connexion en cours...",loginSuccess:"Connexion réussie",loginFailed:"Échec de la connexion. Vérifiez votre e-mail et mot de passe.",logout:"Se déconnecter",logoutSuccess:"Déconnexion réussie",authNotice:"Ce système utilise l'authentification native NAC. Toutes les opérations sont enregistrées dans les journaux d'audit.",verifying:"Vérification de l'identité...",unauthorized:"Accès refusé",adminOnly:"Ce système est réservé aux administrateurs."},nav:{dashboard:"Conscience Situationnelle",knowledgeBase:"Base de Connaissances",crawlers:"Surveillance des Crawlers",approvalCases:"Cas d'Approbation IA",tagEngine:"Moteur de Tags",protocolRegistry:"Registre des Protocoles",auditLog:"Permissions et Audit",systemTitle:"Moteur de Connaissances NAC",systemSubtitle:"Console d'Administration",adminPanel:"Panneau Admin"},dashboard:{title:"Conscience Situationnelle Globale",subtitle:"Surveillance en temps réel du moteur de connaissances",totalRules:"Total des Règles de Conformité",activeCrawlers:"Crawlers Actifs",pendingReviews:"Cas en Attente",approvalRate:"Taux d'Approbation",knowledgeGrowth:"Croissance de la Base",jurisdictionCoverage:"Couverture Juridictionnelle",assetDistribution:"Distribution des Types d'Actifs",crawlerHealth:"Santé des Crawlers",recentActivity:"Activité Récente",systemStatus:"État du Système",allSystemsNormal:"Tous les systèmes opérationnels",lastUpdated:"Dernière mise à jour",viewAll:"Voir tout",rules:"règles",crawlers:"crawlers",cases:"cas"},knowledgeBase:{title:"Gestion de la Base de Connaissances",subtitle:"Gérer les règles de conformité, réglementations et détails des transactions",addRule:"Ajouter une règle",editRule:"Modifier la règle",deleteRule:"Supprimer la règle",ruleTitle:"Titre de la règle",ruleContent:"Contenu de la règle",ruleSource:"Source de la règle",effectiveDate:"Date d'entrée en vigueur",translationStatus:"Statut de traduction",original:"Original",aiTranslated:"Traduit par IA",humanReviewed:"Révisé par humain",addTranslation:"Ajouter une traduction",missingTranslation:"Traduction manquante",languageCoverage:"Couverture linguistique",contentLanguage:"Langue du contenu",switchLanguage:"Changer de langue pour afficher",ruleActivated:"Règle activée",ruleDeactivated:"Règle désactivée",searchPlaceholder:"Rechercher titre, contenu ou source...",filterByJurisdiction:"Filtrer par juridiction",filterByAssetType:"Filtrer par type d'actif",filterByStatus:"Filtrer par statut",totalRules:"{{count}} règles au total"},crawlers:{title:"Surveillance et Gestion des Crawlers",subtitle:"Surveillance en temps réel des crawlers internes et externes",internalCrawlers:"Crawlers Internes",externalCrawlers:"Crawlers Externes",crawlerName:"Nom du crawler",crawlerType:"Type de crawler",lastRun:"Dernière exécution",nextRun:"Prochaine exécution",successRate:"Taux de succès",totalCollected:"Total collecté",triggerNow:"Déclencher maintenant",triggering:"Déclenchement...",triggered:"Tâche de crawl déclenchée",addSource:"Ajouter une source",editSource:"Modifier la source",sourceUrl:"URL de la source",frequency:"Fréquence",internal:"Interne",external:"Externe",running:"En cours",idle:"Inactif",error:"Erreur",logs:"Journaux",viewLogs:"Voir les journaux"},approvals:{title:"Révision des Cas d'Approbation IA",subtitle:"Réviser les résultats d'approbation automatique et examiner manuellement les cas à risque moyen",caseId:"ID du cas",assetName:"Nom de l'actif",applicant:"Demandeur",submittedAt:"Soumis le",riskLevel:"Niveau de risque",aiDecision:"Décision IA",humanDecision:"Décision humaine",reviewStatus:"Statut de révision",pendingReview:"En attente de révision",approved:"Approuvé",rejected:"Rejeté",underReview:"En cours de révision",highRisk:"Risque élevé",mediumRisk:"Risque moyen",lowRisk:"Risque faible",approve:"Approuver",reject:"Rejeter",reviewComment:"Commentaire de révision",addComment:"Ajouter un commentaire...",submitReview:"Soumettre la révision",aiConfidence:"Confiance IA",complianceScore:"Score de conformité",missingDocuments:"Documents manquants",reviewHistory:"Historique de révision",caseDetails:"Détails du cas",viewDetails:"Voir les détails"},tagEngine:{title:"Gouvernance du Moteur de Tags",subtitle:"Gérer les règles de génération automatique de séquences de tags",tagId:"ID du tag",tagName:"Nom du tag",tagCategory:"Catégorie du tag",tagRule:"Règle du tag",matchPattern:"Modèle de correspondance",priority:"Priorité",addTag:"Ajouter un tag",editTag:"Modifier le tag",deleteTag:"Supprimer le tag",testTag:"Tester le tag",testInput:"Entrée de test",testResult:"Résultat du test",jurisdictionDimension:"Dimension juridictionnelle",assetTypeDimension:"Dimension type d'actif",complianceDimension:"Dimension conformité",riskDimension:"Dimension risque",crossLanguageAlignment:"Alignement multilingue",standardTagId:"ID de tag standard",languageMappings:"Mappages de langues"},protocols:{title:"Gestion du Registre des Protocoles",subtitle:"Gérer tous les protocoles natifs NAC intégrés au système d'approbation IA",protocolName:"Nom du protocole",protocolCode:"Code du protocole",protocolVersion:"Version du protocole",protocolStatus:"Statut du protocole",triggerConditions:"Conditions de déclenchement",endpoint:"Point de service",addProtocol:"Enregistrer un protocole",editProtocol:"Modifier le protocole",deactivateProtocol:"Désactiver le protocole",activateProtocol:"Activer le protocole",protocolActivated:"Protocole activé",protocolDeactivated:"Protocole désactivé",registeredAt:"Enregistré le",lastCalled:"Dernier appel",callCount:"Nombre d'appels",protocolFamily:"Famille de protocoles",coreProtocols:"Protocoles principaux"},audit:{title:"Gestion des Permissions et Audit",subtitle:"Contrôle d'accès basé sur les rôles et journaux d'audit immuables",users:"Gestion des utilisateurs",roles:"Gestion des rôles",auditLogs:"Journaux d'audit",userId:"ID utilisateur",userName:"Nom d'utilisateur",userEmail:"E-mail",userRole:"Rôle",lastLogin:"Dernière connexion",admin:"Administrateur",reviewer:"Réviseur",legal:"Juridique",operator:"Opérateur",action:"Action",resource:"Ressource",ipAddress:"Adresse IP",timestamp:"Horodatage",result:"Résultat",details:"Détails",exportLogs:"Exporter les journaux",filterByUser:"Filtrer par utilisateur",filterByAction:"Filtrer par action",filterByDate:"Filtrer par date",immutableNote:"Les journaux d'audit sont immuables. Toutes les opérations critiques sont enregistrées."},languageSwitcher:{selectLanguage:"Sélectionner la langue",currentLanguage:"Langue actuelle",knowledgeLanguage:"Langue de la base"},jurisdictions:{CN:"Chine",HK:"Hong Kong",US:"États-Unis",EU:"Union Européenne",SG:"Singapour",AE:"EAU",JP:"Japon",KR:"Corée du Sud",RU:"Russie",GB:"Royaume-Uni",ALL:"Toutes les juridictions"},assetTypes:{"RE.RESIDENTIAL":"Immobilier résidentiel","RE.COMMERCIAL":"Immobilier commercial","RE.INDUSTRIAL":"Immobilier industriel","FIN.EQUITY":"Actifs en actions","FIN.DEBT":"Actifs de dette","FIN.FUND":"Parts de fonds","COMM.PRECIOUS":"Métaux précieux","COMM.ENERGY":"Matières premières énergétiques","IP.PATENT":"Brevets","IP.COPYRIGHT":"Droits d'auteur","INFRA.TRANSPORT":"Infrastructure de transport",ALL:"Tous les types"}},iee={common:{save:"Сохранить",cancel:"Отмена",delete:"Удалить",edit:"Редактировать",add:"Добавить",search:"Поиск",filter:"Фильтр",export:"Экспорт",import:"Импорт",refresh:"Обновить",confirm:"Подтвердить",close:"Закрыть",loading:"Загрузка...",noData:"Нет данных",success:"Операция выполнена",error:"Ошибка операции",warning:"Предупреждение",info:"Информация",all:"Все",enable:"Включить",disable:"Отключить",active:"Активный",inactive:"Неактивный",status:"Статус",actions:"Действия",createdAt:"Создано",updatedAt:"Обновлено",version:"Версия",description:"Описание",name:"Название",type:"Тип",language:"Язык",jurisdiction:"Юрисдикция",assetType:"Тип актива"},auth:{login:"Вход для администратора",loginSubtitle:"Войдите с учётной записью системы NAC",email:"Адрес электронной почты",password:"Пароль",loginButton:"Войти",loggingIn:"Вход в систему...",loginSuccess:"Вход выполнен успешно",loginFailed:"Ошибка входа. Проверьте email и пароль.",logout:"Выйти",logoutSuccess:"Выход выполнен успешно",authNotice:"Эта система использует нативную аутентификацию NAC. Все операции записываются в журналы аудита.",verifying:"Проверка личности...",unauthorized:"Доступ запрещён",adminOnly:"Эта система доступна только администраторам."},nav:{dashboard:"Ситуационная осведомлённость",knowledgeBase:"База знаний",crawlers:"Мониторинг краулеров",approvalCases:"Дела об одобрении ИИ",tagEngine:"Движок тегов",protocolRegistry:"Реестр протоколов",auditLog:"Права и аудит",systemTitle:"Движок знаний NAC",systemSubtitle:"Консоль управления",adminPanel:"Панель администратора"},dashboard:{title:"Глобальная ситуационная осведомлённость",subtitle:"Мониторинг состояния движка знаний в реальном времени",totalRules:"Всего правил соответствия",activeCrawlers:"Активные краулеры",pendingReviews:"Ожидающие проверки",approvalRate:"Уровень одобрения",knowledgeGrowth:"Рост базы знаний",jurisdictionCoverage:"Охват юрисдикций",assetDistribution:"Распределение типов активов",crawlerHealth:"Состояние краулеров",recentActivity:"Последняя активность",systemStatus:"Состояние системы",allSystemsNormal:"Все системы работают нормально",lastUpdated:"Последнее обновление",viewAll:"Показать все",rules:"правил",crawlers:"краулеров",cases:"дел"},knowledgeBase:{title:"Управление базой знаний",subtitle:"Управление правилами соответствия, нормативными актами и деталями транзакций",addRule:"Добавить правило",editRule:"Редактировать правило",deleteRule:"Удалить правило",ruleTitle:"Заголовок правила",ruleContent:"Содержание правила",ruleSource:"Источник правила",effectiveDate:"Дата вступления в силу",translationStatus:"Статус перевода",original:"Оригинал",aiTranslated:"Перевод ИИ",humanReviewed:"Проверено человеком",addTranslation:"Добавить перевод",missingTranslation:"Перевод отсутствует",languageCoverage:"Языковой охват",contentLanguage:"Язык контента",switchLanguage:"Переключить язык для просмотра",ruleActivated:"Правило активировано",ruleDeactivated:"Правило деактивировано",searchPlaceholder:"Поиск по заголовку, содержанию или источнику...",filterByJurisdiction:"Фильтр по юрисдикции",filterByAssetType:"Фильтр по типу актива",filterByStatus:"Фильтр по статусу",totalRules:"Всего {{count}} правил"},crawlers:{title:"Мониторинг и управление краулерами",subtitle:"Мониторинг внутренних и внешних краулеров данных в реальном времени",internalCrawlers:"Внутренние краулеры",externalCrawlers:"Внешние краулеры",crawlerName:"Название краулера",crawlerType:"Тип краулера",lastRun:"Последний запуск",nextRun:"Следующий запуск",successRate:"Уровень успеха",totalCollected:"Всего собрано",triggerNow:"Запустить сейчас",triggering:"Запуск...",triggered:"Задача краулинга запущена",addSource:"Добавить источник",editSource:"Редактировать источник",sourceUrl:"URL источника",frequency:"Частота",internal:"Внутренний",external:"Внешний",running:"Работает",idle:"Простаивает",error:"Ошибка",logs:"Журналы",viewLogs:"Просмотр журналов"},approvals:{title:"Проверка дел об одобрении ИИ",subtitle:"Проверка результатов автоматического одобрения ИИ и ручная проверка дел среднего риска",caseId:"ID дела",assetName:"Название актива",applicant:"Заявитель",submittedAt:"Подано",riskLevel:"Уровень риска",aiDecision:"Решение ИИ",humanDecision:"Решение человека",reviewStatus:"Статус проверки",pendingReview:"Ожидает проверки",approved:"Одобрено",rejected:"Отклонено",underReview:"На проверке",highRisk:"Высокий риск",mediumRisk:"Средний риск",lowRisk:"Низкий риск",approve:"Одобрить",reject:"Отклонить",reviewComment:"Комментарий проверки",addComment:"Добавить комментарий...",submitReview:"Отправить проверку",aiConfidence:"Уверенность ИИ",complianceScore:"Оценка соответствия",missingDocuments:"Отсутствующие документы",reviewHistory:"История проверок",caseDetails:"Детали дела",viewDetails:"Просмотр деталей"},tagEngine:{title:"Управление движком тегов и правил",subtitle:"Управление правилами генерации автоматических последовательностей тегов",tagId:"ID тега",tagName:"Название тега",tagCategory:"Категория тега",tagRule:"Правило тега",matchPattern:"Шаблон совпадения",priority:"Приоритет",addTag:"Добавить тег",editTag:"Редактировать тег",deleteTag:"Удалить тег",testTag:"Тестировать тег",testInput:"Тестовый ввод",testResult:"Результат теста",jurisdictionDimension:"Измерение юрисдикции",assetTypeDimension:"Измерение типа актива",complianceDimension:"Измерение соответствия",riskDimension:"Измерение риска",crossLanguageAlignment:"Межъязыковое выравнивание",standardTagId:"Стандартный ID тега",languageMappings:"Языковые маппинги"},protocols:{title:"Управление реестром протоколов",subtitle:"Управление всеми нативными протоколами NAC, интегрированными с системой одобрения ИИ",protocolName:"Название протокола",protocolCode:"Код протокола",protocolVersion:"Версия протокола",protocolStatus:"Статус протокола",triggerConditions:"Условия запуска",endpoint:"Конечная точка сервиса",addProtocol:"Зарегистрировать протокол",editProtocol:"Редактировать протокол",deactivateProtocol:"Деактивировать протокол",activateProtocol:"Активировать протокол",protocolActivated:"Протокол активирован",protocolDeactivated:"Протокол деактивирован",registeredAt:"Зарегистрировано",lastCalled:"Последний вызов",callCount:"Количество вызовов",protocolFamily:"Семейство протоколов",coreProtocols:"Основные протоколы"},audit:{title:"Управление правами и аудитом",subtitle:"Управление доступом на основе ролей и неизменяемые журналы аудита",users:"Управление пользователями",roles:"Управление ролями",auditLogs:"Журналы аудита",userId:"ID пользователя",userName:"Имя пользователя",userEmail:"Email",userRole:"Роль",lastLogin:"Последний вход",admin:"Администратор",reviewer:"Проверяющий",legal:"Юридический",operator:"Оператор",action:"Действие",resource:"Ресурс",ipAddress:"IP-адрес",timestamp:"Временная метка",result:"Результат",details:"Детали",exportLogs:"Экспорт журналов",filterByUser:"Фильтр по пользователю",filterByAction:"Фильтр по действию",filterByDate:"Фильтр по дате",immutableNote:"Журналы аудита неизменяемы. Все критические операции записываются."},languageSwitcher:{selectLanguage:"Выбрать язык",currentLanguage:"Текущий язык",knowledgeLanguage:"Язык базы знаний"},jurisdictions:{CN:"Китай",HK:"Гонконг",US:"США",EU:"Европейский союз",SG:"Сингапур",AE:"ОАЭ",JP:"Япония",KR:"Южная Корея",RU:"Россия",GB:"Великобритания",ALL:"Все юрисдикции"},assetTypes:{"RE.RESIDENTIAL":"Жилая недвижимость","RE.COMMERCIAL":"Коммерческая недвижимость","RE.INDUSTRIAL":"Промышленная недвижимость","FIN.EQUITY":"Долевые активы","FIN.DEBT":"Долговые активы","FIN.FUND":"Паи фондов","COMM.PRECIOUS":"Драгоценные металлы","COMM.ENERGY":"Энергетические товары","IP.PATENT":"Патенты","IP.COPYRIGHT":"Авторские права","INFRA.TRANSPORT":"Транспортная инфраструктура",ALL:"Все типы"}},oee=[{code:"zh",name:"简体中文",nativeName:"简体中文",dir:"ltr",flag:"🇨🇳"},{code:"en",name:"English",nativeName:"English",dir:"ltr",flag:"🇺🇸"},{code:"ar",name:"Arabic",nativeName:"العربية",dir:"rtl",flag:"🇦🇪"},{code:"ja",name:"Japanese",nativeName:"日本語",dir:"ltr",flag:"🇯🇵"},{code:"ko",name:"Korean",nativeName:"한국어",dir:"ltr",flag:"🇰🇷"},{code:"fr",name:"French",nativeName:"Français",dir:"ltr",flag:"🇫🇷"},{code:"ru",name:"Russian",nativeName:"Русский",dir:"ltr",flag:"🇷🇺"}];yr.use(uU).use(FJ).init({resources:{zh:{translation:JJ},en:{translation:eee},ar:{translation:tee},ja:{translation:nee},ko:{translation:ree},fr:{translation:aee},ru:{translation:iee}},fallbackLng:"zh",supportedLngs:["zh","en","ar","ja","ko","fr","ru"],detection:{order:["localStorage","navigator"],caches:["localStorage"],lookupLocalStorage:"nac-admin-language"},interpolation:{escapeValue:!1}});yr.on("languageChanged",e=>{const t=oee.find(n=>n.code===e);document.documentElement.dir=t?.dir??"ltr",document.documentElement.lang=e});const see="Please login (10001)";var uE={exports:{}},Zm={},cE={exports:{}},dE={},f5;function lee(){return f5||(f5=1,(function(e){/**
|
||
* @license React
|
||
* scheduler.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(){function t(){if(A=!1,V){var q=e.unstable_now();H=q;var z=!0;try{e:{D=!1,P&&(P=!1,j(B),B=-1),C=!0;var K=T;try{t:{for(u(q),N=r(b);N!==null&&!(N.expirationTime>q&&f());){var te=N.callback;if(typeof te=="function"){N.callback=null,T=N.priorityLevel;var ne=te(N.expirationTime<=q);if(q=e.unstable_now(),typeof ne=="function"){N.callback=ne,u(q),z=!0;break t}N===r(b)&&o(b),u(q)}else o(b);N=r(b)}if(N!==null)z=!0;else{var k=r(S);k!==null&&m(c,k.startTime-q),z=!1}}break e}finally{N=null,T=K,C=!1}z=void 0}}finally{z?G():V=!1}}}function n(q,z){var K=q.length;q.push(z);e:for(;0<K;){var te=K-1>>>1,ne=q[te];if(0<s(ne,z))q[te]=z,q[K]=ne,K=te;else break e}}function r(q){return q.length===0?null:q[0]}function o(q){if(q.length===0)return null;var z=q[0],K=q.pop();if(K!==z){q[0]=K;e:for(var te=0,ne=q.length,k=ne>>>1;te<k;){var Q=2*(te+1)-1,W=q[Q],ae=Q+1,ge=q[ae];if(0>s(W,K))ae<ne&&0>s(ge,W)?(q[te]=ge,q[ae]=K,te=ae):(q[te]=W,q[Q]=K,te=Q);else if(ae<ne&&0>s(ge,K))q[te]=ge,q[ae]=K,te=ae;else break e}}return z}function s(q,z){var K=q.sortIndex-z.sortIndex;return K!==0?K:q.id-z.id}function u(q){for(var z=r(S);z!==null;){if(z.callback===null)o(S);else if(z.startTime<=q)o(S),z.sortIndex=z.expirationTime,n(b,z);else break;z=r(S)}}function c(q){if(P=!1,u(q),!D)if(r(b)!==null)D=!0,V||(V=!0,G());else{var z=r(S);z!==null&&m(c,z.startTime-q)}}function f(){return A?!0:!(e.unstable_now()-H<U)}function m(q,z){B=_(function(){q(e.unstable_now())},z)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;e.unstable_now=function(){return g.now()}}else{var p=Date,y=p.now();e.unstable_now=function(){return p.now()-y}}var b=[],S=[],x=1,N=null,T=3,C=!1,D=!1,P=!1,A=!1,_=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null,V=!1,B=-1,U=5,H=-1;if(typeof L=="function")var G=function(){L(t)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,J=Y.port2;Y.port1.onmessage=t,G=function(){J.postMessage(null)}}else G=function(){_(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(q){switch(T){case 1:case 2:case 3:var z=3;break;default:z=T}var K=T;T=z;try{return q()}finally{T=K}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(q,z){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var K=T;T=q;try{return z()}finally{T=K}},e.unstable_scheduleCallback=function(q,z,K){var te=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?te+K:te):K=te,q){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=K+ne,q={id:x++,callback:z,priorityLevel:q,startTime:K,expirationTime:ne,sortIndex:-1},K>te?(q.sortIndex=K,n(S,q),r(b)===null&&q===r(S)&&(P?(j(B),B=-1):P=!0,m(c,K-te))):(q.sortIndex=ne,n(b,q),D||C||(D=!0,V||(V=!0,G()))),q},e.unstable_shouldYield=f,e.unstable_wrapCallback=function(q){var z=T;return function(){var K=T;T=z;try{return q.apply(this,arguments)}finally{T=K}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(dE)),dE}var m5;function uee(){return m5||(m5=1,cE.exports=lee()),cE.exports}var fE={exports:{}},ur={},p5;function cee(){if(p5)return ur;p5=1;/**
|
||
* @license React
|
||
* react-dom.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/return(function(){function e(){}function t(p){return""+p}function n(p,y,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(S);var x=!1}catch{x=!0}return x&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object"),t(S)),{$$typeof:m,key:S==null?null:""+S,children:p,containerInfo:y,implementation:b}}function r(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}function o(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":'something with type "'+typeof p+'"'}function s(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":typeof p=="string"?JSON.stringify(p):typeof p=="number"?"`"+p+"`":'something with type "'+typeof p+'"'}function u(){var p=g.H;return p===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
||
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
||
2. You might be breaking the Rules of Hooks
|
||
3. You might have more than one copy of React in the same app
|
||
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=ef(),f={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},m=Symbol.for("react.portal"),g=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;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"||console.error("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"),ur.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,ur.createPortal=function(p,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error("Target container is not a DOM element.");return n(p,y,null,b)},ur.flushSync=function(p){var y=g.T,b=f.p;try{if(g.T=null,f.p=2,p)return p()}finally{g.T=y,f.p=b,f.d.f()&&console.error("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.")}},ur.preconnect=function(p,y){typeof p=="string"&&p?y!=null&&typeof y!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",s(y)):y!=null&&typeof y.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(y.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(p)),typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,f.d.C(p,y))},ur.prefetchDNS=function(p){if(typeof p!="string"||!p)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(p));else if(1<arguments.length){var y=arguments[1];typeof y=="object"&&y.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(y)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(y))}typeof p=="string"&&f.d.D(p)},ur.preinit=function(p,y){if(typeof p=="string"&&p?y==null||typeof y!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",s(y)):y.as!=="style"&&y.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',s(y.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(p)),typeof p=="string"&&y&&typeof y.as=="string"){var b=y.as,S=r(b,y.crossOrigin),x=typeof y.integrity=="string"?y.integrity:void 0,N=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?f.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:x,fetchPriority:N}):b==="script"&&f.d.X(p,{crossOrigin:S,integrity:x,fetchPriority:N,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ur.preinitModule=function(p,y){var b="";if(typeof p=="string"&&p||(b+=" The `href` argument encountered was "+o(p)+"."),y!==void 0&&typeof y!="object"?b+=" The `options` argument encountered was "+o(y)+".":y&&"as"in y&&y.as!=="script"&&(b+=" The `as` option encountered was "+s(y.as)+"."),b)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",b);else switch(b=y&&typeof y.as=="string"?y.as:"script",b){case"script":break;default:b=s(b),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',b,p)}typeof p=="string"&&(typeof y=="object"&&y!==null?(y.as==null||y.as==="script")&&(b=r(y.as,y.crossOrigin),f.d.M(p,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})):y==null&&f.d.M(p))},ur.preload=function(p,y){var b="";if(typeof p=="string"&&p||(b+=" The `href` argument encountered was "+o(p)+"."),y==null||typeof y!="object"?b+=" The `options` argument encountered was "+o(y)+".":typeof y.as=="string"&&y.as||(b+=" The `as` option encountered was "+o(y.as)+"."),b&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',b),typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){b=y.as;var S=r(b,y.crossOrigin);f.d.L(p,b,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ur.preloadModule=function(p,y){var b="";typeof p=="string"&&p||(b+=" The `href` argument encountered was "+o(p)+"."),y!==void 0&&typeof y!="object"?b+=" The `options` argument encountered was "+o(y)+".":y&&"as"in y&&typeof y.as!="string"&&(b+=" The `as` option encountered was "+o(y.as)+"."),b&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',b),typeof p=="string"&&(y?(b=r(y.as,y.crossOrigin),f.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})):f.d.m(p))},ur.requestFormReset=function(p){f.d.r(p)},ur.unstable_batchedUpdates=function(p,y){return p(y)},ur.useFormState=function(p,y,b){return u().useFormState(p,y,b)},ur.useFormStatus=function(){return u().useHostTransitionStatus()},ur.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),ur}var h5;function pU(){return h5||(h5=1,fE.exports=cee()),fE.exports}var g5;function dee(){if(g5)return Zm;g5=1;/**
|
||
* @license React
|
||
* react-dom-client.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/return(function(){function e(a,i){for(a=a.memoizedState;a!==null&&0<i;)a=a.next,i--;return a}function t(a,i,l,d){if(l>=i.length)return d;var h=i[l],v=jn(a)?a.slice():dt({},a);return v[h]=t(a[h],i,l+1,d),v}function n(a,i,l){if(i.length!==l.length)console.warn("copyWithRename() expects paths of the same length");else{for(var d=0;d<l.length-1;d++)if(i[d]!==l[d]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return r(a,i,l,0)}}function r(a,i,l,d){var h=i[d],v=jn(a)?a.slice():dt({},a);return d+1===i.length?(v[l[d]]=v[h],jn(v)?v.splice(h,1):delete v[h]):v[h]=r(a[h],i,l,d+1),v}function o(a,i,l){var d=i[l],h=jn(a)?a.slice():dt({},a);return l+1===i.length?(jn(h)?h.splice(d,1):delete h[d],h):(h[d]=o(a[d],i,l+1),h)}function s(){return!1}function u(){return null}function c(){console.error("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://react.dev/link/rules-of-hooks")}function f(){console.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().")}function m(){}function g(){}function p(a){var i=[];return a.forEach(function(l){i.push(l)}),i.sort().join(", ")}function y(a,i,l,d){return new CG(a,i,l,d)}function b(a,i){a.context===Rs&&(gw(a.current,2,i,a,null,null),mc())}function S(a,i){if(xa!==null){var l=i.staleFamilies;i=i.updatedFamilies,Hf(),_j(a.current,i,l),mc()}}function x(a){xa=a}function N(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function T(a){var i=a,l=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(l=i.return),a=i.return;while(a)}return i.tag===3?l:null}function C(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function D(a){if(a.tag===31){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function P(a){if(T(a)!==a)throw Error("Unable to find node on an unmounted component.")}function A(a){var i=a.alternate;if(!i){if(i=T(a),i===null)throw Error("Unable to find node on an unmounted component.");return i!==a?null:a}for(var l=a,d=i;;){var h=l.return;if(h===null)break;var v=h.alternate;if(v===null){if(d=h.return,d!==null){l=d;continue}break}if(h.child===v.child){for(v=h.child;v;){if(v===l)return P(h),a;if(v===d)return P(h),i;v=v.sibling}throw Error("Unable to find node on an unmounted component.")}if(l.return!==d.return)l=h,d=v;else{for(var E=!1,O=h.child;O;){if(O===l){E=!0,l=h,d=v;break}if(O===d){E=!0,d=h,l=v;break}O=O.sibling}if(!E){for(O=v.child;O;){if(O===l){E=!0,l=v,d=h;break}if(O===d){E=!0,d=v,l=h;break}O=O.sibling}if(!E)throw 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(l.alternate!==d)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(l.tag!==3)throw Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?a:i}function _(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=_(a),i!==null)return i;a=a.sibling}return null}function j(a){return a===null||typeof a!="object"?null:(a=kL&&a[kL]||a["@@iterator"],typeof a=="function"?a:null)}function L(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===XY?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case xc:return"Fragment";case Ew:return"Profiler";case Qg:return"StrictMode";case Aw:return"Suspense";case Ow:return"SuspenseList";case Tw:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case bc:return"Portal";case ji:return a.displayName||"Context";case Sw:return(a._context.displayName||"Context")+".Consumer";case em:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Xg:return i=a.displayName||null,i!==null?i:L(a.type)||"Memo";case ta:i=a._payload,a=a._init;try{return L(a(i))}catch{}}return null}function V(a){return typeof a.tag=="number"?B(a):typeof a.name=="string"?a.name:null}function B(a){var i=a.type;switch(a.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(i._context.displayName||"Context")+".Consumer";case 10:return i.displayName||"Context";case 18:return"DehydratedFragment";case 11:return a=i.render,a=a.displayName||a.name||"",i.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return L(i);case 8:return i===Qg?"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 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;break;case 29:if(i=a._debugInfo,i!=null){for(var l=i.length-1;0<=l;l--)if(typeof i[l].name=="string")return i[l].name}if(a.return!==null)return B(a.return)}return null}function U(a){return{current:a}}function H(a,i){0>Ao?console.error("Unexpected pop."):(i!==_w[Ao]&&console.error("Unexpected Fiber popped."),a.current=Cw[Ao],Cw[Ao]=null,_w[Ao]=null,Ao--)}function G(a,i,l){Ao++,Cw[Ao]=a.current,_w[Ao]=l,a.current=i}function Y(a){return a===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),a}function J(a,i){G(As,i,a),G(tm,a,a),G(Ss,null,a);var l=i.nodeType;switch(l){case 9:case 11:l=l===9?"#document":"#fragment",i=(i=i.documentElement)&&(i=i.namespaceURI)?oL(i):Bo;break;default:if(l=i.tagName,i=i.namespaceURI)i=oL(i),i=sL(i,l);else switch(l){case"svg":i=ed;break;case"math":i=Yv;break;default:i=Bo}}l=l.toLowerCase(),l=ej(null,l),l={context:i,ancestorInfo:l},H(Ss,a),G(Ss,l,a)}function q(a){H(Ss,a),H(tm,a),H(As,a)}function z(){return Y(Ss.current)}function K(a){a.memoizedState!==null&&G(Wg,a,a);var i=Y(Ss.current),l=a.type,d=sL(i.context,l);l=ej(i.ancestorInfo,l),d={context:d,ancestorInfo:l},i!==d&&(G(tm,a,a),G(Ss,d,a))}function te(a){tm.current===a&&(H(Ss,a),H(tm,a)),Wg.current===a&&(H(Wg,a),Km._currentValue=ru)}function ne(){}function k(){if(nm===0){IL=console.log,$L=console.info,VL=console.warn,BL=console.error,zL=console.group,UL=console.groupCollapsed,qL=console.groupEnd;var a={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}nm++}function Q(){if(nm--,nm===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:dt({},a,{value:IL}),info:dt({},a,{value:$L}),warn:dt({},a,{value:VL}),error:dt({},a,{value:BL}),group:dt({},a,{value:zL}),groupCollapsed:dt({},a,{value:UL}),groupEnd:dt({},a,{value:qL})})}0>nm&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function W(a){var i=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=i,a.startsWith(`Error: react-stack-top-frame
|
||
`)&&(a=a.slice(29)),i=a.indexOf(`
|
||
`),i!==-1&&(a=a.slice(i+1)),i=a.indexOf("react_stack_bottom_frame"),i!==-1&&(i=a.lastIndexOf(`
|
||
`,i)),i!==-1)a=a.slice(0,i);else return"";return a}function ae(a){if(Dw===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);Dw=i&&i[1]||"",HL=-1<l.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+Dw+a+HL}function ge(a,i){if(!a||Rw)return"";var l=jw.get(a);if(l!==void 0)return l;Rw=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var d=null;d=he.H,he.H=null,k();try{var h={DetermineComponentFrameRoot:function(){try{if(i){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(Ce){var fe=Ce}Reflect.construct(a,[],Z)}else{try{Z.call()}catch(Ce){fe=Ce}a.call(Z.prototype)}}else{try{throw Error()}catch(Ce){fe=Ce}(Z=a())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(Ce){if(Ce&&fe&&typeof Ce.stack=="string")return[Ce.stack,fe.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=h.DetermineComponentFrameRoot(),O=E[0],M=E[1];if(O&&M){var I=O.split(`
|
||
`),oe=M.split(`
|
||
`);for(E=v=0;v<I.length&&!I[v].includes("DetermineComponentFrameRoot");)v++;for(;E<oe.length&&!oe[E].includes("DetermineComponentFrameRoot");)E++;if(v===I.length||E===oe.length)for(v=I.length-1,E=oe.length-1;1<=v&&0<=E&&I[v]!==oe[E];)E--;for(;1<=v&&0<=E;v--,E--)if(I[v]!==oe[E]){if(v!==1||E!==1)do if(v--,E--,0>E||I[v]!==oe[E]){var se=`
|
||
`+I[v].replace(" at new "," at ");return a.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",a.displayName)),typeof a=="function"&&jw.set(a,se),se}while(1<=v&&0<=E);break}}}finally{Rw=!1,he.H=d,Q(),Error.prepareStackTrace=l}return I=(I=a?a.displayName||a.name:"")?ae(I):"",typeof a=="function"&&jw.set(a,I),I}function Ne(a,i){switch(a.tag){case 26:case 27:case 5:return ae(a.type);case 16:return ae("Lazy");case 13:return a.child!==i&&i!==null?ae("Suspense Fallback"):ae("Suspense");case 19:return ae("SuspenseList");case 0:case 15:return ge(a.type,!1);case 11:return ge(a.type.render,!1);case 1:return ge(a.type,!0);case 31:return ae("Activity");default:return""}}function ce(a){try{var i="",l=null;do{i+=Ne(a,l);var d=a._debugInfo;if(d)for(var h=d.length-1;0<=h;h--){var v=d[h];if(typeof v.name=="string"){var E=i;e:{var O=v.name,M=v.env,I=v.debugLocation;if(I!=null){var oe=W(I),se=oe.lastIndexOf(`
|
||
`),Z=se===-1?oe:oe.slice(se+1);if(Z.indexOf(O)!==-1){var fe=`
|
||
`+Z;break e}}fe=ae(O+(M?" ["+M+"]":""))}i=E+fe}}l=a,a=a.return}while(a);return i}catch(Ce){return`
|
||
Error generating stack: `+Ce.message+`
|
||
`+Ce.stack}}function xe(a){return(a=a?a.displayName||a.name:"")?ae(a):""}function me(){if(na===null)return null;var a=na._debugOwner;return a!=null?V(a):null}function be(){if(na===null)return"";var a=na;try{var i="";switch(a.tag===6&&(a=a.return),a.tag){case 26:case 27:case 5:i+=ae(a.type);break;case 13:i+=ae("Suspense");break;case 19:i+=ae("SuspenseList");break;case 31:i+=ae("Activity");break;case 30:case 0:case 15:case 1:a._debugOwner||i!==""||(i+=xe(a.type));break;case 11:a._debugOwner||i!==""||(i+=xe(a.type.render))}for(;a;)if(typeof a.tag=="number"){var l=a;a=l._debugOwner;var d=l._debugStack;if(a&&d){var h=W(d);h!==""&&(i+=`
|
||
`+h)}}else if(a.debugStack!=null){var v=a.debugStack;(a=a.owner)&&v&&(i+=`
|
||
`+W(v))}else break;var E=i}catch(O){E=`
|
||
Error generating stack: `+O.message+`
|
||
`+O.stack}return E}function de(a,i,l,d,h,v,E){var O=na;ie(a);try{return a!==null&&a._debugTask?a._debugTask.run(i.bind(null,l,d,h,v,E)):i(l,d,h,v,E)}finally{ie(O)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ie(a){he.getCurrentStack=a===null?null:be,Pi=!1,na=a}function ze(a){return typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function we(a){try{return lt(a),!1}catch{return!0}}function lt(a){return""+a}function $e(a,i){if(we(a))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",i,ze(a)),lt(a)}function et(a,i){if(we(a))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",i,ze(a)),lt(a)}function zn(a){if(we(a))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",ze(a)),lt(a)}function xn(a){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(i.isDisabled)return!0;if(!i.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Nc=i.inject(a),sr=i}catch(l){console.error("React instrumentation encountered an error: %o.",l)}return!!i.checkDCE}function je(a){if(typeof rQ=="function"&&aQ(a),sr&&typeof sr.setStrictMode=="function")try{sr.setStrictMode(Nc,a)}catch(i){Mi||(Mi=!0,console.error("React instrumentation encountered an error: %o",i))}}function ir(a){return a>>>=0,a===0?32:31-(iQ(a)/oQ|0)|0}function wt(a){var i=a&42;if(i!==0)return i;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),a}}function Un(a,i,l){var d=a.pendingLanes;if(d===0)return 0;var h=0,v=a.suspendedLanes,E=a.pingedLanes;a=a.warmLanes;var O=d&134217727;return O!==0?(d=O&~v,d!==0?h=wt(d):(E&=O,E!==0?h=wt(E):l||(l=O&~a,l!==0&&(h=wt(l))))):(O=d&~v,O!==0?h=wt(O):E!==0?h=wt(E):l||(l=d&~a,l!==0&&(h=wt(l)))),h===0?0:i!==0&&i!==h&&(i&v)===0&&(v=h&-h,l=i&-i,v>=l||v===32&&(l&4194048)!==0)?i:h}function Mr(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function di(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32: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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Gr(){var a=ev;return ev<<=1,(ev&62914560)===0&&(ev=4194304),a}function fi(a){for(var i=[],l=0;31>l;l++)i.push(a);return i}function Ba(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function cs(a,i,l,d,h,v){var E=a.pendingLanes;a.pendingLanes=l,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=l,a.entangledLanes&=l,a.errorRecoveryDisabledLanes&=l,a.shellSuspendCounter=0;var O=a.entanglements,M=a.expirationTimes,I=a.hiddenUpdates;for(l=E&~l;0<l;){var oe=31-wr(l),se=1<<oe;O[oe]=0,M[oe]=-1;var Z=I[oe];if(Z!==null)for(I[oe]=null,oe=0;oe<Z.length;oe++){var fe=Z[oe];fe!==null&&(fe.lane&=-536870913)}l&=~se}d!==0&&pa(a,d,0),v!==0&&h===0&&a.tag!==0&&(a.suspendedLanes|=v&~(E&~i))}function pa(a,i,l){a.pendingLanes|=i,a.suspendedLanes&=~i;var d=31-wr(i);a.entangledLanes|=i,a.entanglements[d]=a.entanglements[d]|1073741824|l&261930}function ds(a,i){var l=a.entangledLanes|=i;for(a=a.entanglements;l;){var d=31-wr(l),h=1<<d;h&i|a[d]&i&&(a[d]|=i),l&=~h}}function Lr(a,i){var l=i&-i;return l=(l&42)!==0?1:mi(l),(l&(a.suspendedLanes|i))!==0?0:l}function mi(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function fo(a,i,l){if(Li)for(a=a.pendingUpdatersLaneMap;0<l;){var d=31-wr(l),h=1<<d;a[d].add(i),l&=~h}}function mo(a,i){if(Li)for(var l=a.pendingUpdatersLaneMap,d=a.memoizedUpdaters;0<i;){var h=31-wr(i);a=1<<h,h=l[h],0<h.size&&(h.forEach(function(v){var E=v.alternate;E!==null&&d.has(E)||d.add(v)}),h.clear()),i&=~a}}function po(a){return a&=-a,va<a?ki<a?(a&134217727)!==0?Oo:tv:ki:va}function pi(){var a=_t.p;return a!==0?a:(a=window.event,a===void 0?Oo:_L(a.type))}function $(a,i){var l=_t.p;try{return _t.p=a,i()}finally{_t.p=l}}function ue(a){delete a[tr],delete a[Nr],delete a[Iw],delete a[sQ],delete a[lQ]}function Ee(a){var i=a[tr];if(i)return i;for(var l=a.parentNode;l;){if(i=l[Ts]||l[tr]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(a=hL(a);a!==null;){if(l=a[tr])return l;a=hL(a)}return i}a=l,l=a.parentNode}return null}function Te(a){if(a=a[tr]||a[Ts]){var i=a.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return a}return null}function Me(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Ze(a){var i=a[FL];return i||(i=a[FL]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Se(a){a[rm]=!0}function He(a,i){Be(a,i),Be(a+"Capture",i)}function Be(a,i){Ml[a]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",a),Ml[a]=i;var l=a.toLowerCase();for($w[l]=a,a==="onDoubleClick"&&($w.ondblclick=a),a=0;a<i.length;a++)KL.add(i[a])}function $t(a,i){uQ[i.type]||i.onChange||i.onInput||i.readOnly||i.disabled||i.value==null||console.error(a==="select"?"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 `onChange`.":"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`."),i.onChange||i.readOnly||i.disabled||i.checked==null||console.error("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 br(a){return Fa.call(YL,a)?!0:Fa.call(GL,a)?!1:cQ.test(a)?YL[a]=!0:(GL[a]=!0,console.error("Invalid attribute name: `%s`",a),!1)}function dn(a,i,l){if(br(i)){if(!a.hasAttribute(i)){switch(typeof l){case"symbol":case"object":return l;case"function":return l;case"boolean":if(l===!1)return l}return l===void 0?void 0:null}return a=a.getAttribute(i),a===""&&l===!0?!0:($e(l,i),a===""+l?l:a)}}function Rn(a,i,l){if(br(i))if(l===null)a.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":a.removeAttribute(i);return;case"boolean":var d=i.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){a.removeAttribute(i);return}}$e(l,i),a.setAttribute(i,""+l)}}function ho(a,i,l){if(l===null)a.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}$e(l,i),a.setAttribute(i,""+l)}}function gn(a,i,l,d){if(d===null)a.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}$e(d,l),a.setAttributeNS(i,l,""+d)}}function an(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return zn(a),a;default:return""}}function bf(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function go(a,i,l){var d=Object.getOwnPropertyDescriptor(a.constructor.prototype,i);if(!a.hasOwnProperty(i)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var h=d.get,v=d.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return h.call(this)},set:function(E){zn(E),l=""+E,v.call(this,E)}}),Object.defineProperty(a,i,{enumerable:d.enumerable}),{getValue:function(){return l},setValue:function(E){zn(E),l=""+E},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Uh(a){if(!a._valueTracker){var i=bf(a)?"checked":"value";a._valueTracker=go(a,i,""+a[i])}}function zR(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var l=i.getValue(),d="";return a&&(d=bf(a)?a.checked?"true":"false":a.value),a=d,a!==l?(i.setValue(a),!0):!1}function qh(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 ha(a){return a.replace(dQ,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function UR(a,i){i.checked===void 0||i.defaultChecked===void 0||XL||(console.error("%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://react.dev/link/controlled-components",me()||"A component",i.type),XL=!0),i.value===void 0||i.defaultValue===void 0||QL||(console.error("%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://react.dev/link/controlled-components",me()||"A component",i.type),QL=!0)}function vx(a,i,l,d,h,v,E,O){a.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?($e(E,"type"),a.type=E):a.removeAttribute("type"),i!=null?E==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+an(i)):a.value!==""+an(i)&&(a.value=""+an(i)):E!=="submit"&&E!=="reset"||a.removeAttribute("value"),i!=null?yx(a,E,an(i)):l!=null?yx(a,E,an(l)):d!=null&&a.removeAttribute("value"),h==null&&v!=null&&(a.defaultChecked=!!v),h!=null&&(a.checked=h&&typeof h!="function"&&typeof h!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?($e(O,"name"),a.name=""+an(O)):a.removeAttribute("name")}function qR(a,i,l,d,h,v,E,O){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&($e(v,"type"),a.type=v),i!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||i!=null)){Uh(a);return}l=l!=null?""+an(l):"",i=i!=null?""+an(i):l,O||i===a.value||(a.value=i),a.defaultValue=i}d=d??h,d=typeof d!="function"&&typeof d!="symbol"&&!!d,a.checked=O?a.checked:!!d,a.defaultChecked=!!d,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&($e(E,"name"),a.name=E),Uh(a)}function yx(a,i,l){i==="number"&&qh(a.ownerDocument)===a||a.defaultValue===""+l||(a.defaultValue=""+l)}function HR(a,i){i.value==null&&(typeof i.children=="object"&&i.children!==null?Nw.Children.forEach(i.children,function(l){l==null||typeof l=="string"||typeof l=="number"||typeof l=="bigint"||ZL||(ZL=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):i.dangerouslySetInnerHTML==null||JL||(JL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),i.selected==null||WL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),WL=!0)}function FR(){var a=me();return a?`
|
||
|
||
Check the render method of \``+a+"`.":""}function tc(a,i,l,d){if(a=a.options,i){i={};for(var h=0;h<l.length;h++)i["$"+l[h]]=!0;for(l=0;l<a.length;l++)h=i.hasOwnProperty("$"+a[l].value),a[l].selected!==h&&(a[l].selected=h),h&&d&&(a[l].defaultSelected=!0)}else{for(l=""+an(l),i=null,h=0;h<a.length;h++){if(a[h].value===l){a[h].selected=!0,d&&(a[h].defaultSelected=!0);return}i!==null||a[h].disabled||(i=a[h])}i!==null&&(i.selected=!0)}}function KR(a,i){for(a=0;a<tk.length;a++){var l=tk[a];if(i[l]!=null){var d=jn(i[l]);i.multiple&&!d?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",l,FR()):!i.multiple&&d&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,FR())}}i.value===void 0||i.defaultValue===void 0||ek||(console.error("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://react.dev/link/controlled-components"),ek=!0)}function GR(a,i){i.value===void 0||i.defaultValue===void 0||nk||(console.error("%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://react.dev/link/controlled-components",me()||"A component"),nk=!0),i.children!=null&&i.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function YR(a,i,l){if(i!=null&&(i=""+an(i),i!==a.value&&(a.value=i),l==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=l!=null?""+an(l):""}function QR(a,i,l,d){if(i==null){if(d!=null){if(l!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(jn(d)){if(1<d.length)throw Error("<textarea> can only have at most one child.");d=d[0]}l=d}l==null&&(l=""),i=l}l=an(i),a.defaultValue=l,d=a.textContent,d===l&&d!==""&&d!==null&&(a.value=d),Uh(a)}function XR(a,i){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-i?XR(a.children[0],i):a}function Yr(a){return" "+" ".repeat(a)}function nc(a){return"+ "+" ".repeat(a)}function bl(a){return"- "+" ".repeat(a)}function WR(a){switch(a.tag){case 26:case 27:case 5:return a.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return a=a.type,a.displayName||a.name||null;case 11:return a=a.type.render,a.displayName||a.name||null;case 1:return a=a.type,a.displayName||a.name||null;default:return null}}function xf(a,i){return rk.test(a)?(a=JSON.stringify(a),a.length>i-2?8>i?'{"..."}':"{"+a.slice(0,i-7)+'..."}':"{"+a+"}"):a.length>i?5>i?'{"..."}':a.slice(0,i-3)+"...":a}function Hh(a,i,l){var d=120-2*l;if(i===null)return nc(l)+xf(a,d)+`
|
||
`;if(typeof i=="string"){for(var h=0;h<i.length&&h<a.length&&i.charCodeAt(h)===a.charCodeAt(h);h++);return h>d-8&&10<h&&(a="..."+a.slice(h-8),i="..."+i.slice(h-8)),nc(l)+xf(a,d)+`
|
||
`+bl(l)+xf(i,d)+`
|
||
`}return Yr(l)+xf(a,d)+`
|
||
`}function bx(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(i,l){return l})}function wf(a,i){switch(typeof a){case"string":return a=JSON.stringify(a),a.length>i?5>i?'"..."':a.slice(0,i-4)+'..."':a;case"object":if(a===null)return"null";if(jn(a))return"[...]";if(a.$$typeof===Ri)return(i=L(a.type))?"<"+i+">":"<...>";var l=bx(a);if(l==="Object"){l="",i-=2;for(var d in a)if(a.hasOwnProperty(d)){var h=JSON.stringify(d);if(h!=='"'+d+'"'&&(d=h),i-=d.length-2,h=wf(a[d],15>i?i:15),i-=h.length,0>i){l+=l===""?"...":", ...";break}l+=(l===""?"":",")+d+":"+h}return"{"+l+"}"}return l;case"function":return(i=a.displayName||a.name)?"function "+i:"function";default:return String(a)}}function rc(a,i){return typeof a!="string"||rk.test(a)?"{"+wf(a,i-2)+"}":a.length>i-2?5>i?'"..."':'"'+a.slice(0,i-5)+'..."':'"'+a+'"'}function xx(a,i,l){var d=120-l.length-a.length,h=[],v;for(v in i)if(i.hasOwnProperty(v)&&v!=="children"){var E=rc(i[v],120-l.length-v.length-1);d-=v.length+E.length+2,h.push(v+"="+E)}return h.length===0?l+"<"+a+`>
|
||
`:0<d?l+"<"+a+" "+h.join(" ")+`>
|
||
`:l+"<"+a+`
|
||
`+l+" "+h.join(`
|
||
`+l+" ")+`
|
||
`+l+`>
|
||
`}function oG(a,i,l){var d="",h=dt({},i),v;for(v in a)if(a.hasOwnProperty(v)){delete h[v];var E=120-2*l-v.length-2,O=wf(a[v],E);i.hasOwnProperty(v)?(E=wf(i[v],E),d+=nc(l)+v+": "+O+`
|
||
`,d+=bl(l)+v+": "+E+`
|
||
`):d+=nc(l)+v+": "+O+`
|
||
`}for(var M in h)h.hasOwnProperty(M)&&(a=wf(h[M],120-2*l-M.length-2),d+=bl(l)+M+": "+a+`
|
||
`);return d}function sG(a,i,l,d){var h="",v=new Map;for(I in l)l.hasOwnProperty(I)&&v.set(I.toLowerCase(),I);if(v.size===1&&v.has("children"))h+=xx(a,i,Yr(d));else{for(var E in i)if(i.hasOwnProperty(E)&&E!=="children"){var O=120-2*(d+1)-E.length-1,M=v.get(E.toLowerCase());if(M!==void 0){v.delete(E.toLowerCase());var I=i[E];M=l[M];var oe=rc(I,O);O=rc(M,O),typeof I=="object"&&I!==null&&typeof M=="object"&&M!==null&&bx(I)==="Object"&&bx(M)==="Object"&&(2<Object.keys(I).length||2<Object.keys(M).length||-1<oe.indexOf("...")||-1<O.indexOf("..."))?h+=Yr(d+1)+E+`={{
|
||
`+oG(I,M,d+2)+Yr(d+1)+`}}
|
||
`:(h+=nc(d+1)+E+"="+oe+`
|
||
`,h+=bl(d+1)+E+"="+O+`
|
||
`)}else h+=Yr(d+1)+E+"="+rc(i[E],O)+`
|
||
`}v.forEach(function(se){if(se!=="children"){var Z=120-2*(d+1)-se.length-1;h+=bl(d+1)+se+"="+rc(l[se],Z)+`
|
||
`}}),h=h===""?Yr(d)+"<"+a+`>
|
||
`:Yr(d)+"<"+a+`
|
||
`+h+Yr(d)+`>
|
||
`}return a=l.children,i=i.children,typeof a=="string"||typeof a=="number"||typeof a=="bigint"?(v="",(typeof i=="string"||typeof i=="number"||typeof i=="bigint")&&(v=""+i),h+=Hh(v,""+a,d+1)):(typeof i=="string"||typeof i=="number"||typeof i=="bigint")&&(h=a==null?h+Hh(""+i,null,d+1):h+Hh(""+i,void 0,d+1)),h}function ZR(a,i){var l=WR(a);if(l===null){for(l="",a=a.child;a;)l+=ZR(a,i),a=a.sibling;return l}return Yr(i)+"<"+l+`>
|
||
`}function wx(a,i){var l=XR(a,i);if(l!==a&&(a.children.length!==1||a.children[0]!==l))return Yr(i)+`...
|
||
`+wx(l,i+1);l="";var d=a.fiber._debugInfo;if(d)for(var h=0;h<d.length;h++){var v=d[h].name;typeof v=="string"&&(l+=Yr(i)+"<"+v+`>
|
||
`,i++)}if(d="",h=a.fiber.pendingProps,a.fiber.tag===6)d=Hh(h,a.serverProps,i),i++;else if(v=WR(a.fiber),v!==null)if(a.serverProps===void 0){d=i;var E=120-2*d-v.length-2,O="";for(I in h)if(h.hasOwnProperty(I)&&I!=="children"){var M=rc(h[I],15);if(E-=I.length+M.length+2,0>E){O+=" ...";break}O+=" "+I+"="+M}d=Yr(d)+"<"+v+O+`>
|
||
`,i++}else a.serverProps===null?(d=xx(v,h,nc(i)),i++):typeof a.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(d=sG(v,h,a.serverProps,i),i++);var I="";for(h=a.fiber.child,v=0;h&&v<a.children.length;)E=a.children[v],E.fiber===h?(I+=wx(E,i),v++):I+=ZR(h,i),h=h.sibling;for(h&&0<a.children.length&&(I+=Yr(i)+`...
|
||
`),h=a.serverTail,a.serverProps===null&&i--,a=0;a<h.length;a++)v=h[a],I=typeof v=="string"?I+(bl(i)+xf(v,120-2*i)+`
|
||
`):I+xx(v.type,v.props,bl(i));return l+d+I}function Nx(a){try{return`
|
||
|
||
`+wx(a,0)}catch{return""}}function JR(a,i,l){for(var d=i,h=null,v=0;d;)d===a&&(v=0),h={fiber:d,children:h!==null?[h]:[],serverProps:d===i?l:d===a?null:void 0,serverTail:[],distanceFromLeaf:v},v++,d=d.return;return h!==null?Nx(h).replaceAll(/^[+-]/gm,">"):""}function ej(a,i){var l=dt({},a||ik),d={tag:i};return ak.indexOf(i)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),mQ.indexOf(i)!==-1&&(l.pTagInButtonScope=null),fQ.indexOf(i)!==-1&&i!=="address"&&i!=="div"&&i!=="p"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=d,i==="form"&&(l.formTag=d),i==="a"&&(l.aTagInScope=d),i==="button"&&(l.buttonTagInScope=d),i==="nobr"&&(l.nobrTagInScope=d),i==="p"&&(l.pTagInButtonScope=d),i==="li"&&(l.listItemTagAutoclosing=d),(i==="dd"||i==="dt")&&(l.dlItemTagAutoclosing=d),i==="#document"||i==="html"?l.containerTagInScope=null:l.containerTagInScope||(l.containerTagInScope=d),a!==null||i!=="#document"&&i!=="html"&&i!=="body"?l.implicitRootScope===!0&&(l.implicitRootScope=!1):l.implicitRootScope=!0,l}function tj(a,i,l){switch(i){case"select":return a==="hr"||a==="option"||a==="optgroup"||a==="script"||a==="template"||a==="#text";case"optgroup":return a==="option"||a==="#text";case"option":return a==="#text";case"tr":return a==="th"||a==="td"||a==="style"||a==="script"||a==="template";case"tbody":case"thead":case"tfoot":return a==="tr"||a==="style"||a==="script"||a==="template";case"colgroup":return a==="col"||a==="template";case"table":return a==="caption"||a==="colgroup"||a==="tbody"||a==="tfoot"||a==="thead"||a==="style"||a==="script"||a==="template";case"head":return a==="base"||a==="basefont"||a==="bgsound"||a==="link"||a==="meta"||a==="title"||a==="noscript"||a==="noframes"||a==="style"||a==="script"||a==="template";case"html":if(l)break;return a==="head"||a==="body"||a==="frameset";case"frameset":return a==="frame";case"#document":if(!l)return a==="html"}switch(a){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i!=="h1"&&i!=="h2"&&i!=="h3"&&i!=="h4"&&i!=="h5"&&i!=="h6";case"rp":case"rt":return pQ.indexOf(i)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return i==null;case"head":return l||i===null;case"html":return l&&i==="#document"||i===null;case"body":return l&&(i==="#document"||i==="html")||i===null}return!0}function lG(a,i){switch(a){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 i.pTagInButtonScope;case"form":return i.formTag||i.pTagInButtonScope;case"li":return i.listItemTagAutoclosing;case"dd":case"dt":return i.dlItemTagAutoclosing;case"button":return i.buttonTagInScope;case"a":return i.aTagInScope;case"nobr":return i.nobrTagInScope}return null}function nj(a,i){for(;a;){switch(a.tag){case 5:case 26:case 27:if(a.type===i)return a}a=a.return}return null}function Ex(a,i){i=i||ik;var l=i.current;if(i=(l=tj(a,l&&l.tag,i.implicitRootScope)?null:l)?null:lG(a,i),i=l||i,!i)return!0;var d=i.tag;if(i=String(!!l)+"|"+a+"|"+d,nv[i])return!1;nv[i]=!0;var h=(i=na)?nj(i.return,d):null,v=i!==null&&h!==null?JR(h,i,null):"",E="<"+a+">";return l?(l="",d==="table"&&a==="tr"&&(l+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
||
This will cause a hydration error.%s`,E,d,l,v)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
||
This will cause a hydration error.%s`,E,d,v),i&&(a=i.return,h===null||a===null||h===a&&a._debugOwner===i._debugOwner||de(h,function(){console.error(`<%s> cannot contain a nested %s.
|
||
See this log for the ancestor stack trace.`,d,E)})),!1}function Fh(a,i,l){if(l||tj("#text",i,!1))return!0;if(l="#text|"+i,nv[l])return!1;nv[l]=!0;var d=(l=na)?nj(l,i):null;return l=l!==null&&d!==null?JR(d,l,l.tag!==6?{children:null}:null):"",/\S/.test(a)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
||
This will cause a hydration error.%s`,i,l):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
||
This will cause a hydration error.%s`,i,l),!1}function Nf(a,i){if(i){var l=a.firstChild;if(l&&l===a.lastChild&&l.nodeType===3){l.nodeValue=i;return}}a.textContent=i}function uG(a){return a.replace(vQ,function(i,l){return l.toUpperCase()})}function rj(a,i,l){var d=i.indexOf("--")===0;d||(-1<i.indexOf("-")?Ec.hasOwnProperty(i)&&Ec[i]||(Ec[i]=!0,console.error("Unsupported style property %s. Did you mean %s?",i,uG(i.replace(gQ,"ms-")))):hQ.test(i)?Ec.hasOwnProperty(i)&&Ec[i]||(Ec[i]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",i,i.charAt(0).toUpperCase()+i.slice(1))):!lk.test(l)||Bw.hasOwnProperty(l)&&Bw[l]||(Bw[l]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,i,l.replace(lk,""))),typeof l=="number"&&(isNaN(l)?uk||(uk=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",i)):isFinite(l)||ck||(ck=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",i)))),l==null||typeof l=="boolean"||l===""?d?a.setProperty(i,""):i==="float"?a.cssFloat="":a[i]="":d?a.setProperty(i,l):typeof l!="number"||l===0||dk.has(i)?i==="float"?a.cssFloat=l:(et(l,i),a[i]=(""+l).trim()):a[i]=l+"px"}function aj(a,i,l){if(i!=null&&typeof i!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(i&&Object.freeze(i),a=a.style,l!=null){if(i){var d={};if(l){for(var h in l)if(l.hasOwnProperty(h)&&!i.hasOwnProperty(h))for(var v=Vw[h]||[h],E=0;E<v.length;E++)d[v[E]]=h}for(var O in i)if(i.hasOwnProperty(O)&&(!l||l[O]!==i[O]))for(h=Vw[O]||[O],v=0;v<h.length;v++)d[h[v]]=O;O={};for(var M in i)for(h=Vw[M]||[M],v=0;v<h.length;v++)O[h[v]]=M;M={};for(var I in d)if(h=d[I],(v=O[I])&&h!==v&&(E=h+","+v,!M[E])){M[E]=!0,E=console;var oe=i[h];E.error.call(E,"%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.",oe==null||typeof oe=="boolean"||oe===""?"Removing":"Updating",h,v)}}for(var se in l)!l.hasOwnProperty(se)||i!=null&&i.hasOwnProperty(se)||(se.indexOf("--")===0?a.setProperty(se,""):se==="float"?a.cssFloat="":a[se]="");for(var Z in i)I=i[Z],i.hasOwnProperty(Z)&&l[Z]!==I&&rj(a,Z,I)}else for(d in i)i.hasOwnProperty(d)&&rj(a,d,i[d])}function Ef(a){if(a.indexOf("-")===-1)return!1;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}}function ij(a){return yQ.get(a)||a}function cG(a,i){if(Fa.call(Ac,i)&&Ac[i])return!0;if(xQ.test(i)){if(a="aria-"+i.slice(4).toLowerCase(),a=fk.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",i),Ac[i]=!0;if(i!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",i,a),Ac[i]=!0}if(bQ.test(i)){if(a=i.toLowerCase(),a=fk.hasOwnProperty(a)?a:null,a==null)return Ac[i]=!0,!1;i!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",i,a),Ac[i]=!0)}return!0}function dG(a,i){var l=[],d;for(d in i)cG(a,d)||l.push(d);i=l.map(function(h){return"`"+h+"`"}).join(", "),l.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",i,a):1<l.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",i,a)}function fG(a,i,l,d){if(Fa.call(Er,i)&&Er[i])return!0;var h=i.toLowerCase();if(h==="onfocusin"||h==="onfocusout")return console.error("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."),Er[i]=!0;if(typeof l=="function"&&(a==="form"&&i==="action"||a==="input"&&i==="formAction"||a==="button"&&i==="formAction"))return!0;if(d!=null){if(a=d.possibleRegistrationNames,d.registrationNameDependencies.hasOwnProperty(i))return!0;if(d=a.hasOwnProperty(h)?a[h]:null,d!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",i,d),Er[i]=!0;if(pk.test(i))return console.error("Unknown event handler property `%s`. It will be ignored.",i),Er[i]=!0}else if(pk.test(i))return wQ.test(i)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",i),Er[i]=!0;if(NQ.test(i)||EQ.test(i))return!0;if(h==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Er[i]=!0;if(h==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Er[i]=!0;if(h==="is"&&l!==null&&l!==void 0&&typeof l!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),Er[i]=!0;if(typeof l=="number"&&isNaN(l))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",i),Er[i]=!0;if(av.hasOwnProperty(h)){if(h=av[h],h!==i)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",i,h),Er[i]=!0}else if(i!==h)return console.error("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.",i,h),Er[i]=!0;switch(i){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof l){case"boolean":switch(i){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return h=i.toLowerCase().slice(0,5),h==="data-"||h==="aria-"?!0:(l?console.error('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()}.',l,i,i,l,i):console.error('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.',l,i,i,l,i,i,i),Er[i]=!0)}case"function":case"symbol":return Er[i]=!0,!1;case"string":if(l==="false"||l==="true"){switch(i){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,i,l==="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".',i,l),Er[i]=!0}}return!0}function mG(a,i,l){var d=[],h;for(h in i)fG(a,h,i[h],l)||d.push(h);i=d.map(function(v){return"`"+v+"`"}).join(", "),d.length===1?console.error("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://react.dev/link/attribute-behavior ",i,a):1<d.length&&console.error("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://react.dev/link/attribute-behavior ",i,a)}function Sf(a){return SQ.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function vo(){}function Sx(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function oj(a){var i=Te(a);if(i&&(a=i.stateNode)){var l=a[Nr]||null;e:switch(a=i.stateNode,i.type){case"input":if(vx(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=a;l.parentNode;)l=l.parentNode;for($e(i,"name"),l=l.querySelectorAll('input[name="'+ha(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var d=l[i];if(d!==a&&d.form===a.form){var h=d[Nr]||null;if(!h)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");vx(d,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<l.length;i++)d=l[i],d.form===a.form&&zR(d)}break e;case"textarea":YR(a,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&tc(a,!!l.multiple,i,!1)}}}function sj(a,i,l){if(zw)return a(i,l);zw=!0;try{var d=a(i);return d}finally{if(zw=!1,(Oc!==null||Tc!==null)&&(mc(),Oc&&(i=Oc,a=Tc,Tc=Oc=null,oj(i),a)))for(i=0;i<a.length;i++)oj(a[i])}}function Af(a,i){var l=a.stateNode;if(l===null)return null;var d=l[Nr]||null;if(d===null)return null;l=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(a=a.type,d=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!d;break e;default:a=!1}if(a)return null;if(l&&typeof l!="function")throw Error("Expected `"+i+"` listener to be a function, instead got a value of `"+typeof l+"` type.");return l}function lj(){if(iv)return iv;var a,i=qw,l=i.length,d,h="value"in Cs?Cs.value:Cs.textContent,v=h.length;for(a=0;a<l&&i[a]===h[a];a++);var E=l-a;for(d=1;d<=E&&i[l-d]===h[v-d];d++);return iv=h.slice(a,1<d?1-d:void 0)}function Kh(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function Gh(){return!0}function uj(){return!1}function kr(a){function i(l,d,h,v,E){this._reactName=l,this._targetInst=h,this.type=d,this.nativeEvent=v,this.target=E,this.currentTarget=null;for(var O in a)a.hasOwnProperty(O)&&(l=a[O],this[O]=l?l(v):v[O]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Gh:uj,this.isPropagationStopped=uj,this}return dt(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Gh)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Gh)},persist:function(){},isPersistent:Gh}),i}function pG(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=IQ[a])?!!i[a]:!1}function Ax(){return pG}function cj(a,i){switch(a){case"keyup":return QQ.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==yk;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dj(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}function hG(a,i){switch(a){case"compositionend":return dj(i);case"keypress":return i.which!==xk?null:(Nk=!0,wk);case"textInput":return a=i.data,a===wk&&Nk?null:a;default:return null}}function gG(a,i){if(Cc)return a==="compositionend"||!Gw&&cj(a,i)?(a=lj(),iv=qw=Cs=null,Cc=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return bk&&i.locale!=="ko"?null:i.data;default:return null}}function fj(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!WQ[a.type]:i==="textarea"}function vG(a){if(!Ii)return!1;a="on"+a;var i=a in document;return i||(i=document.createElement("div"),i.setAttribute(a,"return;"),i=typeof i[a]=="function"),i}function mj(a,i,l,d){Oc?Tc?Tc.push(d):Tc=[d]:Oc=d,i=Vg(i,"onChange"),0<i.length&&(l=new ov("onChange","change",null,l,d),a.push({event:l,listeners:i}))}function yG(a){QM(a,0)}function Yh(a){var i=Me(a);if(zR(i))return a}function pj(a,i){if(a==="change")return i}function hj(){um&&(um.detachEvent("onpropertychange",gj),cm=um=null)}function gj(a){if(a.propertyName==="value"&&Yh(cm)){var i=[];mj(i,cm,a,Sx(a)),sj(yG,i)}}function bG(a,i,l){a==="focusin"?(hj(),um=i,cm=l,um.attachEvent("onpropertychange",gj)):a==="focusout"&&hj()}function xG(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Yh(cm)}function wG(a,i){if(a==="click")return Yh(i)}function NG(a,i){if(a==="input"||a==="change")return Yh(i)}function EG(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}function Of(a,i){if(Sr(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var l=Object.keys(a),d=Object.keys(i);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var h=l[d];if(!Fa.call(i,h)||!Sr(a[h],i[h]))return!1}return!0}function vj(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function yj(a,i){var l=vj(a);a=0;for(var d;l;){if(l.nodeType===3){if(d=a+l.textContent.length,a<=i&&d>=i)return{node:l,offset:i-a};a=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=vj(l)}}function bj(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?bj(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function xj(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=qh(a.document);i instanceof a.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)a=i.contentWindow;else break;i=qh(a.document)}return i}function Ox(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}function wj(a,i,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Qw||_c==null||_c!==qh(d)||(d=_c,"selectionStart"in d&&Ox(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),dm&&Of(dm,d)||(dm=d,d=Vg(Yw,"onSelect"),0<d.length&&(i=new ov("onSelect","select",null,i,l),a.push({event:i,listeners:d}),i.target=_c)))}function xl(a,i){var l={};return l[a.toLowerCase()]=i.toLowerCase(),l["Webkit"+a]="webkit"+i,l["Moz"+a]="moz"+i,l}function wl(a){if(Xw[a])return Xw[a];if(!Dc[a])return a;var i=Dc[a],l;for(l in i)if(i.hasOwnProperty(l)&&l in Sk)return Xw[a]=i[l];return a}function za(a,i){_k.set(a,i),He(i,[a])}function SG(a){for(var i=lv,l=0;l<a.length;l++){var d=a[l];if(typeof d=="object"&&d!==null)if(jn(d)&&d.length===2&&typeof d[0]=="string"){if(i!==lv&&i!==tN)return Jw;i=tN}else return Jw;else{if(typeof d=="function"||typeof d=="string"&&50<d.length||i!==lv&&i!==eN)return Jw;i=eN}}return i}function Tx(a,i,l,d){for(var h in a)Fa.call(a,h)&&h[0]!=="_"&&hi(h,a[h],i,l,d)}function hi(a,i,l,d,h){switch(typeof i){case"object":if(i===null){i="null";break}else{if(i.$$typeof===Ri){var v=L(i.type)||"…",E=i.key;i=i.props;var O=Object.keys(i),M=O.length;if(E==null&&M===0){i="<"+v+" />";break}if(3>d||M===1&&O[0]==="children"&&E==null){i="<"+v+" … />";break}l.push([h+" ".repeat(d)+a,"<"+v]),E!==null&&hi("key",E,l,d+1,h),a=!1;for(var I in i)I==="children"?i.children!=null&&(!jn(i.children)||0<i.children.length)&&(a=!0):Fa.call(i,I)&&I[0]!=="_"&&hi(I,i[I],l,d+1,h);l.push(["",a?">…</"+v+">":"/>"]);return}if(v=Object.prototype.toString.call(i),v=v.slice(8,v.length-1),v==="Array"){if(I=SG(i),I===eN||I===lv){i=JSON.stringify(i);break}else if(I===tN){for(l.push([h+" ".repeat(d)+a,""]),a=0;a<i.length;a++)v=i[a],hi(v[0],v[1],l,d+1,h);return}}if(v==="Promise"){if(i.status==="fulfilled"){if(v=l.length,hi(a,i.value,l,d,h),l.length>v){l=l[v],l[1]="Promise<"+(l[1]||"Object")+">";return}}else if(i.status==="rejected"&&(v=l.length,hi(a,i.reason,l,d,h),l.length>v)){l=l[v],l[1]="Rejected Promise<"+l[1]+">";return}l.push([" ".repeat(d)+a,"Promise"]);return}v==="Object"&&(I=Object.getPrototypeOf(i))&&typeof I.constructor=="function"&&(v=I.constructor.name),l.push([h+" ".repeat(d)+a,v==="Object"?3>d?"":"…":v]),3>d&&Tx(i,l,d+1,h);return}case"function":i=i.name===""?"() => {}":i.name+"() {}";break;case"string":i=i===aX?"…":JSON.stringify(i);break;case"undefined":i="undefined";break;case"boolean":i=i?"true":"false";break;default:i=String(i)}l.push([h+" ".repeat(d)+a,i])}function Nj(a,i,l,d){var h=!0;for(E in a)E in i||(l.push([uv+" ".repeat(d)+E,"…"]),h=!1);for(var v in i)if(v in a){var E=a[v],O=i[v];if(E!==O){if(d===0&&v==="children")h=" ".repeat(d)+v,l.push([uv+h,"…"],[cv+h,"…"]);else{if(!(3<=d)){if(typeof E=="object"&&typeof O=="object"&&E!==null&&O!==null&&E.$$typeof===O.$$typeof)if(O.$$typeof===Ri){if(E.type===O.type&&E.key===O.key){E=L(O.type)||"…",h=" ".repeat(d)+v,E="<"+E+" … />",l.push([uv+h,E],[cv+h,E]),h=!1;continue}}else{var M=Object.prototype.toString.call(E),I=Object.prototype.toString.call(O);if(M===I&&(I==="[object Object]"||I==="[object Array]")){M=[jk+" ".repeat(d)+v,I==="[object Array]"?"Array":""],l.push(M),I=l.length,Nj(E,O,l,d+1)?I===l.length&&(M[1]="Referentially unequal but deeply equal objects. Consider memoization."):h=!1;continue}}else if(typeof E=="function"&&typeof O=="function"&&E.name===O.name&&E.length===O.length&&(M=Function.prototype.toString.call(E),I=Function.prototype.toString.call(O),M===I)){E=O.name===""?"() => {}":O.name+"() {}",l.push([jk+" ".repeat(d)+v,E+" Referentially unequal function closure. Consider memoization."]);continue}}hi(v,E,l,d,uv),hi(v,O,l,d,cv)}h=!1}}else l.push([cv+" ".repeat(d)+v,"…"]),h=!1;return h}function Ua(a){bt=a&63?"Blocking":a&64?"Gesture":a&4194176?"Transition":a&62914560?"Suspense":a&2080374784?"Idle":"Other"}function gi(a,i,l,d){Gt&&(Ds.start=i,Ds.end=l,To.color="warning",To.tooltipText=d,To.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,d,Ds)):performance.measure(d,Ds))}function Qh(a,i,l){gi(a,i,l,"Reconnect")}function Xh(a,i,l,d,h){var v=B(a);if(v!==null&&Gt){var E=a.alternate,O=a.actualDuration;if(E===null||E.child!==a.child)for(var M=a.child;M!==null;M=M.sibling)O-=M.actualDuration;d=.5>O?d?"tertiary-light":"primary-light":10>O?d?"tertiary":"primary":100>O?d?"tertiary-dark":"primary-dark":"error";var I=a.memoizedProps;O=a._debugTask,I!==null&&E!==null&&E.memoizedProps!==I?(M=[iX],I=Nj(E.memoizedProps,I,M,0),1<M.length&&(I&&!_s&&(E.lanes&h)===0&&100<a.actualDuration?(_s=!0,M[0]=oX,To.color="warning",To.tooltipText=Pk):(To.color=d,To.tooltipText=v),To.properties=M,Ds.start=i,Ds.end=l,O!=null?O.run(performance.measure.bind(performance,""+v,Ds)):performance.measure(""+v,Ds))):O!=null?O.run(console.timeStamp.bind(console,v,i,l,ya,void 0,d)):console.timeStamp(v,i,l,ya,void 0,d)}}function Cx(a,i,l,d){if(Gt){var h=B(a);if(h!==null){for(var v=null,E=[],O=0;O<d.length;O++){var M=d[O];v==null&&M.source!==null&&(v=M.source._debugTask),M=M.value,E.push(["Error",typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M)])}a.key!==null&&hi("key",a.key,E,0,""),a.memoizedProps!==null&&Tx(a.memoizedProps,E,0,""),v==null&&(v=a._debugTask),a={start:i,end:l,detail:{devtools:{color:"error",track:ya,tooltipText:a.tag===13?"Hydration failed":"Error boundary caught an error",properties:E}}},v?v.run(performance.measure.bind(performance,""+h,a)):performance.measure(""+h,a)}}}function vi(a,i,l,d,h){if(h!==null){if(Gt){var v=B(a);if(v!==null){d=[];for(var E=0;E<h.length;E++){var O=h[E].value;d.push(["Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}a.key!==null&&hi("key",a.key,d,0,""),a.memoizedProps!==null&&Tx(a.memoizedProps,d,0,""),i={start:i,end:l,detail:{devtools:{color:"error",track:ya,tooltipText:"A lifecycle or effect errored",properties:d}}},(a=a._debugTask)?a.run(performance.measure.bind(performance,""+v,i)):performance.measure(""+v,i)}}}else v=B(a),v!==null&&Gt&&(h=1>d?"secondary-light":100>d?"secondary":500>d?"secondary-dark":"error",(a=a._debugTask)?a.run(console.timeStamp.bind(console,v,i,l,ya,void 0,h)):console.timeStamp(v,i,l,ya,void 0,h))}function AG(a,i,l,d){if(Gt&&!(i<=a)){var h=(l&738197653)===l?"tertiary-dark":"primary-dark";l=(l&536870912)===l?"Prepared":(l&201326741)===l?"Hydrated":"Render",d?d.run(console.timeStamp.bind(console,l,a,i,bt,gt,h)):console.timeStamp(l,a,i,bt,gt,h)}}function Ej(a,i,l,d){!Gt||i<=a||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Prewarm",a,i,bt,gt,l)):console.timeStamp("Prewarm",a,i,bt,gt,l))}function Sj(a,i,l,d){!Gt||i<=a||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Suspended",a,i,bt,gt,l)):console.timeStamp("Suspended",a,i,bt,gt,l))}function OG(a,i,l,d,h,v){if(Gt&&!(i<=a)){l=[];for(var E=0;E<d.length;E++){var O=d[E].value;l.push(["Recoverable Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}a={start:a,end:i,detail:{devtools:{color:"primary-dark",track:bt,trackGroup:gt,tooltipText:h?"Hydration Failed":"Recovered after Error",properties:l}}},v?v.run(performance.measure.bind(performance,"Recovered",a)):performance.measure("Recovered",a)}}function _x(a,i,l,d){!Gt||i<=a||(d?d.run(console.timeStamp.bind(console,"Errored",a,i,bt,gt,"error")):console.timeStamp("Errored",a,i,bt,gt,"error"))}function TG(a,i,l,d){!Gt||i<=a||(d?d.run(console.timeStamp.bind(console,l,a,i,bt,gt,"secondary-light")):console.timeStamp(l,a,i,bt,gt,"secondary-light"))}function Aj(a,i,l,d,h){if(Gt&&!(i<=a)){for(var v=[],E=0;E<l.length;E++){var O=l[E].value;v.push(["Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}a={start:a,end:i,detail:{devtools:{color:"error",track:bt,trackGroup:gt,tooltipText:d?"Remaining Effects Errored":"Commit Errored",properties:v}}},h?h.run(performance.measure.bind(performance,"Errored",a)):performance.measure("Errored",a)}}function Dx(a,i,l){!Gt||i<=a||console.timeStamp("Animating",a,i,bt,gt,"secondary-dark")}function Wh(){for(var a=Rc,i=nN=Rc=0;i<a;){var l=ba[i];ba[i++]=null;var d=ba[i];ba[i++]=null;var h=ba[i];ba[i++]=null;var v=ba[i];if(ba[i++]=null,d!==null&&h!==null){var E=d.pending;E===null?h.next=h:(h.next=E.next,E.next=h),d.pending=h}v!==0&&Oj(l,h,v)}}function Zh(a,i,l,d){ba[Rc++]=a,ba[Rc++]=i,ba[Rc++]=l,ba[Rc++]=d,nN|=d,a.lanes|=d,a=a.alternate,a!==null&&(a.lanes|=d)}function Rx(a,i,l,d){return Zh(a,i,l,d),Jh(a)}function or(a,i){return Zh(a,null,null,i),Jh(a)}function Oj(a,i,l){a.lanes|=l;var d=a.alternate;d!==null&&(d.lanes|=l);for(var h=!1,v=a.return;v!==null;)v.childLanes|=l,d=v.alternate,d!==null&&(d.childLanes|=l),v.tag===22&&(a=v.stateNode,a===null||a._visibility&fm||(h=!0)),a=v,v=v.return;return a.tag===3?(v=a.stateNode,h&&i!==null&&(h=31-wr(l),a=v.hiddenUpdates,d=a[h],d===null?a[h]=[i]:d.push(i),i.lane=l|536870912),v):null}function Jh(a){if(Vm>NX)throw Wl=Vm=0,Bm=LN=null,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.");Wl>EX&&(Wl=0,Bm=null,console.error("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.")),a.alternate===null&&(a.flags&4098)!==0&&UM(a);for(var i=a,l=i.return;l!==null;)i.alternate===null&&(i.flags&4098)!==0&&UM(a),i=l,l=i.return;return i.tag===3?i.stateNode:null}function Nl(a){if(xa===null)return a;var i=xa(a);return i===void 0?a:i.current}function jx(a){if(xa===null)return a;var i=xa(a);return i===void 0?a!=null&&typeof a.render=="function"&&(i=Nl(a.render),a.render!==i)?(i={$$typeof:em,render:i},a.displayName!==void 0&&(i.displayName=a.displayName),i):a:i.current}function Tj(a,i){if(xa===null)return!1;var l=a.elementType;i=i.type;var d=!1,h=typeof i=="object"&&i!==null?i.$$typeof:null;switch(a.tag){case 1:typeof i=="function"&&(d=!0);break;case 0:(typeof i=="function"||h===ta)&&(d=!0);break;case 11:(h===em||h===ta)&&(d=!0);break;case 14:case 15:(h===Xg||h===ta)&&(d=!0);break;default:return!1}return!!(d&&(a=xa(l),a!==void 0&&a===xa(i)))}function Cj(a){xa!==null&&typeof WeakSet=="function"&&(jc===null&&(jc=new WeakSet),jc.add(a))}function _j(a,i,l){do{var d=a,h=d.alternate,v=d.child,E=d.sibling,O=d.tag;d=d.type;var M=null;switch(O){case 0:case 15:case 1:M=d;break;case 11:M=d.render}if(xa===null)throw Error("Expected resolveFamily to be set during hot reload.");var I=!1;if(d=!1,M!==null&&(M=xa(M),M!==void 0&&(l.has(M)?d=!0:i.has(M)&&(O===1?d=!0:I=!0))),jc!==null&&(jc.has(a)||h!==null&&jc.has(h))&&(d=!0),d&&(a._debugNeedsRemount=!0),(d||I)&&(h=or(a,2),h!==null&&un(h,a,2)),v===null||d||_j(v,i,l),E===null)break;a=E}while(!0)}function CG(a,i,l,d){this.tag=a,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Mk||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Px(a){return a=a.prototype,!(!a||!a.isReactComponent)}function yo(a,i){var l=a.alternate;switch(l===null?(l=y(a.tag,i,a.key,a.mode),l.elementType=a.elementType,l.type=a.type,l.stateNode=a.stateNode,l._debugOwner=a._debugOwner,l._debugStack=a._debugStack,l._debugTask=a._debugTask,l._debugHookTypes=a._debugHookTypes,l.alternate=a,a.alternate=l):(l.pendingProps=i,l.type=a.type,l.flags=0,l.subtreeFlags=0,l.deletions=null,l.actualDuration=-0,l.actualStartTime=-1.1),l.flags=a.flags&65011712,l.childLanes=a.childLanes,l.lanes=a.lanes,l.child=a.child,l.memoizedProps=a.memoizedProps,l.memoizedState=a.memoizedState,l.updateQueue=a.updateQueue,i=a.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext,_debugThenableState:i._debugThenableState},l.sibling=a.sibling,l.index=a.index,l.ref=a.ref,l.refCleanup=a.refCleanup,l.selfBaseDuration=a.selfBaseDuration,l.treeBaseDuration=a.treeBaseDuration,l._debugInfo=a._debugInfo,l._debugNeedsRemount=a._debugNeedsRemount,l.tag){case 0:case 15:l.type=Nl(a.type);break;case 1:l.type=Nl(a.type);break;case 11:l.type=jx(a.type)}return l}function Dj(a,i){a.flags&=65011714;var l=a.alternate;return l===null?(a.childLanes=0,a.lanes=i,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null,a.selfBaseDuration=0,a.treeBaseDuration=0):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,i=l.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext,_debugThenableState:i._debugThenableState},a.selfBaseDuration=l.selfBaseDuration,a.treeBaseDuration=l.treeBaseDuration),a}function Mx(a,i,l,d,h,v){var E=0,O=a;if(typeof a=="function")Px(a)&&(E=1),O=Nl(O);else if(typeof a=="string")E=z(),E=IY(a,l,E)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case Tw:return i=y(31,l,i,h),i.elementType=Tw,i.lanes=v,i;case xc:return El(l.children,h,v,i);case Qg:E=8,h|=lr,h|=Ka;break;case Ew:return a=l,d=h,typeof a.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof a.id),i=y(12,a,i,d|it),i.elementType=Ew,i.lanes=v,i.stateNode={effectDuration:0,passiveEffectDuration:0},i;case Aw:return i=y(13,l,i,h),i.elementType=Aw,i.lanes=v,i;case Ow:return i=y(19,l,i,h),i.elementType=Ow,i.lanes=v,i;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ji:E=10;break e;case Sw:E=9;break e;case em:E=11,O=jx(O);break e;case Xg:E=14;break e;case ta:E=16,O=null;break e}O="",(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),a===null?l="null":jn(a)?l="array":a!==void 0&&a.$$typeof===Ri?(l="<"+(L(a.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):l=typeof a,(E=d?V(d):null)&&(O+=`
|
||
|
||
Check the render method of \``+E+"`."),E=29,l=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(l+"."+O)),O=null}return i=y(E,l,i,h),i.elementType=a,i.type=O,i.lanes=v,i._debugOwner=d,i}function eg(a,i,l){return i=Mx(a.type,a.key,a.props,a._owner,i,l),i._debugOwner=a._owner,i._debugStack=a._debugStack,i._debugTask=a._debugTask,i}function El(a,i,l,d){return a=y(7,a,d,i),a.lanes=l,a}function Lx(a,i,l){return a=y(6,a,null,i),a.lanes=l,a}function Rj(a){var i=y(18,null,null,Ge);return i.stateNode=a,i}function kx(a,i,l){return i=y(4,a.children!==null?a.children:[],a.key,i),i.lanes=l,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}function Qr(a,i){if(typeof a=="object"&&a!==null){var l=rN.get(a);return l!==void 0?l:(i={value:a,source:i,stack:ce(i)},rN.set(a,i),i)}return{value:a,source:i,stack:ce(i)}}function bo(a,i){fs(),Pc[Mc++]=mm,Pc[Mc++]=dv,dv=a,mm=i}function jj(a,i,l){fs(),wa[Na++]=_o,wa[Na++]=Do,wa[Na++]=kl,kl=a;var d=_o;a=Do;var h=32-wr(d)-1;d&=~(1<<h),l+=1;var v=32-wr(i)+h;if(30<v){var E=h-h%5;v=(d&(1<<E)-1).toString(32),d>>=E,h-=E,_o=1<<32-wr(i)+h|l<<h|d,Do=v+a}else _o=1<<v|l<<h|d,Do=a}function Ix(a){fs(),a.return!==null&&(bo(a,1),jj(a,1,0))}function $x(a){for(;a===dv;)dv=Pc[--Mc],Pc[Mc]=null,mm=Pc[--Mc],Pc[Mc]=null;for(;a===kl;)kl=wa[--Na],wa[Na]=null,Do=wa[--Na],wa[Na]=null,_o=wa[--Na],wa[Na]=null}function Pj(){return fs(),kl!==null?{id:_o,overflow:Do}:null}function Mj(a,i){fs(),wa[Na++]=_o,wa[Na++]=Do,wa[Na++]=kl,_o=i.id,Do=i.overflow,kl=a}function fs(){mt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Sl(a,i){if(a.return===null){if(ra===null)ra={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i};else{if(ra.fiber!==a)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");ra.distanceFromLeaf>i&&(ra.distanceFromLeaf=i)}return ra}var l=Sl(a.return,i+1).children;return 0<l.length&&l[l.length-1].fiber===a?(l=l[l.length-1],l.distanceFromLeaf>i&&(l.distanceFromLeaf=i),l):(i={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i},l.push(i),i)}function Lj(){mt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function tg(a,i){$i||(a=Sl(a,0),a.serverProps=null,i!==null&&(i=mL(i),a.serverTail.push(i)))}function ms(a){var i=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,l="",d=ra;throw d!==null&&(ra=null,l=Nx(d)),Tf(Qr(Error("Hydration failed because the server rendered "+(i?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
||
|
||
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
||
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
||
- Date formatting in a user's locale which doesn't match the server.
|
||
- External changing data without sending a snapshot of it along with the HTML.
|
||
- Invalid HTML tag nesting.
|
||
|
||
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
||
|
||
https://react.dev/link/hydration-mismatch`+l),a)),aN}function kj(a){var i=a.stateNode,l=a.type,d=a.memoizedProps;switch(i[tr]=a,i[Nr]=d,aw(l,d),l){case"dialog":ht("cancel",i),ht("close",i);break;case"iframe":case"object":case"embed":ht("load",i);break;case"video":case"audio":for(l=0;l<zm.length;l++)ht(zm[l],i);break;case"source":ht("error",i);break;case"img":case"image":case"link":ht("error",i),ht("load",i);break;case"details":ht("toggle",i);break;case"input":$t("input",d),ht("invalid",i),UR(i,d),qR(i,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"option":HR(i,d);break;case"select":$t("select",d),ht("invalid",i),KR(i,d);break;case"textarea":$t("textarea",d),ht("invalid",i),GR(i,d),QR(i,d.value,d.defaultValue,d.children)}l=d.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||d.suppressHydrationWarning===!0||JM(i.textContent,l)?(d.popover!=null&&(ht("beforetoggle",i),ht("toggle",i)),d.onScroll!=null&&ht("scroll",i),d.onScrollEnd!=null&&ht("scrollend",i),d.onClick!=null&&(i.onclick=vo),i=!0):i=!1,i||ms(a,!0)}function Ij(a){for(nr=a.return;nr;)switch(nr.tag){case 5:case 31:case 13:Ea=!1;return;case 27:case 3:Ea=!0;return;default:nr=nr.return}}function ac(a){if(a!==nr)return!1;if(!mt)return Ij(a),mt=!0,!1;var i=a.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=a.type,l=!(l!=="form"&&l!=="button")||uw(a.type,a.memoizedProps)),l=!l),l&&Yt){for(l=Yt;l;){var d=Sl(a,0),h=mL(l);d.serverTail.push(h),l=h.type==="Suspense"?mw(l):ea(l.nextSibling)}ms(a)}if(Ij(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Yt=mw(a)}else if(i===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Yt=mw(a)}else i===27?(i=Yt,Es(a.type)?(a=GN,GN=null,Yt=a):Yt=i):Yt=nr?ea(a.stateNode.nextSibling):null;return!0}function Al(){Yt=nr=null,$i=mt=!1}function Vx(){var a=js;return a!==null&&(Cr===null?Cr=a:Cr.push.apply(Cr,a),js=null),a}function Tf(a){js===null?js=[a]:js.push(a)}function Bx(){var a=ra;if(a!==null){ra=null;for(var i=Nx(a);0<a.children.length;)a=a.children[0];de(a.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
||
|
||
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
||
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
||
- Date formatting in a user's locale which doesn't match the server.
|
||
- External changing data without sending a snapshot of it along with the HTML.
|
||
- Invalid HTML tag nesting.
|
||
|
||
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
||
|
||
%s%s`,"https://react.dev/link/hydration-mismatch",i)})}}function ng(){Lc=fv=null,kc=!1}function ps(a,i,l){G(iN,i._currentValue,a),i._currentValue=l,G(oN,i._currentRenderer,a),i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==kk&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),i._currentRenderer=kk}function xo(a,i){a._currentValue=iN.current;var l=oN.current;H(oN,i),a._currentRenderer=l,H(iN,i)}function zx(a,i,l){for(;a!==null;){var d=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),a===l)break;a=a.return}a!==l&&console.error("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 Ux(a,i,l,d){var h=a.child;for(h!==null&&(h.return=a);h!==null;){var v=h.dependencies;if(v!==null){var E=h.child;v=v.firstContext;e:for(;v!==null;){var O=v;v=h;for(var M=0;M<i.length;M++)if(O.context===i[M]){v.lanes|=l,O=v.alternate,O!==null&&(O.lanes|=l),zx(v.return,l,a),d||(E=null);break e}v=O.next}}else if(h.tag===18){if(E=h.return,E===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");E.lanes|=l,v=E.alternate,v!==null&&(v.lanes|=l),zx(E,l,a),E=null}else E=h.child;if(E!==null)E.return=h;else for(E=h;E!==null;){if(E===a){E=null;break}if(h=E.sibling,h!==null){h.return=E.return,E=h;break}E=E.return}h=E}}function ic(a,i,l,d){a=null;for(var h=i,v=!1;h!==null;){if(!v){if((h.flags&524288)!==0)v=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var E=h.alternate;if(E===null)throw Error("Should have a current fiber. This is a bug in React.");if(E=E.memoizedProps,E!==null){var O=h.type;Sr(h.pendingProps.value,E.value)||(a!==null?a.push(O):a=[O])}}else if(h===Wg.current){if(E=h.alternate,E===null)throw Error("Should have a current fiber. This is a bug in React.");E.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(a!==null?a.push(Km):a=[Km])}h=h.return}a!==null&&Ux(i,a,l,d),i.flags|=262144}function rg(a){for(a=a.firstContext;a!==null;){if(!Sr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Ol(a){fv=a,Lc=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function tn(a){return kc&&console.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()."),$j(fv,a)}function ag(a,i){return fv===null&&Ol(a),$j(a,i)}function $j(a,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},Lc===null){if(a===null)throw 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().");Lc=i,a.dependencies={lanes:0,firstContext:i,_debugThenableState:null},a.flags|=524288}else Lc=Lc.next=i;return l}function qx(){return{controller:new uX,data:new Map,refCount:0}}function Tl(a){a.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),a.refCount++}function Cf(a){a.refCount--,0>a.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),a.refCount===0&&cX(dX,function(){a.controller.abort()})}function yi(a,i,l){(a&127)!==0?0>Vi&&(Vi=En(),hm=mv(i),sN=i,l!=null&&(lN=B(l)),(xt&(Mn|oa))!==Gn&&(cn=!0,Ms=pm),a=Qf(),i=Yf(),a!==Ic||i!==gm?Ic=-1.1:i!==null&&(Ms=pm),Vl=a,gm=i):(a&4194048)!==0&&0>Sa&&(Sa=En(),vm=mv(i),Ik=i,l!=null&&($k=B(l)),0>Mo)&&(a=Qf(),i=Yf(),(a!==ks||i!==Bl)&&(ks=-1.1),Ls=a,Bl=i)}function _G(a){if(0>Vi){Vi=En(),hm=a._debugTask!=null?a._debugTask:null,(xt&(Mn|oa))!==Gn&&(Ms=pm);var i=Qf(),l=Yf();i!==Ic||l!==gm?Ic=-1.1:l!==null&&(Ms=pm),Vl=i,gm=l}0>Sa&&(Sa=En(),vm=a._debugTask!=null?a._debugTask:null,0>Mo)&&(a=Qf(),i=Yf(),(a!==ks||i!==Bl)&&(ks=-1.1),Ls=a,Bl=i)}function wo(){var a=Il;return Il=0,a}function ig(a){var i=Il;return Il=a,i}function _f(a){var i=Il;return Il+=a,i}function og(){Ke=qe=-1.1}function Xr(){var a=qe;return qe=-1.1,a}function Wr(a){0<=a&&(qe=a)}function bi(){var a=on;return on=-0,a}function xi(a){0<=a&&(on=a)}function wi(){var a=nn;return nn=null,a}function Ni(){var a=cn;return cn=!1,a}function Hx(a){Ar=En(),0>a.actualStartTime&&(a.actualStartTime=Ar)}function Fx(a){if(0<=Ar){var i=En()-Ar;a.actualDuration+=i,a.selfBaseDuration=i,Ar=-1}}function Vj(a){if(0<=Ar){var i=En()-Ar;a.actualDuration+=i,Ar=-1}}function Ei(){if(0<=Ar){var a=En(),i=a-Ar;Ar=-1,Il+=i,on+=i,Ke=a}}function Bj(a){nn===null&&(nn=[]),nn.push(a),jo===null&&(jo=[]),jo.push(a)}function Si(){Ar=En(),0>qe&&(qe=Ar)}function Df(a){for(var i=a.child;i;)a.actualDuration+=i.actualDuration,i=i.sibling}function DG(a,i){if(bm===null){var l=bm=[];cN=0,zl=ew(),$c={status:"pending",value:void 0,then:function(d){l.push(d)}}}return cN++,i.then(zj,zj),i}function zj(){if(--cN===0&&(-1<Sa||(Mo=-1.1),bm!==null)){$c!==null&&($c.status="fulfilled");var a=bm;bm=null,zl=0,$c=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function RG(a,i){var l=[],d={status:"pending",value:null,reason:null,then:function(h){l.push(h)}};return a.then(function(){d.status="fulfilled",d.value=i;for(var h=0;h<l.length;h++)(0,l[h])(i)},function(h){for(d.status="rejected",d.reason=h,h=0;h<l.length;h++)(0,l[h])(void 0)}),d}function Kx(){var a=Ul.current;return a!==null?a:zt.pooledCache}function sg(a,i){i===null?G(Ul,Ul.current,a):G(Ul,i.pool,a)}function Uj(){var a=Kx();return a===null?null:{parent:Nn._currentValue,pool:a}}function qj(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Hj(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Fj(a,i,l){he.actQueue!==null&&(he.didUsePromise=!0);var d=a.thenables;if(l=d[l],l===void 0?d.push(i):l!==i&&(a.didWarnAboutUncachedPromise||(a.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),i.then(vo,vo),i=l),i._debugInfo===void 0){a=performance.now(),d=i.displayName;var h={name:typeof d=="string"?d:"Promise",start:a,end:a,value:i};i._debugInfo=[{awaited:h}],i.status!=="fulfilled"&&i.status!=="rejected"&&(a=function(){h.end=performance.now()},i.then(a,a))}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Gj(a),a;default:if(typeof i.status=="string")i.then(vo,vo);else{if(a=zt,a!==null&&100<a.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");a=i,a.status="pending",a.then(function(v){if(i.status==="pending"){var E=i;E.status="fulfilled",E.value=v}},function(v){if(i.status==="pending"){var E=i;E.status="rejected",E.reason=v}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Gj(a),a}throw Hl=i,Om=!0,Vc}}function hs(a){try{return gX(a)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Hl=i,Om=!0,Vc):i}}function Kj(){if(Hl===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Hl;return Hl=null,Om=!1,a}function Gj(a){if(a===Vc||a===wv)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Zn(a){var i=ot;return a!=null&&(ot=i===null?a:i.concat(a)),i}function Gx(){var a=ot;if(a!=null){for(var i=a.length-1;0<=i;i--)if(a[i].name!=null){var l=a[i].debugTask;if(l!=null)return l}}return null}function lg(a,i,l){for(var d=Object.keys(a.props),h=0;h<d.length;h++){var v=d[h];if(v!=="children"&&v!=="key"){i===null&&(i=eg(a,l.mode,0),i._debugInfo=ot,i.return=l),de(i,function(E){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E)},v);break}}}function ug(a){var i=Tm;return Tm+=1,Bc===null&&(Bc=qj()),Fj(Bc,a,i)}function Rf(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function Yj(a,i){throw i.$$typeof===YY?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
||
- Multiple copies of the "react" package is used.
|
||
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
||
- A compiler tries to "inline" JSX instead of using the runtime.`):(a=Object.prototype.toString.call(i),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead."))}function cg(a,i){var l=Gx();l!==null?l.run(Yj.bind(null,a,i)):Yj(a,i)}function Qj(a,i){var l=B(a)||"Component";a3[l]||(a3[l]=!0,i=i.displayName||i.name||"Component",a.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
||
root.render(%s)`,i,i,i):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
||
<%s>{%s}</%s>`,i,i,l,i,l))}function dg(a,i){var l=Gx();l!==null?l.run(Qj.bind(null,a,i)):Qj(a,i)}function Xj(a,i){var l=B(a)||"Component";i3[l]||(i3[l]=!0,i=String(i),a.tag===3?console.error(`Symbols are not valid as a React child.
|
||
root.render(%s)`,i):console.error(`Symbols are not valid as a React child.
|
||
<%s>%s</%s>`,l,i,l))}function fg(a,i){var l=Gx();l!==null?l.run(Xj.bind(null,a,i)):Xj(a,i)}function Wj(a){function i(X,ee){if(a){var re=X.deletions;re===null?(X.deletions=[ee],X.flags|=16):re.push(ee)}}function l(X,ee){if(!a)return null;for(;ee!==null;)i(X,ee),ee=ee.sibling;return null}function d(X){for(var ee=new Map;X!==null;)X.key!==null?ee.set(X.key,X):ee.set(X.index,X),X=X.sibling;return ee}function h(X,ee){return X=yo(X,ee),X.index=0,X.sibling=null,X}function v(X,ee,re){return X.index=re,a?(re=X.alternate,re!==null?(re=re.index,re<ee?(X.flags|=67108866,ee):re):(X.flags|=67108866,ee)):(X.flags|=1048576,ee)}function E(X){return a&&X.alternate===null&&(X.flags|=67108866),X}function O(X,ee,re,ve){return ee===null||ee.tag!==6?(ee=Lx(re,X.mode,ve),ee.return=X,ee._debugOwner=X,ee._debugTask=X._debugTask,ee._debugInfo=ot,ee):(ee=h(ee,re),ee.return=X,ee._debugInfo=ot,ee)}function M(X,ee,re,ve){var _e=re.type;return _e===xc?(ee=oe(X,ee,re.props.children,ve,re.key),lg(re,ee,X),ee):ee!==null&&(ee.elementType===_e||Tj(ee,re)||typeof _e=="object"&&_e!==null&&_e.$$typeof===ta&&hs(_e)===ee.type)?(ee=h(ee,re.props),Rf(ee,re),ee.return=X,ee._debugOwner=re._owner,ee._debugInfo=ot,ee):(ee=eg(re,X.mode,ve),Rf(ee,re),ee.return=X,ee._debugInfo=ot,ee)}function I(X,ee,re,ve){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==re.containerInfo||ee.stateNode.implementation!==re.implementation?(ee=kx(re,X.mode,ve),ee.return=X,ee._debugInfo=ot,ee):(ee=h(ee,re.children||[]),ee.return=X,ee._debugInfo=ot,ee)}function oe(X,ee,re,ve,_e){return ee===null||ee.tag!==7?(ee=El(re,X.mode,ve,_e),ee.return=X,ee._debugOwner=X,ee._debugTask=X._debugTask,ee._debugInfo=ot,ee):(ee=h(ee,re),ee.return=X,ee._debugInfo=ot,ee)}function se(X,ee,re){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return ee=Lx(""+ee,X.mode,re),ee.return=X,ee._debugOwner=X,ee._debugTask=X._debugTask,ee._debugInfo=ot,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case Ri:return re=eg(ee,X.mode,re),Rf(re,ee),re.return=X,X=Zn(ee._debugInfo),re._debugInfo=ot,ot=X,re;case bc:return ee=kx(ee,X.mode,re),ee.return=X,ee._debugInfo=ot,ee;case ta:var ve=Zn(ee._debugInfo);return ee=hs(ee),X=se(X,ee,re),ot=ve,X}if(jn(ee)||j(ee))return re=El(ee,X.mode,re,null),re.return=X,re._debugOwner=X,re._debugTask=X._debugTask,X=Zn(ee._debugInfo),re._debugInfo=ot,ot=X,re;if(typeof ee.then=="function")return ve=Zn(ee._debugInfo),X=se(X,ug(ee),re),ot=ve,X;if(ee.$$typeof===ji)return se(X,ag(X,ee),re);cg(X,ee)}return typeof ee=="function"&&dg(X,ee),typeof ee=="symbol"&&fg(X,ee),null}function Z(X,ee,re,ve){var _e=ee!==null?ee.key:null;if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return _e!==null?null:O(X,ee,""+re,ve);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case Ri:return re.key===_e?(_e=Zn(re._debugInfo),X=M(X,ee,re,ve),ot=_e,X):null;case bc:return re.key===_e?I(X,ee,re,ve):null;case ta:return _e=Zn(re._debugInfo),re=hs(re),X=Z(X,ee,re,ve),ot=_e,X}if(jn(re)||j(re))return _e!==null?null:(_e=Zn(re._debugInfo),X=oe(X,ee,re,ve,null),ot=_e,X);if(typeof re.then=="function")return _e=Zn(re._debugInfo),X=Z(X,ee,ug(re),ve),ot=_e,X;if(re.$$typeof===ji)return Z(X,ee,ag(X,re),ve);cg(X,re)}return typeof re=="function"&&dg(X,re),typeof re=="symbol"&&fg(X,re),null}function fe(X,ee,re,ve,_e){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return X=X.get(re)||null,O(ee,X,""+ve,_e);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case Ri:return re=X.get(ve.key===null?re:ve.key)||null,X=Zn(ve._debugInfo),ee=M(ee,re,ve,_e),ot=X,ee;case bc:return X=X.get(ve.key===null?re:ve.key)||null,I(ee,X,ve,_e);case ta:var We=Zn(ve._debugInfo);return ve=hs(ve),ee=fe(X,ee,re,ve,_e),ot=We,ee}if(jn(ve)||j(ve))return re=X.get(re)||null,X=Zn(ve._debugInfo),ee=oe(ee,re,ve,_e,null),ot=X,ee;if(typeof ve.then=="function")return We=Zn(ve._debugInfo),ee=fe(X,ee,re,ug(ve),_e),ot=We,ee;if(ve.$$typeof===ji)return fe(X,ee,re,ag(ee,ve),_e);cg(ee,ve)}return typeof ve=="function"&&dg(ee,ve),typeof ve=="symbol"&&fg(ee,ve),null}function Ce(X,ee,re,ve){if(typeof re!="object"||re===null)return ve;switch(re.$$typeof){case Ri:case bc:g(X,ee,re);var _e=re.key;if(typeof _e!="string")break;if(ve===null){ve=new Set,ve.add(_e);break}if(!ve.has(_e)){ve.add(_e);break}de(ee,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",_e)});break;case ta:re=hs(re),Ce(X,ee,re,ve)}return ve}function De(X,ee,re,ve){for(var _e=null,We=null,Ue=null,Ve=ee,tt=ee=0,Qt=null;Ve!==null&&tt<re.length;tt++){Ve.index>tt?(Qt=Ve,Ve=null):Qt=Ve.sibling;var yn=Z(X,Ve,re[tt],ve);if(yn===null){Ve===null&&(Ve=Qt);break}_e=Ce(X,yn,re[tt],_e),a&&Ve&&yn.alternate===null&&i(X,Ve),ee=v(yn,ee,tt),Ue===null?We=yn:Ue.sibling=yn,Ue=yn,Ve=Qt}if(tt===re.length)return l(X,Ve),mt&&bo(X,tt),We;if(Ve===null){for(;tt<re.length;tt++)Ve=se(X,re[tt],ve),Ve!==null&&(_e=Ce(X,Ve,re[tt],_e),ee=v(Ve,ee,tt),Ue===null?We=Ve:Ue.sibling=Ve,Ue=Ve);return mt&&bo(X,tt),We}for(Ve=d(Ve);tt<re.length;tt++)Qt=fe(Ve,X,tt,re[tt],ve),Qt!==null&&(_e=Ce(X,Qt,re[tt],_e),a&&Qt.alternate!==null&&Ve.delete(Qt.key===null?tt:Qt.key),ee=v(Qt,ee,tt),Ue===null?We=Qt:Ue.sibling=Qt,Ue=Qt);return a&&Ve.forEach(function(Uo){return i(X,Uo)}),mt&&bo(X,tt),We}function Ht(X,ee,re,ve){if(re==null)throw Error("An iterable object provided no iterator.");for(var _e=null,We=null,Ue=ee,Ve=ee=0,tt=null,Qt=null,yn=re.next();Ue!==null&&!yn.done;Ve++,yn=re.next()){Ue.index>Ve?(tt=Ue,Ue=null):tt=Ue.sibling;var Uo=Z(X,Ue,yn.value,ve);if(Uo===null){Ue===null&&(Ue=tt);break}Qt=Ce(X,Uo,yn.value,Qt),a&&Ue&&Uo.alternate===null&&i(X,Ue),ee=v(Uo,ee,Ve),We===null?_e=Uo:We.sibling=Uo,We=Uo,Ue=tt}if(yn.done)return l(X,Ue),mt&&bo(X,Ve),_e;if(Ue===null){for(;!yn.done;Ve++,yn=re.next())Ue=se(X,yn.value,ve),Ue!==null&&(Qt=Ce(X,Ue,yn.value,Qt),ee=v(Ue,ee,Ve),We===null?_e=Ue:We.sibling=Ue,We=Ue);return mt&&bo(X,Ve),_e}for(Ue=d(Ue);!yn.done;Ve++,yn=re.next())tt=fe(Ue,X,Ve,yn.value,ve),tt!==null&&(Qt=Ce(X,tt,yn.value,Qt),a&&tt.alternate!==null&&Ue.delete(tt.key===null?Ve:tt.key),ee=v(tt,ee,Ve),We===null?_e=tt:We.sibling=tt,We=tt);return a&&Ue.forEach(function(BX){return i(X,BX)}),mt&&bo(X,Ve),_e}function vt(X,ee,re,ve){if(typeof re=="object"&&re!==null&&re.type===xc&&re.key===null&&(lg(re,null,X),re=re.props.children),typeof re=="object"&&re!==null){switch(re.$$typeof){case Ri:var _e=Zn(re._debugInfo);e:{for(var We=re.key;ee!==null;){if(ee.key===We){if(We=re.type,We===xc){if(ee.tag===7){l(X,ee.sibling),ve=h(ee,re.props.children),ve.return=X,ve._debugOwner=re._owner,ve._debugInfo=ot,lg(re,ve,X),X=ve;break e}}else if(ee.elementType===We||Tj(ee,re)||typeof We=="object"&&We!==null&&We.$$typeof===ta&&hs(We)===ee.type){l(X,ee.sibling),ve=h(ee,re.props),Rf(ve,re),ve.return=X,ve._debugOwner=re._owner,ve._debugInfo=ot,X=ve;break e}l(X,ee);break}else i(X,ee);ee=ee.sibling}re.type===xc?(ve=El(re.props.children,X.mode,ve,re.key),ve.return=X,ve._debugOwner=X,ve._debugTask=X._debugTask,ve._debugInfo=ot,lg(re,ve,X),X=ve):(ve=eg(re,X.mode,ve),Rf(ve,re),ve.return=X,ve._debugInfo=ot,X=ve)}return X=E(X),ot=_e,X;case bc:e:{for(_e=re,re=_e.key;ee!==null;){if(ee.key===re)if(ee.tag===4&&ee.stateNode.containerInfo===_e.containerInfo&&ee.stateNode.implementation===_e.implementation){l(X,ee.sibling),ve=h(ee,_e.children||[]),ve.return=X,X=ve;break e}else{l(X,ee);break}else i(X,ee);ee=ee.sibling}ve=kx(_e,X.mode,ve),ve.return=X,X=ve}return E(X);case ta:return _e=Zn(re._debugInfo),re=hs(re),X=vt(X,ee,re,ve),ot=_e,X}if(jn(re))return _e=Zn(re._debugInfo),X=De(X,ee,re,ve),ot=_e,X;if(j(re)){if(_e=Zn(re._debugInfo),We=j(re),typeof We!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ue=We.call(re);return Ue===re?(X.tag!==0||Object.prototype.toString.call(X.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ue)!=="[object Generator]")&&(n3||console.error("Using Iterators 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. You can also use an Iterable that can iterate multiple times over the same items."),n3=!0):re.entries!==We||pN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pN=!0),X=Ht(X,ee,Ue,ve),ot=_e,X}if(typeof re.then=="function")return _e=Zn(re._debugInfo),X=vt(X,ee,ug(re),ve),ot=_e,X;if(re.$$typeof===ji)return vt(X,ee,ag(X,re),ve);cg(X,re)}return typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint"?(_e=""+re,ee!==null&&ee.tag===6?(l(X,ee.sibling),ve=h(ee,_e),ve.return=X,X=ve):(l(X,ee),ve=Lx(_e,X.mode,ve),ve.return=X,ve._debugOwner=X,ve._debugTask=X._debugTask,ve._debugInfo=ot,X=ve),E(X)):(typeof re=="function"&&dg(X,re),typeof re=="symbol"&&fg(X,re),l(X,ee))}return function(X,ee,re,ve){var _e=ot;ot=null;try{Tm=0;var We=vt(X,ee,re,ve);return Bc=null,We}catch(Qt){if(Qt===Vc||Qt===wv)throw Qt;var Ue=y(29,Qt,null,X.mode);Ue.lanes=ve,Ue.return=X;var Ve=Ue._debugInfo=ot;if(Ue._debugOwner=X._debugOwner,Ue._debugTask=X._debugTask,Ve!=null){for(var tt=Ve.length-1;0<=tt;tt--)if(typeof Ve[tt].stack=="string"){Ue._debugOwner=Ve[tt],Ue._debugTask=Ve[tt].debugTask;break}}return Ue}finally{ot=_e}}}function Zj(a,i){var l=jn(a);return a=!l&&typeof j(a)=="function",l||a?(l=l?"array":"iterable",console.error("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>",l,i,l),!1):!0}function Yx(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qx(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function gs(a){return{lane:a,tag:s3,payload:null,callback:null,next:null}}function vs(a,i,l){var d=a.updateQueue;if(d===null)return null;if(d=d.shared,gN===d&&!c3){var h=B(a);console.error(`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.
|
||
|
||
Please update the following component: %s`,h),c3=!0}return(xt&Mn)!==Gn?(h=d.pending,h===null?i.next=i:(i.next=h.next,h.next=i),d.pending=i,i=Jh(a),Oj(a,null,l),i):(Zh(a,d,i,l),Jh(a))}function jf(a,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var d=i.lanes;d&=a.pendingLanes,l|=d,i.lanes=l,ds(a,l)}}function mg(a,i){var l=a.updateQueue,d=a.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var h=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var E={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?h=v=E:v=v.next=E,l=l.next}while(l!==null);v===null?h=v=i:v=v.next=i}else h=v=i;l={baseState:d.baseState,firstBaseUpdate:h,lastBaseUpdate:v,shared:d.shared,callbacks:d.callbacks},a.updateQueue=l;return}a=l.lastBaseUpdate,a===null?l.firstBaseUpdate=i:a.next=i,l.lastBaseUpdate=i}function Pf(){if(vN){var a=$c;if(a!==null)throw a}}function Mf(a,i,l,d){vN=!1;var h=a.updateQueue;Is=!1,gN=h.shared;var v=h.firstBaseUpdate,E=h.lastBaseUpdate,O=h.shared.pending;if(O!==null){h.shared.pending=null;var M=O,I=M.next;M.next=null,E===null?v=I:E.next=I,E=M;var oe=a.alternate;oe!==null&&(oe=oe.updateQueue,O=oe.lastBaseUpdate,O!==E&&(O===null?oe.firstBaseUpdate=I:O.next=I,oe.lastBaseUpdate=M))}if(v!==null){var se=h.baseState;E=0,oe=I=M=null,O=v;do{var Z=O.lane&-536870913,fe=Z!==O.lane;if(fe?(st&Z)===Z:(d&Z)===Z){Z!==0&&Z===zl&&(vN=!0),oe!==null&&(oe=oe.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{Z=a;var Ce=O,De=i,Ht=l;switch(Ce.tag){case l3:if(Ce=Ce.payload,typeof Ce=="function"){kc=!0;var vt=Ce.call(Ht,se,De);if(Z.mode&lr){je(!0);try{Ce.call(Ht,se,De)}finally{je(!1)}}kc=!1,se=vt;break e}se=Ce;break e;case hN:Z.flags=Z.flags&-65537|128;case s3:if(vt=Ce.payload,typeof vt=="function"){if(kc=!0,Ce=vt.call(Ht,se,De),Z.mode&lr){je(!0);try{vt.call(Ht,se,De)}finally{je(!1)}}kc=!1}else Ce=vt;if(Ce==null)break e;se=dt({},se,Ce);break e;case u3:Is=!0}}Z=O.callback,Z!==null&&(a.flags|=64,fe&&(a.flags|=8192),fe=h.callbacks,fe===null?h.callbacks=[Z]:fe.push(Z))}else fe={lane:Z,tag:O.tag,payload:O.payload,callback:O.callback,next:null},oe===null?(I=oe=fe,M=se):oe=oe.next=fe,E|=Z;if(O=O.next,O===null){if(O=h.shared.pending,O===null)break;fe=O,O=fe.next,fe.next=null,h.lastBaseUpdate=fe,h.shared.pending=null}}while(!0);oe===null&&(M=se),h.baseState=M,h.firstBaseUpdate=I,h.lastBaseUpdate=oe,v===null&&(h.shared.lanes=0),Bs|=E,a.lanes=E,a.memoizedState=se}gN=null}function Jj(a,i){if(typeof a!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(i)}function jG(a,i){var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)Jj(l[a],i)}function eP(a,i){var l=a.callbacks;if(l!==null)for(a.callbacks=null,a=0;a<l.length;a++)Jj(l[a],i)}function tP(a,i){var l=zi;G(Ev,l,a),G(zc,i,a),zi=l|i.baseLanes}function Xx(a){G(Ev,zi,a),G(zc,zc.current,a)}function Wx(a){zi=Ev.current,H(zc,a),H(Ev,a)}function ys(a){var i=a.alternate;G(vn,vn.current&Uc,a),G(aa,a,a),Aa===null&&(i===null||zc.current!==null||i.memoizedState!==null)&&(Aa=a)}function Zx(a){G(vn,vn.current,a),G(aa,a,a),Aa===null&&(Aa=a)}function nP(a){a.tag===22?(G(vn,vn.current,a),G(aa,a,a),Aa===null&&(Aa=a)):bs(a)}function bs(a){G(vn,vn.current,a),G(aa,aa.current,a)}function Zr(a){H(aa,a),Aa===a&&(Aa=null),H(vn,a)}function pg(a){for(var i=a;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||dw(l)||fw(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function ct(){var a=pe;Ta===null?Ta=[a]:Ta.push(a)}function Ae(){var a=pe;if(Ta!==null&&(Io++,Ta[Io]!==a)){var i=B(Xe);if(!d3.has(i)&&(d3.add(i),Ta!==null)){for(var l="",d=0;d<=Io;d++){var h=Ta[d],v=d===Io?a:h;for(h=d+1+". "+h;30>h.length;)h+=" ";h+=v+`
|
||
`,l+=h}console.error(`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://react.dev/link/rules-of-hooks
|
||
|
||
Previous render Next render
|
||
------------------------------------------------------
|
||
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
`,i,l)}}}function oc(a){a==null||jn(a)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",pe,typeof a)}function hg(){var a=B(Xe);m3.has(a)||(m3.add(a),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",a))}function fn(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
||
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
||
2. You might be breaking the Rules of Hooks
|
||
3. You might have more than one copy of React in the same app
|
||
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Jx(a,i){if(Dm)return!1;if(i===null)return console.error("%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.",pe),!1;a.length!==i.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
||
|
||
Previous: %s
|
||
Incoming: %s`,pe,"["+i.join(", ")+"]","["+a.join(", ")+"]");for(var l=0;l<i.length&&l<a.length;l++)if(!Sr(a[l],i[l]))return!1;return!0}function e1(a,i,l,d,h,v){Lo=v,Xe=i,Ta=a!==null?a._debugHookTypes:null,Io=-1,Dm=a!==null&&a.type!==i.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(v=B(Xe),yN.has(v)||(yN.add(v),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",v===null?"An unknown Component":"<"+v+">"))),i.memoizedState=null,i.updateQueue=null,i.lanes=0,he.H=a!==null&&a.memoizedState!==null?xN:Ta!==null?p3:bN,Kl=v=(i.mode&lr)!==Ge;var E=dN(l,d,h);if(Kl=!1,Hc&&(E=t1(i,l,d,h)),v){je(!0);try{E=t1(i,l,d,h)}finally{je(!1)}}return rP(a,i),E}function rP(a,i){i._debugHookTypes=Ta,i.dependencies===null?ko!==null&&(i.dependencies={lanes:0,firstContext:null,_debugThenableState:ko}):i.dependencies._debugThenableState=ko,he.H=Rm;var l=Bt!==null&&Bt.next!==null;if(Lo=0,Ta=pe=Sn=Bt=Xe=null,Io=-1,a!==null&&(a.flags&65011712)!==(i.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Av=!1,_m=0,ko=null,l)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");a===null||An||(a=a.dependencies,a!==null&&rg(a)&&(An=!0)),Om?(Om=!1,a=!0):a=!1,a&&(i=B(i)||"Unknown",f3.has(i)||yN.has(i)||(f3.add(i),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function t1(a,i,l,d){Xe=a;var h=0;do{if(Hc&&(ko=null),_m=0,Hc=!1,h>=yX)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h+=1,Dm=!1,Sn=Bt=null,a.updateQueue!=null){var v=a.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}Io=-1,he.H=h3,v=dN(i,l,d)}while(Hc);return v}function PG(){var a=he.H,i=a.useState()[0];return i=typeof i.then=="function"?Lf(i):i,a=a.useState()[0],(Bt!==null?Bt.memoizedState:null)!==a&&(Xe.flags|=1024),i}function n1(){var a=Ov!==0;return Ov=0,a}function r1(a,i,l){i.updateQueue=a.updateQueue,i.flags=(i.mode&Ka)!==Ge?i.flags&-402655237:i.flags&-2053,a.lanes&=~l}function a1(a){if(Av){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}Av=!1}Lo=0,Ta=Sn=Bt=Xe=null,Io=-1,pe=null,Hc=!1,_m=Ov=0,ko=null}function xr(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?Xe.memoizedState=Sn=a:Sn=Sn.next=a,Sn}function Rt(){if(Bt===null){var a=Xe.alternate;a=a!==null?a.memoizedState:null}else a=Bt.next;var i=Sn===null?Xe.memoizedState:Sn.next;if(i!==null)Sn=i,Bt=a;else{if(a===null)throw Xe.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Bt=a,a={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},Sn===null?Xe.memoizedState=Sn=a:Sn=Sn.next=a}return Sn}function gg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Lf(a){var i=_m;return _m+=1,ko===null&&(ko=qj()),a=Fj(ko,a,i),i=Xe,(Sn===null?i.memoizedState:Sn.next)===null&&(i=i.alternate,he.H=i!==null&&i.memoizedState!==null?xN:bN),a}function xs(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Lf(a);if(a.$$typeof===ji)return tn(a)}throw Error("An unsupported type was passed to use(): "+String(a))}function Cl(a){var i=null,l=Xe.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var d=Xe.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(i={data:d.data.map(function(h){return h.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=gg(),Xe.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0||Dm)for(l=i.data[i.index]=Array(a),d=0;d<a;d++)l[d]=QY;else l.length!==a&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",l.length,a);return i.index++,l}function qa(a,i){return typeof i=="function"?i(a):i}function i1(a,i,l){var d=xr();if(l!==void 0){var h=l(i);if(Kl){je(!0);try{l(i)}finally{je(!1)}}}else h=i;return d.memoizedState=d.baseState=h,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:h},d.queue=a,a=a.dispatch=$G.bind(null,Xe,a),[d.memoizedState,a]}function sc(a){var i=Rt();return o1(i,Bt,a)}function o1(a,i,l){var d=a.queue;if(d===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");d.lastRenderedReducer=l;var h=a.baseQueue,v=d.pending;if(v!==null){if(h!==null){var E=h.next;h.next=v.next,v.next=E}i.baseQueue!==h&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=h=v,d.pending=null}if(v=a.baseState,h===null)a.memoizedState=v;else{i=h.next;var O=E=null,M=null,I=i,oe=!1;do{var se=I.lane&-536870913;if(se!==I.lane?(st&se)===se:(Lo&se)===se){var Z=I.revertLane;if(Z===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),se===zl&&(oe=!0);else if((Lo&Z)===Z){I=I.next,Z===zl&&(oe=!0);continue}else se={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(O=M=se,E=v):M=M.next=se,Xe.lanes|=Z,Bs|=Z;se=I.action,Kl&&l(v,se),v=I.hasEagerState?I.eagerState:l(v,se)}else Z={lane:se,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(O=M=Z,E=v):M=M.next=Z,Xe.lanes|=se,Bs|=se;I=I.next}while(I!==null&&I!==i);if(M===null?E=v:M.next=O,!Sr(v,a.memoizedState)&&(An=!0,oe&&(l=$c,l!==null)))throw l;a.memoizedState=v,a.baseState=E,a.baseQueue=M,d.lastRenderedState=v}return h===null&&(d.lanes=0),[a.memoizedState,d.dispatch]}function kf(a){var i=Rt(),l=i.queue;if(l===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");l.lastRenderedReducer=a;var d=l.dispatch,h=l.pending,v=i.memoizedState;if(h!==null){l.pending=null;var E=h=h.next;do v=a(v,E.action),E=E.next;while(E!==h);Sr(v,i.memoizedState)||(An=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),l.lastRenderedState=v}return[v,d]}function s1(a,i,l){var d=Xe,h=xr();if(mt){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var v=l();qc||v===l()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),qc=!0)}else{if(v=i(),qc||(l=i(),Sr(v,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),qc=!0)),zt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(st&127)!==0||aP(d,i,v)}return h.memoizedState=v,l={value:v,getSnapshot:i},h.queue=l,xg(oP.bind(null,d,l,a),[a]),d.flags|=2048,uc(Oa|Tr,{destroy:void 0},iP.bind(null,d,l,v,i),null),v}function vg(a,i,l){var d=Xe,h=Rt(),v=mt;if(v){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");l=l()}else if(l=i(),!qc){var E=i();Sr(l,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),qc=!0)}(E=!Sr((Bt||h).memoizedState,l))&&(h.memoizedState=l,An=!0),h=h.queue;var O=oP.bind(null,d,h,a);if(Ir(2048,Tr,O,[a]),h.getSnapshot!==i||E||Sn!==null&&Sn.memoizedState.tag&Oa){if(d.flags|=2048,uc(Oa|Tr,{destroy:void 0},iP.bind(null,d,h,l,i),null),zt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");v||(Lo&127)!==0||aP(d,i,l)}return l}function aP(a,i,l){a.flags|=16384,a={getSnapshot:i,value:l},i=Xe.updateQueue,i===null?(i=gg(),Xe.updateQueue=i,i.stores=[a]):(l=i.stores,l===null?i.stores=[a]:l.push(a))}function iP(a,i,l,d){i.value=l,i.getSnapshot=d,sP(i)&&lP(a)}function oP(a,i,l){return l(function(){sP(i)&&(yi(2,"updateSyncExternalStore()",a),lP(a))})}function sP(a){var i=a.getSnapshot;a=a.value;try{var l=i();return!Sr(a,l)}catch{return!0}}function lP(a){var i=or(a,2);i!==null&&un(i,a,2)}function l1(a){var i=xr();if(typeof a=="function"){var l=a;if(a=l(),Kl){je(!0);try{l()}finally{je(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:a},i}function u1(a){a=l1(a);var i=a.queue,l=TP.bind(null,Xe,i);return i.dispatch=l,[a.memoizedState,l]}function c1(a){var i=xr();i.memoizedState=i.baseState=a;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=S1.bind(null,Xe,!0,l),l.dispatch=i,[a,i]}function uP(a,i){var l=Rt();return cP(l,Bt,a,i)}function cP(a,i,l,d){return a.baseState=l,o1(a,Bt,typeof d=="function"?d:qa)}function dP(a,i){var l=Rt();return Bt!==null?cP(l,Bt,a,i):(l.baseState=a,[a,l.queue.dispatch])}function MG(a,i,l,d,h){if(Og(a))throw Error("Cannot update form state while rendering.");if(a=i.action,a!==null){var v={payload:h,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){v.listeners.push(E)}};he.T!==null?l(!0):v.isTransition=!1,d(v),l=i.pending,l===null?(v.next=i.pending=v,fP(i,v)):(v.next=l.next,i.pending=l.next=v)}}function fP(a,i){var l=i.action,d=i.payload,h=a.state;if(i.isTransition){var v=he.T,E={};E._updatedFibers=new Set,he.T=E;try{var O=l(h,d),M=he.S;M!==null&&M(E,O),mP(a,i,O)}catch(I){d1(a,i,I)}finally{v!==null&&E.types!==null&&(v.types!==null&&v.types!==E.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),v.types=E.types),he.T=v,v===null&&E._updatedFibers&&(a=E._updatedFibers.size,E._updatedFibers.clear(),10<a&&console.warn("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."))}}else try{E=l(h,d),mP(a,i,E)}catch(I){d1(a,i,I)}}function mP(a,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(he.asyncTransitions++,l.then(Ag,Ag),l.then(function(d){pP(a,i,d)},function(d){return d1(a,i,d)}),i.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):pP(a,i,l)}function pP(a,i,l){i.status="fulfilled",i.value=l,hP(i),a.state=l,i=a.pending,i!==null&&(l=i.next,l===i?a.pending=null:(l=l.next,i.next=l,fP(a,l)))}function d1(a,i,l){var d=a.pending;if(a.pending=null,d!==null){d=d.next;do i.status="rejected",i.reason=l,hP(i),i=i.next;while(i!==d)}a.action=null}function hP(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function gP(a,i){return i}function lc(a,i){if(mt){var l=zt.formState;if(l!==null){e:{var d=Xe;if(mt){if(Yt){t:{for(var h=Yt,v=Ea;h.nodeType!==8;){if(!v){h=null;break t}if(h=ea(h.nextSibling),h===null){h=null;break t}}v=h.data,h=v===qN||v===eI?h:null}if(h){Yt=ea(h.nextSibling),d=h.data===qN;break e}}ms(d)}d=!1}d&&(i=l[0])}}return l=xr(),l.memoizedState=l.baseState=i,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gP,lastRenderedState:i},l.queue=d,l=TP.bind(null,Xe,d),d.dispatch=l,d=l1(!1),v=S1.bind(null,Xe,!1,d.queue),d=xr(),h={state:i,dispatch:null,action:a,pending:null},d.queue=h,l=MG.bind(null,Xe,h,v,l),h.dispatch=l,d.memoizedState=a,[i,l,!1]}function yg(a){var i=Rt();return vP(i,Bt,a)}function vP(a,i,l){if(i=o1(a,i,gP)[0],a=sc(qa)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var d=Lf(i)}catch(E){throw E===Vc?wv:E}else d=i;i=Rt();var h=i.queue,v=h.dispatch;return l!==i.memoizedState&&(Xe.flags|=2048,uc(Oa|Tr,{destroy:void 0},LG.bind(null,h,l),null)),[d,v,a]}function LG(a,i){a.action=i}function bg(a){var i=Rt(),l=Bt;if(l!==null)return vP(i,l,a);Rt(),i=i.memoizedState,l=Rt();var d=l.queue.dispatch;return l.memoizedState=a,[i,d,!1]}function uc(a,i,l,d){return a={tag:a,create:l,deps:d,inst:i,next:null},i=Xe.updateQueue,i===null&&(i=gg(),Xe.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=a.next=a:(d=l.next,l.next=a,a.next=d,i.lastEffect=a),a}function f1(a){var i=xr();return a={current:a},i.memoizedState=a}function _l(a,i,l,d){var h=xr();Xe.flags|=a,h.memoizedState=uc(Oa|i,{destroy:void 0},l,d===void 0?null:d)}function Ir(a,i,l,d){var h=Rt();d=d===void 0?null:d;var v=h.memoizedState.inst;Bt!==null&&d!==null&&Jx(d,Bt.memoizedState.deps)?h.memoizedState=uc(i,v,l,d):(Xe.flags|=a,h.memoizedState=uc(Oa|i,v,l,d))}function xg(a,i){(Xe.mode&Ka)!==Ge?_l(276826112,Tr,a,i):_l(8390656,Tr,a,i)}function kG(a){Xe.flags|=4;var i=Xe.updateQueue;if(i===null)i=gg(),Xe.updateQueue=i,i.events=[a];else{var l=i.events;l===null?i.events=[a]:l.push(a)}}function m1(a){var i=xr(),l={impl:a};return i.memoizedState=l,function(){if((xt&Mn)!==Gn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return l.impl.apply(void 0,arguments)}}function wg(a){var i=Rt().memoizedState;return kG({ref:i,nextImpl:a}),function(){if((xt&Mn)!==Gn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return i.impl.apply(void 0,arguments)}}function p1(a,i){var l=4194308;return(Xe.mode&Ka)!==Ge&&(l|=134217728),_l(l,ia,a,i)}function yP(a,i){if(typeof i=="function"){a=a();var l=i(a);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return i.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(i).join(", ")+"}"),a=a(),i.current=a,function(){i.current=null}}function h1(a,i,l){typeof i!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null"),l=l!=null?l.concat([a]):null;var d=4194308;(Xe.mode&Ka)!==Ge&&(d|=134217728),_l(d,ia,yP.bind(null,i,a),l)}function Ng(a,i,l){typeof i!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null"),l=l!=null?l.concat([a]):null,Ir(4,ia,yP.bind(null,i,a),l)}function g1(a,i){return xr().memoizedState=[a,i===void 0?null:i],a}function Eg(a,i){var l=Rt();i=i===void 0?null:i;var d=l.memoizedState;return i!==null&&Jx(i,d[1])?d[0]:(l.memoizedState=[a,i],a)}function v1(a,i){var l=xr();i=i===void 0?null:i;var d=a();if(Kl){je(!0);try{a()}finally{je(!1)}}return l.memoizedState=[d,i],d}function Sg(a,i){var l=Rt();i=i===void 0?null:i;var d=l.memoizedState;if(i!==null&&Jx(i,d[1]))return d[0];if(d=a(),Kl){je(!0);try{a()}finally{je(!1)}}return l.memoizedState=[d,i],d}function y1(a,i){var l=xr();return b1(l,a,i)}function bP(a,i){var l=Rt();return wP(l,Bt.memoizedState,a,i)}function xP(a,i){var l=Rt();return Bt===null?b1(l,a,i):wP(l,Bt.memoizedState,a,i)}function b1(a,i,l){return l===void 0||(Lo&1073741824)!==0&&(st&261930)===0?a.memoizedState=i:(a.memoizedState=l,a=NM(),Xe.lanes|=a,Bs|=a,l)}function wP(a,i,l,d){return Sr(l,i)?l:zc.current!==null?(a=b1(a,l,d),Sr(a,i)||(An=!0),a):(Lo&42)===0||(Lo&1073741824)!==0&&(st&261930)===0?(An=!0,a.memoizedState=l):(a=NM(),Xe.lanes|=a,Bs|=a,i)}function Ag(){he.asyncTransitions--}function NP(a,i,l,d,h){var v=_t.p;_t.p=v!==0&&v<ki?v:ki;var E=he.T,O={};O._updatedFibers=new Set,he.T=O,S1(a,!1,i,l);try{var M=h(),I=he.S;if(I!==null&&I(O,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){he.asyncTransitions++,M.then(Ag,Ag);var oe=RG(M,d);If(a,i,oe,Jr(a))}else If(a,i,d,Jr(a))}catch(se){If(a,i,{then:function(){},status:"rejected",reason:se},Jr(a))}finally{_t.p=v,E!==null&&O.types!==null&&(E.types!==null&&E.types!==O.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),E.types=O.types),he.T=E,E===null&&O._updatedFibers&&(a=O._updatedFibers.size,O._updatedFibers.clear(),10<a&&console.warn("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."))}}function x1(a,i,l,d){if(a.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var h=EP(a).queue;_G(a),NP(a,h,i,ru,l===null?m:function(){return SP(a),l(d)})}function EP(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:ru,baseState:ru,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:ru},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:l},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function SP(a){he.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var i=EP(a);i.next===null&&(i=a.alternate.memoizedState),If(a,i.next.queue,{},Jr(a))}function w1(){var a=l1(!1);return a=NP.bind(null,Xe,a.queue,!0,!1),xr().memoizedState=a,[!1,a]}function AP(){var a=sc(qa)[0],i=Rt().memoizedState;return[typeof a=="boolean"?a:Lf(a),i]}function OP(){var a=kf(qa)[0],i=Rt().memoizedState;return[typeof a=="boolean"?a:Lf(a),i]}function Dl(){return tn(Km)}function N1(){var a=xr(),i=zt.identifierPrefix;if(mt){var l=Do,d=_o;l=(d&~(1<<32-wr(d)-1)).toString(32)+l,i="_"+i+"R_"+l,l=Ov++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=vX++,i="_"+i+"r_"+l.toString(32)+"_";return a.memoizedState=i}function E1(){return xr().memoizedState=IG.bind(null,Xe)}function IG(a,i){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var d=Jr(l),h=gs(d),v=vs(l,h,d);v!==null&&(yi(d,"refresh()",a),un(v,l,d),jf(v,l,d)),a=qx(),i!=null&&v!==null&&console.error("The seed argument is not enabled outside experimental channels."),h.payload={cache:a};return}l=l.return}}function $G(a,i,l){var d=arguments;typeof d[3]=="function"&&console.error("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()."),d=Jr(a);var h={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};Og(a)?CP(i,h):(h=Rx(a,i,h,d),h!==null&&(yi(d,"dispatch()",a),un(h,a,d),_P(h,i,d)))}function TP(a,i,l){var d=arguments;typeof d[3]=="function"&&console.error("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()."),d=Jr(a),If(a,i,l,d)&&yi(d,"setState()",a)}function If(a,i,l,d){var h={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Og(a))CP(i,h);else{var v=a.alternate;if(a.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null)){var E=he.H;he.H=Ya;try{var O=i.lastRenderedState,M=v(O,l);if(h.hasEagerState=!0,h.eagerState=M,Sr(M,O))return Zh(a,i,h,0),zt===null&&Wh(),!1}catch{}finally{he.H=E}}if(l=Rx(a,i,h,d),l!==null)return un(l,a,d),_P(l,i,d),!0}return!1}function S1(a,i,l,d){if(he.T===null&&zl===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),d={lane:2,revertLane:ew(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Og(a)){if(i)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else i=Rx(a,l,d,2),i!==null&&(yi(2,"setOptimistic()",a),un(i,a,2))}function Og(a){var i=a.alternate;return a===Xe||i!==null&&i===Xe}function CP(a,i){Hc=Av=!0;var l=a.pending;l===null?i.next=i:(i.next=l.next,l.next=i),a.pending=i}function _P(a,i,l){if((l&4194048)!==0){var d=i.lanes;d&=a.pendingLanes,l|=d,i.lanes=l,ds(a,l)}}function A1(a){if(a!==null&&typeof a!="function"){var i=String(a);O3.has(i)||(O3.add(i),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function O1(a,i,l,d){var h=a.memoizedState,v=l(d,h);if(a.mode&lr){je(!0);try{v=l(d,h)}finally{je(!1)}}v===void 0&&(i=L(i)||"Component",N3.has(i)||(N3.add(i),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",i))),h=v==null?h:dt({},h,v),a.memoizedState=h,a.lanes===0&&(a.updateQueue.baseState=h)}function DP(a,i,l,d,h,v,E){var O=a.stateNode;if(typeof O.shouldComponentUpdate=="function"){if(l=O.shouldComponentUpdate(d,v,E),a.mode&lr){je(!0);try{l=O.shouldComponentUpdate(d,v,E)}finally{je(!1)}}return l===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",L(i)||"Component"),l}return i.prototype&&i.prototype.isPureReactComponent?!Of(l,d)||!Of(h,v):!0}function RP(a,i,l,d){var h=i.state;typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,d),i.state!==h&&(a=B(a)||"Component",v3.has(a)||(v3.add(a),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),wN.enqueueReplaceState(i,i.state,null))}function Rl(a,i){var l=i;if("ref"in i){l={};for(var d in i)d!=="ref"&&(l[d]=i[d])}if(a=a.defaultProps){l===i&&(l=dt({},l));for(var h in a)l[h]===void 0&&(l[h]=a[h])}return l}function jP(a){Zw(a),console.warn(`%s
|
||
|
||
%s
|
||
`,Fc?"An error occurred in the <"+Fc+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
||
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function PP(a){var i=Fc?"The above error occurred in the <"+Fc+"> component.":"The above error occurred in one of your React components.",l="React will try to recreate this component tree from scratch using the error boundary you provided, "+((NN||"Anonymous")+".");if(typeof a=="object"&&a!==null&&typeof a.environmentName=="string"){var d=a.environmentName;a=[`%o
|
||
|
||
%s
|
||
|
||
%s
|
||
`,a,i,l].slice(0),typeof a[0]=="string"?a.splice(0,1,lI+" "+a[0],uI,Wv+d+Wv,cI):a.splice(0,0,lI,uI,Wv+d+Wv,cI),a.unshift(console),d=$X.apply(console.error,a),d()}else console.error(`%o
|
||
|
||
%s
|
||
|
||
%s
|
||
`,a,i,l)}function MP(a){Zw(a)}function Tg(a,i){try{Fc=i.source?B(i.source):null,NN=null;var l=i.value;if(he.actQueue!==null)he.thrownErrors.push(l);else{var d=a.onUncaughtError;d(l,{componentStack:i.stack})}}catch(h){setTimeout(function(){throw h})}}function LP(a,i,l){try{Fc=l.source?B(l.source):null,NN=B(i);var d=a.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function T1(a,i,l){return l=gs(l),l.tag=hN,l.payload={element:null},l.callback=function(){de(i.source,Tg,a,i)},l}function C1(a){return a=gs(a),a.tag=hN,a}function _1(a,i,l,d){var h=l.type.getDerivedStateFromError;if(typeof h=="function"){var v=d.value;a.payload=function(){return h(v)},a.callback=function(){Cj(l),de(d.source,LP,i,l,d)}}var E=l.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(a.callback=function(){Cj(l),de(d.source,LP,i,l,d),typeof h!="function"&&(Us===null?Us=new Set([this]):Us.add(this)),mX(this,d),typeof h=="function"||(l.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",B(l)||"Unknown")})}function VG(a,i,l,d,h){if(l.flags|=32768,Li&&Ff(a,h),d!==null&&typeof d=="object"&&typeof d.then=="function"){if(i=l.alternate,i!==null&&ic(i,l,h,!0),mt&&($i=!0),l=aa.current,l!==null){switch(l.tag){case 31:case 13:return Aa===null?kg():l.alternate===null&&sn===Vo&&(sn=_v),l.flags&=-257,l.flags|=65536,l.lanes=h,d===Nv?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([d]):i.add(d),X1(a,d,h)),!1;case 22:return l.flags|=65536,d===Nv?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([d]):l.add(d)),X1(a,d,h)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return X1(a,d,h),kg(),!1}if(mt)return $i=!0,i=aa.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=h,d!==aN&&Tf(Qr(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:d}),l))):(d!==aN&&Tf(Qr(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:d}),l)),a=a.current.alternate,a.flags|=65536,h&=-h,a.lanes|=h,d=Qr(d,l),h=T1(a.stateNode,d,h),mg(a,h),sn!==$s&&(sn=Gl)),!1;var v=Qr(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:d}),l);if(Im===null?Im=[v]:Im.push(v),sn!==$s&&(sn=Gl),i===null)return!0;d=Qr(d,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,a=h&-h,l.lanes|=a,a=T1(l.stateNode,d,a),mg(l,a),!1;case 1:if(i=l.type,v=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Us===null||!Us.has(v))))return l.flags|=65536,h&=-h,l.lanes|=h,h=C1(h),_1(h,a,l,d),mg(l,h),!1}l=l.return}while(l!==null);return!1}function Jn(a,i,l,d){i.child=a===null?o3(i,null,l,d):Fl(i,a.child,l,d)}function kP(a,i,l,d,h){l=l.render;var v=i.ref;if("ref"in d){var E={};for(var O in d)O!=="ref"&&(E[O]=d[O])}else E=d;return Ol(i),d=e1(a,i,l,E,v,h),O=n1(),a!==null&&!An?(r1(a,i,h),No(a,i,h)):(mt&&O&&Ix(i),i.flags|=1,Jn(a,i,d,h),i.child)}function IP(a,i,l,d,h){if(a===null){var v=l.type;return typeof v=="function"&&!Px(v)&&v.defaultProps===void 0&&l.compare===null?(l=Nl(v),i.tag=15,i.type=l,R1(i,v),$P(a,i,l,d,h)):(a=Mx(l.type,null,d,i,i.mode,h),a.ref=i.ref,a.return=i,i.child=a)}if(v=a.child,!I1(a,h)){var E=v.memoizedProps;if(l=l.compare,l=l!==null?l:Of,l(E,d)&&a.ref===i.ref)return No(a,i,h)}return i.flags|=1,a=yo(v,d),a.ref=i.ref,a.return=i,i.child=a}function $P(a,i,l,d,h){if(a!==null){var v=a.memoizedProps;if(Of(v,d)&&a.ref===i.ref&&i.type===a.type)if(An=!1,i.pendingProps=d=v,I1(a,h))(a.flags&131072)!==0&&(An=!0);else return i.lanes=a.lanes,No(a,i,h)}return D1(a,i,l,d,h)}function VP(a,i,l,d){var h=d.children,v=a!==null?a.memoizedState:null;if(a===null&&i.stateNode===null&&(i.stateNode={_visibility:fm,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((i.flags&128)!==0){if(v=v!==null?v.baseLanes|l:l,a!==null){for(d=i.child=a.child,h=0;d!==null;)h=h|d.lanes|d.childLanes,d=d.sibling;d=h&~v}else d=0,i.child=null;return BP(a,i,v,l,d)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&sg(i,v!==null?v.cachePool:null),v!==null?tP(i,v):Xx(i),nP(i);else return d=i.lanes=536870912,BP(a,i,v!==null?v.baseLanes|l:l,l,d)}else v!==null?(sg(i,v.cachePool),tP(i,v),bs(i),i.memoizedState=null):(a!==null&&sg(i,null),Xx(i),bs(i));return Jn(a,i,h,l),i.child}function $f(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:fm,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function BP(a,i,l,d,h){var v=Kx();return v=v===null?null:{parent:Nn._currentValue,pool:v},i.memoizedState={baseLanes:l,cachePool:v},a!==null&&sg(i,null),Xx(i),nP(i),a!==null&&ic(a,i,d,!0),i.childLanes=h,null}function Cg(a,i){var l=i.hidden;return l!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
||
- <Activity %s>
|
||
+ <Activity %s>`,l===!0?"hidden":l===!1?"hidden={false}":"hidden={...}",l?'mode="hidden"':'mode="visible"'),i=Dg({mode:i.mode,children:i.children},a.mode),i.ref=a.ref,a.child=i,i.return=a,i}function zP(a,i,l){return Fl(i,a.child,null,l),a=Cg(i,i.pendingProps),a.flags|=2,Zr(i),i.memoizedState=null,a}function BG(a,i,l){var d=i.pendingProps,h=(i.flags&128)!==0;if(i.flags&=-129,a===null){if(mt){if(d.mode==="hidden")return a=Cg(i,d),i.lanes=536870912,$f(null,a);if(Zx(i),(a=Yt)?(l=fL(a,Ea),l=l!==null&&l.data===Jl?l:null,l!==null&&(d={dehydrated:l,treeContext:Pj(),retryLane:536870912,hydrationErrors:null},i.memoizedState=d,d=Rj(l),d.return=i,i.child=d,nr=i,Yt=null)):l=null,l===null)throw tg(i,a),ms(i);return i.lanes=536870912,null}return Cg(i,d)}var v=a.memoizedState;if(v!==null){var E=v.dehydrated;if(Zx(i),h)if(i.flags&256)i.flags&=-257,i=zP(a,i,l);else if(i.memoizedState!==null)i.child=a.child,i.flags|=128,i=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Lj(),(l&536870912)!==0&&Lg(i),An||ic(a,i,l,!1),h=(l&a.childLanes)!==0,An||h){if(d=zt,d!==null&&(E=Lr(d,l),E!==0&&E!==v.retryLane))throw v.retryLane=E,or(a,E),un(d,a,E),EN;kg(),i=zP(a,i,l)}else a=v.treeContext,Yt=ea(E.nextSibling),nr=i,mt=!0,js=null,$i=!1,ra=null,Ea=!1,a!==null&&Mj(i,a),i=Cg(i,d),i.flags|=4096;return i}return v=a.child,d={mode:d.mode,children:d.children},(l&536870912)!==0&&(l&a.lanes)!==0&&Lg(i),a=yo(v,d),a.ref=i.ref,i.child=a,a.return=i,a}function _g(a,i){var l=i.ref;if(l===null)a!==null&&a.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(a===null||a.ref!==l)&&(i.flags|=4194816)}}function D1(a,i,l,d,h){if(l.prototype&&typeof l.prototype.render=="function"){var v=L(l)||"Unknown";T3[v]||(console.error("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.",v,v),T3[v]=!0)}return i.mode&lr&&Ga.recordLegacyContextWarning(i,null),a===null&&(R1(i,i.type),l.contextTypes&&(v=L(l)||"Unknown",_3[v]||(_3[v]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",v)))),Ol(i),l=e1(a,i,l,d,void 0,h),d=n1(),a!==null&&!An?(r1(a,i,h),No(a,i,h)):(mt&&d&&Ix(i),i.flags|=1,Jn(a,i,l,h),i.child)}function UP(a,i,l,d,h,v){return Ol(i),Io=-1,Dm=a!==null&&a.type!==i.type,i.updateQueue=null,l=t1(i,d,l,h),rP(a,i),d=n1(),a!==null&&!An?(r1(a,i,v),No(a,i,v)):(mt&&d&&Ix(i),i.flags|=1,Jn(a,i,l,v),i.child)}function qP(a,i,l,d,h){switch(u(i)){case!1:var v=i.stateNode,E=new i.type(i.memoizedProps,v.context).state;v.updater.enqueueSetState(v,E,null);break;case!0:i.flags|=128,i.flags|=65536,v=Error("Simulated error coming from DevTools");var O=h&-h;if(i.lanes|=O,E=zt,E===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");O=C1(O),_1(O,E,i,Qr(v,i)),mg(i,O)}if(Ol(i),i.stateNode===null){if(E=Rs,v=l.contextType,"contextType"in l&&v!==null&&(v===void 0||v.$$typeof!==ji)&&!A3.has(l)&&(A3.add(l),O=v===void 0?" 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 v!="object"?" However, it is set to a "+typeof v+".":v.$$typeof===Sw?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(v).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",L(l)||"Component",O)),typeof v=="object"&&v!==null&&(E=tn(v)),v=new l(d,E),i.mode&lr){je(!0);try{v=new l(d,E)}finally{je(!1)}}if(E=i.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=wN,i.stateNode=v,v._reactInternals=i,v._reactInternalInstance=g3,typeof l.getDerivedStateFromProps=="function"&&E===null&&(E=L(l)||"Component",y3.has(E)||(y3.add(E),console.error("`%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.",E,v.state===null?"null":"undefined",E))),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"){var M=O=E=null;if(typeof v.componentWillMount=="function"&&v.componentWillMount.__suppressDeprecationWarning!==!0?E="componentWillMount":typeof v.UNSAFE_componentWillMount=="function"&&(E="UNSAFE_componentWillMount"),typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps.__suppressDeprecationWarning!==!0?O="componentWillReceiveProps":typeof v.UNSAFE_componentWillReceiveProps=="function"&&(O="UNSAFE_componentWillReceiveProps"),typeof v.componentWillUpdate=="function"&&v.componentWillUpdate.__suppressDeprecationWarning!==!0?M="componentWillUpdate":typeof v.UNSAFE_componentWillUpdate=="function"&&(M="UNSAFE_componentWillUpdate"),E!==null||O!==null||M!==null){v=L(l)||"Component";var I=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";x3.has(v)||(x3.add(v),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
||
|
||
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
||
|
||
The above lifecycles should be removed. Learn more about this warning here:
|
||
https://react.dev/link/unsafe-component-lifecycles`,v,I,E!==null?`
|
||
`+E:"",O!==null?`
|
||
`+O:"",M!==null?`
|
||
`+M:""))}}v=i.stateNode,E=L(l)||"Component",v.render||(l.prototype&&typeof l.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",E):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",E)),!v.getInitialState||v.getInitialState.isReactClassApproved||v.state||console.error("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?",E),v.getDefaultProps&&!v.getDefaultProps.isReactClassApproved&&console.error("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.",E),v.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",E),l.childContextTypes&&!S3.has(l)&&(S3.add(l),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",E)),l.contextTypes&&!E3.has(l)&&(E3.add(l),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",E)),typeof v.componentShouldUpdate=="function"&&console.error("%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.",E),l.prototype&&l.prototype.isPureReactComponent&&typeof v.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",L(l)||"A pure component"),typeof v.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",E),typeof v.componentDidReceiveProps=="function"&&console.error("%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().",E),typeof v.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",E),typeof v.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",E),O=v.props!==d,v.props!==void 0&&O&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",E),v.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",E,E),typeof v.getSnapshotBeforeUpdate!="function"||typeof v.componentDidUpdate=="function"||b3.has(l)||(b3.add(l),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",L(l))),typeof v.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",E),typeof v.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",E),typeof l.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",E),(O=v.state)&&(typeof O!="object"||jn(O))&&console.error("%s.state: must be set to an object or null",E),typeof v.getChildContext=="function"&&typeof l.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",E),v=i.stateNode,v.props=d,v.state=i.memoizedState,v.refs={},Yx(i),E=l.contextType,v.context=typeof E=="object"&&E!==null?tn(E):Rs,v.state===d&&(E=L(l)||"Component",w3.has(E)||(w3.add(E),console.error("%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.",E))),i.mode&lr&&Ga.recordLegacyContextWarning(i,v),Ga.recordUnsafeLifecycleWarnings(i,v),v.state=i.memoizedState,E=l.getDerivedStateFromProps,typeof E=="function"&&(O1(i,l,E,d),v.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(E=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),E!==v.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",B(i)||"Component"),wN.enqueueReplaceState(v,v.state,null)),Mf(i,d,v,h),Pf(),v.state=i.memoizedState),typeof v.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Ka)!==Ge&&(i.flags|=134217728),v=!0}else if(a===null){v=i.stateNode;var oe=i.memoizedProps;O=Rl(l,oe),v.props=O;var se=v.context;M=l.contextType,E=Rs,typeof M=="object"&&M!==null&&(E=tn(M)),I=l.getDerivedStateFromProps,M=typeof I=="function"||typeof v.getSnapshotBeforeUpdate=="function",oe=i.pendingProps!==oe,M||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(oe||se!==E)&&RP(i,v,d,E),Is=!1;var Z=i.memoizedState;v.state=Z,Mf(i,d,v,h),Pf(),se=i.memoizedState,oe||Z!==se||Is?(typeof I=="function"&&(O1(i,l,I,d),se=i.memoizedState),(O=Is||DP(i,l,O,d,Z,se,E))?(M||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Ka)!==Ge&&(i.flags|=134217728)):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Ka)!==Ge&&(i.flags|=134217728),i.memoizedProps=d,i.memoizedState=se),v.props=d,v.state=se,v.context=E,v=O):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Ka)!==Ge&&(i.flags|=134217728),v=!1)}else{v=i.stateNode,Qx(a,i),E=i.memoizedProps,M=Rl(l,E),v.props=M,I=i.pendingProps,Z=v.context,se=l.contextType,O=Rs,typeof se=="object"&&se!==null&&(O=tn(se)),oe=l.getDerivedStateFromProps,(se=typeof oe=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(E!==I||Z!==O)&&RP(i,v,d,O),Is=!1,Z=i.memoizedState,v.state=Z,Mf(i,d,v,h),Pf();var fe=i.memoizedState;E!==I||Z!==fe||Is||a!==null&&a.dependencies!==null&&rg(a.dependencies)?(typeof oe=="function"&&(O1(i,l,oe,d),fe=i.memoizedState),(M=Is||DP(i,l,M,d,Z,fe,O)||a!==null&&a.dependencies!==null&&rg(a.dependencies))?(se||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(d,fe,O),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(d,fe,O)),typeof v.componentDidUpdate=="function"&&(i.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof v.componentDidUpdate!="function"||E===a.memoizedProps&&Z===a.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&Z===a.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=fe),v.props=d,v.state=fe,v.context=O,v=M):(typeof v.componentDidUpdate!="function"||E===a.memoizedProps&&Z===a.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&Z===a.memoizedState||(i.flags|=1024),v=!1)}if(O=v,_g(a,i),E=(i.flags&128)!==0,O||E){if(O=i.stateNode,ie(i),E&&typeof l.getDerivedStateFromError!="function")l=null,Ar=-1;else if(l=Kk(O),i.mode&lr){je(!0);try{Kk(O)}finally{je(!1)}}i.flags|=1,a!==null&&E?(i.child=Fl(i,a.child,null,h),i.child=Fl(i,null,l,h)):Jn(a,i,l,h),i.memoizedState=O.state,a=i.child}else a=No(a,i,h);return h=i.stateNode,v&&h.props!==d&&(Kc||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",B(i)||"a component"),Kc=!0),a}function HP(a,i,l,d){return Al(),i.flags|=256,Jn(a,i,l,d),i.child}function R1(a,i){i&&i.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
||
%s.childContextTypes = ...`,i.displayName||i.name||"Component"),typeof i.getDerivedStateFromProps=="function"&&(a=L(i)||"Unknown",D3[a]||(console.error("%s: Function components do not support getDerivedStateFromProps.",a),D3[a]=!0)),typeof i.contextType=="object"&&i.contextType!==null&&(i=L(i)||"Unknown",C3[i]||(console.error("%s: Function components do not support contextType.",i),C3[i]=!0))}function j1(a){return{baseLanes:a,cachePool:Uj()}}function P1(a,i,l){return a=a!==null?a.childLanes&~l:0,i&&(a|=Ur),a}function FP(a,i,l){var d,h=i.pendingProps;s(i)&&(i.flags|=128);var v=!1,E=(i.flags&128)!==0;if((d=E)||(d=a!==null&&a.memoizedState===null?!1:(vn.current&Cm)!==0),d&&(v=!0,i.flags&=-129),d=(i.flags&32)!==0,i.flags&=-33,a===null){if(mt){if(v?ys(i):bs(i),(a=Yt)?(l=fL(a,Ea),l=l!==null&&l.data!==Jl?l:null,l!==null&&(d={dehydrated:l,treeContext:Pj(),retryLane:536870912,hydrationErrors:null},i.memoizedState=d,d=Rj(l),d.return=i,i.child=d,nr=i,Yt=null)):l=null,l===null)throw tg(i,a),ms(i);return fw(l)?i.lanes=32:i.lanes=536870912,null}var O=h.children;if(h=h.fallback,v){bs(i);var M=i.mode;return O=Dg({mode:"hidden",children:O},M),h=El(h,M,l,null),O.return=i,h.return=i,O.sibling=h,i.child=O,h=i.child,h.memoizedState=j1(l),h.childLanes=P1(a,d,l),i.memoizedState=SN,$f(null,h)}return ys(i),M1(i,O)}var I=a.memoizedState;if(I!==null){var oe=I.dehydrated;if(oe!==null){if(E)i.flags&256?(ys(i),i.flags&=-257,i=L1(a,i,l)):i.memoizedState!==null?(bs(i),i.child=a.child,i.flags|=128,i=null):(bs(i),O=h.fallback,M=i.mode,h=Dg({mode:"visible",children:h.children},M),O=El(O,M,l,null),O.flags|=2,h.return=i,O.return=i,h.sibling=O,i.child=h,Fl(i,a.child,null,l),h=i.child,h.memoizedState=j1(l),h.childLanes=P1(a,d,l),i.memoizedState=SN,i=$f(null,h));else if(ys(i),Lj(),(l&536870912)!==0&&Lg(i),fw(oe)){if(d=oe.nextSibling&&oe.nextSibling.dataset,d){O=d.dgst;var se=d.msg;M=d.stck;var Z=d.cstck}v=se,d=O,h=M,oe=Z,O=v,M=oe,O=Error(O||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),O.stack=h||"",O.digest=d,d=M===void 0?null:M,h={value:O,source:null,stack:d},typeof d=="string"&&rN.set(O,h),Tf(h),i=L1(a,i,l)}else if(An||ic(a,i,l,!1),d=(l&a.childLanes)!==0,An||d){if(d=zt,d!==null&&(h=Lr(d,l),h!==0&&h!==I.retryLane))throw I.retryLane=h,or(a,h),un(d,a,h),EN;dw(oe)||kg(),i=L1(a,i,l)}else dw(oe)?(i.flags|=192,i.child=a.child,i=null):(a=I.treeContext,Yt=ea(oe.nextSibling),nr=i,mt=!0,js=null,$i=!1,ra=null,Ea=!1,a!==null&&Mj(i,a),i=M1(i,h.children),i.flags|=4096);return i}}return v?(bs(i),O=h.fallback,M=i.mode,Z=a.child,oe=Z.sibling,h=yo(Z,{mode:"hidden",children:h.children}),h.subtreeFlags=Z.subtreeFlags&65011712,oe!==null?O=yo(oe,O):(O=El(O,M,l,null),O.flags|=2),O.return=i,h.return=i,h.sibling=O,i.child=h,$f(null,h),h=i.child,O=a.child.memoizedState,O===null?O=j1(l):(M=O.cachePool,M!==null?(Z=Nn._currentValue,M=M.parent!==Z?{parent:Z,pool:Z}:M):M=Uj(),O={baseLanes:O.baseLanes|l,cachePool:M}),h.memoizedState=O,h.childLanes=P1(a,d,l),i.memoizedState=SN,$f(a.child,h)):(I!==null&&(l&62914560)===l&&(l&a.lanes)!==0&&Lg(i),ys(i),l=a.child,a=l.sibling,l=yo(l,{mode:"visible",children:h.children}),l.return=i,l.sibling=null,a!==null&&(d=i.deletions,d===null?(i.deletions=[a],i.flags|=16):d.push(a)),i.child=l,i.memoizedState=null,l)}function M1(a,i){return i=Dg({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function Dg(a,i){return a=y(22,a,null,i),a.lanes=0,a}function L1(a,i,l){return Fl(i,a.child,null,l),a=M1(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function KP(a,i,l){a.lanes|=i;var d=a.alternate;d!==null&&(d.lanes|=i),zx(a.return,i,l)}function k1(a,i,l,d,h,v){var E=a.memoizedState;E===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:h,treeForkCount:v}:(E.isBackwards=i,E.rendering=null,E.renderingStartTime=0,E.last=d,E.tail=l,E.tailMode=h,E.treeForkCount=v)}function GP(a,i,l){var d=i.pendingProps,h=d.revealOrder,v=d.tail,E=d.children,O=vn.current;if((d=(O&Cm)!==0)?(O=O&Uc|Cm,i.flags|=128):O&=Uc,G(vn,O,i),O=h??"null",h!=="forwards"&&h!=="unstable_legacy-backwards"&&h!=="together"&&h!=="independent"&&!R3[O])if(R3[O]=!0,h==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(h==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof h=="string")switch(h.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',h,h.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',h,h.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',h)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',h);O=v??"null",Cv[O]||(v==null?(h==="forwards"||h==="backwards"||h==="unstable_legacy-backwards")&&(Cv[O]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):v!=="visible"&&v!=="collapsed"&&v!=="hidden"?(Cv[O]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',v)):h!=="forwards"&&h!=="backwards"&&h!=="unstable_legacy-backwards"&&(Cv[O]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',v)));e:if((h==="forwards"||h==="backwards"||h==="unstable_legacy-backwards")&&E!==void 0&&E!==null&&E!==!1)if(jn(E)){for(O=0;O<E.length;O++)if(!Zj(E[O],O))break e}else if(O=j(E),typeof O=="function"){if(O=O.call(E))for(var M=O.next(),I=0;!M.done;M=O.next()){if(!Zj(M.value,I))break e;I++}}else console.error('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?',h);if(Jn(a,i,E,l),mt?(fs(),E=mm):E=0,!d&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&KP(a,l,i);else if(a.tag===19)KP(a,l,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(h){case"forwards":for(l=i.child,h=null;l!==null;)a=l.alternate,a!==null&&pg(a)===null&&(h=l),l=l.sibling;l=h,l===null?(h=i.child,i.child=null):(h=l.sibling,l.sibling=null),k1(i,!1,h,l,v,E);break;case"backwards":case"unstable_legacy-backwards":for(l=null,h=i.child,i.child=null;h!==null;){if(a=h.alternate,a!==null&&pg(a)===null){i.child=h;break}a=h.sibling,h.sibling=l,l=h,h=a}k1(i,!0,l,null,v,E);break;case"together":k1(i,!1,null,null,void 0,E);break;default:i.memoizedState=null}return i.child}function No(a,i,l){if(a!==null&&(i.dependencies=a.dependencies),Ar=-1,Bs|=i.lanes,(l&i.childLanes)===0)if(a!==null){if(ic(a,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(a!==null&&i.child!==a.child)throw Error("Resuming work not yet implemented.");if(i.child!==null){for(a=i.child,l=yo(a,a.pendingProps),i.child=l,l.return=i;a.sibling!==null;)a=a.sibling,l=l.sibling=yo(a,a.pendingProps),l.return=i;l.sibling=null}return i.child}function I1(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&rg(a)))}function zG(a,i,l){switch(i.tag){case 3:J(i,i.stateNode.containerInfo),ps(i,Nn,a.memoizedState.cache),Al();break;case 27:case 5:K(i);break;case 4:J(i,i.stateNode.containerInfo);break;case 10:ps(i,i.type,i.memoizedProps.value);break;case 12:(l&i.childLanes)!==0&&(i.flags|=4),i.flags|=2048;var d=i.stateNode;d.effectDuration=-0,d.passiveEffectDuration=-0;break;case 31:if(i.memoizedState!==null)return i.flags|=128,Zx(i),null;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(ys(i),i.flags|=128,null):(l&i.child.childLanes)!==0?FP(a,i,l):(ys(i),a=No(a,i,l),a!==null?a.sibling:null);ys(i);break;case 19:var h=(a.flags&128)!==0;if(d=(l&i.childLanes)!==0,d||(ic(a,i,l,!1),d=(l&i.childLanes)!==0),h){if(d)return GP(a,i,l);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),G(vn,vn.current,i),d)break;return null;case 22:return i.lanes=0,VP(a,i,l,i.pendingProps);case 24:ps(i,Nn,a.memoizedState.cache)}return No(a,i,l)}function $1(a,i,l){if(i._debugNeedsRemount&&a!==null){l=Mx(i.type,i.key,i.pendingProps,i._debugOwner||null,i.mode,i.lanes),l._debugStack=i._debugStack,l._debugTask=i._debugTask;var d=i.return;if(d===null)throw Error("Cannot swap the root fiber.");if(a.alternate=null,i.alternate=null,l.index=i.index,l.sibling=i.sibling,l.return=i.return,l.ref=i.ref,l._debugInfo=i._debugInfo,i===d.child)d.child=l;else{var h=d.child;if(h===null)throw Error("Expected parent to have a child.");for(;h.sibling!==i;)if(h=h.sibling,h===null)throw Error("Expected to find the previous sibling.");h.sibling=l}return i=d.deletions,i===null?(d.deletions=[a],d.flags|=16):i.push(a),l.flags|=2,l}if(a!==null)if(a.memoizedProps!==i.pendingProps||i.type!==a.type)An=!0;else{if(!I1(a,l)&&(i.flags&128)===0)return An=!1,zG(a,i,l);An=(a.flags&131072)!==0}else An=!1,(d=mt)&&(fs(),d=(i.flags&1048576)!==0),d&&(d=i.index,fs(),jj(i,mm,d));switch(i.lanes=0,i.tag){case 16:e:if(d=i.pendingProps,a=hs(i.elementType),i.type=a,typeof a=="function")Px(a)?(d=Rl(a,d),i.tag=1,i.type=a=Nl(a),i=qP(null,i,a,d,l)):(i.tag=0,R1(i,a),i.type=a=Nl(a),i=D1(null,i,a,d,l));else{if(a!=null){if(h=a.$$typeof,h===em){i.tag=11,i.type=a=jx(a),i=kP(null,i,a,d,l);break e}else if(h===Xg){i.tag=14,i=IP(null,i,a,d,l);break e}}throw i="",a!==null&&typeof a=="object"&&a.$$typeof===ta&&(i=" Did you wrap a component in React.lazy() more than once?"),l=L(a)||a,Error("Element type is invalid. Received a promise that resolves to: "+l+". Lazy element type must resolve to a class or function."+i)}return i;case 0:return D1(a,i,i.type,i.pendingProps,l);case 1:return d=i.type,h=Rl(d,i.pendingProps),qP(a,i,d,h,l);case 3:e:{if(J(i,i.stateNode.containerInfo),a===null)throw Error("Should have a current fiber. This is a bug in React.");d=i.pendingProps;var v=i.memoizedState;h=v.element,Qx(a,i),Mf(i,d,null,l);var E=i.memoizedState;if(d=E.cache,ps(i,Nn,d),d!==v.cache&&Ux(i,[Nn],l,!0),Pf(),d=E.element,v.isDehydrated)if(v={element:d,isDehydrated:!1,cache:E.cache},i.updateQueue.baseState=v,i.memoizedState=v,i.flags&256){i=HP(a,i,d,l);break e}else if(d!==h){h=Qr(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),i),Tf(h),i=HP(a,i,d,l);break e}else{switch(a=i.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(Yt=ea(a.firstChild),nr=i,mt=!0,js=null,$i=!1,ra=null,Ea=!0,l=o3(i,null,d,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Al(),d===h){i=No(a,i,l);break e}Jn(a,i,d,l)}i=i.child}return i;case 26:return _g(a,i),a===null?(l=yL(i.type,null,i.pendingProps,null))?i.memoizedState=l:mt||(l=i.type,a=i.pendingProps,d=Y(As.current),d=Bg(d).createElement(l),d[tr]=i,d[Nr]=a,er(d,l,a),Se(d),i.stateNode=d):i.memoizedState=yL(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return K(i),a===null&&mt&&(d=Y(As.current),h=z(),d=i.stateNode=gL(i.type,i.pendingProps,d,h,!1),$i||(h=aL(d,i.type,i.pendingProps,h),h!==null&&(Sl(i,0).serverProps=h)),nr=i,Ea=!0,h=Yt,Es(i.type)?(GN=h,Yt=ea(d.firstChild)):Yt=h),Jn(a,i,i.pendingProps.children,l),_g(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&mt&&(v=z(),d=Ex(i.type,v.ancestorInfo),h=Yt,(E=!h)||(E=_Y(h,i.type,i.pendingProps,Ea),E!==null?(i.stateNode=E,$i||(v=aL(E,i.type,i.pendingProps,v),v!==null&&(Sl(i,0).serverProps=v)),nr=i,Yt=ea(E.firstChild),Ea=!1,v=!0):v=!1,E=!v),E&&(d&&tg(i,h),ms(i))),K(i),h=i.type,v=i.pendingProps,E=a!==null?a.memoizedProps:null,d=v.children,uw(h,v)?d=null:E!==null&&uw(h,E)&&(i.flags|=32),i.memoizedState!==null&&(h=e1(a,i,PG,null,null,l),Km._currentValue=h),_g(a,i),Jn(a,i,d,l),i.child;case 6:return a===null&&mt&&(l=i.pendingProps,a=z(),d=a.ancestorInfo.current,l=d!=null?Fh(l,d.tag,a.ancestorInfo.implicitRootScope):!0,a=Yt,(d=!a)||(d=DY(a,i.pendingProps,Ea),d!==null?(i.stateNode=d,nr=i,Yt=null,d=!0):d=!1,d=!d),d&&(l&&tg(i,a),ms(i))),null;case 13:return FP(a,i,l);case 4:return J(i,i.stateNode.containerInfo),d=i.pendingProps,a===null?i.child=Fl(i,null,d,l):Jn(a,i,d,l),i.child;case 11:return kP(a,i,i.type,i.pendingProps,l);case 7:return Jn(a,i,i.pendingProps,l),i.child;case 8:return Jn(a,i,i.pendingProps.children,l),i.child;case 12:return i.flags|=4,i.flags|=2048,d=i.stateNode,d.effectDuration=-0,d.passiveEffectDuration=-0,Jn(a,i,i.pendingProps.children,l),i.child;case 10:return d=i.type,h=i.pendingProps,v=h.value,"value"in h||j3||(j3=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ps(i,d,v),Jn(a,i,h.children,l),i.child;case 9:return h=i.type._context,d=i.pendingProps.children,typeof d!="function"&&console.error("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."),Ol(i),h=tn(h),d=dN(d,h,void 0),i.flags|=1,Jn(a,i,d,l),i.child;case 14:return IP(a,i,i.type,i.pendingProps,l);case 15:return $P(a,i,i.type,i.pendingProps,l);case 19:return GP(a,i,l);case 31:return BG(a,i,l);case 22:return VP(a,i,l,i.pendingProps);case 24:return Ol(i),d=tn(Nn),a===null?(h=Kx(),h===null&&(h=zt,v=qx(),h.pooledCache=v,Tl(v),v!==null&&(h.pooledCacheLanes|=l),h=v),i.memoizedState={parent:d,cache:h},Yx(i),ps(i,Nn,h)):((a.lanes&l)!==0&&(Qx(a,i),Mf(i,null,null,l),Pf()),h=a.memoizedState,v=i.memoizedState,h.parent!==d?(h={parent:d,cache:d},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),ps(i,Nn,d)):(d=v.cache,ps(i,Nn,d),d!==h.cache&&Ux(i,[Nn],l,!0))),Jn(a,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Eo(a){a.flags|=4}function V1(a,i,l,d,h){if((i=(a.mode&lX)!==Ge)&&(i=!1),i){if(a.flags|=16777216,(h&335544128)===h)if(a.stateNode.complete)a.flags|=8192;else if(OM())a.flags|=8192;else throw Hl=Nv,mN}else a.flags&=-16777217}function YP(a,i){if(i.type!=="stylesheet"||(i.state.loading&Ca)!==nu)a.flags&=-16777217;else if(a.flags|=16777216,!EL(i))if(OM())a.flags|=8192;else throw Hl=Nv,mN}function Rg(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?Gr():536870912,a.lanes|=i,Xl|=i)}function Vf(a,i){if(!mt)switch(a.tailMode){case"hidden":i=a.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?a.tail=null:l.sibling=null;break;case"collapsed":l=a.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:d.sibling=null}}function qt(a){var i=a.alternate!==null&&a.alternate.child===a.child,l=0,d=0;if(i)if((a.mode&it)!==Ge){for(var h=a.selfBaseDuration,v=a.child;v!==null;)l|=v.lanes|v.childLanes,d|=v.subtreeFlags&65011712,d|=v.flags&65011712,h+=v.treeBaseDuration,v=v.sibling;a.treeBaseDuration=h}else for(h=a.child;h!==null;)l|=h.lanes|h.childLanes,d|=h.subtreeFlags&65011712,d|=h.flags&65011712,h.return=a,h=h.sibling;else if((a.mode&it)!==Ge){h=a.actualDuration,v=a.selfBaseDuration;for(var E=a.child;E!==null;)l|=E.lanes|E.childLanes,d|=E.subtreeFlags,d|=E.flags,h+=E.actualDuration,v+=E.treeBaseDuration,E=E.sibling;a.actualDuration=h,a.treeBaseDuration=v}else for(h=a.child;h!==null;)l|=h.lanes|h.childLanes,d|=h.subtreeFlags,d|=h.flags,h.return=a,h=h.sibling;return a.subtreeFlags|=d,a.childLanes=l,i}function UG(a,i,l){var d=i.pendingProps;switch($x(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(i),null;case 1:return qt(i),null;case 3:return l=i.stateNode,d=null,a!==null&&(d=a.memoizedState.cache),i.memoizedState.cache!==d&&(i.flags|=2048),xo(Nn,i),q(i),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(a===null||a.child===null)&&(ac(i)?(Bx(),Eo(i)):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Vx())),qt(i),null;case 26:var h=i.type,v=i.memoizedState;return a===null?(Eo(i),v!==null?(qt(i),YP(i,v)):(qt(i),V1(i,h,null,d,l))):v?v!==a.memoizedState?(Eo(i),qt(i),YP(i,v)):(qt(i),i.flags&=-16777217):(a=a.memoizedProps,a!==d&&Eo(i),qt(i),V1(i,h,a,d,l)),null;case 27:if(te(i),l=Y(As.current),h=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==d&&Eo(i);else{if(!d){if(i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return qt(i),null}a=z(),ac(i)?kj(i):(a=gL(h,d,l,a,!0),i.stateNode=a,Eo(i))}return qt(i),null;case 5:if(te(i),h=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==d&&Eo(i);else{if(!d){if(i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return qt(i),null}var E=z();if(ac(i))kj(i);else{switch(v=Y(As.current),Ex(h,E.ancestorInfo),E=E.context,v=Bg(v),E){case ed:v=v.createElementNS(Sc,h);break;case Yv:v=v.createElementNS(rv,h);break;default:switch(h){case"svg":v=v.createElementNS(Sc,h);break;case"math":v=v.createElementNS(rv,h);break;case"script":v=v.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof d.is=="string"?v.createElement("select",{is:d.is}):v.createElement("select"),d.multiple?v.multiple=!0:d.size&&(v.size=d.size);break;default:v=typeof d.is=="string"?v.createElement(h,{is:d.is}):v.createElement(h),h.indexOf("-")===-1&&(h!==h.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",h),Object.prototype.toString.call(v)!=="[object HTMLUnknownElement]"||Fa.call(nI,h)||(nI[h]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",h)))}}v[tr]=i,v[Nr]=d;e:for(E=i.child;E!==null;){if(E.tag===5||E.tag===6)v.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===i)break e;for(;E.sibling===null;){if(E.return===null||E.return===i)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}i.stateNode=v;e:switch(er(v,h,d),h){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Eo(i)}}return qt(i),V1(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,l),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==d&&Eo(i);else{if(typeof d!="string"&&i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(a=Y(As.current),l=z(),ac(i)){if(a=i.stateNode,l=i.memoizedProps,h=!$i,d=null,v=nr,v!==null)switch(v.tag){case 3:h&&(h=pL(a,l,d),h!==null&&(Sl(i,0).serverProps=h));break;case 27:case 5:d=v.memoizedProps,h&&(h=pL(a,l,d),h!==null&&(Sl(i,0).serverProps=h))}a[tr]=i,a=!!(a.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||JM(a.nodeValue,l)),a||ms(i,!0)}else h=l.ancestorInfo.current,h!=null&&Fh(d,h.tag,l.ancestorInfo.implicitRootScope),a=Bg(a).createTextNode(d),a[tr]=i,i.stateNode=a}return qt(i),null;case 31:if(l=i.memoizedState,a===null||a.memoizedState!==null){if(d=ac(i),l!==null){if(a===null){if(!d)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(a=i.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");a[tr]=i,qt(i),(i.mode&it)!==Ge&&l!==null&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration))}else Bx(),Al(),(i.flags&128)===0&&(l=i.memoizedState=null),i.flags|=4,qt(i),(i.mode&it)!==Ge&&l!==null&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration));a=!1}else l=Vx(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=l),a=!0;if(!a)return i.flags&256?(Zr(i),i):(Zr(i),null);if((i.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return qt(i),null;case 13:if(d=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(h=d,v=ac(i),h!==null&&h.dehydrated!==null){if(a===null){if(!v)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(v=i.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");v[tr]=i,qt(i),(i.mode&it)!==Ge&&h!==null&&(h=i.child,h!==null&&(i.treeBaseDuration-=h.treeBaseDuration))}else Bx(),Al(),(i.flags&128)===0&&(h=i.memoizedState=null),i.flags|=4,qt(i),(i.mode&it)!==Ge&&h!==null&&(h=i.child,h!==null&&(i.treeBaseDuration-=h.treeBaseDuration));h=!1}else h=Vx(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=h),h=!0;if(!h)return i.flags&256?(Zr(i),i):(Zr(i),null)}return Zr(i),(i.flags&128)!==0?(i.lanes=l,(i.mode&it)!==Ge&&Df(i),i):(l=d!==null,a=a!==null&&a.memoizedState!==null,l&&(d=i.child,h=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(h=d.alternate.memoizedState.cachePool.pool),v=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(v=d.memoizedState.cachePool.pool),v!==h&&(d.flags|=2048)),l!==a&&l&&(i.child.flags|=8192),Rg(i,i.updateQueue),qt(i),(i.mode&it)!==Ge&&l&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration)),null);case 4:return q(i),a===null&&nw(i.stateNode.containerInfo),qt(i),null;case 10:return xo(i.type,i),qt(i),null;case 19:if(H(vn,i),d=i.memoizedState,d===null)return qt(i),null;if(h=(i.flags&128)!==0,v=d.rendering,v===null)if(h)Vf(d,!1);else{if(sn!==Vo||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(v=pg(a),v!==null){for(i.flags|=128,Vf(d,!1),a=v.updateQueue,i.updateQueue=a,Rg(i,a),i.subtreeFlags=0,a=l,l=i.child;l!==null;)Dj(l,a),l=l.sibling;return G(vn,vn.current&Uc|Cm,i),mt&&bo(i,d.treeForkCount),i.child}a=a.sibling}d.tail!==null&&Hn()>Lv&&(i.flags|=128,h=!0,Vf(d,!1),i.lanes=4194304)}else{if(!h)if(a=pg(v),a!==null){if(i.flags|=128,h=!0,a=a.updateQueue,i.updateQueue=a,Rg(i,a),Vf(d,!0),d.tail===null&&d.tailMode==="hidden"&&!v.alternate&&!mt)return qt(i),null}else 2*Hn()-d.renderingStartTime>Lv&&l!==536870912&&(i.flags|=128,h=!0,Vf(d,!1),i.lanes=4194304);d.isBackwards?(v.sibling=i.child,i.child=v):(a=d.last,a!==null?a.sibling=v:i.child=v,d.last=v)}return d.tail!==null?(a=d.tail,d.rendering=a,d.tail=a.sibling,d.renderingStartTime=Hn(),a.sibling=null,l=vn.current,l=h?l&Uc|Cm:l&Uc,G(vn,l,i),mt&&bo(i,d.treeForkCount),a):(qt(i),null);case 22:case 23:return Zr(i),Wx(i),d=i.memoizedState!==null,a!==null?a.memoizedState!==null!==d&&(i.flags|=8192):d&&(i.flags|=8192),d?(l&536870912)!==0&&(i.flags&128)===0&&(qt(i),i.subtreeFlags&6&&(i.flags|=8192)):qt(i),l=i.updateQueue,l!==null&&Rg(i,l.retryQueue),l=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==l&&(i.flags|=2048),a!==null&&H(Ul,i),null;case 24:return l=null,a!==null&&(l=a.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),xo(Nn,i),qt(i),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function qG(a,i){switch($x(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&it)!==Ge&&Df(i),i):null;case 3:return xo(Nn,i),q(i),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return te(i),null;case 31:if(i.memoizedState!==null){if(Zr(i),i.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Al()}return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&it)!==Ge&&Df(i),i):null;case 13:if(Zr(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Al()}return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&it)!==Ge&&Df(i),i):null;case 19:return H(vn,i),null;case 4:return q(i),null;case 10:return xo(i.type,i),null;case 22:case 23:return Zr(i),Wx(i),a!==null&&H(Ul,i),a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&it)!==Ge&&Df(i),i):null;case 24:return xo(Nn,i),null;case 25:return null;default:return null}}function QP(a,i){switch($x(i),i.tag){case 3:xo(Nn,i),q(i);break;case 26:case 27:case 5:te(i);break;case 4:q(i);break;case 31:i.memoizedState!==null&&Zr(i);break;case 13:Zr(i);break;case 19:H(vn,i);break;case 10:xo(i.type,i);break;case 22:case 23:Zr(i),Wx(i),a!==null&&H(Ul,i);break;case 24:xo(Nn,i)}}function Ai(a){return(a.mode&it)!==Ge}function XP(a,i){Ai(a)?(Si(),Bf(i,a),Ei()):Bf(i,a)}function B1(a,i,l){Ai(a)?(Si(),cc(l,a,i),Ei()):cc(l,a,i)}function Bf(a,i){try{var l=i.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var h=d.next;l=h;do{if((l.tag&a)===a&&(d=void 0,(a&Or)!==Sv&&(Wc=!0),d=de(i,pX,l),(a&Or)!==Sv&&(Wc=!1),d!==void 0&&typeof d!="function")){var v=void 0;v=(l.tag&ia)!==0?"useLayoutEffect":(l.tag&Or)!==0?"useInsertionEffect":"useEffect";var E=void 0;E=d===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof d.then=="function"?`
|
||
|
||
It looks like you wrote `+v+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
||
|
||
`+v+`(() => {
|
||
async function fetchData() {
|
||
// You can await here
|
||
const response = await MyAPI.getData(someId);
|
||
// ...
|
||
}
|
||
fetchData();
|
||
}, [someId]); // Or [] if effect doesn't need props or state
|
||
|
||
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+d,de(i,function(O,M){console.error("%s must not return anything besides a function, which is used for clean-up.%s",O,M)},v,E)}l=l.next}while(l!==h)}}catch(O){Ct(i,i.return,O)}}function cc(a,i,l){try{var d=i.updateQueue,h=d!==null?d.lastEffect:null;if(h!==null){var v=h.next;d=v;do{if((d.tag&a)===a){var E=d.inst,O=E.destroy;O!==void 0&&(E.destroy=void 0,(a&Or)!==Sv&&(Wc=!0),h=i,de(h,hX,h,l,O),(a&Or)!==Sv&&(Wc=!1))}d=d.next}while(d!==v)}}catch(M){Ct(i,i.return,M)}}function WP(a,i){Ai(a)?(Si(),Bf(i,a),Ei()):Bf(i,a)}function z1(a,i,l){Ai(a)?(Si(),cc(l,a,i),Ei()):cc(l,a,i)}function ZP(a){var i=a.updateQueue;if(i!==null){var l=a.stateNode;a.type.defaultProps||"ref"in a.memoizedProps||Kc||(l.props!==a.memoizedProps&&console.error("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.",B(a)||"instance"),l.state!==a.memoizedState&&console.error("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.",B(a)||"instance"));try{de(a,eP,i,l)}catch(d){Ct(a,a.return,d)}}}function HG(a,i,l){return a.getSnapshotBeforeUpdate(i,l)}function FG(a,i){var l=i.memoizedProps,d=i.memoizedState;i=a.stateNode,a.type.defaultProps||"ref"in a.memoizedProps||Kc||(i.props!==a.memoizedProps&&console.error("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.",B(a)||"instance"),i.state!==a.memoizedState&&console.error("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.",B(a)||"instance"));try{var h=Rl(a.type,l),v=de(a,HG,i,h,d);l=P3,v!==void 0||l.has(a.type)||(l.add(a.type),de(a,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",B(a))})),i.__reactInternalSnapshotBeforeUpdate=v}catch(E){Ct(a,a.return,E)}}function JP(a,i,l){l.props=Rl(a.type,a.memoizedProps),l.state=a.memoizedState,Ai(a)?(Si(),de(a,Zk,a,i,l),Ei()):de(a,Zk,a,i,l)}function KG(a){var i=a.ref;if(i!==null){switch(a.tag){case 26:case 27:case 5:var l=a.stateNode;break;case 30:l=a.stateNode;break;default:l=a.stateNode}if(typeof i=="function")if(Ai(a))try{Si(),a.refCleanup=i(l)}finally{Ei()}else a.refCleanup=i(l);else typeof i=="string"?console.error("String refs are no longer supported."):i.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",B(a)),i.current=l}}function zf(a,i){try{de(a,KG,a)}catch(l){Ct(a,i,l)}}function Oi(a,i){var l=a.ref,d=a.refCleanup;if(l!==null)if(typeof d=="function")try{if(Ai(a))try{Si(),de(a,d)}finally{Ei(a)}else de(a,d)}catch(h){Ct(a,i,h)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof l=="function")try{if(Ai(a))try{Si(),de(a,l,null)}finally{Ei(a)}else de(a,l,null)}catch(h){Ct(a,i,h)}else l.current=null}function eM(a,i,l,d){var h=a.memoizedProps,v=h.id,E=h.onCommit;h=h.onRender,i=i===null?"mount":"update",yv&&(i="nested-update"),typeof h=="function"&&h(v,i,a.actualDuration,a.treeBaseDuration,a.actualStartTime,l),typeof E=="function"&&E(v,i,d,l)}function GG(a,i,l,d){var h=a.memoizedProps;a=h.id,h=h.onPostCommit,i=i===null?"mount":"update",yv&&(i="nested-update"),typeof h=="function"&&h(a,i,d,l)}function tM(a){var i=a.type,l=a.memoizedProps,d=a.stateNode;try{de(a,vY,d,i,l,a)}catch(h){Ct(a,a.return,h)}}function U1(a,i,l){try{de(a,bY,a.stateNode,a.type,l,i,a)}catch(d){Ct(a,a.return,d)}}function nM(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Es(a.type)||a.tag===4}function q1(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||nM(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.tag===27&&Es(a.type)||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 H1(a,i,l){var d=a.tag;if(d===5||d===6)a=a.stateNode,i?(uL(l),(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(a,i)):(uL(l),i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(a),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=vo));else if(d!==4&&(d===27&&Es(a.type)&&(l=a.stateNode,i=null),a=a.child,a!==null))for(H1(a,i,l),a=a.sibling;a!==null;)H1(a,i,l),a=a.sibling}function jg(a,i,l){var d=a.tag;if(d===5||d===6)a=a.stateNode,i?l.insertBefore(a,i):l.appendChild(a);else if(d!==4&&(d===27&&Es(a.type)&&(l=a.stateNode),a=a.child,a!==null))for(jg(a,i,l),a=a.sibling;a!==null;)jg(a,i,l),a=a.sibling}function YG(a){for(var i,l=a.return;l!==null;){if(nM(l)){i=l;break}l=l.return}if(i==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(i.tag){case 27:i=i.stateNode,l=q1(a),jg(a,l,i);break;case 5:l=i.stateNode,i.flags&32&&(lL(l),i.flags&=-33),i=q1(a),jg(a,i,l);break;case 3:case 4:i=i.stateNode.containerInfo,l=q1(a),H1(a,l,i);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function rM(a){var i=a.stateNode,l=a.memoizedProps;try{de(a,LY,a.type,l,i,a)}catch(d){Ct(a,a.return,d)}}function aM(a,i){return i.tag===31?(i=i.memoizedState,a.memoizedState!==null&&i===null):i.tag===13?(a=a.memoizedState,i=i.memoizedState,a!==null&&a.dehydrated!==null&&(i===null||i.dehydrated===null)):i.tag===3?a.memoizedState.isDehydrated&&(i.flags&256)===0:!1}function QG(a,i){if(a=a.containerInfo,HN=Zv,a=xj(a),Ox(a)){if("selectionStart"in a)var l={start:a.selectionStart,end:a.selectionEnd};else e:{l=(l=a.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var h=d.anchorOffset,v=d.focusNode;d=d.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var E=0,O=-1,M=-1,I=0,oe=0,se=a,Z=null;t:for(;;){for(var fe;se!==l||h!==0&&se.nodeType!==3||(O=E+h),se!==v||d!==0&&se.nodeType!==3||(M=E+d),se.nodeType===3&&(E+=se.nodeValue.length),(fe=se.firstChild)!==null;)Z=se,se=fe;for(;;){if(se===a)break t;if(Z===l&&++I===h&&(O=E),Z===v&&++oe===d&&(M=E),(fe=se.nextSibling)!==null)break;se=Z,Z=se.parentNode}se=fe}l=O===-1||M===-1?null:{start:O,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(FN={focusedElem:a,selectionRange:l},Zv=!1,Kn=i;Kn!==null;)if(i=Kn,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,Kn=a;else for(;Kn!==null;){switch(a=i=Kn,l=a.alternate,h=a.flags,a.tag){case 0:if((h&4)!==0&&(a=a.updateQueue,a=a!==null?a.events:null,a!==null))for(l=0;l<a.length;l++)h=a[l],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:(h&1024)!==0&&l!==null&&FG(a,l);break;case 3:if((h&1024)!==0){if(a=a.stateNode.containerInfo,l=a.nodeType,l===9)cw(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":cw(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((h&1024)!==0)throw 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.")}if(a=i.sibling,a!==null){a.return=i.return,Kn=a;break}Kn=i.return}}function iM(a,i,l){var d=Xr(),h=bi(),v=wi(),E=Ni(),O=l.flags;switch(l.tag){case 0:case 11:case 15:Ti(a,l),O&4&&XP(l,ia|Oa);break;case 1:if(Ti(a,l),O&4)if(a=l.stateNode,i===null)l.type.defaultProps||"ref"in l.memoizedProps||Kc||(a.props!==l.memoizedProps&&console.error("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.",B(l)||"instance"),a.state!==l.memoizedState&&console.error("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.",B(l)||"instance")),Ai(l)?(Si(),de(l,fN,l,a),Ei()):de(l,fN,l,a);else{var M=Rl(l.type,i.memoizedProps);i=i.memoizedState,l.type.defaultProps||"ref"in l.memoizedProps||Kc||(a.props!==l.memoizedProps&&console.error("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.",B(l)||"instance"),a.state!==l.memoizedState&&console.error("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.",B(l)||"instance")),Ai(l)?(Si(),de(l,Qk,l,a,M,i,a.__reactInternalSnapshotBeforeUpdate),Ei()):de(l,Qk,l,a,M,i,a.__reactInternalSnapshotBeforeUpdate)}O&64&&ZP(l),O&512&&zf(l,l.return);break;case 3:if(i=wo(),Ti(a,l),O&64&&(O=l.updateQueue,O!==null)){if(M=null,l.child!==null)switch(l.child.tag){case 27:case 5:M=l.child.stateNode;break;case 1:M=l.child.stateNode}try{de(l,eP,O,M)}catch(oe){Ct(l,l.return,oe)}}a.effectDuration+=ig(i);break;case 27:i===null&&O&4&&rM(l);case 26:case 5:if(Ti(a,l),i===null){if(O&4)tM(l);else if(O&64){a=l.type,i=l.memoizedProps,M=l.stateNode;try{de(l,yY,M,a,i,l)}catch(oe){Ct(l,l.return,oe)}}}O&512&&zf(l,l.return);break;case 12:if(O&4){O=wo(),Ti(a,l),a=l.stateNode,a.effectDuration+=_f(O);try{de(l,eM,l,i,Ps,a.effectDuration)}catch(oe){Ct(l,l.return,oe)}}else Ti(a,l);break;case 31:Ti(a,l),O&4&&lM(a,l);break;case 13:Ti(a,l),O&4&&uM(a,l),O&64&&(a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(O=aY.bind(null,l),RY(a,O))));break;case 22:if(O=l.memoizedState!==null||$o,!O){i=i!==null&&i.memoizedState!==null||On,M=$o;var I=On;$o=O,(On=i)&&!I?(Ci(a,l,(l.subtreeFlags&8772)!==0),(l.mode&it)!==Ge&&0<=qe&&0<=Ke&&.05<Ke-qe&&Qh(l,qe,Ke)):Ti(a,l),$o=M,On=I}break;case 30:break;default:Ti(a,l)}(l.mode&it)!==Ge&&0<=qe&&0<=Ke&&((cn||.05<on)&&vi(l,qe,Ke,on,nn),l.alternate===null&&l.return!==null&&l.return.alternate!==null&&.05<Ke-qe&&(aM(l.return.alternate,l.return)||gi(l,qe,Ke,"Mount"))),Wr(d),xi(h),nn=v,cn=E}function oM(a){var i=a.alternate;i!==null&&(a.alternate=null,oM(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&ue(i)),a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function So(a,i,l){for(l=l.child;l!==null;)sM(a,i,l),l=l.sibling}function sM(a,i,l){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(Nc,l)}catch(I){Mi||(Mi=!0,console.error("React instrumentation encountered an error: %o",I))}var d=Xr(),h=bi(),v=wi(),E=Ni();switch(l.tag){case 26:On||Oi(l,i),So(a,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(a=l.stateNode,a.parentNode.removeChild(a));break;case 27:On||Oi(l,i);var O=Tn,M=Br;Es(l.type)&&(Tn=l.stateNode,Br=!1),So(a,i,l),de(l,Xf,l.stateNode),Tn=O,Br=M;break;case 5:On||Oi(l,i);case 6:if(O=Tn,M=Br,Tn=null,So(a,i,l),Tn=O,Br=M,Tn!==null)if(Br)try{de(l,NY,Tn,l.stateNode)}catch(I){Ct(l,i,I)}else try{de(l,wY,Tn,l.stateNode)}catch(I){Ct(l,i,I)}break;case 18:Tn!==null&&(Br?(a=Tn,cL(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,l.stateNode),yc(a)):cL(Tn,l.stateNode));break;case 4:O=Tn,M=Br,Tn=l.stateNode.containerInfo,Br=!0,So(a,i,l),Tn=O,Br=M;break;case 0:case 11:case 14:case 15:cc(Or,l,i),On||B1(l,i,ia),So(a,i,l);break;case 1:On||(Oi(l,i),O=l.stateNode,typeof O.componentWillUnmount=="function"&&JP(l,i,O)),So(a,i,l);break;case 21:So(a,i,l);break;case 22:On=(O=On)||l.memoizedState!==null,So(a,i,l),On=O;break;default:So(a,i,l)}(l.mode&it)!==Ge&&0<=qe&&0<=Ke&&(cn||.05<on)&&vi(l,qe,Ke,on,nn),Wr(d),xi(h),nn=v,cn=E}function lM(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{de(i,PY,a)}catch(l){Ct(i,i.return,l)}}}function uM(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{de(i,MY,a)}catch(l){Ct(i,i.return,l)}}function XG(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new M3),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new M3),i;default:throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}}function Pg(a,i){var l=XG(a);i.forEach(function(d){if(!l.has(d)){if(l.add(d),Li)if(Gc!==null&&Yc!==null)Ff(Yc,Gc);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var h=iY.bind(null,a,d);d.then(h,h)}})}function $r(a,i){var l=i.deletions;if(l!==null)for(var d=0;d<l.length;d++){var h=a,v=i,E=l[d],O=Xr(),M=v;e:for(;M!==null;){switch(M.tag){case 27:if(Es(M.type)){Tn=M.stateNode,Br=!1;break e}break;case 5:Tn=M.stateNode,Br=!1;break e;case 3:case 4:Tn=M.stateNode.containerInfo,Br=!0;break e}M=M.return}if(Tn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");sM(h,v,E),Tn=null,Br=!1,(E.mode&it)!==Ge&&0<=qe&&0<=Ke&&.05<Ke-qe&&gi(E,qe,Ke,"Unmount"),Wr(O),h=E,v=h.alternate,v!==null&&(v.return=null),h.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)cM(i,a),i=i.sibling}function cM(a,i){var l=Xr(),d=bi(),h=wi(),v=Ni(),E=a.alternate,O=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:$r(i,a),Vr(a),O&4&&(cc(Or|Oa,a,a.return),Bf(Or|Oa,a),B1(a,a.return,ia|Oa));break;case 1:if($r(i,a),Vr(a),O&512&&(On||E===null||Oi(E,E.return)),O&64&&$o&&(O=a.updateQueue,O!==null&&(E=O.callbacks,E!==null))){var M=O.shared.hiddenCallbacks;O.shared.hiddenCallbacks=M===null?E:M.concat(E)}break;case 26:if(M=Qa,$r(i,a),Vr(a),O&512&&(On||E===null||Oi(E,E.return)),O&4){var I=E!==null?E.memoizedState:null;if(O=a.memoizedState,E===null)if(O===null)if(a.stateNode===null){e:{O=a.type,E=a.memoizedProps,M=M.ownerDocument||M;t:switch(O){case"title":I=M.getElementsByTagName("title")[0],(!I||I[rm]||I[tr]||I.namespaceURI===Sc||I.hasAttribute("itemprop"))&&(I=M.createElement(O),M.head.insertBefore(I,M.querySelector("head > title"))),er(I,O,E),I[tr]=a,Se(I),O=I;break e;case"link":var oe=wL("link","href",M).get(O+(E.href||""));if(oe){for(var se=0;se<oe.length;se++)if(I=oe[se],I.getAttribute("href")===(E.href==null||E.href===""?null:E.href)&&I.getAttribute("rel")===(E.rel==null?null:E.rel)&&I.getAttribute("title")===(E.title==null?null:E.title)&&I.getAttribute("crossorigin")===(E.crossOrigin==null?null:E.crossOrigin)){oe.splice(se,1);break t}}I=M.createElement(O),er(I,O,E),M.head.appendChild(I);break;case"meta":if(oe=wL("meta","content",M).get(O+(E.content||""))){for(se=0;se<oe.length;se++)if(I=oe[se],$e(E.content,"content"),I.getAttribute("content")===(E.content==null?null:""+E.content)&&I.getAttribute("name")===(E.name==null?null:E.name)&&I.getAttribute("property")===(E.property==null?null:E.property)&&I.getAttribute("http-equiv")===(E.httpEquiv==null?null:E.httpEquiv)&&I.getAttribute("charset")===(E.charSet==null?null:E.charSet)){oe.splice(se,1);break t}}I=M.createElement(O),er(I,O,E),M.head.appendChild(I);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+O+'". This is a bug in React.')}I[tr]=a,Se(I),O=I}a.stateNode=O}else NL(M,a.type,a.stateNode);else a.stateNode=xL(M,O,a.memoizedProps);else I!==O?(I===null?E.stateNode!==null&&(E=E.stateNode,E.parentNode.removeChild(E)):I.count--,O===null?NL(M,a.type,a.stateNode):xL(M,O,a.memoizedProps)):O===null&&a.stateNode!==null&&U1(a,a.memoizedProps,E.memoizedProps)}break;case 27:$r(i,a),Vr(a),O&512&&(On||E===null||Oi(E,E.return)),E!==null&&O&4&&U1(a,a.memoizedProps,E.memoizedProps);break;case 5:if($r(i,a),Vr(a),O&512&&(On||E===null||Oi(E,E.return)),a.flags&32){M=a.stateNode;try{de(a,lL,M)}catch(De){Ct(a,a.return,De)}}O&4&&a.stateNode!=null&&(M=a.memoizedProps,U1(a,M,E!==null?E.memoizedProps:M)),O&1024&&(AN=!0,a.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if($r(i,a),Vr(a),O&4){if(a.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");O=a.memoizedProps,E=E!==null?E.memoizedProps:O,M=a.stateNode;try{de(a,xY,M,E,O)}catch(De){Ct(a,a.return,De)}}break;case 3:if(M=wo(),Qv=null,I=Qa,Qa=zg(i.containerInfo),$r(i,a),Qa=I,Vr(a),O&4&&E!==null&&E.memoizedState.isDehydrated)try{de(a,jY,i.containerInfo)}catch(De){Ct(a,a.return,De)}AN&&(AN=!1,dM(a)),i.effectDuration+=ig(M);break;case 4:O=Qa,Qa=zg(a.stateNode.containerInfo),$r(i,a),Vr(a),Qa=O;break;case 12:O=wo(),$r(i,a),Vr(a),a.stateNode.effectDuration+=_f(O);break;case 31:$r(i,a),Vr(a),O&4&&(O=a.updateQueue,O!==null&&(a.updateQueue=null,Pg(a,O)));break;case 13:$r(i,a),Vr(a),a.child.flags&8192&&a.memoizedState!==null!=(E!==null&&E.memoizedState!==null)&&(Mv=Hn()),O&4&&(O=a.updateQueue,O!==null&&(a.updateQueue=null,Pg(a,O)));break;case 22:M=a.memoizedState!==null;var Z=E!==null&&E.memoizedState!==null,fe=$o,Ce=On;if($o=fe||M,On=Ce||Z,$r(i,a),On=Ce,$o=fe,Z&&!M&&!fe&&!Ce&&(a.mode&it)!==Ge&&0<=qe&&0<=Ke&&.05<Ke-qe&&Qh(a,qe,Ke),Vr(a),O&8192)e:for(i=a.stateNode,i._visibility=M?i._visibility&~fm:i._visibility|fm,!M||E===null||Z||$o||On||(jl(a),(a.mode&it)!==Ge&&0<=qe&&0<=Ke&&.05<Ke-qe&&gi(a,qe,Ke,"Disconnect")),E=null,i=a;;){if(i.tag===5||i.tag===26){if(E===null){Z=E=i;try{I=Z.stateNode,M?de(Z,SY,I):de(Z,TY,Z.stateNode,Z.memoizedProps)}catch(De){Ct(Z,Z.return,De)}}}else if(i.tag===6){if(E===null){Z=i;try{oe=Z.stateNode,M?de(Z,AY,oe):de(Z,CY,oe,Z.memoizedProps)}catch(De){Ct(Z,Z.return,De)}}}else if(i.tag===18){if(E===null){Z=i;try{se=Z.stateNode,M?de(Z,EY,se):de(Z,OY,Z.stateNode)}catch(De){Ct(Z,Z.return,De)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===a)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;E===i&&(E=null),i=i.return}E===i&&(E=null),i.sibling.return=i.return,i=i.sibling}O&4&&(O=a.updateQueue,O!==null&&(E=O.retryQueue,E!==null&&(O.retryQueue=null,Pg(a,E))));break;case 19:$r(i,a),Vr(a),O&4&&(O=a.updateQueue,O!==null&&(a.updateQueue=null,Pg(a,O)));break;case 30:break;case 21:break;default:$r(i,a),Vr(a)}(a.mode&it)!==Ge&&0<=qe&&0<=Ke&&((cn||.05<on)&&vi(a,qe,Ke,on,nn),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Ke-qe&&(aM(a.return.alternate,a.return)||gi(a,qe,Ke,"Mount"))),Wr(l),xi(d),nn=h,cn=v}function Vr(a){var i=a.flags;if(i&2){try{de(a,YG,a)}catch(l){Ct(a,a.return,l)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function dM(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;dM(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function Ti(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)iM(a,i.alternate,i),i=i.sibling}function fM(a){var i=Xr(),l=bi(),d=wi(),h=Ni();switch(a.tag){case 0:case 11:case 14:case 15:B1(a,a.return,ia),jl(a);break;case 1:Oi(a,a.return);var v=a.stateNode;typeof v.componentWillUnmount=="function"&&JP(a,a.return,v),jl(a);break;case 27:de(a,Xf,a.stateNode);case 26:case 5:Oi(a,a.return),jl(a);break;case 22:a.memoizedState===null&&jl(a);break;case 30:jl(a);break;default:jl(a)}(a.mode&it)!==Ge&&0<=qe&&0<=Ke&&(cn||.05<on)&&vi(a,qe,Ke,on,nn),Wr(i),xi(l),nn=d,cn=h}function jl(a){for(a=a.child;a!==null;)fM(a),a=a.sibling}function mM(a,i,l,d){var h=Xr(),v=bi(),E=wi(),O=Ni(),M=l.flags;switch(l.tag){case 0:case 11:case 15:Ci(a,l,d),XP(l,ia);break;case 1:if(Ci(a,l,d),i=l.stateNode,typeof i.componentDidMount=="function"&&de(l,fN,l,i),i=l.updateQueue,i!==null){a=l.stateNode;try{de(l,jG,i,a)}catch(I){Ct(l,l.return,I)}}d&&M&64&&ZP(l),zf(l,l.return);break;case 27:rM(l);case 26:case 5:Ci(a,l,d),d&&i===null&&M&4&&tM(l),zf(l,l.return);break;case 12:if(d&&M&4){M=wo(),Ci(a,l,d),d=l.stateNode,d.effectDuration+=_f(M);try{de(l,eM,l,i,Ps,d.effectDuration)}catch(I){Ct(l,l.return,I)}}else Ci(a,l,d);break;case 31:Ci(a,l,d),d&&M&4&&lM(a,l);break;case 13:Ci(a,l,d),d&&M&4&&uM(a,l);break;case 22:l.memoizedState===null&&Ci(a,l,d),zf(l,l.return);break;case 30:break;default:Ci(a,l,d)}(l.mode&it)!==Ge&&0<=qe&&0<=Ke&&(cn||.05<on)&&vi(l,qe,Ke,on,nn),Wr(h),xi(v),nn=E,cn=O}function Ci(a,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;)mM(a,i.alternate,i,l),i=i.sibling}function F1(a,i){var l=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==l&&(a!=null&&Tl(a),l!=null&&Cf(l))}function K1(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(Tl(i),a!=null&&Cf(a))}function Ha(a,i,l,d,h){if(i.subtreeFlags&10256||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child))for(i=i.child;i!==null;){var v=i.sibling;pM(a,i,l,d,v!==null?v.actualStartTime:h),i=v}}function pM(a,i,l,d,h){var v=Xr(),E=bi(),O=wi(),M=Ni(),I=_s,oe=i.flags;switch(i.tag){case 0:case 11:case 15:(i.mode&it)!==Ge&&0<i.actualStartTime&&(i.flags&1)!==0&&Xh(i,i.actualStartTime,h,Pn,l),Ha(a,i,l,d,h),oe&2048&&WP(i,Tr|Oa);break;case 1:(i.mode&it)!==Ge&&0<i.actualStartTime&&((i.flags&128)!==0?Cx(i,i.actualStartTime,h,[]):(i.flags&1)!==0&&Xh(i,i.actualStartTime,h,Pn,l)),Ha(a,i,l,d,h);break;case 3:var se=wo(),Z=Pn;Pn=i.alternate!==null&&i.alternate.memoizedState.isDehydrated&&(i.flags&256)===0,Ha(a,i,l,d,h),Pn=Z,oe&2048&&(l=null,i.alternate!==null&&(l=i.alternate.memoizedState.cache),d=i.memoizedState.cache,d!==l&&(Tl(d),l!=null&&Cf(l))),a.passiveEffectDuration+=ig(se);break;case 12:if(oe&2048){oe=wo(),Ha(a,i,l,d,h),a=i.stateNode,a.passiveEffectDuration+=_f(oe);try{de(i,GG,i,i.alternate,Ps,a.passiveEffectDuration)}catch(fe){Ct(i,i.return,fe)}}else Ha(a,i,l,d,h);break;case 31:oe=Pn,se=i.alternate!==null?i.alternate.memoizedState:null,Z=i.memoizedState,se!==null&&Z===null?(Z=i.deletions,Z!==null&&0<Z.length&&Z[0].tag===18?(Pn=!1,se=se.hydrationErrors,se!==null&&Cx(i,i.actualStartTime,h,se)):Pn=!0):Pn=!1,Ha(a,i,l,d,h),Pn=oe;break;case 13:oe=Pn,se=i.alternate!==null?i.alternate.memoizedState:null,Z=i.memoizedState,se===null||se.dehydrated===null||Z!==null&&Z.dehydrated!==null?Pn=!1:(Z=i.deletions,Z!==null&&0<Z.length&&Z[0].tag===18?(Pn=!1,se=se.hydrationErrors,se!==null&&Cx(i,i.actualStartTime,h,se)):Pn=!0),Ha(a,i,l,d,h),Pn=oe;break;case 23:break;case 22:Z=i.stateNode,se=i.alternate,i.memoizedState!==null?Z._visibility&Co?Ha(a,i,l,d,h):Uf(a,i,l,d,h):Z._visibility&Co?Ha(a,i,l,d,h):(Z._visibility|=Co,dc(a,i,l,d,(i.subtreeFlags&10256)!==0||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child),h),(i.mode&it)===Ge||Pn||(a=i.actualStartTime,0<=a&&.05<h-a&&Qh(i,a,h),0<=qe&&0<=Ke&&.05<Ke-qe&&Qh(i,qe,Ke))),oe&2048&&F1(se,i);break;case 24:Ha(a,i,l,d,h),oe&2048&&K1(i.alternate,i);break;default:Ha(a,i,l,d,h)}(i.mode&it)!==Ge&&((a=!Pn&&i.alternate===null&&i.return!==null&&i.return.alternate!==null)&&(l=i.actualStartTime,0<=l&&.05<h-l&&gi(i,l,h,"Mount")),0<=qe&&0<=Ke&&((cn||.05<on)&&vi(i,qe,Ke,on,nn),a&&.05<Ke-qe&&gi(i,qe,Ke,"Mount"))),Wr(v),xi(E),nn=O,cn=M,_s=I}function dc(a,i,l,d,h,v){for(h=h&&((i.subtreeFlags&10256)!==0||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child)),i=i.child;i!==null;){var E=i.sibling;hM(a,i,l,d,h,E!==null?E.actualStartTime:v),i=E}}function hM(a,i,l,d,h,v){var E=Xr(),O=bi(),M=wi(),I=Ni(),oe=_s;h&&(i.mode&it)!==Ge&&0<i.actualStartTime&&(i.flags&1)!==0&&Xh(i,i.actualStartTime,v,Pn,l);var se=i.flags;switch(i.tag){case 0:case 11:case 15:dc(a,i,l,d,h,v),WP(i,Tr);break;case 23:break;case 22:var Z=i.stateNode;i.memoizedState!==null?Z._visibility&Co?dc(a,i,l,d,h,v):Uf(a,i,l,d,v):(Z._visibility|=Co,dc(a,i,l,d,h,v)),h&&se&2048&&F1(i.alternate,i);break;case 24:dc(a,i,l,d,h,v),h&&se&2048&&K1(i.alternate,i);break;default:dc(a,i,l,d,h,v)}(i.mode&it)!==Ge&&0<=qe&&0<=Ke&&(cn||.05<on)&&vi(i,qe,Ke,on,nn),Wr(E),xi(O),nn=M,cn=I,_s=oe}function Uf(a,i,l,d,h){if(i.subtreeFlags&10256||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child))for(var v=i.child;v!==null;){i=v.sibling;var E=a,O=l,M=d,I=i!==null?i.actualStartTime:h,oe=_s;(v.mode&it)!==Ge&&0<v.actualStartTime&&(v.flags&1)!==0&&Xh(v,v.actualStartTime,I,Pn,O);var se=v.flags;switch(v.tag){case 22:Uf(E,v,O,M,I),se&2048&&F1(v.alternate,v);break;case 24:Uf(E,v,O,M,I),se&2048&&K1(v.alternate,v);break;default:Uf(E,v,O,M,I)}_s=oe,v=i}}function fc(a,i,l){if(a.subtreeFlags&jm)for(a=a.child;a!==null;)gM(a,i,l),a=a.sibling}function gM(a,i,l){switch(a.tag){case 26:fc(a,i,l),a.flags&jm&&a.memoizedState!==null&&$Y(l,Qa,a.memoizedState,a.memoizedProps);break;case 5:fc(a,i,l);break;case 3:case 4:var d=Qa;Qa=zg(a.stateNode.containerInfo),fc(a,i,l),Qa=d;break;case 22:a.memoizedState===null&&(d=a.alternate,d!==null&&d.memoizedState!==null?(d=jm,jm=16777216,fc(a,i,l),jm=d):fc(a,i,l));break;default:fc(a,i,l)}}function vM(a){var i=a.alternate;if(i!==null&&(a=i.child,a!==null)){i.child=null;do i=a.sibling,a.sibling=null,a=i;while(a!==null)}}function qf(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var d=i[l],h=Xr();Kn=d,xM(d,a),(d.mode&it)!==Ge&&0<=qe&&0<=Ke&&.05<Ke-qe&&gi(d,qe,Ke,"Unmount"),Wr(h)}vM(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)yM(a),a=a.sibling}function yM(a){var i=Xr(),l=bi(),d=wi(),h=Ni();switch(a.tag){case 0:case 11:case 15:qf(a),a.flags&2048&&z1(a,a.return,Tr|Oa);break;case 3:var v=wo();qf(a),a.stateNode.passiveEffectDuration+=ig(v);break;case 12:v=wo(),qf(a),a.stateNode.passiveEffectDuration+=_f(v);break;case 22:v=a.stateNode,a.memoizedState!==null&&v._visibility&Co&&(a.return===null||a.return.tag!==13)?(v._visibility&=~Co,Mg(a),(a.mode&it)!==Ge&&0<=qe&&0<=Ke&&.05<Ke-qe&&gi(a,qe,Ke,"Disconnect")):qf(a);break;default:qf(a)}(a.mode&it)!==Ge&&0<=qe&&0<=Ke&&(cn||.05<on)&&vi(a,qe,Ke,on,nn),Wr(i),xi(l),cn=h,nn=d}function Mg(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var d=i[l],h=Xr();Kn=d,xM(d,a),(d.mode&it)!==Ge&&0<=qe&&0<=Ke&&.05<Ke-qe&&gi(d,qe,Ke,"Unmount"),Wr(h)}vM(a)}for(a=a.child;a!==null;)bM(a),a=a.sibling}function bM(a){var i=Xr(),l=bi(),d=wi(),h=Ni();switch(a.tag){case 0:case 11:case 15:z1(a,a.return,Tr),Mg(a);break;case 22:var v=a.stateNode;v._visibility&Co&&(v._visibility&=~Co,Mg(a));break;default:Mg(a)}(a.mode&it)!==Ge&&0<=qe&&0<=Ke&&(cn||.05<on)&&vi(a,qe,Ke,on,nn),Wr(i),xi(l),cn=h,nn=d}function xM(a,i){for(;Kn!==null;){var l=Kn,d=l,h=i,v=Xr(),E=bi(),O=wi(),M=Ni();switch(d.tag){case 0:case 11:case 15:z1(d,h,Tr);break;case 23:case 22:d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(h=d.memoizedState.cachePool.pool,h!=null&&Tl(h));break;case 24:Cf(d.memoizedState.cache)}if((d.mode&it)!==Ge&&0<=qe&&0<=Ke&&(cn||.05<on)&&vi(d,qe,Ke,on,nn),Wr(v),xi(E),cn=M,nn=O,d=l.child,d!==null)d.return=l,Kn=d;else e:for(l=a;Kn!==null;){if(d=Kn,v=d.sibling,E=d.return,oM(d),d===l){Kn=null;break e}if(v!==null){v.return=E,Kn=v;break e}Kn=E}}}function WG(){xX.forEach(function(a){return a()})}function wM(){var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return a||he.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),a}function Jr(a){if((xt&Mn)!==Gn&&st!==0)return st&-st;var i=he.T;return i!==null?(i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(a),ew()):pi()}function NM(){if(Ur===0)if((st&536870912)===0||mt){var a=Jg;Jg<<=1,(Jg&3932160)===0&&(Jg=262144),Ur=a}else Ur=536870912;return a=aa.current,a!==null&&(a.flags|=32),Ur}function un(a,i,l){if(Wc&&console.error("useInsertionEffect must not schedule updates."),kN&&($v=!0),(a===zt&&(jt===Yl||jt===Ql)||a.cancelPendingCommit!==null)&&(pc(a,0),ws(a,st,Ur,!1)),Ba(a,l),(xt&Mn)!==Gn&&a===zt){if(Pi)switch(i.tag){case 0:case 11:case 15:a=ut&&B(ut)||"Unknown",Q3.has(a)||(Q3.add(a),i=B(i)||"Unknown",console.error("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://react.dev/link/setstate-in-render",i,a,a));break;case 1:Y3||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Y3=!0)}}else Li&&fo(a,i,l),sY(i),a===zt&&((xt&Mn)===Gn&&(zs|=l),sn===$s&&ws(a,st,Ur,!1)),_i(a)}function EM(a,i,l){if((xt&(Mn|oa))!==Gn)throw Error("Should not already be working.");if(st!==0&&ut!==null){var d=ut,h=Hn();switch(zk){case Lm:case Yl:var v=ym;Gt&&((d=d._debugTask)?d.run(console.timeStamp.bind(console,"Suspended",v,h,ya,void 0,"primary-light")):console.timeStamp("Suspended",v,h,ya,void 0,"primary-light"));break;case Ql:v=ym,Gt&&((d=d._debugTask)?d.run(console.timeStamp.bind(console,"Action",v,h,ya,void 0,"primary-light")):console.timeStamp("Action",v,h,ya,void 0,"primary-light"));break;default:Gt&&(d=h-ym,3>d||console.timeStamp("Blocked",ym,h,ya,void 0,5>d?"primary-light":10>d?"primary":100>d?"primary-dark":"error"))}}v=(l=!l&&(i&127)===0&&(i&a.expiredLanes)===0||Mr(a,i))?JG(a,i):Y1(a,i,!0);var E=l;do{if(v===Vo){Qc&&!l&&ws(a,i,0,!1),i=jt,ym=En(),zk=i;break}else{if(d=Hn(),h=a.current.alternate,E&&!ZG(h)){Ua(i),h=Fn,v=d,!Gt||v<=h||(mn?mn.run(console.timeStamp.bind(console,"Teared Render",h,v,bt,gt,"error")):console.timeStamp("Teared Render",h,v,bt,gt,"error")),Pl(i,d),v=Y1(a,i,!1),E=!1;continue}if(v===Gl){if(E=i,a.errorRecoveryDisabledLanes&E)var O=0;else O=a.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){Ua(i),_x(Fn,d,i,mn),Pl(i,d),i=O;e:{d=a,v=E,E=Im;var M=d.current.memoizedState.isDehydrated;if(M&&(pc(d,O).flags|=256),O=Y1(d,O,!1),O!==Gl){if(CN&&!M){d.errorRecoveryDisabledLanes|=v,zs|=v,v=$s;break e}d=Cr,Cr=E,d!==null&&(Cr===null?Cr=d:Cr.push.apply(Cr,d))}v=O}if(E=!1,v!==Gl)continue;d=Hn()}}if(v===Mm){Ua(i),_x(Fn,d,i,mn),Pl(i,d),pc(a,0),ws(a,i,0,!0);break}e:{switch(l=a,v){case Vo:case Mm:throw Error("Root did not complete. This is a bug in React.");case $s:if((i&4194048)!==i)break;case Dv:Ua(i),Ej(Fn,d,i,mn),Pl(i,d),h=i,(h&127)!==0?hv=d:(h&4194048)!==0&&(gv=d),ws(l,i,Ur,!Vs);break e;case Gl:Cr=null;break;case _v:case L3:break;default:throw Error("Unknown root exit status.")}if(he.actQueue!==null)Q1(l,h,i,Cr,$m,Pv,Ur,zs,Xl,v,null,null,Fn,d);else{if((i&62914560)===i&&(E=Mv+$3-Hn(),10<E)){if(ws(l,i,Ur,!Vs),Un(l,0,!0)!==0)break e;Xa=i,l.timeoutHandle=rI(SM.bind(null,l,h,Cr,$m,Pv,i,Ur,zs,Xl,Vs,v,"Throttled",Fn,d),E);break e}SM(l,h,Cr,$m,Pv,i,Ur,zs,Xl,Vs,v,null,Fn,d)}}}break}while(!0);_i(a)}function SM(a,i,l,d,h,v,E,O,M,I,oe,se,Z,fe){a.timeoutHandle=tu;var Ce=i.subtreeFlags,De=null;if((Ce&8192||(Ce&16785408)===16785408)&&(De={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vo},gM(i,v,De),Ce=(v&62914560)===v?Mv-Hn():(v&4194048)===v?I3-Hn():0,Ce=VY(De,Ce),Ce!==null)){Xa=v,a.cancelPendingCommit=Ce(Q1.bind(null,a,i,v,l,d,h,E,O,M,oe,De,De.waitingForViewTransition?"Waiting for the previous Animation":0<De.count?0<De.imgCount?"Suspended on CSS and Images":"Suspended on CSS":De.imgCount===1?"Suspended on an Image":0<De.imgCount?"Suspended on Images":null,Z,fe)),ws(a,v,E,!I);return}Q1(a,i,v,l,d,h,E,O,M,oe,De,se,Z,fe)}function ZG(a){for(var i=a;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var h=l[d],v=h.getSnapshot;h=h.value;try{if(!Sr(v(),h))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function ws(a,i,l,d){i&=~_N,i&=~zs,a.suspendedLanes|=i,a.pingedLanes&=~i,d&&(a.warmLanes|=i),d=a.expirationTimes;for(var h=i;0<h;){var v=31-wr(h),E=1<<v;d[v]=-1,h&=~E}l!==0&&pa(a,l,i)}function mc(){return(xt&(Mn|oa))===Gn?(Kf(0),!1):!0}function G1(){if(ut!==null){if(jt===zr)var a=ut.return;else a=ut,ng(),a1(a),Bc=null,Tm=0,a=ut;for(;a!==null;)QP(a.alternate,a),a=a.return;ut=null}}function Pl(a,i){(a&127)!==0&&($l=i),(a&4194048)!==0&&(Po=i),(a&62914560)!==0&&(Vk=i),(a&2080374784)!==0&&(Bk=i)}function pc(a,i){Gt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",gt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",gt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",gt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",gt,"primary-light"));var l=Fn;if(Fn=En(),st!==0&&0<l){if(Ua(st),sn===_v||sn===$s)Ej(l,Fn,i,mn);else{var d=Fn,h=mn;if(Gt&&!(d<=l)){var v=(i&738197653)===i?"tertiary-dark":"primary-dark",E=(i&536870912)===i?"Prewarm":(i&201326741)===i?"Interrupted Hydration":"Interrupted Render";h?h.run(console.timeStamp.bind(console,E,l,d,bt,gt,v)):console.timeStamp(E,l,d,bt,gt,v)}}Pl(st,Fn)}if(l=mn,mn=null,(i&127)!==0){mn=hm,h=0<=Vi&&Vi<$l?$l:Vi,d=0<=Vl&&Vl<$l?$l:Vl,v=0<=d?d:0<=h?h:Fn,0<=hv?(Ua(2),Sj(hv,v,i,l)):vv&127,l=h;var O=d,M=gm,I=0<Ic,oe=Ms===pm,se=Ms===pv;if(h=Fn,d=hm,v=sN,E=lN,Gt){if(bt="Blocking",0<l?l>h&&(l=h):l=h,0<O?O>l&&(O=l):O=l,M!==null&&l>O){var Z=I?"secondary-light":"warning";d?d.run(console.timeStamp.bind(console,I?"Consecutive":"Event: "+M,O,l,bt,gt,Z)):console.timeStamp(I?"Consecutive":"Event: "+M,O,l,bt,gt,Z)}h>l&&(O=oe?"error":(i&738197653)===i?"tertiary-light":"primary-light",oe=se?"Promise Resolved":oe?"Cascading Update":5<h-l?"Update Blocked":"Update",se=[],E!=null&&se.push(["Component name",E]),v!=null&&se.push(["Method name",v]),l={start:l,end:h,detail:{devtools:{properties:se,track:bt,trackGroup:gt,color:O}}},d?d.run(performance.measure.bind(performance,oe,l)):performance.measure(oe,l))}Vi=-1.1,Ms=0,lN=sN=null,hv=-1.1,Ic=Vl,Vl=-1.1,$l=En()}if((i&4194048)!==0&&(mn=vm,h=0<=Mo&&Mo<Po?Po:Mo,l=0<=Sa&&Sa<Po?Po:Sa,d=0<=Ls&&Ls<Po?Po:Ls,v=0<=d?d:0<=l?l:Fn,0<=gv?(Ua(256),Sj(gv,v,i,mn)):vv&4194048,se=d,O=Bl,M=0<ks,I=uN===pv,v=Fn,d=vm,E=Ik,oe=$k,Gt&&(bt="Transition",0<l?l>v&&(l=v):l=v,0<h?h>l&&(h=l):h=l,0<se?se>h&&(se=h):se=h,h>se&&O!==null&&(Z=M?"secondary-light":"warning",d?d.run(console.timeStamp.bind(console,M?"Consecutive":"Event: "+O,se,h,bt,gt,Z)):console.timeStamp(M?"Consecutive":"Event: "+O,se,h,bt,gt,Z)),l>h&&(d?d.run(console.timeStamp.bind(console,"Action",h,l,bt,gt,"primary-dark")):console.timeStamp("Action",h,l,bt,gt,"primary-dark")),v>l&&(h=I?"Promise Resolved":5<v-l?"Update Blocked":"Update",se=[],oe!=null&&se.push(["Component name",oe]),E!=null&&se.push(["Method name",E]),l={start:l,end:v,detail:{devtools:{properties:se,track:bt,trackGroup:gt,color:"primary-light"}}},d?d.run(performance.measure.bind(performance,h,l)):performance.measure(h,l))),Sa=Mo=-1.1,uN=0,gv=-1.1,ks=Ls,Ls=-1.1,Po=En()),(i&62914560)!==0&&(vv&62914560)!==0&&(Ua(4194304),Dx(Vk,Fn)),(i&2080374784)!==0&&(vv&2080374784)!==0&&(Ua(268435456),Dx(Bk,Fn)),l=a.timeoutHandle,l!==tu&&(a.timeoutHandle=tu,PX(l)),l=a.cancelPendingCommit,l!==null&&(a.cancelPendingCommit=null,l()),Xa=0,G1(),zt=a,ut=l=yo(a.current,null),st=i,jt=zr,sa=null,Vs=!1,Qc=Mr(a,i),CN=!1,sn=Vo,Xl=Ur=_N=zs=Bs=0,Cr=Im=null,Pv=!1,(i&8)!==0&&(i|=i&32),d=a.entangledLanes,d!==0)for(a=a.entanglements,d&=i;0<d;)h=31-wr(d),v=1<<h,i|=a[h],d&=~v;return zi=i,Wh(),a=Rk(),1e3<a-Dk&&(he.recentlyCreatedOwnerStacks=0,Dk=a),Ga.discardPendingWarnings(),l}function AM(a,i){Xe=null,he.H=Rm,he.getCurrentStack=null,Pi=!1,na=null,i===Vc||i===wv?(i=Kj(),jt=Lm):i===mN?(i=Kj(),jt=k3):jt=i===EN?TN:i!==null&&typeof i=="object"&&typeof i.then=="function"?km:Rv,sa=i;var l=ut;l===null?(sn=Mm,Tg(a,Qr(i,a.current))):l.mode&it&&Fx(l)}function OM(){var a=aa.current;return a===null?!0:(st&4194048)===st?Aa===null:(st&62914560)===st||(st&536870912)!==0?a===Aa:!1}function TM(){var a=he.H;return he.H=Rm,a===null?Rm:a}function CM(){var a=he.A;return he.A=bX,a}function Lg(a){mn===null&&(mn=a._debugTask==null?null:a._debugTask)}function kg(){sn=$s,Vs||(st&4194048)!==st&&aa.current!==null||(Qc=!0),(Bs&134217727)===0&&(zs&134217727)===0||zt===null||ws(zt,st,Ur,!1)}function Y1(a,i,l){var d=xt;xt|=Mn;var h=TM(),v=CM();if(zt!==a||st!==i){if(Li){var E=a.memoizedUpdaters;0<E.size&&(Ff(a,st),E.clear()),mo(a,i)}$m=null,pc(a,i)}i=!1,E=sn;e:do try{if(jt!==zr&&ut!==null){var O=ut,M=sa;switch(jt){case TN:G1(),E=Dv;break e;case Lm:case Yl:case Ql:case km:aa.current===null&&(i=!0);var I=jt;if(jt=zr,sa=null,hc(a,O,M,I),l&&Qc){E=Vo;break e}break;default:I=jt,jt=zr,sa=null,hc(a,O,M,I)}}_M(),E=sn;break}catch(oe){AM(a,oe)}while(!0);return i&&a.shellSuspendCounter++,ng(),xt=d,he.H=h,he.A=v,ut===null&&(zt=null,st=0,Wh()),E}function _M(){for(;ut!==null;)DM(ut)}function JG(a,i){var l=xt;xt|=Mn;var d=TM(),h=CM();if(zt!==a||st!==i){if(Li){var v=a.memoizedUpdaters;0<v.size&&(Ff(a,st),v.clear()),mo(a,i)}$m=null,Lv=Hn()+V3,pc(a,i)}else Qc=Mr(a,i);e:do try{if(jt!==zr&&ut!==null)t:switch(i=ut,v=sa,jt){case Rv:jt=zr,sa=null,hc(a,i,v,Rv);break;case Yl:case Ql:if(Hj(v)){jt=zr,sa=null,RM(i);break}i=function(){jt!==Yl&&jt!==Ql||zt!==a||(jt=jv),_i(a)},v.then(i,i);break e;case Lm:jt=jv;break e;case k3:jt=ON;break e;case jv:Hj(v)?(jt=zr,sa=null,RM(i)):(jt=zr,sa=null,hc(a,i,v,jv));break;case ON:var E=null;switch(ut.tag){case 26:E=ut.memoizedState;case 5:case 27:var O=ut;if(E?EL(E):O.stateNode.complete){jt=zr,sa=null;var M=O.sibling;if(M!==null)ut=M;else{var I=O.return;I!==null?(ut=I,Ig(I)):ut=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}jt=zr,sa=null,hc(a,i,v,ON);break;case km:jt=zr,sa=null,hc(a,i,v,km);break;case TN:G1(),sn=Dv;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}he.actQueue!==null?_M():eY();break}catch(oe){AM(a,oe)}while(!0);return ng(),he.H=d,he.A=h,xt=l,ut!==null?Vo:(zt=null,st=0,Wh(),sn)}function eY(){for(;ut!==null&&!JY();)DM(ut)}function DM(a){var i=a.alternate;(a.mode&it)!==Ge?(Hx(a),i=de(a,$1,i,a,zi),Fx(a)):i=de(a,$1,i,a,zi),a.memoizedProps=a.pendingProps,i===null?Ig(a):ut=i}function RM(a){var i=de(a,tY,a);a.memoizedProps=a.pendingProps,i===null?Ig(a):ut=i}function tY(a){var i=a.alternate,l=(a.mode&it)!==Ge;switch(l&&Hx(a),a.tag){case 15:case 0:i=UP(i,a,a.pendingProps,a.type,void 0,st);break;case 11:i=UP(i,a,a.pendingProps,a.type.render,a.ref,st);break;case 5:a1(a);default:QP(i,a),a=ut=Dj(a,zi),i=$1(i,a,zi)}return l&&Fx(a),i}function hc(a,i,l,d){ng(),a1(i),Bc=null,Tm=0;var h=i.return;try{if(VG(a,h,i,l,st)){sn=Mm,Tg(a,Qr(l,a.current)),ut=null;return}}catch(v){if(h!==null)throw ut=h,v;sn=Mm,Tg(a,Qr(l,a.current)),ut=null;return}i.flags&32768?(mt||d===Rv?a=!0:Qc||(st&536870912)!==0?a=!1:(Vs=a=!0,(d===Yl||d===Ql||d===Lm||d===km)&&(d=aa.current,d!==null&&d.tag===13&&(d.flags|=16384))),jM(i,a)):Ig(i)}function Ig(a){var i=a;do{if((i.flags&32768)!==0){jM(i,Vs);return}var l=i.alternate;if(a=i.return,Hx(i),l=de(i,UG,l,i,zi),(i.mode&it)!==Ge&&Vj(i),l!==null){ut=l;return}if(i=i.sibling,i!==null){ut=i;return}ut=i=a}while(i!==null);sn===Vo&&(sn=L3)}function jM(a,i){do{var l=qG(a.alternate,a);if(l!==null){l.flags&=32767,ut=l;return}if((a.mode&it)!==Ge){Vj(a),l=a.actualDuration;for(var d=a.child;d!==null;)l+=d.actualDuration,d=d.sibling;a.actualDuration=l}if(l=a.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(a=a.sibling,a!==null)){ut=a;return}ut=a=l}while(a!==null);sn=Dv,ut=null}function Q1(a,i,l,d,h,v,E,O,M,I,oe,se,Z,fe){a.cancelPendingCommit=null;do Hf();while(Cn!==qs);if(Ga.flushLegacyContextWarning(),Ga.flushPendingUnsafeLifecycleWarnings(),(xt&(Mn|oa))!==Gn)throw Error("Should not already be working.");if(Ua(l),I===Gl?_x(Z,fe,l,mn):d!==null?OG(Z,fe,l,d,i!==null&&i.alternate!==null&&i.alternate.memoizedState.isDehydrated&&(i.flags&256)!==0,mn):AG(Z,fe,l,mn),i!==null){if(l===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),i===a.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(v=i.lanes|i.childLanes,v|=nN,cs(a,l,v,E,O,M),a===zt&&(ut=zt=null,st=0),Xc=i,Hs=a,Xa=l,jN=v,MN=h,F3=d,PN=fe,K3=se,Wa=kv,G3=null,i.actualDuration!==0||(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,oY(wc,function(){return Hm=window.event,Wa===kv&&(Wa=RN),IM(),null})):(a.callbackNode=null,a.callbackPriority=0),jo=null,Ps=En(),se!==null&&TG(fe,Ps,se,mn),d=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||d){d=he.T,he.T=null,h=_t.p,_t.p=va,E=xt,xt|=oa;try{QG(a,i,l)}finally{xt=E,_t.p=h,he.T=d}}Cn=z3,PM(),MM(),LM()}}function PM(){if(Cn===z3){Cn=qs;var a=Hs,i=Xc,l=Xa,d=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||d){d=he.T,he.T=null;var h=_t.p;_t.p=va;var v=xt;xt|=oa;try{Gc=l,Yc=a,og(),cM(i,a),Yc=Gc=null,l=FN;var E=xj(a.containerInfo),O=l.focusedElem,M=l.selectionRange;if(E!==O&&O&&O.ownerDocument&&bj(O.ownerDocument.documentElement,O)){if(M!==null&&Ox(O)){var I=M.start,oe=M.end;if(oe===void 0&&(oe=I),"selectionStart"in O)O.selectionStart=I,O.selectionEnd=Math.min(oe,O.value.length);else{var se=O.ownerDocument||document,Z=se&&se.defaultView||window;if(Z.getSelection){var fe=Z.getSelection(),Ce=O.textContent.length,De=Math.min(M.start,Ce),Ht=M.end===void 0?De:Math.min(M.end,Ce);!fe.extend&&De>Ht&&(E=Ht,Ht=De,De=E);var vt=yj(O,De),X=yj(O,Ht);if(vt&&X&&(fe.rangeCount!==1||fe.anchorNode!==vt.node||fe.anchorOffset!==vt.offset||fe.focusNode!==X.node||fe.focusOffset!==X.offset)){var ee=se.createRange();ee.setStart(vt.node,vt.offset),fe.removeAllRanges(),De>Ht?(fe.addRange(ee),fe.extend(X.node,X.offset)):(ee.setEnd(X.node,X.offset),fe.addRange(ee))}}}}for(se=[],fe=O;fe=fe.parentNode;)fe.nodeType===1&&se.push({element:fe,left:fe.scrollLeft,top:fe.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<se.length;O++){var re=se[O];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}Zv=!!HN,FN=HN=null}finally{xt=v,_t.p=h,he.T=d}}a.current=i,Cn=U3}}function MM(){if(Cn===U3){Cn=qs;var a=G3;if(a!==null){Ps=En();var i=Ro,l=Ps;!Gt||l<=i||console.timeStamp(a,i,l,bt,gt,"secondary-light")}a=Hs,i=Xc,l=Xa;var d=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||d){d=he.T,he.T=null;var h=_t.p;_t.p=va;var v=xt;xt|=oa;try{Gc=l,Yc=a,og(),iM(a,i.alternate,i),Yc=Gc=null}finally{xt=v,_t.p=h,he.T=d}}a=PN,i=K3,Ro=En(),a=i===null?a:Ps,i=Ro,l=Wa===DN,d=mn,jo!==null?Aj(a,i,jo,!1,d):!Gt||i<=a||(d?d.run(console.timeStamp.bind(console,l?"Commit Interrupted View Transition":"Commit",a,i,bt,gt,l?"error":"secondary-dark")):console.timeStamp(l?"Commit Interrupted View Transition":"Commit",a,i,bt,gt,l?"error":"secondary-dark")),Cn=q3}}function LM(){if(Cn===H3||Cn===q3){if(Cn===H3){var a=Ro;Ro=En();var i=Ro,l=Wa===DN;!Gt||i<=a||console.timeStamp(l?"Interrupted View Transition":"Starting Animation",a,i,bt,gt,l?" error":"secondary-light"),Wa!==DN&&(Wa=B3)}Cn=qs,eQ(),a=Hs;var d=Xc;i=Xa,l=F3;var h=d.actualDuration!==0||(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0;h?Cn=Iv:(Cn=qs,Xc=Hs=null,kM(a,a.pendingLanes),Wl=0,Bm=null);var v=a.pendingLanes;if(v===0&&(Us=null),h||zM(a),v=po(i),d=d.stateNode,sr&&typeof sr.onCommitFiberRoot=="function")try{var E=(d.current.flags&128)===128;switch(v){case va:var O=Mw;break;case ki:O=Lw;break;case Oo:O=wc;break;case tv:O=kw;break;default:O=wc}sr.onCommitFiberRoot(Nc,d,O,E)}catch(se){Mi||(Mi=!0,console.error("React instrumentation encountered an error: %o",se))}if(Li&&a.memoizedUpdaters.clear(),WG(),l!==null){E=he.T,O=_t.p,_t.p=va,he.T=null;try{var M=a.onRecoverableError;for(d=0;d<l.length;d++){var I=l[d],oe=nY(I.stack);de(I.source,M,I.value,oe)}}finally{he.T=E,_t.p=O}}(Xa&3)!==0&&Hf(),_i(a),v=a.pendingLanes,(i&261930)!==0&&(v&42)!==0?(bv=!0,a===LN?Vm++:(Vm=0,LN=a)):Vm=0,h||Pl(i,Ro),Kf(0)}}function nY(a){return a={componentStack:a},Object.defineProperty(a,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),a}function kM(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,Cf(i)))}function Hf(){return PM(),MM(),LM(),IM()}function IM(){if(Cn!==Iv)return!1;var a=Hs,i=jN;jN=0;var l=po(Xa),d=Oo>l?Oo:l;l=he.T;var h=_t.p;try{_t.p=d,he.T=null;var v=MN;MN=null,d=Hs;var E=Xa;if(Cn=qs,Xc=Hs=null,Xa=0,(xt&(Mn|oa))!==Gn)throw Error("Cannot flush passive effects while already rendering.");Ua(E),kN=!0,$v=!1;var O=0;if(jo=null,O=Hn(),Wa===B3)Dx(Ro,O,fX);else{var M=Ro,I=O,oe=Wa===RN;!Gt||I<=M||(mn?mn.run(console.timeStamp.bind(console,oe?"Waiting for Paint":"Waiting",M,I,bt,gt,"secondary-light")):console.timeStamp(oe?"Waiting for Paint":"Waiting",M,I,bt,gt,"secondary-light"))}M=xt,xt|=oa;var se=d.current;og(),yM(se);var Z=d.current;se=PN,og(),pM(d,Z,E,v,se),zM(d),xt=M;var fe=Hn();if(Z=O,se=mn,jo!==null?Aj(Z,fe,jo,!0,se):!Gt||fe<=Z||(se?se.run(console.timeStamp.bind(console,"Remaining Effects",Z,fe,bt,gt,"secondary-dark")):console.timeStamp("Remaining Effects",Z,fe,bt,gt,"secondary-dark")),Pl(E,fe),Kf(0,!1),$v?d===Bm?Wl++:(Wl=0,Bm=d):Wl=0,$v=kN=!1,sr&&typeof sr.onPostCommitFiberRoot=="function")try{sr.onPostCommitFiberRoot(Nc,d)}catch(De){Mi||(Mi=!0,console.error("React instrumentation encountered an error: %o",De))}var Ce=d.current.stateNode;return Ce.effectDuration=0,Ce.passiveEffectDuration=0,!0}finally{_t.p=h,he.T=l,kM(a,i)}}function $M(a,i,l){i=Qr(l,i),Bj(i),i=T1(a.stateNode,i,2),a=vs(a,i,2),a!==null&&(Ba(a,2),_i(a))}function Ct(a,i,l){if(Wc=!1,a.tag===3)$M(a,a,l);else{for(;i!==null;){if(i.tag===3){$M(i,a,l);return}if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Us===null||!Us.has(d))){a=Qr(l,a),Bj(a),l=C1(2),d=vs(i,l,2),d!==null&&(_1(l,d,i,a),Ba(d,2),_i(d));return}}i=i.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
||
|
||
Error message:
|
||
|
||
%s`,l)}}function X1(a,i,l){var d=a.pingCache;if(d===null){d=a.pingCache=new wX;var h=new Set;d.set(i,h)}else h=d.get(i),h===void 0&&(h=new Set,d.set(i,h));h.has(l)||(CN=!0,h.add(l),d=rY.bind(null,a,i,l),Li&&Ff(a,l),i.then(d,d))}function rY(a,i,l){var d=a.pingCache;d!==null&&d.delete(i),a.pingedLanes|=a.suspendedLanes&l,a.warmLanes&=~l,(l&127)!==0?0>Vi&&($l=Vi=En(),hm=mv("Promise Resolved"),Ms=pv):(l&4194048)!==0&&0>Sa&&(Po=Sa=En(),vm=mv("Promise Resolved"),uN=pv),wM()&&he.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
||
|
||
When testing, code that resolves suspended data should be wrapped into act(...):
|
||
|
||
act(() => {
|
||
/* finish loading suspended data */
|
||
});
|
||
/* assert on the output */
|
||
|
||
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),zt===a&&(st&l)===l&&(sn===$s||sn===_v&&(st&62914560)===st&&Hn()-Mv<$3?(xt&Mn)===Gn&&pc(a,0):_N|=l,Xl===st&&(Xl=0)),_i(a)}function VM(a,i){i===0&&(i=Gr()),a=or(a,i),a!==null&&(Ba(a,i),_i(a))}function aY(a){var i=a.memoizedState,l=0;i!==null&&(l=i.retryLane),VM(a,l)}function iY(a,i){var l=0;switch(a.tag){case 31:case 13:var d=a.stateNode,h=a.memoizedState;h!==null&&(l=h.retryLane);break;case 19:d=a.stateNode;break;case 22:d=a.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}d!==null&&d.delete(i),VM(a,l)}function W1(a,i,l){if((i.subtreeFlags&67117056)!==0)for(i=i.child;i!==null;){var d=a,h=i,v=h.type===Qg;v=l||v,h.tag!==22?h.flags&67108864?v&&de(h,BM,d,h):W1(d,h,v):h.memoizedState===null&&(v&&h.flags&8192?de(h,BM,d,h):h.subtreeFlags&67108864&&de(h,W1,d,h,v)),i=i.sibling}}function BM(a,i){je(!0);try{fM(i),bM(i),mM(a,i.alternate,i,!1),hM(a,i,0,null,!1,0)}finally{je(!1)}}function zM(a){var i=!0;a.current.mode&(lr|Ka)||(i=!1),W1(a,a.current,i)}function UM(a){if((xt&Mn)===Gn){var i=a.tag;if(i===3||i===1||i===0||i===11||i===14||i===15){if(i=B(a)||"ReactComponent",Vv!==null){if(Vv.has(i))return;Vv.add(i)}else Vv=new Set([i]);de(a,function(){console.error("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 tries to update the component. Move this work to useEffect instead.")})}}}function Ff(a,i){Li&&a.memoizedUpdaters.forEach(function(l){fo(a,l,i)})}function oY(a,i){var l=he.actQueue;return l!==null?(l.push(i),SX):Pw(a,i)}function sY(a){wM()&&he.actQueue===null&&de(a,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
||
|
||
When testing, code that causes React state updates should be wrapped into act(...):
|
||
|
||
act(() => {
|
||
/* fire events that update state */
|
||
});
|
||
/* assert on the output */
|
||
|
||
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,B(a))})}function _i(a){a!==Zc&&a.next===null&&(Zc===null?Bv=Zc=a:Zc=Zc.next=a),zv=!0,he.actQueue!==null?$N||($N=!0,KM()):IN||(IN=!0,KM())}function Kf(a,i){if(!VN&&zv){VN=!0;do for(var l=!1,d=Bv;d!==null;){if(a!==0){var h=d.pendingLanes;if(h===0)var v=0;else{var E=d.suspendedLanes,O=d.pingedLanes;v=(1<<31-wr(42|a)+1)-1,v&=h&~(E&~O),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,FM(d,v))}else v=st,v=Un(d,d===zt?v:0,d.cancelPendingCommit!==null||d.timeoutHandle!==tu),(v&3)===0||Mr(d,v)||(l=!0,FM(d,v));d=d.next}while(l);VN=!1}}function lY(){Hm=window.event,Z1()}function Z1(){zv=$N=IN=!1;var a=0;Fs!==0&&hY()&&(a=Fs);for(var i=Hn(),l=null,d=Bv;d!==null;){var h=d.next,v=qM(d,i);v===0?(d.next=null,l===null?Bv=h:l.next=h,h===null&&(Zc=l)):(l=d,(a!==0||(v&3)!==0)&&(zv=!0)),d=h}Cn!==qs&&Cn!==Iv||Kf(a),Fs!==0&&(Fs=0)}function qM(a,i){for(var l=a.suspendedLanes,d=a.pingedLanes,h=a.expirationTimes,v=a.pendingLanes&-62914561;0<v;){var E=31-wr(v),O=1<<E,M=h[E];M===-1?((O&l)===0||(O&d)!==0)&&(h[E]=di(O,i)):M<=i&&(a.expiredLanes|=O),v&=~O}if(i=zt,l=st,l=Un(a,a===i?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==tu),d=a.callbackNode,l===0||a===i&&(jt===Yl||jt===Ql)||a.cancelPendingCommit!==null)return d!==null&&J1(d),a.callbackNode=null,a.callbackPriority=0;if((l&3)===0||Mr(a,l)){if(i=l&-l,i!==a.callbackPriority||he.actQueue!==null&&d!==BN)J1(d);else return i;switch(po(l)){case va:case ki:l=Lw;break;case Oo:l=wc;break;case tv:l=kw;break;default:l=wc}return d=HM.bind(null,a),he.actQueue!==null?(he.actQueue.push(d),l=BN):l=Pw(l,d),a.callbackPriority=i,a.callbackNode=l,i}return d!==null&&J1(d),a.callbackPriority=2,a.callbackNode=null,2}function HM(a,i){if(bv=yv=!1,Hm=window.event,Cn!==qs&&Cn!==Iv)return a.callbackNode=null,a.callbackPriority=0,null;var l=a.callbackNode;if(Wa===kv&&(Wa=RN),Hf()&&a.callbackNode!==l)return null;var d=st;return d=Un(a,a===zt?d:0,a.cancelPendingCommit!==null||a.timeoutHandle!==tu),d===0?null:(EM(a,d,i),qM(a,Hn()),a.callbackNode!=null&&a.callbackNode===l?HM.bind(null,a):null)}function FM(a,i){if(Hf())return null;yv=bv,bv=!1,EM(a,i,!0)}function J1(a){a!==BN&&a!==null&&ZY(a)}function KM(){he.actQueue!==null&&he.actQueue.push(function(){return Z1(),null}),MX(function(){(xt&(Mn|oa))!==Gn?Pw(Mw,lY):Z1()})}function ew(){if(Fs===0){var a=zl;a===0&&(a=Zg,Zg<<=1,(Zg&261888)===0&&(Zg=256)),Fs=a}return Fs}function GM(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:($e(a,"action"),Sf(""+a))}function YM(a,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,a.id&&l.setAttribute("form",a.id),i.parentNode.insertBefore(l,i),a=new FormData(a),l.parentNode.removeChild(l),a}function uY(a,i,l,d,h){if(i==="submit"&&l&&l.stateNode===h){var v=GM((h[Nr]||null).action),E=d.submitter;E&&(i=(i=E[Nr]||null)?GM(i.formAction):E.getAttribute("formAction"),i!==null&&(v=i,E=null));var O=new ov("action","action",null,d,h);a.push({event:O,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Fs!==0){var M=E?YM(h,E):new FormData(h),I={pending:!0,data:M,method:h.method,action:v};Object.freeze(I),x1(l,I,null,M)}}else typeof v=="function"&&(O.preventDefault(),M=E?YM(h,E):new FormData(h),I={pending:!0,data:M,method:h.method,action:v},Object.freeze(I),x1(l,I,v,M))},currentTarget:h}]})}}function $g(a,i,l){a.currentTarget=l;try{i(a)}catch(d){Zw(d)}a.currentTarget=null}function QM(a,i){i=(i&4)!==0;for(var l=0;l<a.length;l++){var d=a[l];e:{var h=void 0,v=d.event;if(d=d.listeners,i)for(var E=d.length-1;0<=E;E--){var O=d[E],M=O.instance,I=O.currentTarget;if(O=O.listener,M!==h&&v.isPropagationStopped())break e;M!==null?de(M,$g,v,O,I):$g(v,O,I),h=M}else for(E=0;E<d.length;E++){if(O=d[E],M=O.instance,I=O.currentTarget,O=O.listener,M!==h&&v.isPropagationStopped())break e;M!==null?de(M,$g,v,O,I):$g(v,O,I),h=M}}}}function ht(a,i){zN.has(a)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',a);var l=i[Iw];l===void 0&&(l=i[Iw]=new Set);var d=a+"__bubble";l.has(d)||(XM(i,a,2,!1),l.add(d))}function tw(a,i,l){zN.has(a)&&!i&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',a);var d=0;i&&(d|=4),XM(l,a,d,i)}function nw(a){if(!a[Uv]){a[Uv]=!0,KL.forEach(function(l){l!=="selectionchange"&&(zN.has(l)||tw(l,!1,a),tw(l,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[Uv]||(i[Uv]=!0,tw("selectionchange",!1,i))}}function XM(a,i,l,d){switch(_L(i)){case va:var h=qY;break;case ki:h=HY;break;default:h=yw}l=h.bind(null,i,l,a),h=void 0,!Uw||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),d?h!==void 0?a.addEventListener(i,l,{capture:!0,passive:h}):a.addEventListener(i,l,!0):h!==void 0?a.addEventListener(i,l,{passive:h}):a.addEventListener(i,l,!1)}function rw(a,i,l,d,h){var v=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var E=d.tag;if(E===3||E===4){var O=d.stateNode.containerInfo;if(O===h)break;if(E===4)for(E=d.return;E!==null;){var M=E.tag;if((M===3||M===4)&&E.stateNode.containerInfo===h)return;E=E.return}for(;O!==null;){if(E=Ee(O),E===null)return;if(M=E.tag,M===5||M===6||M===26||M===27){d=v=E;continue e}O=O.parentNode}}d=d.return}sj(function(){var I=v,oe=Sx(l),se=[];e:{var Z=_k.get(a);if(Z!==void 0){var fe=ov,Ce=a;switch(a){case"keypress":if(Kh(l)===0)break e;case"keydown":case"keyup":fe=VQ;break;case"focusin":Ce="focus",fe=Kw;break;case"focusout":Ce="blur",fe=Kw;break;case"beforeblur":case"afterblur":fe=Kw;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=hk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=TQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=UQ;break;case Ak:case Ok:case Tk:fe=DQ;break;case Ck:fe=HQ;break;case"scroll":case"scrollend":fe=AQ;break;case"wheel":fe=KQ;break;case"copy":case"cut":case"paste":fe=jQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=vk;break;case"toggle":case"beforetoggle":fe=YQ}var De=(i&4)!==0,Ht=!De&&(a==="scroll"||a==="scrollend"),vt=De?Z!==null?Z+"Capture":null:Z;De=[];for(var X=I,ee;X!==null;){var re=X;if(ee=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||ee===null||vt===null||(re=Af(X,vt),re!=null&&De.push(Gf(X,re,ee))),Ht)break;X=X.return}0<De.length&&(Z=new fe(Z,Ce,null,l,oe),se.push({event:Z,listeners:De}))}}if((i&7)===0){e:{if(Z=a==="mouseover"||a==="pointerover",fe=a==="mouseout"||a==="pointerout",Z&&l!==am&&(Ce=l.relatedTarget||l.fromElement)&&(Ee(Ce)||Ce[Ts]))break e;if((fe||Z)&&(Z=oe.window===oe?oe:(Z=oe.ownerDocument)?Z.defaultView||Z.parentWindow:window,fe?(Ce=l.relatedTarget||l.toElement,fe=I,Ce=Ce?Ee(Ce):null,Ce!==null&&(Ht=T(Ce),De=Ce.tag,Ce!==Ht||De!==5&&De!==27&&De!==6)&&(Ce=null)):(fe=null,Ce=I),fe!==Ce)){if(De=hk,re="onMouseLeave",vt="onMouseEnter",X="mouse",(a==="pointerout"||a==="pointerover")&&(De=vk,re="onPointerLeave",vt="onPointerEnter",X="pointer"),Ht=fe==null?Z:Me(fe),ee=Ce==null?Z:Me(Ce),Z=new De(re,X+"leave",fe,l,oe),Z.target=Ht,Z.relatedTarget=ee,re=null,Ee(oe)===I&&(De=new De(vt,X+"enter",Ce,l,oe),De.target=ee,De.relatedTarget=Ht,re=De),Ht=re,fe&&Ce)t:{for(De=cY,vt=fe,X=Ce,ee=0,re=vt;re;re=De(re))ee++;re=0;for(var ve=X;ve;ve=De(ve))re++;for(;0<ee-re;)vt=De(vt),ee--;for(;0<re-ee;)X=De(X),re--;for(;ee--;){if(vt===X||X!==null&&vt===X.alternate){De=vt;break t}vt=De(vt),X=De(X)}De=null}else De=null;fe!==null&&WM(se,Z,fe,De,!1),Ce!==null&&Ht!==null&&WM(se,Ht,Ce,De,!0)}}e:{if(Z=I?Me(I):window,fe=Z.nodeName&&Z.nodeName.toLowerCase(),fe==="select"||fe==="input"&&Z.type==="file")var _e=pj;else if(fj(Z))if(Ek)_e=NG;else{_e=xG;var We=bG}else fe=Z.nodeName,!fe||fe.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?I&&Ef(I.elementType)&&(_e=pj):_e=wG;if(_e&&(_e=_e(a,I))){mj(se,_e,l,oe);break e}We&&We(a,Z,I),a==="focusout"&&I&&Z.type==="number"&&I.memoizedProps.value!=null&&yx(Z,"number",Z.value)}switch(We=I?Me(I):window,a){case"focusin":(fj(We)||We.contentEditable==="true")&&(_c=We,Yw=I,dm=null);break;case"focusout":dm=Yw=_c=null;break;case"mousedown":Qw=!0;break;case"contextmenu":case"mouseup":case"dragend":Qw=!1,wj(se,l,oe);break;case"selectionchange":if(ZQ)break;case"keydown":case"keyup":wj(se,l,oe)}var Ue;if(Gw)e:{switch(a){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else Cc?cj(a,l)&&(Ve="onCompositionEnd"):a==="keydown"&&l.keyCode===yk&&(Ve="onCompositionStart");Ve&&(bk&&l.locale!=="ko"&&(Cc||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&Cc&&(Ue=lj()):(Cs=oe,qw="value"in Cs?Cs.value:Cs.textContent,Cc=!0)),We=Vg(I,Ve),0<We.length&&(Ve=new gk(Ve,a,null,l,oe),se.push({event:Ve,listeners:We}),Ue?Ve.data=Ue:(Ue=dj(l),Ue!==null&&(Ve.data=Ue)))),(Ue=XQ?hG(a,l):gG(a,l))&&(Ve=Vg(I,"onBeforeInput"),0<Ve.length&&(We=new MQ("onBeforeInput","beforeinput",null,l,oe),se.push({event:We,listeners:Ve}),We.data=Ue)),uY(se,a,I,l,oe)}QM(se,i)})}function Gf(a,i,l){return{instance:a,listener:i,currentTarget:l}}function Vg(a,i){for(var l=i+"Capture",d=[];a!==null;){var h=a,v=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||v===null||(h=Af(a,l),h!=null&&d.unshift(Gf(a,h,v)),h=Af(a,i),h!=null&&d.push(Gf(a,h,v))),a.tag===3)return d;a=a.return}return[]}function cY(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function WM(a,i,l,d,h){for(var v=i._reactName,E=[];l!==null&&l!==d;){var O=l,M=O.alternate,I=O.stateNode;if(O=O.tag,M!==null&&M===d)break;O!==5&&O!==26&&O!==27||I===null||(M=I,h?(I=Af(l,v),I!=null&&E.unshift(Gf(l,I,M))):h||(I=Af(l,v),I!=null&&E.push(Gf(l,I,M)))),l=l.return}E.length!==0&&a.push({event:i,listeners:E})}function aw(a,i){dG(a,i),a!=="input"&&a!=="textarea"&&a!=="select"||i==null||i.value!==null||mk||(mk=!0,a==="select"&&i.multiple?console.error("`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.",a):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",a));var l={registrationNameDependencies:Ml,possibleRegistrationNames:$w};Ef(a)||typeof i.is=="string"||mG(a,i,l),i.contentEditable&&!i.suppressContentEditableWarning&&i.children!=null&&console.error("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.")}function qn(a,i,l,d){i!==l&&(l=Ns(l),Ns(i)!==l&&(d[a]=i))}function dY(a,i,l){i.forEach(function(d){l[eL(d)]=d==="style"?ow(a):a.getAttribute(d)})}function Di(a,i){i===!1?console.error("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.",a,a,a):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",a,typeof i)}function ZM(a,i){return a=a.namespaceURI===rv||a.namespaceURI===Sc?a.ownerDocument.createElementNS(a.namespaceURI,a.tagName):a.ownerDocument.createElement(a.tagName),a.innerHTML=i,a.innerHTML}function Ns(a){return we(a)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",ze(a)),lt(a)),(typeof a=="string"?a:""+a).replace(AX,`
|
||
`).replace(OX,"")}function JM(a,i){return i=Ns(i),Ns(a)===i}function Vt(a,i,l,d,h,v){switch(l){case"children":typeof d=="string"?(Fh(d,i,!1),i==="body"||i==="textarea"&&d===""||Nf(a,d)):(typeof d=="number"||typeof d=="bigint")&&(Fh(""+d,i,!1),i!=="body"&&Nf(a,""+d));break;case"className":ho(a,"class",d);break;case"tabIndex":ho(a,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":ho(a,l,d);break;case"style":aj(a,d,v);break;case"data":if(i!=="object"){ho(a,"data",d);break}case"src":case"href":if(d===""&&(i!=="a"||l!=="href")){console.error(l==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',l,l),a.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){a.removeAttribute(l);break}$e(d,l),d=Sf(""+d),a.setAttribute(l,d);break;case"action":case"formAction":if(d!=null&&(i==="form"?l==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof d=="function"&&(h.encType==null&&h.method==null||Fv||(Fv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),h.target==null||Hv||(Hv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):i==="input"||i==="button"?l==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):i!=="input"||h.type==="submit"||h.type==="image"||qv?i!=="button"||h.type==null||h.type==="submit"||qv?typeof d=="function"&&(h.name==null||Z3||(Z3=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),h.formEncType==null&&h.formMethod==null||Fv||(Fv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),h.formTarget==null||Hv||(Hv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(qv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(qv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(l==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof d=="function"){a.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(l==="formAction"?(i!=="input"&&Vt(a,i,"name",h.name,h,null),Vt(a,i,"formEncType",h.formEncType,h,null),Vt(a,i,"formMethod",h.formMethod,h,null),Vt(a,i,"formTarget",h.formTarget,h,null)):(Vt(a,i,"encType",h.encType,h,null),Vt(a,i,"method",h.method,h,null),Vt(a,i,"target",h.target,h,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){a.removeAttribute(l);break}$e(d,l),d=Sf(""+d),a.setAttribute(l,d);break;case"onClick":d!=null&&(typeof d!="function"&&Di(l,d),a.onclick=vo);break;case"onScroll":d!=null&&(typeof d!="function"&&Di(l,d),ht("scroll",a));break;case"onScrollEnd":d!=null&&(typeof d!="function"&&Di(l,d),ht("scrollend",a));break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=d.__html,l!=null){if(h.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=l}}break;case"multiple":a.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":a.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){a.removeAttribute("xlink:href");break}$e(d,l),l=Sf(""+d),a.setAttributeNS(Zl,"xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?($e(d,l),a.setAttribute(l,""+d)):a.removeAttribute(l);break;case"inert":d!==""||Kv[l]||(Kv[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?a.setAttribute(l,""):a.removeAttribute(l);break;case"capture":case"download":d===!0?a.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?($e(d,l),a.setAttribute(l,d)):a.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?($e(d,l),a.setAttribute(l,d)):a.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?a.removeAttribute(l):($e(d,l),a.setAttribute(l,d));break;case"popover":ht("beforetoggle",a),ht("toggle",a),Rn(a,"popover",d);break;case"xlinkActuate":gn(a,Zl,"xlink:actuate",d);break;case"xlinkArcrole":gn(a,Zl,"xlink:arcrole",d);break;case"xlinkRole":gn(a,Zl,"xlink:role",d);break;case"xlinkShow":gn(a,Zl,"xlink:show",d);break;case"xlinkTitle":gn(a,Zl,"xlink:title",d);break;case"xlinkType":gn(a,Zl,"xlink:type",d);break;case"xmlBase":gn(a,UN,"xml:base",d);break;case"xmlLang":gn(a,UN,"xml:lang",d);break;case"xmlSpace":gn(a,UN,"xml:space",d);break;case"is":v!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Rn(a,"is",d);break;case"innerText":case"textContent":break;case"popoverTarget":J3||d==null||typeof d!="object"||(J3=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",d));default:!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N"?(l=ij(l),Rn(a,l,d)):Ml.hasOwnProperty(l)&&d!=null&&typeof d!="function"&&Di(l,d)}}function iw(a,i,l,d,h,v){switch(l){case"style":aj(a,d,v);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=d.__html,l!=null){if(h.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=l}}break;case"children":typeof d=="string"?Nf(a,d):(typeof d=="number"||typeof d=="bigint")&&Nf(a,""+d);break;case"onScroll":d!=null&&(typeof d!="function"&&Di(l,d),ht("scroll",a));break;case"onScrollEnd":d!=null&&(typeof d!="function"&&Di(l,d),ht("scrollend",a));break;case"onClick":d!=null&&(typeof d!="function"&&Di(l,d),a.onclick=vo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ml.hasOwnProperty(l))d!=null&&typeof d!="function"&&Di(l,d);else e:{if(l[0]==="o"&&l[1]==="n"&&(h=l.endsWith("Capture"),i=l.slice(2,h?l.length-7:void 0),v=a[Nr]||null,v=v!=null?v[l]:null,typeof v=="function"&&a.removeEventListener(i,v,h),typeof d=="function")){typeof v!="function"&&v!==null&&(l in a?a[l]=null:a.hasAttribute(l)&&a.removeAttribute(l)),a.addEventListener(i,d,h);break e}l in a?a[l]=d:d===!0?a.setAttribute(l,""):Rn(a,l,d)}}}function er(a,i,l){switch(aw(i,l),i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",a),ht("load",a);var d=!1,h=!1,v;for(v in l)if(l.hasOwnProperty(v)){var E=l[v];if(E!=null)switch(v){case"src":d=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Vt(a,i,v,E,l,null)}}h&&Vt(a,i,"srcSet",l.srcSet,l,null),d&&Vt(a,i,"src",l.src,l,null);return;case"input":$t("input",l),ht("invalid",a);var O=v=E=h=null,M=null,I=null;for(d in l)if(l.hasOwnProperty(d)){var oe=l[d];if(oe!=null)switch(d){case"name":h=oe;break;case"type":E=oe;break;case"checked":M=oe;break;case"defaultChecked":I=oe;break;case"value":v=oe;break;case"defaultValue":O=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Vt(a,i,d,oe,l,null)}}UR(a,l),qR(a,v,O,M,I,E,h,!1);return;case"select":$t("select",l),ht("invalid",a),d=E=v=null;for(h in l)if(l.hasOwnProperty(h)&&(O=l[h],O!=null))switch(h){case"value":v=O;break;case"defaultValue":E=O;break;case"multiple":d=O;default:Vt(a,i,h,O,l,null)}KR(a,l),i=v,l=E,a.multiple=!!d,i!=null?tc(a,!!d,i,!1):l!=null&&tc(a,!!d,l,!0);return;case"textarea":$t("textarea",l),ht("invalid",a),v=h=d=null;for(E in l)if(l.hasOwnProperty(E)&&(O=l[E],O!=null))switch(E){case"value":d=O;break;case"defaultValue":h=O;break;case"children":v=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Vt(a,i,E,O,l,null)}GR(a,l),QR(a,d,h,v);return;case"option":HR(a,l);for(M in l)if(l.hasOwnProperty(M)&&(d=l[M],d!=null))switch(M){case"selected":a.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Vt(a,i,M,d,l,null)}return;case"dialog":ht("beforetoggle",a),ht("toggle",a),ht("cancel",a),ht("close",a);break;case"iframe":case"object":ht("load",a);break;case"video":case"audio":for(d=0;d<zm.length;d++)ht(zm[d],a);break;case"image":ht("error",a),ht("load",a);break;case"details":ht("toggle",a);break;case"embed":case"source":case"link":ht("error",a),ht("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in l)if(l.hasOwnProperty(I)&&(d=l[I],d!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Vt(a,i,I,d,l,null)}return;default:if(Ef(i)){for(oe in l)l.hasOwnProperty(oe)&&(d=l[oe],d!==void 0&&iw(a,i,oe,d,l,void 0));return}}for(O in l)l.hasOwnProperty(O)&&(d=l[O],d!=null&&Vt(a,i,O,d,l,null))}function fY(a,i,l,d){switch(aw(i,d),i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,v=null,E=null,O=null,M=null,I=null,oe=null;for(fe in l){var se=l[fe];if(l.hasOwnProperty(fe)&&se!=null)switch(fe){case"checked":break;case"value":break;case"defaultValue":M=se;default:d.hasOwnProperty(fe)||Vt(a,i,fe,null,d,se)}}for(var Z in d){var fe=d[Z];if(se=l[Z],d.hasOwnProperty(Z)&&(fe!=null||se!=null))switch(Z){case"type":v=fe;break;case"name":h=fe;break;case"checked":I=fe;break;case"defaultChecked":oe=fe;break;case"value":E=fe;break;case"defaultValue":O=fe;break;case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:fe!==se&&Vt(a,i,Z,fe,d,se)}}i=l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null,d=d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null,i||!d||W3||(console.error("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://react.dev/link/controlled-components"),W3=!0),!i||d||X3||(console.error("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://react.dev/link/controlled-components"),X3=!0),vx(a,E,O,M,I,oe,v,h);return;case"select":fe=E=O=Z=null;for(v in l)if(M=l[v],l.hasOwnProperty(v)&&M!=null)switch(v){case"value":break;case"multiple":fe=M;default:d.hasOwnProperty(v)||Vt(a,i,v,null,d,M)}for(h in d)if(v=d[h],M=l[h],d.hasOwnProperty(h)&&(v!=null||M!=null))switch(h){case"value":Z=v;break;case"defaultValue":O=v;break;case"multiple":E=v;default:v!==M&&Vt(a,i,h,v,d,M)}d=O,i=E,l=fe,Z!=null?tc(a,!!i,Z,!1):!!l!=!!i&&(d!=null?tc(a,!!i,d,!0):tc(a,!!i,i?[]:"",!1));return;case"textarea":fe=Z=null;for(O in l)if(h=l[O],l.hasOwnProperty(O)&&h!=null&&!d.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:Vt(a,i,O,null,d,h)}for(E in d)if(h=d[E],v=l[E],d.hasOwnProperty(E)&&(h!=null||v!=null))switch(E){case"value":Z=h;break;case"defaultValue":fe=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:h!==v&&Vt(a,i,E,h,d,v)}YR(a,Z,fe);return;case"option":for(var Ce in l)if(Z=l[Ce],l.hasOwnProperty(Ce)&&Z!=null&&!d.hasOwnProperty(Ce))switch(Ce){case"selected":a.selected=!1;break;default:Vt(a,i,Ce,null,d,Z)}for(M in d)if(Z=d[M],fe=l[M],d.hasOwnProperty(M)&&Z!==fe&&(Z!=null||fe!=null))switch(M){case"selected":a.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Vt(a,i,M,Z,d,fe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var De in l)Z=l[De],l.hasOwnProperty(De)&&Z!=null&&!d.hasOwnProperty(De)&&Vt(a,i,De,null,d,Z);for(I in d)if(Z=d[I],fe=l[I],d.hasOwnProperty(I)&&Z!==fe&&(Z!=null||fe!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Vt(a,i,I,Z,d,fe)}return;default:if(Ef(i)){for(var Ht in l)Z=l[Ht],l.hasOwnProperty(Ht)&&Z!==void 0&&!d.hasOwnProperty(Ht)&&iw(a,i,Ht,void 0,d,Z);for(oe in d)Z=d[oe],fe=l[oe],!d.hasOwnProperty(oe)||Z===fe||Z===void 0&&fe===void 0||iw(a,i,oe,Z,d,fe);return}}for(var vt in l)Z=l[vt],l.hasOwnProperty(vt)&&Z!=null&&!d.hasOwnProperty(vt)&&Vt(a,i,vt,null,d,Z);for(se in d)Z=d[se],fe=l[se],!d.hasOwnProperty(se)||Z===fe||Z==null&&fe==null||Vt(a,i,se,Z,d,fe)}function eL(a){switch(a){case"class":return"className";case"for":return"htmlFor";default:return a}}function ow(a){var i={};a=a.style;for(var l=0;l<a.length;l++){var d=a[l];i[d]=a.getPropertyValue(d)}return i}function tL(a,i,l){if(i!=null&&typeof i!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var d,h=d="",v;for(v in i)if(i.hasOwnProperty(v)){var E=i[v];E!=null&&typeof E!="boolean"&&E!==""&&(v.indexOf("--")===0?(et(E,v),d+=h+v+":"+(""+E).trim()):typeof E!="number"||E===0||dk.has(v)?(et(E,v),d+=h+v.replace(ok,"-$1").toLowerCase().replace(sk,"-ms-")+":"+(""+E).trim()):d+=h+v.replace(ok,"-$1").toLowerCase().replace(sk,"-ms-")+":"+E+"px",h=";")}d=d||null,i=a.getAttribute("style"),i!==d&&(d=Ns(d),Ns(i)!==d&&(l.style=ow(a)))}}function ga(a,i,l,d,h,v){if(h.delete(l),a=a.getAttribute(l),a===null)switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":return}else if(d!=null)switch(typeof d){case"function":case"symbol":case"boolean":break;default:if($e(d,i),a===""+d)return}qn(i,a,d,v)}function nL(a,i,l,d,h,v){if(h.delete(l),a=a.getAttribute(l),a===null){switch(typeof d){case"function":case"symbol":return}if(!d)return}else switch(typeof d){case"function":case"symbol":break;default:if(d)return}qn(i,a,d,v)}function sw(a,i,l,d,h,v){if(h.delete(l),a=a.getAttribute(l),a===null)switch(typeof d){case"undefined":case"function":case"symbol":return}else if(d!=null)switch(typeof d){case"function":case"symbol":break;default:if($e(d,l),a===""+d)return}qn(i,a,d,v)}function rL(a,i,l,d,h,v){if(h.delete(l),a=a.getAttribute(l),a===null)switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(d))return}else if(d!=null)switch(typeof d){case"function":case"symbol":case"boolean":break;default:if(!isNaN(d)&&($e(d,i),a===""+d))return}qn(i,a,d,v)}function lw(a,i,l,d,h,v){if(h.delete(l),a=a.getAttribute(l),a===null)switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":return}else if(d!=null)switch(typeof d){case"function":case"symbol":case"boolean":break;default:if($e(d,i),l=Sf(""+d),a===l)return}qn(i,a,d,v)}function aL(a,i,l,d){for(var h={},v=new Set,E=a.attributes,O=0;O<E.length;O++)switch(E[O].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:v.add(E[O].name)}if(Ef(i)){for(var M in l)if(l.hasOwnProperty(M)){var I=l[M];if(I!=null){if(Ml.hasOwnProperty(M))typeof I!="function"&&Di(M,I);else if(l.suppressHydrationWarning!==!0)switch(M){case"children":typeof I!="string"&&typeof I!="number"||qn("children",a.textContent,I,h);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":E=a.innerHTML,I=I?I.__html:void 0,I!=null&&(I=ZM(a,I),qn(M,E,I,h));continue;case"style":v.delete(M),tL(a,I,h);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":v.delete(M.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",M);continue;case"className":v.delete("class"),E=dn(a,"class",I),qn("className",E,I,h);continue;default:d.context===Bo&&i!=="svg"&&i!=="math"?v.delete(M.toLowerCase()):v.delete(M),E=dn(a,M,I),qn(M,E,I,h)}}}}else for(I in l)if(l.hasOwnProperty(I)&&(M=l[I],M!=null)){if(Ml.hasOwnProperty(I))typeof M!="function"&&Di(I,M);else if(l.suppressHydrationWarning!==!0)switch(I){case"children":typeof M!="string"&&typeof M!="number"||qn("children",a.textContent,M,h);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":E=a.innerHTML,M=M?M.__html:void 0,M!=null&&(M=ZM(a,M),E!==M&&(h[I]={__html:E}));continue;case"className":ga(a,I,"class",M,v,h);continue;case"tabIndex":ga(a,I,"tabindex",M,v,h);continue;case"style":v.delete(I),tL(a,M,h);continue;case"multiple":v.delete(I),qn(I,a.multiple,M,h);continue;case"muted":v.delete(I),qn(I,a.muted,M,h);continue;case"autoFocus":v.delete("autofocus"),qn(I,a.autofocus,M,h);continue;case"data":if(i!=="object"){v.delete(I),E=a.getAttribute("data"),qn(I,E,M,h);continue}case"src":case"href":if(!(M!==""||i==="a"&&I==="href"||i==="object"&&I==="data")){console.error(I==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',I,I);continue}lw(a,I,I,M,v,h);continue;case"action":case"formAction":if(E=a.getAttribute(I),typeof M=="function"){v.delete(I.toLowerCase()),I==="formAction"?(v.delete("name"),v.delete("formenctype"),v.delete("formmethod"),v.delete("formtarget")):(v.delete("enctype"),v.delete("method"),v.delete("target"));continue}else if(E===TX){v.delete(I.toLowerCase()),qn(I,"function",M,h);continue}lw(a,I,I.toLowerCase(),M,v,h);continue;case"xlinkHref":lw(a,I,"xlink:href",M,v,h);continue;case"contentEditable":sw(a,I,"contenteditable",M,v,h);continue;case"spellCheck":sw(a,I,"spellcheck",M,v,h);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":sw(a,I,I,M,v,h);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":nL(a,I,I.toLowerCase(),M,v,h);continue;case"capture":case"download":e:{O=a;var oe=E=I,se=h;if(v.delete(oe),O=O.getAttribute(oe),O===null)switch(typeof M){case"undefined":case"function":case"symbol":break e;default:if(M===!1)break e}else if(M!=null)switch(typeof M){case"function":case"symbol":break;case"boolean":if(M===!0&&O==="")break e;break;default:if($e(M,E),O===""+M)break e}qn(E,O,M,se)}continue;case"cols":case"rows":case"size":case"span":e:{if(O=a,oe=E=I,se=h,v.delete(oe),O=O.getAttribute(oe),O===null)switch(typeof M){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(M)||1>M)break e}else if(M!=null)switch(typeof M){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(M)||1>M)&&($e(M,E),O===""+M))break e}qn(E,O,M,se)}continue;case"rowSpan":rL(a,I,"rowspan",M,v,h);continue;case"start":rL(a,I,I,M,v,h);continue;case"xHeight":ga(a,I,"x-height",M,v,h);continue;case"xlinkActuate":ga(a,I,"xlink:actuate",M,v,h);continue;case"xlinkArcrole":ga(a,I,"xlink:arcrole",M,v,h);continue;case"xlinkRole":ga(a,I,"xlink:role",M,v,h);continue;case"xlinkShow":ga(a,I,"xlink:show",M,v,h);continue;case"xlinkTitle":ga(a,I,"xlink:title",M,v,h);continue;case"xlinkType":ga(a,I,"xlink:type",M,v,h);continue;case"xmlBase":ga(a,I,"xml:base",M,v,h);continue;case"xmlLang":ga(a,I,"xml:lang",M,v,h);continue;case"xmlSpace":ga(a,I,"xml:space",M,v,h);continue;case"inert":M!==""||Kv[I]||(Kv[I]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",I)),nL(a,I,I,M,v,h);continue;default:if(!(2<I.length)||I[0]!=="o"&&I[0]!=="O"||I[1]!=="n"&&I[1]!=="N"){O=ij(I),E=!1,d.context===Bo&&i!=="svg"&&i!=="math"?v.delete(O.toLowerCase()):(oe=I.toLowerCase(),oe=av.hasOwnProperty(oe)&&av[oe]||null,oe!==null&&oe!==I&&(E=!0,v.delete(oe)),v.delete(O));e:if(oe=a,se=O,O=M,br(se))if(oe.hasAttribute(se))oe=oe.getAttribute(se),$e(O,se),O=oe===""+O?O:oe;else{switch(typeof O){case"function":case"symbol":break e;case"boolean":if(oe=se.toLowerCase().slice(0,5),oe!=="data-"&&oe!=="aria-")break e}O=O===void 0?void 0:null}else O=void 0;E||qn(I,O,M,h)}}}return 0<v.size&&l.suppressHydrationWarning!==!0&&dY(a,v,h),Object.keys(h).length===0?null:h}function mY(a,i){switch(a.length){case 0:return"";case 1:return a[0];case 2:return a[0]+" "+i+" "+a[1];default:return a.slice(0,-1).join(", ")+", "+i+" "+a[a.length-1]}}function iL(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pY(){if(typeof performance.getEntriesByType=="function"){for(var a=0,i=0,l=performance.getEntriesByType("resource"),d=0;d<l.length;d++){var h=l[d],v=h.transferSize,E=h.initiatorType,O=h.duration;if(v&&O&&iL(E)){for(E=0,O=h.responseEnd,d+=1;d<l.length;d++){var M=l[d],I=M.startTime;if(I>O)break;var oe=M.transferSize,se=M.initiatorType;oe&&iL(se)&&(M=M.responseEnd,E+=oe*(M<O?1:(O-I)/(M-I)))}if(--d,i+=8*(v+E)/(h.duration/1e3),a++,10<a)break}}if(0<a)return i/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}function Bg(a){return a.nodeType===9?a:a.ownerDocument}function oL(a){switch(a){case Sc:return ed;case rv:return Yv;default:return Bo}}function sL(a,i){if(a===Bo)switch(i){case"svg":return ed;case"math":return Yv;default:return Bo}return a===ed&&i==="foreignObject"?Bo:a}function uw(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}function hY(){var a=window.event;return a&&a.type==="popstate"?a===KN?!1:(KN=a,!0):(KN=null,!1)}function Yf(){var a=window.event;return a&&a!==Hm?a.type:null}function Qf(){var a=window.event;return a&&a!==Hm?a.timeStamp:-1.1}function gY(a){setTimeout(function(){throw a})}function vY(a,i,l){switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}function yY(){}function bY(a,i,l,d){fY(a,i,l,d),a[Nr]=d}function lL(a){Nf(a,"")}function xY(a,i,l){a.nodeValue=l}function uL(a){if(!a.__reactWarnedAboutChildrenConflict){var i=a[Nr]||null;if(i!==null){var l=Te(a);l!==null&&(typeof i.children=="string"||typeof i.children=="number"?(a.__reactWarnedAboutChildrenConflict=!0,de(l,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):i.dangerouslySetInnerHTML!=null&&(a.__reactWarnedAboutChildrenConflict=!0,de(l,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Es(a){return a==="head"}function wY(a,i){a.removeChild(i)}function NY(a,i){(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).removeChild(i)}function cL(a,i){var l=i,d=0;do{var h=l.nextSibling;if(a.removeChild(l),h&&h.nodeType===8)if(l=h.data,l===qm||l===Gv){if(d===0){a.removeChild(h),yc(i);return}d--}else if(l===Um||l===Ks||l===eu||l===Jc||l===Jl)d++;else if(l===_X)Xf(a.ownerDocument.documentElement);else if(l===RX){l=a.ownerDocument.head,Xf(l);for(var v=l.firstChild;v;){var E=v.nextSibling,O=v.nodeName;v[rm]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=E}}else l===DX&&Xf(a.ownerDocument.body);l=h}while(l);yc(i)}function dL(a,i){var l=a;a=0;do{var d=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),d&&d.nodeType===8)if(l=d.data,l===qm){if(a===0)break;a--}else l!==Um&&l!==Ks&&l!==eu&&l!==Jc||a++;l=d}while(l)}function EY(a){dL(a,!0)}function SY(a){a=a.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function AY(a){a.nodeValue=""}function OY(a){dL(a,!1)}function TY(a,i){i=i[jX],i=i!=null&&i.hasOwnProperty("display")?i.display:null,a.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}function CY(a,i){a.nodeValue=i}function cw(a){var i=a.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":cw(l),ue(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}a.removeChild(l)}}function _Y(a,i,l,d){for(;a.nodeType===1;){var h=l;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!d&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(d){if(!a[rm])switch(i){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(v=a.getAttribute("rel"),v==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(v!==h.rel||a.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||a.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||a.getAttribute("title")!==(h.title==null?null:h.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(v=a.getAttribute("src"),(v!==(h.src==null?null:h.src)||a.getAttribute("type")!==(h.type==null?null:h.type)||a.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&v&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(i==="input"&&a.type==="hidden"){$e(h.name,"name");var v=h.name==null?null:""+h.name;if(h.type==="hidden"&&a.getAttribute("name")===v)return a}else return a;if(a=ea(a.nextSibling),a===null)break}return null}function DY(a,i,l){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!l||(a=ea(a.nextSibling),a===null))return null;return a}function fL(a,i){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!i||(a=ea(a.nextSibling),a===null))return null;return a}function dw(a){return a.data===Ks||a.data===eu}function fw(a){return a.data===Jc||a.data===Ks&&a.ownerDocument.readyState!==tI}function RY(a,i){var l=a.ownerDocument;if(a.data===eu)a._reactRetry=i;else if(a.data!==Ks||l.readyState!==tI)i();else{var d=function(){i(),l.removeEventListener("DOMContentLoaded",d)};l.addEventListener("DOMContentLoaded",d),a._reactRetry=d}}function ea(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i===Um||i===Jc||i===Ks||i===eu||i===Jl||i===qN||i===eI)break;if(i===qm||i===Gv)return null}}return a}function mL(a){if(a.nodeType===1){for(var i=a.nodeName.toLowerCase(),l={},d=a.attributes,h=0;h<d.length;h++){var v=d[h];l[eL(v.name)]=v.name.toLowerCase()==="style"?ow(a):v.value}return{type:i,props:l}}return a.nodeType===8?a.data===Jl?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:a.nodeValue}function pL(a,i,l){return l===null||l[CX]!==!0?(a.nodeValue===i?a=null:(i=Ns(i),a=Ns(a.nodeValue)===i?null:a.nodeValue),a):null}function mw(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===qm||l===Gv){if(i===0)return ea(a.nextSibling);i--}else l!==Um&&l!==Jc&&l!==Ks&&l!==eu&&l!==Jl||i++}a=a.nextSibling}return null}function hL(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===Um||l===Jc||l===Ks||l===eu||l===Jl){if(i===0)return a;i--}else l!==qm&&l!==Gv||i++}a=a.previousSibling}return null}function jY(a){yc(a)}function PY(a){yc(a)}function MY(a){yc(a)}function gL(a,i,l,d,h){switch(h&&Ex(a,d.ancestorInfo),i=Bg(l),a){case"html":if(a=i.documentElement,!a)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return a;case"head":if(a=i.head,!a)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return a;case"body":if(a=i.body,!a)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return a;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function LY(a,i,l,d){if(!l[Ts]&&Te(l)){var h=l.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",h,h,h)}switch(a){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(h=l.attributes;h.length;)l.removeAttributeNode(h[0]);er(l,a,i),l[tr]=d,l[Nr]=i}function Xf(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);ue(a)}function zg(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}function vL(a,i,l){var d=td;if(d&&typeof i=="string"&&i){var h=ha(i);h='link[rel="'+a+'"][href="'+h+'"]',typeof l=="string"&&(h+='[crossorigin="'+l+'"]'),sI.has(h)||(sI.add(h),a={rel:a,crossOrigin:l,href:i},d.querySelector(h)===null&&(i=d.createElement("link"),er(i,"link",a),Se(i),d.head.appendChild(i)))}}function yL(a,i,l,d){var h=(h=As.current)?zg(h):null;if(!h)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(a){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=gc(l.href),i=Ze(h).hoistableStyles,d=i.get(l),d||(d={type:"style",instance:null,count:0,state:null},i.set(l,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){a=gc(l.href);var v=Ze(h).hoistableStyles,E=v.get(a);if(!E&&(h=h.ownerDocument||h,E={type:"stylesheet",instance:null,count:0,state:{loading:nu,preload:null}},v.set(a,E),(v=h.querySelector(Wf(a)))&&!v._p&&(E.instance=v,E.state.loading=Fm|Ca),!_a.has(a))){var O={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy};_a.set(a,O),v||kY(h,a,O,E.state)}if(i&&d===null)throw l=`
|
||
|
||
- `+Ug(i)+`
|
||
+ `+Ug(l),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return E}if(i&&d!==null)throw l=`
|
||
|
||
- `+Ug(i)+`
|
||
+ `+Ug(l),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(l=vc(l),i=Ze(h).hoistableScripts,d=i.get(l),d||(d={type:"script",instance:null,count:0,state:null},i.set(l,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+a+'". this is a bug in React.')}}function Ug(a){var i=0,l="<link";return typeof a.rel=="string"?(i++,l+=' rel="'+a.rel+'"'):Fa.call(a,"rel")&&(i++,l+=' rel="'+(a.rel===null?"null":"invalid type "+typeof a.rel)+'"'),typeof a.href=="string"?(i++,l+=' href="'+a.href+'"'):Fa.call(a,"href")&&(i++,l+=' href="'+(a.href===null?"null":"invalid type "+typeof a.href)+'"'),typeof a.precedence=="string"?(i++,l+=' precedence="'+a.precedence+'"'):Fa.call(a,"precedence")&&(i++,l+=" precedence={"+(a.precedence===null?"null":"invalid type "+typeof a.precedence)+"}"),Object.getOwnPropertyNames(a).length>i&&(l+=" ..."),l+" />"}function gc(a){return'href="'+ha(a)+'"'}function Wf(a){return'link[rel="stylesheet"]['+a+"]"}function bL(a){return dt({},a,{"data-precedence":a.precedence,precedence:null})}function kY(a,i,l,d){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?d.loading=Fm:(i=a.createElement("link"),d.preload=i,i.addEventListener("load",function(){return d.loading|=Fm}),i.addEventListener("error",function(){return d.loading|=iI}),er(i,"link",l),Se(i),a.head.appendChild(i))}function vc(a){return'[src="'+ha(a)+'"]'}function Zf(a){return"script[async]"+a}function xL(a,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var d=a.querySelector('style[data-href~="'+ha(l.href)+'"]');if(d)return i.instance=d,Se(d),d;var h=dt({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return d=(a.ownerDocument||a).createElement("style"),Se(d),er(d,"style",h),qg(d,l.precedence,a),i.instance=d;case"stylesheet":h=gc(l.href);var v=a.querySelector(Wf(h));if(v)return i.state.loading|=Ca,i.instance=v,Se(v),v;d=bL(l),(h=_a.get(h))&&pw(d,h),v=(a.ownerDocument||a).createElement("link"),Se(v);var E=v;return E._p=new Promise(function(O,M){E.onload=O,E.onerror=M}),er(v,"link",d),i.state.loading|=Ca,qg(v,l.precedence,a),i.instance=v;case"script":return v=vc(l.src),(h=a.querySelector(Zf(v)))?(i.instance=h,Se(h),h):(d=l,(h=_a.get(v))&&(d=dt({},l),hw(d,h)),a=a.ownerDocument||a,h=a.createElement("script"),Se(h),er(h,"link",d),a.head.appendChild(h),i.instance=h);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+i.type+'". this is a bug in React.')}else i.type==="stylesheet"&&(i.state.loading&Ca)===nu&&(d=i.instance,i.state.loading|=Ca,qg(d,l.precedence,a));return i.instance}function qg(a,i,l){for(var d=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=d.length?d[d.length-1]:null,v=h,E=0;E<d.length;E++){var O=d[E];if(O.dataset.precedence===i)v=O;else if(v!==h)break}v?v.parentNode.insertBefore(a,v.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(a,i.firstChild))}function pw(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function hw(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}function wL(a,i,l){if(Qv===null){var d=new Map,h=Qv=new Map;h.set(l,d)}else h=Qv,d=h.get(l),d||(d=new Map,h.set(l,d));if(d.has(a))return d;for(d.set(a,null),l=l.getElementsByTagName(a),h=0;h<l.length;h++){var v=l[h];if(!(v[rm]||v[tr]||a==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!==Sc){var E=v.getAttribute(i)||"";E=a+E;var O=d.get(E);O?O.push(v):d.set(E,[v])}}return d}function NL(a,i,l){a=a.ownerDocument||a,a.head.insertBefore(l,i==="title"?a.querySelector("head > title"):null)}function IY(a,i,l){var d=!l.ancestorInfo.containerTagInScope;if(l.context===ed||i.itemProp!=null)return!d||i.itemProp==null||a!=="meta"&&a!=="title"&&a!=="style"&&a!=="link"&&a!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",a,a),!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href===""){d&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError){if(i.rel==="stylesheet"&&typeof i.precedence=="string"){a=i.href;var h=i.onError,v=i.disabled;l=[],i.onLoad&&l.push("`onLoad`"),h&&l.push("`onError`"),v!=null&&l.push("`disabled`"),h=mY(l,"and"),h+=l.length===1?" prop":" props",v=l.length===1?"an "+h:"the "+h,l.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',a,v,h)}d&&(typeof i.rel!="string"||typeof i.href!="string"||i.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(i.onError||i.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(i.rel){case"stylesheet":return a=i.precedence,i=i.disabled,typeof a!="string"&&d&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof a=="string"&&i==null;default:return!0}case"script":if(a=i.async&&typeof i.async!="function"&&typeof i.async!="symbol",!a||i.onLoad||i.onError||!i.src||typeof i.src!="string"){d&&(a?i.onLoad||i.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":d&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",a)}return!1}function EL(a){return!(a.type==="stylesheet"&&(a.state.loading&oI)===nu)}function $Y(a,i,l,d){if(l.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(l.state.loading&Ca)===nu){if(l.instance===null){var h=gc(d.href),v=i.querySelector(Wf(h));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(a.count++,a=Hg.bind(a),i.then(a,a)),l.state.loading|=Ca,l.instance=v,Se(v);return}v=i.ownerDocument||i,d=bL(d),(h=_a.get(h))&&pw(d,h),v=v.createElement("link"),Se(v);var E=v;E._p=new Promise(function(O,M){E.onload=O,E.onerror=M}),er(v,"link",d),l.instance=v}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&oI)===nu&&(a.count++,l=Hg.bind(a),i.addEventListener("load",l),i.addEventListener("error",l))}}function VY(a,i){return a.stylesheets&&a.count===0&&Fg(a,a.stylesheets),0<a.count||0<a.imgCount?function(l){var d=setTimeout(function(){if(a.stylesheets&&Fg(a,a.stylesheets),a.unsuspend){var v=a.unsuspend;a.unsuspend=null,v()}},LX+i);0<a.imgBytes&&YN===0&&(YN=125*pY()*IX);var h=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Fg(a,a.stylesheets),a.unsuspend)){var v=a.unsuspend;a.unsuspend=null,v()}},(a.imgBytes>YN?50:kX)+i);return a.unsuspend=l,function(){a.unsuspend=null,clearTimeout(d),clearTimeout(h)}}:null}function Hg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fg(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}function Fg(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Xv=new Map,i.forEach(BY,a),Xv=null,Hg.call(a))}function BY(a,i){if(!(i.state.loading&Ca)){var l=Xv.get(a);if(l)var d=l.get(QN);else{l=new Map,Xv.set(a,l);for(var h=a.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<h.length;v++){var E=h[v];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(l.set(E.dataset.precedence,E),d=E)}d&&l.set(QN,d)}h=i.instance,E=h.getAttribute("data-precedence"),v=l.get(E)||d,v===d&&l.set(QN,h),l.set(E,h),this.count++,d=Hg.bind(this),h.addEventListener("load",d),h.addEventListener("error",d),v?v.parentNode.insertBefore(h,v.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(h,a.firstChild)),i.state.loading|=Ca}}function zY(a,i,l,d,h,v,E,O,M){for(this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=tu,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fi(0),this.hiddenUpdates=fi(null),this.identifierPrefix=d,this.onUncaughtError=h,this.onCaughtError=v,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,a=this.pendingUpdatersLaneMap=[],i=0;31>i;i++)a.push(new Set);this._debugRootType=l?"hydrateRoot()":"createRoot()"}function SL(a,i,l,d,h,v,E,O,M,I,oe,se){return a=new zY(a,i,l,E,M,I,oe,se,O),i=sX,v===!0&&(i|=lr|Ka),i|=it,v=y(3,null,null,i),a.current=v,v.stateNode=a,i=qx(),Tl(i),a.pooledCache=i,Tl(i),v.memoizedState={element:d,isDehydrated:l,cache:i},Yx(v),a}function AL(a){return a?(a=Rs,a):Rs}function gw(a,i,l,d,h,v){if(sr&&typeof sr.onScheduleFiberRoot=="function")try{sr.onScheduleFiberRoot(Nc,d,l)}catch(E){Mi||(Mi=!0,console.error("React instrumentation encountered an error: %o",E))}h=AL(h),d.context===null?d.context=h:d.pendingContext=h,Pi&&na!==null&&!dI&&(dI=!0,console.error(`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.
|
||
|
||
Check the render method of %s.`,B(na)||"Unknown")),d=gs(i),d.payload={element:l},v=v===void 0?null:v,v!==null&&(typeof v!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",v),d.callback=v),l=vs(a,d,i),l!==null&&(yi(i,"root.render()",null),un(l,a,i),jf(l,a,i))}function OL(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var l=a.retryLane;a.retryLane=l!==0&&l<i?l:i}}function vw(a,i){OL(a,i),(a=a.alternate)&&OL(a,i)}function TL(a){if(a.tag===13||a.tag===31){var i=or(a,67108864);i!==null&&un(i,a,67108864),vw(a,67108864)}}function CL(a){if(a.tag===13||a.tag===31){var i=Jr(a);i=mi(i);var l=or(a,i);l!==null&&un(l,a,i),vw(a,i)}}function UY(){return na}function qY(a,i,l,d){var h=he.T;he.T=null;var v=_t.p;try{_t.p=va,yw(a,i,l,d)}finally{_t.p=v,he.T=h}}function HY(a,i,l,d){var h=he.T;he.T=null;var v=_t.p;try{_t.p=ki,yw(a,i,l,d)}finally{_t.p=v,he.T=h}}function yw(a,i,l,d){if(Zv){var h=bw(d);if(h===null)rw(a,i,d,Jv,l),DL(a,d);else if(FY(h,a,i,l,d))d.stopPropagation();else if(DL(a,d),i&4&&-1<VX.indexOf(a)){for(;h!==null;){var v=Te(h);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var E=wt(v.pendingLanes);if(E!==0){var O=v;for(O.pendingLanes|=2,O.entangledLanes|=2;E;){var M=1<<31-wr(E);O.entanglements[1]|=M,E&=~M}_i(v),(xt&(Mn|oa))===Gn&&(Lv=Hn()+V3,Kf(0))}}break;case 31:case 13:O=or(v,2),O!==null&&un(O,v,2),mc(),vw(v,2)}if(v=bw(d),v===null&&rw(a,i,d,Jv,l),v===h)break;h=v}h!==null&&d.stopPropagation()}else rw(a,i,d,null,l)}}function bw(a){return a=Sx(a),xw(a)}function xw(a){if(Jv=null,a=Ee(a),a!==null){var i=T(a);if(i===null)a=null;else{var l=i.tag;if(l===13){if(a=C(i),a!==null)return a;a=null}else if(l===31){if(a=D(i),a!==null)return a;a=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return Jv=a,null}function _L(a){switch(a){case"beforetoggle":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"toggle":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 va;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return ki;case"message":switch(tQ()){case Mw:return va;case Lw:return ki;case wc:case nQ:return Oo;case kw:return tv;default:return Oo}default:return Oo}}function DL(a,i){switch(a){case"focusin":case"focusout":Gs=null;break;case"dragenter":case"dragleave":Ys=null;break;case"mouseover":case"mouseout":Qs=null;break;case"pointerover":case"pointerout":Gm.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ym.delete(i.pointerId)}}function Jf(a,i,l,d,h,v){return a===null||a.nativeEvent!==v?(a={blockedOn:i,domEventName:l,eventSystemFlags:d,nativeEvent:v,targetContainers:[h]},i!==null&&(i=Te(i),i!==null&&TL(i)),a):(a.eventSystemFlags|=d,i=a.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),a)}function FY(a,i,l,d,h){switch(i){case"focusin":return Gs=Jf(Gs,a,i,l,d,h),!0;case"dragenter":return Ys=Jf(Ys,a,i,l,d,h),!0;case"mouseover":return Qs=Jf(Qs,a,i,l,d,h),!0;case"pointerover":var v=h.pointerId;return Gm.set(v,Jf(Gm.get(v)||null,a,i,l,d,h)),!0;case"gotpointercapture":return v=h.pointerId,Ym.set(v,Jf(Ym.get(v)||null,a,i,l,d,h)),!0}return!1}function RL(a){var i=Ee(a.target);if(i!==null){var l=T(i);if(l!==null){if(i=l.tag,i===13){if(i=C(l),i!==null){a.blockedOn=i,$(a.priority,function(){CL(l)});return}}else if(i===31){if(i=D(l),i!==null){a.blockedOn=i,$(a.priority,function(){CL(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){a.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Kg(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var l=bw(a.nativeEvent);if(l===null){l=a.nativeEvent;var d=new l.constructor(l.type,l),h=d;am!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),am=h,l.target.dispatchEvent(d),am===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),am=null}else return i=Te(l),i!==null&&TL(i),a.blockedOn=l,!1;i.shift()}return!0}function jL(a,i,l){Kg(a)&&l.delete(i)}function KY(){XN=!1,Gs!==null&&Kg(Gs)&&(Gs=null),Ys!==null&&Kg(Ys)&&(Ys=null),Qs!==null&&Kg(Qs)&&(Qs=null),Gm.forEach(jL),Ym.forEach(jL)}function Gg(a,i){a.blockedOn===i&&(a.blockedOn=null,XN||(XN=!0,wn.unstable_scheduleCallback(wn.unstable_NormalPriority,KY)))}function PL(a){ey!==a&&(ey=a,wn.unstable_scheduleCallback(wn.unstable_NormalPriority,function(){ey===a&&(ey=null);for(var i=0;i<a.length;i+=3){var l=a[i],d=a[i+1],h=a[i+2];if(typeof d!="function"){if(xw(d||l)===null)continue;break}var v=Te(l);v!==null&&(a.splice(i,3),i-=3,l={pending:!0,data:h,method:l.method,action:d},Object.freeze(l),x1(v,l,d,h))}}))}function yc(a){function i(M){return Gg(M,a)}Gs!==null&&Gg(Gs,a),Ys!==null&&Gg(Ys,a),Qs!==null&&Gg(Qs,a),Gm.forEach(i),Ym.forEach(i);for(var l=0;l<Xs.length;l++){var d=Xs[l];d.blockedOn===a&&(d.blockedOn=null)}for(;0<Xs.length&&(l=Xs[0],l.blockedOn===null);)RL(l),l.blockedOn===null&&Xs.shift();if(l=(a.ownerDocument||a).$$reactFormReplay,l!=null)for(d=0;d<l.length;d+=3){var h=l[d],v=l[d+1],E=h[Nr]||null;if(typeof v=="function")E||PL(l);else if(E){var O=null;if(v&&v.hasAttribute("formAction")){if(h=v,E=v[Nr]||null)O=E.formAction;else if(xw(h)!==null)continue}else O=E.action;typeof O=="function"?l[d+1]=O:(l.splice(d,3),d-=3),PL(l)}}}function ML(){function a(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(E){return h=E})},focusReset:"manual",scroll:"manual"})}function i(){h!==null&&(h(),h=null),d||setTimeout(l,20)}function l(){if(!d&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,h=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(l,100),function(){d=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),h!==null&&(h(),h=null)}}}function ww(a){this._internalRoot=a}function Yg(a){this._internalRoot=a}function LL(a){a[Ts]&&(a._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("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."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var wn=uee(),Nw=ef(),GY=pU(),dt=Object.assign,YY=Symbol.for("react.element"),Ri=Symbol.for("react.transitional.element"),bc=Symbol.for("react.portal"),xc=Symbol.for("react.fragment"),Qg=Symbol.for("react.strict_mode"),Ew=Symbol.for("react.profiler"),Sw=Symbol.for("react.consumer"),ji=Symbol.for("react.context"),em=Symbol.for("react.forward_ref"),Aw=Symbol.for("react.suspense"),Ow=Symbol.for("react.suspense_list"),Xg=Symbol.for("react.memo"),ta=Symbol.for("react.lazy"),Tw=Symbol.for("react.activity"),QY=Symbol.for("react.memo_cache_sentinel"),kL=Symbol.iterator,XY=Symbol.for("react.client.reference"),jn=Array.isArray,he=Nw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_t=GY.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,WY=Object.freeze({pending:!1,data:null,method:null,action:null}),Cw=[],_w=[],Ao=-1,Ss=U(null),tm=U(null),As=U(null),Wg=U(null),nm=0,IL,$L,VL,BL,zL,UL,qL;ne.__reactDisabledLog=!0;var Dw,HL,Rw=!1,jw=new(typeof WeakMap=="function"?WeakMap:Map),na=null,Pi=!1,Fa=Object.prototype.hasOwnProperty,Pw=wn.unstable_scheduleCallback,ZY=wn.unstable_cancelCallback,JY=wn.unstable_shouldYield,eQ=wn.unstable_requestPaint,Hn=wn.unstable_now,tQ=wn.unstable_getCurrentPriorityLevel,Mw=wn.unstable_ImmediatePriority,Lw=wn.unstable_UserBlockingPriority,wc=wn.unstable_NormalPriority,nQ=wn.unstable_LowPriority,kw=wn.unstable_IdlePriority,rQ=wn.log,aQ=wn.unstable_setDisableYieldValue,Nc=null,sr=null,Mi=!1,Li=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",wr=Math.clz32?Math.clz32:ir,iQ=Math.log,oQ=Math.LN2,Zg=256,Jg=262144,ev=4194304,va=2,ki=8,Oo=32,tv=268435456,Os=Math.random().toString(36).slice(2),tr="__reactFiber$"+Os,Nr="__reactProps$"+Os,Ts="__reactContainer$"+Os,Iw="__reactEvents$"+Os,sQ="__reactListeners$"+Os,lQ="__reactHandles$"+Os,FL="__reactResources$"+Os,rm="__reactMarker$"+Os,KL=new Set,Ml={},$w={},uQ={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},cQ=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),GL={},YL={},dQ=/[\n"\\]/g,QL=!1,XL=!1,WL=!1,ZL=!1,JL=!1,ek=!1,tk=["value","defaultValue"],nk=!1,rk=/["'&<>\n\t]|^\s|\s$/,fQ="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".split(" "),ak="applet caption html table td th marquee object template foreignObject desc title".split(" "),mQ=ak.concat(["button"]),pQ="dd dt li option optgroup p rp rt".split(" "),ik={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},nv={},Vw={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),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".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),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".split(" "),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"]},ok=/([A-Z])/g,sk=/^ms-/,hQ=/^(?:webkit|moz|o)[A-Z]/,gQ=/^-ms-/,vQ=/-(.)/g,lk=/;\s*$/,Ec={},Bw={},uk=!1,ck=!1,dk=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),rv="http://www.w3.org/1998/Math/MathML",Sc="http://www.w3.org/2000/svg",yQ=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),av={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",fetchpriority:"fetchPriority",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",inert:"inert",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",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",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",transformorigin:"transformOrigin","transform-origin":"transformOrigin",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"},fk={"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,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Ac={},bQ=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),xQ=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),mk=!1,Er={},pk=/^on./,wQ=/^on[^A-Z]/,NQ=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),EQ=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),SQ=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,am=null,Oc=null,Tc=null,zw=!1,Ii=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uw=!1;if(Ii)try{var im={};Object.defineProperty(im,"passive",{get:function(){Uw=!0}}),window.addEventListener("test",im,im),window.removeEventListener("test",im,im)}catch{Uw=!1}var Cs=null,qw=null,iv=null,Ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ov=kr(Ll),om=dt({},Ll,{view:0,detail:0}),AQ=kr(om),Hw,Fw,sm,sv=dt({},om,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ax,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!==sm&&(sm&&a.type==="mousemove"?(Hw=a.screenX-sm.screenX,Fw=a.screenY-sm.screenY):Fw=Hw=0,sm=a),Hw)},movementY:function(a){return"movementY"in a?a.movementY:Fw}}),hk=kr(sv),OQ=dt({},sv,{dataTransfer:0}),TQ=kr(OQ),CQ=dt({},om,{relatedTarget:0}),Kw=kr(CQ),_Q=dt({},Ll,{animationName:0,elapsedTime:0,pseudoElement:0}),DQ=kr(_Q),RQ=dt({},Ll,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),jQ=kr(RQ),PQ=dt({},Ll,{data:0}),gk=kr(PQ),MQ=gk,LQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kQ={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"},IQ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},$Q=dt({},om,{key:function(a){if(a.key){var i=LQ[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=Kh(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?kQ[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ax,charCode:function(a){return a.type==="keypress"?Kh(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Kh(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),VQ=kr($Q),BQ=dt({},sv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vk=kr(BQ),zQ=dt({},om,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ax}),UQ=kr(zQ),qQ=dt({},Ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),HQ=kr(qQ),FQ=dt({},sv,{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}),KQ=kr(FQ),GQ=dt({},Ll,{newState:0,oldState:0}),YQ=kr(GQ),QQ=[9,13,27,32],yk=229,Gw=Ii&&"CompositionEvent"in window,lm=null;Ii&&"documentMode"in document&&(lm=document.documentMode);var XQ=Ii&&"TextEvent"in window&&!lm,bk=Ii&&(!Gw||lm&&8<lm&&11>=lm),xk=32,wk=String.fromCharCode(xk),Nk=!1,Cc=!1,WQ={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},um=null,cm=null,Ek=!1;Ii&&(Ek=vG("input")&&(!document.documentMode||9<document.documentMode));var Sr=typeof Object.is=="function"?Object.is:EG,ZQ=Ii&&"documentMode"in document&&11>=document.documentMode,_c=null,Yw=null,dm=null,Qw=!1,Dc={animationend:xl("Animation","AnimationEnd"),animationiteration:xl("Animation","AnimationIteration"),animationstart:xl("Animation","AnimationStart"),transitionrun:xl("Transition","TransitionRun"),transitionstart:xl("Transition","TransitionStart"),transitioncancel:xl("Transition","TransitionCancel"),transitionend:xl("Transition","TransitionEnd")},Xw={},Sk={};Ii&&(Sk=document.createElement("div").style,"AnimationEvent"in window||(delete Dc.animationend.animation,delete Dc.animationiteration.animation,delete Dc.animationstart.animation),"TransitionEvent"in window||delete Dc.transitionend.transition);var Ak=wl("animationend"),Ok=wl("animationiteration"),Tk=wl("animationstart"),JQ=wl("transitionrun"),eX=wl("transitionstart"),tX=wl("transitioncancel"),Ck=wl("transitionend"),_k=new Map,Ww="abort auxClick beforeToggle 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(" ");Ww.push("scrollEnd");var Dk=0;if(typeof performance=="object"&&typeof performance.now=="function")var nX=performance,Rk=function(){return nX.now()};else{var rX=Date;Rk=function(){return rX.now()}}var Zw=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},aX="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",lv=0,Jw=1,eN=2,tN=3,uv="– ",cv="+ ",jk=" ",Gt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",ya="Components ⚛",gt="Scheduler ⚛",bt="Blocking",_s=!1,To={color:"primary",properties:null,tooltipText:"",track:ya},Ds={start:-0,end:-0,detail:{devtools:To}},iX=["Changed Props",""],Pk="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",oX=["Changed Props",Pk],fm=1,Co=2,ba=[],Rc=0,nN=0,Rs={};Object.freeze(Rs);var xa=null,jc=null,Ge=0,sX=1,it=2,lr=8,Ka=16,lX=32,Mk=!1;try{var Lk=Object.preventExtensions({})}catch{Mk=!0}var rN=new WeakMap,Pc=[],Mc=0,dv=null,mm=0,wa=[],Na=0,kl=null,_o=1,Do="",nr=null,Yt=null,mt=!1,$i=!1,ra=null,js=null,Ea=!1,aN=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),iN=U(null),oN=U(null),kk={},fv=null,Lc=null,kc=!1,uX=typeof AbortController<"u"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(l,d){a.push(d)}};this.abort=function(){i.aborted=!0,a.forEach(function(l){return l()})}},cX=wn.unstable_scheduleCallback,dX=wn.unstable_NormalPriority,Nn={$$typeof:ji,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},En=wn.unstable_now,mv=console.createTask?console.createTask:function(){return null},pm=1,pv=2,Fn=-0,Ps=-0,Ro=-0,jo=null,Ar=-1.1,Il=-0,on=-0,qe=-1.1,Ke=-1.1,nn=null,cn=!1,$l=-0,Vi=-1.1,hm=null,Ms=0,sN=null,lN=null,Vl=-1.1,gm=null,Ic=-1.1,hv=-1.1,Po=-0,Mo=-1.1,Sa=-1.1,uN=0,vm=null,Ik=null,$k=null,Ls=-1.1,Bl=null,ks=-1.1,gv=-1.1,Vk=-0,Bk=-0,vv=0,fX=null,zk=0,ym=-1.1,yv=!1,bv=!1,bm=null,cN=0,zl=0,$c=null,Uk=he.S;he.S=function(a,i){if(I3=Hn(),typeof i=="object"&&i!==null&&typeof i.then=="function"){if(0>Mo&&0>Sa){Mo=En();var l=Qf(),d=Yf();(l!==ks||d!==Bl)&&(ks=-1.1),Ls=l,Bl=d}DG(a,i)}Uk!==null&&Uk(a,i)};var Ul=U(null),Ga={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},xm=[],wm=[],Nm=[],Em=[],Sm=[],Am=[],ql=new Set;Ga.recordUnsafeLifecycleWarnings=function(a,i){ql.has(a.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&xm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillMount=="function"&&wm.push(a),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Nm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&Em.push(a),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&Sm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillUpdate=="function"&&Am.push(a))},Ga.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;0<xm.length&&(xm.forEach(function(O){a.add(B(O)||"Component"),ql.add(O.type)}),xm=[]);var i=new Set;0<wm.length&&(wm.forEach(function(O){i.add(B(O)||"Component"),ql.add(O.type)}),wm=[]);var l=new Set;0<Nm.length&&(Nm.forEach(function(O){l.add(B(O)||"Component"),ql.add(O.type)}),Nm=[]);var d=new Set;0<Em.length&&(Em.forEach(function(O){d.add(B(O)||"Component"),ql.add(O.type)}),Em=[]);var h=new Set;0<Sm.length&&(Sm.forEach(function(O){h.add(B(O)||"Component"),ql.add(O.type)}),Sm=[]);var v=new Set;if(0<Am.length&&(Am.forEach(function(O){v.add(B(O)||"Component"),ql.add(O.type)}),Am=[]),0<i.size){var E=p(i);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
||
|
||
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
||
|
||
Please update the following components: %s`,E)}0<d.size&&(E=p(d),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
||
|
||
* Move data fetching code or side effects to componentDidUpdate.
|
||
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
||
|
||
Please update the following components: %s`,E)),0<v.size&&(E=p(v),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
||
|
||
* Move data fetching code or side effects to componentDidUpdate.
|
||
|
||
Please update the following components: %s`,E)),0<a.size&&(E=p(a),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
||
|
||
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
||
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
||
|
||
Please update the following components: %s`,E)),0<l.size&&(E=p(l),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
||
|
||
* Move data fetching code or side effects to componentDidUpdate.
|
||
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
||
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
||
|
||
Please update the following components: %s`,E)),0<h.size&&(E=p(h),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
||
|
||
* Move data fetching code or side effects to componentDidUpdate.
|
||
* 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.
|
||
|
||
Please update the following components: %s`,E))};var xv=new Map,qk=new Set;Ga.recordLegacyContextWarning=function(a,i){for(var l=null,d=a;d!==null;)d.mode&lr&&(l=d),d=d.return;l===null?console.error("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."):!qk.has(a.type)&&(d=xv.get(l),a.type.contextTypes!=null||a.type.childContextTypes!=null||i!==null&&typeof i.getChildContext=="function")&&(d===void 0&&(d=[],xv.set(l,d)),d.push(a))},Ga.flushLegacyContextWarning=function(){xv.forEach(function(a){if(a.length!==0){var i=a[0],l=new Set;a.forEach(function(h){l.add(B(h)||"Component"),qk.add(h.type)});var d=p(l);de(i,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
||
|
||
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
||
|
||
Please update the following components: %s
|
||
|
||
Learn more about this warning here: https://react.dev/link/legacy-context`,d)})}})},Ga.discardPendingWarnings=function(){xm=[],wm=[],Nm=[],Em=[],Sm=[],Am=[],xv=new Map};var Hk={react_stack_bottom_frame:function(a,i,l){var d=Pi;Pi=!0;try{return a(i,l)}finally{Pi=d}}},dN=Hk.react_stack_bottom_frame.bind(Hk),Fk={react_stack_bottom_frame:function(a){var i=Pi;Pi=!0;try{return a.render()}finally{Pi=i}}},Kk=Fk.react_stack_bottom_frame.bind(Fk),Gk={react_stack_bottom_frame:function(a,i){try{i.componentDidMount()}catch(l){Ct(a,a.return,l)}}},fN=Gk.react_stack_bottom_frame.bind(Gk),Yk={react_stack_bottom_frame:function(a,i,l,d,h){try{i.componentDidUpdate(l,d,h)}catch(v){Ct(a,a.return,v)}}},Qk=Yk.react_stack_bottom_frame.bind(Yk),Xk={react_stack_bottom_frame:function(a,i){var l=i.stack;a.componentDidCatch(i.value,{componentStack:l!==null?l:""})}},mX=Xk.react_stack_bottom_frame.bind(Xk),Wk={react_stack_bottom_frame:function(a,i,l){try{l.componentWillUnmount()}catch(d){Ct(a,i,d)}}},Zk=Wk.react_stack_bottom_frame.bind(Wk),Jk={react_stack_bottom_frame:function(a){var i=a.create;return a=a.inst,i=i(),a.destroy=i}},pX=Jk.react_stack_bottom_frame.bind(Jk),e3={react_stack_bottom_frame:function(a,i,l){try{l()}catch(d){Ct(a,i,d)}}},hX=e3.react_stack_bottom_frame.bind(e3),t3={react_stack_bottom_frame:function(a){var i=a._init;return i(a._payload)}},gX=t3.react_stack_bottom_frame.bind(t3),Vc=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),mN=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),wv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Nv={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Hl=null,Om=!1,Bc=null,Tm=0,ot=null,pN,n3=pN=!1,r3={},a3={},i3={};g=function(a,i,l){if(l!==null&&typeof l=="object"&&l._store&&(!l._store.validated&&l.key==null||l._store.validated===2)){if(typeof l._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");l._store.validated=1;var d=B(a),h=d||"null";if(!r3[h]){r3[h]=!0,l=l._owner,a=a._debugOwner;var v="";a&&typeof a.tag=="number"&&(h=B(a))&&(v=`
|
||
|
||
Check the render method of \``+h+"`."),v||d&&(v=`
|
||
|
||
Check the top-level render call using <`+d+">.");var E="";l!=null&&a!==l&&(d=null,typeof l.tag=="number"?d=B(l):typeof l.name=="string"&&(d=l.name),d&&(E=" It was passed a child from "+d+".")),de(i,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',v,E)})}}};var Fl=Wj(!0),o3=Wj(!1),s3=0,l3=1,u3=2,hN=3,Is=!1,c3=!1,gN=null,vN=!1,zc=U(null),Ev=U(0),aa=U(null),Aa=null,Uc=1,Cm=2,vn=U(0),Sv=0,Oa=1,Or=2,ia=4,Tr=8,qc,d3=new Set,f3=new Set,yN=new Set,m3=new Set,Lo=0,Xe=null,Bt=null,Sn=null,Av=!1,Hc=!1,Kl=!1,Ov=0,_m=0,ko=null,vX=0,yX=25,pe=null,Ta=null,Io=-1,Dm=!1,Rm={readContext:tn,use:xs,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useLayoutEffect:fn,useInsertionEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useSyncExternalStore:fn,useId:fn,useHostTransitionStatus:fn,useFormState:fn,useActionState:fn,useOptimistic:fn,useMemoCache:fn,useCacheRefresh:fn};Rm.useEffectEvent=fn;var bN=null,p3=null,xN=null,h3=null,Bi=null,Ya=null,Tv=null;bN={readContext:function(a){return tn(a)},use:xs,useCallback:function(a,i){return pe="useCallback",ct(),oc(i),g1(a,i)},useContext:function(a){return pe="useContext",ct(),tn(a)},useEffect:function(a,i){return pe="useEffect",ct(),oc(i),xg(a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",ct(),oc(l),h1(a,i,l)},useInsertionEffect:function(a,i){pe="useInsertionEffect",ct(),oc(i),_l(4,Or,a,i)},useLayoutEffect:function(a,i){return pe="useLayoutEffect",ct(),oc(i),p1(a,i)},useMemo:function(a,i){pe="useMemo",ct(),oc(i);var l=he.H;he.H=Bi;try{return v1(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",ct();var d=he.H;he.H=Bi;try{return i1(a,i,l)}finally{he.H=d}},useRef:function(a){return pe="useRef",ct(),f1(a)},useState:function(a){pe="useState",ct();var i=he.H;he.H=Bi;try{return u1(a)}finally{he.H=i}},useDebugValue:function(){pe="useDebugValue",ct()},useDeferredValue:function(a,i){return pe="useDeferredValue",ct(),y1(a,i)},useTransition:function(){return pe="useTransition",ct(),w1()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",ct(),s1(a,i,l)},useId:function(){return pe="useId",ct(),N1()},useFormState:function(a,i){return pe="useFormState",ct(),hg(),lc(a,i)},useActionState:function(a,i){return pe="useActionState",ct(),lc(a,i)},useOptimistic:function(a){return pe="useOptimistic",ct(),c1(a)},useHostTransitionStatus:Dl,useMemoCache:Cl,useCacheRefresh:function(){return pe="useCacheRefresh",ct(),E1()},useEffectEvent:function(a){return pe="useEffectEvent",ct(),m1(a)}},p3={readContext:function(a){return tn(a)},use:xs,useCallback:function(a,i){return pe="useCallback",Ae(),g1(a,i)},useContext:function(a){return pe="useContext",Ae(),tn(a)},useEffect:function(a,i){return pe="useEffect",Ae(),xg(a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",Ae(),h1(a,i,l)},useInsertionEffect:function(a,i){pe="useInsertionEffect",Ae(),_l(4,Or,a,i)},useLayoutEffect:function(a,i){return pe="useLayoutEffect",Ae(),p1(a,i)},useMemo:function(a,i){pe="useMemo",Ae();var l=he.H;he.H=Bi;try{return v1(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",Ae();var d=he.H;he.H=Bi;try{return i1(a,i,l)}finally{he.H=d}},useRef:function(a){return pe="useRef",Ae(),f1(a)},useState:function(a){pe="useState",Ae();var i=he.H;he.H=Bi;try{return u1(a)}finally{he.H=i}},useDebugValue:function(){pe="useDebugValue",Ae()},useDeferredValue:function(a,i){return pe="useDeferredValue",Ae(),y1(a,i)},useTransition:function(){return pe="useTransition",Ae(),w1()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",Ae(),s1(a,i,l)},useId:function(){return pe="useId",Ae(),N1()},useActionState:function(a,i){return pe="useActionState",Ae(),lc(a,i)},useFormState:function(a,i){return pe="useFormState",Ae(),hg(),lc(a,i)},useOptimistic:function(a){return pe="useOptimistic",Ae(),c1(a)},useHostTransitionStatus:Dl,useMemoCache:Cl,useCacheRefresh:function(){return pe="useCacheRefresh",Ae(),E1()},useEffectEvent:function(a){return pe="useEffectEvent",Ae(),m1(a)}},xN={readContext:function(a){return tn(a)},use:xs,useCallback:function(a,i){return pe="useCallback",Ae(),Eg(a,i)},useContext:function(a){return pe="useContext",Ae(),tn(a)},useEffect:function(a,i){pe="useEffect",Ae(),Ir(2048,Tr,a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",Ae(),Ng(a,i,l)},useInsertionEffect:function(a,i){return pe="useInsertionEffect",Ae(),Ir(4,Or,a,i)},useLayoutEffect:function(a,i){return pe="useLayoutEffect",Ae(),Ir(4,ia,a,i)},useMemo:function(a,i){pe="useMemo",Ae();var l=he.H;he.H=Ya;try{return Sg(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",Ae();var d=he.H;he.H=Ya;try{return sc(a,i,l)}finally{he.H=d}},useRef:function(){return pe="useRef",Ae(),Rt().memoizedState},useState:function(){pe="useState",Ae();var a=he.H;he.H=Ya;try{return sc(qa)}finally{he.H=a}},useDebugValue:function(){pe="useDebugValue",Ae()},useDeferredValue:function(a,i){return pe="useDeferredValue",Ae(),bP(a,i)},useTransition:function(){return pe="useTransition",Ae(),AP()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",Ae(),vg(a,i,l)},useId:function(){return pe="useId",Ae(),Rt().memoizedState},useFormState:function(a){return pe="useFormState",Ae(),hg(),yg(a)},useActionState:function(a){return pe="useActionState",Ae(),yg(a)},useOptimistic:function(a,i){return pe="useOptimistic",Ae(),uP(a,i)},useHostTransitionStatus:Dl,useMemoCache:Cl,useCacheRefresh:function(){return pe="useCacheRefresh",Ae(),Rt().memoizedState},useEffectEvent:function(a){return pe="useEffectEvent",Ae(),wg(a)}},h3={readContext:function(a){return tn(a)},use:xs,useCallback:function(a,i){return pe="useCallback",Ae(),Eg(a,i)},useContext:function(a){return pe="useContext",Ae(),tn(a)},useEffect:function(a,i){pe="useEffect",Ae(),Ir(2048,Tr,a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",Ae(),Ng(a,i,l)},useInsertionEffect:function(a,i){return pe="useInsertionEffect",Ae(),Ir(4,Or,a,i)},useLayoutEffect:function(a,i){return pe="useLayoutEffect",Ae(),Ir(4,ia,a,i)},useMemo:function(a,i){pe="useMemo",Ae();var l=he.H;he.H=Tv;try{return Sg(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",Ae();var d=he.H;he.H=Tv;try{return kf(a,i,l)}finally{he.H=d}},useRef:function(){return pe="useRef",Ae(),Rt().memoizedState},useState:function(){pe="useState",Ae();var a=he.H;he.H=Tv;try{return kf(qa)}finally{he.H=a}},useDebugValue:function(){pe="useDebugValue",Ae()},useDeferredValue:function(a,i){return pe="useDeferredValue",Ae(),xP(a,i)},useTransition:function(){return pe="useTransition",Ae(),OP()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",Ae(),vg(a,i,l)},useId:function(){return pe="useId",Ae(),Rt().memoizedState},useFormState:function(a){return pe="useFormState",Ae(),hg(),bg(a)},useActionState:function(a){return pe="useActionState",Ae(),bg(a)},useOptimistic:function(a,i){return pe="useOptimistic",Ae(),dP(a,i)},useHostTransitionStatus:Dl,useMemoCache:Cl,useCacheRefresh:function(){return pe="useCacheRefresh",Ae(),Rt().memoizedState},useEffectEvent:function(a){return pe="useEffectEvent",Ae(),wg(a)}},Bi={readContext:function(a){return f(),tn(a)},use:function(a){return c(),xs(a)},useCallback:function(a,i){return pe="useCallback",c(),ct(),g1(a,i)},useContext:function(a){return pe="useContext",c(),ct(),tn(a)},useEffect:function(a,i){return pe="useEffect",c(),ct(),xg(a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",c(),ct(),h1(a,i,l)},useInsertionEffect:function(a,i){pe="useInsertionEffect",c(),ct(),_l(4,Or,a,i)},useLayoutEffect:function(a,i){return pe="useLayoutEffect",c(),ct(),p1(a,i)},useMemo:function(a,i){pe="useMemo",c(),ct();var l=he.H;he.H=Bi;try{return v1(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",c(),ct();var d=he.H;he.H=Bi;try{return i1(a,i,l)}finally{he.H=d}},useRef:function(a){return pe="useRef",c(),ct(),f1(a)},useState:function(a){pe="useState",c(),ct();var i=he.H;he.H=Bi;try{return u1(a)}finally{he.H=i}},useDebugValue:function(){pe="useDebugValue",c(),ct()},useDeferredValue:function(a,i){return pe="useDeferredValue",c(),ct(),y1(a,i)},useTransition:function(){return pe="useTransition",c(),ct(),w1()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",c(),ct(),s1(a,i,l)},useId:function(){return pe="useId",c(),ct(),N1()},useFormState:function(a,i){return pe="useFormState",c(),ct(),lc(a,i)},useActionState:function(a,i){return pe="useActionState",c(),ct(),lc(a,i)},useOptimistic:function(a){return pe="useOptimistic",c(),ct(),c1(a)},useMemoCache:function(a){return c(),Cl(a)},useHostTransitionStatus:Dl,useCacheRefresh:function(){return pe="useCacheRefresh",ct(),E1()},useEffectEvent:function(a){return pe="useEffectEvent",c(),ct(),m1(a)}},Ya={readContext:function(a){return f(),tn(a)},use:function(a){return c(),xs(a)},useCallback:function(a,i){return pe="useCallback",c(),Ae(),Eg(a,i)},useContext:function(a){return pe="useContext",c(),Ae(),tn(a)},useEffect:function(a,i){pe="useEffect",c(),Ae(),Ir(2048,Tr,a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",c(),Ae(),Ng(a,i,l)},useInsertionEffect:function(a,i){return pe="useInsertionEffect",c(),Ae(),Ir(4,Or,a,i)},useLayoutEffect:function(a,i){return pe="useLayoutEffect",c(),Ae(),Ir(4,ia,a,i)},useMemo:function(a,i){pe="useMemo",c(),Ae();var l=he.H;he.H=Ya;try{return Sg(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",c(),Ae();var d=he.H;he.H=Ya;try{return sc(a,i,l)}finally{he.H=d}},useRef:function(){return pe="useRef",c(),Ae(),Rt().memoizedState},useState:function(){pe="useState",c(),Ae();var a=he.H;he.H=Ya;try{return sc(qa)}finally{he.H=a}},useDebugValue:function(){pe="useDebugValue",c(),Ae()},useDeferredValue:function(a,i){return pe="useDeferredValue",c(),Ae(),bP(a,i)},useTransition:function(){return pe="useTransition",c(),Ae(),AP()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",c(),Ae(),vg(a,i,l)},useId:function(){return pe="useId",c(),Ae(),Rt().memoizedState},useFormState:function(a){return pe="useFormState",c(),Ae(),yg(a)},useActionState:function(a){return pe="useActionState",c(),Ae(),yg(a)},useOptimistic:function(a,i){return pe="useOptimistic",c(),Ae(),uP(a,i)},useMemoCache:function(a){return c(),Cl(a)},useHostTransitionStatus:Dl,useCacheRefresh:function(){return pe="useCacheRefresh",Ae(),Rt().memoizedState},useEffectEvent:function(a){return pe="useEffectEvent",c(),Ae(),wg(a)}},Tv={readContext:function(a){return f(),tn(a)},use:function(a){return c(),xs(a)},useCallback:function(a,i){return pe="useCallback",c(),Ae(),Eg(a,i)},useContext:function(a){return pe="useContext",c(),Ae(),tn(a)},useEffect:function(a,i){pe="useEffect",c(),Ae(),Ir(2048,Tr,a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",c(),Ae(),Ng(a,i,l)},useInsertionEffect:function(a,i){return pe="useInsertionEffect",c(),Ae(),Ir(4,Or,a,i)},useLayoutEffect:function(a,i){return pe="useLayoutEffect",c(),Ae(),Ir(4,ia,a,i)},useMemo:function(a,i){pe="useMemo",c(),Ae();var l=he.H;he.H=Ya;try{return Sg(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",c(),Ae();var d=he.H;he.H=Ya;try{return kf(a,i,l)}finally{he.H=d}},useRef:function(){return pe="useRef",c(),Ae(),Rt().memoizedState},useState:function(){pe="useState",c(),Ae();var a=he.H;he.H=Ya;try{return kf(qa)}finally{he.H=a}},useDebugValue:function(){pe="useDebugValue",c(),Ae()},useDeferredValue:function(a,i){return pe="useDeferredValue",c(),Ae(),xP(a,i)},useTransition:function(){return pe="useTransition",c(),Ae(),OP()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",c(),Ae(),vg(a,i,l)},useId:function(){return pe="useId",c(),Ae(),Rt().memoizedState},useFormState:function(a){return pe="useFormState",c(),Ae(),bg(a)},useActionState:function(a){return pe="useActionState",c(),Ae(),bg(a)},useOptimistic:function(a,i){return pe="useOptimistic",c(),Ae(),dP(a,i)},useMemoCache:function(a){return c(),Cl(a)},useHostTransitionStatus:Dl,useCacheRefresh:function(){return pe="useCacheRefresh",Ae(),Rt().memoizedState},useEffectEvent:function(a){return pe="useEffectEvent",c(),Ae(),wg(a)}};var g3={},v3=new Set,y3=new Set,b3=new Set,x3=new Set,w3=new Set,N3=new Set,E3=new Set,S3=new Set,A3=new Set,O3=new Set;Object.freeze(g3);var wN={enqueueSetState:function(a,i,l){a=a._reactInternals;var d=Jr(a),h=gs(d);h.payload=i,l!=null&&(A1(l),h.callback=l),i=vs(a,h,d),i!==null&&(yi(d,"this.setState()",a),un(i,a,d),jf(i,a,d))},enqueueReplaceState:function(a,i,l){a=a._reactInternals;var d=Jr(a),h=gs(d);h.tag=l3,h.payload=i,l!=null&&(A1(l),h.callback=l),i=vs(a,h,d),i!==null&&(yi(d,"this.replaceState()",a),un(i,a,d),jf(i,a,d))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var l=Jr(a),d=gs(l);d.tag=u3,i!=null&&(A1(i),d.callback=i),i=vs(a,d,l),i!==null&&(yi(l,"this.forceUpdate()",a),un(i,a,l),jf(i,a,l))}},Fc=null,NN=null,EN=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),An=!1,T3={},C3={},_3={},D3={},Kc=!1,R3={},Cv={},SN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},j3=!1,P3=null;P3=new Set;var $o=!1,On=!1,AN=!1,M3=typeof WeakSet=="function"?WeakSet:Set,Kn=null,Gc=null,Yc=null,Tn=null,Br=!1,Qa=null,Pn=!1,jm=8192,bX={getCacheForType:function(a){var i=tn(Nn),l=i.data.get(a);return l===void 0&&(l=a(),i.data.set(a,l)),l},cacheSignal:function(){return tn(Nn).controller.signal},getOwner:function(){return na}};if(typeof Symbol=="function"&&Symbol.for){var Pm=Symbol.for;Pm("selector.component"),Pm("selector.has_pseudo_class"),Pm("selector.role"),Pm("selector.test_id"),Pm("selector.text")}var xX=[],wX=typeof WeakMap=="function"?WeakMap:Map,Gn=0,Mn=2,oa=4,Vo=0,Mm=1,Gl=2,_v=3,$s=4,Dv=6,L3=5,xt=Gn,zt=null,ut=null,st=0,zr=0,Rv=1,Yl=2,Lm=3,k3=4,ON=5,km=6,jv=7,TN=8,Ql=9,jt=zr,sa=null,Vs=!1,Qc=!1,CN=!1,zi=0,sn=Vo,Bs=0,zs=0,_N=0,Ur=0,Xl=0,Im=null,Cr=null,Pv=!1,Mv=0,I3=0,$3=300,Lv=1/0,V3=500,$m=null,mn=null,Us=null,kv=0,DN=1,RN=2,B3=3,qs=0,z3=1,U3=2,q3=3,H3=4,Iv=5,Cn=0,Hs=null,Xc=null,Xa=0,jN=0,PN=-0,MN=null,F3=null,K3=null,Wa=kv,G3=null,NX=50,Vm=0,LN=null,kN=!1,$v=!1,EX=50,Wl=0,Bm=null,Wc=!1,Vv=null,Y3=!1,Q3=new Set,SX={},Bv=null,Zc=null,IN=!1,$N=!1,zv=!1,VN=!1,Fs=0,BN={};(function(){for(var a=0;a<Ww.length;a++){var i=Ww[a],l=i.toLowerCase();i=i[0].toUpperCase()+i.slice(1),za(l,"on"+i)}za(Ak,"onAnimationEnd"),za(Ok,"onAnimationIteration"),za(Tk,"onAnimationStart"),za("dblclick","onDoubleClick"),za("focusin","onFocus"),za("focusout","onBlur"),za(JQ,"onTransitionRun"),za(eX,"onTransitionStart"),za(tX,"onTransitionCancel"),za(Ck,"onTransitionEnd")})(),Be("onMouseEnter",["mouseout","mouseover"]),Be("onMouseLeave",["mouseout","mouseover"]),Be("onPointerEnter",["pointerout","pointerover"]),Be("onPointerLeave",["pointerout","pointerover"]),He("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),He("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),He("onBeforeInput",["compositionend","keypress","textInput","paste"]),He("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),He("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),He("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zm="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(" "),zN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zm)),Uv="_reactListening"+Math.random().toString(36).slice(2),X3=!1,W3=!1,qv=!1,Z3=!1,Hv=!1,Fv=!1,J3=!1,Kv={},AX=/\r\n?/g,OX=/\u0000|\uFFFD/g,Zl="http://www.w3.org/1999/xlink",UN="http://www.w3.org/XML/1998/namespace",TX="javascript:throw new Error('React form unexpectedly submitted.')",CX="suppressHydrationWarning",Jl="&",Gv="/&",Um="$",qm="/$",Ks="$?",eu="$~",Jc="$!",_X="html",DX="body",RX="head",qN="F!",eI="F",tI="loading",jX="style",Bo=0,ed=1,Yv=2,HN=null,FN=null,nI={dialog:!0,webview:!0},KN=null,Hm=void 0,rI=typeof setTimeout=="function"?setTimeout:void 0,PX=typeof clearTimeout=="function"?clearTimeout:void 0,tu=-1,aI=typeof Promise=="function"?Promise:void 0,MX=typeof queueMicrotask=="function"?queueMicrotask:typeof aI<"u"?function(a){return aI.resolve(null).then(a).catch(gY)}:rI,GN=null,nu=0,Fm=1,iI=2,oI=3,Ca=4,_a=new Map,sI=new Set,zo=_t.d;_t.d={f:function(){var a=zo.f(),i=mc();return a||i},r:function(a){var i=Te(a);i!==null&&i.tag===5&&i.type==="form"?SP(i):zo.r(a)},D:function(a){zo.D(a),vL("dns-prefetch",a,null)},C:function(a,i){zo.C(a,i),vL("preconnect",a,i)},L:function(a,i,l){zo.L(a,i,l);var d=td;if(d&&a&&i){var h='link[rel="preload"][as="'+ha(i)+'"]';i==="image"&&l&&l.imageSrcSet?(h+='[imagesrcset="'+ha(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(h+='[imagesizes="'+ha(l.imageSizes)+'"]')):h+='[href="'+ha(a)+'"]';var v=h;switch(i){case"style":v=gc(a);break;case"script":v=vc(a)}_a.has(v)||(a=dt({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:a,as:i},l),_a.set(v,a),d.querySelector(h)!==null||i==="style"&&d.querySelector(Wf(v))||i==="script"&&d.querySelector(Zf(v))||(i=d.createElement("link"),er(i,"link",a),Se(i),d.head.appendChild(i)))}},m:function(a,i){zo.m(a,i);var l=td;if(l&&a){var d=i&&typeof i.as=="string"?i.as:"script",h='link[rel="modulepreload"][as="'+ha(d)+'"][href="'+ha(a)+'"]',v=h;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=vc(a)}if(!_a.has(v)&&(a=dt({rel:"modulepreload",href:a},i),_a.set(v,a),l.querySelector(h)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Zf(v)))return}d=l.createElement("link"),er(d,"link",a),Se(d),l.head.appendChild(d)}}},X:function(a,i){zo.X(a,i);var l=td;if(l&&a){var d=Ze(l).hoistableScripts,h=vc(a),v=d.get(h);v||(v=l.querySelector(Zf(h)),v||(a=dt({src:a,async:!0},i),(i=_a.get(h))&&hw(a,i),v=l.createElement("script"),Se(v),er(v,"link",a),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(h,v))}},S:function(a,i,l){zo.S(a,i,l);var d=td;if(d&&a){var h=Ze(d).hoistableStyles,v=gc(a);i=i||"default";var E=h.get(v);if(!E){var O={loading:nu,preload:null};if(E=d.querySelector(Wf(v)))O.loading=Fm|Ca;else{a=dt({rel:"stylesheet",href:a,"data-precedence":i},l),(l=_a.get(v))&&pw(a,l);var M=E=d.createElement("link");Se(M),er(M,"link",a),M._p=new Promise(function(I,oe){M.onload=I,M.onerror=oe}),M.addEventListener("load",function(){O.loading|=Fm}),M.addEventListener("error",function(){O.loading|=iI}),O.loading|=Ca,qg(E,i,d)}E={type:"stylesheet",instance:E,count:1,state:O},h.set(v,E)}}},M:function(a,i){zo.M(a,i);var l=td;if(l&&a){var d=Ze(l).hoistableScripts,h=vc(a),v=d.get(h);v||(v=l.querySelector(Zf(h)),v||(a=dt({src:a,async:!0,type:"module"},i),(i=_a.get(h))&&hw(a,i),v=l.createElement("script"),Se(v),er(v,"link",a),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(h,v))}}};var td=typeof document>"u"?null:document,Qv=null,LX=6e4,kX=800,IX=500,YN=0,QN=null,Xv=null,ru=WY,Km={$$typeof:ji,Provider:null,Consumer:null,_currentValue:ru,_currentValue2:ru,_threadCount:0},lI="%c%s%c",uI="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",cI="",Wv=" ",$X=Function.prototype.bind,dI=!1,fI=null,mI=null,pI=null,hI=null,gI=null,vI=null,yI=null,bI=null,xI=null,wI=null;fI=function(a,i,l,d){i=e(a,i),i!==null&&(l=t(i.memoizedState,l,0,d),i.memoizedState=l,i.baseState=l,a.memoizedProps=dt({},a.memoizedProps),l=or(a,2),l!==null&&un(l,a,2))},mI=function(a,i,l){i=e(a,i),i!==null&&(l=o(i.memoizedState,l,0),i.memoizedState=l,i.baseState=l,a.memoizedProps=dt({},a.memoizedProps),l=or(a,2),l!==null&&un(l,a,2))},pI=function(a,i,l,d){i=e(a,i),i!==null&&(l=n(i.memoizedState,l,d),i.memoizedState=l,i.baseState=l,a.memoizedProps=dt({},a.memoizedProps),l=or(a,2),l!==null&&un(l,a,2))},hI=function(a,i,l){a.pendingProps=t(a.memoizedProps,i,0,l),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=or(a,2),i!==null&&un(i,a,2)},gI=function(a,i){a.pendingProps=o(a.memoizedProps,i,0),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=or(a,2),i!==null&&un(i,a,2)},vI=function(a,i,l){a.pendingProps=n(a.memoizedProps,i,l),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=or(a,2),i!==null&&un(i,a,2)},yI=function(a){var i=or(a,2);i!==null&&un(i,a,2)},bI=function(a){var i=Gr(),l=or(a,i);l!==null&&un(l,a,i)},xI=function(a){u=a},wI=function(a){s=a};var Zv=!0,Jv=null,XN=!1,Gs=null,Ys=null,Qs=null,Gm=new Map,Ym=new Map,Xs=[],VX="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".split(" "),ey=null;if(Yg.prototype.render=ww.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error("Cannot update an unmounted root.");var l=arguments;typeof l[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):N(l[1])?console.error("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 l[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),l=a;var d=i.current,h=Jr(d);gw(d,h,l,i,null,null)},Yg.prototype.unmount=ww.prototype.unmount=function(){var a=arguments;if(typeof a[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),a=this._internalRoot,a!==null){this._internalRoot=null;var i=a.containerInfo;(xt&(Mn|oa))!==Gn&&console.error("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."),gw(a.current,2,null,a,null,null),mc(),i[Ts]=null}},Yg.prototype.unstable_scheduleHydration=function(a){if(a){var i=pi();a={blockedOn:null,target:a,priority:i};for(var l=0;l<Xs.length&&i!==0&&i<Xs[l].priority;l++);Xs.splice(l,0,a),l===0&&RL(a)}},(function(){var a=Nw.version;if(a!=="19.2.1")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
||
- react: `+(a+`
|
||
- react-dom: 19.2.1
|
||
Learn more: https://react.dev/warnings/version-mismatch`))})(),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"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),_t.findDOMNode=function(a){var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error("Unable to find node on an unmounted component."):(a=Object.keys(a).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+a));return a=A(i),a=a!==null?_(a):null,a=a===null?null:a.stateNode,a},!(function(){var a={bundleType:1,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:he,reconcilerVersion:"19.2.1"};return a.overrideHookState=fI,a.overrideHookStateDeletePath=mI,a.overrideHookStateRenamePath=pI,a.overrideProps=hI,a.overridePropsDeletePath=gI,a.overridePropsRenamePath=vI,a.scheduleUpdate=yI,a.scheduleRetry=bI,a.setErrorHandler=xI,a.setSuspenseHandler=wI,a.scheduleRefresh=S,a.scheduleRoot=b,a.setRefreshHandler=x,a.getCurrentFiber=UY,xn(a)})()&&Ii&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var NI=window.location.protocol;/^(https?|file):$/.test(NI)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(NI==="file:"?`
|
||
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Zm.createRoot=function(a,i){if(!N(a))throw Error("Target container is not a DOM element.");LL(a);var l=!1,d="",h=jP,v=PP,E=MP;return i!=null&&(i.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof i=="object"&&i!==null&&i.$$typeof===Ri&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
||
|
||
let root = createRoot(domContainer);
|
||
root.render(<App />);`),i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError)),i=SL(a,1,!1,null,null,l,d,null,h,v,E,ML),a[Ts]=i.current,nw(a),new ww(i)},Zm.hydrateRoot=function(a,i,l){if(!N(a))throw Error("Target container is not a DOM element.");LL(a),i===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var d=!1,h="",v=jP,E=PP,O=MP,M=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(E=l.onCaughtError),l.onRecoverableError!==void 0&&(O=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),i=SL(a,1,!0,i,l??null,d,h,M,v,E,O,ML),i.context=AL(null),l=i.current,d=Jr(l),d=mi(d),h=gs(d),h.callback=null,vs(l,h,d),yi(d,"hydrateRoot()",null),l=d,i.current.lanes=l,Ba(i,l),_i(i),a[Ts]=i.current,nw(a),new Yg(i)},Zm.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Zm}var v5;function fee(){return v5||(v5=1,uE.exports=dee()),uE.exports}var mee=fee(),pee=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),hU=(function(){function e(t){this.generateIdentifier=t,this.kv=new pee}return e.prototype.register=function(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),hee=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),gee=(function(e){hee(t,e);function t(){var n=e.call(this,function(r){return r.name})||this;return n.classToAllowedProps=new Map,n}return t.prototype.register=function(n,r){typeof r=="object"?(r.allowProps&&this.classToAllowedProps.set(n,r.allowProps),e.prototype.register.call(this,n,r.identifier)):e.prototype.register.call(this,n,r)},t.prototype.getAllowedProps=function(n){return this.classToAllowedProps.get(n)},t})(hU),vee=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],u;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(c){u={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return s};function yee(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function bee(e,t){var n=yee(e);if("find"in n)return n.find(t);for(var r=n,o=0;o<r.length;o++){var s=r[o];if(t(s))return s}}function Sd(e,t){Object.entries(e).forEach(function(n){var r=vee(n,2),o=r[0],s=r[1];return t(s,o)})}function My(e,t){return e.indexOf(t)!==-1}function y5(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var xee=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return bee(this.transfomers,function(n){return n.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),wee=function(e){return Object.prototype.toString.call(e).slice(8,-1)},gU=function(e){return typeof e>"u"},Nee=function(e){return e===null},Rp=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},eC=function(e){return Rp(e)&&Object.keys(e).length===0},ul=function(e){return Array.isArray(e)},Eee=function(e){return typeof e=="string"},See=function(e){return typeof e=="number"&&!isNaN(e)},Aee=function(e){return typeof e=="boolean"},Oee=function(e){return e instanceof RegExp},jp=function(e){return e instanceof Map},Pp=function(e){return e instanceof Set},vU=function(e){return wee(e)==="Symbol"},Tee=function(e){return e instanceof Date&&!isNaN(e.valueOf())},Cee=function(e){return e instanceof Error},b5=function(e){return typeof e=="number"&&isNaN(e)},_ee=function(e){return Aee(e)||Nee(e)||gU(e)||See(e)||Eee(e)||vU(e)},Dee=function(e){return typeof e=="bigint"},Ree=function(e){return e===1/0||e===-1/0},jee=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},Pee=function(e){return e instanceof URL},yU=function(e){return e.replace(/\./g,"\\.")},mE=function(e){return e.map(String).map(yU).join(".")},bp=function(e){for(var t=[],n="",r=0;r<e.length;r++){var o=e.charAt(r),s=o==="\\"&&e.charAt(r+1)===".";if(s){n+=".",r++;continue}var u=o===".";if(u){t.push(n),n="";continue}n+=o}var c=n;return t.push(c),t},tC=function(){return tC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tC.apply(this,arguments)},nC=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],u;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(c){u={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return s},rC=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function Ui(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var bU=[Ui(gU,"undefined",function(){return null},function(){}),Ui(Dee,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),Ui(Tee,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),Ui(Cee,"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n}),Ui(Oee,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Ui(Pp,"set",function(e){return rC([],nC(e.values()))},function(e){return new Set(e)}),Ui(jp,"map",function(e){return rC([],nC(e.entries()))},function(e){return new Map(e)}),Ui(function(e){return b5(e)||Ree(e)},"number",function(e){return b5(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),Ui(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),Ui(Pee,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function u0(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var xU=u0(function(e,t){if(vU(e)){var n=!!t.symbolRegistry.getIdentifier(e);return n}return!1},function(e,t){var n=t.symbolRegistry.getIdentifier(e);return["symbol",n]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Mee=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),wU=u0(jee,function(e){return["typed-array",e.constructor.name]},function(e){return rC([],nC(e))},function(e,t){var n=Mee[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function NU(e,t){if(e?.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var EU=u0(NU,function(e,t){var n=t.classRegistry.getIdentifier(e.constructor);return["class",n]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return tC({},e);var r={};return n.forEach(function(o){r[o]=e[o]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),SU=u0(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return["custom",n.name]},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return n.serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Lee=[EU,xU,SU,wU],x5=function(e,t){var n=y5(Lee,function(o){return o.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=y5(bU,function(o){return o.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},AU={};bU.forEach(function(e){AU[e.annotation]=e});var kee=function(e,t,n){if(ul(t))switch(t[0]){case"symbol":return xU.untransform(e,t,n);case"class":return EU.untransform(e,t,n);case"custom":return SU.untransform(e,t,n);case"typed-array":return wU.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=AU[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},fd=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function OU(e){if(My(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(My(e,"prototype"))throw new Error("prototype is not allowed as a property");if(My(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Iee=function(e,t){OU(t);for(var n=0;n<t.length;n++){var r=t[n];if(Pp(e))e=fd(e,+r);else if(jp(e)){var o=+r,s=+t[++n]==0?"key":"value",u=fd(e,o);switch(s){case"key":e=u;break;case"value":e=e.get(u);break}}else e=e[r]}return e},aC=function(e,t,n){if(OU(t),t.length===0)return n(e);for(var r=e,o=0;o<t.length-1;o++){var s=t[o];if(ul(r)){var u=+s;r=r[u]}else if(Rp(r))r=r[s];else if(Pp(r)){var c=+s;r=fd(r,c)}else if(jp(r)){var f=o===t.length-2;if(f)break;var c=+s,m=+t[++o]==0?"key":"value",g=fd(r,c);switch(m){case"key":r=g;break;case"value":r=r.get(g);break}}}var p=t[t.length-1];if(ul(r)?r[+p]=n(r[+p]):Rp(r)&&(r[p]=n(r[p])),Pp(r)){var y=fd(r,+p),b=n(y);y!==b&&(r.delete(y),r.add(b))}if(jp(r)){var c=+t[t.length-2],S=fd(r,c),m=+p==0?"key":"value";switch(m){case"key":{var x=n(S);r.set(x,r.get(S)),x!==S&&r.delete(S);break}case"value":{r.set(S,n(r.get(S)));break}}}return e},Ko=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],u;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(c){u={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return s},rl=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function iC(e,t,n){if(n===void 0&&(n=[]),!!e){if(!ul(e)){Sd(e,function(u,c){return iC(u,t,rl(rl([],Ko(n)),Ko(bp(c))))});return}var r=Ko(e,2),o=r[0],s=r[1];s&&Sd(s,function(u,c){iC(u,t,rl(rl([],Ko(n)),Ko(bp(c))))}),t(o,n)}}function $ee(e,t,n){return iC(t,function(r,o){e=aC(e,o,function(s){return kee(s,r,n)})}),e}function Vee(e,t){function n(u,c){var f=Iee(e,bp(c));u.map(bp).forEach(function(m){e=aC(e,m,function(){return f})})}if(ul(t)){var r=Ko(t,2),o=r[0],s=r[1];o.forEach(function(u){e=aC(e,bp(u),function(){return e})}),s&&Sd(s,n)}else Sd(t,n);return e}var Bee=function(e,t){return Rp(e)||ul(e)||jp(e)||Pp(e)||NU(e,t)};function zee(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}function Uee(e,t){var n={},r=void 0;return e.forEach(function(o){if(!(o.length<=1)){t||(o=o.map(function(f){return f.map(String)}).sort(function(f,m){return f.length-m.length}));var s=Ko(o),u=s[0],c=s.slice(1);u.length===0?r=c.map(mE):n[mE(u)]=c.map(mE)}}),r?eC(n)?[r]:[r,n]:eC(n)?void 0:n}var TU=function(e,t,n,r,o,s,u){var c;o===void 0&&(o=[]),s===void 0&&(s=[]),u===void 0&&(u=new Map);var f=_ee(e);if(!f){zee(e,o,t);var m=u.get(e);if(m)return r?{transformedValue:null}:m}if(!Bee(e,n)){var g=x5(e,n),p=g?{transformedValue:g.value,annotations:[g.type]}:{transformedValue:e};return f||u.set(e,p),p}if(My(s,e))return{transformedValue:null};var y=x5(e,n),b=(c=y?.value)!==null&&c!==void 0?c:e,S=ul(b)?[]:{},x={};Sd(b,function(T,C){var D=TU(T,t,n,r,rl(rl([],Ko(o)),[C]),rl(rl([],Ko(s)),[e]),u);S[C]=D.transformedValue,ul(D.annotations)?x[C]=D.annotations:Rp(D.annotations)&&Sd(D.annotations,function(P,A){x[yU(C)+"."+A]=P})});var N=eC(x)?{transformedValue:S,annotations:y?[y.type]:void 0}:{transformedValue:S,annotations:y?[y.type,x]:x};return f||u.set(e,N),N};function CU(e){return Object.prototype.toString.call(e).slice(8,-1)}function w5(e){return CU(e)==="Array"}function qee(e){if(CU(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Hee(e,t,n,r,o){const s={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";s==="enumerable"&&(e[t]=n),o&&s==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function oC(e,t={}){if(w5(e))return e.map(o=>oC(o,t));if(!qee(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(w5(t.props)&&!t.props.includes(s))return o;const u=e[s],c=oC(u,t);return Hee(o,s,c,e,t.nonenumerable),o},{})}var mu=function(){return mu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mu.apply(this,arguments)},Fee=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],u;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(c){u={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return s},Kee=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},as=(function(){function e(t){var n=t===void 0?{}:t,r=n.dedupe,o=r===void 0?!1:r;this.classRegistry=new gee,this.symbolRegistry=new hU(function(s){var u;return(u=s.description)!==null&&u!==void 0?u:""}),this.customTransformerRegistry=new xee,this.allowedErrorProps=[],this.dedupe=o}return e.prototype.serialize=function(t){var n=new Map,r=TU(t,n,this,this.dedupe),o={json:r.transformedValue};r.annotations&&(o.meta=mu(mu({},o.meta),{values:r.annotations}));var s=Uee(n,this.dedupe);return s&&(o.meta=mu(mu({},o.meta),{referentialEqualities:s})),o},e.prototype.deserialize=function(t){var n=t.json,r=t.meta,o=oC(n);return r?.values&&(o=$ee(o,r.values,this)),r?.referentialEqualities&&(o=Vee(o,r.referentialEqualities)),o},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,n){this.classRegistry.register(t,n)},e.prototype.registerSymbol=function(t,n){this.symbolRegistry.register(t,n)},e.prototype.registerCustom=function(t,n){this.customTransformerRegistry.register(mu({name:n},t))},e.prototype.allowErrorProps=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];(t=this.allowedErrorProps).push.apply(t,Kee([],Fee(n)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();as.serialize;as.deserialize;as.stringify;as.parse;as.registerClass;as.registerCustom;as.registerSymbol;as.allowErrorProps;var Gee=(e,t,n,r,o,s,u,c)=>{let f=document.documentElement,m=["light","dark"];function g(b){(Array.isArray(e)?e:[e]).forEach(S=>{let x=S==="class",N=x&&s?o.map(T=>s[T]||T):o;x?(f.classList.remove(...N),f.classList.add(s&&s[b]?s[b]:b)):f.setAttribute(S,b)}),p(b)}function p(b){c&&m.includes(b)&&(f.style.colorScheme=b)}function y(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)g(r);else try{let b=localStorage.getItem(t)||n,S=u&&b==="system"?y():b;g(S)}catch{}},Yee=R.createContext(void 0),Qee={setTheme:e=>{},themes:[]},Xee=()=>{var e;return(e=R.useContext(Yee))!=null?e:Qee};R.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:u,themes:c,nonce:f,scriptProps:m})=>{let g=JSON.stringify([n,t,s,e,c,u,r,o]).slice(1,-1);return R.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${Gee.toString()})(${g})`}})});var Oh=pU();const _U=It(Oh);function Wee(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Zee=e=>{switch(e){case"success":return tte;case"info":return rte;case"warning":return nte;case"error":return ate;default:return null}},Jee=Array(12).fill(0),ete=({visible:e,className:t})=>F.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},F.createElement("div",{className:"sonner-spinner"},Jee.map((n,r)=>F.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),tte=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),nte=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),rte=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ate=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ite=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ote=()=>{const[e,t]=F.useState(document.hidden);return F.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let sC=1;class ste{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:sC++,u=this.toasts.find(f=>f.id===s),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),u?this.toasts=this.toasts.map(f=>f.id===s?(this.publish({...f,...t,id:s,title:r}),{...f,...t,id:s,dismissible:c,title:r}):f):this.addToast({title:r,...o,dismissible:c,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,u;const c=o.then(async m=>{if(u=["resolve",m],F.isValidElement(m))s=!1,this.create({id:r,type:"default",message:m});else if(ute(m)&&!m.ok){s=!1;const p=typeof n.error=="function"?await n.error(`HTTP error! status: ${m.status}`):n.error,y=typeof n.description=="function"?await n.description(`HTTP error! status: ${m.status}`):n.description,S=typeof p=="object"&&!F.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:y,...S})}else if(m instanceof Error){s=!1;const p=typeof n.error=="function"?await n.error(m):n.error,y=typeof n.description=="function"?await n.description(m):n.description,S=typeof p=="object"&&!F.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:y,...S})}else if(n.success!==void 0){s=!1;const p=typeof n.success=="function"?await n.success(m):n.success,y=typeof n.description=="function"?await n.description(m):n.description,S=typeof p=="object"&&!F.isValidElement(p)?p:{message:p};this.create({id:r,type:"success",description:y,...S})}}).catch(async m=>{if(u=["reject",m],n.error!==void 0){s=!1;const g=typeof n.error=="function"?await n.error(m):n.error,p=typeof n.description=="function"?await n.description(m):n.description,b=typeof g=="object"&&!F.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:p,...b})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((m,g)=>c.then(()=>u[0]==="reject"?g(u[1]):m(u[1])).catch(g));return typeof r!="string"&&typeof r!="number"?{unwrap:f}:Object.assign(r,{unwrap:f})},this.custom=(t,n)=>{const r=n?.id||sC++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qr=new ste,lte=(e,t)=>{const n=t?.id||sC++;return qr.addToast({title:e,...t,id:n}),n},ute=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",cte=lte,dte=()=>qr.toasts,fte=()=>qr.getActiveToasts(),Ft=Object.assign(cte,{success:qr.success,info:qr.info,warning:qr.warning,error:qr.error,custom:qr.custom,message:qr.message,promise:qr.promise,dismiss:qr.dismiss,loading:qr.loading},{getHistory:dte,getToasts:fte});Wee("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ly(e){return e.label!==void 0}const mte=3,pte="24px",hte="16px",N5=4e3,gte=356,vte=14,yte=45,bte=200;function qi(...e){return e.filter(Boolean).join(" ")}function xte(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const wte=e=>{var t,n,r,o,s,u,c,f,m;const{invert:g,toast:p,unstyled:y,interacting:b,setHeights:S,visibleToasts:x,heights:N,index:T,toasts:C,expanded:D,removeToast:P,defaultRichColors:A,closeButton:_,style:j,cancelButtonStyle:L,actionButtonStyle:V,className:B="",descriptionClassName:U="",duration:H,position:G,gap:Y,expandByDefault:J,classNames:q,icons:z,closeButtonAriaLabel:K="Close toast"}=e,[te,ne]=F.useState(null),[k,Q]=F.useState(null),[W,ae]=F.useState(!1),[ge,Ne]=F.useState(!1),[ce,xe]=F.useState(!1),[me,be]=F.useState(!1),[de,ie]=F.useState(!1),[ze,we]=F.useState(0),[lt,$e]=F.useState(0),et=F.useRef(p.duration||H||N5),zn=F.useRef(null),xn=F.useRef(null),je=T===0,ir=T+1<=x,wt=p.type,Un=p.dismissible!==!1,Mr=p.className||"",di=p.descriptionClassName||"",Gr=F.useMemo(()=>N.findIndex(Se=>Se.toastId===p.id)||0,[N,p.id]),fi=F.useMemo(()=>{var Se;return(Se=p.closeButton)!=null?Se:_},[p.closeButton,_]),Ba=F.useMemo(()=>p.duration||H||N5,[p.duration,H]),cs=F.useRef(0),pa=F.useRef(0),ds=F.useRef(0),Lr=F.useRef(null),[mi,fo]=G.split("-"),mo=F.useMemo(()=>N.reduce((Se,He,Be)=>Be>=Gr?Se:Se+He.height,0),[N,Gr]),po=ote(),pi=p.invert||g,$=wt==="loading";pa.current=F.useMemo(()=>Gr*Y+mo,[Gr,mo]),F.useEffect(()=>{et.current=Ba},[Ba]),F.useEffect(()=>{ae(!0)},[]),F.useEffect(()=>{const Se=xn.current;if(Se){const He=Se.getBoundingClientRect().height;return $e(He),S(Be=>[{toastId:p.id,height:He,position:p.position},...Be]),()=>S(Be=>Be.filter($t=>$t.toastId!==p.id))}},[S,p.id]),F.useLayoutEffect(()=>{if(!W)return;const Se=xn.current,He=Se.style.height;Se.style.height="auto";const Be=Se.getBoundingClientRect().height;Se.style.height=He,$e(Be),S($t=>$t.find(dn=>dn.toastId===p.id)?$t.map(dn=>dn.toastId===p.id?{...dn,height:Be}:dn):[{toastId:p.id,height:Be,position:p.position},...$t])},[W,p.title,p.description,S,p.id,p.jsx,p.action,p.cancel]);const ue=F.useCallback(()=>{Ne(!0),we(pa.current),S(Se=>Se.filter(He=>He.toastId!==p.id)),setTimeout(()=>{P(p)},bte)},[p,P,S,pa]);F.useEffect(()=>{if(p.promise&&wt==="loading"||p.duration===1/0||p.type==="loading")return;let Se;return D||b||po?(()=>{if(ds.current<cs.current){const $t=new Date().getTime()-cs.current;et.current=et.current-$t}ds.current=new Date().getTime()})():(()=>{et.current!==1/0&&(cs.current=new Date().getTime(),Se=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),ue()},et.current))})(),()=>clearTimeout(Se)},[D,b,p,wt,po,ue]),F.useEffect(()=>{p.delete&&(ue(),p.onDismiss==null||p.onDismiss.call(p,p))},[ue,p.delete]);function Ee(){var Se;if(z?.loading){var He;return F.createElement("div",{className:qi(q?.loader,p==null||(He=p.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":wt==="loading"},z.loading)}return F.createElement(ete,{className:qi(q?.loader,p==null||(Se=p.classNames)==null?void 0:Se.loader),visible:wt==="loading"})}const Te=p.icon||z?.[wt]||Zee(wt);var Me,Ze;return F.createElement("li",{tabIndex:0,ref:xn,className:qi(B,Mr,q?.toast,p==null||(t=p.classNames)==null?void 0:t.toast,q?.default,q?.[wt],p==null||(n=p.classNames)==null?void 0:n[wt]),"data-sonner-toast":"","data-rich-colors":(Me=p.richColors)!=null?Me:A,"data-styled":!(p.jsx||p.unstyled||y),"data-mounted":W,"data-promise":!!p.promise,"data-swiped":de,"data-removed":ge,"data-visible":ir,"data-y-position":mi,"data-x-position":fo,"data-index":T,"data-front":je,"data-swiping":ce,"data-dismissible":Un,"data-type":wt,"data-invert":pi,"data-swipe-out":me,"data-swipe-direction":k,"data-expanded":!!(D||J&&W),"data-testid":p.testId,style:{"--index":T,"--toasts-before":T,"--z-index":C.length-T,"--offset":`${ge?ze:pa.current}px`,"--initial-height":J?"auto":`${lt}px`,...j,...p.style},onDragEnd:()=>{xe(!1),ne(null),Lr.current=null},onPointerDown:Se=>{Se.button!==2&&($||!Un||(zn.current=new Date,we(pa.current),Se.target.setPointerCapture(Se.pointerId),Se.target.tagName!=="BUTTON"&&(xe(!0),Lr.current={x:Se.clientX,y:Se.clientY})))},onPointerUp:()=>{var Se,He,Be;if(me||!Un)return;Lr.current=null;const $t=Number(((Se=xn.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),br=Number(((He=xn.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),dn=new Date().getTime()-((Be=zn.current)==null?void 0:Be.getTime()),Rn=te==="x"?$t:br,ho=Math.abs(Rn)/dn;if(Math.abs(Rn)>=yte||ho>.11){we(pa.current),p.onDismiss==null||p.onDismiss.call(p,p),Q(te==="x"?$t>0?"right":"left":br>0?"down":"up"),ue(),be(!0);return}else{var gn,an;(gn=xn.current)==null||gn.style.setProperty("--swipe-amount-x","0px"),(an=xn.current)==null||an.style.setProperty("--swipe-amount-y","0px")}ie(!1),xe(!1),ne(null)},onPointerMove:Se=>{var He,Be,$t;if(!Lr.current||!Un||((He=window.getSelection())==null?void 0:He.toString().length)>0)return;const dn=Se.clientY-Lr.current.y,Rn=Se.clientX-Lr.current.x;var ho;const gn=(ho=e.swipeDirections)!=null?ho:xte(G);!te&&(Math.abs(Rn)>1||Math.abs(dn)>1)&&ne(Math.abs(Rn)>Math.abs(dn)?"x":"y");let an={x:0,y:0};const bf=go=>1/(1.5+Math.abs(go)/20);if(te==="y"){if(gn.includes("top")||gn.includes("bottom"))if(gn.includes("top")&&dn<0||gn.includes("bottom")&&dn>0)an.y=dn;else{const go=dn*bf(dn);an.y=Math.abs(go)<Math.abs(dn)?go:dn}}else if(te==="x"&&(gn.includes("left")||gn.includes("right")))if(gn.includes("left")&&Rn<0||gn.includes("right")&&Rn>0)an.x=Rn;else{const go=Rn*bf(Rn);an.x=Math.abs(go)<Math.abs(Rn)?go:Rn}(Math.abs(an.x)>0||Math.abs(an.y)>0)&&ie(!0),(Be=xn.current)==null||Be.style.setProperty("--swipe-amount-x",`${an.x}px`),($t=xn.current)==null||$t.style.setProperty("--swipe-amount-y",`${an.y}px`)}},fi&&!p.jsx&&wt!=="loading"?F.createElement("button",{"aria-label":K,"data-disabled":$,"data-close-button":!0,onClick:$||!Un?()=>{}:()=>{ue(),p.onDismiss==null||p.onDismiss.call(p,p)},className:qi(q?.closeButton,p==null||(r=p.classNames)==null?void 0:r.closeButton)},(Ze=z?.close)!=null?Ze:ite):null,(wt||p.icon||p.promise)&&p.icon!==null&&(z?.[wt]!==null||p.icon)?F.createElement("div",{"data-icon":"",className:qi(q?.icon,p==null||(o=p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Ee():null,p.type!=="loading"?Te:null):null,F.createElement("div",{"data-content":"",className:qi(q?.content,p==null||(s=p.classNames)==null?void 0:s.content)},F.createElement("div",{"data-title":"",className:qi(q?.title,p==null||(u=p.classNames)==null?void 0:u.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?F.createElement("div",{"data-description":"",className:qi(U,di,q?.description,p==null||(c=p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),F.isValidElement(p.cancel)?p.cancel:p.cancel&&ly(p.cancel)?F.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||L,onClick:Se=>{ly(p.cancel)&&Un&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Se),ue())},className:qi(q?.cancelButton,p==null||(f=p.classNames)==null?void 0:f.cancelButton)},p.cancel.label):null,F.isValidElement(p.action)?p.action:p.action&&ly(p.action)?F.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||V,onClick:Se=>{ly(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Se),!Se.defaultPrevented&&ue())},className:qi(q?.actionButton,p==null||(m=p.classNames)==null?void 0:m.actionButton)},p.action.label):null)};function E5(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Nte(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,u=s?"--mobile-offset":"--offset",c=s?hte:pte;function f(m){["top","right","bottom","left"].forEach(g=>{n[`${u}-${g}`]=typeof m=="number"?`${m}px`:m})}typeof r=="number"||typeof r=="string"?f(r):typeof r=="object"?["top","right","bottom","left"].forEach(m=>{r[m]===void 0?n[`${u}-${m}`]=c:n[`${u}-${m}`]=typeof r[m]=="number"?`${r[m]}px`:r[m]}):f(c)}),n}const Ete=F.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:u=["altKey","KeyT"],expand:c,closeButton:f,className:m,offset:g,mobileOffset:p,theme:y="light",richColors:b,duration:S,style:x,visibleToasts:N=mte,toastOptions:T,dir:C=E5(),gap:D=vte,icons:P,containerAriaLabel:A="Notifications"}=t,[_,j]=F.useState([]),L=F.useMemo(()=>r?_.filter(W=>W.toasterId===r):_.filter(W=>!W.toasterId),[_,r]),V=F.useMemo(()=>Array.from(new Set([s].concat(L.filter(W=>W.position).map(W=>W.position)))),[L,s]),[B,U]=F.useState([]),[H,G]=F.useState(!1),[Y,J]=F.useState(!1),[q,z]=F.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=F.useRef(null),te=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),ne=F.useRef(null),k=F.useRef(!1),Q=F.useCallback(W=>{j(ae=>{var ge;return(ge=ae.find(Ne=>Ne.id===W.id))!=null&&ge.delete||qr.dismiss(W.id),ae.filter(({id:Ne})=>Ne!==W.id)})},[]);return F.useEffect(()=>qr.subscribe(W=>{if(W.dismiss){requestAnimationFrame(()=>{j(ae=>ae.map(ge=>ge.id===W.id?{...ge,delete:!0}:ge))});return}setTimeout(()=>{_U.flushSync(()=>{j(ae=>{const ge=ae.findIndex(Ne=>Ne.id===W.id);return ge!==-1?[...ae.slice(0,ge),{...ae[ge],...W},...ae.slice(ge+1)]:[W,...ae]})})})}),[_]),F.useEffect(()=>{if(y!=="system"){z(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;const W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:ae})=>{z(ae?"dark":"light")})}catch{W.addListener(({matches:ge})=>{try{z(ge?"dark":"light")}catch(Ne){console.error(Ne)}})}},[y]),F.useEffect(()=>{_.length<=1&&G(!1)},[_]),F.useEffect(()=>{const W=ae=>{var ge;if(u.every(xe=>ae[xe]||ae.code===xe)){var ce;G(!0),(ce=K.current)==null||ce.focus()}ae.code==="Escape"&&(document.activeElement===K.current||(ge=K.current)!=null&&ge.contains(document.activeElement))&&G(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[u]),F.useEffect(()=>{if(K.current)return()=>{ne.current&&(ne.current.focus({preventScroll:!0}),ne.current=null,k.current=!1)}},[K.current]),F.createElement("section",{ref:n,"aria-label":`${A} ${te}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},V.map((W,ae)=>{var ge;const[Ne,ce]=W.split("-");return L.length?F.createElement("ol",{key:W,dir:C==="auto"?E5():C,tabIndex:-1,ref:K,className:m,"data-sonner-toaster":!0,"data-sonner-theme":q,"data-y-position":Ne,"data-x-position":ce,style:{"--front-toast-height":`${((ge=B[0])==null?void 0:ge.height)||0}px`,"--width":`${gte}px`,"--gap":`${D}px`,...x,...Nte(g,p)},onBlur:xe=>{k.current&&!xe.currentTarget.contains(xe.relatedTarget)&&(k.current=!1,ne.current&&(ne.current.focus({preventScroll:!0}),ne.current=null))},onFocus:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||k.current||(k.current=!0,ne.current=xe.relatedTarget)},onMouseEnter:()=>G(!0),onMouseMove:()=>G(!0),onMouseLeave:()=>{Y||G(!1)},onDragEnd:()=>G(!1),onPointerDown:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},L.filter(xe=>!xe.position&&ae===0||xe.position===W).map((xe,me)=>{var be,de;return F.createElement(wte,{key:xe.id,icons:P,index:me,toast:xe,defaultRichColors:b,duration:(be=T?.duration)!=null?be:S,className:T?.className,descriptionClassName:T?.descriptionClassName,invert:o,visibleToasts:N,closeButton:(de=T?.closeButton)!=null?de:f,interacting:Y,position:W,style:T?.style,unstyled:T?.unstyled,classNames:T?.classNames,cancelButtonStyle:T?.cancelButtonStyle,actionButtonStyle:T?.actionButtonStyle,closeButtonAriaLabel:T?.closeButtonAriaLabel,removeToast:Q,toasts:L.filter(ie=>ie.position==xe.position),heights:B.filter(ie=>ie.position==xe.position),setHeights:U,expandByDefault:c,gap:D,expanded:H,swipeDirections:t.swipeDirections})})):null}))}),Ste=({...e})=>{const{theme:t="system"}=Xee();return w.jsxDEV(Ete,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/sonner.tsx",lineNumber:8,columnNumber:5},void 0)};function Ie(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function S5(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function c0(...e){return t=>{let n=!1;const r=e.map(o=>{const s=S5(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():S5(e[o],null)}}}}function Dt(...e){return R.useCallback(c0(...e),e)}function Ate(e,t){const n=R.createContext(t),r=s=>{const{children:u,...c}=s,f=R.useMemo(()=>c,Object.values(c));return le.jsx(n.Provider,{value:f,children:u})};r.displayName=e+"Provider";function o(s){const u=R.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function is(e,t=[]){let n=[];function r(s,u){const c=R.createContext(u),f=n.length;n=[...n,u];const m=p=>{const{scope:y,children:b,...S}=p,x=y?.[e]?.[f]||c,N=R.useMemo(()=>S,Object.values(S));return le.jsx(x.Provider,{value:N,children:b})};m.displayName=s+"Provider";function g(p,y){const b=y?.[e]?.[f]||c,S=R.useContext(b);if(S)return S;if(u!==void 0)return u;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[m,g]}const o=()=>{const s=n.map(u=>R.createContext(u));return function(c){const f=c?.[e]||s;return R.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return o.scopeName=e,[r,Ote(o,...t)]}function Ote(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const u=r.reduce((c,{useScope:f,scopeName:m})=>{const p=f(s)[`__scope${m}`];return{...c,...p}},{});return R.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function Tu(e){const t=Tte(e),n=R.forwardRef((r,o)=>{const{children:s,...u}=r,c=R.Children.toArray(s),f=c.find(_te);if(f){const m=f.props.children,g=c.map(p=>p===f?R.Children.count(m)>1?R.Children.only(null):R.isValidElement(m)?m.props.children:null:p);return le.jsx(t,{...u,ref:o,children:R.isValidElement(m)?R.cloneElement(m,void 0,g):null})}return le.jsx(t,{...u,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var DU=Tu("Slot");function Tte(e){const t=R.forwardRef((n,r)=>{const{children:o,...s}=n;if(R.isValidElement(o)){const u=Rte(o),c=Dte(s,o.props);return o.type!==R.Fragment&&(c.ref=r?c0(r,u):u),R.cloneElement(o,c)}return R.Children.count(o)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var RU=Symbol("radix.slottable");function Cte(e){const t=({children:n})=>le.jsx(le.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=RU,t}function _te(e){return R.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===RU}function Dte(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const f=s(...c);return o(...c),f}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Rte(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var jte=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pt=jte.reduce((e,t)=>{const n=Tu(`Primitive.${t}`),r=R.forwardRef((o,s)=>{const{asChild:u,...c}=o,f=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),le.jsx(f,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function jU(e,t){e&&Oh.flushSync(()=>e.dispatchEvent(t))}function no(e){const t=R.useRef(e);return R.useEffect(()=>{t.current=e}),R.useMemo(()=>(...n)=>t.current?.(...n),[])}function Pte(e,t=globalThis?.document){const n=no(e);R.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Mte="DismissableLayer",lC="dismissableLayer.update",Lte="dismissableLayer.pointerDownOutside",kte="dismissableLayer.focusOutside",A5,PU=R.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Th=R.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:u,onDismiss:c,...f}=e,m=R.useContext(PU),[g,p]=R.useState(null),y=g?.ownerDocument??globalThis?.document,[,b]=R.useState({}),S=Dt(t,j=>p(j)),x=Array.from(m.layers),[N]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),T=x.indexOf(N),C=g?x.indexOf(g):-1,D=m.layersWithOutsidePointerEventsDisabled.size>0,P=C>=T,A=Vte(j=>{const L=j.target,V=[...m.branches].some(B=>B.contains(L));!P||V||(o?.(j),u?.(j),j.defaultPrevented||c?.())},y),_=Bte(j=>{const L=j.target;[...m.branches].some(B=>B.contains(L))||(s?.(j),u?.(j),j.defaultPrevented||c?.())},y);return Pte(j=>{C===m.layers.size-1&&(r?.(j),!j.defaultPrevented&&c&&(j.preventDefault(),c()))},y),R.useEffect(()=>{if(g)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(A5=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),O5(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=A5)}},[g,y,n,m]),R.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),O5())},[g,m]),R.useEffect(()=>{const j=()=>b({});return document.addEventListener(lC,j),()=>document.removeEventListener(lC,j)},[]),le.jsx(pt.div,{...f,ref:S,style:{pointerEvents:D?P?"auto":"none":void 0,...e.style},onFocusCapture:Ie(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Ie(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Ie(e.onPointerDownCapture,A.onPointerDownCapture)})});Th.displayName=Mte;var Ite="DismissableLayerBranch",$te=R.forwardRef((e,t)=>{const n=R.useContext(PU),r=R.useRef(null),o=Dt(t,r);return R.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),le.jsx(pt.div,{...e,ref:o})});$te.displayName=Ite;function Vte(e,t=globalThis?.document){const n=no(e),r=R.useRef(!1),o=R.useRef(()=>{});return R.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let f=function(){MU(Lte,n,m,{discrete:!0})};const m={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Bte(e,t=globalThis?.document){const n=no(e),r=R.useRef(!1);return R.useEffect(()=>{const o=s=>{s.target&&!r.current&&MU(kte,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function O5(){const e=new CustomEvent(lC);document.dispatchEvent(e)}function MU(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?jU(o,s):o.dispatchEvent(s)}var vr=globalThis?.document?R.useLayoutEffect:()=>{},zte=t0[" useId ".trim().toString()]||(()=>{}),Ute=0;function Wi(e){const[t,n]=R.useState(zte());return vr(()=>{n(r=>r??String(Ute++))},[e]),t?`radix-${t}`:""}const qte=["top","right","bottom","left"],cl=Math.min,ca=Math.max,Ky=Math.round,uy=Math.floor,Zi=e=>({x:e,y:e}),Hte={left:"right",right:"left",bottom:"top",top:"bottom"},Fte={start:"end",end:"start"};function uC(e,t,n){return ca(e,cl(t,n))}function Jo(e,t){return typeof e=="function"?e(t):e}function es(e){return e.split("-")[0]}function tf(e){return e.split("-")[1]}function eD(e){return e==="x"?"y":"x"}function tD(e){return e==="y"?"height":"width"}const Kte=new Set(["top","bottom"]);function Yi(e){return Kte.has(es(e))?"y":"x"}function nD(e){return eD(Yi(e))}function Gte(e,t,n){n===void 0&&(n=!1);const r=tf(e),o=nD(e),s=tD(o);let u=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(u=Gy(u)),[u,Gy(u)]}function Yte(e){const t=Gy(e);return[cC(e),t,cC(t)]}function cC(e){return e.replace(/start|end/g,t=>Fte[t])}const T5=["left","right"],C5=["right","left"],Qte=["top","bottom"],Xte=["bottom","top"];function Wte(e,t,n){switch(e){case"top":case"bottom":return n?t?C5:T5:t?T5:C5;case"left":case"right":return t?Qte:Xte;default:return[]}}function Zte(e,t,n,r){const o=tf(e);let s=Wte(es(e),n==="start",r);return o&&(s=s.map(u=>u+"-"+o),t&&(s=s.concat(s.map(cC)))),s}function Gy(e){return e.replace(/left|right|bottom|top/g,t=>Hte[t])}function Jte(e){return{top:0,right:0,bottom:0,left:0,...e}}function LU(e){return typeof e!="number"?Jte(e):{top:e,right:e,bottom:e,left:e}}function Yy(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function _5(e,t,n){let{reference:r,floating:o}=e;const s=Yi(t),u=nD(t),c=tD(u),f=es(t),m=s==="y",g=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,y=r[c]/2-o[c]/2;let b;switch(f){case"top":b={x:g,y:r.y-o.height};break;case"bottom":b={x:g,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:p};break;case"left":b={x:r.x-o.width,y:p};break;default:b={x:r.x,y:r.y}}switch(tf(t)){case"start":b[u]-=y*(n&&m?-1:1);break;case"end":b[u]+=y*(n&&m?-1:1);break}return b}const ene=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:u}=n,c=s.filter(Boolean),f=await(u.isRTL==null?void 0:u.isRTL(t));let m=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:p}=_5(m,r,f),y=r,b={},S=0;for(let x=0;x<c.length;x++){const{name:N,fn:T}=c[x],{x:C,y:D,data:P,reset:A}=await T({x:g,y:p,initialPlacement:r,placement:y,strategy:o,middlewareData:b,rects:m,platform:u,elements:{reference:e,floating:t}});g=C??g,p=D??p,b={...b,[N]:{...b[N],...P}},A&&S<=50&&(S++,typeof A=="object"&&(A.placement&&(y=A.placement),A.rects&&(m=A.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:g,y:p}=_5(m,y,f)),x=-1)}return{x:g,y:p,placement:y,strategy:o,middlewareData:b}};async function Mp(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:u,elements:c,strategy:f}=e,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:p="floating",altBoundary:y=!1,padding:b=0}=Jo(t,e),S=LU(b),N=c[y?p==="floating"?"reference":"floating":p],T=Yy(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(N)))==null||n?N:N.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:m,rootBoundary:g,strategy:f})),C=p==="floating"?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,D=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),P=await(s.isElement==null?void 0:s.isElement(D))?await(s.getScale==null?void 0:s.getScale(D))||{x:1,y:1}:{x:1,y:1},A=Yy(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:D,strategy:f}):C);return{top:(T.top-A.top+S.top)/P.y,bottom:(A.bottom-T.bottom+S.bottom)/P.y,left:(T.left-A.left+S.left)/P.x,right:(A.right-T.right+S.right)/P.x}}const tne=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:u,elements:c,middlewareData:f}=t,{element:m,padding:g=0}=Jo(e,t)||{};if(m==null)return{};const p=LU(g),y={x:n,y:r},b=nD(o),S=tD(b),x=await u.getDimensions(m),N=b==="y",T=N?"top":"left",C=N?"bottom":"right",D=N?"clientHeight":"clientWidth",P=s.reference[S]+s.reference[b]-y[b]-s.floating[S],A=y[b]-s.reference[b],_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let j=_?_[D]:0;(!j||!await(u.isElement==null?void 0:u.isElement(_)))&&(j=c.floating[D]||s.floating[S]);const L=P/2-A/2,V=j/2-x[S]/2-1,B=cl(p[T],V),U=cl(p[C],V),H=B,G=j-x[S]-U,Y=j/2-x[S]/2+L,J=uC(H,Y,G),q=!f.arrow&&tf(o)!=null&&Y!==J&&s.reference[S]/2-(Y<H?B:U)-x[S]/2<0,z=q?Y<H?Y-H:Y-G:0;return{[b]:y[b]+z,data:{[b]:J,centerOffset:Y-J-z,...q&&{alignmentOffset:z}},reset:q}}}),nne=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:u,initialPlacement:c,platform:f,elements:m}=t,{mainAxis:g=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:x=!0,...N}=Jo(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const T=es(o),C=Yi(c),D=es(c)===c,P=await(f.isRTL==null?void 0:f.isRTL(m.floating)),A=y||(D||!x?[Gy(c)]:Yte(c)),_=S!=="none";!y&&_&&A.push(...Zte(c,x,S,P));const j=[c,...A],L=await Mp(t,N),V=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(g&&V.push(L[T]),p){const Y=Gte(o,u,P);V.push(L[Y[0]],L[Y[1]])}if(B=[...B,{placement:o,overflows:V}],!V.every(Y=>Y<=0)){var U,H;const Y=(((U=s.flip)==null?void 0:U.index)||0)+1,J=j[Y];if(J&&(!(p==="alignment"?C!==Yi(J):!1)||B.every(K=>Yi(K.placement)===C?K.overflows[0]>0:!0)))return{data:{index:Y,overflows:B},reset:{placement:J}};let q=(H=B.filter(z=>z.overflows[0]<=0).sort((z,K)=>z.overflows[1]-K.overflows[1])[0])==null?void 0:H.placement;if(!q)switch(b){case"bestFit":{var G;const z=(G=B.filter(K=>{if(_){const te=Yi(K.placement);return te===C||te==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(te=>te>0).reduce((te,ne)=>te+ne,0)]).sort((K,te)=>K[1]-te[1])[0])==null?void 0:G[0];z&&(q=z);break}case"initialPlacement":q=c;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function D5(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function R5(e){return qte.some(t=>e[t]>=0)}const rne=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Jo(e,t);switch(r){case"referenceHidden":{const s=await Mp(t,{...o,elementContext:"reference"}),u=D5(s,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:R5(u)}}}case"escaped":{const s=await Mp(t,{...o,altBoundary:!0}),u=D5(s,n.floating);return{data:{escapedOffsets:u,escaped:R5(u)}}}default:return{}}}}},kU=new Set(["left","top"]);async function ane(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),u=es(n),c=tf(n),f=Yi(n)==="y",m=kU.has(u)?-1:1,g=s&&f?-1:1,p=Jo(t,e);let{mainAxis:y,crossAxis:b,alignmentAxis:S}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof S=="number"&&(b=c==="end"?S*-1:S),f?{x:b*g,y:y*m}:{x:y*m,y:b*g}}const ine=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:u,middlewareData:c}=t,f=await ane(t,e);return u===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:s+f.y,data:{...f,placement:u}}}}},one=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:c={fn:N=>{let{x:T,y:C}=N;return{x:T,y:C}}},...f}=Jo(e,t),m={x:n,y:r},g=await Mp(t,f),p=Yi(es(o)),y=eD(p);let b=m[y],S=m[p];if(s){const N=y==="y"?"top":"left",T=y==="y"?"bottom":"right",C=b+g[N],D=b-g[T];b=uC(C,b,D)}if(u){const N=p==="y"?"top":"left",T=p==="y"?"bottom":"right",C=S+g[N],D=S-g[T];S=uC(C,S,D)}const x=c.fn({...t,[y]:b,[p]:S});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[y]:s,[p]:u}}}}}},sne=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:u}=t,{offset:c=0,mainAxis:f=!0,crossAxis:m=!0}=Jo(e,t),g={x:n,y:r},p=Yi(o),y=eD(p);let b=g[y],S=g[p];const x=Jo(c,t),N=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(f){const D=y==="y"?"height":"width",P=s.reference[y]-s.floating[D]+N.mainAxis,A=s.reference[y]+s.reference[D]-N.mainAxis;b<P?b=P:b>A&&(b=A)}if(m){var T,C;const D=y==="y"?"width":"height",P=kU.has(es(o)),A=s.reference[p]-s.floating[D]+(P&&((T=u.offset)==null?void 0:T[p])||0)+(P?0:N.crossAxis),_=s.reference[p]+s.reference[D]+(P?0:((C=u.offset)==null?void 0:C[p])||0)-(P?N.crossAxis:0);S<A?S=A:S>_&&(S=_)}return{[y]:b,[p]:S}}}},lne=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:u,elements:c}=t,{apply:f=()=>{},...m}=Jo(e,t),g=await Mp(t,m),p=es(o),y=tf(o),b=Yi(o)==="y",{width:S,height:x}=s.floating;let N,T;p==="top"||p==="bottom"?(N=p,T=y===(await(u.isRTL==null?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(T=p,N=y==="end"?"top":"bottom");const C=x-g.top-g.bottom,D=S-g.left-g.right,P=cl(x-g[N],C),A=cl(S-g[T],D),_=!t.middlewareData.shift;let j=P,L=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=D),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=C),_&&!y){const B=ca(g.left,0),U=ca(g.right,0),H=ca(g.top,0),G=ca(g.bottom,0);b?L=S-2*(B!==0||U!==0?B+U:ca(g.left,g.right)):j=x-2*(H!==0||G!==0?H+G:ca(g.top,g.bottom))}await f({...t,availableWidth:L,availableHeight:j});const V=await u.getDimensions(c.floating);return S!==V.width||x!==V.height?{reset:{rects:!0}}:{}}}};function d0(){return typeof window<"u"}function nf(e){return IU(e)?(e.nodeName||"").toLowerCase():"#document"}function fa(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function so(e){var t;return(t=(IU(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function IU(e){return d0()?e instanceof Node||e instanceof fa(e).Node:!1}function oi(e){return d0()?e instanceof Element||e instanceof fa(e).Element:!1}function ro(e){return d0()?e instanceof HTMLElement||e instanceof fa(e).HTMLElement:!1}function j5(e){return!d0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fa(e).ShadowRoot}const une=new Set(["inline","contents"]);function Ch(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=si(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!une.has(o)}const cne=new Set(["table","td","th"]);function dne(e){return cne.has(nf(e))}const fne=[":popover-open",":modal"];function f0(e){return fne.some(t=>{try{return e.matches(t)}catch{return!1}})}const mne=["transform","translate","scale","rotate","perspective"],pne=["transform","translate","scale","rotate","perspective","filter"],hne=["paint","layout","strict","content"];function rD(e){const t=aD(),n=oi(e)?si(e):e;return mne.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||pne.some(r=>(n.willChange||"").includes(r))||hne.some(r=>(n.contain||"").includes(r))}function gne(e){let t=dl(e);for(;ro(t)&&!Ad(t);){if(rD(t))return t;if(f0(t))return null;t=dl(t)}return null}function aD(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vne=new Set(["html","body","#document"]);function Ad(e){return vne.has(nf(e))}function si(e){return fa(e).getComputedStyle(e)}function m0(e){return oi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dl(e){if(nf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||j5(e)&&e.host||so(e);return j5(t)?t.host:t}function $U(e){const t=dl(e);return Ad(t)?e.ownerDocument?e.ownerDocument.body:e.body:ro(t)&&Ch(t)?t:$U(t)}function Lp(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=$U(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),u=fa(o);if(s){const c=dC(u);return t.concat(u,u.visualViewport||[],Ch(o)?o:[],c&&n?Lp(c):[])}return t.concat(o,Lp(o,[],n))}function dC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function VU(e){const t=si(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ro(e),s=o?e.offsetWidth:n,u=o?e.offsetHeight:r,c=Ky(n)!==s||Ky(r)!==u;return c&&(n=s,r=u),{width:n,height:r,$:c}}function iD(e){return oi(e)?e:e.contextElement}function yd(e){const t=iD(e);if(!ro(t))return Zi(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=VU(t);let u=(s?Ky(n.width):n.width)/r,c=(s?Ky(n.height):n.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const yne=Zi(0);function BU(e){const t=fa(e);return!aD()||!t.visualViewport?yne:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bne(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fa(e)?!1:t}function Cu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=iD(e);let u=Zi(1);t&&(r?oi(r)&&(u=yd(r)):u=yd(e));const c=bne(s,n,r)?BU(s):Zi(0);let f=(o.left+c.x)/u.x,m=(o.top+c.y)/u.y,g=o.width/u.x,p=o.height/u.y;if(s){const y=fa(s),b=r&&oi(r)?fa(r):r;let S=y,x=dC(S);for(;x&&r&&b!==S;){const N=yd(x),T=x.getBoundingClientRect(),C=si(x),D=T.left+(x.clientLeft+parseFloat(C.paddingLeft))*N.x,P=T.top+(x.clientTop+parseFloat(C.paddingTop))*N.y;f*=N.x,m*=N.y,g*=N.x,p*=N.y,f+=D,m+=P,S=fa(x),x=dC(S)}}return Yy({width:g,height:p,x:f,y:m})}function p0(e,t){const n=m0(e).scrollLeft;return t?t.left+n:Cu(so(e)).left+n}function zU(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-p0(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function xne(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",u=so(r),c=t?f0(t.floating):!1;if(r===u||c&&s)return n;let f={scrollLeft:0,scrollTop:0},m=Zi(1);const g=Zi(0),p=ro(r);if((p||!p&&!s)&&((nf(r)!=="body"||Ch(u))&&(f=m0(r)),ro(r))){const b=Cu(r);m=yd(r),g.x=b.x+r.clientLeft,g.y=b.y+r.clientTop}const y=u&&!p&&!s?zU(u,f):Zi(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-f.scrollLeft*m.x+g.x+y.x,y:n.y*m.y-f.scrollTop*m.y+g.y+y.y}}function wne(e){return Array.from(e.getClientRects())}function Nne(e){const t=so(e),n=m0(e),r=e.ownerDocument.body,o=ca(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ca(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+p0(e);const c=-n.scrollTop;return si(r).direction==="rtl"&&(u+=ca(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:u,y:c}}const P5=25;function Ene(e,t){const n=fa(e),r=so(e),o=n.visualViewport;let s=r.clientWidth,u=r.clientHeight,c=0,f=0;if(o){s=o.width,u=o.height;const g=aD();(!g||g&&t==="fixed")&&(c=o.offsetLeft,f=o.offsetTop)}const m=p0(r);if(m<=0){const g=r.ownerDocument,p=g.body,y=getComputedStyle(p),b=g.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,S=Math.abs(r.clientWidth-p.clientWidth-b);S<=P5&&(s-=S)}else m<=P5&&(s+=m);return{width:s,height:u,x:c,y:f}}const Sne=new Set(["absolute","fixed"]);function Ane(e,t){const n=Cu(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ro(e)?yd(e):Zi(1),u=e.clientWidth*s.x,c=e.clientHeight*s.y,f=o*s.x,m=r*s.y;return{width:u,height:c,x:f,y:m}}function M5(e,t,n){let r;if(t==="viewport")r=Ene(e,n);else if(t==="document")r=Nne(so(e));else if(oi(t))r=Ane(t,n);else{const o=BU(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Yy(r)}function UU(e,t){const n=dl(e);return n===t||!oi(n)||Ad(n)?!1:si(n).position==="fixed"||UU(n,t)}function One(e,t){const n=t.get(e);if(n)return n;let r=Lp(e,[],!1).filter(c=>oi(c)&&nf(c)!=="body"),o=null;const s=si(e).position==="fixed";let u=s?dl(e):e;for(;oi(u)&&!Ad(u);){const c=si(u),f=rD(u);!f&&c.position==="fixed"&&(o=null),(s?!f&&!o:!f&&c.position==="static"&&!!o&&Sne.has(o.position)||Ch(u)&&!f&&UU(e,u))?r=r.filter(g=>g!==u):o=c,u=dl(u)}return t.set(e,r),r}function Tne(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const u=[...n==="clippingAncestors"?f0(t)?[]:One(t,this._c):[].concat(n),r],c=u[0],f=u.reduce((m,g)=>{const p=M5(t,g,o);return m.top=ca(p.top,m.top),m.right=cl(p.right,m.right),m.bottom=cl(p.bottom,m.bottom),m.left=ca(p.left,m.left),m},M5(t,c,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Cne(e){const{width:t,height:n}=VU(e);return{width:t,height:n}}function _ne(e,t,n){const r=ro(t),o=so(t),s=n==="fixed",u=Cu(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const f=Zi(0);function m(){f.x=p0(o)}if(r||!r&&!s)if((nf(t)!=="body"||Ch(o))&&(c=m0(t)),r){const b=Cu(t,!0,s,t);f.x=b.x+t.clientLeft,f.y=b.y+t.clientTop}else o&&m();s&&!r&&o&&m();const g=o&&!r&&!s?zU(o,c):Zi(0),p=u.left+c.scrollLeft-f.x-g.x,y=u.top+c.scrollTop-f.y-g.y;return{x:p,y,width:u.width,height:u.height}}function pE(e){return si(e).position==="static"}function L5(e,t){if(!ro(e)||si(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return so(e)===n&&(n=n.ownerDocument.body),n}function qU(e,t){const n=fa(e);if(f0(e))return n;if(!ro(e)){let o=dl(e);for(;o&&!Ad(o);){if(oi(o)&&!pE(o))return o;o=dl(o)}return n}let r=L5(e,t);for(;r&&dne(r)&&pE(r);)r=L5(r,t);return r&&Ad(r)&&pE(r)&&!rD(r)?n:r||gne(e)||n}const Dne=async function(e){const t=this.getOffsetParent||qU,n=this.getDimensions,r=await n(e.floating);return{reference:_ne(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Rne(e){return si(e).direction==="rtl"}const jne={convertOffsetParentRelativeRectToViewportRelativeRect:xne,getDocumentElement:so,getClippingRect:Tne,getOffsetParent:qU,getElementRects:Dne,getClientRects:wne,getDimensions:Cne,getScale:yd,isElement:oi,isRTL:Rne};function HU(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pne(e,t){let n=null,r;const o=so(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function u(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),s();const m=e.getBoundingClientRect(),{left:g,top:p,width:y,height:b}=m;if(c||t(),!y||!b)return;const S=uy(p),x=uy(o.clientWidth-(g+y)),N=uy(o.clientHeight-(p+b)),T=uy(g),D={rootMargin:-S+"px "+-x+"px "+-N+"px "+-T+"px",threshold:ca(0,cl(1,f))||1};let P=!0;function A(_){const j=_[0].intersectionRatio;if(j!==f){if(!P)return u();j?u(!1,j):r=setTimeout(()=>{u(!1,1e-7)},1e3)}j===1&&!HU(m,e.getBoundingClientRect())&&u(),P=!1}try{n=new IntersectionObserver(A,{...D,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,D)}n.observe(e)}return u(!0),s}function Mne(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,m=iD(e),g=o||s?[...m?Lp(m):[],...Lp(t)]:[];g.forEach(T=>{o&&T.addEventListener("scroll",n,{passive:!0}),s&&T.addEventListener("resize",n)});const p=m&&c?Pne(m,n):null;let y=-1,b=null;u&&(b=new ResizeObserver(T=>{let[C]=T;C&&C.target===m&&b&&(b.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var D;(D=b)==null||D.observe(t)})),n()}),m&&!f&&b.observe(m),b.observe(t));let S,x=f?Cu(e):null;f&&N();function N(){const T=Cu(e);x&&!HU(x,T)&&n(),x=T,S=requestAnimationFrame(N)}return n(),()=>{var T;g.forEach(C=>{o&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),p?.(),(T=b)==null||T.disconnect(),b=null,f&&cancelAnimationFrame(S)}}const Lne=ine,kne=one,Ine=nne,$ne=lne,Vne=rne,k5=tne,Bne=sne,zne=(e,t,n)=>{const r=new Map,o={platform:jne,...n},s={...o.platform,_c:r};return ene(e,t,{...o,platform:s})};var Une=typeof document<"u",qne=function(){},Ly=Une?R.useLayoutEffect:qne;function Qy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Qy(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Qy(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function FU(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function I5(e,t){const n=FU(e);return Math.round(t*n)/n}function hE(e){const t=R.useRef(e);return Ly(()=>{t.current=e}),t}function Hne(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:u}={},transform:c=!0,whileElementsMounted:f,open:m}=e,[g,p]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,b]=R.useState(r);Qy(y,r)||b(r);const[S,x]=R.useState(null),[N,T]=R.useState(null),C=R.useCallback(K=>{K!==_.current&&(_.current=K,x(K))},[]),D=R.useCallback(K=>{K!==j.current&&(j.current=K,T(K))},[]),P=s||S,A=u||N,_=R.useRef(null),j=R.useRef(null),L=R.useRef(g),V=f!=null,B=hE(f),U=hE(o),H=hE(m),G=R.useCallback(()=>{if(!_.current||!j.current)return;const K={placement:t,strategy:n,middleware:y};U.current&&(K.platform=U.current),zne(_.current,j.current,K).then(te=>{const ne={...te,isPositioned:H.current!==!1};Y.current&&!Qy(L.current,ne)&&(L.current=ne,Oh.flushSync(()=>{p(ne)}))})},[y,t,n,U,H]);Ly(()=>{m===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,p(K=>({...K,isPositioned:!1})))},[m]);const Y=R.useRef(!1);Ly(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Ly(()=>{if(P&&(_.current=P),A&&(j.current=A),P&&A){if(B.current)return B.current(P,A,G);G()}},[P,A,G,B,V]);const J=R.useMemo(()=>({reference:_,floating:j,setReference:C,setFloating:D}),[C,D]),q=R.useMemo(()=>({reference:P,floating:A}),[P,A]),z=R.useMemo(()=>{const K={position:n,left:0,top:0};if(!q.floating)return K;const te=I5(q.floating,g.x),ne=I5(q.floating,g.y);return c?{...K,transform:"translate("+te+"px, "+ne+"px)",...FU(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:ne}},[n,c,q.floating,g.x,g.y]);return R.useMemo(()=>({...g,update:G,refs:J,elements:q,floatingStyles:z}),[g,G,J,q,z])}const Fne=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?k5({element:r.current,padding:o}).fn(n):{}:r?k5({element:r,padding:o}).fn(n):{}}}},Kne=(e,t)=>({...Lne(e),options:[e,t]}),Gne=(e,t)=>({...kne(e),options:[e,t]}),Yne=(e,t)=>({...Bne(e),options:[e,t]}),Qne=(e,t)=>({...Ine(e),options:[e,t]}),Xne=(e,t)=>({...$ne(e),options:[e,t]}),Wne=(e,t)=>({...Vne(e),options:[e,t]}),Zne=(e,t)=>({...Fne(e),options:[e,t]});var Jne="Arrow",KU=R.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return le.jsx(pt.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:le.jsx("polygon",{points:"0,0 30,0 15,10"})})});KU.displayName=Jne;var ere=KU;function GU(e){const[t,n]=R.useState(void 0);return vr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let u,c;if("borderBoxSize"in s){const f=s.borderBoxSize,m=Array.isArray(f)?f[0]:f;u=m.inlineSize,c=m.blockSize}else u=e.offsetWidth,c=e.offsetHeight;n({width:u,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var oD="Popper",[YU,rf]=is(oD),[tre,QU]=YU(oD),XU=e=>{const{__scopePopper:t,children:n}=e,[r,o]=R.useState(null);return le.jsx(tre,{scope:t,anchor:r,onAnchorChange:o,children:n})};XU.displayName=oD;var WU="PopperAnchor",ZU=R.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=QU(WU,n),u=R.useRef(null),c=Dt(t,u),f=R.useRef(null);return R.useEffect(()=>{const m=f.current;f.current=r?.current||u.current,m!==f.current&&s.onAnchorChange(f.current)}),r?null:le.jsx(pt.div,{...o,ref:c})});ZU.displayName=WU;var sD="PopperContent",[nre,rre]=YU(sD),JU=R.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:u=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:p="partial",hideWhenDetached:y=!1,updatePositionStrategy:b="optimized",onPlaced:S,...x}=e,N=QU(sD,n),[T,C]=R.useState(null),D=Dt(t,ce=>C(ce)),[P,A]=R.useState(null),_=GU(P),j=_?.width??0,L=_?.height??0,V=r+(s!=="center"?"-"+s:""),B=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},U=Array.isArray(m)?m:[m],H=U.length>0,G={padding:B,boundary:U.filter(ire),altBoundary:H},{refs:Y,floatingStyles:J,placement:q,isPositioned:z,middlewareData:K}=Hne({strategy:"fixed",placement:V,whileElementsMounted:(...ce)=>Mne(...ce,{animationFrame:b==="always"}),elements:{reference:N.anchor},middleware:[Kne({mainAxis:o+L,alignmentAxis:u}),f&&Gne({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Yne():void 0,...G}),f&&Qne({...G}),Xne({...G,apply:({elements:ce,rects:xe,availableWidth:me,availableHeight:be})=>{const{width:de,height:ie}=xe.reference,ze=ce.floating.style;ze.setProperty("--radix-popper-available-width",`${me}px`),ze.setProperty("--radix-popper-available-height",`${be}px`),ze.setProperty("--radix-popper-anchor-width",`${de}px`),ze.setProperty("--radix-popper-anchor-height",`${ie}px`)}}),P&&Zne({element:P,padding:c}),ore({arrowWidth:j,arrowHeight:L}),y&&Wne({strategy:"referenceHidden",...G})]}),[te,ne]=n2(q),k=no(S);vr(()=>{z&&k?.()},[z,k]);const Q=K.arrow?.x,W=K.arrow?.y,ae=K.arrow?.centerOffset!==0,[ge,Ne]=R.useState();return vr(()=>{T&&Ne(window.getComputedStyle(T).zIndex)},[T]),le.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:z?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[K.transformOrigin?.x,K.transformOrigin?.y].join(" "),...K.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:le.jsx(nre,{scope:n,placedSide:te,onArrowChange:A,arrowX:Q,arrowY:W,shouldHideArrow:ae,children:le.jsx(pt.div,{"data-side":te,"data-align":ne,...x,ref:D,style:{...x.style,animation:z?void 0:"none"}})})})});JU.displayName=sD;var e2="PopperArrow",are={top:"bottom",right:"left",bottom:"top",left:"right"},t2=R.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=rre(e2,r),u=are[s.placedSide];return le.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:le.jsx(ere,{...o,ref:n,style:{...o.style,display:"block"}})})});t2.displayName=e2;function ire(e){return e!==null}var ore=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,u=o.arrow?.centerOffset!==0,c=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[m,g]=n2(n),p={start:"0%",center:"50%",end:"100%"}[g],y=(o.arrow?.x??0)+c/2,b=(o.arrow?.y??0)+f/2;let S="",x="";return m==="bottom"?(S=u?p:`${y}px`,x=`${-f}px`):m==="top"?(S=u?p:`${y}px`,x=`${r.floating.height+f}px`):m==="right"?(S=`${-f}px`,x=u?p:`${b}px`):m==="left"&&(S=`${r.floating.width+f}px`,x=u?p:`${b}px`),{data:{x:S,y:x}}}});function n2(e){const[t,n="center"]=e.split("-");return[t,n]}var lD=XU,uD=ZU,cD=JU,dD=t2,sre="Portal",_h=R.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=R.useState(!1);vr(()=>s(!0),[]);const u=n||o&&globalThis?.document?.body;return u?_U.createPortal(le.jsx(pt.div,{...r,ref:t}),u):null});_h.displayName=sre;function lre(e,t){return R.useReducer((n,r)=>t[n][r]??n,e)}var lo=e=>{const{present:t,children:n}=e,r=ure(t),o=typeof n=="function"?n({present:r.isPresent}):R.Children.only(n),s=Dt(r.ref,cre(o));return typeof n=="function"||r.isPresent?R.cloneElement(o,{ref:s}):null};lo.displayName="Presence";function ure(e){const[t,n]=R.useState(),r=R.useRef(null),o=R.useRef(e),s=R.useRef("none"),u=e?"mounted":"unmounted",[c,f]=lre(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R.useEffect(()=>{const m=cy(r.current);s.current=c==="mounted"?m:"none"},[c]),vr(()=>{const m=r.current,g=o.current;if(g!==e){const y=s.current,b=cy(m);e?f("MOUNT"):b==="none"||m?.display==="none"?f("UNMOUNT"):f(g&&y!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),vr(()=>{if(t){let m;const g=t.ownerDocument.defaultView??window,p=b=>{const x=cy(r.current).includes(CSS.escape(b.animationName));if(b.target===t&&x&&(f("ANIMATION_END"),!o.current)){const N=t.style.animationFillMode;t.style.animationFillMode="forwards",m=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=N)})}},y=b=>{b.target===t&&(s.current=cy(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{g.clearTimeout(m),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:R.useCallback(m=>{r.current=m?getComputedStyle(m):null,n(m)},[])}}function cy(e){return e?.animationName||"none"}function cre(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dre=t0[" useInsertionEffect ".trim().toString()]||vr;function _u({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,u]=fre({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:o;{const g=R.useRef(e!==void 0);R.useEffect(()=>{const p=g.current;p!==c&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=c},[c,r])}const m=R.useCallback(g=>{if(c){const p=mre(g)?g(e):g;p!==e&&u.current?.(p)}else s(g)},[c,e,s,u]);return[f,m]}function fre({defaultProp:e,onChange:t}){const[n,r]=R.useState(e),o=R.useRef(n),s=R.useRef(t);return dre(()=>{s.current=t},[t]),R.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function mre(e){return typeof e=="function"}var r2=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),pre="VisuallyHidden",a2=R.forwardRef((e,t)=>le.jsx(pt.span,{...e,ref:t,style:{...r2,...e.style}}));a2.displayName=pre;var hre=a2,[h0]=is("Tooltip",[rf]),g0=rf(),i2="TooltipProvider",gre=700,fC="tooltip.open",[vre,fD]=h0(i2),o2=e=>{const{__scopeTooltip:t,delayDuration:n=gre,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,u=R.useRef(!0),c=R.useRef(!1),f=R.useRef(0);return R.useEffect(()=>{const m=f.current;return()=>window.clearTimeout(m)},[]),le.jsx(vre,{scope:t,isOpenDelayedRef:u,delayDuration:n,onOpen:R.useCallback(()=>{window.clearTimeout(f.current),u.current=!1},[]),onClose:R.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>u.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:R.useCallback(m=>{c.current=m},[]),disableHoverableContent:o,children:s})};o2.displayName=i2;var kp="Tooltip",[yre,Dh]=h0(kp),s2=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:u,delayDuration:c}=e,f=fD(kp,e.__scopeTooltip),m=g0(t),[g,p]=R.useState(null),y=Wi(),b=R.useRef(0),S=u??f.disableHoverableContent,x=c??f.delayDuration,N=R.useRef(!1),[T,C]=_u({prop:r,defaultProp:o??!1,onChange:j=>{j?(f.onOpen(),document.dispatchEvent(new CustomEvent(fC))):f.onClose(),s?.(j)},caller:kp}),D=R.useMemo(()=>T?N.current?"delayed-open":"instant-open":"closed",[T]),P=R.useCallback(()=>{window.clearTimeout(b.current),b.current=0,N.current=!1,C(!0)},[C]),A=R.useCallback(()=>{window.clearTimeout(b.current),b.current=0,C(!1)},[C]),_=R.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{N.current=!0,C(!0),b.current=0},x)},[x,C]);return R.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),le.jsx(lD,{...m,children:le.jsx(yre,{scope:t,contentId:y,open:T,stateAttribute:D,trigger:g,onTriggerChange:p,onTriggerEnter:R.useCallback(()=>{f.isOpenDelayedRef.current?_():P()},[f.isOpenDelayedRef,_,P]),onTriggerLeave:R.useCallback(()=>{S?A():(window.clearTimeout(b.current),b.current=0)},[A,S]),onOpen:P,onClose:A,disableHoverableContent:S,children:n})})};s2.displayName=kp;var mC="TooltipTrigger",l2=R.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Dh(mC,n),s=fD(mC,n),u=g0(n),c=R.useRef(null),f=Dt(t,c,o.onTriggerChange),m=R.useRef(!1),g=R.useRef(!1),p=R.useCallback(()=>m.current=!1,[]);return R.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),le.jsx(uD,{asChild:!0,...u,children:le.jsx(pt.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:f,onPointerMove:Ie(e.onPointerMove,y=>{y.pointerType!=="touch"&&!g.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:Ie(e.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:Ie(e.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Ie(e.onFocus,()=>{m.current||o.onOpen()}),onBlur:Ie(e.onBlur,o.onClose),onClick:Ie(e.onClick,o.onClose)})})});l2.displayName=mC;var mD="TooltipPortal",[bre,xre]=h0(mD,{forceMount:void 0}),u2=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Dh(mD,t);return le.jsx(bre,{scope:t,forceMount:n,children:le.jsx(lo,{present:n||s.open,children:le.jsx(_h,{asChild:!0,container:o,children:r})})})};u2.displayName=mD;var Od="TooltipContent",c2=R.forwardRef((e,t)=>{const n=xre(Od,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,u=Dh(Od,e.__scopeTooltip);return le.jsx(lo,{present:r||u.open,children:u.disableHoverableContent?le.jsx(d2,{side:o,...s,ref:t}):le.jsx(wre,{side:o,...s,ref:t})})}),wre=R.forwardRef((e,t)=>{const n=Dh(Od,e.__scopeTooltip),r=fD(Od,e.__scopeTooltip),o=R.useRef(null),s=Dt(t,o),[u,c]=R.useState(null),{trigger:f,onClose:m}=n,g=o.current,{onPointerInTransitChange:p}=r,y=R.useCallback(()=>{c(null),p(!1)},[p]),b=R.useCallback((S,x)=>{const N=S.currentTarget,T={x:S.clientX,y:S.clientY},C=Are(T,N.getBoundingClientRect()),D=Ore(T,C),P=Tre(x.getBoundingClientRect()),A=_re([...D,...P]);c(A),p(!0)},[p]);return R.useEffect(()=>()=>y(),[y]),R.useEffect(()=>{if(f&&g){const S=N=>b(N,g),x=N=>b(N,f);return f.addEventListener("pointerleave",S),g.addEventListener("pointerleave",x),()=>{f.removeEventListener("pointerleave",S),g.removeEventListener("pointerleave",x)}}},[f,g,b,y]),R.useEffect(()=>{if(u){const S=x=>{const N=x.target,T={x:x.clientX,y:x.clientY},C=f?.contains(N)||g?.contains(N),D=!Cre(T,u);C?y():D&&(y(),m())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[f,g,u,m,y]),le.jsx(d2,{...e,ref:s})}),[Nre,Ere]=h0(kp,{isInside:!1}),Sre=Cte("TooltipContent"),d2=R.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:u,...c}=e,f=Dh(Od,n),m=g0(n),{onClose:g}=f;return R.useEffect(()=>(document.addEventListener(fC,g),()=>document.removeEventListener(fC,g)),[g]),R.useEffect(()=>{if(f.trigger){const p=y=>{y.target?.contains(f.trigger)&&g()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[f.trigger,g]),le.jsx(Th,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:p=>p.preventDefault(),onDismiss:g,children:le.jsxs(cD,{"data-state":f.stateAttribute,...m,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[le.jsx(Sre,{children:r}),le.jsx(Nre,{scope:n,isInside:!0,children:le.jsx(hre,{id:f.contentId,role:"tooltip",children:o||r})})]})})});c2.displayName=Od;var f2="TooltipArrow",m2=R.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=g0(n);return Ere(f2,n).isInside?null:le.jsx(dD,{...o,...r,ref:t})});m2.displayName=f2;function Are(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ore(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Tre(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Cre(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,u=t.length-1;s<t.length;u=s++){const c=t[s],f=t[u],m=c.x,g=c.y,p=f.x,y=f.y;g>r!=y>r&&n<(p-m)*(r-g)/(y-g)+m&&(o=!o)}return o}function _re(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Dre(t)}function Dre(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],u=t[t.length-2];if((s.x-u.x)*(o.y-u.y)>=(s.y-u.y)*(o.x-u.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],u=n[n.length-2];if((s.x-u.x)*(o.y-u.y)>=(s.y-u.y)*(o.x-u.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Rre=o2,jre=s2,Pre=l2,Mre=u2,Lre=c2,kre=m2;function p2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=p2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=p2(e))&&(r&&(r+=" "),r+=t);return r}const pD="-",Ire=e=>{const t=Vre(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:u=>{const c=u.split(pD);return c[0]===""&&c.length!==1&&c.shift(),h2(c,t)||$re(u)},getConflictingClassGroupIds:(u,c)=>{const f=n[u]||[];return c&&r[u]?[...f,...r[u]]:f}}},h2=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?h2(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(pD);return t.validators.find(({validator:u})=>u(s))?.classGroupId},$5=/^\[(.+)\]$/,$re=e=>{if($5.test(e)){const t=$5.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Vre=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)pC(n[o],r,o,t);return r},pC=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:V5(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Bre(o)){pC(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,u])=>{pC(u,V5(t,s),n,r)})})},V5=(e,t)=>{let n=e;return t.split(pD).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Bre=e=>e.isThemeGetter,zre=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,u)=>{n.set(s,u),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let u=n.get(s);if(u!==void 0)return u;if((u=r.get(s))!==void 0)return o(s,u),u},set(s,u){n.has(s)?n.set(s,u):o(s,u)}}},hC="!",gC=":",Ure=gC.length,qre=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let u=0,c=0,f=0,m;for(let S=0;S<o.length;S++){let x=o[S];if(u===0&&c===0){if(x===gC){s.push(o.slice(f,S)),f=S+Ure;continue}if(x==="/"){m=S;continue}}x==="["?u++:x==="]"?u--:x==="("?c++:x===")"&&c--}const g=s.length===0?o:o.substring(f),p=Hre(g),y=p!==g,b=m&&m>f?m-f:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:p,maybePostfixModifierPosition:b}};if(t){const o=t+gC,s=r;r=u=>u.startsWith(o)?s(u.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Hre=e=>e.endsWith(hC)?e.substring(0,e.length-1):e.startsWith(hC)?e.substring(1):e,Fre=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(u=>{u[0]==="["||t[u]?(o.push(...s.sort(),u),s=[]):s.push(u)}),o.push(...s.sort()),o}},Kre=e=>({cache:zre(e.cacheSize),parseClassName:qre(e),sortModifiers:Fre(e),...Ire(e)}),Gre=/\s+/,Yre=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,u=[],c=e.trim().split(Gre);let f="";for(let m=c.length-1;m>=0;m-=1){const g=c[m],{isExternal:p,modifiers:y,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:x}=n(g);if(p){f=g+(f.length>0?" "+f:f);continue}let N=!!x,T=r(N?S.substring(0,x):S);if(!T){if(!N){f=g+(f.length>0?" "+f:f);continue}if(T=r(S),!T){f=g+(f.length>0?" "+f:f);continue}N=!1}const C=s(y).join(":"),D=b?C+hC:C,P=D+T;if(u.includes(P))continue;u.push(P);const A=o(T,N);for(let _=0;_<A.length;++_){const j=A[_];u.push(D+j)}f=g+(f.length>0?" "+f:f)}return f};function Qre(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=g2(t))&&(r&&(r+=" "),r+=n);return r}const g2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=g2(e[r]))&&(n&&(n+=" "),n+=t);return n};function Xre(e,...t){let n,r,o,s=u;function u(f){const m=t.reduce((g,p)=>p(g),e());return n=Kre(m),r=n.cache.get,o=n.cache.set,s=c,c(f)}function c(f){const m=r(f);if(m)return m;const g=Yre(f,n);return o(f,g),g}return function(){return s(Qre.apply(null,arguments))}}const Ln=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},v2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Wre=/^\d+\/\d+$/,Zre=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jre=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eae=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nae=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,id=e=>Wre.test(e),ft=e=>!!e&&!Number.isNaN(Number(e)),Ws=e=>!!e&&Number.isInteger(Number(e)),gE=e=>e.endsWith("%")&&ft(e.slice(0,-1)),qo=e=>Zre.test(e),rae=()=>!0,aae=e=>Jre.test(e)&&!eae.test(e),b2=()=>!1,iae=e=>tae.test(e),oae=e=>nae.test(e),sae=e=>!Le(e)&&!ke(e),lae=e=>af(e,N2,b2),Le=e=>v2.test(e),iu=e=>af(e,E2,aae),vE=e=>af(e,mae,ft),B5=e=>af(e,x2,b2),uae=e=>af(e,w2,oae),dy=e=>af(e,S2,iae),ke=e=>y2.test(e),Jm=e=>of(e,E2),cae=e=>of(e,pae),z5=e=>of(e,x2),dae=e=>of(e,N2),fae=e=>of(e,w2),fy=e=>of(e,S2,!0),af=(e,t,n)=>{const r=v2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},of=(e,t,n=!1)=>{const r=y2.exec(e);return r?r[1]?t(r[1]):n:!1},x2=e=>e==="position"||e==="percentage",w2=e=>e==="image"||e==="url",N2=e=>e==="length"||e==="size"||e==="bg-size",E2=e=>e==="length",mae=e=>e==="number",pae=e=>e==="family-name",S2=e=>e==="shadow",hae=()=>{const e=Ln("color"),t=Ln("font"),n=Ln("text"),r=Ln("font-weight"),o=Ln("tracking"),s=Ln("leading"),u=Ln("breakpoint"),c=Ln("container"),f=Ln("spacing"),m=Ln("radius"),g=Ln("shadow"),p=Ln("inset-shadow"),y=Ln("text-shadow"),b=Ln("drop-shadow"),S=Ln("blur"),x=Ln("perspective"),N=Ln("aspect"),T=Ln("ease"),C=Ln("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...P(),ke,Le],_=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],L=()=>[ke,Le,f],V=()=>[id,"full","auto",...L()],B=()=>[Ws,"none","subgrid",ke,Le],U=()=>["auto",{span:["full",Ws,ke,Le]},Ws,ke,Le],H=()=>[Ws,"auto",ke,Le],G=()=>["auto","min","max","fr",ke,Le],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...L()],z=()=>[id,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],K=()=>[e,ke,Le],te=()=>[...P(),z5,B5,{position:[ke,Le]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",dae,lae,{size:[ke,Le]}],Q=()=>[gE,Jm,iu],W=()=>["","none","full",m,ke,Le],ae=()=>["",ft,Jm,iu],ge=()=>["solid","dashed","dotted","double"],Ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[ft,gE,z5,B5],xe=()=>["","none",S,ke,Le],me=()=>["none",ft,ke,Le],be=()=>["none",ft,ke,Le],de=()=>[ft,ke,Le],ie=()=>[id,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qo],breakpoint:[qo],color:[rae],container:[qo],"drop-shadow":[qo],ease:["in","out","in-out"],font:[sae],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qo],shadow:[qo],spacing:["px",ft],text:[qo],"text-shadow":[qo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",id,Le,ke,N]}],container:["container"],columns:[{columns:[ft,Le,ke,c]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Ws,"auto",ke,Le]}],basis:[{basis:[id,"full","auto",c,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ft,id,"auto","initial","none",Le]}],grow:[{grow:["",ft,ke,Le]}],shrink:[{shrink:["",ft,ke,Le]}],order:[{order:[Ws,"first","last","none",ke,Le]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[c,"screen",...z()]}],"min-w":[{"min-w":[c,"screen","none",...z()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",n,Jm,iu]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ke,vE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gE,Le]}],"font-family":[{font:[cae,Le,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ke,Le]}],"line-clamp":[{"line-clamp":[ft,"none",ke,vE]}],leading:[{leading:[s,...L()]}],"list-image":[{"list-image":["none",ke,Le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ke,Le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[ft,"from-font","auto",ke,iu]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[ft,"auto",ke,Le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke,Le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ke,Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ws,ke,Le],radial:["",ke,Le],conic:[Ws,ke,Le]},fae,uae]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ft,ke,Le]}],"outline-w":[{outline:["",ft,Jm,iu]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",g,fy,dy]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",p,fy,dy]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[ft,iu]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",y,fy,dy]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[ft,ke,Le]}],"mix-blend":[{"mix-blend":[...Ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ft]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[ke,Le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[ft]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ke,Le]}],filter:[{filter:["","none",ke,Le]}],blur:[{blur:xe()}],brightness:[{brightness:[ft,ke,Le]}],contrast:[{contrast:[ft,ke,Le]}],"drop-shadow":[{"drop-shadow":["","none",b,fy,dy]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",ft,ke,Le]}],"hue-rotate":[{"hue-rotate":[ft,ke,Le]}],invert:[{invert:["",ft,ke,Le]}],saturate:[{saturate:[ft,ke,Le]}],sepia:[{sepia:["",ft,ke,Le]}],"backdrop-filter":[{"backdrop-filter":["","none",ke,Le]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[ft,ke,Le]}],"backdrop-contrast":[{"backdrop-contrast":[ft,ke,Le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ft,ke,Le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ft,ke,Le]}],"backdrop-invert":[{"backdrop-invert":["",ft,ke,Le]}],"backdrop-opacity":[{"backdrop-opacity":[ft,ke,Le]}],"backdrop-saturate":[{"backdrop-saturate":[ft,ke,Le]}],"backdrop-sepia":[{"backdrop-sepia":["",ft,ke,Le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ke,Le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ft,"initial",ke,Le]}],ease:[{ease:["linear","initial",T,ke,Le]}],delay:[{delay:[ft,ke,Le]}],animate:[{animate:["none",C,ke,Le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,ke,Le]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[ke,Le,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ke,Le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ke,Le]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[ft,Jm,iu,vE]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gae=Xre(hae);function kt(...e){return gae(nt(e))}function hD({delayDuration:e=0,...t}){return w.jsxDEV(Rre,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:11,columnNumber:5},this)}function yE({...e}){return w.jsxDEV(hD,{"data-loc":"client/src/components/ui/tooltip.tsx:23",children:w.jsxDEV(jre,{"data-loc":"client/src/components/ui/tooltip.tsx:24","data-slot":"tooltip",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:24,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:23,columnNumber:5},this)}function bE({...e}){return w.jsxDEV(Pre,{"data-loc":"client/src/components/ui/tooltip.tsx:32","data-slot":"tooltip-trigger",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:32,columnNumber:10},this)}function xE({className:e,sideOffset:t=0,children:n,...r}){return w.jsxDEV(Mre,{"data-loc":"client/src/components/ui/tooltip.tsx:42",children:w.jsxDEV(Lre,{"data-loc":"client/src/components/ui/tooltip.tsx:43","data-slot":"tooltip-content",sideOffset:t,className:kt("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,w.jsxDEV(kre,{"data-loc":"client/src/components/ui/tooltip.tsx:53",className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:53,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:43,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:42,columnNumber:5},this)}const U5=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,q5=nt,gD=(e,t)=>n=>{var r;if(t?.variants==null)return q5(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,u=Object.keys(o).map(m=>{const g=n?.[m],p=s?.[m];if(g===null)return null;const y=U5(g)||U5(p);return o[m][y]}),c=n&&Object.entries(n).reduce((m,g)=>{let[p,y]=g;return y===void 0||(m[p]=y),m},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((m,g)=>{let{class:p,className:y,...b}=g;return Object.entries(b).every(S=>{let[x,N]=S;return Array.isArray(N)?N.includes({...s,...c}[x]):{...s,...c}[x]===N})?[...m,p,y]:m},[]);return q5(e,u,f,n?.class,n?.className)},vae=gD("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function yt({className:e,variant:t,size:n,asChild:r=!1,...o}){const s=r?DU:"button";return w.jsxDEV(s,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:kt(vae({variant:t,size:n,className:e})),...o},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/button.tsx",lineNumber:52,columnNumber:5},this)}function Zt({className:e,...t}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:kt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/card.tsx",lineNumber:7,columnNumber:5},this)}function ri({className:e,...t}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:20","data-slot":"card-header",className:kt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/card.tsx",lineNumber:20,columnNumber:5},this)}function ai({className:e,...t}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:33","data-slot":"card-title",className:kt("leading-none font-semibold",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/card.tsx",lineNumber:33,columnNumber:5},this)}function yae({className:e,...t}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:43","data-slot":"card-description",className:kt("text-muted-foreground text-sm",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/card.tsx",lineNumber:43,columnNumber:5},this)}function Jt({className:e,...t}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:kt("px-6",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/card.tsx",lineNumber:66,columnNumber:5},this)}/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bae=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),A2=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var xae={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wae=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:u,...c},f)=>R.createElement("svg",{ref:f,...xae,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:A2("lucide",o),...c},[...u.map(([m,g])=>R.createElement(m,g)),...Array.isArray(s)?s:[s]]));/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const at=(e,t)=>{const n=R.forwardRef(({className:r,...o},s)=>R.createElement(wae,{ref:s,iconNode:t,className:A2(`lucide-${bae(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Xy=at("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Nae=at("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Eae=at("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vD=at("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Sae=at("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const O2=at("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Aae=at("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ip=at("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vC=at("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const v0=at("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yD=at("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Oae=at("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Tae=at("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const T2=at("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Cae=at("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Du=at("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _ae=at("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wE=at("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Dae=at("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Rae=at("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const cp=at("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const jae=at("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Pae=at("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Mae=at("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const C2=at("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const H5=at("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const y0=at("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Lae=at("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sf=at("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kae=at("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Iae=at("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $ae=at("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ru=at("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _2=at("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const D2=at("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Vae=at("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const R2=at("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const b0=at("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const F5=at("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Bae=at("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zae=at("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Uae=at("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xp=at("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function qae(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,o,s,u=[],c="",f=e.split("/");for(f[0]||f.shift();o=f.shift();)n=o[0],n==="*"?(u.push(n),c+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=o.indexOf("?",1),s=o.indexOf(".",1),u.push(o.substring(1,~r?r:~s?s:o.length)),c+=~r&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(c+=(~r?"?":"")+"\\"+o.substring(s))):c+="/"+o;return{keys:u,pattern:new RegExp("^"+c+(t?"(?=$|/)":"/?$"),"i")}}const Hae=t0.useInsertionEffect,Fae=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Kae=Fae?R.useLayoutEffect:R.useEffect,Gae=Hae||Kae,j2=e=>{const t=R.useRef([e,(...n)=>t[0](...n)]).current;return Gae(()=>{t[0]=e}),t[1]},Yae="popstate",bD="pushState",xD="replaceState",Qae="hashchange",K5=[Yae,bD,xD,Qae],Xae=e=>{for(const t of K5)addEventListener(t,e);return()=>{for(const t of K5)removeEventListener(t,e)}},P2=(e,t)=>mU.useSyncExternalStore(Xae,e,t),Wae=()=>location.search,Zae=({ssrSearch:e=""}={})=>P2(Wae,()=>e),G5=()=>location.pathname,Jae=({ssrPath:e}={})=>P2(G5,e?()=>e:G5),eie=(e,{replace:t=!1,state:n=null}={})=>history[t?xD:bD](n,"",e),tie=(e={})=>[Jae(e),eie],Y5=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Y5]>"u"){for(const e of[bD,xD]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,Y5,{value:!0})}const nie=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",M2=(e="")=>e==="/"?"":e,rie=(e,t)=>e[0]==="~"?e.slice(1):M2(t)+e,aie=(e="",t)=>nie(Q5(M2(e)),Q5(t)),Q5=e=>{try{return decodeURI(e)}catch{return e}},L2={hook:tie,searchHook:Zae,parser:qae,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},k2=R.createContext(L2),Rh=()=>R.useContext(k2),I2={},$2=R.createContext(I2),iie=()=>R.useContext($2),x0=e=>{const[t,n]=e.hook(e);return[aie(e.base,t),j2((r,o)=>n(rie(r,e.base),o))]},wD=()=>x0(Rh()),V2=(e,t,n,r)=>{const{pattern:o,keys:s}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),u=o.exec(n)||[],[c,...f]=u;return c!==void 0?[!0,(()=>{const m=s!==!1?Object.fromEntries(s.map((p,y)=>[p,f[y]])):u.groups;let g={...f};return m&&Object.assign(g,m),g})(),...r?[c]:[]]:[!1,null]},oie=({children:e,...t})=>{const n=Rh(),r=t.hook?L2:n;let o=r;const[s,u]=t.ssrPath?.split("?")??[];u&&(t.ssrSearch=u,t.ssrPath=s),t.hrefs=t.hrefs??t.hook?.hrefs;let c=R.useRef({}),f=c.current,m=f;for(let g in r){const p=g==="base"?r[g]+(t[g]||""):t[g]||r[g];f===m&&p!==m[g]&&(c.current=m={...m}),m[g]=p,(p!==r[g]||p!==o[g])&&(o=m)}return R.createElement(k2.Provider,{value:o,children:e})},X5=({children:e,component:t},n)=>t?R.createElement(t,{params:n}):typeof e=="function"?e(n):e,sie=e=>{let t=R.useRef(I2);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,o])=>o!==n[r])?e:n},Hi=({path:e,nest:t,match:n,...r})=>{const o=Rh(),[s]=x0(o),[u,c,f]=n??V2(o.parser,e,s,t),m=sie({...iie(),...c});if(!u)return null;const g=f?R.createElement(oie,{base:f},X5(r,m)):X5(r,m);return R.createElement($2.Provider,{value:m,children:g})},lie=R.forwardRef((e,t)=>{const n=Rh(),[r,o]=x0(n),{to:s="",href:u=s,onClick:c,asChild:f,children:m,className:g,replace:p,state:y,...b}=e,S=j2(N=>{N.ctrlKey||N.metaKey||N.altKey||N.shiftKey||N.button!==0||(c?.(N),N.defaultPrevented||(N.preventDefault(),o(u,e)))}),x=n.hrefs(u[0]==="~"?u.slice(1):n.base+u,n);return f&&R.isValidElement(m)?R.cloneElement(m,{onClick:S,href:x}):R.createElement("a",{...b,onClick:S,href:x,className:g?.call?g(r===u):g,children:m,ref:t})}),yC=e=>Array.isArray(e)?e.flatMap(t=>yC(t&&t.type===R.Fragment?t.props.children:t)):[e],uie=({children:e,location:t})=>{const n=Rh(),[r]=x0(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),yC(e).forEach(s=>{if(R.isValidElement(s)&&s.props.path){const u=s.props.path;window.__WOUTER_ROUTES__.includes(u)||window.__WOUTER_ROUTES__.push(u)}}));for(const o of yC(e)){let s=0;if(R.isValidElement(o)&&(s=V2(n.parser,o.props.path,t||r,o.props.nest))[0])return R.cloneElement(o,{match:s})}return null};function W5(){const[,e]=wD(),t=()=>{e("/")};return w.jsxDEV("div",{"data-loc":"client/src/pages/NotFound.tsx:14",className:"min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100",children:w.jsxDEV(Zt,{"data-loc":"client/src/pages/NotFound.tsx:15",className:"w-full max-w-lg mx-4 shadow-lg border-0 bg-white/80 backdrop-blur-sm",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/NotFound.tsx:16",className:"pt-8 pb-8 text-center",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/NotFound.tsx:17",className:"flex justify-center mb-6",children:w.jsxDEV("div",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"relative",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"absolute inset-0 bg-red-100 rounded-full animate-pulse"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:19,columnNumber:15},this),w.jsxDEV(Aae,{"data-loc":"client/src/pages/NotFound.tsx:20",className:"relative h-16 w-16 text-red-500"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:20,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:18,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:17,columnNumber:11},this),w.jsxDEV("h1",{"data-loc":"client/src/pages/NotFound.tsx:24",className:"text-4xl font-bold text-slate-900 mb-2",children:"404"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:24,columnNumber:11},this),w.jsxDEV("h2",{"data-loc":"client/src/pages/NotFound.tsx:26",className:"text-xl font-semibold text-slate-700 mb-4",children:"Page Not Found"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:26,columnNumber:11},this),w.jsxDEV("p",{"data-loc":"client/src/pages/NotFound.tsx:30",className:"text-slate-600 mb-8 leading-relaxed",children:["Sorry, the page you are looking for doesn't exist.",w.jsxDEV("br",{"data-loc":"client/src/pages/NotFound.tsx:32"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:32,columnNumber:13},this),"It may have been moved or deleted."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:30,columnNumber:11},this),w.jsxDEV("div",{"data-loc":"client/src/pages/NotFound.tsx:36",id:"not-found-button-group",className:"flex flex-col sm:flex-row gap-3 justify-center",children:w.jsxDEV(yt,{"data-loc":"client/src/pages/NotFound.tsx:40",onClick:t,className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg",children:[w.jsxDEV(_ae,{"data-loc":"client/src/pages/NotFound.tsx:44",className:"w-4 h-4 mr-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:44,columnNumber:15},this),"Go Home"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:40,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:36,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:16,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:15,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:14,columnNumber:5},this)}class cie extends R.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?w.jsxDEV("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:w.jsxDEV("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[w.jsxDEV(b0,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:29,columnNumber:13},this),w.jsxDEV("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:34,columnNumber:13},this),w.jsxDEV("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:w.jsxDEV("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:37,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:36,columnNumber:13},this),w.jsxDEV("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:kt("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[w.jsxDEV(kae,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:50,columnNumber:15},this),"Reload Page"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:42,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:28,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:27,columnNumber:9},this):this.props.children}}const die=R.createContext(void 0);function fie({children:e,defaultTheme:t="light",switchable:n=!1}){const[r,o]=R.useState(()=>n&&localStorage.getItem("theme")||t);R.useEffect(()=>{const u=document.documentElement;r==="dark"?u.classList.add("dark"):u.classList.remove("dark"),n&&localStorage.setItem("theme",r)},[r,n]);const s=n?()=>{o(u=>u==="light"?"dark":"light")}:void 0;return w.jsxDEV(die.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:r,toggleTheme:s,switchable:n},children:e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/contexts/ThemeContext.tsx",lineNumber:52,columnNumber:5},this)}var NE="focusScope.autoFocusOnMount",EE="focusScope.autoFocusOnUnmount",Z5={bubbles:!1,cancelable:!0},mie="FocusScope",w0=R.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...u}=e,[c,f]=R.useState(null),m=no(o),g=no(s),p=R.useRef(null),y=Dt(t,x=>f(x)),b=R.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;R.useEffect(()=>{if(r){let x=function(D){if(b.paused||!c)return;const P=D.target;c.contains(P)?p.current=P:Js(p.current,{select:!0})},N=function(D){if(b.paused||!c)return;const P=D.relatedTarget;P!==null&&(c.contains(P)||Js(p.current,{select:!0}))},T=function(D){if(document.activeElement===document.body)for(const A of D)A.removedNodes.length>0&&Js(c)};document.addEventListener("focusin",x),document.addEventListener("focusout",N);const C=new MutationObserver(T);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",N),C.disconnect()}}},[r,c,b.paused]),R.useEffect(()=>{if(c){e$.add(b);const x=document.activeElement;if(!c.contains(x)){const T=new CustomEvent(NE,Z5);c.addEventListener(NE,m),c.dispatchEvent(T),T.defaultPrevented||(pie(bie(B2(c)),{select:!0}),document.activeElement===x&&Js(c))}return()=>{c.removeEventListener(NE,m),setTimeout(()=>{const T=new CustomEvent(EE,Z5);c.addEventListener(EE,g),c.dispatchEvent(T),T.defaultPrevented||Js(x??document.body,{select:!0}),c.removeEventListener(EE,g),e$.remove(b)},0)}}},[c,m,g,b]);const S=R.useCallback(x=>{if(!n&&!r||b.paused)return;const N=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,T=document.activeElement;if(N&&T){const C=x.currentTarget,[D,P]=hie(C);D&&P?!x.shiftKey&&T===P?(x.preventDefault(),n&&Js(D,{select:!0})):x.shiftKey&&T===D&&(x.preventDefault(),n&&Js(P,{select:!0})):T===C&&x.preventDefault()}},[n,r,b.paused]);return le.jsx(pt.div,{tabIndex:-1,...u,ref:y,onKeyDown:S})});w0.displayName=mie;function pie(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Js(r,{select:t}),document.activeElement!==n)return}function hie(e){const t=B2(e),n=J5(t,e),r=J5(t.reverse(),e);return[n,r]}function B2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function J5(e,t){for(const n of e)if(!gie(n,{upTo:t}))return n}function gie(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function vie(e){return e instanceof HTMLInputElement&&"select"in e}function Js(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&vie(e)&&t&&e.select()}}var e$=yie();function yie(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=t$(e,t),e.unshift(t)},remove(t){e=t$(e,t),e[0]?.resume()}}}function t$(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function bie(e){return e.filter(t=>t.tagName!=="A")}var SE=0;function ND(){R.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??n$()),document.body.insertAdjacentElement("beforeend",e[1]??n$()),SE++,()=>{SE===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),SE--}},[])}function n$(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ki=function(){return Ki=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ki.apply(this,arguments)};function z2(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,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}function xie(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var ky="right-scroll-bar-position",Iy="width-before-scroll-bar",wie="with-scroll-bars-hidden",Nie="--removed-body-scroll-bar-size";function AE(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Eie(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Sie=typeof window<"u"?R.useLayoutEffect:R.useEffect,r$=new WeakMap;function Aie(e,t){var n=Eie(null,function(r){return e.forEach(function(o){return AE(o,r)})});return Sie(function(){var r=r$.get(n);if(r){var o=new Set(r),s=new Set(e),u=n.current;o.forEach(function(c){s.has(c)||AE(c,null)}),s.forEach(function(c){o.has(c)||AE(c,u)})}r$.set(n,e)},[e]),n}function Oie(e){return e}function Tie(e,t){t===void 0&&(t=Oie);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var u=t(s,r);return n.push(u),function(){n=n.filter(function(c){return c!==u})}},assignSyncMedium:function(s){for(r=!0;n.length;){var u=n;n=[],u.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var u=[];if(n.length){var c=n;n=[],c.forEach(s),u=n}var f=function(){var g=u;u=[],g.forEach(s)},m=function(){return Promise.resolve().then(f)};m(),n={push:function(g){u.push(g),m()},filter:function(g){return u=u.filter(g),n}}}};return o}function Cie(e){e===void 0&&(e={});var t=Tie(null);return t.options=Ki({async:!0,ssr:!1},e),t}var U2=function(e){var t=e.sideCar,n=z2(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return R.createElement(r,Ki({},n))};U2.isSideCarExport=!0;function _ie(e,t){return e.useMedium(t),U2}var q2=Cie(),OE=function(){},N0=R.forwardRef(function(e,t){var n=R.useRef(null),r=R.useState({onScrollCapture:OE,onWheelCapture:OE,onTouchMoveCapture:OE}),o=r[0],s=r[1],u=e.forwardProps,c=e.children,f=e.className,m=e.removeScrollBar,g=e.enabled,p=e.shards,y=e.sideCar,b=e.noRelative,S=e.noIsolation,x=e.inert,N=e.allowPinchZoom,T=e.as,C=T===void 0?"div":T,D=e.gapMode,P=z2(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=y,_=Aie([n,t]),j=Ki(Ki({},P),o);return R.createElement(R.Fragment,null,g&&R.createElement(A,{sideCar:q2,removeScrollBar:m,shards:p,noRelative:b,noIsolation:S,inert:x,setCallbacks:s,allowPinchZoom:!!N,lockRef:n,gapMode:D}),u?R.cloneElement(R.Children.only(c),Ki(Ki({},j),{ref:_})):R.createElement(C,Ki({},j,{className:f,ref:_}),c))});N0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};N0.classNames={fullWidth:Iy,zeroRight:ky};var Die=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Rie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Die();return t&&e.setAttribute("nonce",t),e}function jie(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Pie(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Mie=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Rie())&&(jie(t,n),Pie(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Lie=function(){var e=Mie();return function(t,n){R.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},H2=function(){var e=Lie(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},kie={left:0,top:0,right:0,gap:0},TE=function(e){return parseInt(e||"",10)||0},Iie=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[TE(n),TE(r),TE(o)]},$ie=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return kie;var t=Iie(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Vie=H2(),bd="data-scroll-locked",Bie=function(e,t,n,r){var o=e.left,s=e.top,u=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
||
.`.concat(wie,` {
|
||
overflow: hidden `).concat(r,`;
|
||
padding-right: `).concat(c,"px ").concat(r,`;
|
||
}
|
||
body[`).concat(bd,`] {
|
||
overflow: hidden `).concat(r,`;
|
||
overscroll-behavior: contain;
|
||
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
||
padding-left: `.concat(o,`px;
|
||
padding-top: `).concat(s,`px;
|
||
padding-right: `).concat(u,`px;
|
||
margin-left:0;
|
||
margin-top:0;
|
||
margin-right: `).concat(c,"px ").concat(r,`;
|
||
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
}
|
||
|
||
.`).concat(ky,` {
|
||
right: `).concat(c,"px ").concat(r,`;
|
||
}
|
||
|
||
.`).concat(Iy,` {
|
||
margin-right: `).concat(c,"px ").concat(r,`;
|
||
}
|
||
|
||
.`).concat(ky," .").concat(ky,` {
|
||
right: 0 `).concat(r,`;
|
||
}
|
||
|
||
.`).concat(Iy," .").concat(Iy,` {
|
||
margin-right: 0 `).concat(r,`;
|
||
}
|
||
|
||
body[`).concat(bd,`] {
|
||
`).concat(Nie,": ").concat(c,`px;
|
||
}
|
||
`)},a$=function(){var e=parseInt(document.body.getAttribute(bd)||"0",10);return isFinite(e)?e:0},zie=function(){R.useEffect(function(){return document.body.setAttribute(bd,(a$()+1).toString()),function(){var e=a$()-1;e<=0?document.body.removeAttribute(bd):document.body.setAttribute(bd,e.toString())}},[])},Uie=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;zie();var s=R.useMemo(function(){return $ie(o)},[o]);return R.createElement(Vie,{styles:Bie(s,!t,o,n?"":"!important")})},bC=!1;if(typeof window<"u")try{var my=Object.defineProperty({},"passive",{get:function(){return bC=!0,!0}});window.addEventListener("test",my,my),window.removeEventListener("test",my,my)}catch{bC=!1}var od=bC?{passive:!1}:!1,qie=function(e){return e.tagName==="TEXTAREA"},F2=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qie(e)&&n[t]==="visible")},Hie=function(e){return F2(e,"overflowY")},Fie=function(e){return F2(e,"overflowX")},i$=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=K2(e,r);if(o){var s=G2(e,r),u=s[1],c=s[2];if(u>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Kie=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Gie=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},K2=function(e,t){return e==="v"?Hie(t):Fie(t)},G2=function(e,t){return e==="v"?Kie(t):Gie(t)},Yie=function(e,t){return e==="h"&&t==="rtl"?-1:1},Qie=function(e,t,n,r,o){var s=Yie(e,window.getComputedStyle(t).direction),u=s*r,c=n.target,f=t.contains(c),m=!1,g=u>0,p=0,y=0;do{if(!c)break;var b=G2(e,c),S=b[0],x=b[1],N=b[2],T=x-N-s*S;(S||T)&&K2(e,c)&&(p+=T,y+=S);var C=c.parentNode;c=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(g&&Math.abs(p)<1||!g&&Math.abs(y)<1)&&(m=!0),m},py=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},o$=function(e){return[e.deltaX,e.deltaY]},s$=function(e){return e&&"current"in e?e.current:e},Xie=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Wie=function(e){return`
|
||
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
`)},Zie=0,sd=[];function Jie(e){var t=R.useRef([]),n=R.useRef([0,0]),r=R.useRef(),o=R.useState(Zie++)[0],s=R.useState(H2)[0],u=R.useRef(e);R.useEffect(function(){u.current=e},[e]),R.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var x=xie([e.lockRef.current],(e.shards||[]).map(s$),!0).filter(Boolean);return x.forEach(function(N){return N.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=R.useCallback(function(x,N){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!u.current.allowPinchZoom;var T=py(x),C=n.current,D="deltaX"in x?x.deltaX:C[0]-T[0],P="deltaY"in x?x.deltaY:C[1]-T[1],A,_=x.target,j=Math.abs(D)>Math.abs(P)?"h":"v";if("touches"in x&&j==="h"&&_.type==="range")return!1;var L=i$(j,_);if(!L)return!0;if(L?A=j:(A=j==="v"?"h":"v",L=i$(j,_)),!L)return!1;if(!r.current&&"changedTouches"in x&&(D||P)&&(r.current=A),!A)return!0;var V=r.current||A;return Qie(V,N,x,V==="h"?D:P)},[]),f=R.useCallback(function(x){var N=x;if(!(!sd.length||sd[sd.length-1]!==s)){var T="deltaY"in N?o$(N):py(N),C=t.current.filter(function(A){return A.name===N.type&&(A.target===N.target||N.target===A.shadowParent)&&Xie(A.delta,T)})[0];if(C&&C.should){N.cancelable&&N.preventDefault();return}if(!C){var D=(u.current.shards||[]).map(s$).filter(Boolean).filter(function(A){return A.contains(N.target)}),P=D.length>0?c(N,D[0]):!u.current.noIsolation;P&&N.cancelable&&N.preventDefault()}}},[]),m=R.useCallback(function(x,N,T,C){var D={name:x,delta:N,target:T,should:C,shadowParent:eoe(T)};t.current.push(D),setTimeout(function(){t.current=t.current.filter(function(P){return P!==D})},1)},[]),g=R.useCallback(function(x){n.current=py(x),r.current=void 0},[]),p=R.useCallback(function(x){m(x.type,o$(x),x.target,c(x,e.lockRef.current))},[]),y=R.useCallback(function(x){m(x.type,py(x),x.target,c(x,e.lockRef.current))},[]);R.useEffect(function(){return sd.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",f,od),document.addEventListener("touchmove",f,od),document.addEventListener("touchstart",g,od),function(){sd=sd.filter(function(x){return x!==s}),document.removeEventListener("wheel",f,od),document.removeEventListener("touchmove",f,od),document.removeEventListener("touchstart",g,od)}},[]);var b=e.removeScrollBar,S=e.inert;return R.createElement(R.Fragment,null,S?R.createElement(s,{styles:Wie(o)}):null,b?R.createElement(Uie,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function eoe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const toe=_ie(q2,Jie);var E0=R.forwardRef(function(e,t){return R.createElement(N0,Ki({},e,{ref:t,sideCar:toe}))});E0.classNames=N0.classNames;var noe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ld=new WeakMap,hy=new WeakMap,gy={},CE=0,Y2=function(e){return e&&(e.host||Y2(e.parentNode))},roe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Y2(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},aoe=function(e,t,n,r){var o=roe(t,Array.isArray(e)?e:[e]);gy[n]||(gy[n]=new WeakMap);var s=gy[n],u=[],c=new Set,f=new Set(o),m=function(p){!p||c.has(p)||(c.add(p),m(p.parentNode))};o.forEach(m);var g=function(p){!p||f.has(p)||Array.prototype.forEach.call(p.children,function(y){if(c.has(y))g(y);else try{var b=y.getAttribute(r),S=b!==null&&b!=="false",x=(ld.get(y)||0)+1,N=(s.get(y)||0)+1;ld.set(y,x),s.set(y,N),u.push(y),x===1&&S&&hy.set(y,!0),N===1&&y.setAttribute(n,"true"),S||y.setAttribute(r,"true")}catch(T){console.error("aria-hidden: cannot operate on ",y,T)}})};return g(t),c.clear(),CE++,function(){u.forEach(function(p){var y=ld.get(p)-1,b=s.get(p)-1;ld.set(p,y),s.set(p,b),y||(hy.has(p)||p.removeAttribute(r),hy.delete(p)),b||p.removeAttribute(n)}),CE--,CE||(ld=new WeakMap,ld=new WeakMap,hy=new WeakMap,gy={})}},ED=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=noe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),aoe(r,o,n,"aria-hidden")):function(){return null}},S0="Dialog",[Q2]=is(S0),[ioe,ui]=Q2(S0),X2=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:u=!0}=e,c=R.useRef(null),f=R.useRef(null),[m,g]=_u({prop:r,defaultProp:o??!1,onChange:s,caller:S0});return le.jsx(ioe,{scope:t,triggerRef:c,contentRef:f,contentId:Wi(),titleId:Wi(),descriptionId:Wi(),open:m,onOpenChange:g,onOpenToggle:R.useCallback(()=>g(p=>!p),[g]),modal:u,children:n})};X2.displayName=S0;var W2="DialogTrigger",Z2=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ui(W2,n),s=Dt(t,o.triggerRef);return le.jsx(pt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":OD(o.open),...r,ref:s,onClick:Ie(e.onClick,o.onOpenToggle)})});Z2.displayName=W2;var SD="DialogPortal",[ooe,J2]=Q2(SD,{forceMount:void 0}),e9=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=ui(SD,t);return le.jsx(ooe,{scope:t,forceMount:n,children:R.Children.map(r,u=>le.jsx(lo,{present:n||s.open,children:le.jsx(_h,{asChild:!0,container:o,children:u})}))})};e9.displayName=SD;var Wy="DialogOverlay",t9=R.forwardRef((e,t)=>{const n=J2(Wy,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ui(Wy,e.__scopeDialog);return s.modal?le.jsx(lo,{present:r||s.open,children:le.jsx(loe,{...o,ref:t})}):null});t9.displayName=Wy;var soe=Tu("DialogOverlay.RemoveScroll"),loe=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ui(Wy,n);return le.jsx(E0,{as:soe,allowPinchZoom:!0,shards:[o.contentRef],children:le.jsx(pt.div,{"data-state":OD(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ju="DialogContent",n9=R.forwardRef((e,t)=>{const n=J2(ju,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ui(ju,e.__scopeDialog);return le.jsx(lo,{present:r||s.open,children:s.modal?le.jsx(uoe,{...o,ref:t}):le.jsx(coe,{...o,ref:t})})});n9.displayName=ju;var uoe=R.forwardRef((e,t)=>{const n=ui(ju,e.__scopeDialog),r=R.useRef(null),o=Dt(t,n.contentRef,r);return R.useEffect(()=>{const s=r.current;if(s)return ED(s)},[]),le.jsx(r9,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ie(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ie(e.onPointerDownOutside,s=>{const u=s.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0;(u.button===2||c)&&s.preventDefault()}),onFocusOutside:Ie(e.onFocusOutside,s=>s.preventDefault())})}),coe=R.forwardRef((e,t)=>{const n=ui(ju,e.__scopeDialog),r=R.useRef(!1),o=R.useRef(!1);return le.jsx(r9,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=s.target;n.triggerRef.current?.contains(u)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),r9=R.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...u}=e,c=ui(ju,n),f=R.useRef(null),m=Dt(t,f);return ND(),le.jsxs(le.Fragment,{children:[le.jsx(w0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:le.jsx(Th,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":OD(c.open),...u,ref:m,onDismiss:()=>c.onOpenChange(!1)})}),le.jsxs(le.Fragment,{children:[le.jsx(foe,{titleId:c.titleId}),le.jsx(poe,{contentRef:f,descriptionId:c.descriptionId})]})]})}),AD="DialogTitle",a9=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ui(AD,n);return le.jsx(pt.h2,{id:o.titleId,...r,ref:t})});a9.displayName=AD;var i9="DialogDescription",doe=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ui(i9,n);return le.jsx(pt.p,{id:o.descriptionId,...r,ref:t})});doe.displayName=i9;var o9="DialogClose",s9=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ui(o9,n);return le.jsx(pt.button,{type:"button",...r,ref:t,onClick:Ie(e.onClick,()=>o.onOpenChange(!1))})});s9.displayName=o9;function OD(e){return e?"open":"closed"}var l9="DialogTitleWarning",[JSe,u9]=Ate(l9,{contentName:ju,titleName:AD,docsSlug:"dialog"}),foe=({titleId:e})=>{const t=u9(l9),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
||
|
||
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
||
|
||
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return R.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},moe="DialogDescriptionWarning",poe=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${u9(moe).contentName}}.`;return R.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},hoe=X2,goe=Z2,voe=e9,yoe=t9,boe=n9,xoe=a9,woe=s9;const c9=R.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),TD=()=>R.useContext(c9);function Pu({...e}){const t=R.useRef(!1),n=R.useRef(!1),r=R.useRef(null),o=R.useMemo(()=>({isComposing:()=>t.current,setComposing:s=>{t.current=s},justEndedComposing:()=>n.current,markCompositionEnd:()=>{n.current=!0,r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{n.current=!1},150)}}),[]);return w.jsxDEV(c9.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:o,children:w.jsxDEV(hoe,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:51,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:50,columnNumber:5},this)}function $p({...e}){return w.jsxDEV(goe,{"data-loc":"client/src/components/ui/dialog.tsx:59","data-slot":"dialog-trigger",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:59,columnNumber:10},this)}function Noe({...e}){return w.jsxDEV(voe,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:65,columnNumber:10},this)}function d9({className:e,...t}){return w.jsxDEV(yoe,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:kt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:79,columnNumber:5},this)}d9.displayName="DialogOverlay";function Mu({className:e,children:t,showCloseButton:n=!0,onEscapeKeyDown:r,...o}){const{isComposing:s}=TD(),u=R.useCallback(c=>{if(c.isComposing||s()){c.preventDefault();return}r?.(c)},[s,r]);return w.jsxDEV(Noe,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[w.jsxDEV(d9,{"data-loc":"client/src/components/ui/dialog.tsx:123"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:123,columnNumber:7},this),w.jsxDEV(boe,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:kt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),onEscapeKeyDown:u,...o,children:[t,n&&w.jsxDEV(woe,{"data-loc":"client/src/components/ui/dialog.tsx:135","data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[w.jsxDEV(Uae,{"data-loc":"client/src/components/ui/dialog.tsx:139"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:139,columnNumber:13},this),w.jsxDEV("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:140,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:135,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:124,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:122,columnNumber:5},this)}function Lu({className:e,...t}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:kt("flex flex-col gap-2 text-center sm:text-left",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:150,columnNumber:5},this)}function ku({className:e,...t}){return w.jsxDEV(xoe,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:kt("text-lg leading-none font-semibold",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:176,columnNumber:5},this)}function vy(e){const t=R.useRef(e);t.current=e;const n=R.useRef(null);return n.current||(n.current=function(...r){return t.current.apply(this,r)}),n.current}function f9(e={}){const{onKeyDown:t,onCompositionStart:n,onCompositionEnd:r}=e,o=R.useRef(!1),s=R.useRef(null),u=R.useRef(null),c=vy(p=>{s.current&&(clearTimeout(s.current),s.current=null),u.current&&(clearTimeout(u.current),u.current=null),o.current=!0,n?.(p)}),f=vy(p=>{s.current=setTimeout(()=>{u.current=setTimeout(()=>{o.current=!1})}),r?.(p)}),m=vy(p=>{if(o.current&&(p.key==="Escape"||p.key==="Enter"&&!p.shiftKey)){p.stopPropagation();return}t?.(p)}),g=vy(()=>o.current);return{onCompositionStart:c,onCompositionEnd:f,onKeyDown:m,isComposing:g}}function Qn({className:e,type:t,onKeyDown:n,onCompositionStart:r,onCompositionEnd:o,...s}){const u=TD(),{onCompositionStart:c,onCompositionEnd:f,onKeyDown:m}=f9({onKeyDown:g=>{const p=g.nativeEvent.isComposing||u.justEndedComposing();g.key==="Enter"&&p||n?.(g)},onCompositionStart:g=>{u.setComposing(!0),r?.(g)},onCompositionEnd:g=>{u.markCompositionEnd(),setTimeout(()=>{u.setComposing(!1)},100),o?.(g)}});return w.jsxDEV("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:kt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),onCompositionStart:c,onCompositionEnd:f,onKeyDown:m,...s},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/input.tsx",lineNumber:53,columnNumber:5},this)}var Eoe="Label",m9=R.forwardRef((e,t)=>le.jsx(pt.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));m9.displayName=Eoe;var Soe=m9;function Et({className:e,...t}){return w.jsxDEV(Soe,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:kt("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/label.tsx",lineNumber:11,columnNumber:5},this)}const Aoe=gD("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function Ooe({className:e,variant:t,...n}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/alert.tsx:28","data-slot":"alert",role:"alert",className:kt(Aoe({variant:t}),e),...n},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/alert.tsx",lineNumber:28,columnNumber:5},this)}function Toe({className:e,...t}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/alert.tsx:55","data-slot":"alert-description",className:kt("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/alert.tsx",lineNumber:55,columnNumber:5},this)}function CD(e){const t=e+"CollectionProvider",[n,r]=is(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=x=>{const{scope:N,children:T}=x,C=F.useRef(null),D=F.useRef(new Map).current;return le.jsx(o,{scope:N,itemMap:D,collectionRef:C,children:T})};u.displayName=t;const c=e+"CollectionSlot",f=Tu(c),m=F.forwardRef((x,N)=>{const{scope:T,children:C}=x,D=s(c,T),P=Dt(N,D.collectionRef);return le.jsx(f,{ref:P,children:C})});m.displayName=c;const g=e+"CollectionItemSlot",p="data-radix-collection-item",y=Tu(g),b=F.forwardRef((x,N)=>{const{scope:T,children:C,...D}=x,P=F.useRef(null),A=Dt(N,P),_=s(g,T);return F.useEffect(()=>(_.itemMap.set(P,{ref:P,...D}),()=>void _.itemMap.delete(P))),le.jsx(y,{[p]:"",ref:A,children:C})});b.displayName=g;function S(x){const N=s(e+"CollectionConsumer",x);return F.useCallback(()=>{const C=N.collectionRef.current;if(!C)return[];const D=Array.from(C.querySelectorAll(`[${p}]`));return Array.from(N.itemMap.values()).sort((_,j)=>D.indexOf(_.ref.current)-D.indexOf(j.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:u,Slot:m,ItemSlot:b},S,r]}var Coe=R.createContext(void 0);function _D(e){const t=R.useContext(Coe);return e||t||"ltr"}var _E="rovingFocusGroup.onEntryFocus",_oe={bubbles:!1,cancelable:!0},jh="RovingFocusGroup",[xC,p9,Doe]=CD(jh),[Roe,h9]=is(jh,[Doe]),[joe,Poe]=Roe(jh),g9=R.forwardRef((e,t)=>le.jsx(xC.Provider,{scope:e.__scopeRovingFocusGroup,children:le.jsx(xC.Slot,{scope:e.__scopeRovingFocusGroup,children:le.jsx(Moe,{...e,ref:t})})}));g9.displayName=jh;var Moe=R.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:m,preventScrollOnEntryFocus:g=!1,...p}=e,y=R.useRef(null),b=Dt(t,y),S=_D(s),[x,N]=_u({prop:u,defaultProp:c??null,onChange:f,caller:jh}),[T,C]=R.useState(!1),D=no(m),P=p9(n),A=R.useRef(!1),[_,j]=R.useState(0);return R.useEffect(()=>{const L=y.current;if(L)return L.addEventListener(_E,D),()=>L.removeEventListener(_E,D)},[D]),le.jsx(joe,{scope:n,orientation:r,dir:S,loop:o,currentTabStopId:x,onItemFocus:R.useCallback(L=>N(L),[N]),onItemShiftTab:R.useCallback(()=>C(!0),[]),onFocusableItemAdd:R.useCallback(()=>j(L=>L+1),[]),onFocusableItemRemove:R.useCallback(()=>j(L=>L-1),[]),children:le.jsx(pt.div,{tabIndex:T||_===0?-1:0,"data-orientation":r,...p,ref:b,style:{outline:"none",...e.style},onMouseDown:Ie(e.onMouseDown,()=>{A.current=!0}),onFocus:Ie(e.onFocus,L=>{const V=!A.current;if(L.target===L.currentTarget&&V&&!T){const B=new CustomEvent(_E,_oe);if(L.currentTarget.dispatchEvent(B),!B.defaultPrevented){const U=P().filter(q=>q.focusable),H=U.find(q=>q.active),G=U.find(q=>q.id===x),J=[H,G,...U].filter(Boolean).map(q=>q.ref.current);b9(J,g)}}A.current=!1}),onBlur:Ie(e.onBlur,()=>C(!1))})})}),v9="RovingFocusGroupItem",y9=R.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:u,...c}=e,f=Wi(),m=s||f,g=Poe(v9,n),p=g.currentTabStopId===m,y=p9(n),{onFocusableItemAdd:b,onFocusableItemRemove:S,currentTabStopId:x}=g;return R.useEffect(()=>{if(r)return b(),()=>S()},[r,b,S]),le.jsx(xC.ItemSlot,{scope:n,id:m,focusable:r,active:o,children:le.jsx(pt.span,{tabIndex:p?0:-1,"data-orientation":g.orientation,...c,ref:t,onMouseDown:Ie(e.onMouseDown,N=>{r?g.onItemFocus(m):N.preventDefault()}),onFocus:Ie(e.onFocus,()=>g.onItemFocus(m)),onKeyDown:Ie(e.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){g.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const T=Ioe(N,g.orientation,g.dir);if(T!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let D=y().filter(P=>P.focusable).map(P=>P.ref.current);if(T==="last")D.reverse();else if(T==="prev"||T==="next"){T==="prev"&&D.reverse();const P=D.indexOf(N.currentTarget);D=g.loop?$oe(D,P+1):D.slice(P+1)}setTimeout(()=>b9(D))}}),children:typeof u=="function"?u({isCurrentTabStop:p,hasTabStop:x!=null}):u})})});y9.displayName=v9;var Loe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function koe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ioe(e,t,n){const r=koe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Loe[r]}function b9(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function $oe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Voe=g9,Boe=y9,wC=["Enter"," "],zoe=["ArrowDown","PageUp","Home"],x9=["ArrowUp","PageDown","End"],Uoe=[...zoe,...x9],qoe={ltr:[...wC,"ArrowRight"],rtl:[...wC,"ArrowLeft"]},Hoe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ph="Menu",[Vp,Foe,Koe]=CD(Ph),[Yu,w9]=is(Ph,[Koe,rf,h9]),A0=rf(),N9=h9(),[Goe,Qu]=Yu(Ph),[Yoe,Mh]=Yu(Ph),E9=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:u=!0}=e,c=A0(t),[f,m]=R.useState(null),g=R.useRef(!1),p=no(s),y=_D(o);return R.useEffect(()=>{const b=()=>{g.current=!0,document.addEventListener("pointerdown",S,{capture:!0,once:!0}),document.addEventListener("pointermove",S,{capture:!0,once:!0})},S=()=>g.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("pointermove",S,{capture:!0})}},[]),le.jsx(lD,{...c,children:le.jsx(Goe,{scope:t,open:n,onOpenChange:p,content:f,onContentChange:m,children:le.jsx(Yoe,{scope:t,onClose:R.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:g,dir:y,modal:u,children:r})})})};E9.displayName=Ph;var Qoe="MenuAnchor",DD=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=A0(n);return le.jsx(uD,{...o,...r,ref:t})});DD.displayName=Qoe;var RD="MenuPortal",[Xoe,S9]=Yu(RD,{forceMount:void 0}),A9=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Qu(RD,t);return le.jsx(Xoe,{scope:t,forceMount:n,children:le.jsx(lo,{present:n||s.open,children:le.jsx(_h,{asChild:!0,container:o,children:r})})})};A9.displayName=RD;var ka="MenuContent",[Woe,jD]=Yu(ka),O9=R.forwardRef((e,t)=>{const n=S9(ka,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Qu(ka,e.__scopeMenu),u=Mh(ka,e.__scopeMenu);return le.jsx(Vp.Provider,{scope:e.__scopeMenu,children:le.jsx(lo,{present:r||s.open,children:le.jsx(Vp.Slot,{scope:e.__scopeMenu,children:u.modal?le.jsx(Zoe,{...o,ref:t}):le.jsx(Joe,{...o,ref:t})})})})}),Zoe=R.forwardRef((e,t)=>{const n=Qu(ka,e.__scopeMenu),r=R.useRef(null),o=Dt(t,r);return R.useEffect(()=>{const s=r.current;if(s)return ED(s)},[]),le.jsx(PD,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ie(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Joe=R.forwardRef((e,t)=>{const n=Qu(ka,e.__scopeMenu);return le.jsx(PD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ese=Tu("MenuContent.ScrollLock"),PD=R.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:p,onInteractOutside:y,onDismiss:b,disableOutsideScroll:S,...x}=e,N=Qu(ka,n),T=Mh(ka,n),C=A0(n),D=N9(n),P=Foe(n),[A,_]=R.useState(null),j=R.useRef(null),L=Dt(t,j,N.onContentChange),V=R.useRef(0),B=R.useRef(""),U=R.useRef(0),H=R.useRef(null),G=R.useRef("right"),Y=R.useRef(0),J=S?E0:R.Fragment,q=S?{as:ese,allowPinchZoom:!0}:void 0,z=te=>{const ne=B.current+te,k=P().filter(ce=>!ce.disabled),Q=document.activeElement,W=k.find(ce=>ce.ref.current===Q)?.textValue,ae=k.map(ce=>ce.textValue),ge=fse(ae,ne,W),Ne=k.find(ce=>ce.textValue===ge)?.ref.current;(function ce(xe){B.current=xe,window.clearTimeout(V.current),xe!==""&&(V.current=window.setTimeout(()=>ce(""),1e3))})(ne),Ne&&setTimeout(()=>Ne.focus())};R.useEffect(()=>()=>window.clearTimeout(V.current),[]),ND();const K=R.useCallback(te=>G.current===H.current?.side&&pse(te,H.current?.area),[]);return le.jsx(Woe,{scope:n,searchRef:B,onItemEnter:R.useCallback(te=>{K(te)&&te.preventDefault()},[K]),onItemLeave:R.useCallback(te=>{K(te)||(j.current?.focus(),_(null))},[K]),onTriggerLeave:R.useCallback(te=>{K(te)&&te.preventDefault()},[K]),pointerGraceTimerRef:U,onPointerGraceIntentChange:R.useCallback(te=>{H.current=te},[]),children:le.jsx(J,{...q,children:le.jsx(w0,{asChild:!0,trapped:o,onMountAutoFocus:Ie(s,te=>{te.preventDefault(),j.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:le.jsx(Th,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:p,onInteractOutside:y,onDismiss:b,children:le.jsx(Voe,{asChild:!0,...D,dir:T.dir,orientation:"vertical",loop:r,currentTabStopId:A,onCurrentTabStopIdChange:_,onEntryFocus:Ie(f,te=>{T.isUsingKeyboardRef.current||te.preventDefault()}),preventScrollOnEntryFocus:!0,children:le.jsx(cD,{role:"menu","aria-orientation":"vertical","data-state":U9(N.open),"data-radix-menu-content":"",dir:T.dir,...C,...x,ref:L,style:{outline:"none",...x.style},onKeyDown:Ie(x.onKeyDown,te=>{const k=te.target.closest("[data-radix-menu-content]")===te.currentTarget,Q=te.ctrlKey||te.altKey||te.metaKey,W=te.key.length===1;k&&(te.key==="Tab"&&te.preventDefault(),!Q&&W&&z(te.key));const ae=j.current;if(te.target!==ae||!Uoe.includes(te.key))return;te.preventDefault();const Ne=P().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);x9.includes(te.key)&&Ne.reverse(),cse(Ne)}),onBlur:Ie(e.onBlur,te=>{te.currentTarget.contains(te.target)||(window.clearTimeout(V.current),B.current="")}),onPointerMove:Ie(e.onPointerMove,Bp(te=>{const ne=te.target,k=Y.current!==te.clientX;if(te.currentTarget.contains(ne)&&k){const Q=te.clientX>Y.current?"right":"left";G.current=Q,Y.current=te.clientX}}))})})})})})})});O9.displayName=ka;var tse="MenuGroup",MD=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return le.jsx(pt.div,{role:"group",...r,ref:t})});MD.displayName=tse;var nse="MenuLabel",T9=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return le.jsx(pt.div,{...r,ref:t})});T9.displayName=nse;var Zy="MenuItem",l$="menu.itemSelect",O0=R.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=R.useRef(null),u=Mh(Zy,e.__scopeMenu),c=jD(Zy,e.__scopeMenu),f=Dt(t,s),m=R.useRef(!1),g=()=>{const p=s.current;if(!n&&p){const y=new CustomEvent(l$,{bubbles:!0,cancelable:!0});p.addEventListener(l$,b=>r?.(b),{once:!0}),jU(p,y),y.defaultPrevented?m.current=!1:u.onClose()}};return le.jsx(C9,{...o,ref:f,disabled:n,onClick:Ie(e.onClick,g),onPointerDown:p=>{e.onPointerDown?.(p),m.current=!0},onPointerUp:Ie(e.onPointerUp,p=>{m.current||p.currentTarget?.click()}),onKeyDown:Ie(e.onKeyDown,p=>{const y=c.searchRef.current!=="";n||y&&p.key===" "||wC.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});O0.displayName=Zy;var C9=R.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,u=jD(Zy,n),c=N9(n),f=R.useRef(null),m=Dt(t,f),[g,p]=R.useState(!1),[y,b]=R.useState("");return R.useEffect(()=>{const S=f.current;S&&b((S.textContent??"").trim())},[s.children]),le.jsx(Vp.ItemSlot,{scope:n,disabled:r,textValue:o??y,children:le.jsx(Boe,{asChild:!0,...c,focusable:!r,children:le.jsx(pt.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:m,onPointerMove:Ie(e.onPointerMove,Bp(S=>{r?u.onItemLeave(S):(u.onItemEnter(S),S.defaultPrevented||S.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ie(e.onPointerLeave,Bp(S=>u.onItemLeave(S))),onFocus:Ie(e.onFocus,()=>p(!0)),onBlur:Ie(e.onBlur,()=>p(!1))})})})}),rse="MenuCheckboxItem",_9=R.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return le.jsx(M9,{scope:e.__scopeMenu,checked:n,children:le.jsx(O0,{role:"menuitemcheckbox","aria-checked":Jy(n)?"mixed":n,...o,ref:t,"data-state":kD(n),onSelect:Ie(o.onSelect,()=>r?.(Jy(n)?!0:!n),{checkForDefaultPrevented:!1})})})});_9.displayName=rse;var D9="MenuRadioGroup",[ase,ise]=Yu(D9,{value:void 0,onValueChange:()=>{}}),R9=R.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=no(r);return le.jsx(ase,{scope:e.__scopeMenu,value:n,onValueChange:s,children:le.jsx(MD,{...o,ref:t})})});R9.displayName=D9;var j9="MenuRadioItem",P9=R.forwardRef((e,t)=>{const{value:n,...r}=e,o=ise(j9,e.__scopeMenu),s=n===o.value;return le.jsx(M9,{scope:e.__scopeMenu,checked:s,children:le.jsx(O0,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":kD(s),onSelect:Ie(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});P9.displayName=j9;var LD="MenuItemIndicator",[M9,ose]=Yu(LD,{checked:!1}),L9=R.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=ose(LD,n);return le.jsx(lo,{present:r||Jy(s.checked)||s.checked===!0,children:le.jsx(pt.span,{...o,ref:t,"data-state":kD(s.checked)})})});L9.displayName=LD;var sse="MenuSeparator",k9=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return le.jsx(pt.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});k9.displayName=sse;var lse="MenuArrow",I9=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=A0(n);return le.jsx(dD,{...o,...r,ref:t})});I9.displayName=lse;var use="MenuSub",[eAe,$9]=Yu(use),dp="MenuSubTrigger",V9=R.forwardRef((e,t)=>{const n=Qu(dp,e.__scopeMenu),r=Mh(dp,e.__scopeMenu),o=$9(dp,e.__scopeMenu),s=jD(dp,e.__scopeMenu),u=R.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=s,m={__scopeMenu:e.__scopeMenu},g=R.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return R.useEffect(()=>g,[g]),R.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),f(null)}},[c,f]),le.jsx(DD,{asChild:!0,...m,children:le.jsx(C9,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":U9(n.open),...e,ref:c0(t,o.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ie(e.onPointerMove,Bp(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),g()},100))})),onPointerLeave:Ie(e.onPointerLeave,Bp(p=>{g();const y=n.content?.getBoundingClientRect();if(y){const b=n.content?.dataset.side,S=b==="right",x=S?-5:5,N=y[S?"left":"right"],T=y[S?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+x,y:p.clientY},{x:N,y:y.top},{x:T,y:y.top},{x:T,y:y.bottom},{x:N,y:y.bottom}],side:b}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Ie(e.onKeyDown,p=>{const y=s.searchRef.current!=="";e.disabled||y&&p.key===" "||qoe[r.dir].includes(p.key)&&(n.onOpenChange(!0),n.content?.focus(),p.preventDefault())})})})});V9.displayName=dp;var B9="MenuSubContent",z9=R.forwardRef((e,t)=>{const n=S9(ka,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Qu(ka,e.__scopeMenu),u=Mh(ka,e.__scopeMenu),c=$9(B9,e.__scopeMenu),f=R.useRef(null),m=Dt(t,f);return le.jsx(Vp.Provider,{scope:e.__scopeMenu,children:le.jsx(lo,{present:r||s.open,children:le.jsx(Vp.Slot,{scope:e.__scopeMenu,children:le.jsx(PD,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:m,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:g=>{u.isUsingKeyboardRef.current&&f.current?.focus(),g.preventDefault()},onCloseAutoFocus:g=>g.preventDefault(),onFocusOutside:Ie(e.onFocusOutside,g=>{g.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Ie(e.onEscapeKeyDown,g=>{u.onClose(),g.preventDefault()}),onKeyDown:Ie(e.onKeyDown,g=>{const p=g.currentTarget.contains(g.target),y=Hoe[u.dir].includes(g.key);p&&y&&(s.onOpenChange(!1),c.trigger?.focus(),g.preventDefault())})})})})})});z9.displayName=B9;function U9(e){return e?"open":"closed"}function Jy(e){return e==="indeterminate"}function kD(e){return Jy(e)?"indeterminate":e?"checked":"unchecked"}function cse(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function dse(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function fse(e,t,n){const o=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let u=dse(e,Math.max(s,0));o.length===1&&(u=u.filter(m=>m!==n));const f=u.find(m=>m.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function mse(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,u=t.length-1;s<t.length;u=s++){const c=t[s],f=t[u],m=c.x,g=c.y,p=f.x,y=f.y;g>r!=y>r&&n<(p-m)*(r-g)/(y-g)+m&&(o=!o)}return o}function pse(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return mse(n,t)}function Bp(e){return t=>t.pointerType==="mouse"?e(t):void 0}var hse=E9,gse=DD,vse=A9,yse=O9,bse=MD,xse=T9,wse=O0,Nse=_9,Ese=R9,Sse=P9,Ase=L9,Ose=k9,Tse=I9,Cse=V9,_se=z9,T0="DropdownMenu",[Dse]=is(T0,[w9]),Pr=w9(),[Rse,q9]=Dse(T0),H9=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:u,modal:c=!0}=e,f=Pr(t),m=R.useRef(null),[g,p]=_u({prop:o,defaultProp:s??!1,onChange:u,caller:T0});return le.jsx(Rse,{scope:t,triggerId:Wi(),triggerRef:m,contentId:Wi(),open:g,onOpenChange:p,onOpenToggle:R.useCallback(()=>p(y=>!y),[p]),modal:c,children:le.jsx(hse,{...f,open:g,onOpenChange:p,dir:r,modal:c,children:n})})};H9.displayName=T0;var F9="DropdownMenuTrigger",K9=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=q9(F9,n),u=Pr(n);return le.jsx(gse,{asChild:!0,...u,children:le.jsx(pt.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:c0(t,s.triggerRef),onPointerDown:Ie(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:Ie(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});K9.displayName=F9;var jse="DropdownMenuPortal",G9=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Pr(t);return le.jsx(vse,{...r,...n})};G9.displayName=jse;var Y9="DropdownMenuContent",Q9=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=q9(Y9,n),s=Pr(n),u=R.useRef(!1);return le.jsx(yse,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:Ie(e.onCloseAutoFocus,c=>{u.current||o.triggerRef.current?.focus(),u.current=!1,c.preventDefault()}),onInteractOutside:Ie(e.onInteractOutside,c=>{const f=c.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0,g=f.button===2||m;(!o.modal||g)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Q9.displayName=Y9;var Pse="DropdownMenuGroup",Mse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(bse,{...o,...r,ref:t})});Mse.displayName=Pse;var Lse="DropdownMenuLabel",X9=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(xse,{...o,...r,ref:t})});X9.displayName=Lse;var kse="DropdownMenuItem",W9=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(wse,{...o,...r,ref:t})});W9.displayName=kse;var Ise="DropdownMenuCheckboxItem",$se=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Nse,{...o,...r,ref:t})});$se.displayName=Ise;var Vse="DropdownMenuRadioGroup",Bse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Ese,{...o,...r,ref:t})});Bse.displayName=Vse;var zse="DropdownMenuRadioItem",Use=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Sse,{...o,...r,ref:t})});Use.displayName=zse;var qse="DropdownMenuItemIndicator",Hse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Ase,{...o,...r,ref:t})});Hse.displayName=qse;var Fse="DropdownMenuSeparator",Z9=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Ose,{...o,...r,ref:t})});Z9.displayName=Fse;var Kse="DropdownMenuArrow",Gse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Tse,{...o,...r,ref:t})});Gse.displayName=Kse;var Yse="DropdownMenuSubTrigger",Qse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Cse,{...o,...r,ref:t})});Qse.displayName=Yse;var Xse="DropdownMenuSubContent",Wse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(_se,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Wse.displayName=Xse;var Zse=H9,Jse=K9,ele=G9,tle=Q9,nle=X9,rle=W9,ale=Z9;function ile({...e}){return w.jsxDEV(Zse,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:10","data-slot":"dropdown-menu",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:10,columnNumber:10},this)}function ole({...e}){return w.jsxDEV(Jse,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:25","data-slot":"dropdown-menu-trigger",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:25,columnNumber:5},this)}function sle({className:e,sideOffset:t=4,...n}){return w.jsxDEV(ele,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:38",children:w.jsxDEV(tle,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:39","data-slot":"dropdown-menu-content",sideOffset:t,className:kt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:39,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:38,columnNumber:5},this)}function lle({className:e,inset:t,variant:n="default",...r}){return w.jsxDEV(rle,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:70","data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:kt("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:70,columnNumber:5},this)}function ule({className:e,inset:t,...n}){return w.jsxDEV(nle,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:152","data-slot":"dropdown-menu-label","data-inset":t,className:kt("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:152,columnNumber:5},this)}function cle({className:e,...t}){return w.jsxDEV(ale,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:169","data-slot":"dropdown-menu-separator",className:kt("bg-border -mx-1 my-1 h-px",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:169,columnNumber:5},this)}const yy=[{code:"zh",label:"简体中文",flag:"🇨🇳",dir:"ltr"},{code:"en",label:"English",flag:"🇺🇸",dir:"ltr"},{code:"ar",label:"العربية",flag:"🇦🇪",dir:"rtl"},{code:"ja",label:"日本語",flag:"🇯🇵",dir:"ltr"},{code:"ko",label:"한국어",flag:"🇰🇷",dir:"ltr"},{code:"fr",label:"Français",flag:"🇫🇷",dir:"ltr"},{code:"ru",label:"Русский",flag:"🇷🇺",dir:"ltr"}];function J9({variant:e="icon",className:t}){const{i18n:n,t:r}=l0(),o=yy.find(u=>u.code===n.language)||yy[0],s=u=>{const c=yy.find(f=>f.code===u);n.changeLanguage(u),c&&(document.documentElement.dir=c.dir,document.documentElement.lang=u),localStorage.setItem("nac-admin-language",u)};return w.jsxDEV(ile,{"data-loc":"client/src/components/LanguageSwitcher.tsx:46",children:[w.jsxDEV(ole,{"data-loc":"client/src/components/LanguageSwitcher.tsx:47",asChild:!0,children:w.jsxDEV(yt,{"data-loc":"client/src/components/LanguageSwitcher.tsx:48",variant:"ghost",size:e==="icon"?"icon":"sm",className:`text-slate-400 hover:text-white hover:bg-slate-700/50 ${t??""}`,children:[w.jsxDEV(Du,{"data-loc":"client/src/components/LanguageSwitcher.tsx:53",className:"h-4 w-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:53,columnNumber:11},this),e==="full"&&w.jsxDEV("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:55",className:"ml-2 text-sm",children:[o.flag," ",o.label]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:55,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:48,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:47,columnNumber:7},this),w.jsxDEV(sle,{"data-loc":"client/src/components/LanguageSwitcher.tsx:61",align:"end",className:"w-48 bg-slate-800 border-slate-700 text-slate-200",children:[w.jsxDEV(ule,{"data-loc":"client/src/components/LanguageSwitcher.tsx:65",className:"text-slate-400 text-xs",children:r("languageSwitcher.selectLanguage")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:65,columnNumber:9},this),w.jsxDEV(cle,{"data-loc":"client/src/components/LanguageSwitcher.tsx:68",className:"bg-slate-700"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:68,columnNumber:9},this),yy.map(u=>w.jsxDEV(lle,{"data-loc":"client/src/components/LanguageSwitcher.tsx:70",onClick:()=>s(u.code),className:`cursor-pointer hover:bg-slate-700 focus:bg-slate-700 ${n.language===u.code?"text-amber-400 bg-slate-700/50":"text-slate-200"}`,children:[w.jsxDEV("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:79",className:"mr-2 text-base",children:u.flag},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:79,columnNumber:13},this),w.jsxDEV("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:80",className:"flex-1",children:u.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:80,columnNumber:13},this),n.language===u.code&&w.jsxDEV("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:82",className:"text-amber-400 text-xs",children:"✓"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:82,columnNumber:15},this)]},u.code,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:70,columnNumber:11},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:61,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:46,columnNumber:5},this)}function dle(){wD();const{t:e}=l0(),[t,n]=R.useState(""),[r,o]=R.useState(""),[s,u]=R.useState(""),c=St.nacAuth.login.useMutation({onSuccess:()=>{window.location.href="/"},onError:m=>{u(m.message||e("auth.loginFailed"))}}),f=m=>{if(m.preventDefault(),u(""),!t||!r){u(e("auth.loginFailed"));return}c.mutate({email:t,password:r})};return w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:41",className:"min-h-screen bg-background flex items-center justify-center p-4 relative overflow-hidden",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:43",className:"absolute inset-0 overflow-hidden pointer-events-none",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:44",className:"absolute -top-40 -right-40 w-96 h-96 rounded-full opacity-10",style:{background:"radial-gradient(circle, oklch(0.65 0.18 200), transparent)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:44,columnNumber:9},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:46",className:"absolute -bottom-40 -left-40 w-96 h-96 rounded-full opacity-10",style:{background:"radial-gradient(circle, oklch(0.55 0.20 230), transparent)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:46,columnNumber:9},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:48",className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full opacity-5",style:{background:"radial-gradient(circle, oklch(0.65 0.18 200), transparent)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:48,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:43,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:53",className:"absolute top-4 right-4 z-20",children:w.jsxDEV(J9,{"data-loc":"client/src/pages/Login.tsx:54",variant:"full"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:54,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:53,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:57",className:"w-full max-w-md relative z-10",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:59",className:"text-center mb-8",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:60",className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl nac-gradient mb-4 shadow-lg",children:w.jsxDEV(Ru,{"data-loc":"client/src/pages/Login.tsx:61",className:"w-8 h-8 text-white"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:61,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:60,columnNumber:11},this),w.jsxDEV("h1",{"data-loc":"client/src/pages/Login.tsx:63",className:"text-3xl font-bold nac-gradient-text",children:e("nav.systemTitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:63,columnNumber:11},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Login.tsx:64",className:"text-muted-foreground mt-2 text-sm",children:e("nav.systemSubtitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:64,columnNumber:11},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Login.tsx:65",className:"text-muted-foreground/60 text-xs mt-1",children:"NewAssetChain Knowledge Engine"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:65,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:59,columnNumber:9},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/Login.tsx:68",className:"border-border/50 shadow-2xl",children:[w.jsxDEV(ri,{"data-loc":"client/src/pages/Login.tsx:69",className:"pb-4",children:[w.jsxDEV(ai,{"data-loc":"client/src/pages/Login.tsx:70",className:"text-lg font-semibold",children:e("auth.login")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:70,columnNumber:13},this),w.jsxDEV(yae,{"data-loc":"client/src/pages/Login.tsx:71",className:"text-sm",children:e("auth.loginSubtitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:71,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:69,columnNumber:11},this),w.jsxDEV(Jt,{"data-loc":"client/src/pages/Login.tsx:75",children:[w.jsxDEV("form",{"data-loc":"client/src/pages/Login.tsx:76",onSubmit:f,className:"space-y-4",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:77",className:"space-y-2",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/Login.tsx:78",htmlFor:"email",className:"text-sm font-medium",children:e("auth.email")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:78,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:79",className:"relative",children:[w.jsxDEV(Mae,{"data-loc":"client/src/pages/Login.tsx:80",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:80,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/Login.tsx:81",id:"email",type:"email",placeholder:"admin@newassetchain.io",value:t,onChange:m=>n(m.target.value),className:"pl-10 bg-input border-border/50 focus:border-primary",disabled:c.isPending,autoComplete:"email"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:81,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:79,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:77,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:94",className:"space-y-2",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/Login.tsx:95",htmlFor:"password",className:"text-sm font-medium",children:e("auth.password")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:95,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:96",className:"relative",children:[w.jsxDEV(jae,{"data-loc":"client/src/pages/Login.tsx:97",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:97,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/Login.tsx:98",id:"password",type:"password",placeholder:"••••••••",value:r,onChange:m=>o(m.target.value),className:"pl-10 bg-input border-border/50 focus:border-primary",disabled:c.isPending,autoComplete:"current-password"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:98,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:96,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:94,columnNumber:15},this),s&&w.jsxDEV(Ooe,{"data-loc":"client/src/pages/Login.tsx:112",variant:"destructive",className:"py-2",children:w.jsxDEV(Toe,{"data-loc":"client/src/pages/Login.tsx:113",className:"text-sm",children:s},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:113,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:112,columnNumber:17},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/Login.tsx:117",type:"submit",className:"w-full nac-gradient text-white font-medium h-10 mt-2",disabled:c.isPending,children:c.isPending?w.jsxDEV(w.Fragment,{children:[w.jsxDEV(cp,{"data-loc":"client/src/pages/Login.tsx:123",className:"w-4 h-4 mr-2 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:123,columnNumber:21},this),e("auth.loggingIn")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:123,columnNumber:19},this):e("auth.loginButton")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:117,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:76,columnNumber:13},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:130",className:"mt-6 pt-4 border-t border-border/30",children:w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:131",className:"flex items-center gap-2 text-xs text-muted-foreground/60",children:[w.jsxDEV(Ru,{"data-loc":"client/src/pages/Login.tsx:132",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:132,columnNumber:17},this),w.jsxDEV("span",{"data-loc":"client/src/pages/Login.tsx:133",children:e("auth.authNotice")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:133,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:131,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:130,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:75,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:68,columnNumber:9},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Login.tsx:139",className:"text-center text-xs text-muted-foreground/40 mt-6",children:"© 2025 NewAssetChain · Knowledge Engine Admin v1.0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:139,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:57,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:41,columnNumber:5},this)}const fle=gD("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function lf({className:e,variant:t,asChild:n=!1,...r}){const o=n?DU:"span";return w.jsxDEV(o,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:kt(fle({variant:t}),e),...r},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/badge.tsx",lineNumber:38,columnNumber:5},this)}var DE,u$;function Kr(){if(u$)return DE;u$=1;var e=Array.isArray;return DE=e,DE}var RE,c$;function eq(){if(c$)return RE;c$=1;var e=typeof ty=="object"&&ty&&ty.Object===Object&&ty;return RE=e,RE}var jE,d$;function uo(){if(d$)return jE;d$=1;var e=eq(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return jE=n,jE}var PE,f$;function Lh(){if(f$)return PE;f$=1;var e=uo(),t=e.Symbol;return PE=t,PE}var ME,m$;function mle(){if(m$)return ME;m$=1;var e=Lh(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function s(u){var c=n.call(u,o),f=u[o];try{u[o]=void 0;var m=!0}catch{}var g=r.call(u);return m&&(c?u[o]=f:delete u[o]),g}return ME=s,ME}var LE,p$;function ple(){if(p$)return LE;p$=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return LE=n,LE}var kE,h$;function os(){if(h$)return kE;h$=1;var e=Lh(),t=mle(),n=ple(),r="[object Null]",o="[object Undefined]",s=e?e.toStringTag:void 0;function u(c){return c==null?c===void 0?o:r:s&&s in Object(c)?t(c):n(c)}return kE=u,kE}var IE,g$;function ss(){if(g$)return IE;g$=1;function e(t){return t!=null&&typeof t=="object"}return IE=e,IE}var $E,v$;function uf(){if(v$)return $E;v$=1;var e=os(),t=ss(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return $E=r,$E}var VE,y$;function ID(){if(y$)return VE;y$=1;var e=Kr(),t=uf(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(s,u){if(e(s))return!1;var c=typeof s;return c=="number"||c=="symbol"||c=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||u!=null&&s in Object(u)}return VE=o,VE}var BE,b$;function ml(){if(b$)return BE;b$=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return BE=e,BE}var zE,x$;function $D(){if(x$)return zE;x$=1;var e=os(),t=ml(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";function u(c){if(!t(c))return!1;var f=e(c);return f==r||f==o||f==n||f==s}return zE=u,zE}var UE,w$;function hle(){if(w$)return UE;w$=1;var e=uo(),t=e["__core-js_shared__"];return UE=t,UE}var qE,N$;function gle(){if(N$)return qE;N$=1;var e=hle(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return qE=n,qE}var HE,E$;function tq(){if(E$)return HE;E$=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return HE=n,HE}var FE,S$;function vle(){if(S$)return FE;S$=1;var e=$D(),t=gle(),n=ml(),r=tq(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,m=c.hasOwnProperty,g=RegExp("^"+f.call(m).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(y){if(!n(y)||t(y))return!1;var b=e(y)?g:s;return b.test(r(y))}return FE=p,FE}var KE,A$;function yle(){if(A$)return KE;A$=1;function e(t,n){return t?.[n]}return KE=e,KE}var GE,O$;function Xu(){if(O$)return GE;O$=1;var e=vle(),t=yle();function n(r,o){var s=t(r,o);return e(s)?s:void 0}return GE=n,GE}var YE,T$;function C0(){if(T$)return YE;T$=1;var e=Xu(),t=e(Object,"create");return YE=t,YE}var QE,C$;function ble(){if(C$)return QE;C$=1;var e=C0();function t(){this.__data__=e?e(null):{},this.size=0}return QE=t,QE}var XE,_$;function xle(){if(_$)return XE;_$=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return XE=e,XE}var WE,D$;function wle(){if(D$)return WE;D$=1;var e=C0(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(s){var u=this.__data__;if(e){var c=u[s];return c===t?void 0:c}return r.call(u,s)?u[s]:void 0}return WE=o,WE}var ZE,R$;function Nle(){if(R$)return ZE;R$=1;var e=C0(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var s=this.__data__;return e?s[o]!==void 0:n.call(s,o)}return ZE=r,ZE}var JE,j$;function Ele(){if(j$)return JE;j$=1;var e=C0(),t="__lodash_hash_undefined__";function n(r,o){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&o===void 0?t:o,this}return JE=n,JE}var eS,P$;function Sle(){if(P$)return eS;P$=1;var e=ble(),t=xle(),n=wle(),r=Nle(),o=Ele();function s(u){var c=-1,f=u==null?0:u.length;for(this.clear();++c<f;){var m=u[c];this.set(m[0],m[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=o,eS=s,eS}var tS,M$;function Ale(){if(M$)return tS;M$=1;function e(){this.__data__=[],this.size=0}return tS=e,tS}var nS,L$;function VD(){if(L$)return nS;L$=1;function e(t,n){return t===n||t!==t&&n!==n}return nS=e,nS}var rS,k$;function _0(){if(k$)return rS;k$=1;var e=VD();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return rS=t,rS}var aS,I$;function Ole(){if(I$)return aS;I$=1;var e=_0(),t=Array.prototype,n=t.splice;function r(o){var s=this.__data__,u=e(s,o);if(u<0)return!1;var c=s.length-1;return u==c?s.pop():n.call(s,u,1),--this.size,!0}return aS=r,aS}var iS,$$;function Tle(){if($$)return iS;$$=1;var e=_0();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return iS=t,iS}var oS,V$;function Cle(){if(V$)return oS;V$=1;var e=_0();function t(n){return e(this.__data__,n)>-1}return oS=t,oS}var sS,B$;function _le(){if(B$)return sS;B$=1;var e=_0();function t(n,r){var o=this.__data__,s=e(o,n);return s<0?(++this.size,o.push([n,r])):o[s][1]=r,this}return sS=t,sS}var lS,z$;function D0(){if(z$)return lS;z$=1;var e=Ale(),t=Ole(),n=Tle(),r=Cle(),o=_le();function s(u){var c=-1,f=u==null?0:u.length;for(this.clear();++c<f;){var m=u[c];this.set(m[0],m[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=o,lS=s,lS}var uS,U$;function BD(){if(U$)return uS;U$=1;var e=Xu(),t=uo(),n=e(t,"Map");return uS=n,uS}var cS,q$;function Dle(){if(q$)return cS;q$=1;var e=Sle(),t=D0(),n=BD();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return cS=r,cS}var dS,H$;function Rle(){if(H$)return dS;H$=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return dS=e,dS}var fS,F$;function R0(){if(F$)return fS;F$=1;var e=Rle();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return fS=t,fS}var mS,K$;function jle(){if(K$)return mS;K$=1;var e=R0();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return mS=t,mS}var pS,G$;function Ple(){if(G$)return pS;G$=1;var e=R0();function t(n){return e(this,n).get(n)}return pS=t,pS}var hS,Y$;function Mle(){if(Y$)return hS;Y$=1;var e=R0();function t(n){return e(this,n).has(n)}return hS=t,hS}var gS,Q$;function Lle(){if(Q$)return gS;Q$=1;var e=R0();function t(n,r){var o=e(this,n),s=o.size;return o.set(n,r),this.size+=o.size==s?0:1,this}return gS=t,gS}var vS,X$;function zD(){if(X$)return vS;X$=1;var e=Dle(),t=jle(),n=Ple(),r=Mle(),o=Lle();function s(u){var c=-1,f=u==null?0:u.length;for(this.clear();++c<f;){var m=u[c];this.set(m[0],m[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=o,vS=s,vS}var yS,W$;function nq(){if(W$)return yS;W$=1;var e=zD(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var s=function(){var u=arguments,c=o?o.apply(this,u):u[0],f=s.cache;if(f.has(c))return f.get(c);var m=r.apply(this,u);return s.cache=f.set(c,m)||f,m};return s.cache=new(n.Cache||e),s}return n.Cache=e,yS=n,yS}var bS,Z$;function kle(){if(Z$)return bS;Z$=1;var e=nq(),t=500;function n(r){var o=e(r,function(u){return s.size===t&&s.clear(),u}),s=o.cache;return o}return bS=n,bS}var xS,J$;function Ile(){if(J$)return xS;J$=1;var e=kle(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(t,function(u,c,f,m){s.push(f?m.replace(n,"$1"):c||u)}),s});return xS=r,xS}var wS,eV;function UD(){if(eV)return wS;eV=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,s=Array(o);++r<o;)s[r]=n(t[r],r,t);return s}return wS=e,wS}var NS,tV;function $le(){if(tV)return NS;tV=1;var e=Lh(),t=UD(),n=Kr(),r=uf(),o=e?e.prototype:void 0,s=o?o.toString:void 0;function u(c){if(typeof c=="string")return c;if(n(c))return t(c,u)+"";if(r(c))return s?s.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return NS=u,NS}var ES,nV;function rq(){if(nV)return ES;nV=1;var e=$le();function t(n){return n==null?"":e(n)}return ES=t,ES}var SS,rV;function aq(){if(rV)return SS;rV=1;var e=Kr(),t=ID(),n=Ile(),r=rq();function o(s,u){return e(s)?s:t(s,u)?[s]:n(r(s))}return SS=o,SS}var AS,aV;function j0(){if(aV)return AS;aV=1;var e=uf();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return AS=t,AS}var OS,iV;function qD(){if(iV)return OS;iV=1;var e=aq(),t=j0();function n(r,o){o=e(o,r);for(var s=0,u=o.length;r!=null&&s<u;)r=r[t(o[s++])];return s&&s==u?r:void 0}return OS=n,OS}var TS,oV;function iq(){if(oV)return TS;oV=1;var e=qD();function t(n,r,o){var s=n==null?void 0:e(n,r);return s===void 0?o:s}return TS=t,TS}var Vle=iq();const ma=It(Vle);var CS,sV;function Ble(){if(sV)return CS;sV=1;function e(t){return t==null}return CS=e,CS}var zle=Ble();const rt=It(zle);var _S,lV;function Ule(){if(lV)return _S;lV=1;var e=os(),t=Kr(),n=ss(),r="[object String]";function o(s){return typeof s=="string"||!t(s)&&n(s)&&e(s)==r}return _S=o,_S}var qle=Ule();const Iu=It(qle);var Hle=$D();const Qe=It(Hle);var Fle=ml();const cf=It(Fle);var DS={exports:{}},Pt={},uV;function Kle(){if(uV)return Pt;uV=1;/**
|
||
* @license React
|
||
* react-is.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.
|
||
*/return(function(){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"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S=!1,x=!1,N=!1,T=!1,C=!1,D;D=Symbol.for("react.module.reference");function P(we){return!!(typeof we=="string"||typeof we=="function"||we===n||we===o||C||we===r||we===m||we===g||T||we===b||S||x||N||typeof we=="object"&&we!==null&&(we.$$typeof===y||we.$$typeof===p||we.$$typeof===s||we.$$typeof===u||we.$$typeof===f||we.$$typeof===D||we.getModuleId!==void 0))}function A(we){if(typeof we=="object"&&we!==null){var lt=we.$$typeof;switch(lt){case e:var $e=we.type;switch($e){case n:case o:case r:case m:case g:return $e;default:var et=$e&&$e.$$typeof;switch(et){case c:case u:case f:case y:case p:case s:return et;default:return lt}}case t:return lt}}}var _=u,j=s,L=e,V=f,B=n,U=y,H=p,G=t,Y=o,J=r,q=m,z=g,K=!1,te=!1;function ne(we){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(we){return te||(te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Q(we){return A(we)===u}function W(we){return A(we)===s}function ae(we){return typeof we=="object"&&we!==null&&we.$$typeof===e}function ge(we){return A(we)===f}function Ne(we){return A(we)===n}function ce(we){return A(we)===y}function xe(we){return A(we)===p}function me(we){return A(we)===t}function be(we){return A(we)===o}function de(we){return A(we)===r}function ie(we){return A(we)===m}function ze(we){return A(we)===g}Pt.ContextConsumer=_,Pt.ContextProvider=j,Pt.Element=L,Pt.ForwardRef=V,Pt.Fragment=B,Pt.Lazy=U,Pt.Memo=H,Pt.Portal=G,Pt.Profiler=Y,Pt.StrictMode=J,Pt.Suspense=q,Pt.SuspenseList=z,Pt.isAsyncMode=ne,Pt.isConcurrentMode=k,Pt.isContextConsumer=Q,Pt.isContextProvider=W,Pt.isElement=ae,Pt.isForwardRef=ge,Pt.isFragment=Ne,Pt.isLazy=ce,Pt.isMemo=xe,Pt.isPortal=me,Pt.isProfiler=be,Pt.isStrictMode=de,Pt.isSuspense=ie,Pt.isSuspenseList=ze,Pt.isValidElementType=P,Pt.typeOf=A})(),Pt}var cV;function Gle(){return cV||(cV=1,DS.exports=Kle()),DS.exports}var Yle=Gle(),RS,dV;function oq(){if(dV)return RS;dV=1;var e=os(),t=ss(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return RS=r,RS}var jS,fV;function Qle(){if(fV)return jS;fV=1;var e=oq();function t(n){return e(n)&&n!=+n}return jS=t,jS}var Xle=Qle();const df=It(Xle);var Wle=oq();const Zle=It(Wle);var Dr=function(t){return t===0?0:t>0?1:-1},gu=function(t){return Iu(t)&&t.indexOf("%")===t.length-1},Oe=function(t){return Zle(t)&&!df(t)},Jle=function(t){return rt(t)},Vn=function(t){return Oe(t)||Iu(t)},eue=0,ff=function(t){var n=++eue;return"".concat(t||"").concat(n)},Rr=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Oe(t)&&!Iu(t))return r;var s;if(gu(t)){var u=t.indexOf("%");s=n*parseFloat(t.slice(0,u))/100}else s=+t;return df(s)&&(s=r),o&&s>n&&(s=n),s},nl=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},tue=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},o=0;o<n;o++)if(!r[t[o]])r[t[o]]=!0;else return!0;return!1},Hr=function(t,n){return Oe(t)&&Oe(n)?function(r){return t+r*(n-t)}:function(){return n}};function eb(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):ma(r,t))===n})}var nue=function(t,n){return Oe(t)&&Oe(n)?t-n:Iu(t)&&Iu(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function xd(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function NC(e){"@babel/helpers - typeof";return NC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},NC(e)}var rue=["viewBox","children"],aue=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],mV=["points","pathLength"],PS={svg:rue,polygon:mV,polyline:mV},HD=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],tb=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(R.isValidElement(t)&&(r=t.props),!cf(r))return null;var o={};return Object.keys(r).forEach(function(s){HD.includes(s)&&(o[s]=n||function(u){return r[s](r,u)})}),o},iue=function(t,n,r){return function(o){return t(n,r,o),null}},$u=function(t,n,r){if(!cf(t)||NC(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(s){var u=t[s];HD.includes(s)&&typeof u=="function"&&(o||(o={}),o[s]=iue(u,n,r))}),o},oue=["children"],sue=["children"];function pV(e,t){if(e==null)return{};var n=lue(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function EC(e){"@babel/helpers - typeof";return EC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},EC(e)}var hV={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Xo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},gV=null,MS=null,FD=function e(t){if(t===gV&&Array.isArray(MS))return MS;var n=[];return R.Children.forEach(t,function(r){rt(r)||(Yle.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),MS=n,gV=t,n};function Ia(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return Xo(o)}):r=[Xo(t)],FD(e).forEach(function(o){var s=ma(o,"type.displayName")||ma(o,"type.name");r.indexOf(s)!==-1&&n.push(o)}),n}function ua(e,t){var n=Ia(e,t);return n&&n[0]}var vV=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,o=n.height;return!(!Oe(r)||r<=0||!Oe(o)||o<=0)},uue=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],cue=function(t){return t&&t.type&&Iu(t.type)&&uue.indexOf(t.type)>=0},due=function(t){return t&&EC(t)==="object"&&"clipDot"in t},fue=function(t,n,r,o){var s,u=(s=PS?.[o])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!Qe(t)&&(o&&u.includes(n)||aue.includes(n))||r&&HD.includes(n)},Fe=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(R.isValidElement(t)&&(o=t.props),!cf(o))return null;var s={};return Object.keys(o).forEach(function(u){var c;fue((c=o)===null||c===void 0?void 0:c[u],u,n,r)&&(s[u]=o[u])}),s},SC=function e(t,n){if(t===n)return!0;var r=R.Children.count(t);if(r!==R.Children.count(n))return!1;if(r===0)return!0;if(r===1)return yV(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var s=t[o],u=n[o];if(Array.isArray(s)||Array.isArray(u)){if(!e(s,u))return!1}else if(!yV(s,u))return!1}return!0},yV=function(t,n){if(rt(t)&&rt(n))return!0;if(!rt(t)&&!rt(n)){var r=t.props||{},o=r.children,s=pV(r,oue),u=n.props||{},c=u.children,f=pV(u,sue);return o&&c?xd(s,f)&&SC(o,c):!o&&!c?xd(s,f):!1}return!1},bV=function(t,n){var r=[],o={};return FD(t).forEach(function(s,u){if(cue(s))r.push(s);else if(s){var c=Xo(s.type),f=n[c]||{},m=f.handler,g=f.once;if(m&&(!g||!o[c])){var p=m(s,c,u);r.push(p),o[c]=!0}}}),r},mue=function(t){var n=t&&t.type;return n&&hV[n]?hV[n]:null},pue=function(t,n){return FD(n).indexOf(t)},hue=["children","width","height","viewBox","className","style","title","desc"];function AC(){return AC=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},AC.apply(this,arguments)}function gue(e,t){if(e==null)return{};var n=vue(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function OC(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,s=e.className,u=e.style,c=e.title,f=e.desc,m=gue(e,hue),g=o||{width:n,height:r,x:0,y:0},p=nt("recharts-surface",s);return F.createElement("svg",AC({},Fe(m,!0,"svg"),{className:p,width:n,height:r,style:u,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height)}),F.createElement("title",null,c),F.createElement("desc",null,f),t)}var yue=["children","className"];function TC(){return TC=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},TC.apply(this,arguments)}function bue(e,t){if(e==null)return{};var n=xue(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Nt=F.forwardRef(function(e,t){var n=e.children,r=e.className,o=bue(e,yue),s=nt("recharts-layer",r);return F.createElement("g",TC({className:s},Fe(o,!0),{ref:t}),n)}),ii=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;console.warn(n.replace(/%s/g,function(){return o[u++]}))}},LS,xV;function wue(){if(xV)return LS;xV=1;function e(t,n,r){var o=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var u=Array(s);++o<s;)u[o]=t[o+n];return u}return LS=e,LS}var kS,wV;function Nue(){if(wV)return kS;wV=1;var e=wue();function t(n,r,o){var s=n.length;return o=o===void 0?s:o,!r&&o>=s?n:e(n,r,o)}return kS=t,kS}var IS,NV;function sq(){if(NV)return IS;NV=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,s="\\ufe0e\\ufe0f",u="\\u200d",c=RegExp("["+u+e+o+s+"]");function f(m){return c.test(m)}return IS=f,IS}var $S,EV;function Eue(){if(EV)return $S;EV=1;function e(t){return t.split("")}return $S=e,$S}var VS,SV;function Sue(){if(SV)return VS;SV=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,s="\\ufe0e\\ufe0f",u="["+e+"]",c="["+o+"]",f="\\ud83c[\\udffb-\\udfff]",m="(?:"+c+"|"+f+")",g="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",S=m+"?",x="["+s+"]?",N="(?:"+b+"(?:"+[g,p,y].join("|")+")"+x+S+")*",T=x+S+N,C="(?:"+[g+c+"?",c,p,y,u].join("|")+")",D=RegExp(f+"(?="+f+")|"+C+T,"g");function P(A){return A.match(D)||[]}return VS=P,VS}var BS,AV;function Aue(){if(AV)return BS;AV=1;var e=Eue(),t=sq(),n=Sue();function r(o){return t(o)?n(o):e(o)}return BS=r,BS}var zS,OV;function Oue(){if(OV)return zS;OV=1;var e=Nue(),t=sq(),n=Aue(),r=rq();function o(s){return function(u){u=r(u);var c=t(u)?n(u):void 0,f=c?c[0]:u.charAt(0),m=c?e(c,1).join(""):u.slice(1);return f[s]()+m}}return zS=o,zS}var US,TV;function Tue(){if(TV)return US;TV=1;var e=Oue(),t=e("toUpperCase");return US=t,US}var Cue=Tue();const P0=It(Cue);function Wt(e){return function(){return e}}const lq=Math.cos,nb=Math.sin,ci=Math.sqrt,rb=Math.PI,M0=2*rb,CC=Math.PI,_C=2*CC,du=1e-6,_ue=_C-du;function uq(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Due(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return uq;const n=10**t;return function(r){this._+=r[0];for(let o=1,s=r.length;o<s;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class Rue{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?uq:Due(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,s,u){this._append`C${+t},${+n},${+r},${+o},${this._x1=+s},${this._y1=+u}`}arcTo(t,n,r,o,s){if(t=+t,n=+n,r=+r,o=+o,s=+s,s<0)throw new Error(`negative radius: ${s}`);let u=this._x1,c=this._y1,f=r-t,m=o-n,g=u-t,p=c-n,y=g*g+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>du)if(!(Math.abs(p*f-m*g)>du)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let b=r-u,S=o-c,x=f*f+m*m,N=b*b+S*S,T=Math.sqrt(x),C=Math.sqrt(y),D=s*Math.tan((CC-Math.acos((x+y-N)/(2*T*C)))/2),P=D/C,A=D/T;Math.abs(P-1)>du&&this._append`L${t+P*g},${n+P*p}`,this._append`A${s},${s},0,0,${+(p*b>g*S)},${this._x1=t+A*f},${this._y1=n+A*m}`}}arc(t,n,r,o,s,u){if(t=+t,n=+n,r=+r,u=!!u,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(o),f=r*Math.sin(o),m=t+c,g=n+f,p=1^u,y=u?o-s:s-o;this._x1===null?this._append`M${m},${g}`:(Math.abs(this._x1-m)>du||Math.abs(this._y1-g)>du)&&this._append`L${m},${g}`,r&&(y<0&&(y=y%_C+_C),y>_ue?this._append`A${r},${r},0,1,${p},${t-c},${n-f}A${r},${r},0,1,${p},${this._x1=m},${this._y1=g}`:y>du&&this._append`A${r},${r},0,${+(y>=CC)},${p},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function KD(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Rue(t)}function GD(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cq(e){this._context=e}cq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function L0(e){return new cq(e)}function dq(e){return e[0]}function fq(e){return e[1]}function mq(e,t){var n=Wt(!0),r=null,o=L0,s=null,u=KD(c);e=typeof e=="function"?e:e===void 0?dq:Wt(e),t=typeof t=="function"?t:t===void 0?fq:Wt(t);function c(f){var m,g=(f=GD(f)).length,p,y=!1,b;for(r==null&&(s=o(b=u())),m=0;m<=g;++m)!(m<g&&n(p=f[m],m,f))===y&&((y=!y)?s.lineStart():s.lineEnd()),y&&s.point(+e(p,m,f),+t(p,m,f));if(b)return s=null,b+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Wt(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Wt(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:Wt(!!f),c):n},c.curve=function(f){return arguments.length?(o=f,r!=null&&(s=o(r)),c):o},c.context=function(f){return arguments.length?(f==null?r=s=null:s=o(r=f),c):r},c}function by(e,t,n){var r=null,o=Wt(!0),s=null,u=L0,c=null,f=KD(m);e=typeof e=="function"?e:e===void 0?dq:Wt(+e),t=typeof t=="function"?t:Wt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?fq:Wt(+n);function m(p){var y,b,S,x=(p=GD(p)).length,N,T=!1,C,D=new Array(x),P=new Array(x);for(s==null&&(c=u(C=f())),y=0;y<=x;++y){if(!(y<x&&o(N=p[y],y,p))===T)if(T=!T)b=y,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),S=y-1;S>=b;--S)c.point(D[S],P[S]);c.lineEnd(),c.areaEnd()}T&&(D[y]=+e(N,y,p),P[y]=+t(N,y,p),c.point(r?+r(N,y,p):D[y],n?+n(N,y,p):P[y]))}if(C)return c=null,C+""||null}function g(){return mq().defined(o).curve(u).context(s)}return m.x=function(p){return arguments.length?(e=typeof p=="function"?p:Wt(+p),r=null,m):e},m.x0=function(p){return arguments.length?(e=typeof p=="function"?p:Wt(+p),m):e},m.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:Wt(+p),m):r},m.y=function(p){return arguments.length?(t=typeof p=="function"?p:Wt(+p),n=null,m):t},m.y0=function(p){return arguments.length?(t=typeof p=="function"?p:Wt(+p),m):t},m.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:Wt(+p),m):n},m.lineX0=m.lineY0=function(){return g().x(e).y(t)},m.lineY1=function(){return g().x(e).y(n)},m.lineX1=function(){return g().x(r).y(t)},m.defined=function(p){return arguments.length?(o=typeof p=="function"?p:Wt(!!p),m):o},m.curve=function(p){return arguments.length?(u=p,s!=null&&(c=u(s)),m):u},m.context=function(p){return arguments.length?(p==null?s=c=null:c=u(s=p),m):s},m}class pq{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function jue(e){return new pq(e,!0)}function Pue(e){return new pq(e,!1)}const YD={draw(e,t){const n=ci(t/rb);e.moveTo(n,0),e.arc(0,0,n,0,M0)}},Mue={draw(e,t){const n=ci(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},hq=ci(1/3),Lue=hq*2,kue={draw(e,t){const n=ci(t/Lue),r=n*hq;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Iue={draw(e,t){const n=ci(t),r=-n/2;e.rect(r,r,n,n)}},$ue=.8908130915292852,gq=nb(rb/10)/nb(7*rb/10),Vue=nb(M0/10)*gq,Bue=-lq(M0/10)*gq,zue={draw(e,t){const n=ci(t*$ue),r=Vue*n,o=Bue*n;e.moveTo(0,-n),e.lineTo(r,o);for(let s=1;s<5;++s){const u=M0*s/5,c=lq(u),f=nb(u);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*o,f*r+c*o)}e.closePath()}},qS=ci(3),Uue={draw(e,t){const n=-ci(t/(qS*3));e.moveTo(0,n*2),e.lineTo(-qS*n,-n),e.lineTo(qS*n,-n),e.closePath()}},Da=-.5,Ra=ci(3)/2,DC=1/ci(12),que=(DC/2+1)*3,Hue={draw(e,t){const n=ci(t/que),r=n/2,o=n*DC,s=r,u=n*DC+n,c=-s,f=u;e.moveTo(r,o),e.lineTo(s,u),e.lineTo(c,f),e.lineTo(Da*r-Ra*o,Ra*r+Da*o),e.lineTo(Da*s-Ra*u,Ra*s+Da*u),e.lineTo(Da*c-Ra*f,Ra*c+Da*f),e.lineTo(Da*r+Ra*o,Da*o-Ra*r),e.lineTo(Da*s+Ra*u,Da*u-Ra*s),e.lineTo(Da*c+Ra*f,Da*f-Ra*c),e.closePath()}};function Fue(e,t){let n=null,r=KD(o);e=typeof e=="function"?e:Wt(e||YD),t=typeof t=="function"?t:Wt(t===void 0?64:+t);function o(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return o.type=function(s){return arguments.length?(e=typeof s=="function"?s:Wt(s),o):e},o.size=function(s){return arguments.length?(t=typeof s=="function"?s:Wt(+s),o):t},o.context=function(s){return arguments.length?(n=s??null,o):n},o}function ab(){}function ib(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function vq(e){this._context=e}vq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ib(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ib(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Kue(e){return new vq(e)}function yq(e){this._context=e}yq.prototype={areaStart:ab,areaEnd:ab,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ib(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Gue(e){return new yq(e)}function bq(e){this._context=e}bq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ib(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Yue(e){return new bq(e)}function xq(e){this._context=e}xq.prototype={areaStart:ab,areaEnd:ab,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Que(e){return new xq(e)}function CV(e){return e<0?-1:1}function _V(e,t,n){var r=e._x1-e._x0,o=t-e._x1,s=(e._y1-e._y0)/(r||o<0&&-0),u=(n-e._y1)/(o||r<0&&-0),c=(s*o+u*r)/(r+o);return(CV(s)+CV(u))*Math.min(Math.abs(s),Math.abs(u),.5*Math.abs(c))||0}function DV(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function HS(e,t,n){var r=e._x0,o=e._y0,s=e._x1,u=e._y1,c=(s-r)/3;e._context.bezierCurveTo(r+c,o+c*t,s-c,u-c*n,s,u)}function ob(e){this._context=e}ob.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:HS(this,this._t0,DV(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,HS(this,DV(this,n=_V(this,e,t)),n);break;default:HS(this,this._t0,n=_V(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function wq(e){this._context=new Nq(e)}(wq.prototype=Object.create(ob.prototype)).point=function(e,t){ob.prototype.point.call(this,t,e)};function Nq(e){this._context=e}Nq.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,s){this._context.bezierCurveTo(t,e,r,n,s,o)}};function Xue(e){return new ob(e)}function Wue(e){return new wq(e)}function Eq(e){this._context=e}Eq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=RV(e),o=RV(t),s=0,u=1;u<n;++s,++u)this._context.bezierCurveTo(r[0][s],o[0][s],r[1][s],o[1][s],e[u],t[u]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function RV(e){var t,n=e.length-1,r,o=new Array(n),s=new Array(n),u=new Array(n);for(o[0]=0,s[0]=2,u[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,s[t]=4,u[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,s[n-1]=7,u[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/s[t-1],s[t]-=r,u[t]-=r*u[t-1];for(o[n-1]=u[n-1]/s[n-1],t=n-2;t>=0;--t)o[t]=(u[t]-o[t+1])/s[t];for(s[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-o[t+1];return[o,s]}function Zue(e){return new Eq(e)}function k0(e,t){this._context=e,this._t=t}k0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Jue(e){return new k0(e,.5)}function ece(e){return new k0(e,0)}function tce(e){return new k0(e,1)}function Td(e,t){if((u=e.length)>1)for(var n=1,r,o,s=e[t[0]],u,c=s.length;n<u;++n)for(o=s,s=e[t[n]],r=0;r<c;++r)s[r][1]+=s[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function RC(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function nce(e,t){return e[t]}function rce(e){const t=[];return t.key=e,t}function ace(){var e=Wt([]),t=RC,n=Td,r=nce;function o(s){var u=Array.from(e.apply(this,arguments),rce),c,f=u.length,m=-1,g;for(const p of s)for(c=0,++m;c<f;++c)(u[c][m]=[0,+r(p,u[c].key,m,s)]).data=p;for(c=0,g=GD(t(u));c<f;++c)u[g[c]].index=c;return n(u,g),u}return o.keys=function(s){return arguments.length?(e=typeof s=="function"?s:Wt(Array.from(s)),o):e},o.value=function(s){return arguments.length?(r=typeof s=="function"?s:Wt(+s),o):r},o.order=function(s){return arguments.length?(t=s==null?RC:typeof s=="function"?s:Wt(Array.from(s)),o):t},o.offset=function(s){return arguments.length?(n=s??Td,o):n},o}function ice(e,t){if((r=e.length)>0){for(var n,r,o=0,s=e[0].length,u;o<s;++o){for(u=n=0;n<r;++n)u+=e[n][o][1]||0;if(u)for(n=0;n<r;++n)e[n][o][1]/=u}Td(e,t)}}function oce(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,s=r.length;n<s;++n){for(var u=0,c=0;u<o;++u)c+=e[u][n][1]||0;r[n][1]+=r[n][0]=-c/2}Td(e,t)}}function sce(e,t){if(!(!((u=e.length)>0)||!((s=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,s,u;r<s;++r){for(var c=0,f=0,m=0;c<u;++c){for(var g=e[t[c]],p=g[r][1]||0,y=g[r-1][1]||0,b=(p-y)/2,S=0;S<c;++S){var x=e[t[S]],N=x[r][1]||0,T=x[r-1][1]||0;b+=N-T}f+=p,m+=b*p}o[r-1][1]+=o[r-1][0]=n,f&&(n-=m/f)}o[r-1][1]+=o[r-1][0]=n,Td(e,t)}}function zp(e){"@babel/helpers - typeof";return zp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zp(e)}var lce=["type","size","sizeType"];function jC(){return jC=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},jC.apply(this,arguments)}function jV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function PV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jV(Object(n),!0).forEach(function(r){uce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jV(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uce(e,t,n){return t=cce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cce(e){var t=dce(e,"string");return zp(t)=="symbol"?t:t+""}function dce(e,t){if(zp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fce(e,t){if(e==null)return{};var n=mce(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mce(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Sq={symbolCircle:YD,symbolCross:Mue,symbolDiamond:kue,symbolSquare:Iue,symbolStar:zue,symbolTriangle:Uue,symbolWye:Hue},pce=Math.PI/180,hce=function(t){var n="symbol".concat(P0(t));return Sq[n]||YD},gce=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*pce;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},vce=function(t,n){Sq["symbol".concat(P0(t))]=n},QD=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,s=o===void 0?64:o,u=t.sizeType,c=u===void 0?"area":u,f=fce(t,lce),m=PV(PV({},f),{},{type:r,size:s,sizeType:c}),g=function(){var N=hce(r),T=Fue().type(N).size(gce(s,c,r));return T()},p=m.className,y=m.cx,b=m.cy,S=Fe(m,!0);return y===+y&&b===+b&&s===+s?F.createElement("path",jC({},S,{className:nt("recharts-symbols",p),transform:"translate(".concat(y,", ").concat(b,")"),d:g()})):null};QD.registerSymbol=vce;function Cd(e){"@babel/helpers - typeof";return Cd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cd(e)}function PC(){return PC=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},PC.apply(this,arguments)}function MV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MV(Object(n),!0).forEach(function(r){Up(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MV(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oq(r.key),r)}}function wce(e,t,n){return t&&xce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nce(e,t,n){return t=sb(t),Ece(e,Aq()?Reflect.construct(t,n||[],sb(e).constructor):t.apply(e,n))}function Ece(e,t){if(t&&(Cd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sce(e)}function Sce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Aq=function(){return!!e})()}function sb(e){return sb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sb(e)}function Ace(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&MC(e,t)}function MC(e,t){return MC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},MC(e,t)}function Up(e,t,n){return t=Oq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oq(e){var t=Oce(e,"string");return Cd(t)=="symbol"?t:t+""}function Oce(e,t){if(Cd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ja=32,XD=(function(e){function t(){return bce(this,t),Nce(this,t,arguments)}return Ace(t,e),wce(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,s=ja/2,u=ja/6,c=ja/3,f=r.inactive?o:r.color;if(r.type==="plainline")return F.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:s,x2:ja,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return F.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(s,"h").concat(c,`
|
||
A`).concat(u,",").concat(u,",0,1,1,").concat(2*c,",").concat(s,`
|
||
H`).concat(ja,"M").concat(2*c,",").concat(s,`
|
||
A`).concat(u,",").concat(u,",0,1,1,").concat(c,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return F.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(ja/8,"h").concat(ja,"v").concat(ja*3/4,"h").concat(-ja,"z"),className:"recharts-legend-icon"});if(F.isValidElement(r.legendIcon)){var m=yce({},r);return delete m.legendIcon,F.cloneElement(r.legendIcon,m)}return F.createElement(QD,{fill:f,cx:s,cy:s,size:ja,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,s=o.payload,u=o.iconSize,c=o.layout,f=o.formatter,m=o.inactiveColor,g={x:0,y:0,width:ja,height:ja},p={display:c==="horizontal"?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(b,S){var x=b.formatter||f,N=nt(Up(Up({"recharts-legend-item":!0},"legend-item-".concat(S),!0),"inactive",b.inactive));if(b.type==="none")return null;var T=Qe(b.value)?null:b.value;ii(!Qe(b.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var C=b.inactive?m:b.color;return F.createElement("li",PC({className:N,style:p,key:"legend-item-".concat(S)},$u(r.props,b,S)),F.createElement(OC,{width:u,height:u,viewBox:g,style:y},r.renderIcon(b)),F.createElement("span",{className:"recharts-legend-item-text",style:{color:C}},x?x(T,b,S):T))})}},{key:"render",value:function(){var r=this.props,o=r.payload,s=r.layout,u=r.align;if(!o||!o.length)return null;var c={padding:0,margin:0,textAlign:s==="horizontal"?u:"left"};return F.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(R.PureComponent);Up(XD,"displayName","Legend");Up(XD,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var FS,LV;function Tce(){if(LV)return FS;LV=1;var e=D0();function t(){this.__data__=new e,this.size=0}return FS=t,FS}var KS,kV;function Cce(){if(kV)return KS;kV=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return KS=e,KS}var GS,IV;function _ce(){if(IV)return GS;IV=1;function e(t){return this.__data__.get(t)}return GS=e,GS}var YS,$V;function Dce(){if($V)return YS;$V=1;function e(t){return this.__data__.has(t)}return YS=e,YS}var QS,VV;function Rce(){if(VV)return QS;VV=1;var e=D0(),t=BD(),n=zD(),r=200;function o(s,u){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([s,u]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(s,u),this.size=c.size,this}return QS=o,QS}var XS,BV;function Tq(){if(BV)return XS;BV=1;var e=D0(),t=Tce(),n=Cce(),r=_ce(),o=Dce(),s=Rce();function u(c){var f=this.__data__=new e(c);this.size=f.size}return u.prototype.clear=t,u.prototype.delete=n,u.prototype.get=r,u.prototype.has=o,u.prototype.set=s,XS=u,XS}var WS,zV;function jce(){if(zV)return WS;zV=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return WS=t,WS}var ZS,UV;function Pce(){if(UV)return ZS;UV=1;function e(t){return this.__data__.has(t)}return ZS=e,ZS}var JS,qV;function Cq(){if(qV)return JS;qV=1;var e=zD(),t=jce(),n=Pce();function r(o){var s=-1,u=o==null?0:o.length;for(this.__data__=new e;++s<u;)this.add(o[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,JS=r,JS}var eA,HV;function _q(){if(HV)return eA;HV=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return eA=e,eA}var tA,FV;function Dq(){if(FV)return tA;FV=1;function e(t,n){return t.has(n)}return tA=e,tA}var nA,KV;function Rq(){if(KV)return nA;KV=1;var e=Cq(),t=_q(),n=Dq(),r=1,o=2;function s(u,c,f,m,g,p){var y=f&r,b=u.length,S=c.length;if(b!=S&&!(y&&S>b))return!1;var x=p.get(u),N=p.get(c);if(x&&N)return x==c&&N==u;var T=-1,C=!0,D=f&o?new e:void 0;for(p.set(u,c),p.set(c,u);++T<b;){var P=u[T],A=c[T];if(m)var _=y?m(A,P,T,c,u,p):m(P,A,T,u,c,p);if(_!==void 0){if(_)continue;C=!1;break}if(D){if(!t(c,function(j,L){if(!n(D,L)&&(P===j||g(P,j,f,m,p)))return D.push(L)})){C=!1;break}}else if(!(P===A||g(P,A,f,m,p))){C=!1;break}}return p.delete(u),p.delete(c),C}return nA=s,nA}var rA,GV;function Mce(){if(GV)return rA;GV=1;var e=uo(),t=e.Uint8Array;return rA=t,rA}var aA,YV;function Lce(){if(YV)return aA;YV=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,s){r[++n]=[s,o]}),r}return aA=e,aA}var iA,QV;function WD(){if(QV)return iA;QV=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return iA=e,iA}var oA,XV;function kce(){if(XV)return oA;XV=1;var e=Lh(),t=Mce(),n=VD(),r=Rq(),o=Lce(),s=WD(),u=1,c=2,f="[object Boolean]",m="[object Date]",g="[object Error]",p="[object Map]",y="[object Number]",b="[object RegExp]",S="[object Set]",x="[object String]",N="[object Symbol]",T="[object ArrayBuffer]",C="[object DataView]",D=e?e.prototype:void 0,P=D?D.valueOf:void 0;function A(_,j,L,V,B,U,H){switch(L){case C:if(_.byteLength!=j.byteLength||_.byteOffset!=j.byteOffset)return!1;_=_.buffer,j=j.buffer;case T:return!(_.byteLength!=j.byteLength||!U(new t(_),new t(j)));case f:case m:case y:return n(+_,+j);case g:return _.name==j.name&&_.message==j.message;case b:case x:return _==j+"";case p:var G=o;case S:var Y=V&u;if(G||(G=s),_.size!=j.size&&!Y)return!1;var J=H.get(_);if(J)return J==j;V|=c,H.set(_,j);var q=r(G(_),G(j),V,B,U,H);return H.delete(_),q;case N:if(P)return P.call(_)==P.call(j)}return!1}return oA=A,oA}var sA,WV;function jq(){if(WV)return sA;WV=1;function e(t,n){for(var r=-1,o=n.length,s=t.length;++r<o;)t[s+r]=n[r];return t}return sA=e,sA}var lA,ZV;function Ice(){if(ZV)return lA;ZV=1;var e=jq(),t=Kr();function n(r,o,s){var u=o(r);return t(r)?u:e(u,s(r))}return lA=n,lA}var uA,JV;function $ce(){if(JV)return uA;JV=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,s=0,u=[];++r<o;){var c=t[r];n(c,r,t)&&(u[s++]=c)}return u}return uA=e,uA}var cA,eB;function Vce(){if(eB)return cA;eB=1;function e(){return[]}return cA=e,cA}var dA,tB;function Bce(){if(tB)return dA;tB=1;var e=$ce(),t=Vce(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(u){return u==null?[]:(u=Object(u),e(o(u),function(c){return r.call(u,c)}))}:t;return dA=s,dA}var fA,nB;function zce(){if(nB)return fA;nB=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return fA=e,fA}var mA,rB;function Uce(){if(rB)return mA;rB=1;var e=os(),t=ss(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return mA=r,mA}var pA,aB;function ZD(){if(aB)return pA;aB=1;var e=Uce(),t=ss(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(u){return t(u)&&r.call(u,"callee")&&!o.call(u,"callee")};return pA=s,pA}var fp={exports:{}},hA,iB;function qce(){if(iB)return hA;iB=1;function e(){return!1}return hA=e,hA}fp.exports;var oB;function Pq(){return oB||(oB=1,(function(e,t){var n=uo(),r=qce(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,u=s&&s.exports===o,c=u?n.Buffer:void 0,f=c?c.isBuffer:void 0,m=f||r;e.exports=m})(fp,fp.exports)),fp.exports}var gA,sB;function JD(){if(sB)return gA;sB=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,o){var s=typeof r;return o=o??e,!!o&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}return gA=n,gA}var vA,lB;function eR(){if(lB)return vA;lB=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return vA=t,vA}var yA,uB;function Hce(){if(uB)return yA;uB=1;var e=os(),t=eR(),n=ss(),r="[object Arguments]",o="[object Array]",s="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Function]",m="[object Map]",g="[object Number]",p="[object Object]",y="[object RegExp]",b="[object Set]",S="[object String]",x="[object WeakMap]",N="[object ArrayBuffer]",T="[object DataView]",C="[object Float32Array]",D="[object Float64Array]",P="[object Int8Array]",A="[object Int16Array]",_="[object Int32Array]",j="[object Uint8Array]",L="[object Uint8ClampedArray]",V="[object Uint16Array]",B="[object Uint32Array]",U={};U[C]=U[D]=U[P]=U[A]=U[_]=U[j]=U[L]=U[V]=U[B]=!0,U[r]=U[o]=U[N]=U[s]=U[T]=U[u]=U[c]=U[f]=U[m]=U[g]=U[p]=U[y]=U[b]=U[S]=U[x]=!1;function H(G){return n(G)&&t(G.length)&&!!U[e(G)]}return yA=H,yA}var bA,cB;function Mq(){if(cB)return bA;cB=1;function e(t){return function(n){return t(n)}}return bA=e,bA}var mp={exports:{}};mp.exports;var dB;function Fce(){return dB||(dB=1,(function(e,t){var n=eq(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===r,u=s&&n.process,c=(function(){try{var f=o&&o.require&&o.require("util").types;return f||u&&u.binding&&u.binding("util")}catch{}})();e.exports=c})(mp,mp.exports)),mp.exports}var xA,fB;function Lq(){if(fB)return xA;fB=1;var e=Hce(),t=Mq(),n=Fce(),r=n&&n.isTypedArray,o=r?t(r):e;return xA=o,xA}var wA,mB;function Kce(){if(mB)return wA;mB=1;var e=zce(),t=ZD(),n=Kr(),r=Pq(),o=JD(),s=Lq(),u=Object.prototype,c=u.hasOwnProperty;function f(m,g){var p=n(m),y=!p&&t(m),b=!p&&!y&&r(m),S=!p&&!y&&!b&&s(m),x=p||y||b||S,N=x?e(m.length,String):[],T=N.length;for(var C in m)(g||c.call(m,C))&&!(x&&(C=="length"||b&&(C=="offset"||C=="parent")||S&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||o(C,T)))&&N.push(C);return N}return wA=f,wA}var NA,pB;function Gce(){if(pB)return NA;pB=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return NA=t,NA}var EA,hB;function kq(){if(hB)return EA;hB=1;function e(t,n){return function(r){return t(n(r))}}return EA=e,EA}var SA,gB;function Yce(){if(gB)return SA;gB=1;var e=kq(),t=e(Object.keys,Object);return SA=t,SA}var AA,vB;function Qce(){if(vB)return AA;vB=1;var e=Gce(),t=Yce(),n=Object.prototype,r=n.hasOwnProperty;function o(s){if(!e(s))return t(s);var u=[];for(var c in Object(s))r.call(s,c)&&c!="constructor"&&u.push(c);return u}return AA=o,AA}var OA,yB;function kh(){if(yB)return OA;yB=1;var e=$D(),t=eR();function n(r){return r!=null&&t(r.length)&&!e(r)}return OA=n,OA}var TA,bB;function I0(){if(bB)return TA;bB=1;var e=Kce(),t=Qce(),n=kh();function r(o){return n(o)?e(o):t(o)}return TA=r,TA}var CA,xB;function Xce(){if(xB)return CA;xB=1;var e=Ice(),t=Bce(),n=I0();function r(o){return e(o,n,t)}return CA=r,CA}var _A,wB;function Wce(){if(wB)return _A;wB=1;var e=Xce(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(s,u,c,f,m,g){var p=c&t,y=e(s),b=y.length,S=e(u),x=S.length;if(b!=x&&!p)return!1;for(var N=b;N--;){var T=y[N];if(!(p?T in u:r.call(u,T)))return!1}var C=g.get(s),D=g.get(u);if(C&&D)return C==u&&D==s;var P=!0;g.set(s,u),g.set(u,s);for(var A=p;++N<b;){T=y[N];var _=s[T],j=u[T];if(f)var L=p?f(j,_,T,u,s,g):f(_,j,T,s,u,g);if(!(L===void 0?_===j||m(_,j,c,f,g):L)){P=!1;break}A||(A=T=="constructor")}if(P&&!A){var V=s.constructor,B=u.constructor;V!=B&&"constructor"in s&&"constructor"in u&&!(typeof V=="function"&&V instanceof V&&typeof B=="function"&&B instanceof B)&&(P=!1)}return g.delete(s),g.delete(u),P}return _A=o,_A}var DA,NB;function Zce(){if(NB)return DA;NB=1;var e=Xu(),t=uo(),n=e(t,"DataView");return DA=n,DA}var RA,EB;function Jce(){if(EB)return RA;EB=1;var e=Xu(),t=uo(),n=e(t,"Promise");return RA=n,RA}var jA,SB;function Iq(){if(SB)return jA;SB=1;var e=Xu(),t=uo(),n=e(t,"Set");return jA=n,jA}var PA,AB;function ede(){if(AB)return PA;AB=1;var e=Xu(),t=uo(),n=e(t,"WeakMap");return PA=n,PA}var MA,OB;function tde(){if(OB)return MA;OB=1;var e=Zce(),t=BD(),n=Jce(),r=Iq(),o=ede(),s=os(),u=tq(),c="[object Map]",f="[object Object]",m="[object Promise]",g="[object Set]",p="[object WeakMap]",y="[object DataView]",b=u(e),S=u(t),x=u(n),N=u(r),T=u(o),C=s;return(e&&C(new e(new ArrayBuffer(1)))!=y||t&&C(new t)!=c||n&&C(n.resolve())!=m||r&&C(new r)!=g||o&&C(new o)!=p)&&(C=function(D){var P=s(D),A=P==f?D.constructor:void 0,_=A?u(A):"";if(_)switch(_){case b:return y;case S:return c;case x:return m;case N:return g;case T:return p}return P}),MA=C,MA}var LA,TB;function nde(){if(TB)return LA;TB=1;var e=Tq(),t=Rq(),n=kce(),r=Wce(),o=tde(),s=Kr(),u=Pq(),c=Lq(),f=1,m="[object Arguments]",g="[object Array]",p="[object Object]",y=Object.prototype,b=y.hasOwnProperty;function S(x,N,T,C,D,P){var A=s(x),_=s(N),j=A?g:o(x),L=_?g:o(N);j=j==m?p:j,L=L==m?p:L;var V=j==p,B=L==p,U=j==L;if(U&&u(x)){if(!u(N))return!1;A=!0,V=!1}if(U&&!V)return P||(P=new e),A||c(x)?t(x,N,T,C,D,P):n(x,N,j,T,C,D,P);if(!(T&f)){var H=V&&b.call(x,"__wrapped__"),G=B&&b.call(N,"__wrapped__");if(H||G){var Y=H?x.value():x,J=G?N.value():N;return P||(P=new e),D(Y,J,T,C,P)}}return U?(P||(P=new e),r(x,N,T,C,D,P)):!1}return LA=S,LA}var kA,CB;function tR(){if(CB)return kA;CB=1;var e=nde(),t=ss();function n(r,o,s,u,c){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,s,u,n,c)}return kA=n,kA}var IA,_B;function rde(){if(_B)return IA;_B=1;var e=Tq(),t=tR(),n=1,r=2;function o(s,u,c,f){var m=c.length,g=m,p=!f;if(s==null)return!g;for(s=Object(s);m--;){var y=c[m];if(p&&y[2]?y[1]!==s[y[0]]:!(y[0]in s))return!1}for(;++m<g;){y=c[m];var b=y[0],S=s[b],x=y[1];if(p&&y[2]){if(S===void 0&&!(b in s))return!1}else{var N=new e;if(f)var T=f(S,x,b,s,u,N);if(!(T===void 0?t(x,S,n|r,f,N):T))return!1}}return!0}return IA=o,IA}var $A,DB;function $q(){if(DB)return $A;DB=1;var e=ml();function t(n){return n===n&&!e(n)}return $A=t,$A}var VA,RB;function ade(){if(RB)return VA;RB=1;var e=$q(),t=I0();function n(r){for(var o=t(r),s=o.length;s--;){var u=o[s],c=r[u];o[s]=[u,c,e(c)]}return o}return VA=n,VA}var BA,jB;function Vq(){if(jB)return BA;jB=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return BA=e,BA}var zA,PB;function ide(){if(PB)return zA;PB=1;var e=rde(),t=ade(),n=Vq();function r(o){var s=t(o);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(u){return u===o||e(u,o,s)}}return zA=r,zA}var UA,MB;function ode(){if(MB)return UA;MB=1;function e(t,n){return t!=null&&n in Object(t)}return UA=e,UA}var qA,LB;function sde(){if(LB)return qA;LB=1;var e=aq(),t=ZD(),n=Kr(),r=JD(),o=eR(),s=j0();function u(c,f,m){f=e(f,c);for(var g=-1,p=f.length,y=!1;++g<p;){var b=s(f[g]);if(!(y=c!=null&&m(c,b)))break;c=c[b]}return y||++g!=p?y:(p=c==null?0:c.length,!!p&&o(p)&&r(b,p)&&(n(c)||t(c)))}return qA=u,qA}var HA,kB;function lde(){if(kB)return HA;kB=1;var e=ode(),t=sde();function n(r,o){return r!=null&&t(r,o,e)}return HA=n,HA}var FA,IB;function ude(){if(IB)return FA;IB=1;var e=tR(),t=iq(),n=lde(),r=ID(),o=$q(),s=Vq(),u=j0(),c=1,f=2;function m(g,p){return r(g)&&o(p)?s(u(g),p):function(y){var b=t(y,g);return b===void 0&&b===p?n(y,g):e(p,b,c|f)}}return FA=m,FA}var KA,$B;function mf(){if($B)return KA;$B=1;function e(t){return t}return KA=e,KA}var GA,VB;function cde(){if(VB)return GA;VB=1;function e(t){return function(n){return n?.[t]}}return GA=e,GA}var YA,BB;function dde(){if(BB)return YA;BB=1;var e=qD();function t(n){return function(r){return e(r,n)}}return YA=t,YA}var QA,zB;function fde(){if(zB)return QA;zB=1;var e=cde(),t=dde(),n=ID(),r=j0();function o(s){return n(s)?e(r(s)):t(s)}return QA=o,QA}var XA,UB;function co(){if(UB)return XA;UB=1;var e=ide(),t=ude(),n=mf(),r=Kr(),o=fde();function s(u){return typeof u=="function"?u:u==null?n:typeof u=="object"?r(u)?t(u[0],u[1]):e(u):o(u)}return XA=s,XA}var WA,qB;function Bq(){if(qB)return WA;qB=1;function e(t,n,r,o){for(var s=t.length,u=r+(o?1:-1);o?u--:++u<s;)if(n(t[u],u,t))return u;return-1}return WA=e,WA}var ZA,HB;function mde(){if(HB)return ZA;HB=1;function e(t){return t!==t}return ZA=e,ZA}var JA,FB;function pde(){if(FB)return JA;FB=1;function e(t,n,r){for(var o=r-1,s=t.length;++o<s;)if(t[o]===n)return o;return-1}return JA=e,JA}var eO,KB;function hde(){if(KB)return eO;KB=1;var e=Bq(),t=mde(),n=pde();function r(o,s,u){return s===s?n(o,s,u):e(o,t,u)}return eO=r,eO}var tO,GB;function gde(){if(GB)return tO;GB=1;var e=hde();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return tO=t,tO}var nO,YB;function vde(){if(YB)return nO;YB=1;function e(t,n,r){for(var o=-1,s=t==null?0:t.length;++o<s;)if(r(n,t[o]))return!0;return!1}return nO=e,nO}var rO,QB;function yde(){if(QB)return rO;QB=1;function e(){}return rO=e,rO}var aO,XB;function bde(){if(XB)return aO;XB=1;var e=Iq(),t=yde(),n=WD(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return aO=o,aO}var iO,WB;function xde(){if(WB)return iO;WB=1;var e=Cq(),t=gde(),n=vde(),r=Dq(),o=bde(),s=WD(),u=200;function c(f,m,g){var p=-1,y=t,b=f.length,S=!0,x=[],N=x;if(g)S=!1,y=n;else if(b>=u){var T=m?null:o(f);if(T)return s(T);S=!1,y=r,N=new e}else N=m?[]:x;e:for(;++p<b;){var C=f[p],D=m?m(C):C;if(C=g||C!==0?C:0,S&&D===D){for(var P=N.length;P--;)if(N[P]===D)continue e;m&&N.push(D),x.push(C)}else y(N,D,g)||(N!==x&&N.push(D),x.push(C))}return x}return iO=c,iO}var oO,ZB;function wde(){if(ZB)return oO;ZB=1;var e=co(),t=xde();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return oO=n,oO}var Nde=wde();const JB=It(Nde);function zq(e,t,n){return t===!0?JB(e,n):Qe(t)?JB(e,t):e}function _d(e){"@babel/helpers - typeof";return _d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_d(e)}var Ede=["ref"];function e4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e4(Object(n),!0).forEach(function(r){$0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qq(r.key),r)}}function Ade(e,t,n){return t&&t4(e.prototype,t),n&&t4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ode(e,t,n){return t=lb(t),Tde(e,Uq()?Reflect.construct(t,n||[],lb(e).constructor):t.apply(e,n))}function Tde(e,t){if(t&&(_d(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cde(e)}function Cde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uq=function(){return!!e})()}function lb(e){return lb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lb(e)}function _de(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LC(e,t)}function LC(e,t){return LC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},LC(e,t)}function $0(e,t,n){return t=qq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qq(e){var t=Dde(e,"string");return _d(t)=="symbol"?t:t+""}function Dde(e,t){if(_d(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_d(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Rde(e,t){if(e==null)return{};var n=jde(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jde(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Pde(e){return e.value}function Mde(e,t){if(F.isValidElement(e))return F.cloneElement(e,t);if(typeof e=="function")return F.createElement(e,t);t.ref;var n=Rde(t,Ede);return F.createElement(XD,n)}var n4=1,wu=(function(e){function t(){var n;Sde(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=Ode(this,t,[].concat(o)),$0(n,"lastBoundingBox",{width:-1,height:-1}),n}return _de(t,e),Ade(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>n4||Math.abs(o.height-this.lastBoundingBox.height)>n4)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ho({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,s=o.layout,u=o.align,c=o.verticalAlign,f=o.margin,m=o.chartWidth,g=o.chartHeight,p,y;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(u==="center"&&s==="vertical"){var b=this.getBBoxSnapshot();p={left:((m||0)-b.width)/2}}else p=u==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(c==="middle"){var S=this.getBBoxSnapshot();y={top:((g||0)-S.height)/2}}else y=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Ho(Ho({},p),y)}},{key:"render",value:function(){var r=this,o=this.props,s=o.content,u=o.width,c=o.height,f=o.wrapperStyle,m=o.payloadUniqBy,g=o.payload,p=Ho(Ho({position:"absolute",width:u||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return F.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(b){r.wrapperNode=b}},Mde(s,Ho(Ho({},this.props),{},{payload:zq(g,m,Pde)})))}}],[{key:"getWithHeight",value:function(r,o){var s=Ho(Ho({},this.defaultProps),r.props),u=s.layout;return u==="vertical"&&Oe(r.props.height)?{height:r.props.height}:u==="horizontal"?{width:r.props.width||o}:null}}])})(R.PureComponent);$0(wu,"displayName","Legend");$0(wu,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var sO,r4;function Lde(){if(r4)return sO;r4=1;var e=Lh(),t=ZD(),n=Kr(),r=e?e.isConcatSpreadable:void 0;function o(s){return n(s)||t(s)||!!(r&&s&&s[r])}return sO=o,sO}var lO,a4;function Hq(){if(a4)return lO;a4=1;var e=jq(),t=Lde();function n(r,o,s,u,c){var f=-1,m=r.length;for(s||(s=t),c||(c=[]);++f<m;){var g=r[f];o>0&&s(g)?o>1?n(g,o-1,s,u,c):e(c,g):u||(c[c.length]=g)}return c}return lO=n,lO}var uO,i4;function kde(){if(i4)return uO;i4=1;function e(t){return function(n,r,o){for(var s=-1,u=Object(n),c=o(n),f=c.length;f--;){var m=c[t?f:++s];if(r(u[m],m,u)===!1)break}return n}}return uO=e,uO}var cO,o4;function Ide(){if(o4)return cO;o4=1;var e=kde(),t=e();return cO=t,cO}var dO,s4;function Fq(){if(s4)return dO;s4=1;var e=Ide(),t=I0();function n(r,o){return r&&e(r,o,t)}return dO=n,dO}var fO,l4;function $de(){if(l4)return fO;l4=1;var e=kh();function t(n,r){return function(o,s){if(o==null)return o;if(!e(o))return n(o,s);for(var u=o.length,c=r?u:-1,f=Object(o);(r?c--:++c<u)&&s(f[c],c,f)!==!1;);return o}}return fO=t,fO}var mO,u4;function nR(){if(u4)return mO;u4=1;var e=Fq(),t=$de(),n=t(e);return mO=n,mO}var pO,c4;function Kq(){if(c4)return pO;c4=1;var e=nR(),t=kh();function n(r,o){var s=-1,u=t(r)?Array(r.length):[];return e(r,function(c,f,m){u[++s]=o(c,f,m)}),u}return pO=n,pO}var hO,d4;function Vde(){if(d4)return hO;d4=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return hO=e,hO}var gO,f4;function Bde(){if(f4)return gO;f4=1;var e=uf();function t(n,r){if(n!==r){var o=n!==void 0,s=n===null,u=n===n,c=e(n),f=r!==void 0,m=r===null,g=r===r,p=e(r);if(!m&&!p&&!c&&n>r||c&&f&&g&&!m&&!p||s&&f&&g||!o&&g||!u)return 1;if(!s&&!c&&!p&&n<r||p&&o&&u&&!s&&!c||m&&o&&u||!f&&u||!g)return-1}return 0}return gO=t,gO}var vO,m4;function zde(){if(m4)return vO;m4=1;var e=Bde();function t(n,r,o){for(var s=-1,u=n.criteria,c=r.criteria,f=u.length,m=o.length;++s<f;){var g=e(u[s],c[s]);if(g){if(s>=m)return g;var p=o[s];return g*(p=="desc"?-1:1)}}return n.index-r.index}return vO=t,vO}var yO,p4;function Ude(){if(p4)return yO;p4=1;var e=UD(),t=qD(),n=co(),r=Kq(),o=Vde(),s=Mq(),u=zde(),c=mf(),f=Kr();function m(g,p,y){p.length?p=e(p,function(x){return f(x)?function(N){return t(N,x.length===1?x[0]:x)}:x}):p=[c];var b=-1;p=e(p,s(n));var S=r(g,function(x,N,T){var C=e(p,function(D){return D(x)});return{criteria:C,index:++b,value:x}});return o(S,function(x,N){return u(x,N,y)})}return yO=m,yO}var bO,h4;function qde(){if(h4)return bO;h4=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return bO=e,bO}var xO,g4;function Hde(){if(g4)return xO;g4=1;var e=qde(),t=Math.max;function n(r,o,s){return o=t(o===void 0?r.length-1:o,0),function(){for(var u=arguments,c=-1,f=t(u.length-o,0),m=Array(f);++c<f;)m[c]=u[o+c];c=-1;for(var g=Array(o+1);++c<o;)g[c]=u[c];return g[o]=s(m),e(r,this,g)}}return xO=n,xO}var wO,v4;function Fde(){if(v4)return wO;v4=1;function e(t){return function(){return t}}return wO=e,wO}var NO,y4;function Gq(){if(y4)return NO;y4=1;var e=Xu(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return NO=t,NO}var EO,b4;function Kde(){if(b4)return EO;b4=1;var e=Fde(),t=Gq(),n=mf(),r=t?function(o,s){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return EO=r,EO}var SO,x4;function Gde(){if(x4)return SO;x4=1;var e=800,t=16,n=Date.now;function r(o){var s=0,u=0;return function(){var c=n(),f=t-(c-u);if(u=c,f>0){if(++s>=e)return arguments[0]}else s=0;return o.apply(void 0,arguments)}}return SO=r,SO}var AO,w4;function Yde(){if(w4)return AO;w4=1;var e=Kde(),t=Gde(),n=t(e);return AO=n,AO}var OO,N4;function Qde(){if(N4)return OO;N4=1;var e=mf(),t=Hde(),n=Yde();function r(o,s){return n(t(o,s,e),o+"")}return OO=r,OO}var TO,E4;function V0(){if(E4)return TO;E4=1;var e=VD(),t=kh(),n=JD(),r=ml();function o(s,u,c){if(!r(c))return!1;var f=typeof u;return(f=="number"?t(c)&&n(u,c.length):f=="string"&&u in c)?e(c[u],s):!1}return TO=o,TO}var CO,S4;function Xde(){if(S4)return CO;S4=1;var e=Hq(),t=Ude(),n=Qde(),r=V0(),o=n(function(s,u){if(s==null)return[];var c=u.length;return c>1&&r(s,u[0],u[1])?u=[]:c>2&&r(u[0],u[1],u[2])&&(u=[u[0]]),t(s,e(u,1),[])});return CO=o,CO}var Wde=Xde();const rR=It(Wde);function qp(e){"@babel/helpers - typeof";return qp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qp(e)}function kC(){return kC=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},kC.apply(this,arguments)}function Zde(e,t){return nfe(e)||tfe(e,t)||efe(e,t)||Jde()}function Jde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function efe(e,t){if(e){if(typeof e=="string")return A4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A4(e,t)}}function A4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,c=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return c}}function nfe(e){if(Array.isArray(e))return e}function O4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _O(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O4(Object(n),!0).forEach(function(r){rfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rfe(e,t,n){return t=afe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function afe(e){var t=ife(e,"string");return qp(t)=="symbol"?t:t+""}function ife(e,t){if(qp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ofe(e){return Array.isArray(e)&&Vn(e[0])&&Vn(e[1])?e.join(" ~ "):e}var sfe=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,s=o===void 0?{}:o,u=t.itemStyle,c=u===void 0?{}:u,f=t.labelStyle,m=f===void 0?{}:f,g=t.payload,p=t.formatter,y=t.itemSorter,b=t.wrapperClassName,S=t.labelClassName,x=t.label,N=t.labelFormatter,T=t.accessibilityLayer,C=T===void 0?!1:T,D=function(){if(g&&g.length){var H={padding:0,margin:0},G=(y?rR(g,y):g).map(function(Y,J){if(Y.type==="none")return null;var q=_O({display:"block",paddingTop:4,paddingBottom:4,color:Y.color||"#000"},c),z=Y.formatter||p||ofe,K=Y.value,te=Y.name,ne=K,k=te;if(z&&ne!=null&&k!=null){var Q=z(K,te,Y,J,g);if(Array.isArray(Q)){var W=Zde(Q,2);ne=W[0],k=W[1]}else ne=Q}return F.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(J),style:q},Vn(k)?F.createElement("span",{className:"recharts-tooltip-item-name"},k):null,Vn(k)?F.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,F.createElement("span",{className:"recharts-tooltip-item-value"},ne),F.createElement("span",{className:"recharts-tooltip-item-unit"},Y.unit||""))});return F.createElement("ul",{className:"recharts-tooltip-item-list",style:H},G)}return null},P=_O({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),A=_O({margin:0},m),_=!rt(x),j=_?x:"",L=nt("recharts-default-tooltip",b),V=nt("recharts-tooltip-label",S);_&&N&&g!==void 0&&g!==null&&(j=N(x,g));var B=C?{role:"status","aria-live":"assertive"}:{};return F.createElement("div",kC({className:L,style:P},B),F.createElement("p",{className:V,style:A},F.isValidElement(j)?j:"".concat(j)),D())};function Hp(e){"@babel/helpers - typeof";return Hp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hp(e)}function xy(e,t,n){return t=lfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lfe(e){var t=ufe(e,"string");return Hp(t)=="symbol"?t:t+""}function ufe(e,t){if(Hp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ep="recharts-tooltip-wrapper",cfe={visibility:"hidden"};function dfe(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return nt(ep,xy(xy(xy(xy({},"".concat(ep,"-right"),Oe(n)&&t&&Oe(t.x)&&n>=t.x),"".concat(ep,"-left"),Oe(n)&&t&&Oe(t.x)&&n<t.x),"".concat(ep,"-bottom"),Oe(r)&&t&&Oe(t.y)&&r>=t.y),"".concat(ep,"-top"),Oe(r)&&t&&Oe(t.y)&&r<t.y))}function T4(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,s=e.position,u=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,m=e.viewBoxDimension;if(s&&Oe(s[r]))return s[r];var g=n[r]-c-o,p=n[r]+o;if(t[r])return u[r]?g:p;if(u[r]){var y=g,b=f[r];return y<b?Math.max(p,f[r]):Math.max(g,f[r])}var S=p+c,x=f[r]+m;return S>x?Math.max(g,f[r]):Math.max(p,f[r])}function ffe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function mfe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,s=e.reverseDirection,u=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,m,g,p;return u.height>0&&u.width>0&&n?(g=T4({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:s,tooltipDimension:u.width,viewBox:f,viewBoxDimension:f.width}),p=T4({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:s,tooltipDimension:u.height,viewBox:f,viewBoxDimension:f.height}),m=ffe({translateX:g,translateY:p,useTranslate3d:c})):m=cfe,{cssProperties:m,cssClasses:dfe({translateX:g,translateY:p,coordinate:n})}}function Dd(e){"@babel/helpers - typeof";return Dd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dd(e)}function C4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C4(Object(n),!0).forEach(function(r){$C(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hfe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qq(r.key),r)}}function gfe(e,t,n){return t&&hfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vfe(e,t,n){return t=ub(t),yfe(e,Yq()?Reflect.construct(t,n||[],ub(e).constructor):t.apply(e,n))}function yfe(e,t){if(t&&(Dd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bfe(e)}function bfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yq=function(){return!!e})()}function ub(e){return ub=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ub(e)}function xfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IC(e,t)}function IC(e,t){return IC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},IC(e,t)}function $C(e,t,n){return t=Qq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qq(e){var t=wfe(e,"string");return Dd(t)=="symbol"?t:t+""}function wfe(e,t){if(Dd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var D4=1,Nfe=(function(e){function t(){var n;pfe(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=vfe(this,t,[].concat(o)),$C(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),$C(n,"handleKeyDown",function(u){if(u.key==="Escape"){var c,f,m,g;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&c!==void 0?c:0,y:(m=(g=n.props.coordinate)===null||g===void 0?void 0:g.y)!==null&&m!==void 0?m:0}})}}),n}return xfe(t,e),gfe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>D4||Math.abs(r.height-this.state.lastBoundingBox.height)>D4)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,s=o.active,u=o.allowEscapeViewBox,c=o.animationDuration,f=o.animationEasing,m=o.children,g=o.coordinate,p=o.hasPayload,y=o.isAnimationActive,b=o.offset,S=o.position,x=o.reverseDirection,N=o.useTranslate3d,T=o.viewBox,C=o.wrapperStyle,D=mfe({allowEscapeViewBox:u,coordinate:g,offsetTopLeft:b,position:S,reverseDirection:x,tooltipBox:this.state.lastBoundingBox,useTranslate3d:N,viewBox:T}),P=D.cssClasses,A=D.cssProperties,_=_4(_4({transition:y&&s?"transform ".concat(c,"ms ").concat(f):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&p?"visible":"hidden",position:"absolute",top:0,left:0},C);return F.createElement("div",{tabIndex:-1,className:P,style:_,ref:function(L){r.wrapperNode=L}},m)}}])})(R.PureComponent),Efe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Wu={isSsr:Efe()};function Rd(e){"@babel/helpers - typeof";return Rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rd(e)}function R4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function j4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R4(Object(n),!0).forEach(function(r){aR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Afe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wq(r.key),r)}}function Ofe(e,t,n){return t&&Afe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tfe(e,t,n){return t=cb(t),Cfe(e,Xq()?Reflect.construct(t,n||[],cb(e).constructor):t.apply(e,n))}function Cfe(e,t){if(t&&(Rd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _fe(e)}function _fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xq=function(){return!!e})()}function cb(e){return cb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cb(e)}function Dfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VC(e,t)}function VC(e,t){return VC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},VC(e,t)}function aR(e,t,n){return t=Wq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wq(e){var t=Rfe(e,"string");return Rd(t)=="symbol"?t:t+""}function Rfe(e,t){if(Rd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function jfe(e){return e.dataKey}function Pfe(e,t){return F.isValidElement(e)?F.cloneElement(e,t):typeof e=="function"?F.createElement(e,t):F.createElement(sfe,t)}var ei=(function(e){function t(){return Sfe(this,t),Tfe(this,t,arguments)}return Dfe(t,e),Ofe(t,[{key:"render",value:function(){var r=this,o=this.props,s=o.active,u=o.allowEscapeViewBox,c=o.animationDuration,f=o.animationEasing,m=o.content,g=o.coordinate,p=o.filterNull,y=o.isAnimationActive,b=o.offset,S=o.payload,x=o.payloadUniqBy,N=o.position,T=o.reverseDirection,C=o.useTranslate3d,D=o.viewBox,P=o.wrapperStyle,A=S??[];p&&A.length&&(A=zq(S.filter(function(j){return j.value!=null&&(j.hide!==!0||r.props.includeHidden)}),x,jfe));var _=A.length>0;return F.createElement(Nfe,{allowEscapeViewBox:u,animationDuration:c,animationEasing:f,isAnimationActive:y,active:s,coordinate:g,hasPayload:_,offset:b,position:N,reverseDirection:T,useTranslate3d:C,viewBox:D,wrapperStyle:P},Pfe(m,j4(j4({},this.props),{},{payload:A})))}}])})(R.PureComponent);aR(ei,"displayName","Tooltip");aR(ei,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Wu.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var DO,P4;function Mfe(){if(P4)return DO;P4=1;var e=uo(),t=function(){return e.Date.now()};return DO=t,DO}var RO,M4;function Lfe(){if(M4)return RO;M4=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return RO=t,RO}var jO,L4;function kfe(){if(L4)return jO;L4=1;var e=Lfe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return jO=n,jO}var PO,k4;function Zq(){if(k4)return PO;k4=1;var e=kfe(),t=ml(),n=uf(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function f(m){if(typeof m=="number")return m;if(n(m))return r;if(t(m)){var g=typeof m.valueOf=="function"?m.valueOf():m;m=t(g)?g+"":g}if(typeof m!="string")return m===0?m:+m;m=e(m);var p=s.test(m);return p||u.test(m)?c(m.slice(2),p?2:8):o.test(m)?r:+m}return PO=f,PO}var MO,I4;function Ife(){if(I4)return MO;I4=1;var e=ml(),t=Mfe(),n=Zq(),r="Expected a function",o=Math.max,s=Math.min;function u(c,f,m){var g,p,y,b,S,x,N=0,T=!1,C=!1,D=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(m)&&(T=!!m.leading,C="maxWait"in m,y=C?o(n(m.maxWait)||0,f):y,D="trailing"in m?!!m.trailing:D);function P(G){var Y=g,J=p;return g=p=void 0,N=G,b=c.apply(J,Y),b}function A(G){return N=G,S=setTimeout(L,f),T?P(G):b}function _(G){var Y=G-x,J=G-N,q=f-Y;return C?s(q,y-J):q}function j(G){var Y=G-x,J=G-N;return x===void 0||Y>=f||Y<0||C&&J>=y}function L(){var G=t();if(j(G))return V(G);S=setTimeout(L,_(G))}function V(G){return S=void 0,D&&g?P(G):(g=p=void 0,b)}function B(){S!==void 0&&clearTimeout(S),N=0,g=x=p=S=void 0}function U(){return S===void 0?b:V(t())}function H(){var G=t(),Y=j(G);if(g=arguments,p=this,x=G,Y){if(S===void 0)return A(x);if(C)return clearTimeout(S),S=setTimeout(L,f),P(x)}return S===void 0&&(S=setTimeout(L,f)),b}return H.cancel=B,H.flush=U,H}return MO=u,MO}var LO,$4;function $fe(){if($4)return LO;$4=1;var e=Ife(),t=ml(),n="Expected a function";function r(o,s,u){var c=!0,f=!0;if(typeof o!="function")throw new TypeError(n);return t(u)&&(c="leading"in u?!!u.leading:c,f="trailing"in u?!!u.trailing:f),e(o,s,{leading:c,maxWait:s,trailing:f})}return LO=r,LO}var Vfe=$fe();const Jq=It(Vfe);function Fp(e){"@babel/helpers - typeof";return Fp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fp(e)}function V4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function wy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V4(Object(n),!0).forEach(function(r){Bfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bfe(e,t,n){return t=zfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zfe(e){var t=Ufe(e,"string");return Fp(t)=="symbol"?t:t+""}function Ufe(e,t){if(Fp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qfe(e,t){return Gfe(e)||Kfe(e,t)||Ffe(e,t)||Hfe()}function Hfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ffe(e,t){if(e){if(typeof e=="string")return B4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B4(e,t)}}function B4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,c=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return c}}function Gfe(e){if(Array.isArray(e))return e}var z4=R.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,s=e.width,u=s===void 0?"100%":s,c=e.height,f=c===void 0?"100%":c,m=e.minWidth,g=m===void 0?0:m,p=e.minHeight,y=e.maxHeight,b=e.children,S=e.debounce,x=S===void 0?0:S,N=e.id,T=e.className,C=e.onResize,D=e.style,P=D===void 0?{}:D,A=R.useRef(null),_=R.useRef();_.current=C,R.useImperativeHandle(t,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var j=R.useState({containerWidth:o.width,containerHeight:o.height}),L=qfe(j,2),V=L[0],B=L[1],U=R.useCallback(function(G,Y){B(function(J){var q=Math.round(G),z=Math.round(Y);return J.containerWidth===q&&J.containerHeight===z?J:{containerWidth:q,containerHeight:z}})},[]);R.useEffect(function(){var G=function(te){var ne,k=te[0].contentRect,Q=k.width,W=k.height;U(Q,W),(ne=_.current)===null||ne===void 0||ne.call(_,Q,W)};x>0&&(G=Jq(G,x,{trailing:!0,leading:!1}));var Y=new ResizeObserver(G),J=A.current.getBoundingClientRect(),q=J.width,z=J.height;return U(q,z),Y.observe(A.current),function(){Y.disconnect()}},[U,x]);var H=R.useMemo(function(){var G=V.containerWidth,Y=V.containerHeight;if(G<0||Y<0)return null;ii(gu(u)||gu(f),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,u,f),ii(!n||n>0,"The aspect(%s) must be greater than zero.",n);var J=gu(u)?G:u,q=gu(f)?Y:f;n&&n>0&&(J?q=J/n:q&&(J=q*n),y&&q>y&&(q=y)),ii(J>0||q>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
||
please check the style of container, or the props width(%s) and height(%s),
|
||
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
||
height and width.`,J,q,u,f,g,p,n);var z=!Array.isArray(b)&&Xo(b.type).endsWith("Chart");return F.Children.map(b,function(K){return F.isValidElement(K)?R.cloneElement(K,wy({width:J,height:q},z?{style:wy({height:"100%",width:"100%",maxHeight:q,maxWidth:J},K.props.style)}:{})):K})},[n,b,f,y,p,g,V,u]);return F.createElement("div",{id:N?"".concat(N):void 0,className:nt("recharts-responsive-container",T),style:wy(wy({},P),{},{width:u,height:f,minWidth:g,minHeight:p,maxHeight:y}),ref:A},H)}),B0=function(t){return null};B0.displayName="Cell";function Kp(e){"@babel/helpers - typeof";return Kp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kp(e)}function U4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function BC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U4(Object(n),!0).forEach(function(r){Yfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yfe(e,t,n){return t=Qfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qfe(e){var t=Xfe(e,"string");return Kp(t)=="symbol"?t:t+""}function Xfe(e,t){if(Kp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ud={widthCache:{},cacheCount:0},Wfe=2e3,Zfe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},q4="recharts_measurement_span";function Jfe(e){var t=BC({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var wp=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Wu.isSsr)return{width:0,height:0};var r=Jfe(n),o=JSON.stringify({text:t,copyStyle:r});if(ud.widthCache[o])return ud.widthCache[o];try{var s=document.getElementById(q4);s||(s=document.createElement("span"),s.setAttribute("id",q4),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var u=BC(BC({},Zfe),r);Object.assign(s.style,u),s.textContent="".concat(t);var c=s.getBoundingClientRect(),f={width:c.width,height:c.height};return ud.widthCache[o]=f,++ud.cacheCount>Wfe&&(ud.cacheCount=0,ud.widthCache={}),f}catch{return{width:0,height:0}}},eme=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Gp(e){"@babel/helpers - typeof";return Gp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gp(e)}function db(e,t){return ame(e)||rme(e,t)||nme(e,t)||tme()}function tme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nme(e,t){if(e){if(typeof e=="string")return H4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H4(e,t)}}function H4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,c=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return c}}function ame(e){if(Array.isArray(e))return e}function ime(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sme(r.key),r)}}function ome(e,t,n){return t&&F4(e.prototype,t),n&&F4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sme(e){var t=lme(e,"string");return Gp(t)=="symbol"?t:t+""}function lme(e,t){if(Gp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var K4=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,G4=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ume=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,cme=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,eH={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},dme=Object.keys(eH),md="NaN";function fme(e,t){return e*eH[t]}var Ny=(function(){function e(t,n){ime(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!ume.test(n)&&(this.num=NaN,this.unit=""),dme.includes(n)&&(this.num=fme(t,n),this.unit="px")}return ome(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,o=(r=cme.exec(n))!==null&&r!==void 0?r:[],s=db(o,3),u=s[1],c=s[2];return new e(parseFloat(u),c??"")}}])})();function tH(e){if(e.includes(md))return md;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=K4.exec(t))!==null&&n!==void 0?n:[],o=db(r,4),s=o[1],u=o[2],c=o[3],f=Ny.parse(s??""),m=Ny.parse(c??""),g=u==="*"?f.multiply(m):f.divide(m);if(g.isNaN())return md;t=t.replace(K4,g.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,y=(p=G4.exec(t))!==null&&p!==void 0?p:[],b=db(y,4),S=b[1],x=b[2],N=b[3],T=Ny.parse(S??""),C=Ny.parse(N??""),D=x==="+"?T.add(C):T.subtract(C);if(D.isNaN())return md;t=t.replace(G4,D.toString())}return t}var Y4=/\(([^()]*)\)/;function mme(e){for(var t=e;t.includes("(");){var n=Y4.exec(t),r=db(n,2),o=r[1];t=t.replace(Y4,tH(o))}return t}function pme(e){var t=e.replace(/\s+/g,"");return t=mme(t),t=tH(t),t}function hme(e){try{return pme(e)}catch{return md}}function kO(e){var t=hme(e.slice(5,-1));return t===md?"":t}var gme=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],vme=["dx","dy","angle","className","breakAll"];function zC(){return zC=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},zC.apply(this,arguments)}function Q4(e,t){if(e==null)return{};var n=yme(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yme(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function X4(e,t){return Nme(e)||wme(e,t)||xme(e,t)||bme()}function bme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xme(e,t){if(e){if(typeof e=="string")return W4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W4(e,t)}}function W4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,c=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return c}}function Nme(e){if(Array.isArray(e))return e}var nH=/[ \f\n\r\t\v\u2028\u2029]+/,rH=function(t){var n=t.children,r=t.breakAll,o=t.style;try{var s=[];rt(n)||(r?s=n.toString().split(""):s=n.toString().split(nH));var u=s.map(function(f){return{word:f,width:wp(f,o).width}}),c=r?0:wp(" ",o).width;return{wordsWithComputedWidth:u,spaceWidth:c}}catch{return null}},Eme=function(t,n,r,o,s){var u=t.maxLines,c=t.children,f=t.style,m=t.breakAll,g=Oe(u),p=c,y=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return J.reduce(function(q,z){var K=z.word,te=z.width,ne=q[q.length-1];if(ne&&(o==null||s||ne.width+te+r<Number(o)))ne.words.push(K),ne.width+=te+r;else{var k={words:[K],width:te};q.push(k)}return q},[])},b=y(n),S=function(J){return J.reduce(function(q,z){return q.width>z.width?q:z})};if(!g)return b;for(var x="…",N=function(J){var q=p.slice(0,J),z=rH({breakAll:m,style:f,children:q+x}).wordsWithComputedWidth,K=y(z),te=K.length>u||S(K).width>Number(o);return[te,K]},T=0,C=p.length-1,D=0,P;T<=C&&D<=p.length-1;){var A=Math.floor((T+C)/2),_=A-1,j=N(_),L=X4(j,2),V=L[0],B=L[1],U=N(A),H=X4(U,1),G=H[0];if(!V&&!G&&(T=A+1),V&&G&&(C=A-1),!V&&G){P=B;break}D++}return P||b},Z4=function(t){var n=rt(t)?[]:t.toString().split(nH);return[{words:n}]},Sme=function(t){var n=t.width,r=t.scaleToFit,o=t.children,s=t.style,u=t.breakAll,c=t.maxLines;if((n||r)&&!Wu.isSsr){var f,m,g=rH({breakAll:u,children:o,style:s});if(g){var p=g.wordsWithComputedWidth,y=g.spaceWidth;f=p,m=y}else return Z4(o);return Eme({breakAll:u,children:o,maxLines:c,style:s},f,m,n,r)}return Z4(o)},J4="#808080",Vu=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,s=o===void 0?0:o,u=t.lineHeight,c=u===void 0?"1em":u,f=t.capHeight,m=f===void 0?"0.71em":f,g=t.scaleToFit,p=g===void 0?!1:g,y=t.textAnchor,b=y===void 0?"start":y,S=t.verticalAnchor,x=S===void 0?"end":S,N=t.fill,T=N===void 0?J4:N,C=Q4(t,gme),D=R.useMemo(function(){return Sme({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:p,style:C.style,width:C.width})},[C.breakAll,C.children,C.maxLines,p,C.style,C.width]),P=C.dx,A=C.dy,_=C.angle,j=C.className,L=C.breakAll,V=Q4(C,vme);if(!Vn(r)||!Vn(s))return null;var B=r+(Oe(P)?P:0),U=s+(Oe(A)?A:0),H;switch(x){case"start":H=kO("calc(".concat(m,")"));break;case"middle":H=kO("calc(".concat((D.length-1)/2," * -").concat(c," + (").concat(m," / 2))"));break;default:H=kO("calc(".concat(D.length-1," * -").concat(c,")"));break}var G=[];if(p){var Y=D[0].width,J=C.width;G.push("scale(".concat((Oe(J)?J/Y:1)/Y,")"))}return _&&G.push("rotate(".concat(_,", ").concat(B,", ").concat(U,")")),G.length&&(V.transform=G.join(" ")),F.createElement("text",zC({},Fe(V,!0),{x:B,y:U,className:nt("recharts-text",j),textAnchor:b,fill:T.includes("url")?J4:T}),D.map(function(q,z){var K=q.words.join(L?"":" ");return F.createElement("tspan",{x:B,dy:z===0?H:c,key:"".concat(K,"-").concat(z)},K)}))};function sl(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ame(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function iR(e){let t,n,r;e.length!==2?(t=sl,n=(c,f)=>sl(e(c),f),r=(c,f)=>e(c)-f):(t=e===sl||e===Ame?e:Ome,n=e,r=e);function o(c,f,m=0,g=c.length){if(m<g){if(t(f,f)!==0)return g;do{const p=m+g>>>1;n(c[p],f)<0?m=p+1:g=p}while(m<g)}return m}function s(c,f,m=0,g=c.length){if(m<g){if(t(f,f)!==0)return g;do{const p=m+g>>>1;n(c[p],f)<=0?m=p+1:g=p}while(m<g)}return m}function u(c,f,m=0,g=c.length){const p=o(c,f,m,g-1);return p>m&&r(c[p-1],f)>-r(c[p],f)?p-1:p}return{left:o,center:u,right:s}}function Ome(){return 0}function aH(e){return e===null?NaN:+e}function*Tme(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Cme=iR(sl),Ih=Cme.right;iR(aH).center;class e6 extends Map{constructor(t,n=Rme){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(t6(this,t))}has(t){return super.has(t6(this,t))}set(t,n){return super.set(_me(this,t),n)}delete(t){return super.delete(Dme(this,t))}}function t6({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function _me({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Dme({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Rme(e){return e!==null&&typeof e=="object"?e.valueOf():e}function jme(e=sl){if(e===sl)return iH;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function iH(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Pme=Math.sqrt(50),Mme=Math.sqrt(10),Lme=Math.sqrt(2);function fb(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),s=r/Math.pow(10,o),u=s>=Pme?10:s>=Mme?5:s>=Lme?2:1;let c,f,m;return o<0?(m=Math.pow(10,-o)/u,c=Math.round(e*m),f=Math.round(t*m),c/m<e&&++c,f/m>t&&--f,m=-m):(m=Math.pow(10,o)*u,c=Math.round(e/m),f=Math.round(t/m),c*m<e&&++c,f*m>t&&--f),f<c&&.5<=n&&n<2?fb(e,t,n*2):[c,f,m]}function UC(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,s,u]=r?fb(t,e,n):fb(e,t,n);if(!(s>=o))return[];const c=s-o+1,f=new Array(c);if(r)if(u<0)for(let m=0;m<c;++m)f[m]=(s-m)/-u;else for(let m=0;m<c;++m)f[m]=(s-m)*u;else if(u<0)for(let m=0;m<c;++m)f[m]=(o+m)/-u;else for(let m=0;m<c;++m)f[m]=(o+m)*u;return f}function qC(e,t,n){return t=+t,e=+e,n=+n,fb(e,t,n)[2]}function HC(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?qC(t,e,n):qC(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function n6(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function r6(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function oH(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?iH:jme(o);r>n;){if(r-n>600){const f=r-n+1,m=t-n+1,g=Math.log(f),p=.5*Math.exp(2*g/3),y=.5*Math.sqrt(g*p*(f-p)/f)*(m-f/2<0?-1:1),b=Math.max(n,Math.floor(t-m*p/f+y)),S=Math.min(r,Math.floor(t+(f-m)*p/f+y));oH(e,t,b,S,o)}const s=e[t];let u=n,c=r;for(tp(e,n,t),o(e[r],s)>0&&tp(e,n,r);u<c;){for(tp(e,u,c),++u,--c;o(e[u],s)<0;)++u;for(;o(e[c],s)>0;)--c}o(e[n],s)===0?tp(e,n,c):(++c,tp(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function tp(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function kme(e,t,n){if(e=Float64Array.from(Tme(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return r6(e);if(t>=1)return n6(e);var r,o=(r-1)*t,s=Math.floor(o),u=n6(oH(e,s).subarray(0,s+1)),c=r6(e.subarray(s+1));return u+(c-u)*(o-s)}}function Ime(e,t,n=aH){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,s=Math.floor(o),u=+n(e[s],s,e),c=+n(e[s+1],s+1,e);return u+(c-u)*(o-s)}}function $me(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(o);++r<o;)s[r]=e+r*n;return s}function Va(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ls(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const FC=Symbol("implicit");function oR(){var e=new e6,t=[],n=[],r=FC;function o(s){let u=e.get(s);if(u===void 0){if(r!==FC)return r;e.set(s,u=t.push(s)-1)}return n[u%n.length]}return o.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new e6;for(const u of s)e.has(u)||e.set(u,t.push(u)-1);return o},o.range=function(s){return arguments.length?(n=Array.from(s),o):n.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.copy=function(){return oR(t,n).unknown(r)},Va.apply(o,arguments),o}function Yp(){var e=oR().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,s,u,c=!1,f=0,m=0,g=.5;delete e.unknown;function p(){var y=t().length,b=o<r,S=b?o:r,x=b?r:o;s=(x-S)/Math.max(1,y-f+m*2),c&&(s=Math.floor(s)),S+=(x-S-s*(y-f))*g,u=s*(1-f),c&&(S=Math.round(S),u=Math.round(u));var N=$me(y).map(function(T){return S+s*T});return n(b?N.reverse():N)}return e.domain=function(y){return arguments.length?(t(y),p()):t()},e.range=function(y){return arguments.length?([r,o]=y,r=+r,o=+o,p()):[r,o]},e.rangeRound=function(y){return[r,o]=y,r=+r,o=+o,c=!0,p()},e.bandwidth=function(){return u},e.step=function(){return s},e.round=function(y){return arguments.length?(c=!!y,p()):c},e.padding=function(y){return arguments.length?(f=Math.min(1,m=+y),p()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),p()):f},e.paddingOuter=function(y){return arguments.length?(m=+y,p()):m},e.align=function(y){return arguments.length?(g=Math.max(0,Math.min(1,y)),p()):g},e.copy=function(){return Yp(t(),[r,o]).round(c).paddingInner(f).paddingOuter(m).align(g)},Va.apply(p(),arguments)}function sH(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return sH(t())},e}function Np(){return sH(Yp.apply(null,arguments).paddingInner(1))}function sR(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function lH(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function $h(){}var Qp=.7,mb=1/Qp,wd="\\s*([+-]?\\d+)\\s*",Xp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ji="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vme=/^#([0-9a-f]{3,8})$/,Bme=new RegExp(`^rgb\\(${wd},${wd},${wd}\\)$`),zme=new RegExp(`^rgb\\(${Ji},${Ji},${Ji}\\)$`),Ume=new RegExp(`^rgba\\(${wd},${wd},${wd},${Xp}\\)$`),qme=new RegExp(`^rgba\\(${Ji},${Ji},${Ji},${Xp}\\)$`),Hme=new RegExp(`^hsl\\(${Xp},${Ji},${Ji}\\)$`),Fme=new RegExp(`^hsla\\(${Xp},${Ji},${Ji},${Xp}\\)$`),a6={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};sR($h,Wp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:i6,formatHex:i6,formatHex8:Kme,formatHsl:Gme,formatRgb:o6,toString:o6});function i6(){return this.rgb().formatHex()}function Kme(){return this.rgb().formatHex8()}function Gme(){return uH(this).formatHsl()}function o6(){return this.rgb().formatRgb()}function Wp(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Vme.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?s6(t):n===3?new Fr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ey(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ey(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Bme.exec(e))?new Fr(t[1],t[2],t[3],1):(t=zme.exec(e))?new Fr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ume.exec(e))?Ey(t[1],t[2],t[3],t[4]):(t=qme.exec(e))?Ey(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hme.exec(e))?c6(t[1],t[2]/100,t[3]/100,1):(t=Fme.exec(e))?c6(t[1],t[2]/100,t[3]/100,t[4]):a6.hasOwnProperty(e)?s6(a6[e]):e==="transparent"?new Fr(NaN,NaN,NaN,0):null}function s6(e){return new Fr(e>>16&255,e>>8&255,e&255,1)}function Ey(e,t,n,r){return r<=0&&(e=t=n=NaN),new Fr(e,t,n,r)}function Yme(e){return e instanceof $h||(e=Wp(e)),e?(e=e.rgb(),new Fr(e.r,e.g,e.b,e.opacity)):new Fr}function KC(e,t,n,r){return arguments.length===1?Yme(e):new Fr(e,t,n,r??1)}function Fr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}sR(Fr,KC,lH($h,{brighter(e){return e=e==null?mb:Math.pow(mb,e),new Fr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qp:Math.pow(Qp,e),new Fr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fr(Nu(this.r),Nu(this.g),Nu(this.b),pb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:l6,formatHex:l6,formatHex8:Qme,formatRgb:u6,toString:u6}));function l6(){return`#${vu(this.r)}${vu(this.g)}${vu(this.b)}`}function Qme(){return`#${vu(this.r)}${vu(this.g)}${vu(this.b)}${vu((isNaN(this.opacity)?1:this.opacity)*255)}`}function u6(){const e=pb(this.opacity);return`${e===1?"rgb(":"rgba("}${Nu(this.r)}, ${Nu(this.g)}, ${Nu(this.b)}${e===1?")":`, ${e})`}`}function pb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Nu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function vu(e){return e=Nu(e),(e<16?"0":"")+e.toString(16)}function c6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ni(e,t,n,r)}function uH(e){if(e instanceof ni)return new ni(e.h,e.s,e.l,e.opacity);if(e instanceof $h||(e=Wp(e)),!e)return new ni;if(e instanceof ni)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),s=Math.max(t,n,r),u=NaN,c=s-o,f=(s+o)/2;return c?(t===s?u=(n-r)/c+(n<r)*6:n===s?u=(r-t)/c+2:u=(t-n)/c+4,c/=f<.5?s+o:2-s-o,u*=60):c=f>0&&f<1?0:u,new ni(u,c,f,e.opacity)}function Xme(e,t,n,r){return arguments.length===1?uH(e):new ni(e,t,n,r??1)}function ni(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}sR(ni,Xme,lH($h,{brighter(e){return e=e==null?mb:Math.pow(mb,e),new ni(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qp:Math.pow(Qp,e),new ni(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Fr(IO(e>=240?e-240:e+120,o,r),IO(e,o,r),IO(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ni(d6(this.h),Sy(this.s),Sy(this.l),pb(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=pb(this.opacity);return`${e===1?"hsl(":"hsla("}${d6(this.h)}, ${Sy(this.s)*100}%, ${Sy(this.l)*100}%${e===1?")":`, ${e})`}`}}));function d6(e){return e=(e||0)%360,e<0?e+360:e}function Sy(e){return Math.max(0,Math.min(1,e||0))}function IO(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const lR=e=>()=>e;function Wme(e,t){return function(n){return e+n*t}}function Zme(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Jme(e){return(e=+e)==1?cH:function(t,n){return n-t?Zme(t,n,e):lR(isNaN(t)?n:t)}}function cH(e,t){var n=t-e;return n?Wme(e,n):lR(isNaN(e)?t:e)}const f6=(function e(t){var n=Jme(t);function r(o,s){var u=n((o=KC(o)).r,(s=KC(s)).r),c=n(o.g,s.g),f=n(o.b,s.b),m=cH(o.opacity,s.opacity);return function(g){return o.r=u(g),o.g=c(g),o.b=f(g),o.opacity=m(g),o+""}}return r.gamma=e,r})(1);function epe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(s){for(o=0;o<n;++o)r[o]=e[o]*(1-s)+t[o]*s;return r}}function tpe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function npe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),s=new Array(n),u;for(u=0;u<r;++u)o[u]=pf(e[u],t[u]);for(;u<n;++u)s[u]=t[u];return function(c){for(u=0;u<r;++u)s[u]=o[u](c);return s}}function rpe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function hb(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ape(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=pf(e[o],t[o]):r[o]=t[o];return function(s){for(o in n)r[o]=n[o](s);return r}}var GC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$O=new RegExp(GC.source,"g");function ipe(e){return function(){return e}}function ope(e){return function(t){return e(t)+""}}function spe(e,t){var n=GC.lastIndex=$O.lastIndex=0,r,o,s,u=-1,c=[],f=[];for(e=e+"",t=t+"";(r=GC.exec(e))&&(o=$O.exec(t));)(s=o.index)>n&&(s=t.slice(n,s),c[u]?c[u]+=s:c[++u]=s),(r=r[0])===(o=o[0])?c[u]?c[u]+=o:c[++u]=o:(c[++u]=null,f.push({i:u,x:hb(r,o)})),n=$O.lastIndex;return n<t.length&&(s=t.slice(n),c[u]?c[u]+=s:c[++u]=s),c.length<2?f[0]?ope(f[0].x):ipe(t):(t=f.length,function(m){for(var g=0,p;g<t;++g)c[(p=f[g]).i]=p.x(m);return c.join("")})}function pf(e,t){var n=typeof t,r;return t==null||n==="boolean"?lR(t):(n==="number"?hb:n==="string"?(r=Wp(t))?(t=r,f6):spe:t instanceof Wp?f6:t instanceof Date?rpe:tpe(t)?epe:Array.isArray(t)?npe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ape:hb)(e,t)}function uR(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function lpe(e,t){t===void 0&&(t=e,e=pf);for(var n=0,r=t.length-1,o=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(o,o=t[++n]);return function(u){var c=Math.max(0,Math.min(r-1,Math.floor(u*=r)));return s[c](u-c)}}function upe(e){return function(){return e}}function gb(e){return+e}var m6=[0,1];function jr(e){return e}function YC(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:upe(isNaN(t)?NaN:.5)}function cpe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function dpe(e,t,n){var r=e[0],o=e[1],s=t[0],u=t[1];return o<r?(r=YC(o,r),s=n(u,s)):(r=YC(r,o),s=n(s,u)),function(c){return s(r(c))}}function fpe(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),s=new Array(r),u=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++u<r;)o[u]=YC(e[u],e[u+1]),s[u]=n(t[u],t[u+1]);return function(c){var f=Ih(e,c,1,r)-1;return s[f](o[f](c))}}function Vh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function z0(){var e=m6,t=m6,n=pf,r,o,s,u=jr,c,f,m;function g(){var y=Math.min(e.length,t.length);return u!==jr&&(u=cpe(e[0],e[y-1])),c=y>2?fpe:dpe,f=m=null,p}function p(y){return y==null||isNaN(y=+y)?s:(f||(f=c(e.map(r),t,n)))(r(u(y)))}return p.invert=function(y){return u(o((m||(m=c(t,e.map(r),hb)))(y)))},p.domain=function(y){return arguments.length?(e=Array.from(y,gb),g()):e.slice()},p.range=function(y){return arguments.length?(t=Array.from(y),g()):t.slice()},p.rangeRound=function(y){return t=Array.from(y),n=uR,g()},p.clamp=function(y){return arguments.length?(u=y?!0:jr,g()):u!==jr},p.interpolate=function(y){return arguments.length?(n=y,g()):n},p.unknown=function(y){return arguments.length?(s=y,p):s},function(y,b){return r=y,o=b,g()}}function cR(){return z0()(jr,jr)}function mpe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function vb(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function jd(e){return e=vb(Math.abs(e)),e?e[1]:NaN}function ppe(e,t){return function(n,r){for(var o=n.length,s=[],u=0,c=e[0],f=0;o>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),s.push(n.substring(o-=c,o+c)),!((f+=c+1)>r));)c=e[u=(u+1)%e.length];return s.reverse().join(t)}}function hpe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var gpe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Zp(e){if(!(t=gpe.exec(e)))throw new Error("invalid format: "+e);var t;return new dR({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Zp.prototype=dR.prototype;function dR(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}dR.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function vpe(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var dH;function ype(e,t){var n=vb(e,t);if(!n)return e+"";var r=n[0],o=n[1],s=o-(dH=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,u=r.length;return s===u?r:s>u?r+new Array(s-u+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+vb(e,Math.max(0,t+s-1))[0]}function p6(e,t){var n=vb(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const h6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:mpe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>p6(e*100,t),r:p6,s:ype,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function g6(e){return e}var v6=Array.prototype.map,y6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bpe(e){var t=e.grouping===void 0||e.thousands===void 0?g6:ppe(v6.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?g6:hpe(v6.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function m(p){p=Zp(p);var y=p.fill,b=p.align,S=p.sign,x=p.symbol,N=p.zero,T=p.width,C=p.comma,D=p.precision,P=p.trim,A=p.type;A==="n"?(C=!0,A="g"):h6[A]||(D===void 0&&(D=12),P=!0,A="g"),(N||y==="0"&&b==="=")&&(N=!0,y="0",b="=");var _=x==="$"?n:x==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",j=x==="$"?r:/[%p]/.test(A)?u:"",L=h6[A],V=/[defgprs%]/.test(A);D=D===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D));function B(U){var H=_,G=j,Y,J,q;if(A==="c")G=L(U)+G,U="";else{U=+U;var z=U<0||1/U<0;if(U=isNaN(U)?f:L(Math.abs(U),D),P&&(U=vpe(U)),z&&+U==0&&S!=="+"&&(z=!1),H=(z?S==="("?S:c:S==="-"||S==="("?"":S)+H,G=(A==="s"?y6[8+dH/3]:"")+G+(z&&S==="("?")":""),V){for(Y=-1,J=U.length;++Y<J;)if(q=U.charCodeAt(Y),48>q||q>57){G=(q===46?o+U.slice(Y+1):U.slice(Y))+G,U=U.slice(0,Y);break}}}C&&!N&&(U=t(U,1/0));var K=H.length+U.length+G.length,te=K<T?new Array(T-K+1).join(y):"";switch(C&&N&&(U=t(te+U,te.length?T-G.length:1/0),te=""),b){case"<":U=H+U+G+te;break;case"=":U=H+te+U+G;break;case"^":U=te.slice(0,K=te.length>>1)+H+U+G+te.slice(K);break;default:U=te+H+U+G;break}return s(U)}return B.toString=function(){return p+""},B}function g(p,y){var b=m((p=Zp(p),p.type="f",p)),S=Math.max(-8,Math.min(8,Math.floor(jd(y)/3)))*3,x=Math.pow(10,-S),N=y6[8+S/3];return function(T){return b(x*T)+N}}return{format:m,formatPrefix:g}}var Ay,fR,fH;xpe({thousands:",",grouping:[3],currency:["$",""]});function xpe(e){return Ay=bpe(e),fR=Ay.format,fH=Ay.formatPrefix,Ay}function wpe(e){return Math.max(0,-jd(Math.abs(e)))}function Npe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(jd(t)/3)))*3-jd(Math.abs(e)))}function Epe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,jd(t)-jd(e))+1}function mH(e,t,n,r){var o=HC(e,t,n),s;switch(r=Zp(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=Npe(o,u))&&(r.precision=s),fH(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=Epe(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=wpe(o))&&(r.precision=s-(r.type==="%")*2);break}}return fR(r)}function pl(e){var t=e.domain;return e.ticks=function(n){var r=t();return UC(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return mH(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,s=r.length-1,u=r[o],c=r[s],f,m,g=10;for(c<u&&(m=u,u=c,c=m,m=o,o=s,s=m);g-- >0;){if(m=qC(u,c,n),m===f)return r[o]=u,r[s]=c,t(r);if(m>0)u=Math.floor(u/m)*m,c=Math.ceil(c/m)*m;else if(m<0)u=Math.ceil(u*m)/m,c=Math.floor(c*m)/m;else break;f=m}return e},e}function yb(){var e=cR();return e.copy=function(){return Vh(e,yb())},Va.apply(e,arguments),pl(e)}function pH(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,gb),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return pH(e).unknown(t)},e=arguments.length?Array.from(e,gb):[0,1],pl(n)}function hH(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],s=e[r],u;return s<o&&(u=n,n=r,r=u,u=o,o=s,s=u),e[n]=t.floor(o),e[r]=t.ceil(s),e}function b6(e){return Math.log(e)}function x6(e){return Math.exp(e)}function Spe(e){return-Math.log(-e)}function Ape(e){return-Math.exp(-e)}function Ope(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Tpe(e){return e===10?Ope:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Cpe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function w6(e){return(t,n)=>-e(-t,n)}function mR(e){const t=e(b6,x6),n=t.domain;let r=10,o,s;function u(){return o=Cpe(r),s=Tpe(r),n()[0]<0?(o=w6(o),s=w6(s),e(Spe,Ape)):e(b6,x6),t}return t.base=function(c){return arguments.length?(r=+c,u()):r},t.domain=function(c){return arguments.length?(n(c),u()):n()},t.ticks=c=>{const f=n();let m=f[0],g=f[f.length-1];const p=g<m;p&&([m,g]=[g,m]);let y=o(m),b=o(g),S,x;const N=c==null?10:+c;let T=[];if(!(r%1)&&b-y<N){if(y=Math.floor(y),b=Math.ceil(b),m>0){for(;y<=b;++y)for(S=1;S<r;++S)if(x=y<0?S/s(-y):S*s(y),!(x<m)){if(x>g)break;T.push(x)}}else for(;y<=b;++y)for(S=r-1;S>=1;--S)if(x=y>0?S/s(-y):S*s(y),!(x<m)){if(x>g)break;T.push(x)}T.length*2<N&&(T=UC(m,g,N))}else T=UC(y,b,Math.min(b-y,N)).map(s);return p?T.reverse():T},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=Zp(f)).precision==null&&(f.trim=!0),f=fR(f)),c===1/0)return f;const m=Math.max(1,r*c/t.ticks().length);return g=>{let p=g/s(Math.round(o(g)));return p*r<r-.5&&(p*=r),p<=m?f(g):""}},t.nice=()=>n(hH(n(),{floor:c=>s(Math.floor(o(c))),ceil:c=>s(Math.ceil(o(c)))})),t}function gH(){const e=mR(z0()).domain([1,10]);return e.copy=()=>Vh(e,gH()).base(e.base()),Va.apply(e,arguments),e}function N6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function E6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function pR(e){var t=1,n=e(N6(t),E6(t));return n.constant=function(r){return arguments.length?e(N6(t=+r),E6(t)):t},pl(n)}function vH(){var e=pR(z0());return e.copy=function(){return Vh(e,vH()).constant(e.constant())},Va.apply(e,arguments)}function S6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function _pe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Dpe(e){return e<0?-e*e:e*e}function hR(e){var t=e(jr,jr),n=1;function r(){return n===1?e(jr,jr):n===.5?e(_pe,Dpe):e(S6(n),S6(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},pl(t)}function gR(){var e=hR(z0());return e.copy=function(){return Vh(e,gR()).exponent(e.exponent())},Va.apply(e,arguments),e}function Rpe(){return gR.apply(null,arguments).exponent(.5)}function A6(e){return Math.sign(e)*e*e}function jpe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function yH(){var e=cR(),t=[0,1],n=!1,r;function o(s){var u=jpe(e(s));return isNaN(u)?r:n?Math.round(u):u}return o.invert=function(s){return e.invert(A6(s))},o.domain=function(s){return arguments.length?(e.domain(s),o):e.domain()},o.range=function(s){return arguments.length?(e.range((t=Array.from(s,gb)).map(A6)),o):t.slice()},o.rangeRound=function(s){return o.range(s).round(!0)},o.round=function(s){return arguments.length?(n=!!s,o):n},o.clamp=function(s){return arguments.length?(e.clamp(s),o):e.clamp()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.copy=function(){return yH(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Va.apply(o,arguments),pl(o)}function bH(){var e=[],t=[],n=[],r;function o(){var u=0,c=Math.max(1,t.length);for(n=new Array(c-1);++u<c;)n[u-1]=Ime(e,u/c);return s}function s(u){return u==null||isNaN(u=+u)?r:t[Ih(n,u)]}return s.invertExtent=function(u){var c=t.indexOf(u);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},s.domain=function(u){if(!arguments.length)return e.slice();e=[];for(let c of u)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(sl),o()},s.range=function(u){return arguments.length?(t=Array.from(u),o()):t.slice()},s.unknown=function(u){return arguments.length?(r=u,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return bH().domain(e).range(t).unknown(r)},Va.apply(s,arguments)}function xH(){var e=0,t=1,n=1,r=[.5],o=[0,1],s;function u(f){return f!=null&&f<=f?o[Ih(r,f,0,n)]:s}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return u}return u.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},u.range=function(f){return arguments.length?(n=(o=Array.from(f)).length-1,c()):o.slice()},u.invertExtent=function(f){var m=o.indexOf(f);return m<0?[NaN,NaN]:m<1?[e,r[0]]:m>=n?[r[n-1],t]:[r[m-1],r[m]]},u.unknown=function(f){return arguments.length&&(s=f),u},u.thresholds=function(){return r.slice()},u.copy=function(){return xH().domain([e,t]).range(o).unknown(s)},Va.apply(pl(u),arguments)}function wH(){var e=[.5],t=[0,1],n,r=1;function o(s){return s!=null&&s<=s?t[Ih(e,s,0,r)]:n}return o.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(s){var u=t.indexOf(s);return[e[u-1],e[u]]},o.unknown=function(s){return arguments.length?(n=s,o):n},o.copy=function(){return wH().domain(e).range(t).unknown(n)},Va.apply(o,arguments)}const VO=new Date,BO=new Date;function Bn(e,t,n,r){function o(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=s=>(e(s=new Date(+s)),s),o.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),o.round=s=>{const u=o(s),c=o.ceil(s);return s-u<c-s?u:c},o.offset=(s,u)=>(t(s=new Date(+s),u==null?1:Math.floor(u)),s),o.range=(s,u,c)=>{const f=[];if(s=o.ceil(s),c=c==null?1:Math.floor(c),!(s<u)||!(c>0))return f;let m;do f.push(m=new Date(+s)),t(s,c),e(s);while(m<s&&s<u);return f},o.filter=s=>Bn(u=>{if(u>=u)for(;e(u),!s(u);)u.setTime(u-1)},(u,c)=>{if(u>=u)if(c<0)for(;++c<=0;)for(;t(u,-1),!s(u););else for(;--c>=0;)for(;t(u,1),!s(u););}),n&&(o.count=(s,u)=>(VO.setTime(+s),BO.setTime(+u),e(VO),e(BO),Math.floor(n(VO,BO))),o.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?o.filter(r?u=>r(u)%s===0:u=>o.count(0,u)%s===0):o)),o}const bb=Bn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bb.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Bn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):bb);bb.range;const Go=1e3,La=Go*60,Yo=La*60,ts=Yo*24,vR=ts*7,O6=ts*30,zO=ts*365,yu=Bn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Go)},(e,t)=>(t-e)/Go,e=>e.getUTCSeconds());yu.range;const yR=Bn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Go)},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getMinutes());yR.range;const bR=Bn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getUTCMinutes());bR.range;const xR=Bn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Go-e.getMinutes()*La)},(e,t)=>{e.setTime(+e+t*Yo)},(e,t)=>(t-e)/Yo,e=>e.getHours());xR.range;const wR=Bn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Yo)},(e,t)=>(t-e)/Yo,e=>e.getUTCHours());wR.range;const Bh=Bn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*La)/ts,e=>e.getDate()-1);Bh.range;const U0=Bn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ts,e=>e.getUTCDate()-1);U0.range;const NH=Bn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ts,e=>Math.floor(e/ts));NH.range;function Zu(e){return Bn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*La)/vR)}const q0=Zu(0),xb=Zu(1),Ppe=Zu(2),Mpe=Zu(3),Pd=Zu(4),Lpe=Zu(5),kpe=Zu(6);q0.range;xb.range;Ppe.range;Mpe.range;Pd.range;Lpe.range;kpe.range;function Ju(e){return Bn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/vR)}const H0=Ju(0),wb=Ju(1),Ipe=Ju(2),$pe=Ju(3),Md=Ju(4),Vpe=Ju(5),Bpe=Ju(6);H0.range;wb.range;Ipe.range;$pe.range;Md.range;Vpe.range;Bpe.range;const NR=Bn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());NR.range;const ER=Bn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());ER.range;const ns=Bn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ns.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Bn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ns.range;const rs=Bn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());rs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Bn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});rs.range;function EH(e,t,n,r,o,s){const u=[[yu,1,Go],[yu,5,5*Go],[yu,15,15*Go],[yu,30,30*Go],[s,1,La],[s,5,5*La],[s,15,15*La],[s,30,30*La],[o,1,Yo],[o,3,3*Yo],[o,6,6*Yo],[o,12,12*Yo],[r,1,ts],[r,2,2*ts],[n,1,vR],[t,1,O6],[t,3,3*O6],[e,1,zO]];function c(m,g,p){const y=g<m;y&&([m,g]=[g,m]);const b=p&&typeof p.range=="function"?p:f(m,g,p),S=b?b.range(m,+g+1):[];return y?S.reverse():S}function f(m,g,p){const y=Math.abs(g-m)/p,b=iR(([,,N])=>N).right(u,y);if(b===u.length)return e.every(HC(m/zO,g/zO,p));if(b===0)return bb.every(Math.max(HC(m,g,p),1));const[S,x]=u[y/u[b-1][2]<u[b][2]/y?b-1:b];return S.every(x)}return[c,f]}const[zpe,Upe]=EH(rs,ER,H0,NH,wR,bR),[qpe,Hpe]=EH(ns,NR,q0,Bh,xR,yR);function UO(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function qO(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function np(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Fpe(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,s=e.days,u=e.shortDays,c=e.months,f=e.shortMonths,m=rp(o),g=ap(o),p=rp(s),y=ap(s),b=rp(u),S=ap(u),x=rp(c),N=ap(c),T=rp(f),C=ap(f),D={a:z,A:K,b:te,B:ne,c:null,d:j6,e:j6,f:phe,g:She,G:Ohe,H:dhe,I:fhe,j:mhe,L:SH,m:hhe,M:ghe,p:k,q:Q,Q:L6,s:k6,S:vhe,u:yhe,U:bhe,V:xhe,w:whe,W:Nhe,x:null,X:null,y:Ehe,Y:Ahe,Z:The,"%":M6},P={a:W,A:ae,b:ge,B:Ne,c:null,d:P6,e:P6,f:Rhe,g:zhe,G:qhe,H:Che,I:_he,j:Dhe,L:OH,m:jhe,M:Phe,p:ce,q:xe,Q:L6,s:k6,S:Mhe,u:Lhe,U:khe,V:Ihe,w:$he,W:Vhe,x:null,X:null,y:Bhe,Y:Uhe,Z:Hhe,"%":M6},A={a:B,A:U,b:H,B:G,c:Y,d:D6,e:D6,f:she,g:_6,G:C6,H:R6,I:R6,j:rhe,L:ohe,m:nhe,M:ahe,p:V,q:the,Q:uhe,s:che,S:ihe,u:Xpe,U:Wpe,V:Zpe,w:Qpe,W:Jpe,x:J,X:q,y:_6,Y:C6,Z:ehe,"%":lhe};D.x=_(n,D),D.X=_(r,D),D.c=_(t,D),P.x=_(n,P),P.X=_(r,P),P.c=_(t,P);function _(me,be){return function(de){var ie=[],ze=-1,we=0,lt=me.length,$e,et,zn;for(de instanceof Date||(de=new Date(+de));++ze<lt;)me.charCodeAt(ze)===37&&(ie.push(me.slice(we,ze)),(et=T6[$e=me.charAt(++ze)])!=null?$e=me.charAt(++ze):et=$e==="e"?" ":"0",(zn=be[$e])&&($e=zn(de,et)),ie.push($e),we=ze+1);return ie.push(me.slice(we,ze)),ie.join("")}}function j(me,be){return function(de){var ie=np(1900,void 0,1),ze=L(ie,me,de+="",0),we,lt;if(ze!=de.length)return null;if("Q"in ie)return new Date(ie.Q);if("s"in ie)return new Date(ie.s*1e3+("L"in ie?ie.L:0));if(be&&!("Z"in ie)&&(ie.Z=0),"p"in ie&&(ie.H=ie.H%12+ie.p*12),ie.m===void 0&&(ie.m="q"in ie?ie.q:0),"V"in ie){if(ie.V<1||ie.V>53)return null;"w"in ie||(ie.w=1),"Z"in ie?(we=qO(np(ie.y,0,1)),lt=we.getUTCDay(),we=lt>4||lt===0?wb.ceil(we):wb(we),we=U0.offset(we,(ie.V-1)*7),ie.y=we.getUTCFullYear(),ie.m=we.getUTCMonth(),ie.d=we.getUTCDate()+(ie.w+6)%7):(we=UO(np(ie.y,0,1)),lt=we.getDay(),we=lt>4||lt===0?xb.ceil(we):xb(we),we=Bh.offset(we,(ie.V-1)*7),ie.y=we.getFullYear(),ie.m=we.getMonth(),ie.d=we.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),lt="Z"in ie?qO(np(ie.y,0,1)).getUTCDay():UO(np(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(lt+5)%7:ie.w+ie.U*7-(lt+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,qO(ie)):UO(ie)}}function L(me,be,de,ie){for(var ze=0,we=be.length,lt=de.length,$e,et;ze<we;){if(ie>=lt)return-1;if($e=be.charCodeAt(ze++),$e===37){if($e=be.charAt(ze++),et=A[$e in T6?be.charAt(ze++):$e],!et||(ie=et(me,de,ie))<0)return-1}else if($e!=de.charCodeAt(ie++))return-1}return ie}function V(me,be,de){var ie=m.exec(be.slice(de));return ie?(me.p=g.get(ie[0].toLowerCase()),de+ie[0].length):-1}function B(me,be,de){var ie=b.exec(be.slice(de));return ie?(me.w=S.get(ie[0].toLowerCase()),de+ie[0].length):-1}function U(me,be,de){var ie=p.exec(be.slice(de));return ie?(me.w=y.get(ie[0].toLowerCase()),de+ie[0].length):-1}function H(me,be,de){var ie=T.exec(be.slice(de));return ie?(me.m=C.get(ie[0].toLowerCase()),de+ie[0].length):-1}function G(me,be,de){var ie=x.exec(be.slice(de));return ie?(me.m=N.get(ie[0].toLowerCase()),de+ie[0].length):-1}function Y(me,be,de){return L(me,t,be,de)}function J(me,be,de){return L(me,n,be,de)}function q(me,be,de){return L(me,r,be,de)}function z(me){return u[me.getDay()]}function K(me){return s[me.getDay()]}function te(me){return f[me.getMonth()]}function ne(me){return c[me.getMonth()]}function k(me){return o[+(me.getHours()>=12)]}function Q(me){return 1+~~(me.getMonth()/3)}function W(me){return u[me.getUTCDay()]}function ae(me){return s[me.getUTCDay()]}function ge(me){return f[me.getUTCMonth()]}function Ne(me){return c[me.getUTCMonth()]}function ce(me){return o[+(me.getUTCHours()>=12)]}function xe(me){return 1+~~(me.getUTCMonth()/3)}return{format:function(me){var be=_(me+="",D);return be.toString=function(){return me},be},parse:function(me){var be=j(me+="",!1);return be.toString=function(){return me},be},utcFormat:function(me){var be=_(me+="",P);return be.toString=function(){return me},be},utcParse:function(me){var be=j(me+="",!0);return be.toString=function(){return me},be}}}var T6={"-":"",_:" ",0:"0"},Wn=/^\s*\d+/,Kpe=/^%/,Gpe=/[\\^$*+?|[\]().{}]/g;function Tt(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",s=o.length;return r+(s<n?new Array(n-s+1).join(t)+o:o)}function Ype(e){return e.replace(Gpe,"\\$&")}function rp(e){return new RegExp("^(?:"+e.map(Ype).join("|")+")","i")}function ap(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Qpe(e,t,n){var r=Wn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Xpe(e,t,n){var r=Wn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Wpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Zpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Jpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function C6(e,t,n){var r=Wn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ehe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function the(e,t,n){var r=Wn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function nhe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function D6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rhe(e,t,n){var r=Wn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function R6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ahe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ihe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ohe(e,t,n){var r=Wn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function she(e,t,n){var r=Wn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function lhe(e,t,n){var r=Kpe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function uhe(e,t,n){var r=Wn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function che(e,t,n){var r=Wn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function j6(e,t){return Tt(e.getDate(),t,2)}function dhe(e,t){return Tt(e.getHours(),t,2)}function fhe(e,t){return Tt(e.getHours()%12||12,t,2)}function mhe(e,t){return Tt(1+Bh.count(ns(e),e),t,3)}function SH(e,t){return Tt(e.getMilliseconds(),t,3)}function phe(e,t){return SH(e,t)+"000"}function hhe(e,t){return Tt(e.getMonth()+1,t,2)}function ghe(e,t){return Tt(e.getMinutes(),t,2)}function vhe(e,t){return Tt(e.getSeconds(),t,2)}function yhe(e){var t=e.getDay();return t===0?7:t}function bhe(e,t){return Tt(q0.count(ns(e)-1,e),t,2)}function AH(e){var t=e.getDay();return t>=4||t===0?Pd(e):Pd.ceil(e)}function xhe(e,t){return e=AH(e),Tt(Pd.count(ns(e),e)+(ns(e).getDay()===4),t,2)}function whe(e){return e.getDay()}function Nhe(e,t){return Tt(xb.count(ns(e)-1,e),t,2)}function Ehe(e,t){return Tt(e.getFullYear()%100,t,2)}function She(e,t){return e=AH(e),Tt(e.getFullYear()%100,t,2)}function Ahe(e,t){return Tt(e.getFullYear()%1e4,t,4)}function Ohe(e,t){var n=e.getDay();return e=n>=4||n===0?Pd(e):Pd.ceil(e),Tt(e.getFullYear()%1e4,t,4)}function The(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Tt(t/60|0,"0",2)+Tt(t%60,"0",2)}function P6(e,t){return Tt(e.getUTCDate(),t,2)}function Che(e,t){return Tt(e.getUTCHours(),t,2)}function _he(e,t){return Tt(e.getUTCHours()%12||12,t,2)}function Dhe(e,t){return Tt(1+U0.count(rs(e),e),t,3)}function OH(e,t){return Tt(e.getUTCMilliseconds(),t,3)}function Rhe(e,t){return OH(e,t)+"000"}function jhe(e,t){return Tt(e.getUTCMonth()+1,t,2)}function Phe(e,t){return Tt(e.getUTCMinutes(),t,2)}function Mhe(e,t){return Tt(e.getUTCSeconds(),t,2)}function Lhe(e){var t=e.getUTCDay();return t===0?7:t}function khe(e,t){return Tt(H0.count(rs(e)-1,e),t,2)}function TH(e){var t=e.getUTCDay();return t>=4||t===0?Md(e):Md.ceil(e)}function Ihe(e,t){return e=TH(e),Tt(Md.count(rs(e),e)+(rs(e).getUTCDay()===4),t,2)}function $he(e){return e.getUTCDay()}function Vhe(e,t){return Tt(wb.count(rs(e)-1,e),t,2)}function Bhe(e,t){return Tt(e.getUTCFullYear()%100,t,2)}function zhe(e,t){return e=TH(e),Tt(e.getUTCFullYear()%100,t,2)}function Uhe(e,t){return Tt(e.getUTCFullYear()%1e4,t,4)}function qhe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Md(e):Md.ceil(e),Tt(e.getUTCFullYear()%1e4,t,4)}function Hhe(){return"+0000"}function M6(){return"%"}function L6(e){return+e}function k6(e){return Math.floor(+e/1e3)}var cd,CH,_H;Fhe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Fhe(e){return cd=Fpe(e),CH=cd.format,cd.parse,_H=cd.utcFormat,cd.utcParse,cd}function Khe(e){return new Date(e)}function Ghe(e){return e instanceof Date?+e:+new Date(+e)}function SR(e,t,n,r,o,s,u,c,f,m){var g=cR(),p=g.invert,y=g.domain,b=m(".%L"),S=m(":%S"),x=m("%I:%M"),N=m("%I %p"),T=m("%a %d"),C=m("%b %d"),D=m("%B"),P=m("%Y");function A(_){return(f(_)<_?b:c(_)<_?S:u(_)<_?x:s(_)<_?N:r(_)<_?o(_)<_?T:C:n(_)<_?D:P)(_)}return g.invert=function(_){return new Date(p(_))},g.domain=function(_){return arguments.length?y(Array.from(_,Ghe)):y().map(Khe)},g.ticks=function(_){var j=y();return e(j[0],j[j.length-1],_??10)},g.tickFormat=function(_,j){return j==null?A:m(j)},g.nice=function(_){var j=y();return(!_||typeof _.range!="function")&&(_=t(j[0],j[j.length-1],_??10)),_?y(hH(j,_)):g},g.copy=function(){return Vh(g,SR(e,t,n,r,o,s,u,c,f,m))},g}function Yhe(){return Va.apply(SR(qpe,Hpe,ns,NR,q0,Bh,xR,yR,yu,CH).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Qhe(){return Va.apply(SR(zpe,Upe,rs,ER,H0,U0,wR,bR,yu,_H).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function F0(){var e=0,t=1,n,r,o,s,u=jr,c=!1,f;function m(p){return p==null||isNaN(p=+p)?f:u(o===0?.5:(p=(s(p)-n)*o,c?Math.max(0,Math.min(1,p)):p))}m.domain=function(p){return arguments.length?([e,t]=p,n=s(e=+e),r=s(t=+t),o=n===r?0:1/(r-n),m):[e,t]},m.clamp=function(p){return arguments.length?(c=!!p,m):c},m.interpolator=function(p){return arguments.length?(u=p,m):u};function g(p){return function(y){var b,S;return arguments.length?([b,S]=y,u=p(b,S),m):[u(0),u(1)]}}return m.range=g(pf),m.rangeRound=g(uR),m.unknown=function(p){return arguments.length?(f=p,m):f},function(p){return s=p,n=p(e),r=p(t),o=n===r?0:1/(r-n),m}}function hl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function DH(){var e=pl(F0()(jr));return e.copy=function(){return hl(e,DH())},ls.apply(e,arguments)}function RH(){var e=mR(F0()).domain([1,10]);return e.copy=function(){return hl(e,RH()).base(e.base())},ls.apply(e,arguments)}function jH(){var e=pR(F0());return e.copy=function(){return hl(e,jH()).constant(e.constant())},ls.apply(e,arguments)}function AR(){var e=hR(F0());return e.copy=function(){return hl(e,AR()).exponent(e.exponent())},ls.apply(e,arguments)}function Xhe(){return AR.apply(null,arguments).exponent(.5)}function PH(){var e=[],t=jr;function n(r){if(r!=null&&!isNaN(r=+r))return t((Ih(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(sl),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,s)=>kme(e,s/r))},n.copy=function(){return PH(t).domain(e)},ls.apply(n,arguments)}function K0(){var e=0,t=.5,n=1,r=1,o,s,u,c,f,m=jr,g,p=!1,y;function b(x){return isNaN(x=+x)?y:(x=.5+((x=+g(x))-s)*(r*x<r*s?c:f),m(p?Math.max(0,Math.min(1,x)):x))}b.domain=function(x){return arguments.length?([e,t,n]=x,o=g(e=+e),s=g(t=+t),u=g(n=+n),c=o===s?0:.5/(s-o),f=s===u?0:.5/(u-s),r=s<o?-1:1,b):[e,t,n]},b.clamp=function(x){return arguments.length?(p=!!x,b):p},b.interpolator=function(x){return arguments.length?(m=x,b):m};function S(x){return function(N){var T,C,D;return arguments.length?([T,C,D]=N,m=lpe(x,[T,C,D]),b):[m(0),m(.5),m(1)]}}return b.range=S(pf),b.rangeRound=S(uR),b.unknown=function(x){return arguments.length?(y=x,b):y},function(x){return g=x,o=x(e),s=x(t),u=x(n),c=o===s?0:.5/(s-o),f=s===u?0:.5/(u-s),r=s<o?-1:1,b}}function MH(){var e=pl(K0()(jr));return e.copy=function(){return hl(e,MH())},ls.apply(e,arguments)}function LH(){var e=mR(K0()).domain([.1,1,10]);return e.copy=function(){return hl(e,LH()).base(e.base())},ls.apply(e,arguments)}function kH(){var e=pR(K0());return e.copy=function(){return hl(e,kH()).constant(e.constant())},ls.apply(e,arguments)}function OR(){var e=hR(K0());return e.copy=function(){return hl(e,OR()).exponent(e.exponent())},ls.apply(e,arguments)}function Whe(){return OR.apply(null,arguments).exponent(.5)}const I6=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Yp,scaleDiverging:MH,scaleDivergingLog:LH,scaleDivergingPow:OR,scaleDivergingSqrt:Whe,scaleDivergingSymlog:kH,scaleIdentity:pH,scaleImplicit:FC,scaleLinear:yb,scaleLog:gH,scaleOrdinal:oR,scalePoint:Np,scalePow:gR,scaleQuantile:bH,scaleQuantize:xH,scaleRadial:yH,scaleSequential:DH,scaleSequentialLog:RH,scaleSequentialPow:AR,scaleSequentialQuantile:PH,scaleSequentialSqrt:Xhe,scaleSequentialSymlog:jH,scaleSqrt:Rpe,scaleSymlog:vH,scaleThreshold:wH,scaleTime:Yhe,scaleUtc:Qhe,tickFormat:mH},Symbol.toStringTag,{value:"Module"}));var HO,$6;function G0(){if($6)return HO;$6=1;var e=uf();function t(n,r,o){for(var s=-1,u=n.length;++s<u;){var c=n[s],f=r(c);if(f!=null&&(m===void 0?f===f&&!e(f):o(f,m)))var m=f,g=c}return g}return HO=t,HO}var FO,V6;function IH(){if(V6)return FO;V6=1;function e(t,n){return t>n}return FO=e,FO}var KO,B6;function Zhe(){if(B6)return KO;B6=1;var e=G0(),t=IH(),n=mf();function r(o){return o&&o.length?e(o,n,t):void 0}return KO=r,KO}var Jhe=Zhe();const al=It(Jhe);var GO,z6;function $H(){if(z6)return GO;z6=1;function e(t,n){return t<n}return GO=e,GO}var YO,U6;function ege(){if(U6)return YO;U6=1;var e=G0(),t=$H(),n=mf();function r(o){return o&&o.length?e(o,n,t):void 0}return YO=r,YO}var tge=ege();const Y0=It(tge);var QO,q6;function nge(){if(q6)return QO;q6=1;var e=UD(),t=co(),n=Kq(),r=Kr();function o(s,u){var c=r(s)?e:n;return c(s,t(u,3))}return QO=o,QO}var XO,H6;function rge(){if(H6)return XO;H6=1;var e=Hq(),t=nge();function n(r,o){return e(t(r,o),1)}return XO=n,XO}var age=rge();const ige=It(age);var WO,F6;function oge(){if(F6)return WO;F6=1;var e=tR();function t(n,r){return e(n,r)}return WO=t,WO}var sge=oge();const Ld=It(sge);var hf=1e9,lge={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},CR,ln=!0,$a="[DecimalError] ",Eu=$a+"Invalid argument: ",TR=$a+"Exponent out of range: ",gf=Math.floor,fu=Math.pow,uge=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,da,Yn=1e7,rn=7,VH=9007199254740991,Nb=gf(VH/rn),Pe={};Pe.absoluteValue=Pe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Pe.comparedTo=Pe.cmp=function(e){var t,n,r,o,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,o=e.d.length,t=0,n=r<o?r:o;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===o?0:r>o^s.s<0?1:-1};Pe.decimalPlaces=Pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*rn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Pe.dividedBy=Pe.div=function(e){return Wo(this,new this.constructor(e))};Pe.dividedToIntegerBy=Pe.idiv=function(e){var t=this,n=t.constructor;return Kt(Wo(t,new n(e),0,1),n.precision)};Pe.equals=Pe.eq=function(e){return!this.cmp(e)};Pe.exponent=function(){return Dn(this)};Pe.greaterThan=Pe.gt=function(e){return this.cmp(e)>0};Pe.greaterThanOrEqualTo=Pe.gte=function(e){return this.cmp(e)>=0};Pe.isInteger=Pe.isint=function(){return this.e>this.d.length-2};Pe.isNegative=Pe.isneg=function(){return this.s<0};Pe.isPositive=Pe.ispos=function(){return this.s>0};Pe.isZero=function(){return this.s===0};Pe.lessThan=Pe.lt=function(e){return this.cmp(e)<0};Pe.lessThanOrEqualTo=Pe.lte=function(e){return this.cmp(e)<1};Pe.logarithm=Pe.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(da))throw Error($a+"NaN");if(n.s<1)throw Error($a+(n.s?"NaN":"-Infinity"));return n.eq(da)?new r(0):(ln=!1,t=Wo(Jp(n,s),Jp(e,s),s),ln=!0,Kt(t,o))};Pe.minus=Pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?UH(t,e):BH(t,(e.s=-e.s,e))};Pe.modulo=Pe.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error($a+"NaN");return n.s?(ln=!1,t=Wo(n,e,0,1).times(e),ln=!0,n.minus(t)):Kt(new r(n),o)};Pe.naturalExponential=Pe.exp=function(){return zH(this)};Pe.naturalLogarithm=Pe.ln=function(){return Jp(this)};Pe.negated=Pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Pe.plus=Pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?BH(t,e):UH(t,(e.s=-e.s,e))};Pe.precision=Pe.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Eu+e);if(t=Dn(o)+1,r=o.d.length-1,n=r*rn+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Pe.squareRoot=Pe.sqrt=function(){var e,t,n,r,o,s,u,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error($a+"NaN")}for(e=Dn(c),ln=!1,o=Math.sqrt(+c),o==0||o==1/0?(t=Qi(c.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=gf((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(o.toString()),n=f.precision,o=u=n+3;;)if(s=r,r=s.plus(Wo(c,s,u+2)).times(.5),Qi(s.d).slice(0,u)===(t=Qi(r.d)).slice(0,u)){if(t=t.slice(u-3,u+1),o==u&&t=="4999"){if(Kt(s,n+1,0),s.times(s).eq(c)){r=s;break}}else if(t!="9999")break;u+=4}return ln=!0,Kt(r,n)};Pe.times=Pe.mul=function(e){var t,n,r,o,s,u,c,f,m,g=this,p=g.constructor,y=g.d,b=(e=new p(e)).d;if(!g.s||!e.s)return new p(0);for(e.s*=g.s,n=g.e+e.e,f=y.length,m=b.length,f<m&&(s=y,y=b,b=s,u=f,f=m,m=u),s=[],u=f+m,r=u;r--;)s.push(0);for(r=m;--r>=0;){for(t=0,o=f+r;o>r;)c=s[o]+b[r]*y[o-r-1]+t,s[o--]=c%Yn|0,t=c/Yn|0;s[o]=(s[o]+t)%Yn|0}for(;!s[--u];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,ln?Kt(e,p.precision):e};Pe.toDecimalPlaces=Pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ao(e,0,hf),t===void 0?t=r.rounding:ao(t,0,8),Kt(n,e+Dn(n)+1,t))};Pe.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Bu(r,!0):(ao(e,0,hf),t===void 0?t=o.rounding:ao(t,0,8),r=Kt(new o(r),e+1,t),n=Bu(r,!0,e+1)),n};Pe.toFixed=function(e,t){var n,r,o=this,s=o.constructor;return e===void 0?Bu(o):(ao(e,0,hf),t===void 0?t=s.rounding:ao(t,0,8),r=Kt(new s(o),e+Dn(o)+1,t),n=Bu(r.abs(),!1,e+Dn(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};Pe.toInteger=Pe.toint=function(){var e=this,t=e.constructor;return Kt(new t(e),Dn(e)+1,t.rounding)};Pe.toNumber=function(){return+this};Pe.toPower=Pe.pow=function(e){var t,n,r,o,s,u,c=this,f=c.constructor,m=12,g=+(e=new f(e));if(!e.s)return new f(da);if(c=new f(c),!c.s){if(e.s<1)throw Error($a+"Infinity");return c}if(c.eq(da))return c;if(r=f.precision,e.eq(da))return Kt(c,r);if(t=e.e,n=e.d.length-1,u=t>=n,s=c.s,u){if((n=g<0?-g:g)<=VH){for(o=new f(da),t=Math.ceil(r/rn+4),ln=!1;n%2&&(o=o.times(c),G6(o.d,t)),n=gf(n/2),n!==0;)c=c.times(c),G6(c.d,t);return ln=!0,e.s<0?new f(da).div(o):Kt(o,r)}}else if(s<0)throw Error($a+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,ln=!1,o=e.times(Jp(c,r+m)),ln=!0,o=zH(o),o.s=s,o};Pe.toPrecision=function(e,t){var n,r,o=this,s=o.constructor;return e===void 0?(n=Dn(o),r=Bu(o,n<=s.toExpNeg||n>=s.toExpPos)):(ao(e,1,hf),t===void 0?t=s.rounding:ao(t,0,8),o=Kt(new s(o),e,t),n=Dn(o),r=Bu(o,e<=n||n<=s.toExpNeg,e)),r};Pe.toSignificantDigits=Pe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ao(e,1,hf),t===void 0?t=r.rounding:ao(t,0,8)),Kt(new r(n),e,t)};Pe.toString=Pe.valueOf=Pe.val=Pe.toJSON=Pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Dn(e),n=e.constructor;return Bu(e,t<=n.toExpNeg||t>=n.toExpPos)};function BH(e,t){var n,r,o,s,u,c,f,m,g=e.constructor,p=g.precision;if(!e.s||!t.s)return t.s||(t=new g(e)),ln?Kt(t,p):t;if(f=e.d,m=t.d,u=e.e,o=t.e,f=f.slice(),s=u-o,s){for(s<0?(r=f,s=-s,c=m.length):(r=m,o=u,c=f.length),u=Math.ceil(p/rn),c=u>c?u+1:c+1,s>c&&(s=c,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(c=f.length,s=m.length,c-s<0&&(s=c,r=m,m=f,f=r),n=0;s;)n=(f[--s]=f[s]+m[s]+n)/Yn|0,f[s]%=Yn;for(n&&(f.unshift(n),++o),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=o,ln?Kt(t,p):t}function ao(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Eu+e)}function Qi(e){var t,n,r,o=e.length-1,s="",u=e[0];if(o>0){for(s+=u,t=1;t<o;t++)r=e[t]+"",n=rn-r.length,n&&(s+=tl(n)),s+=r;u=e[t],r=u+"",n=rn-r.length,n&&(s+=tl(n))}else if(u===0)return"0";for(;u%10===0;)u/=10;return s+u}var Wo=(function(){function e(r,o){var s,u=0,c=r.length;for(r=r.slice();c--;)s=r[c]*o+u,r[c]=s%Yn|0,u=s/Yn|0;return u&&r.unshift(u),r}function t(r,o,s,u){var c,f;if(s!=u)f=s>u?1:-1;else for(c=f=0;c<s;c++)if(r[c]!=o[c]){f=r[c]>o[c]?1:-1;break}return f}function n(r,o,s){for(var u=0;s--;)r[s]-=u,u=r[s]<o[s]?1:0,r[s]=u*Yn+r[s]-o[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,s,u){var c,f,m,g,p,y,b,S,x,N,T,C,D,P,A,_,j,L,V=r.constructor,B=r.s==o.s?1:-1,U=r.d,H=o.d;if(!r.s)return new V(r);if(!o.s)throw Error($a+"Division by zero");for(f=r.e-o.e,j=H.length,A=U.length,b=new V(B),S=b.d=[],m=0;H[m]==(U[m]||0);)++m;if(H[m]>(U[m]||0)&&--f,s==null?C=s=V.precision:u?C=s+(Dn(r)-Dn(o))+1:C=s,C<0)return new V(0);if(C=C/rn+2|0,m=0,j==1)for(g=0,H=H[0],C++;(m<A||g)&&C--;m++)D=g*Yn+(U[m]||0),S[m]=D/H|0,g=D%H|0;else{for(g=Yn/(H[0]+1)|0,g>1&&(H=e(H,g),U=e(U,g),j=H.length,A=U.length),P=j,x=U.slice(0,j),N=x.length;N<j;)x[N++]=0;L=H.slice(),L.unshift(0),_=H[0],H[1]>=Yn/2&&++_;do g=0,c=t(H,x,j,N),c<0?(T=x[0],j!=N&&(T=T*Yn+(x[1]||0)),g=T/_|0,g>1?(g>=Yn&&(g=Yn-1),p=e(H,g),y=p.length,N=x.length,c=t(p,x,y,N),c==1&&(g--,n(p,j<y?L:H,y))):(g==0&&(c=g=1),p=H.slice()),y=p.length,y<N&&p.unshift(0),n(x,p,N),c==-1&&(N=x.length,c=t(H,x,j,N),c<1&&(g++,n(x,j<N?L:H,N))),N=x.length):c===0&&(g++,x=[0]),S[m++]=g,c&&x[0]?x[N++]=U[P]||0:(x=[U[P]],N=1);while((P++<A||x[0]!==void 0)&&C--)}return S[0]||S.shift(),b.e=f,Kt(b,u?s+Dn(b)+1:s)}})();function zH(e,t){var n,r,o,s,u,c,f=0,m=0,g=e.constructor,p=g.precision;if(Dn(e)>16)throw Error(TR+Dn(e));if(!e.s)return new g(da);for(ln=!1,c=p,u=new g(.03125);e.abs().gte(.1);)e=e.times(u),m+=5;for(r=Math.log(fu(2,m))/Math.LN10*2+5|0,c+=r,n=o=s=new g(da),g.precision=c;;){if(o=Kt(o.times(e),c),n=n.times(++f),u=s.plus(Wo(o,n,c)),Qi(u.d).slice(0,c)===Qi(s.d).slice(0,c)){for(;m--;)s=Kt(s.times(s),c);return g.precision=p,t==null?(ln=!0,Kt(s,p)):s}s=u}}function Dn(e){for(var t=e.e*rn,n=e.d[0];n>=10;n/=10)t++;return t}function ZO(e,t,n){if(t>e.LN10.sd())throw ln=!0,n&&(e.precision=n),Error($a+"LN10 precision limit exceeded");return Kt(new e(e.LN10),t)}function tl(e){for(var t="";e--;)t+="0";return t}function Jp(e,t){var n,r,o,s,u,c,f,m,g,p=1,y=10,b=e,S=b.d,x=b.constructor,N=x.precision;if(b.s<1)throw Error($a+(b.s?"NaN":"-Infinity"));if(b.eq(da))return new x(0);if(t==null?(ln=!1,m=N):m=t,b.eq(10))return t==null&&(ln=!0),ZO(x,m);if(m+=y,x.precision=m,n=Qi(S),r=n.charAt(0),s=Dn(b),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)b=b.times(e),n=Qi(b.d),r=n.charAt(0),p++;s=Dn(b),r>1?(b=new x("0."+n),s++):b=new x(r+"."+n.slice(1))}else return f=ZO(x,m+2,N).times(s+""),b=Jp(new x(r+"."+n.slice(1)),m-y).plus(f),x.precision=N,t==null?(ln=!0,Kt(b,N)):b;for(c=u=b=Wo(b.minus(da),b.plus(da),m),g=Kt(b.times(b),m),o=3;;){if(u=Kt(u.times(g),m),f=c.plus(Wo(u,new x(o),m)),Qi(f.d).slice(0,m)===Qi(c.d).slice(0,m))return c=c.times(2),s!==0&&(c=c.plus(ZO(x,m+2,N).times(s+""))),c=Wo(c,new x(p),m),x.precision=N,t==null?(ln=!0,Kt(c,N)):c;c=f,o+=2}}function K6(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=gf(n/rn),e.d=[],r=(n+1)%rn,n<0&&(r+=rn),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=rn;r<o;)e.d.push(+t.slice(r,r+=rn));t=t.slice(r),r=rn-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),ln&&(e.e>Nb||e.e<-Nb))throw Error(TR+n)}else e.s=0,e.e=0,e.d=[0];return e}function Kt(e,t,n){var r,o,s,u,c,f,m,g,p=e.d;for(u=1,s=p[0];s>=10;s/=10)u++;if(r=t-u,r<0)r+=rn,o=t,m=p[g=0];else{if(g=Math.ceil((r+1)/rn),s=p.length,g>=s)return e;for(m=s=p[g],u=1;s>=10;s/=10)u++;r%=rn,o=r-rn+u}if(n!==void 0&&(s=fu(10,u-o-1),c=m/s%10|0,f=t<0||p[g+1]!==void 0||m%s,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?o>0?m/fu(10,u-o):0:p[g-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return f?(s=Dn(e),p.length=1,t=t-s-1,p[0]=fu(10,(rn-t%rn)%rn),e.e=gf(-t/rn)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=g,s=1,g--):(p.length=g+1,s=fu(10,rn-r),p[g]=o>0?(m/fu(10,u-o)%fu(10,o)|0)*s:0),f)for(;;)if(g==0){(p[0]+=s)==Yn&&(p[0]=1,++e.e);break}else{if(p[g]+=s,p[g]!=Yn)break;p[g--]=0,s=1}for(r=p.length;p[--r]===0;)p.pop();if(ln&&(e.e>Nb||e.e<-Nb))throw Error(TR+Dn(e));return e}function UH(e,t){var n,r,o,s,u,c,f,m,g,p,y=e.constructor,b=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),ln?Kt(t,b):t;if(f=e.d,p=t.d,r=t.e,m=e.e,f=f.slice(),u=m-r,u){for(g=u<0,g?(n=f,u=-u,c=p.length):(n=p,r=m,c=f.length),o=Math.max(Math.ceil(b/rn),c)+2,u>o&&(u=o,n.length=1),n.reverse(),o=u;o--;)n.push(0);n.reverse()}else{for(o=f.length,c=p.length,g=o<c,g&&(c=o),o=0;o<c;o++)if(f[o]!=p[o]){g=f[o]<p[o];break}u=0}for(g&&(n=f,f=p,p=n,t.s=-t.s),c=f.length,o=p.length-c;o>0;--o)f[c++]=0;for(o=p.length;o>u;){if(f[--o]<p[o]){for(s=o;s&&f[--s]===0;)f[s]=Yn-1;--f[s],f[o]+=Yn}f[o]-=p[o]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,ln?Kt(t,b):t):new y(0)}function Bu(e,t,n){var r,o=Dn(e),s=Qi(e.d),u=s.length;return t?(n&&(r=n-u)>0?s=s.charAt(0)+"."+s.slice(1)+tl(r):u>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(o<0?"e":"e+")+o):o<0?(s="0."+tl(-o-1)+s,n&&(r=n-u)>0&&(s+=tl(r))):o>=u?(s+=tl(o+1-u),n&&(r=n-o-1)>0&&(s=s+"."+tl(r))):((r=o+1)<u&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-u)>0&&(o+1===u&&(s+="."),s+=tl(r))),e.s<0?"-"+s:s}function G6(e,t){if(e.length>t)return e.length=t,!0}function qH(e){var t,n,r;function o(s){var u=this;if(!(u instanceof o))return new o(s);if(u.constructor=o,s instanceof o){u.s=s.s,u.e=s.e,u.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(Eu+s);if(s>0)u.s=1;else if(s<0)s=-s,u.s=-1;else{u.s=0,u.e=0,u.d=[0];return}if(s===~~s&&s<1e7){u.e=0,u.d=[s];return}return K6(u,s.toString())}else if(typeof s!="string")throw Error(Eu+s);if(s.charCodeAt(0)===45?(s=s.slice(1),u.s=-1):u.s=1,uge.test(s))K6(u,s);else throw Error(Eu+s)}if(o.prototype=Pe,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=qH,o.config=o.set=cge,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return o.config(e),o}function cge(e){if(!e||typeof e!="object")throw Error($a+"Object expected");var t,n,r,o=["precision",1,hf,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((r=e[n=o[t]])!==void 0)if(gf(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(Eu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Eu+n+": "+r);return this}var CR=qH(lge);da=new CR(1);const Ut=CR;function dge(e){return hge(e)||pge(e)||mge(e)||fge()}function fge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mge(e,t){if(e){if(typeof e=="string")return QC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QC(e,t)}}function pge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function hge(e){if(Array.isArray(e))return QC(e)}function QC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gge=function(t){return t},HH={},FH=function(t){return t===HH},Y6=function(t){return function n(){return arguments.length===0||arguments.length===1&&FH(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},vge=function e(t,n){return t===1?n:Y6(function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var u=o.filter(function(c){return c!==HH}).length;return u>=t?n.apply(void 0,o):e(t-u,Y6(function(){for(var c=arguments.length,f=new Array(c),m=0;m<c;m++)f[m]=arguments[m];var g=o.map(function(p){return FH(p)?f.shift():p});return n.apply(void 0,dge(g).concat(f))}))})},Q0=function(t){return vge(t.length,t)},XC=function(t,n){for(var r=[],o=t;o<n;++o)r[o-t]=o;return r},yge=Q0(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),bge=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return gge;var o=n.reverse(),s=o[0],u=o.slice(1);return function(){return u.reduce(function(c,f){return f(c)},s.apply(void 0,arguments))}},WC=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},KH=function(t){var n=null,r=null;return function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return n&&s.every(function(c,f){return c===n[f]})||(n=s,r=t.apply(void 0,s)),r}};function xge(e){var t;return e===0?t=1:t=Math.floor(new Ut(e).abs().log(10).toNumber())+1,t}function wge(e,t,n){for(var r=new Ut(e),o=0,s=[];r.lt(t)&&o<1e5;)s.push(r.toNumber()),r=r.add(n),o++;return s}var Nge=Q0(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),Ege=Q0(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Sge=Q0(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const X0={rangeStep:wge,getDigitCount:xge,interpolateNumber:Nge,uninterpolateNumber:Ege,uninterpolateTruncation:Sge};function ZC(e){return Tge(e)||Oge(e)||GH(e)||Age()}function Age(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Tge(e){if(Array.isArray(e))return JC(e)}function eh(e,t){return Dge(e)||_ge(e,t)||GH(e,t)||Cge()}function Cge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GH(e,t){if(e){if(typeof e=="string")return JC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JC(e,t)}}function JC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _ge(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,s=void 0;try{for(var u=e[Symbol.iterator](),c;!(r=(c=u.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){o=!0,s=f}finally{try{!r&&u.return!=null&&u.return()}finally{if(o)throw s}}return n}}function Dge(e){if(Array.isArray(e))return e}function YH(e){var t=eh(e,2),n=t[0],r=t[1],o=n,s=r;return n>r&&(o=r,s=n),[o,s]}function QH(e,t,n){if(e.lte(0))return new Ut(0);var r=X0.getDigitCount(e.toNumber()),o=new Ut(10).pow(r),s=e.div(o),u=r!==1?.05:.1,c=new Ut(Math.ceil(s.div(u).toNumber())).add(n).mul(u),f=c.mul(o);return t?f:new Ut(Math.ceil(f))}function Rge(e,t,n){var r=1,o=new Ut(e);if(!o.isint()&&n){var s=Math.abs(e);s<1?(r=new Ut(10).pow(X0.getDigitCount(e)-1),o=new Ut(Math.floor(o.div(r).toNumber())).mul(r)):s>1&&(o=new Ut(Math.floor(e)))}else e===0?o=new Ut(Math.floor((t-1)/2)):n||(o=new Ut(Math.floor(e)));var u=Math.floor((t-1)/2),c=bge(yge(function(f){return o.add(new Ut(f-u).mul(r)).toNumber()}),XC);return c(0,t)}function XH(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Ut(0),tickMin:new Ut(0),tickMax:new Ut(0)};var s=QH(new Ut(t).sub(e).div(n-1),r,o),u;e<=0&&t>=0?u=new Ut(0):(u=new Ut(e).add(t).div(2),u=u.sub(new Ut(u).mod(s)));var c=Math.ceil(u.sub(e).div(s).toNumber()),f=Math.ceil(new Ut(t).sub(u).div(s).toNumber()),m=c+f+1;return m>n?XH(e,t,n,r,o+1):(m<n&&(f=t>0?f+(n-m):f,c=t>0?c:c+(n-m)),{step:s,tickMin:u.sub(new Ut(c).mul(s)),tickMax:u.add(new Ut(f).mul(s))})}function jge(e){var t=eh(e,2),n=t[0],r=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=Math.max(o,2),c=YH([n,r]),f=eh(c,2),m=f[0],g=f[1];if(m===-1/0||g===1/0){var p=g===1/0?[m].concat(ZC(XC(0,o-1).map(function(){return 1/0}))):[].concat(ZC(XC(0,o-1).map(function(){return-1/0})),[g]);return n>r?WC(p):p}if(m===g)return Rge(m,o,s);var y=XH(m,g,u,s),b=y.step,S=y.tickMin,x=y.tickMax,N=X0.rangeStep(S,x.add(new Ut(.1).mul(b)),b);return n>r?WC(N):N}function Pge(e,t){var n=eh(e,2),r=n[0],o=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=YH([r,o]),c=eh(u,2),f=c[0],m=c[1];if(f===-1/0||m===1/0)return[r,o];if(f===m)return[f];var g=Math.max(t,2),p=QH(new Ut(m).sub(f).div(g-1),s,0),y=[].concat(ZC(X0.rangeStep(new Ut(f),new Ut(m).sub(new Ut(.99).mul(p)),p)),[m]);return r>o?WC(y):y}var Mge=KH(jge),Lge=KH(Pge),Q6="Invariant failed";function zu(e,t){var n=typeof t=="function"?t():t,r=n?"".concat(Q6,": ").concat(n):Q6;throw new Error(r)}var kge=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function kd(e){"@babel/helpers - typeof";return kd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kd(e)}function Eb(){return Eb=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},Eb.apply(this,arguments)}function Ige(e,t){return zge(e)||Bge(e,t)||Vge(e,t)||$ge()}function $ge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vge(e,t){if(e){if(typeof e=="string")return X6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X6(e,t)}}function X6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,c=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return c}}function zge(e){if(Array.isArray(e))return e}function Uge(e,t){if(e==null)return{};var n=qge(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qge(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Hge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JH(r.key),r)}}function Kge(e,t,n){return t&&Fge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gge(e,t,n){return t=Sb(t),Yge(e,WH()?Reflect.construct(t,n||[],Sb(e).constructor):t.apply(e,n))}function Yge(e,t){if(t&&(kd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qge(e)}function Qge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WH=function(){return!!e})()}function Sb(e){return Sb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sb(e)}function Xge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&e_(e,t)}function e_(e,t){return e_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},e_(e,t)}function ZH(e,t,n){return t=JH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JH(e){var t=Wge(e,"string");return kd(t)=="symbol"?t:t+""}function Wge(e,t){if(kd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var W0=(function(e){function t(){return Hge(this,t),Gge(this,t,arguments)}return Xge(t,e),Kge(t,[{key:"render",value:function(){var r=this.props,o=r.offset,s=r.layout,u=r.width,c=r.dataKey,f=r.data,m=r.dataPointFormatter,g=r.xAxis,p=r.yAxis,y=Uge(r,kge),b=Fe(y,!1);this.props.direction==="x"&&g.type!=="number"&&zu(!1,'ErrorBar requires Axis type property to be "number".');var S=f.map(function(x){var N=m(x,c),T=N.x,C=N.y,D=N.value,P=N.errorVal;if(!P)return null;var A=[],_,j;if(Array.isArray(P)){var L=Ige(P,2);_=L[0],j=L[1]}else _=j=P;if(s==="vertical"){var V=g.scale,B=C+o,U=B+u,H=B-u,G=V(D-_),Y=V(D+j);A.push({x1:Y,y1:U,x2:Y,y2:H}),A.push({x1:G,y1:B,x2:Y,y2:B}),A.push({x1:G,y1:U,x2:G,y2:H})}else if(s==="horizontal"){var J=p.scale,q=T+o,z=q-u,K=q+u,te=J(D-_),ne=J(D+j);A.push({x1:z,y1:ne,x2:K,y2:ne}),A.push({x1:q,y1:te,x2:q,y2:ne}),A.push({x1:z,y1:te,x2:K,y2:te})}return F.createElement(Nt,Eb({className:"recharts-errorBar",key:"bar-".concat(A.map(function(k){return"".concat(k.x1,"-").concat(k.x2,"-").concat(k.y1,"-").concat(k.y2)}))},b),A.map(function(k){return F.createElement("line",Eb({},k,{key:"line-".concat(k.x1,"-").concat(k.x2,"-").concat(k.y1,"-").concat(k.y2)}))}))});return F.createElement(Nt,{className:"recharts-errorBars"},S)}}])})(F.Component);ZH(W0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});ZH(W0,"displayName","ErrorBar");function th(e){"@babel/helpers - typeof";return th=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},th(e)}function W6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ou(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W6(Object(n),!0).forEach(function(r){Zge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zge(e,t,n){return t=Jge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jge(e){var t=eve(e,"string");return th(t)=="symbol"?t:t+""}function eve(e,t){if(th(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(th(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eF=function(t){var n=t.children,r=t.formattedGraphicalItems,o=t.legendWidth,s=t.legendContent,u=ua(n,wu);if(!u)return null;var c=wu.defaultProps,f=c!==void 0?ou(ou({},c),u.props):{},m;return u.props&&u.props.payload?m=u.props&&u.props.payload:s==="children"?m=(r||[]).reduce(function(g,p){var y=p.item,b=p.props,S=b.sectors||b.data||[];return g.concat(S.map(function(x){return{type:u.props.iconType||y.props.legendType,value:x.name,color:x.fill,payload:x}}))},[]):m=(r||[]).map(function(g){var p=g.item,y=p.type.defaultProps,b=y!==void 0?ou(ou({},y),p.props):{},S=b.dataKey,x=b.name,N=b.legendType,T=b.hide;return{inactive:T,dataKey:S,type:f.iconType||N||"square",color:_R(p),value:x||S,payload:b}}),ou(ou(ou({},f),wu.getWithHeight(u,o)),{},{payload:m,item:u})};function nh(e){"@babel/helpers - typeof";return nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nh(e)}function Z6(e){return ave(e)||rve(e)||nve(e)||tve()}function tve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nve(e,t){if(e){if(typeof e=="string")return t_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t_(e,t)}}function rve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ave(e){if(Array.isArray(e))return t_(e)}function t_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function J6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J6(Object(n),!0).forEach(function(r){Nd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nd(e,t,n){return t=ive(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ive(e){var t=ove(e,"string");return nh(t)=="symbol"?t:t+""}function ove(e,t){if(nh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $n(e,t,n){return rt(e)||rt(t)?n:Vn(t)?ma(e,t,n):Qe(t)?t(e):n}function Ep(e,t,n,r){var o=ige(e,function(c){return $n(c,t)});if(n==="number"){var s=o.filter(function(c){return Oe(c)||parseFloat(c)});return s.length?[Y0(s),al(s)]:[1/0,-1/0]}var u=r?o.filter(function(c){return!rt(c)}):o;return u.map(function(c){return Vn(c)||c instanceof Date?c:""})}var sve=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,u=-1,c=(n=r?.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var f=s.range,m=0;m<c;m++){var g=m>0?o[m-1].coordinate:o[c-1].coordinate,p=o[m].coordinate,y=m>=c-1?o[0].coordinate:o[m+1].coordinate,b=void 0;if(Dr(p-g)!==Dr(y-p)){var S=[];if(Dr(y-p)===Dr(f[1]-f[0])){b=y;var x=p+f[1]-f[0];S[0]=Math.min(x,(x+g)/2),S[1]=Math.max(x,(x+g)/2)}else{b=g;var N=y+f[1]-f[0];S[0]=Math.min(p,(N+p)/2),S[1]=Math.max(p,(N+p)/2)}var T=[Math.min(p,(b+p)/2),Math.max(p,(b+p)/2)];if(t>T[0]&&t<=T[1]||t>=S[0]&&t<=S[1]){u=o[m].index;break}}else{var C=Math.min(g,y),D=Math.max(g,y);if(t>(C+p)/2&&t<=(D+p)/2){u=o[m].index;break}}}else for(var P=0;P<c;P++)if(P===0&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P>0&&P<c-1&&t>(r[P].coordinate+r[P-1].coordinate)/2&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P===c-1&&t>(r[P].coordinate+r[P-1].coordinate)/2){u=r[P].index;break}return u},_R=function(t){var n,r=t,o=r.type.displayName,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?pn(pn({},t.type.defaultProps),t.props):t.props,u=s.stroke,c=s.fill,f;switch(o){case"Line":f=u;break;case"Area":case"Radar":f=u&&u!=="none"?u:c;break;default:f=c;break}return f},lve=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,s=o===void 0?{}:o;if(!s)return{};for(var u={},c=Object.keys(s),f=0,m=c.length;f<m;f++)for(var g=s[c[f]].stackGroups,p=Object.keys(g),y=0,b=p.length;y<b;y++){var S=g[p[y]],x=S.items,N=S.cateAxisId,T=x.filter(function(j){return Xo(j.type).indexOf("Bar")>=0});if(T&&T.length){var C=T[0].type.defaultProps,D=C!==void 0?pn(pn({},C),T[0].props):T[0].props,P=D.barSize,A=D[N];u[A]||(u[A]=[]);var _=rt(P)?n:P;u[A].push({item:T[0],stackList:T.slice(1),barSize:rt(_)?void 0:Rr(_,r,0)})}}return u},uve=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,s=t.sizeList,u=s===void 0?[]:s,c=t.maxBarSize,f=u.length;if(f<1)return null;var m=Rr(n,o,0,!0),g,p=[];if(u[0].barSize===+u[0].barSize){var y=!1,b=o/f,S=u.reduce(function(P,A){return P+A.barSize||0},0);S+=(f-1)*m,S>=o&&(S-=(f-1)*m,m=0),S>=o&&b>0&&(y=!0,b*=.9,S=f*b);var x=(o-S)/2>>0,N={offset:x-m,size:0};g=u.reduce(function(P,A){var _={item:A.item,position:{offset:N.offset+N.size+m,size:y?b:A.barSize}},j=[].concat(Z6(P),[_]);return N=j[j.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(L){j.push({item:L,position:N})}),j},p)}else{var T=Rr(r,o,0,!0);o-2*T-(f-1)*m<=0&&(m=0);var C=(o-2*T-(f-1)*m)/f;C>1&&(C>>=0);var D=c===+c?Math.min(C,c):C;g=u.reduce(function(P,A,_){var j=[].concat(Z6(P),[{item:A.item,position:{offset:T+(C+m)*_+(C-D)/2,size:D}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(L){j.push({item:L,position:j[j.length-1].position})}),j},p)}return g},cve=function(t,n,r,o){var s=r.children,u=r.width,c=r.margin,f=u-(c.left||0)-(c.right||0),m=eF({children:s,legendWidth:f});if(m){var g=o||{},p=g.width,y=g.height,b=m.align,S=m.verticalAlign,x=m.layout;if((x==="vertical"||x==="horizontal"&&S==="middle")&&b!=="center"&&Oe(t[b]))return pn(pn({},t),{},Nd({},b,t[b]+(p||0)));if((x==="horizontal"||x==="vertical"&&b==="center")&&S!=="middle"&&Oe(t[S]))return pn(pn({},t),{},Nd({},S,t[S]+(y||0)))}return t},dve=function(t,n,r){return rt(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},tF=function(t,n,r,o,s){var u=n.props.children,c=Ia(u,W0).filter(function(m){return dve(o,s,m.props.direction)});if(c&&c.length){var f=c.map(function(m){return m.props.dataKey});return t.reduce(function(m,g){var p=$n(g,r);if(rt(p))return m;var y=Array.isArray(p)?[Y0(p),al(p)]:[p,p],b=f.reduce(function(S,x){var N=$n(g,x,0),T=y[0]-Math.abs(Array.isArray(N)?N[0]:N),C=y[1]+Math.abs(Array.isArray(N)?N[1]:N);return[Math.min(T,S[0]),Math.max(C,S[1])]},[1/0,-1/0]);return[Math.min(b[0],m[0]),Math.max(b[1],m[1])]},[1/0,-1/0])}return null},fve=function(t,n,r,o,s){var u=n.map(function(c){return tF(t,c,r,s,o)}).filter(function(c){return!rt(c)});return u&&u.length?u.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},nF=function(t,n,r,o,s){var u=n.map(function(f){var m=f.props.dataKey;return r==="number"&&m&&tF(t,f,m,o)||Ep(t,m,r,s)});if(r==="number")return u.reduce(function(f,m){return[Math.min(f[0],m[0]),Math.max(f[1],m[1])]},[1/0,-1/0]);var c={};return u.reduce(function(f,m){for(var g=0,p=m.length;g<p;g++)c[m[g]]||(c[m[g]]=!0,f.push(m[g]));return f},[])},rF=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},aF=function(t,n,r,o){if(o)return t.map(function(f){return f.coordinate});var s,u,c=t.map(function(f){return f.coordinate===n&&(s=!0),f.coordinate===r&&(u=!0),f.coordinate});return s||c.push(n),u||c.push(r),c},Qo=function(t,n,r){if(!t)return null;var o=t.scale,s=t.duplicateDomain,u=t.type,c=t.range,f=t.realScaleType==="scaleBand"?o.bandwidth()/2:2,m=(n||r)&&u==="category"&&o.bandwidth?o.bandwidth()/f:0;if(m=t.axisType==="angleAxis"&&c?.length>=2?Dr(c[0]-c[1])*2*m:m,n&&(t.ticks||t.niceTicks)){var g=(t.ticks||t.niceTicks).map(function(p){var y=s?s.indexOf(p):p;return{coordinate:o(y)+m,value:p,offset:m}});return g.filter(function(p){return!df(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,y){return{coordinate:o(p)+m,value:p,index:y,offset:m}}):o.ticks&&!r?o.ticks(t.tickCount).map(function(p){return{coordinate:o(p)+m,value:p,offset:m}}):o.domain().map(function(p,y){return{coordinate:o(p)+m,value:s?s[p]:p,index:y,offset:m}})},JO=new WeakMap,Oy=function(t,n){if(typeof n!="function")return t;JO.has(t)||JO.set(t,new WeakMap);var r=JO.get(t);if(r.has(n))return r.get(n);var o=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,o),o},iF=function(t,n,r){var o=t.scale,s=t.type,u=t.layout,c=t.axisType;if(o==="auto")return u==="radial"&&c==="radiusAxis"?{scale:Yp(),realScaleType:"band"}:u==="radial"&&c==="angleAxis"?{scale:yb(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Np(),realScaleType:"point"}:s==="category"?{scale:Yp(),realScaleType:"band"}:{scale:yb(),realScaleType:"linear"};if(Iu(o)){var f="scale".concat(P0(o));return{scale:(I6[f]||Np)(),realScaleType:I6[f]?f:"point"}}return Qe(o)?{scale:o}:{scale:Np(),realScaleType:"point"}},e7=1e-4,oF=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,o=t.range(),s=Math.min(o[0],o[1])-e7,u=Math.max(o[0],o[1])+e7,c=t(n[0]),f=t(n[r-1]);(c<s||c>u||f<s||f>u)&&t.domain([n[0],n[r-1]])}},mve=function(t,n){if(!t)return null;for(var r=0,o=t.length;r<o;r++)if(t[r].item===n)return t[r].position;return null},pve=function(t,n){if(!n||n.length!==2||!Oe(n[0])||!Oe(n[1]))return t;var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),s=[t[0],t[1]];return(!Oe(t[0])||t[0]<r)&&(s[0]=r),(!Oe(t[1])||t[1]>o)&&(s[1]=o),s[0]>o&&(s[0]=o),s[1]<r&&(s[1]=r),s},hve=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var s=0,u=0,c=0;c<n;++c){var f=df(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=s,t[c][r][1]=s+f,s=t[c][r][1]):(t[c][r][0]=u,t[c][r][1]=u+f,u=t[c][r][1])}},gve=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var s=0,u=0;u<n;++u){var c=df(t[u][r][1])?t[u][r][0]:t[u][r][1];c>=0?(t[u][r][0]=s,t[u][r][1]=s+c,s=t[u][r][1]):(t[u][r][0]=0,t[u][r][1]=0)}},vve={sign:hve,expand:ice,none:Td,silhouette:oce,wiggle:sce,positive:gve},yve=function(t,n,r){var o=n.map(function(c){return c.props.dataKey}),s=vve[r],u=ace().keys(o).value(function(c,f){return+$n(c,f,0)}).order(RC).offset(s);return u(t)},bve=function(t,n,r,o,s,u){if(!t)return null;var c=u?n.reverse():n,f={},m=c.reduce(function(p,y){var b,S=(b=y.type)!==null&&b!==void 0&&b.defaultProps?pn(pn({},y.type.defaultProps),y.props):y.props,x=S.stackId,N=S.hide;if(N)return p;var T=S[r],C=p[T]||{hasStack:!1,stackGroups:{}};if(Vn(x)){var D=C.stackGroups[x]||{numericAxisId:r,cateAxisId:o,items:[]};D.items.push(y),C.hasStack=!0,C.stackGroups[x]=D}else C.stackGroups[ff("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[y]};return pn(pn({},p),{},Nd({},T,C))},f),g={};return Object.keys(m).reduce(function(p,y){var b=m[y];if(b.hasStack){var S={};b.stackGroups=Object.keys(b.stackGroups).reduce(function(x,N){var T=b.stackGroups[N];return pn(pn({},x),{},Nd({},N,{numericAxisId:r,cateAxisId:o,items:T.items,stackedData:yve(t,T.items,s)}))},S)}return pn(pn({},p),{},Nd({},y,b))},g)},sF=function(t,n){var r=n.realScaleType,o=n.type,s=n.tickCount,u=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(s&&o==="number"&&u&&(u[0]==="auto"||u[1]==="auto")){var m=t.domain();if(!m.length)return null;var g=Mge(m,s,c);return t.domain([Y0(g),al(g)]),{niceTicks:g}}if(s&&o==="number"){var p=t.domain(),y=Lge(p,s,c);return{niceTicks:y}}return null};function t7(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,s=e.index,u=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!rt(o[t.dataKey])){var c=eb(n,"value",o[t.dataKey]);if(c)return c.coordinate+r/2}return n[s]?n[s].coordinate+r/2:null}var f=$n(o,rt(u)?t.dataKey:u);return rt(f)?null:t.scale(f)}var n7=function(t){var n=t.axis,r=t.ticks,o=t.offset,s=t.bandSize,u=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+o:null;var f=$n(u,n.dataKey,n.domain[c]);return rt(f)?null:n.scale(f)-s/2+o},xve=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var o=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);return o<=0&&s>=0?0:s<0?s:o}return r[0]},wve=function(t,n){var r,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?pn(pn({},t.type.defaultProps),t.props):t.props,s=o.stackId;if(Vn(s)){var u=n[s];if(u){var c=u.items.indexOf(t);return c>=0?u.stackedData[c]:null}}return null},Nve=function(t){return t.reduce(function(n,r){return[Y0(r.concat([n[0]]).filter(Oe)),al(r.concat([n[1]]).filter(Oe))]},[1/0,-1/0])},lF=function(t,n,r){return Object.keys(t).reduce(function(o,s){var u=t[s],c=u.stackedData,f=c.reduce(function(m,g){var p=Nve(g.slice(n,r+1));return[Math.min(m[0],p[0]),Math.max(m[1],p[1])]},[1/0,-1/0]);return[Math.min(f[0],o[0]),Math.max(f[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},r7=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,a7=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,n_=function(t,n,r){if(Qe(t))return t(n,r);if(!Array.isArray(t))return n;var o=[];if(Oe(t[0]))o[0]=r?t[0]:Math.min(t[0],n[0]);else if(r7.test(t[0])){var s=+r7.exec(t[0])[1];o[0]=n[0]-s}else Qe(t[0])?o[0]=t[0](n[0]):o[0]=n[0];if(Oe(t[1]))o[1]=r?t[1]:Math.max(t[1],n[1]);else if(a7.test(t[1])){var u=+a7.exec(t[1])[1];o[1]=n[1]+u}else Qe(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},Ab=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!r||o>0)return o}if(t&&n&&n.length>=2){for(var s=rR(n,function(p){return p.coordinate}),u=1/0,c=1,f=s.length;c<f;c++){var m=s[c],g=s[c-1];u=Math.min((m.coordinate||0)-(g.coordinate||0),u)}return u===1/0?0:u}return r?void 0:0},i7=function(t,n,r){return!t||!t.length||Ld(t,ma(r,"type.defaultProps.domain"))?n:t},uF=function(t,n){var r=t.type.defaultProps?pn(pn({},t.type.defaultProps),t.props):t.props,o=r.dataKey,s=r.name,u=r.unit,c=r.formatter,f=r.tooltipType,m=r.chartType,g=r.hide;return pn(pn({},Fe(t,!1)),{},{dataKey:o,unit:u,formatter:c,name:s||o,color:_R(t),value:$n(n,o),type:f,payload:n,chartType:m,hide:g})};function rh(e){"@babel/helpers - typeof";return rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rh(e)}function o7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o7(Object(n),!0).forEach(function(r){cF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cF(e,t,n){return t=Eve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eve(e){var t=Sve(e,"string");return rh(t)=="symbol"?t:t+""}function Sve(e,t){if(rh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ave(e,t){return _ve(e)||Cve(e,t)||Tve(e,t)||Ove()}function Ove(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tve(e,t){if(e){if(typeof e=="string")return s7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s7(e,t)}}function s7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,c=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return c}}function _ve(e){if(Array.isArray(e))return e}var Ob=Math.PI/180,Dve=function(t){return t*180/Math.PI},en=function(t,n,r,o){return{x:t+Math.cos(-Ob*o)*r,y:n+Math.sin(-Ob*o)*r}},dF=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},Rve=function(t,n,r,o,s){var u=t.width,c=t.height,f=t.startAngle,m=t.endAngle,g=Rr(t.cx,u,u/2),p=Rr(t.cy,c,c/2),y=dF(u,c,r),b=Rr(t.innerRadius,y,0),S=Rr(t.outerRadius,y,y*.8),x=Object.keys(n);return x.reduce(function(N,T){var C=n[T],D=C.domain,P=C.reversed,A;if(rt(C.range))o==="angleAxis"?A=[f,m]:o==="radiusAxis"&&(A=[b,S]),P&&(A=[A[1],A[0]]);else{A=C.range;var _=A,j=Ave(_,2);f=j[0],m=j[1]}var L=iF(C,s),V=L.realScaleType,B=L.scale;B.domain(D).range(A),oF(B);var U=sF(B,Fo(Fo({},C),{},{realScaleType:V})),H=Fo(Fo(Fo({},C),U),{},{range:A,radius:S,realScaleType:V,scale:B,cx:g,cy:p,innerRadius:b,outerRadius:S,startAngle:f,endAngle:m});return Fo(Fo({},N),{},cF({},T,H))},{})},jve=function(t,n){var r=t.x,o=t.y,s=n.x,u=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(o-u,2))},Pve=function(t,n){var r=t.x,o=t.y,s=n.cx,u=n.cy,c=jve({x:r,y:o},{x:s,y:u});if(c<=0)return{radius:c};var f=(r-s)/c,m=Math.acos(f);return o>u&&(m=2*Math.PI-m),{radius:c,angle:Dve(m),angleInRadian:m}},Mve=function(t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),s=Math.floor(r/360),u=Math.min(o,s);return{startAngle:n-u*360,endAngle:r-u*360}},Lve=function(t,n){var r=n.startAngle,o=n.endAngle,s=Math.floor(r/360),u=Math.floor(o/360),c=Math.min(s,u);return t+c*360},l7=function(t,n){var r=t.x,o=t.y,s=Pve({x:r,y:o},n),u=s.radius,c=s.angle,f=n.innerRadius,m=n.outerRadius;if(u<f||u>m)return!1;if(u===0)return!0;var g=Mve(n),p=g.startAngle,y=g.endAngle,b=c,S;if(p<=y){for(;b>y;)b-=360;for(;b<p;)b+=360;S=b>=p&&b<=y}else{for(;b>p;)b-=360;for(;b<y;)b+=360;S=b>=y&&b<=p}return S?Fo(Fo({},n),{},{radius:u,angle:Lve(b,n)}):null},fF=function(t){return!R.isValidElement(t)&&!Qe(t)&&typeof t!="boolean"?t.className:""};function ah(e){"@babel/helpers - typeof";return ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ah(e)}var kve=["offset"];function Ive(e){return zve(e)||Bve(e)||Vve(e)||$ve()}function $ve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vve(e,t){if(e){if(typeof e=="string")return r_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r_(e,t)}}function Bve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zve(e){if(Array.isArray(e))return r_(e)}function r_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uve(e,t){if(e==null)return{};var n=qve(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qve(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function u7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u7(Object(n),!0).forEach(function(r){Hve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hve(e,t,n){return t=Fve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fve(e){var t=Kve(e,"string");return ah(t)=="symbol"?t:t+""}function Kve(e,t){if(ah(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ah(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ih(){return ih=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},ih.apply(this,arguments)}var Gve=function(t){var n=t.value,r=t.formatter,o=rt(t.children)?n:t.children;return Qe(r)?r(o):o},Yve=function(t,n){var r=Dr(n-t),o=Math.min(Math.abs(n-t),360);return r*o},Qve=function(t,n,r){var o=t.position,s=t.viewBox,u=t.offset,c=t.className,f=s,m=f.cx,g=f.cy,p=f.innerRadius,y=f.outerRadius,b=f.startAngle,S=f.endAngle,x=f.clockWise,N=(p+y)/2,T=Yve(b,S),C=T>=0?1:-1,D,P;o==="insideStart"?(D=b+C*u,P=x):o==="insideEnd"?(D=S-C*u,P=!x):o==="end"&&(D=S+C*u,P=x),P=T<=0?P:!P;var A=en(m,g,N,D),_=en(m,g,N,D+(P?1:-1)*359),j="M".concat(A.x,",").concat(A.y,`
|
||
A`).concat(N,",").concat(N,",0,1,").concat(P?0:1,`,
|
||
`).concat(_.x,",").concat(_.y),L=rt(t.id)?ff("recharts-radial-line-"):t.id;return F.createElement("text",ih({},r,{dominantBaseline:"central",className:nt("recharts-radial-bar-label",c)}),F.createElement("defs",null,F.createElement("path",{id:L,d:j})),F.createElement("textPath",{xlinkHref:"#".concat(L)},n))},Xve=function(t){var n=t.viewBox,r=t.offset,o=t.position,s=n,u=s.cx,c=s.cy,f=s.innerRadius,m=s.outerRadius,g=s.startAngle,p=s.endAngle,y=(g+p)/2;if(o==="outside"){var b=en(u,c,m+r,y),S=b.x,x=b.y;return{x:S,y:x,textAnchor:S>=u?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:u,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:u,y:c,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:u,y:c,textAnchor:"middle",verticalAnchor:"end"};var N=(f+m)/2,T=en(u,c,N,y),C=T.x,D=T.y;return{x:C,y:D,textAnchor:"middle",verticalAnchor:"middle"}},Wve=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,s=t.position,u=n,c=u.x,f=u.y,m=u.width,g=u.height,p=g>=0?1:-1,y=p*o,b=p>0?"end":"start",S=p>0?"start":"end",x=m>=0?1:-1,N=x*o,T=x>0?"end":"start",C=x>0?"start":"end";if(s==="top"){var D={x:c+m/2,y:f-p*o,textAnchor:"middle",verticalAnchor:b};return In(In({},D),r?{height:Math.max(f-r.y,0),width:m}:{})}if(s==="bottom"){var P={x:c+m/2,y:f+g+y,textAnchor:"middle",verticalAnchor:S};return In(In({},P),r?{height:Math.max(r.y+r.height-(f+g),0),width:m}:{})}if(s==="left"){var A={x:c-N,y:f+g/2,textAnchor:T,verticalAnchor:"middle"};return In(In({},A),r?{width:Math.max(A.x-r.x,0),height:g}:{})}if(s==="right"){var _={x:c+m+N,y:f+g/2,textAnchor:C,verticalAnchor:"middle"};return In(In({},_),r?{width:Math.max(r.x+r.width-_.x,0),height:g}:{})}var j=r?{width:m,height:g}:{};return s==="insideLeft"?In({x:c+N,y:f+g/2,textAnchor:C,verticalAnchor:"middle"},j):s==="insideRight"?In({x:c+m-N,y:f+g/2,textAnchor:T,verticalAnchor:"middle"},j):s==="insideTop"?In({x:c+m/2,y:f+y,textAnchor:"middle",verticalAnchor:S},j):s==="insideBottom"?In({x:c+m/2,y:f+g-y,textAnchor:"middle",verticalAnchor:b},j):s==="insideTopLeft"?In({x:c+N,y:f+y,textAnchor:C,verticalAnchor:S},j):s==="insideTopRight"?In({x:c+m-N,y:f+y,textAnchor:T,verticalAnchor:S},j):s==="insideBottomLeft"?In({x:c+N,y:f+g-y,textAnchor:C,verticalAnchor:b},j):s==="insideBottomRight"?In({x:c+m-N,y:f+g-y,textAnchor:T,verticalAnchor:b},j):cf(s)&&(Oe(s.x)||gu(s.x))&&(Oe(s.y)||gu(s.y))?In({x:c+Rr(s.x,m),y:f+Rr(s.y,g),textAnchor:"end",verticalAnchor:"end"},j):In({x:c+m/2,y:f+g/2,textAnchor:"middle",verticalAnchor:"middle"},j)},Zve=function(t){return"cx"in t&&Oe(t.cx)};function Xn(e){var t=e.offset,n=t===void 0?5:t,r=Uve(e,kve),o=In({offset:n},r),s=o.viewBox,u=o.position,c=o.value,f=o.children,m=o.content,g=o.className,p=g===void 0?"":g,y=o.textBreakAll;if(!s||rt(c)&&rt(f)&&!R.isValidElement(m)&&!Qe(m))return null;if(R.isValidElement(m))return R.cloneElement(m,o);var b;if(Qe(m)){if(b=R.createElement(m,o),R.isValidElement(b))return b}else b=Gve(o);var S=Zve(s),x=Fe(o,!0);if(S&&(u==="insideStart"||u==="insideEnd"||u==="end"))return Qve(o,b,x);var N=S?Xve(o):Wve(o);return F.createElement(Vu,ih({className:nt("recharts-label",p)},x,N,{breakAll:y}),b)}Xn.displayName="Label";var mF=function(t){var n=t.cx,r=t.cy,o=t.angle,s=t.startAngle,u=t.endAngle,c=t.r,f=t.radius,m=t.innerRadius,g=t.outerRadius,p=t.x,y=t.y,b=t.top,S=t.left,x=t.width,N=t.height,T=t.clockWise,C=t.labelViewBox;if(C)return C;if(Oe(x)&&Oe(N)){if(Oe(p)&&Oe(y))return{x:p,y,width:x,height:N};if(Oe(b)&&Oe(S))return{x:b,y:S,width:x,height:N}}return Oe(p)&&Oe(y)?{x:p,y,width:0,height:0}:Oe(n)&&Oe(r)?{cx:n,cy:r,startAngle:s||o||0,endAngle:u||o||0,innerRadius:m||0,outerRadius:g||f||c||0,clockWise:T}:t.viewBox?t.viewBox:{}},Jve=function(t,n){return t?t===!0?F.createElement(Xn,{key:"label-implicit",viewBox:n}):Vn(t)?F.createElement(Xn,{key:"label-implicit",viewBox:n,value:t}):R.isValidElement(t)?t.type===Xn?R.cloneElement(t,{key:"label-implicit",viewBox:n}):F.createElement(Xn,{key:"label-implicit",content:t,viewBox:n}):Qe(t)?F.createElement(Xn,{key:"label-implicit",content:t,viewBox:n}):cf(t)?F.createElement(Xn,ih({viewBox:n},t,{key:"label-implicit"})):null:null},eye=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var o=t.children,s=mF(t),u=Ia(o,Xn).map(function(f,m){return R.cloneElement(f,{viewBox:n||s,key:"label-".concat(m)})});if(!r)return u;var c=Jve(t.label,n||s);return[c].concat(Ive(u))};Xn.parseViewBox=mF;Xn.renderCallByParent=eye;var eT,c7;function tye(){if(c7)return eT;c7=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return eT=e,eT}var nye=tye();const rye=It(nye);function oh(e){"@babel/helpers - typeof";return oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oh(e)}var aye=["valueAccessor"],iye=["data","dataKey","clockWise","id","textBreakAll"];function oye(e){return cye(e)||uye(e)||lye(e)||sye()}function sye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lye(e,t){if(e){if(typeof e=="string")return a_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a_(e,t)}}function uye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cye(e){if(Array.isArray(e))return a_(e)}function a_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tb(){return Tb=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},Tb.apply(this,arguments)}function d7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function f7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d7(Object(n),!0).forEach(function(r){dye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dye(e,t,n){return t=fye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fye(e){var t=mye(e,"string");return oh(t)=="symbol"?t:t+""}function mye(e,t){if(oh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m7(e,t){if(e==null)return{};var n=pye(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var hye=function(t){return Array.isArray(t.value)?rye(t.value):t.value};function Zo(e){var t=e.valueAccessor,n=t===void 0?hye:t,r=m7(e,aye),o=r.data,s=r.dataKey,u=r.clockWise,c=r.id,f=r.textBreakAll,m=m7(r,iye);return!o||!o.length?null:F.createElement(Nt,{className:"recharts-label-list"},o.map(function(g,p){var y=rt(s)?n(g,p):$n(g&&g.payload,s),b=rt(c)?{}:{id:"".concat(c,"-").concat(p)};return F.createElement(Xn,Tb({},Fe(g,!0),m,b,{parentViewBox:g.parentViewBox,value:y,textBreakAll:f,viewBox:Xn.parseViewBox(rt(u)?g:f7(f7({},g),{},{clockWise:u})),key:"label-".concat(p),index:p}))}))}Zo.displayName="LabelList";function gye(e,t){return e?e===!0?F.createElement(Zo,{key:"labelList-implicit",data:t}):F.isValidElement(e)||Qe(e)?F.createElement(Zo,{key:"labelList-implicit",data:t,content:e}):cf(e)?F.createElement(Zo,Tb({data:t},e,{key:"labelList-implicit"})):null:null}function vye(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=Ia(r,Zo).map(function(u,c){return R.cloneElement(u,{data:t,key:"labelList-".concat(c)})});if(!n)return o;var s=gye(e.label,t);return[s].concat(oye(o))}Zo.renderCallByParent=vye;function sh(e){"@babel/helpers - typeof";return sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sh(e)}function i_(){return i_=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},i_.apply(this,arguments)}function p7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function h7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p7(Object(n),!0).forEach(function(r){yye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yye(e,t,n){return t=bye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bye(e){var t=xye(e,"string");return sh(t)=="symbol"?t:t+""}function xye(e,t){if(sh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wye=function(t,n){var r=Dr(n-t),o=Math.min(Math.abs(n-t),359.999);return r*o},Ty=function(t){var n=t.cx,r=t.cy,o=t.radius,s=t.angle,u=t.sign,c=t.isExternal,f=t.cornerRadius,m=t.cornerIsExternal,g=f*(c?1:-1)+o,p=Math.asin(f/g)/Ob,y=m?s:s+u*p,b=en(n,r,g,y),S=en(n,r,o,y),x=m?s-u*p:s,N=en(n,r,g*Math.cos(p*Ob),x);return{center:b,circleTangency:S,lineTangency:N,theta:p}},pF=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,s=t.outerRadius,u=t.startAngle,c=t.endAngle,f=wye(u,c),m=u+f,g=en(n,r,s,u),p=en(n,r,s,m),y="M ".concat(g.x,",").concat(g.y,`
|
||
A `).concat(s,",").concat(s,`,0,
|
||
`).concat(+(Math.abs(f)>180),",").concat(+(u>m),`,
|
||
`).concat(p.x,",").concat(p.y,`
|
||
`);if(o>0){var b=en(n,r,o,u),S=en(n,r,o,m);y+="L ".concat(S.x,",").concat(S.y,`
|
||
A `).concat(o,",").concat(o,`,0,
|
||
`).concat(+(Math.abs(f)>180),",").concat(+(u<=m),`,
|
||
`).concat(b.x,",").concat(b.y," Z")}else y+="L ".concat(n,",").concat(r," Z");return y},Nye=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,s=t.outerRadius,u=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,m=t.startAngle,g=t.endAngle,p=Dr(g-m),y=Ty({cx:n,cy:r,radius:s,angle:m,sign:p,cornerRadius:u,cornerIsExternal:f}),b=y.circleTangency,S=y.lineTangency,x=y.theta,N=Ty({cx:n,cy:r,radius:s,angle:g,sign:-p,cornerRadius:u,cornerIsExternal:f}),T=N.circleTangency,C=N.lineTangency,D=N.theta,P=f?Math.abs(m-g):Math.abs(m-g)-x-D;if(P<0)return c?"M ".concat(S.x,",").concat(S.y,`
|
||
a`).concat(u,",").concat(u,",0,0,1,").concat(u*2,`,0
|
||
a`).concat(u,",").concat(u,",0,0,1,").concat(-u*2,`,0
|
||
`):pF({cx:n,cy:r,innerRadius:o,outerRadius:s,startAngle:m,endAngle:g});var A="M ".concat(S.x,",").concat(S.y,`
|
||
A`).concat(u,",").concat(u,",0,0,").concat(+(p<0),",").concat(b.x,",").concat(b.y,`
|
||
A`).concat(s,",").concat(s,",0,").concat(+(P>180),",").concat(+(p<0),",").concat(T.x,",").concat(T.y,`
|
||
A`).concat(u,",").concat(u,",0,0,").concat(+(p<0),",").concat(C.x,",").concat(C.y,`
|
||
`);if(o>0){var _=Ty({cx:n,cy:r,radius:o,angle:m,sign:p,isExternal:!0,cornerRadius:u,cornerIsExternal:f}),j=_.circleTangency,L=_.lineTangency,V=_.theta,B=Ty({cx:n,cy:r,radius:o,angle:g,sign:-p,isExternal:!0,cornerRadius:u,cornerIsExternal:f}),U=B.circleTangency,H=B.lineTangency,G=B.theta,Y=f?Math.abs(m-g):Math.abs(m-g)-V-G;if(Y<0&&u===0)return"".concat(A,"L").concat(n,",").concat(r,"Z");A+="L".concat(H.x,",").concat(H.y,`
|
||
A`).concat(u,",").concat(u,",0,0,").concat(+(p<0),",").concat(U.x,",").concat(U.y,`
|
||
A`).concat(o,",").concat(o,",0,").concat(+(Y>180),",").concat(+(p>0),",").concat(j.x,",").concat(j.y,`
|
||
A`).concat(u,",").concat(u,",0,0,").concat(+(p<0),",").concat(L.x,",").concat(L.y,"Z")}else A+="L".concat(n,",").concat(r,"Z");return A},Eye={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},hF=function(t){var n=h7(h7({},Eye),t),r=n.cx,o=n.cy,s=n.innerRadius,u=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,m=n.cornerIsExternal,g=n.startAngle,p=n.endAngle,y=n.className;if(u<s||g===p)return null;var b=nt("recharts-sector",y),S=u-s,x=Rr(c,S,0,!0),N;return x>0&&Math.abs(g-p)<360?N=Nye({cx:r,cy:o,innerRadius:s,outerRadius:u,cornerRadius:Math.min(x,S/2),forceCornerRadius:f,cornerIsExternal:m,startAngle:g,endAngle:p}):N=pF({cx:r,cy:o,innerRadius:s,outerRadius:u,startAngle:g,endAngle:p}),F.createElement("path",i_({},Fe(n,!0),{className:b,d:N,role:"img"}))};function lh(e){"@babel/helpers - typeof";return lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lh(e)}function o_(){return o_=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},o_.apply(this,arguments)}function g7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function v7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g7(Object(n),!0).forEach(function(r){Sye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sye(e,t,n){return t=Aye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aye(e){var t=Oye(e,"string");return lh(t)=="symbol"?t:t+""}function Oye(e,t){if(lh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var y7={curveBasisClosed:Gue,curveBasisOpen:Yue,curveBasis:Kue,curveBumpX:jue,curveBumpY:Pue,curveLinearClosed:Que,curveLinear:L0,curveMonotoneX:Xue,curveMonotoneY:Wue,curveNatural:Zue,curveStep:Jue,curveStepAfter:tce,curveStepBefore:ece},Cy=function(t){return t.x===+t.x&&t.y===+t.y},ip=function(t){return t.x},op=function(t){return t.y},Tye=function(t,n){if(Qe(t))return t;var r="curve".concat(P0(t));return(r==="curveMonotone"||r==="curveBump")&&n?y7["".concat(r).concat(n==="vertical"?"Y":"X")]:y7[r]||L0},Cye=function(t){var n=t.type,r=n===void 0?"linear":n,o=t.points,s=o===void 0?[]:o,u=t.baseLine,c=t.layout,f=t.connectNulls,m=f===void 0?!1:f,g=Tye(r,c),p=m?s.filter(function(x){return Cy(x)}):s,y;if(Array.isArray(u)){var b=m?u.filter(function(x){return Cy(x)}):u,S=p.map(function(x,N){return v7(v7({},x),{},{base:b[N]})});return c==="vertical"?y=by().y(op).x1(ip).x0(function(x){return x.base.x}):y=by().x(ip).y1(op).y0(function(x){return x.base.y}),y.defined(Cy).curve(g),y(S)}return c==="vertical"&&Oe(u)?y=by().y(op).x1(ip).x0(u):Oe(u)?y=by().x(ip).y1(op).y0(u):y=mq().x(ip).y(op),y.defined(Cy).curve(g),y(p)},Ed=function(t){var n=t.className,r=t.points,o=t.path,s=t.pathRef;if((!r||!r.length)&&!o)return null;var u=r&&r.length?Cye(t):o;return R.createElement("path",o_({},Fe(t,!1),tb(t),{className:nt("recharts-curve",n),d:u,ref:s}))},tT={exports:{}},nT={exports:{}},Mt={},b7;function _ye(){if(b7)return Mt;b7=1;/** @license React v16.13.1
|
||
* react-is.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.
|
||
*/return(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,N=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function D(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===m||ie===s||ie===o||ie===p||ie===y||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===b||ie.$$typeof===u||ie.$$typeof===c||ie.$$typeof===g||ie.$$typeof===N||ie.$$typeof===T||ie.$$typeof===C||ie.$$typeof===x)}function P(ie){if(typeof ie=="object"&&ie!==null){var ze=ie.$$typeof;switch(ze){case t:var we=ie.type;switch(we){case f:case m:case r:case s:case o:case p:return we;default:var lt=we&&we.$$typeof;switch(lt){case c:case g:case S:case b:case u:return lt;default:return ze}}case n:return ze}}}var A=f,_=m,j=c,L=u,V=t,B=g,U=r,H=S,G=b,Y=n,J=s,q=o,z=p,K=!1;function te(ie){return K||(K=!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.")),ne(ie)||P(ie)===f}function ne(ie){return P(ie)===m}function k(ie){return P(ie)===c}function Q(ie){return P(ie)===u}function W(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ae(ie){return P(ie)===g}function ge(ie){return P(ie)===r}function Ne(ie){return P(ie)===S}function ce(ie){return P(ie)===b}function xe(ie){return P(ie)===n}function me(ie){return P(ie)===s}function be(ie){return P(ie)===o}function de(ie){return P(ie)===p}Mt.AsyncMode=A,Mt.ConcurrentMode=_,Mt.ContextConsumer=j,Mt.ContextProvider=L,Mt.Element=V,Mt.ForwardRef=B,Mt.Fragment=U,Mt.Lazy=H,Mt.Memo=G,Mt.Portal=Y,Mt.Profiler=J,Mt.StrictMode=q,Mt.Suspense=z,Mt.isAsyncMode=te,Mt.isConcurrentMode=ne,Mt.isContextConsumer=k,Mt.isContextProvider=Q,Mt.isElement=W,Mt.isForwardRef=ae,Mt.isFragment=ge,Mt.isLazy=Ne,Mt.isMemo=ce,Mt.isPortal=xe,Mt.isProfiler=me,Mt.isStrictMode=be,Mt.isSuspense=de,Mt.isValidElementType=D,Mt.typeOf=P})(),Mt}var x7;function gF(){return x7||(x7=1,nT.exports=_ye()),nT.exports}/*
|
||
object-assign
|
||
(c) Sindre Sorhus
|
||
@license MIT
|
||
*/var rT,w7;function Dye(){if(w7)return rT;w7=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(u).map(function(g){return u[g]});if(f.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(g){m[g]=g}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return rT=o()?Object.assign:function(s,u){for(var c,f=r(s),m,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)t.call(c,p)&&(f[p]=c[p]);if(e){m=e(c);for(var y=0;y<m.length;y++)n.call(c,m[y])&&(f[m[y]]=c[m[y]])}}return f},rT}var aT,N7;function vF(){if(N7)return aT;N7=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return aT=e,aT}var iT,E7;function yF(){return E7||(E7=1,iT=Function.call.bind(Object.prototype.hasOwnProperty)),iT}var oT,S7;function Rye(){if(S7)return oT;S7=1;var e=function(){};{var t=vF(),n={},r=yF();e=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function o(s,u,c,f,m){for(var g in s)if(r(s,g)){var p;try{if(typeof s[g]!="function"){var y=Error((f||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}p=s[g](u,g,f,c,null,t)}catch(S){p=S}if(p&&!(p instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var b=m?m():"";e("Failed "+c+" type: "+p.message+(b??""))}}}return o.resetWarningCache=function(){n={}},oT=o,oT}var sT,A7;function jye(){if(A7)return sT;A7=1;var e=gF(),t=Dye(),n=vF(),r=yF(),o=Rye(),s=function(){};s=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}};function u(){return null}return sT=function(c,f){var m=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(ne){var k=ne&&(m&&ne[m]||ne[g]);if(typeof k=="function")return k}var y="<<anonymous>>",b={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:C(),arrayOf:D,element:P(),elementType:A(),instanceOf:_,node:B(),objectOf:L,oneOf:j,oneOfType:V,shape:H,exact:G};function S(ne,k){return ne===k?ne!==0||1/ne===1/k:ne!==ne&&k!==k}function x(ne,k){this.message=ne,this.data=k&&typeof k=="object"?k:{},this.stack=""}x.prototype=Error.prototype;function N(ne){var k={},Q=0;function W(ge,Ne,ce,xe,me,be,de){if(xe=xe||y,be=be||ce,de!==n){if(f){var ie=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 ie.name="Invariant Violation",ie}else if(typeof console<"u"){var ze=xe+":"+ce;!k[ze]&&Q<3&&(s("You are manually calling a React.PropTypes validation function for the `"+be+"` prop on `"+xe+"`. 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."),k[ze]=!0,Q++)}}return Ne[ce]==null?ge?Ne[ce]===null?new x("The "+me+" `"+be+"` is marked as required "+("in `"+xe+"`, but its value is `null`.")):new x("The "+me+" `"+be+"` is marked as required in "+("`"+xe+"`, but its value is `undefined`.")):null:ne(Ne,ce,xe,me,be)}var ae=W.bind(null,!1);return ae.isRequired=W.bind(null,!0),ae}function T(ne){function k(Q,W,ae,ge,Ne,ce){var xe=Q[W],me=q(xe);if(me!==ne){var be=z(xe);return new x("Invalid "+ge+" `"+Ne+"` of type "+("`"+be+"` supplied to `"+ae+"`, expected ")+("`"+ne+"`."),{expectedType:ne})}return null}return N(k)}function C(){return N(u)}function D(ne){function k(Q,W,ae,ge,Ne){if(typeof ne!="function")return new x("Property `"+Ne+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var ce=Q[W];if(!Array.isArray(ce)){var xe=q(ce);return new x("Invalid "+ge+" `"+Ne+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected an array."))}for(var me=0;me<ce.length;me++){var be=ne(ce,me,ae,ge,Ne+"["+me+"]",n);if(be instanceof Error)return be}return null}return N(k)}function P(){function ne(k,Q,W,ae,ge){var Ne=k[Q];if(!c(Ne)){var ce=q(Ne);return new x("Invalid "+ae+" `"+ge+"` of type "+("`"+ce+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return N(ne)}function A(){function ne(k,Q,W,ae,ge){var Ne=k[Q];if(!e.isValidElementType(Ne)){var ce=q(Ne);return new x("Invalid "+ae+" `"+ge+"` of type "+("`"+ce+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return N(ne)}function _(ne){function k(Q,W,ae,ge,Ne){if(!(Q[W]instanceof ne)){var ce=ne.name||y,xe=te(Q[W]);return new x("Invalid "+ge+" `"+Ne+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected ")+("instance of `"+ce+"`."))}return null}return N(k)}function j(ne){if(!Array.isArray(ne))return arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array."),u;function k(Q,W,ae,ge,Ne){for(var ce=Q[W],xe=0;xe<ne.length;xe++)if(S(ce,ne[xe]))return null;var me=JSON.stringify(ne,function(de,ie){var ze=z(ie);return ze==="symbol"?String(ie):ie});return new x("Invalid "+ge+" `"+Ne+"` of value `"+String(ce)+"` "+("supplied to `"+ae+"`, expected one of "+me+"."))}return N(k)}function L(ne){function k(Q,W,ae,ge,Ne){if(typeof ne!="function")return new x("Property `"+Ne+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var ce=Q[W],xe=q(ce);if(xe!=="object")return new x("Invalid "+ge+" `"+Ne+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected an object."));for(var me in ce)if(r(ce,me)){var be=ne(ce,me,ae,ge,Ne+"."+me,n);if(be instanceof Error)return be}return null}return N(k)}function V(ne){if(!Array.isArray(ne))return s("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var k=0;k<ne.length;k++){var Q=ne[k];if(typeof Q!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(Q)+" at index "+k+"."),u}function W(ae,ge,Ne,ce,xe){for(var me=[],be=0;be<ne.length;be++){var de=ne[be],ie=de(ae,ge,Ne,ce,xe,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&me.push(ie.data.expectedType)}var ze=me.length>0?", expected one of type ["+me.join(", ")+"]":"";return new x("Invalid "+ce+" `"+xe+"` supplied to "+("`"+Ne+"`"+ze+"."))}return N(W)}function B(){function ne(k,Q,W,ae,ge){return Y(k[Q])?null:new x("Invalid "+ae+" `"+ge+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return N(ne)}function U(ne,k,Q,W,ae){return new x((ne||"React class")+": "+k+" type `"+Q+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function H(ne){function k(Q,W,ae,ge,Ne){var ce=Q[W],xe=q(ce);if(xe!=="object")return new x("Invalid "+ge+" `"+Ne+"` of type `"+xe+"` "+("supplied to `"+ae+"`, expected `object`."));for(var me in ne){var be=ne[me];if(typeof be!="function")return U(ae,ge,Ne,me,z(be));var de=be(ce,me,ae,ge,Ne+"."+me,n);if(de)return de}return null}return N(k)}function G(ne){function k(Q,W,ae,ge,Ne){var ce=Q[W],xe=q(ce);if(xe!=="object")return new x("Invalid "+ge+" `"+Ne+"` of type `"+xe+"` "+("supplied to `"+ae+"`, expected `object`."));var me=t({},Q[W],ne);for(var be in me){var de=ne[be];if(r(ne,be)&&typeof de!="function")return U(ae,ge,Ne,be,z(de));if(!de)return new x("Invalid "+ge+" `"+Ne+"` key `"+be+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(Q[W],null," ")+`
|
||
Valid keys: `+JSON.stringify(Object.keys(ne),null," "));var ie=de(ce,be,ae,ge,Ne+"."+be,n);if(ie)return ie}return null}return N(k)}function Y(ne){switch(typeof ne){case"number":case"string":case"undefined":return!0;case"boolean":return!ne;case"object":if(Array.isArray(ne))return ne.every(Y);if(ne===null||c(ne))return!0;var k=p(ne);if(k){var Q=k.call(ne),W;if(k!==ne.entries){for(;!(W=Q.next()).done;)if(!Y(W.value))return!1}else for(;!(W=Q.next()).done;){var ae=W.value;if(ae&&!Y(ae[1]))return!1}}else return!1;return!0;default:return!1}}function J(ne,k){return ne==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function q(ne){var k=typeof ne;return Array.isArray(ne)?"array":ne instanceof RegExp?"object":J(k,ne)?"symbol":k}function z(ne){if(typeof ne>"u"||ne===null)return""+ne;var k=q(ne);if(k==="object"){if(ne instanceof Date)return"date";if(ne instanceof RegExp)return"regexp"}return k}function K(ne){var k=z(ne);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function te(ne){return!ne.constructor||!ne.constructor.name?y:ne.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},sT}var O7;function Pye(){if(O7)return tT.exports;O7=1;{var e=gF(),t=!0;tT.exports=jye()(e.isElement,t)}return tT.exports}var Mye=Pye();const Lt=It(Mye);var Lye=Object.getOwnPropertyNames,kye=Object.getOwnPropertySymbols,Iye=Object.prototype.hasOwnProperty;function T7(e,t){return function(r,o,s){return e(r,o,s)&&t(r,o,s)}}function _y(e){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,o);var s=o.cache,u=s.get(n),c=s.get(r);if(u&&c)return u===r&&c===n;s.set(n,r),s.set(r,n);var f=e(n,r,o);return s.delete(n),s.delete(r),f}}function $ye(e){return e?.[Symbol.toStringTag]}function C7(e){return Lye(e).concat(kye(e))}var Vye=Object.hasOwn||(function(e,t){return Iye.call(e,t)});function ec(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var Bye="__v",zye="__o",Uye="_owner",_7=Object.getOwnPropertyDescriptor,D7=Object.keys;function qye(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Hye(e,t){return ec(e.getTime(),t.getTime())}function Fye(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Kye(e,t){return e===t}function R7(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o=new Array(r),s=e.entries(),u,c,f=0;(u=s.next())&&!u.done;){for(var m=t.entries(),g=!1,p=0;(c=m.next())&&!c.done;){if(o[p]){p++;continue}var y=u.value,b=c.value;if(n.equals(y[0],b[0],f,p,e,t,n)&&n.equals(y[1],b[1],y[0],b[0],e,t,n)){g=o[p]=!0;break}p++}if(!g)return!1;f++}return!0}var Gye=ec;function Yye(e,t,n){var r=D7(e),o=r.length;if(D7(t).length!==o)return!1;for(;o-- >0;)if(!bF(e,t,n,r[o]))return!1;return!0}function sp(e,t,n){var r=C7(e),o=r.length;if(C7(t).length!==o)return!1;for(var s,u,c;o-- >0;)if(s=r[o],!bF(e,t,n,s)||(u=_7(e,s),c=_7(t,s),(u||c)&&(!u||!c||u.configurable!==c.configurable||u.enumerable!==c.enumerable||u.writable!==c.writable)))return!1;return!0}function Qye(e,t){return ec(e.valueOf(),t.valueOf())}function Xye(e,t){return e.source===t.source&&e.flags===t.flags}function j7(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o=new Array(r),s=e.values(),u,c;(u=s.next())&&!u.done;){for(var f=t.values(),m=!1,g=0;(c=f.next())&&!c.done;){if(!o[g]&&n.equals(u.value,c.value,u.value,c.value,e,t,n)){m=o[g]=!0;break}g++}if(!m)return!1}return!0}function Wye(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Zye(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function bF(e,t,n,r){return(r===Uye||r===zye||r===Bye)&&(e.$$typeof||t.$$typeof)?!0:Vye(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Jye="[object Arguments]",ebe="[object Boolean]",tbe="[object Date]",nbe="[object Error]",rbe="[object Map]",abe="[object Number]",ibe="[object Object]",obe="[object RegExp]",sbe="[object Set]",lbe="[object String]",ube="[object URL]",cbe=Array.isArray,P7=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,M7=Object.assign,dbe=Object.prototype.toString.call.bind(Object.prototype.toString);function fbe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,o=e.areFunctionsEqual,s=e.areMapsEqual,u=e.areNumbersEqual,c=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,m=e.areRegExpsEqual,g=e.areSetsEqual,p=e.areTypedArraysEqual,y=e.areUrlsEqual,b=e.unknownTagComparators;return function(x,N,T){if(x===N)return!0;if(x==null||N==null)return!1;var C=typeof x;if(C!==typeof N)return!1;if(C!=="object")return C==="number"?u(x,N,T):C==="function"?o(x,N,T):!1;var D=x.constructor;if(D!==N.constructor)return!1;if(D===Object)return c(x,N,T);if(cbe(x))return t(x,N,T);if(P7!=null&&P7(x))return p(x,N,T);if(D===Date)return n(x,N,T);if(D===RegExp)return m(x,N,T);if(D===Map)return s(x,N,T);if(D===Set)return g(x,N,T);var P=dbe(x);if(P===tbe)return n(x,N,T);if(P===obe)return m(x,N,T);if(P===rbe)return s(x,N,T);if(P===sbe)return g(x,N,T);if(P===ibe)return typeof x.then!="function"&&typeof N.then!="function"&&c(x,N,T);if(P===ube)return y(x,N,T);if(P===nbe)return r(x,N,T);if(P===Jye)return c(x,N,T);if(P===ebe||P===abe||P===lbe)return f(x,N,T);if(b){var A=b[P];if(!A){var _=$ye(x);_&&(A=b[_])}if(A)return A(x,N,T)}return!1}}function mbe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?sp:qye,areDatesEqual:Hye,areErrorsEqual:Fye,areFunctionsEqual:Kye,areMapsEqual:r?T7(R7,sp):R7,areNumbersEqual:Gye,areObjectsEqual:r?sp:Yye,arePrimitiveWrappersEqual:Qye,areRegExpsEqual:Xye,areSetsEqual:r?T7(j7,sp):j7,areTypedArraysEqual:r?sp:Wye,areUrlsEqual:Zye,unknownTagComparators:void 0};if(n&&(o=M7({},o,n(o))),t){var s=_y(o.areArraysEqual),u=_y(o.areMapsEqual),c=_y(o.areObjectsEqual),f=_y(o.areSetsEqual);o=M7({},o,{areArraysEqual:s,areMapsEqual:u,areObjectsEqual:c,areSetsEqual:f})}return o}function pbe(e){return function(t,n,r,o,s,u,c){return e(t,n,c)}}function hbe(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,s=e.strict;if(r)return function(f,m){var g=r(),p=g.cache,y=p===void 0?t?new WeakMap:void 0:p,b=g.meta;return n(f,m,{cache:y,equals:o,meta:b,strict:s})};if(t)return function(f,m){return n(f,m,{cache:new WeakMap,equals:o,meta:void 0,strict:s})};var u={cache:void 0,equals:o,meta:void 0,strict:s};return function(f,m){return n(f,m,u)}}var gbe=gl();gl({strict:!0});gl({circular:!0});gl({circular:!0,strict:!0});gl({createInternalComparator:function(){return ec}});gl({strict:!0,createInternalComparator:function(){return ec}});gl({circular:!0,createInternalComparator:function(){return ec}});gl({circular:!0,createInternalComparator:function(){return ec},strict:!0});function gl(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,o=e.createState,s=e.strict,u=s===void 0?!1:s,c=mbe(e),f=fbe(c),m=r?r(f):pbe(f);return hbe({circular:n,comparator:f,createState:o,equals:m,strict:u})}function vbe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function L7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function o(s){n<0&&(n=s),s-n>t?(e(s),n=-1):vbe(o)};requestAnimationFrame(r)}function s_(e){"@babel/helpers - typeof";return s_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s_(e)}function ybe(e){return Nbe(e)||wbe(e)||xbe(e)||bbe()}function bbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xbe(e,t){if(e){if(typeof e=="string")return k7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k7(e,t)}}function k7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nbe(e){if(Array.isArray(e))return e}function Ebe(){var e={},t=function(){return null},n=!1,r=function o(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var u=s,c=ybe(u),f=c[0],m=c.slice(1);if(typeof f=="number"){L7(o.bind(null,m),f);return}o(f),L7(o.bind(null,m));return}s_(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){n=!0},start:function(s){n=!1,r(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function uh(e){"@babel/helpers - typeof";return uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uh(e)}function I7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I7(Object(n),!0).forEach(function(r){xF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xF(e,t,n){return t=Sbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sbe(e){var t=Abe(e,"string");return uh(t)==="symbol"?t:String(t)}function Abe(e,t){if(uh(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uh(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Obe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,o){return r.filter(function(s){return o.includes(s)})})},Tbe=function(t){return t},Cbe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Sp=function(t,n){return Object.keys(n).reduce(function(r,o){return $7($7({},r),{},xF({},o,t(o,n[o])))},{})},V7=function(t,n,r){return t.map(function(o){return"".concat(Cbe(o)," ").concat(n,"ms ").concat(r)}).join(",")},Cb=function(t,n,r,o,s,u,c,f){if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[r,o,s,u,c,f],g=0;console.warn(n.replace(/%s/g,function(){return m[g++]}))}};function _be(e,t){return jbe(e)||Rbe(e,t)||wF(e,t)||Dbe()}function Dbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rbe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,c=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return c}}function jbe(e){if(Array.isArray(e))return e}function Pbe(e){return kbe(e)||Lbe(e)||wF(e)||Mbe()}function Mbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wF(e,t){if(e){if(typeof e=="string")return l_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l_(e,t)}}function Lbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kbe(e){if(Array.isArray(e))return l_(e)}function l_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _b=1e-4,NF=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},EF=function(t,n){return t.map(function(r,o){return r*Math.pow(n,o)}).reduce(function(r,o){return r+o})},B7=function(t,n){return function(r){var o=NF(t,n);return EF(o,r)}},Ibe=function(t,n){return function(r){var o=NF(t,n),s=[].concat(Pbe(o.map(function(u,c){return u*c}).slice(1)),[0]);return EF(s,r)}},z7=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],s=n[1],u=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":o=0,s=0,u=1,c=1;break;case"ease":o=.25,s=.1,u=.25,c=1;break;case"ease-in":o=.42,s=0,u=1,c=1;break;case"ease-out":o=.42,s=0,u=.58,c=1;break;case"ease-in-out":o=0,s=0,u=.58,c=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var m=f[1].split(")")[0].split(",").map(function(N){return parseFloat(N)}),g=_be(m,4);o=g[0],s=g[1],u=g[2],c=g[3]}else Cb(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",n)}}Cb([o,u,s,c].every(function(N){return typeof N=="number"&&N>=0&&N<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var p=B7(o,u),y=B7(s,c),b=Ibe(o,u),S=function(T){return T>1?1:T<0?0:T},x=function(T){for(var C=T>1?1:T,D=C,P=0;P<8;++P){var A=p(D)-C,_=b(D);if(Math.abs(A-C)<_b||_<_b)return y(D);D=S(D-A/_)}return y(D)};return x.isStepper=!1,x},$be=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,o=t.damping,s=o===void 0?8:o,u=t.dt,c=u===void 0?17:u,f=function(g,p,y){var b=-(g-p)*r,S=y*s,x=y+(b-S)*c/1e3,N=y*c/1e3+g;return Math.abs(N-p)<_b&&Math.abs(x)<_b?[p,0]:[N,x]};return f.isStepper=!0,f.dt=c,f},Vbe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0];if(typeof o=="string")switch(o){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return z7(o);case"spring":return $be();default:if(o.split("(")[0]==="cubic-bezier")return z7(o);Cb(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",n)}return typeof o=="function"?o:(Cb(!1,"[configEasing]: first argument type should be function or string, instead received %s",n),null)};function ch(e){"@babel/helpers - typeof";return ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ch(e)}function U7(e){return Ube(e)||zbe(e)||SF(e)||Bbe()}function Bbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ube(e){if(Array.isArray(e))return c_(e)}function q7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q7(Object(n),!0).forEach(function(r){u_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u_(e,t,n){return t=qbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qbe(e){var t=Hbe(e,"string");return ch(t)==="symbol"?t:String(t)}function Hbe(e,t){if(ch(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ch(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fbe(e,t){return Ybe(e)||Gbe(e,t)||SF(e,t)||Kbe()}function Kbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SF(e,t){if(e){if(typeof e=="string")return c_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c_(e,t)}}function c_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gbe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,c=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return c}}function Ybe(e){if(Array.isArray(e))return e}var Db=function(t,n,r){return t+(n-t)*r},d_=function(t){var n=t.from,r=t.to;return n!==r},Qbe=function e(t,n,r){var o=Sp(function(s,u){if(d_(u)){var c=t(u.from,u.to,u.velocity),f=Fbe(c,2),m=f[0],g=f[1];return rr(rr({},u),{},{from:m,velocity:g})}return u},n);return r<1?Sp(function(s,u){return d_(u)?rr(rr({},u),{},{velocity:Db(u.velocity,o[s].velocity,r),from:Db(u.from,o[s].from,r)}):u},n):e(t,o,r-1)};const Xbe=(function(e,t,n,r,o){var s=Obe(e,t),u=s.reduce(function(N,T){return rr(rr({},N),{},u_({},T,[e[T],t[T]]))},{}),c=s.reduce(function(N,T){return rr(rr({},N),{},u_({},T,{from:e[T],velocity:0,to:t[T]}))},{}),f=-1,m,g,p=function(){return null},y=function(){return Sp(function(T,C){return C.from},c)},b=function(){return!Object.values(c).filter(d_).length},S=function(T){m||(m=T);var C=T-m,D=C/n.dt;c=Qbe(n,c,D),o(rr(rr(rr({},e),t),y())),m=T,b()||(f=requestAnimationFrame(p))},x=function(T){g||(g=T);var C=(T-g)/r,D=Sp(function(A,_){return Db.apply(void 0,U7(_).concat([n(C)]))},u);if(o(rr(rr(rr({},e),t),D)),C<1)f=requestAnimationFrame(p);else{var P=Sp(function(A,_){return Db.apply(void 0,U7(_).concat([n(1)]))},u);o(rr(rr(rr({},e),t),P))}};return p=n.isStepper?S:x,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}});function Id(e){"@babel/helpers - typeof";return Id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Id(e)}var Wbe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Zbe(e,t){if(e==null)return{};var n=Jbe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jbe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function lT(e){return r0e(e)||n0e(e)||t0e(e)||e0e()}function e0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t0e(e,t){if(e){if(typeof e=="string")return f_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f_(e,t)}}function n0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function r0e(e){if(Array.isArray(e))return f_(e)}function f_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Za(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H7(Object(n),!0).forEach(function(r){pp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pp(e,t,n){return t=AF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i0e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AF(r.key),r)}}function o0e(e,t,n){return t&&i0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AF(e){var t=s0e(e,"string");return Id(t)==="symbol"?t:String(t)}function s0e(e,t){if(Id(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Id(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m_(e,t)}function m_(e,t){return m_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},m_(e,t)}function u0e(e){var t=c0e();return function(){var r=Rb(e),o;if(t){var s=Rb(this).constructor;o=Reflect.construct(r,arguments,s)}else o=r.apply(this,arguments);return p_(this,o)}}function p_(e,t){if(t&&(Id(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h_(e)}function h_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c0e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rb(e){return Rb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rb(e)}var io=(function(e){l0e(n,e);var t=u0e(n);function n(r,o){var s;a0e(this,n),s=t.call(this,r,o);var u=s.props,c=u.isActive,f=u.attributeName,m=u.from,g=u.to,p=u.steps,y=u.children,b=u.duration;if(s.handleStyleChange=s.handleStyleChange.bind(h_(s)),s.changeStyle=s.changeStyle.bind(h_(s)),!c||b<=0)return s.state={style:{}},typeof y=="function"&&(s.state={style:g}),p_(s);if(p&&p.length)s.state={style:p[0].style};else if(m){if(typeof y=="function")return s.state={style:m},p_(s);s.state={style:f?pp({},f,m):m}}else s.state={style:{}};return s}return o0e(n,[{key:"componentDidMount",value:function(){var o=this.props,s=o.isActive,u=o.canBegin;this.mounted=!0,!(!s||!u)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var s=this.props,u=s.isActive,c=s.canBegin,f=s.attributeName,m=s.shouldReAnimate,g=s.to,p=s.from,y=this.state.style;if(c){if(!u){var b={style:f?pp({},f,g):g};this.state&&y&&(f&&y[f]!==g||!f&&y!==g)&&this.setState(b);return}if(!(gbe(o.to,g)&&o.canBegin&&o.isActive)){var S=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var x=S||m?p:o.to;if(this.state&&y){var N={style:f?pp({},f,x):x};(f&&y[f]!==x||!f&&y!==x)&&this.setState(N)}this.runAnimation(Za(Za({},this.props),{},{from:x,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var s=this,u=o.from,c=o.to,f=o.duration,m=o.easing,g=o.begin,p=o.onAnimationEnd,y=o.onAnimationStart,b=Xbe(u,c,Vbe(m),f,this.changeStyle),S=function(){s.stopJSAnimation=b()};this.manager.start([y,g,S,f,p])}},{key:"runStepAnimation",value:function(o){var s=this,u=o.steps,c=o.begin,f=o.onAnimationStart,m=u[0],g=m.style,p=m.duration,y=p===void 0?0:p,b=function(x,N,T){if(T===0)return x;var C=N.duration,D=N.easing,P=D===void 0?"ease":D,A=N.style,_=N.properties,j=N.onAnimationEnd,L=T>0?u[T-1]:N,V=_||Object.keys(A);if(typeof P=="function"||P==="spring")return[].concat(lT(x),[s.runJSAnimation.bind(s,{from:L.style,to:A,duration:C,easing:P}),C]);var B=V7(V,C,P),U=Za(Za(Za({},L.style),A),{},{transition:B});return[].concat(lT(x),[U,C,j]).filter(Tbe)};return this.manager.start([f].concat(lT(u.reduce(b,[g,Math.max(y,c)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=Ebe());var s=o.begin,u=o.duration,c=o.attributeName,f=o.to,m=o.easing,g=o.onAnimationStart,p=o.onAnimationEnd,y=o.steps,b=o.children,S=this.manager;if(this.unSubscribe=S.subscribe(this.handleStyleChange),typeof m=="function"||typeof b=="function"||m==="spring"){this.runJSAnimation(o);return}if(y.length>1){this.runStepAnimation(o);return}var x=c?pp({},c,f):f,N=V7(Object.keys(x),u,m);S.start([g,s,Za(Za({},x),{},{transition:N}),u,p])}},{key:"render",value:function(){var o=this.props,s=o.children;o.begin;var u=o.duration;o.attributeName,o.easing;var c=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var f=Zbe(o,Wbe),m=R.Children.count(s),g=this.state.style;if(typeof s=="function")return s(g);if(!c||m===0||u<=0)return s;var p=function(b){var S=b.props,x=S.style,N=x===void 0?{}:x,T=S.className,C=R.cloneElement(b,Za(Za({},f),{},{style:Za(Za({},N),g),className:T}));return C};return m===1?p(R.Children.only(s)):F.createElement("div",null,R.Children.map(s,function(y){return p(y)}))}}]),n})(R.PureComponent);io.displayName="Animate";io.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};io.propTypes={from:Lt.oneOfType([Lt.object,Lt.string]),to:Lt.oneOfType([Lt.object,Lt.string]),attributeName:Lt.string,duration:Lt.number,begin:Lt.number,easing:Lt.oneOfType([Lt.string,Lt.func]),steps:Lt.arrayOf(Lt.shape({duration:Lt.number.isRequired,style:Lt.object.isRequired,easing:Lt.oneOfType([Lt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Lt.func]),properties:Lt.arrayOf("string"),onAnimationEnd:Lt.func})),children:Lt.oneOfType([Lt.node,Lt.func]),isActive:Lt.bool,canBegin:Lt.bool,onAnimationEnd:Lt.func,shouldReAnimate:Lt.bool,onAnimationStart:Lt.func,onAnimationReStart:Lt.func};function dh(e){"@babel/helpers - typeof";return dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dh(e)}function jb(){return jb=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},jb.apply(this,arguments)}function d0e(e,t){return h0e(e)||p0e(e,t)||m0e(e,t)||f0e()}function f0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m0e(e,t){if(e){if(typeof e=="string")return F7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F7(e,t)}}function F7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,c=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return c}}function h0e(e){if(Array.isArray(e))return e}function K7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function G7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K7(Object(n),!0).forEach(function(r){g0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g0e(e,t,n){return t=v0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v0e(e){var t=y0e(e,"string");return dh(t)=="symbol"?t:t+""}function y0e(e,t){if(dh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Y7=function(t,n,r,o,s){var u=Math.min(Math.abs(r)/2,Math.abs(o)/2),c=o>=0?1:-1,f=r>=0?1:-1,m=o>=0&&r>=0||o<0&&r<0?1:0,g;if(u>0&&s instanceof Array){for(var p=[0,0,0,0],y=0,b=4;y<b;y++)p[y]=s[y]>u?u:s[y];g="M".concat(t,",").concat(n+c*p[0]),p[0]>0&&(g+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(m,",").concat(t+f*p[0],",").concat(n)),g+="L ".concat(t+r-f*p[1],",").concat(n),p[1]>0&&(g+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(m,`,
|
||
`).concat(t+r,",").concat(n+c*p[1])),g+="L ".concat(t+r,",").concat(n+o-c*p[2]),p[2]>0&&(g+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(m,`,
|
||
`).concat(t+r-f*p[2],",").concat(n+o)),g+="L ".concat(t+f*p[3],",").concat(n+o),p[3]>0&&(g+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(m,`,
|
||
`).concat(t,",").concat(n+o-c*p[3])),g+="Z"}else if(u>0&&s===+s&&s>0){var S=Math.min(u,s);g="M ".concat(t,",").concat(n+c*S,`
|
||
A `).concat(S,",").concat(S,",0,0,").concat(m,",").concat(t+f*S,",").concat(n,`
|
||
L `).concat(t+r-f*S,",").concat(n,`
|
||
A `).concat(S,",").concat(S,",0,0,").concat(m,",").concat(t+r,",").concat(n+c*S,`
|
||
L `).concat(t+r,",").concat(n+o-c*S,`
|
||
A `).concat(S,",").concat(S,",0,0,").concat(m,",").concat(t+r-f*S,",").concat(n+o,`
|
||
L `).concat(t+f*S,",").concat(n+o,`
|
||
A `).concat(S,",").concat(S,",0,0,").concat(m,",").concat(t,",").concat(n+o-c*S," Z")}else g="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return g},b0e=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,s=n.x,u=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var m=Math.min(s,s+c),g=Math.max(s,s+c),p=Math.min(u,u+f),y=Math.max(u,u+f);return r>=m&&r<=g&&o>=p&&o<=y}return!1},x0e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},DR=function(t){var n=G7(G7({},x0e),t),r=R.useRef(),o=R.useState(-1),s=d0e(o,2),u=s[0],c=s[1];R.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var P=r.current.getTotalLength();P&&c(P)}catch{}},[]);var f=n.x,m=n.y,g=n.width,p=n.height,y=n.radius,b=n.className,S=n.animationEasing,x=n.animationDuration,N=n.animationBegin,T=n.isAnimationActive,C=n.isUpdateAnimationActive;if(f!==+f||m!==+m||g!==+g||p!==+p||g===0||p===0)return null;var D=nt("recharts-rectangle",b);return C?F.createElement(io,{canBegin:u>0,from:{width:g,height:p,x:f,y:m},to:{width:g,height:p,x:f,y:m},duration:x,animationEasing:S,isActive:C},function(P){var A=P.width,_=P.height,j=P.x,L=P.y;return F.createElement(io,{canBegin:u>0,from:"0px ".concat(u===-1?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:N,duration:x,isActive:T,easing:S},F.createElement("path",jb({},Fe(n,!0),{className:D,d:Y7(j,L,A,_,y),ref:r})))}):F.createElement("path",jb({},Fe(n,!0),{className:D,d:Y7(f,m,g,p,y)}))},w0e=["points","className","baseLinePoints","connectNulls"];function pd(){return pd=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},pd.apply(this,arguments)}function N0e(e,t){if(e==null)return{};var n=E0e(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function E0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Q7(e){return T0e(e)||O0e(e)||A0e(e)||S0e()}function S0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A0e(e,t){if(e){if(typeof e=="string")return g_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g_(e,t)}}function O0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function T0e(e){if(Array.isArray(e))return g_(e)}function g_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var X7=function(t){return t&&t.x===+t.x&&t.y===+t.y},C0e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){X7(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),X7(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Ap=function(t,n){var r=C0e(t);n&&(r=[r.reduce(function(s,u){return[].concat(Q7(s),Q7(u))},[])]);var o=r.map(function(s){return s.reduce(function(u,c,f){return"".concat(u).concat(f===0?"M":"L").concat(c.x,",").concat(c.y)},"")}).join("");return r.length===1?"".concat(o,"Z"):o},_0e=function(t,n,r){var o=Ap(t,r);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(Ap(n.reverse(),r).slice(1))},D0e=function(t){var n=t.points,r=t.className,o=t.baseLinePoints,s=t.connectNulls,u=N0e(t,w0e);if(!n||!n.length)return null;var c=nt("recharts-polygon",r);if(o&&o.length){var f=u.stroke&&u.stroke!=="none",m=_0e(n,o,s);return F.createElement("g",{className:c},F.createElement("path",pd({},Fe(u,!0),{fill:m.slice(-1)==="Z"?u.fill:"none",stroke:"none",d:m})),f?F.createElement("path",pd({},Fe(u,!0),{fill:"none",d:Ap(n,s)})):null,f?F.createElement("path",pd({},Fe(u,!0),{fill:"none",d:Ap(o,s)})):null)}var g=Ap(n,s);return F.createElement("path",pd({},Fe(u,!0),{fill:g.slice(-1)==="Z"?u.fill:"none",className:c,d:g}))};function v_(){return v_=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},v_.apply(this,arguments)}var Z0=function(t){var n=t.cx,r=t.cy,o=t.r,s=t.className,u=nt("recharts-dot",s);return n===+n&&r===+r&&o===+o?R.createElement("circle",v_({},Fe(t,!1),tb(t),{className:u,cx:n,cy:r,r:o})):null};function fh(e){"@babel/helpers - typeof";return fh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fh(e)}var R0e=["x","y","top","left","width","height","className"];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 W7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function j0e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W7(Object(n),!0).forEach(function(r){P0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function P0e(e,t,n){return t=M0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M0e(e){var t=L0e(e,"string");return fh(t)=="symbol"?t:t+""}function L0e(e,t){if(fh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k0e(e,t){if(e==null)return{};var n=I0e(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var $0e=function(t,n,r,o,s,u){return"M".concat(t,",").concat(s,"v").concat(o,"M").concat(u,",").concat(n,"h").concat(r)},V0e=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,s=o===void 0?0:o,u=t.top,c=u===void 0?0:u,f=t.left,m=f===void 0?0:f,g=t.width,p=g===void 0?0:g,y=t.height,b=y===void 0?0:y,S=t.className,x=k0e(t,R0e),N=j0e({x:r,y:s,top:c,left:m,width:p,height:b},x);return!Oe(r)||!Oe(s)||!Oe(p)||!Oe(b)||!Oe(c)||!Oe(m)?null:F.createElement("path",y_({},Fe(N,!0),{className:nt("recharts-cross",S),d:$0e(r,s,p,b,c,m)}))},uT,Z7;function B0e(){if(Z7)return uT;Z7=1;var e=G0(),t=IH(),n=co();function r(o,s){return o&&o.length?e(o,n(s,2),t):void 0}return uT=r,uT}var z0e=B0e();const U0e=It(z0e);var cT,J7;function q0e(){if(J7)return cT;J7=1;var e=G0(),t=co(),n=$H();function r(o,s){return o&&o.length?e(o,t(s,2),n):void 0}return cT=r,cT}var H0e=q0e();const F0e=It(H0e);var K0e=["cx","cy","angle","ticks","axisLine"],G0e=["ticks","tick","angle","tickFormatter","stroke"];function $d(e){"@babel/helpers - typeof";return $d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$d(e)}function Op(){return Op=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},Op.apply(this,arguments)}function e8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function su(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e8(Object(n),!0).forEach(function(r){J0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t8(e,t){if(e==null)return{};var n=Y0e(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Y0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Q0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TF(r.key),r)}}function X0e(e,t,n){return t&&n8(e.prototype,t),n&&n8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function W0e(e,t,n){return t=Pb(t),Z0e(e,OF()?Reflect.construct(t,n||[],Pb(e).constructor):t.apply(e,n))}function Z0e(e,t){if(t&&($d(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J0e(e)}function J0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OF=function(){return!!e})()}function Pb(e){return Pb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pb(e)}function exe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b_(e,t)}function b_(e,t){return b_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},b_(e,t)}function J0(e,t,n){return t=TF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TF(e){var t=txe(e,"string");return $d(t)=="symbol"?t:t+""}function txe(e,t){if($d(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($d(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ex=(function(e){function t(){return Q0e(this,t),W0e(this,t,arguments)}return exe(t,e),X0e(t,[{key:"getTickValueCoord",value:function(r){var o=r.coordinate,s=this.props,u=s.angle,c=s.cx,f=s.cy;return en(c,f,o,u)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,o;switch(r){case"left":o="end";break;case"right":o="start";break;default:o="middle";break}return o}},{key:"getViewBox",value:function(){var r=this.props,o=r.cx,s=r.cy,u=r.angle,c=r.ticks,f=U0e(c,function(g){return g.coordinate||0}),m=F0e(c,function(g){return g.coordinate||0});return{cx:o,cy:s,startAngle:u,endAngle:u,innerRadius:m.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,s=r.cy,u=r.angle,c=r.ticks,f=r.axisLine,m=t8(r,K0e),g=c.reduce(function(S,x){return[Math.min(S[0],x.coordinate),Math.max(S[1],x.coordinate)]},[1/0,-1/0]),p=en(o,s,g[0],u),y=en(o,s,g[1],u),b=su(su(su({},Fe(m,!1)),{},{fill:"none"},Fe(f,!1)),{},{x1:p.x,y1:p.y,x2:y.x,y2:y.y});return F.createElement("line",Op({className:"recharts-polar-radius-axis-line"},b))}},{key:"renderTicks",value:function(){var r=this,o=this.props,s=o.ticks,u=o.tick,c=o.angle,f=o.tickFormatter,m=o.stroke,g=t8(o,G0e),p=this.getTickTextAnchor(),y=Fe(g,!1),b=Fe(u,!1),S=s.map(function(x,N){var T=r.getTickValueCoord(x),C=su(su(su(su({textAnchor:p,transform:"rotate(".concat(90-c,", ").concat(T.x,", ").concat(T.y,")")},y),{},{stroke:"none",fill:m},b),{},{index:N},T),{},{payload:x});return F.createElement(Nt,Op({className:nt("recharts-polar-radius-axis-tick",fF(u)),key:"tick-".concat(x.coordinate)},$u(r.props,x,N)),t.renderTickItem(u,C,f?f(x.value,N):x.value))});return F.createElement(Nt,{className:"recharts-polar-radius-axis-ticks"},S)}},{key:"render",value:function(){var r=this.props,o=r.ticks,s=r.axisLine,u=r.tick;return!o||!o.length?null:F.createElement(Nt,{className:nt("recharts-polar-radius-axis",this.props.className)},s&&this.renderAxisLine(),u&&this.renderTicks(),Xn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,o,s){var u;return F.isValidElement(r)?u=F.cloneElement(r,o):Qe(r)?u=r(o):u=F.createElement(Vu,Op({},o,{className:"recharts-polar-radius-axis-tick-value"}),s),u}}])})(R.PureComponent);J0(ex,"displayName","PolarRadiusAxis");J0(ex,"axisType","radiusAxis");J0(ex,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Vd(e){"@babel/helpers - typeof";return Vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vd(e)}function pu(){return pu=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},pu.apply(this,arguments)}function r8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r8(Object(n),!0).forEach(function(r){tx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_F(r.key),r)}}function rxe(e,t,n){return t&&a8(e.prototype,t),n&&a8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function axe(e,t,n){return t=Mb(t),ixe(e,CF()?Reflect.construct(t,n||[],Mb(e).constructor):t.apply(e,n))}function ixe(e,t){if(t&&(Vd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oxe(e)}function oxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CF=function(){return!!e})()}function Mb(e){return Mb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mb(e)}function sxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x_(e,t)}function x_(e,t){return x_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},x_(e,t)}function tx(e,t,n){return t=_F(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _F(e){var t=lxe(e,"string");return Vd(t)=="symbol"?t:t+""}function lxe(e,t){if(Vd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uxe=Math.PI/180,i8=1e-5,nx=(function(e){function t(){return nxe(this,t),axe(this,t,arguments)}return sxe(t,e),rxe(t,[{key:"getTickLineCoord",value:function(r){var o=this.props,s=o.cx,u=o.cy,c=o.radius,f=o.orientation,m=o.tickSize,g=m||8,p=en(s,u,c,r.coordinate),y=en(s,u,c+(f==="inner"?-1:1)*g,r.coordinate);return{x1:p.x,y1:p.y,x2:y.x,y2:y.y}}},{key:"getTickTextAnchor",value:function(r){var o=this.props.orientation,s=Math.cos(-r.coordinate*uxe),u;return s>i8?u=o==="outer"?"start":"end":s<-i8?u=o==="outer"?"end":"start":u="middle",u}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,s=r.cy,u=r.radius,c=r.axisLine,f=r.axisLineType,m=lu(lu({},Fe(this.props,!1)),{},{fill:"none"},Fe(c,!1));if(f==="circle")return F.createElement(Z0,pu({className:"recharts-polar-angle-axis-line"},m,{cx:o,cy:s,r:u}));var g=this.props.ticks,p=g.map(function(y){return en(o,s,u,y.coordinate)});return F.createElement(D0e,pu({className:"recharts-polar-angle-axis-line"},m,{points:p}))}},{key:"renderTicks",value:function(){var r=this,o=this.props,s=o.ticks,u=o.tick,c=o.tickLine,f=o.tickFormatter,m=o.stroke,g=Fe(this.props,!1),p=Fe(u,!1),y=lu(lu({},g),{},{fill:"none"},Fe(c,!1)),b=s.map(function(S,x){var N=r.getTickLineCoord(S),T=r.getTickTextAnchor(S),C=lu(lu(lu({textAnchor:T},g),{},{stroke:"none",fill:m},p),{},{index:x,payload:S,x:N.x2,y:N.y2});return F.createElement(Nt,pu({className:nt("recharts-polar-angle-axis-tick",fF(u)),key:"tick-".concat(S.coordinate)},$u(r.props,S,x)),c&&F.createElement("line",pu({className:"recharts-polar-angle-axis-tick-line"},y,N)),u&&t.renderTickItem(u,C,f?f(S.value,x):S.value))});return F.createElement(Nt,{className:"recharts-polar-angle-axis-ticks"},b)}},{key:"render",value:function(){var r=this.props,o=r.ticks,s=r.radius,u=r.axisLine;return s<=0||!o||!o.length?null:F.createElement(Nt,{className:nt("recharts-polar-angle-axis",this.props.className)},u&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,o,s){var u;return F.isValidElement(r)?u=F.cloneElement(r,o):Qe(r)?u=r(o):u=F.createElement(Vu,pu({},o,{className:"recharts-polar-angle-axis-tick-value"}),s),u}}])})(R.PureComponent);tx(nx,"displayName","PolarAngleAxis");tx(nx,"axisType","angleAxis");tx(nx,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var dT,o8;function cxe(){if(o8)return dT;o8=1;var e=kq(),t=e(Object.getPrototypeOf,Object);return dT=t,dT}var fT,s8;function dxe(){if(s8)return fT;s8=1;var e=os(),t=cxe(),n=ss(),r="[object Object]",o=Function.prototype,s=Object.prototype,u=o.toString,c=s.hasOwnProperty,f=u.call(Object);function m(g){if(!n(g)||e(g)!=r)return!1;var p=t(g);if(p===null)return!0;var y=c.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&u.call(y)==f}return fT=m,fT}var fxe=dxe();const mxe=It(fxe);var mT,l8;function pxe(){if(l8)return mT;l8=1;var e=os(),t=ss(),n="[object Boolean]";function r(o){return o===!0||o===!1||t(o)&&e(o)==n}return mT=r,mT}var hxe=pxe();const gxe=It(hxe);function mh(e){"@babel/helpers - typeof";return mh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mh(e)}function Lb(){return Lb=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},Lb.apply(this,arguments)}function vxe(e,t){return wxe(e)||xxe(e,t)||bxe(e,t)||yxe()}function yxe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bxe(e,t){if(e){if(typeof e=="string")return u8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u8(e,t)}}function u8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,c=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return c}}function wxe(e){if(Array.isArray(e))return e}function c8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function d8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c8(Object(n),!0).forEach(function(r){Nxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nxe(e,t,n){return t=Exe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Exe(e){var t=Sxe(e,"string");return mh(t)=="symbol"?t:t+""}function Sxe(e,t){if(mh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f8=function(t,n,r,o,s){var u=r-o,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-u/2,",").concat(n+s),c+="L ".concat(t+r-u/2-o,",").concat(n+s),c+="L ".concat(t,",").concat(n," Z"),c},Axe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Oxe=function(t){var n=d8(d8({},Axe),t),r=R.useRef(),o=R.useState(-1),s=vxe(o,2),u=s[0],c=s[1];R.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var D=r.current.getTotalLength();D&&c(D)}catch{}},[]);var f=n.x,m=n.y,g=n.upperWidth,p=n.lowerWidth,y=n.height,b=n.className,S=n.animationEasing,x=n.animationDuration,N=n.animationBegin,T=n.isUpdateAnimationActive;if(f!==+f||m!==+m||g!==+g||p!==+p||y!==+y||g===0&&p===0||y===0)return null;var C=nt("recharts-trapezoid",b);return T?F.createElement(io,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:y,x:f,y:m},to:{upperWidth:g,lowerWidth:p,height:y,x:f,y:m},duration:x,animationEasing:S,isActive:T},function(D){var P=D.upperWidth,A=D.lowerWidth,_=D.height,j=D.x,L=D.y;return F.createElement(io,{canBegin:u>0,from:"0px ".concat(u===-1?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:N,duration:x,easing:S},F.createElement("path",Lb({},Fe(n,!0),{className:C,d:f8(j,L,P,A,_),ref:r})))}):F.createElement("g",null,F.createElement("path",Lb({},Fe(n,!0),{className:C,d:f8(f,m,g,p,y)})))},Txe=["option","shapeType","propTransformer","activeClassName","isActive"];function ph(e){"@babel/helpers - typeof";return ph=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ph(e)}function Cxe(e,t){if(e==null)return{};var n=_xe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _xe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function m8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m8(Object(n),!0).forEach(function(r){Dxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dxe(e,t,n){return t=Rxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rxe(e){var t=jxe(e,"string");return ph(t)=="symbol"?t:t+""}function jxe(e,t){if(ph(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ph(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pxe(e,t){return kb(kb({},t),e)}function Mxe(e,t){return e==="symbols"}function p8(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return F.createElement(DR,n);case"trapezoid":return F.createElement(Oxe,n);case"sector":return F.createElement(hF,n);case"symbols":if(Mxe(t))return F.createElement(QD,n);break;default:return null}}function Lxe(e){return R.isValidElement(e)?e.props:e}function DF(e){var t=e.option,n=e.shapeType,r=e.propTransformer,o=r===void 0?Pxe:r,s=e.activeClassName,u=s===void 0?"recharts-active-shape":s,c=e.isActive,f=Cxe(e,Txe),m;if(R.isValidElement(t))m=R.cloneElement(t,kb(kb({},f),Lxe(t)));else if(Qe(t))m=t(f);else if(mxe(t)&&!gxe(t)){var g=o(t,f);m=F.createElement(p8,{shapeType:n,elementProps:g})}else{var p=f;m=F.createElement(p8,{shapeType:n,elementProps:p})}return c?F.createElement(Nt,{className:u},m):m}function rx(e,t){return t!=null&&"trapezoids"in e.props}function ax(e,t){return t!=null&&"sectors"in e.props}function hh(e,t){return t!=null&&"points"in e.props}function kxe(e,t){var n,r,o=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,s=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return o&&s}function Ixe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function $xe(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function Vxe(e,t){var n;return rx(e,t)?n=kxe:ax(e,t)?n=Ixe:hh(e,t)&&(n=$xe),n}function Bxe(e,t){var n;return rx(e,t)?n="trapezoids":ax(e,t)?n="sectors":hh(e,t)&&(n="points"),n}function zxe(e,t){if(rx(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(ax(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return hh(e,t)?t.payload:{}}function Uxe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=Bxe(n,t),s=zxe(n,t),u=r.filter(function(f,m){var g=Ld(s,f),p=n.props[o].filter(function(S){var x=Vxe(n,t);return x(S,t)}),y=n.props[o].indexOf(p[p.length-1]),b=m===y;return g&&b}),c=r.indexOf(u[u.length-1]);return c}var $y;function Bd(e){"@babel/helpers - typeof";return Bd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bd(e)}function hd(){return hd=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},hd.apply(this,arguments)}function h8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h8(Object(n),!0).forEach(function(r){Ma(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jF(r.key),r)}}function Hxe(e,t,n){return t&&g8(e.prototype,t),n&&g8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fxe(e,t,n){return t=Ib(t),Kxe(e,RF()?Reflect.construct(t,n||[],Ib(e).constructor):t.apply(e,n))}function Kxe(e,t){if(t&&(Bd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gxe(e)}function Gxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RF=function(){return!!e})()}function Ib(e){return Ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ib(e)}function Yxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w_(e,t)}function w_(e,t){return w_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},w_(e,t)}function Ma(e,t,n){return t=jF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jF(e){var t=Qxe(e,"string");return Bd(t)=="symbol"?t:t+""}function Qxe(e,t){if(Bd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var us=(function(e){function t(n){var r;return qxe(this,t),r=Fxe(this,t,[n]),Ma(r,"pieRef",null),Ma(r,"sectorRefs",[]),Ma(r,"id",ff("recharts-pie-")),Ma(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Qe(o)&&o()}),Ma(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Qe(o)&&o()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Yxe(t,e),Hxe(t,[{key:"isActiveIndex",value:function(r){var o=this.props.activeIndex;return Array.isArray(o)?o.indexOf(r)!==-1:r===o}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,u=s.label,c=s.labelLine,f=s.dataKey,m=s.valueKey,g=Fe(this.props,!1),p=Fe(u,!1),y=Fe(c,!1),b=u&&u.offsetRadius||20,S=r.map(function(x,N){var T=(x.startAngle+x.endAngle)/2,C=en(x.cx,x.cy,x.outerRadius+b,T),D=Xt(Xt(Xt(Xt({},g),x),{},{stroke:"none"},p),{},{index:N,textAnchor:t.getTextAnchor(C.x,x.cx)},C),P=Xt(Xt(Xt(Xt({},g),x),{},{fill:"none",stroke:x.fill},y),{},{index:N,points:[en(x.cx,x.cy,x.outerRadius,T),C]}),A=f;return rt(f)&&rt(m)?A="value":rt(f)&&(A=m),F.createElement(Nt,{key:"label-".concat(x.startAngle,"-").concat(x.endAngle,"-").concat(x.midAngle,"-").concat(N)},c&&t.renderLabelLineItem(c,P,"line"),t.renderLabelItem(u,D,$n(x,A)))});return F.createElement(Nt,{className:"recharts-pie-labels"},S)}},{key:"renderSectorsStatically",value:function(r){var o=this,s=this.props,u=s.activeShape,c=s.blendStroke,f=s.inactiveShape;return r.map(function(m,g){if(m?.startAngle===0&&m?.endAngle===0&&r.length!==1)return null;var p=o.isActiveIndex(g),y=f&&o.hasActiveIndex()?f:null,b=p?u:y,S=Xt(Xt({},m),{},{stroke:c?m.fill:m.stroke,tabIndex:-1});return F.createElement(Nt,hd({ref:function(N){N&&!o.sectorRefs.includes(N)&&o.sectorRefs.push(N)},tabIndex:-1,className:"recharts-pie-sector"},$u(o.props,m,g),{key:"sector-".concat(m?.startAngle,"-").concat(m?.endAngle,"-").concat(m.midAngle,"-").concat(g)}),F.createElement(DF,hd({option:b,isActive:p,shapeType:"sector"},S)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,o=this.props,s=o.sectors,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,m=o.animationEasing,g=o.animationId,p=this.state,y=p.prevSectors,b=p.prevIsAnimationActive;return F.createElement(io,{begin:c,duration:f,isActive:u,easing:m,from:{t:0},to:{t:1},key:"pie-".concat(g,"-").concat(b),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(S){var x=S.t,N=[],T=s&&s[0],C=T.startAngle;return s.forEach(function(D,P){var A=y&&y[P],_=P>0?ma(D,"paddingAngle",0):0;if(A){var j=Hr(A.endAngle-A.startAngle,D.endAngle-D.startAngle),L=Xt(Xt({},D),{},{startAngle:C+_,endAngle:C+j(x)+_});N.push(L),C=L.endAngle}else{var V=D.endAngle,B=D.startAngle,U=Hr(0,V-B),H=U(x),G=Xt(Xt({},D),{},{startAngle:C+_,endAngle:C+H+_});N.push(G),C=G.endAngle}}),F.createElement(Nt,null,r.renderSectorsStatically(N))})}},{key:"attachKeyboardHandlers",value:function(r){var o=this;r.onkeydown=function(s){if(!s.altKey)switch(s.key){case"ArrowLeft":{var u=++o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[u].focus(),o.setState({sectorToFocus:u});break}case"ArrowRight":{var c=--o.state.sectorToFocus<0?o.sectorRefs.length-1:o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[c].focus(),o.setState({sectorToFocus:c});break}case"Escape":{o.sectorRefs[o.state.sectorToFocus].blur(),o.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,o=r.sectors,s=r.isAnimationActive,u=this.state.prevSectors;return s&&o&&o.length&&(!u||!Ld(u,o))?this.renderSectorsWithAnimation():this.renderSectorsStatically(o)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,o=this.props,s=o.hide,u=o.sectors,c=o.className,f=o.label,m=o.cx,g=o.cy,p=o.innerRadius,y=o.outerRadius,b=o.isAnimationActive,S=this.state.isAnimationFinished;if(s||!u||!u.length||!Oe(m)||!Oe(g)||!Oe(p)||!Oe(y))return null;var x=nt("recharts-pie",c);return F.createElement(Nt,{tabIndex:this.props.rootTabIndex,className:x,ref:function(T){r.pieRef=T}},this.renderSectors(),f&&this.renderLabels(u),Xn.renderCallByParent(this.props,null,!1),(!b||S)&&Zo.renderCallByParent(this.props,u,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return o.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:o.curSectors,isAnimationFinished:!0}:r.sectors!==o.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,o){return r>o?"start":r<o?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,o,s){if(F.isValidElement(r))return F.cloneElement(r,o);if(Qe(r))return r(o);var u=nt("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return F.createElement(Ed,hd({},o,{key:s,type:"linear",className:u}))}},{key:"renderLabelItem",value:function(r,o,s){if(F.isValidElement(r))return F.cloneElement(r,o);var u=s;if(Qe(r)&&(u=r(o),F.isValidElement(u)))return u;var c=nt("recharts-pie-label-text",typeof r!="boolean"&&!Qe(r)?r.className:"");return F.createElement(Vu,hd({},o,{alignmentBaseline:"middle",className:c}),u)}}])})(R.PureComponent);$y=us;Ma(us,"displayName","Pie");Ma(us,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Wu.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Ma(us,"parseDeltaAngle",function(e,t){var n=Dr(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Ma(us,"getRealPieData",function(e){var t=e.data,n=e.children,r=Fe(e,!1),o=Ia(n,B0);return t&&t.length?t.map(function(s,u){return Xt(Xt(Xt({payload:s},r),s),o&&o[u]&&o[u].props)}):o&&o.length?o.map(function(s){return Xt(Xt({},r),s.props)}):[]});Ma(us,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,o=t.width,s=t.height,u=dF(o,s),c=r+Rr(e.cx,o,o/2),f=n+Rr(e.cy,s,s/2),m=Rr(e.innerRadius,u,0),g=Rr(e.outerRadius,u,u*.8),p=e.maxRadius||Math.sqrt(o*o+s*s)/2;return{cx:c,cy:f,innerRadius:m,outerRadius:g,maxRadius:p}});Ma(us,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Xt(Xt({},t.type.defaultProps),t.props):t.props,o=$y.getRealPieData(r);if(!o||!o.length)return null;var s=r.cornerRadius,u=r.startAngle,c=r.endAngle,f=r.paddingAngle,m=r.dataKey,g=r.nameKey,p=r.valueKey,y=r.tooltipType,b=Math.abs(r.minAngle),S=$y.parseCoordinateOfPie(r,n),x=$y.parseDeltaAngle(u,c),N=Math.abs(x),T=m;rt(m)&&rt(p)?(ii(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),T="value"):rt(m)&&(ii(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),T=p);var C=o.filter(function(L){return $n(L,T,0)!==0}).length,D=(N>=360?C:C-1)*f,P=N-C*b-D,A=o.reduce(function(L,V){var B=$n(V,T,0);return L+(Oe(B)?B:0)},0),_;if(A>0){var j;_=o.map(function(L,V){var B=$n(L,T,0),U=$n(L,g,V),H=(Oe(B)?B:0)/A,G;V?G=j.endAngle+Dr(x)*f*(B!==0?1:0):G=u;var Y=G+Dr(x)*((B!==0?b:0)+H*P),J=(G+Y)/2,q=(S.innerRadius+S.outerRadius)/2,z=[{name:U,value:B,payload:L,dataKey:T,type:y}],K=en(S.cx,S.cy,q,J);return j=Xt(Xt(Xt({percent:H,cornerRadius:s,name:U,tooltipPayload:z,midAngle:J,middleRadius:q,tooltipPosition:K},L),S),{},{value:$n(L,T),startAngle:G,endAngle:Y,payload:L,paddingAngle:Dr(x)*f}),j})}return Xt(Xt({},S),{},{sectors:_,data:o})});var pT,v8;function Xxe(){if(v8)return pT;v8=1;var e=Math.ceil,t=Math.max;function n(r,o,s,u){for(var c=-1,f=t(e((o-r)/(s||1)),0),m=Array(f);f--;)m[u?f:++c]=r,r+=s;return m}return pT=n,pT}var hT,y8;function PF(){if(y8)return hT;y8=1;var e=Zq(),t=1/0,n=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-t){var s=o<0?-1:1;return s*n}return o===o?o:0}return hT=r,hT}var gT,b8;function Wxe(){if(b8)return gT;b8=1;var e=Xxe(),t=V0(),n=PF();function r(o){return function(s,u,c){return c&&typeof c!="number"&&t(s,u,c)&&(u=c=void 0),s=n(s),u===void 0?(u=s,s=0):u=n(u),c=c===void 0?s<u?1:-1:n(c),e(s,u,c,o)}}return gT=r,gT}var vT,x8;function Zxe(){if(x8)return vT;x8=1;var e=Wxe(),t=e();return vT=t,vT}var Jxe=Zxe();const $b=It(Jxe);function gh(e){"@babel/helpers - typeof";return gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gh(e)}function w8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function N8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w8(Object(n),!0).forEach(function(r){MF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MF(e,t,n){return t=e1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e1e(e){var t=t1e(e,"string");return gh(t)=="symbol"?t:t+""}function t1e(e,t){if(gh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n1e=["Webkit","Moz","O","ms"],r1e=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),o=n1e.reduce(function(s,u){return N8(N8({},s),{},MF({},u+r,n))},{});return o[t]=n,o};function zd(e){"@babel/helpers - typeof";return zd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zd(e)}function Vb(){return Vb=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},Vb.apply(this,arguments)}function E8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E8(Object(n),!0).forEach(function(r){la(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kF(r.key),r)}}function i1e(e,t,n){return t&&S8(e.prototype,t),n&&S8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o1e(e,t,n){return t=Bb(t),s1e(e,LF()?Reflect.construct(t,n||[],Bb(e).constructor):t.apply(e,n))}function s1e(e,t){if(t&&(zd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l1e(e)}function l1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LF=function(){return!!e})()}function Bb(e){return Bb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bb(e)}function u1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N_(e,t)}function N_(e,t){return N_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},N_(e,t)}function la(e,t,n){return t=kF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kF(e){var t=c1e(e,"string");return zd(t)=="symbol"?t:t+""}function c1e(e,t){if(zd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var d1e=function(t){var n=t.data,r=t.startIndex,o=t.endIndex,s=t.x,u=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,m=Np().domain($b(0,f)).range([s,s+u-c]),g=m.domain().map(function(p){return m(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:m(r),endX:m(o),scale:m,scaleValues:g}},A8=function(t){return t.changedTouches&&!!t.changedTouches.length},Ud=(function(e){function t(n){var r;return a1e(this,t),r=o1e(this,t,[n]),la(r,"handleDrag",function(o){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(o):r.state.isSlideMoving&&r.handleSlideDrag(o)}),la(r,"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&r.handleDrag(o.changedTouches[0])}),la(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=r.props,s=o.endIndex,u=o.onDragEnd,c=o.startIndex;u?.({endIndex:s,startIndex:c})}),r.detachDragEndListener()}),la(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),la(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),la(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),la(r,"handleSlideDragStart",function(o){var s=A8(o)?o.changedTouches[0]:o;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return u1e(t,e),i1e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var o=r.startX,s=r.endX,u=this.state.scaleValues,c=this.props,f=c.gap,m=c.data,g=m.length-1,p=Math.min(o,s),y=Math.max(o,s),b=t.getIndexInRange(u,p),S=t.getIndexInRange(u,y);return{startIndex:b-b%f,endIndex:S===g?g:S-S%f}}},{key:"getTextOfTick",value:function(r){var o=this.props,s=o.data,u=o.tickFormatter,c=o.dataKey,f=$n(s[r],c,r);return Qe(u)?u(f,r):f}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var o=this.state,s=o.slideMoveStartX,u=o.startX,c=o.endX,f=this.props,m=f.x,g=f.width,p=f.travellerWidth,y=f.startIndex,b=f.endIndex,S=f.onChange,x=r.pageX-s;x>0?x=Math.min(x,m+g-p-c,m+g-p-u):x<0&&(x=Math.max(x,m-u,m-c));var N=this.getIndex({startX:u+x,endX:c+x});(N.startIndex!==y||N.endIndex!==b)&&S&&S(N),this.setState({startX:u+x,endX:c+x,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,o){var s=A8(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var o=this.state,s=o.brushMoveStartX,u=o.movingTravellerId,c=o.endX,f=o.startX,m=this.state[u],g=this.props,p=g.x,y=g.width,b=g.travellerWidth,S=g.onChange,x=g.gap,N=g.data,T={startX:this.state.startX,endX:this.state.endX},C=r.pageX-s;C>0?C=Math.min(C,p+y-b-m):C<0&&(C=Math.max(C,p-m)),T[u]=m+C;var D=this.getIndex(T),P=D.startIndex,A=D.endIndex,_=function(){var L=N.length-1;return u==="startX"&&(c>f?P%x===0:A%x===0)||c<f&&A===L||u==="endX"&&(c>f?A%x===0:P%x===0)||c>f&&A===L};this.setState(la(la({},u,m+C),"brushMoveStartX",r.pageX),function(){S&&_()&&S(D)})}},{key:"handleTravellerMoveKeyboard",value:function(r,o){var s=this,u=this.state,c=u.scaleValues,f=u.startX,m=u.endX,g=this.state[o],p=c.indexOf(g);if(p!==-1){var y=p+r;if(!(y===-1||y>=c.length)){var b=c[y];o==="startX"&&b>=m||o==="endX"&&b<=f||this.setState(la({},o,b),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,o=r.x,s=r.y,u=r.width,c=r.height,f=r.fill,m=r.stroke;return F.createElement("rect",{stroke:m,fill:f,x:o,y:s,width:u,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,o=r.x,s=r.y,u=r.width,c=r.height,f=r.data,m=r.children,g=r.padding,p=R.Children.only(m);return p?F.cloneElement(p,{x:o,y:s,width:u,height:c,margin:g,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,o){var s,u,c=this,f=this.props,m=f.y,g=f.travellerWidth,p=f.height,y=f.traveller,b=f.ariaLabel,S=f.data,x=f.startIndex,N=f.endIndex,T=Math.max(r,this.props.x),C=yT(yT({},Fe(this.props,!1)),{},{x:T,y:m,width:g,height:p}),D=b||"Min value: ".concat((s=S[x])===null||s===void 0?void 0:s.name,", Max value: ").concat((u=S[N])===null||u===void 0?void 0:u.name);return F.createElement(Nt,{tabIndex:0,role:"slider","aria-label":D,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),c.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,o))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(y,C))}},{key:"renderSlide",value:function(r,o){var s=this.props,u=s.y,c=s.height,f=s.stroke,m=s.travellerWidth,g=Math.min(r,o)+m,p=Math.max(Math.abs(o-r)-m,0);return F.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:g,y:u,width:p,height:c})}},{key:"renderText",value:function(){var r=this.props,o=r.startIndex,s=r.endIndex,u=r.y,c=r.height,f=r.travellerWidth,m=r.stroke,g=this.state,p=g.startX,y=g.endX,b=5,S={pointerEvents:"none",fill:m};return F.createElement(Nt,{className:"recharts-brush-texts"},F.createElement(Vu,Vb({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,y)-b,y:u+c/2},S),this.getTextOfTick(o)),F.createElement(Vu,Vb({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,y)+f+b,y:u+c/2},S),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,o=r.data,s=r.className,u=r.children,c=r.x,f=r.y,m=r.width,g=r.height,p=r.alwaysShowText,y=this.state,b=y.startX,S=y.endX,x=y.isTextActive,N=y.isSlideMoving,T=y.isTravellerMoving,C=y.isTravellerFocused;if(!o||!o.length||!Oe(c)||!Oe(f)||!Oe(m)||!Oe(g)||m<=0||g<=0)return null;var D=nt("recharts-brush",s),P=F.Children.count(u)===1,A=r1e("userSelect","none");return F.createElement(Nt,{className:D,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),P&&this.renderPanorama(),this.renderSlide(b,S),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(S,"endX"),(x||N||T||C||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var o=r.x,s=r.y,u=r.width,c=r.height,f=r.stroke,m=Math.floor(s+c/2)-1;return F.createElement(F.Fragment,null,F.createElement("rect",{x:o,y:s,width:u,height:c,fill:f,stroke:"none"}),F.createElement("line",{x1:o+1,y1:m,x2:o+u-1,y2:m,fill:"none",stroke:"#fff"}),F.createElement("line",{x1:o+1,y1:m+2,x2:o+u-1,y2:m+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,o){var s;return F.isValidElement(r)?s=F.cloneElement(r,o):Qe(r)?s=r(o):s=t.renderDefaultTraveller(o),s}},{key:"getDerivedStateFromProps",value:function(r,o){var s=r.data,u=r.width,c=r.x,f=r.travellerWidth,m=r.updateId,g=r.startIndex,p=r.endIndex;if(s!==o.prevData||m!==o.prevUpdateId)return yT({prevData:s,prevTravellerWidth:f,prevUpdateId:m,prevX:c,prevWidth:u},s&&s.length?d1e({data:s,width:u,x:c,travellerWidth:f,startIndex:g,endIndex:p}):{scale:null,scaleValues:null});if(o.scale&&(u!==o.prevWidth||c!==o.prevX||f!==o.prevTravellerWidth)){o.scale.range([c,c+u-f]);var y=o.scale.domain().map(function(b){return o.scale(b)});return{prevData:s,prevTravellerWidth:f,prevUpdateId:m,prevX:c,prevWidth:u,startX:o.scale(r.startIndex),endX:o.scale(r.endIndex),scaleValues:y}}return null}},{key:"getIndexInRange",value:function(r,o){for(var s=r.length,u=0,c=s-1;c-u>1;){var f=Math.floor((u+c)/2);r[f]>o?c=f:u=f}return o>=r[c]?c:u}}])})(R.PureComponent);la(Ud,"displayName","Brush");la(Ud,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var bT,O8;function f1e(){if(O8)return bT;O8=1;var e=nR();function t(n,r){var o;return e(n,function(s,u,c){return o=r(s,u,c),!o}),!!o}return bT=t,bT}var xT,T8;function m1e(){if(T8)return xT;T8=1;var e=_q(),t=co(),n=f1e(),r=Kr(),o=V0();function s(u,c,f){var m=r(u)?e:n;return f&&o(u,c,f)&&(c=void 0),m(u,t(c,3))}return xT=s,xT}var p1e=m1e();const h1e=It(p1e);var eo=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},wT,C8;function g1e(){if(C8)return wT;C8=1;var e=Gq();function t(n,r,o){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return wT=t,wT}var NT,_8;function v1e(){if(_8)return NT;_8=1;var e=g1e(),t=Fq(),n=co();function r(o,s){var u={};return s=n(s,3),t(o,function(c,f,m){e(u,f,s(c,f,m))}),u}return NT=r,NT}var y1e=v1e();const b1e=It(y1e);var ET,D8;function x1e(){if(D8)return ET;D8=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(!n(t[r],r,t))return!1;return!0}return ET=e,ET}var ST,R8;function w1e(){if(R8)return ST;R8=1;var e=nR();function t(n,r){var o=!0;return e(n,function(s,u,c){return o=!!r(s,u,c),o}),o}return ST=t,ST}var AT,j8;function N1e(){if(j8)return AT;j8=1;var e=x1e(),t=w1e(),n=co(),r=Kr(),o=V0();function s(u,c,f){var m=r(u)?e:t;return f&&o(u,c,f)&&(c=void 0),m(u,n(c,3))}return AT=s,AT}var E1e=N1e();const IF=It(E1e);var S1e=["x","y"];function qd(e){"@babel/helpers - typeof";return qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qd(e)}function E_(){return E_=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},E_.apply(this,arguments)}function P8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P8(Object(n),!0).forEach(function(r){A1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A1e(e,t,n){return t=O1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O1e(e){var t=T1e(e,"string");return qd(t)=="symbol"?t:t+""}function T1e(e,t){if(qd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C1e(e,t){if(e==null)return{};var n=_1e(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function D1e(e,t){var n=e.x,r=e.y,o=C1e(e,S1e),s="".concat(n),u=parseInt(s,10),c="".concat(r),f=parseInt(c,10),m="".concat(t.height||o.height),g=parseInt(m,10),p="".concat(t.width||o.width),y=parseInt(p,10);return lp(lp(lp(lp(lp({},t),o),u?{x:u}:{}),f?{y:f}:{}),{},{height:g,width:y,name:t.name,radius:t.radius})}function M8(e){return F.createElement(DF,E_({shapeType:"rectangle",propTransformer:D1e,activeClassName:"recharts-active-bar"},e))}var R1e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,o){if(typeof t=="number")return t;var s=Oe(r)||Jle(r);return s?t(r,o):(s||zu(!1,"minPointSize callback function received a value with type of ".concat(qd(r),". Currently only numbers or null/undefined are supported.")),n)}},j1e=["value","background"],$F;function Hd(e){"@babel/helpers - typeof";return Hd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hd(e)}function P1e(e,t){if(e==null)return{};var n=M1e(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function M1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function zb(){return zb=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},zb.apply(this,arguments)}function L8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L8(Object(n),!0).forEach(function(r){il(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BF(r.key),r)}}function k1e(e,t,n){return t&&k8(e.prototype,t),n&&k8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function I1e(e,t,n){return t=Ub(t),$1e(e,VF()?Reflect.construct(t,n||[],Ub(e).constructor):t.apply(e,n))}function $1e(e,t){if(t&&(Hd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V1e(e)}function V1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VF=function(){return!!e})()}function Ub(e){return Ub=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ub(e)}function B1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S_(e,t)}function S_(e,t){return S_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},S_(e,t)}function il(e,t,n){return t=BF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BF(e){var t=z1e(e,"string");return Hd(t)=="symbol"?t:t+""}function z1e(e,t){if(Hd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zh=(function(e){function t(){var n;L1e(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=I1e(this,t,[].concat(o)),il(n,"state",{isAnimationFinished:!1}),il(n,"id",ff("recharts-bar-")),il(n,"handleAnimationEnd",function(){var u=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),u&&u()}),il(n,"handleAnimationStart",function(){var u=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),u&&u()}),n}return B1e(t,e),k1e(t,[{key:"renderRectanglesStatically",value:function(r){var o=this,s=this.props,u=s.shape,c=s.dataKey,f=s.activeIndex,m=s.activeBar,g=Fe(this.props,!1);return r&&r.map(function(p,y){var b=y===f,S=b?m:u,x=_n(_n(_n({},g),p),{},{isActive:b,option:S,index:y,dataKey:c,onAnimationStart:o.handleAnimationStart,onAnimationEnd:o.handleAnimationEnd});return F.createElement(Nt,zb({className:"recharts-bar-rectangle"},$u(o.props,p,y),{key:"rectangle-".concat(p?.x,"-").concat(p?.y,"-").concat(p?.value,"-").concat(y)}),F.createElement(M8,x))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,o=this.props,s=o.data,u=o.layout,c=o.isAnimationActive,f=o.animationBegin,m=o.animationDuration,g=o.animationEasing,p=o.animationId,y=this.state.prevData;return F.createElement(io,{begin:f,duration:m,isActive:c,easing:g,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var S=b.t,x=s.map(function(N,T){var C=y&&y[T];if(C){var D=Hr(C.x,N.x),P=Hr(C.y,N.y),A=Hr(C.width,N.width),_=Hr(C.height,N.height);return _n(_n({},N),{},{x:D(S),y:P(S),width:A(S),height:_(S)})}if(u==="horizontal"){var j=Hr(0,N.height),L=j(S);return _n(_n({},N),{},{y:N.y+N.height-L,height:L})}var V=Hr(0,N.width),B=V(S);return _n(_n({},N),{},{width:B})});return F.createElement(Nt,null,r.renderRectanglesStatically(x))})}},{key:"renderRectangles",value:function(){var r=this.props,o=r.data,s=r.isAnimationActive,u=this.state.prevData;return s&&o&&o.length&&(!u||!Ld(u,o))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(o)}},{key:"renderBackground",value:function(){var r=this,o=this.props,s=o.data,u=o.dataKey,c=o.activeIndex,f=Fe(this.props.background,!1);return s.map(function(m,g){m.value;var p=m.background,y=P1e(m,j1e);if(!p)return null;var b=_n(_n(_n(_n(_n({},y),{},{fill:"#eee"},p),f),$u(r.props,m,g)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:u,index:g,className:"recharts-bar-background-rectangle"});return F.createElement(M8,zb({key:"background-bar-".concat(g),option:r.props.background,isActive:g===c},b))})}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,u=s.data,c=s.xAxis,f=s.yAxis,m=s.layout,g=s.children,p=Ia(g,W0);if(!p)return null;var y=m==="vertical"?u[0].height/2:u[0].width/2,b=function(N,T){var C=Array.isArray(N.value)?N.value[1]:N.value;return{x:N.x,y:N.y,value:C,errorVal:$n(N,T)}},S={clipPath:r?"url(#clipPath-".concat(o,")"):null};return F.createElement(Nt,S,p.map(function(x){return F.cloneElement(x,{key:"error-bar-".concat(o,"-").concat(x.props.dataKey),data:u,xAxis:c,yAxis:f,layout:m,offset:y,dataPointFormatter:b})}))}},{key:"render",value:function(){var r=this.props,o=r.hide,s=r.data,u=r.className,c=r.xAxis,f=r.yAxis,m=r.left,g=r.top,p=r.width,y=r.height,b=r.isAnimationActive,S=r.background,x=r.id;if(o||!s||!s.length)return null;var N=this.state.isAnimationFinished,T=nt("recharts-bar",u),C=c&&c.allowDataOverflow,D=f&&f.allowDataOverflow,P=C||D,A=rt(x)?this.id:x;return F.createElement(Nt,{className:T},C||D?F.createElement("defs",null,F.createElement("clipPath",{id:"clipPath-".concat(A)},F.createElement("rect",{x:C?m:m-p/2,y:D?g:g-y/2,width:C?p:p*2,height:D?y:y*2}))):null,F.createElement(Nt,{className:"recharts-bar-rectangles",clipPath:P?"url(#clipPath-".concat(A,")"):null},S?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(P,A),(!b||N)&&Zo.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:o.curData}:r.data!==o.curData?{curData:r.data}:null}}])})(R.PureComponent);$F=zh;il(zh,"displayName","Bar");il(zh,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Wu.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});il(zh,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,s=e.xAxis,u=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,m=e.stackedData,g=e.dataStartIndex,p=e.displayedData,y=e.offset,b=mve(r,n);if(!b)return null;var S=t.layout,x=n.type.defaultProps,N=x!==void 0?_n(_n({},x),n.props):n.props,T=N.dataKey,C=N.children,D=N.minPointSize,P=S==="horizontal"?u:s,A=m?P.scale.domain():null,_=xve({numericAxis:P}),j=Ia(C,B0),L=p.map(function(V,B){var U,H,G,Y,J,q;m?U=pve(m[g+B],A):(U=$n(V,T),Array.isArray(U)||(U=[_,U]));var z=R1e(D,$F.defaultProps.minPointSize)(U[1],B);if(S==="horizontal"){var K,te=[u.scale(U[0]),u.scale(U[1])],ne=te[0],k=te[1];H=n7({axis:s,ticks:c,bandSize:o,offset:b.offset,entry:V,index:B}),G=(K=k??ne)!==null&&K!==void 0?K:void 0,Y=b.size;var Q=ne-k;if(J=Number.isNaN(Q)?0:Q,q={x:H,y:u.y,width:Y,height:u.height},Math.abs(z)>0&&Math.abs(J)<Math.abs(z)){var W=Dr(J||z)*(Math.abs(z)-Math.abs(J));G-=W,J+=W}}else{var ae=[s.scale(U[0]),s.scale(U[1])],ge=ae[0],Ne=ae[1];if(H=ge,G=n7({axis:u,ticks:f,bandSize:o,offset:b.offset,entry:V,index:B}),Y=Ne-ge,J=b.size,q={x:s.x,y:G,width:s.width,height:J},Math.abs(z)>0&&Math.abs(Y)<Math.abs(z)){var ce=Dr(Y||z)*(Math.abs(z)-Math.abs(Y));Y+=ce}}return _n(_n(_n({},V),{},{x:H,y:G,width:Y,height:J,value:m?U:U[1],payload:V,background:q},j&&j[B]&&j[B].props),{},{tooltipPayload:[uF(n,V)],tooltipPosition:{x:H+Y/2,y:G+J/2}})});return _n({data:L,layout:S},y)});function vh(e){"@babel/helpers - typeof";return vh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vh(e)}function U1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zF(r.key),r)}}function q1e(e,t,n){return t&&I8(e.prototype,t),n&&I8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$8(Object(n),!0).forEach(function(r){ix(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ix(e,t,n){return t=zF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zF(e){var t=H1e(e,"string");return vh(t)=="symbol"?t:t+""}function H1e(e,t){if(vh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var F1e=function(t,n,r,o,s){var u=t.width,c=t.height,f=t.layout,m=t.children,g=Object.keys(n),p={left:r.left,leftMirror:r.left,right:u-r.right,rightMirror:u-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},y=!!ua(m,zh);return g.reduce(function(b,S){var x=n[S],N=x.orientation,T=x.domain,C=x.padding,D=C===void 0?{}:C,P=x.mirror,A=x.reversed,_="".concat(N).concat(P?"Mirror":""),j,L,V,B,U;if(x.type==="number"&&(x.padding==="gap"||x.padding==="no-gap")){var H=T[1]-T[0],G=1/0,Y=x.categoricalDomain.sort(nue);if(Y.forEach(function(ae,ge){ge>0&&(G=Math.min((ae||0)-(Y[ge-1]||0),G))}),Number.isFinite(G)){var J=G/H,q=x.layout==="vertical"?r.height:r.width;if(x.padding==="gap"&&(j=J*q/2),x.padding==="no-gap"){var z=Rr(t.barCategoryGap,J*q),K=J*q/2;j=K-z-(K-z)/q*z}}}o==="xAxis"?L=[r.left+(D.left||0)+(j||0),r.left+r.width-(D.right||0)-(j||0)]:o==="yAxis"?L=f==="horizontal"?[r.top+r.height-(D.bottom||0),r.top+(D.top||0)]:[r.top+(D.top||0)+(j||0),r.top+r.height-(D.bottom||0)-(j||0)]:L=x.range,A&&(L=[L[1],L[0]]);var te=iF(x,s,y),ne=te.scale,k=te.realScaleType;ne.domain(T).range(L),oF(ne);var Q=sF(ne,ti(ti({},x),{},{realScaleType:k}));o==="xAxis"?(U=N==="top"&&!P||N==="bottom"&&P,V=r.left,B=p[_]-U*x.height):o==="yAxis"&&(U=N==="left"&&!P||N==="right"&&P,V=p[_]-U*x.width,B=r.top);var W=ti(ti(ti({},x),Q),{},{realScaleType:k,x:V,y:B,scale:ne,width:o==="xAxis"?r.width:x.width,height:o==="yAxis"?r.height:x.height});return W.bandSize=Ab(W,Q),!x.hide&&o==="xAxis"?p[_]+=(U?-1:1)*W.height:x.hide||(p[_]+=(U?-1:1)*W.width),ti(ti({},b),{},ix({},S,W))},{})},UF=function(t,n){var r=t.x,o=t.y,s=n.x,u=n.y;return{x:Math.min(r,s),y:Math.min(o,u),width:Math.abs(s-r),height:Math.abs(u-o)}},K1e=function(t){var n=t.x1,r=t.y1,o=t.x2,s=t.y2;return UF({x:n,y:r},{x:o,y:s})},qF=(function(){function e(t){U1e(this,e),this.scale=t}return q1e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.bandAware,s=r.position;if(n!==void 0){if(s)switch(s){case"start":return this.scale(n);case"middle":{var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+u}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(o){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),o=r[0],s=r[r.length-1];return o<=s?n>=o&&n<=s:n>=s&&n<=o}}],[{key:"create",value:function(n){return new e(n)}}])})();ix(qF,"EPS",1e-4);var RR=function(t){var n=Object.keys(t).reduce(function(r,o){return ti(ti({},r),{},ix({},o,qF.create(t[o])))},{});return ti(ti({},n),{},{apply:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=s.bandAware,c=s.position;return b1e(o,function(f,m){return n[m].apply(f,{bandAware:u,position:c})})},isInRange:function(o){return IF(o,function(s,u){return n[u].isInRange(s)})}})};function G1e(e){return(e%180+180)%180}var Y1e=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=G1e(o),u=s*Math.PI/180,c=Math.atan(r/n),f=u>c&&u<Math.PI-c?r/Math.sin(u):n/Math.cos(u);return Math.abs(f)},OT,V8;function Q1e(){if(V8)return OT;V8=1;var e=co(),t=kh(),n=I0();function r(o){return function(s,u,c){var f=Object(s);if(!t(s)){var m=e(u,3);s=n(s),u=function(p){return m(f[p],p,f)}}var g=o(s,u,c);return g>-1?f[m?s[g]:g]:void 0}}return OT=r,OT}var TT,B8;function X1e(){if(B8)return TT;B8=1;var e=PF();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return TT=t,TT}var CT,z8;function W1e(){if(z8)return CT;z8=1;var e=Bq(),t=co(),n=X1e(),r=Math.max;function o(s,u,c){var f=s==null?0:s.length;if(!f)return-1;var m=c==null?0:n(c);return m<0&&(m=r(f+m,0)),e(s,t(u,3),m)}return CT=o,CT}var _T,U8;function Z1e(){if(U8)return _T;U8=1;var e=Q1e(),t=W1e(),n=e(t);return _T=n,_T}var J1e=Z1e();const ewe=It(J1e);var twe=nq();const nwe=It(twe);var rwe=nwe(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function qb(e){"@babel/helpers - typeof";return qb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qb(e)}var jR=R.createContext(void 0),PR=R.createContext(void 0),HF=R.createContext(void 0),FF=R.createContext({}),KF=R.createContext(void 0),GF=R.createContext(0),YF=R.createContext(0),q8=function(t){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,s=n.offset,u=t.clipPathId,c=t.children,f=t.width,m=t.height,g=rwe(s);return F.createElement(jR.Provider,{value:r},F.createElement(PR.Provider,{value:o},F.createElement(FF.Provider,{value:s},F.createElement(HF.Provider,{value:g},F.createElement(KF.Provider,{value:u},F.createElement(GF.Provider,{value:m},F.createElement(YF.Provider,{value:f},c)))))))},awe=function(){return R.useContext(KF)};function QF(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var XF=function(t){var n=R.useContext(jR);n==null&&zu(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?");var r=n[t];return r==null&&zu(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(qb(t),"]. ").concat(QF(n))),r},iwe=function(){var t=R.useContext(jR);return nl(t)},owe=function(){var t=R.useContext(PR),n=ewe(t,function(r){return IF(r.domain,Number.isFinite)});return n||nl(t)},WF=function(t){var n=R.useContext(PR);n==null&&zu(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?");var r=n[t];return r==null&&zu(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(qb(t),"]. ").concat(QF(n))),r},swe=function(){var t=R.useContext(HF);return t},lwe=function(){return R.useContext(FF)},MR=function(){return R.useContext(YF)},LR=function(){return R.useContext(GF)};function Fd(e){"@babel/helpers - typeof";return Fd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fd(e)}function uwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cwe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JF(r.key),r)}}function dwe(e,t,n){return t&&cwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fwe(e,t,n){return t=Hb(t),mwe(e,ZF()?Reflect.construct(t,n||[],Hb(e).constructor):t.apply(e,n))}function mwe(e,t){if(t&&(Fd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pwe(e)}function pwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZF=function(){return!!e})()}function Hb(e){return Hb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hb(e)}function hwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A_(e,t)}function A_(e,t){return A_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},A_(e,t)}function H8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function F8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H8(Object(n),!0).forEach(function(r){kR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kR(e,t,n){return t=JF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JF(e){var t=gwe(e,"string");return Fd(t)=="symbol"?t:t+""}function gwe(e,t){if(Fd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vwe(e,t){return wwe(e)||xwe(e,t)||bwe(e,t)||ywe()}function ywe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bwe(e,t){if(e){if(typeof e=="string")return K8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K8(e,t)}}function K8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xwe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,c=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return c}}function wwe(e){if(Array.isArray(e))return e}function O_(){return O_=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},O_.apply(this,arguments)}var Nwe=function(t,n){var r;return F.isValidElement(t)?r=F.cloneElement(t,n):Qe(t)?r=t(n):r=F.createElement("line",O_({},n,{className:"recharts-reference-line-line"})),r},Ewe=function(t,n,r,o,s,u,c,f,m){var g=s.x,p=s.y,y=s.width,b=s.height;if(r){var S=m.y,x=t.y.apply(S,{position:u});if(eo(m,"discard")&&!t.y.isInRange(x))return null;var N=[{x:g+y,y:x},{x:g,y:x}];return f==="left"?N.reverse():N}if(n){var T=m.x,C=t.x.apply(T,{position:u});if(eo(m,"discard")&&!t.x.isInRange(C))return null;var D=[{x:C,y:p+b},{x:C,y:p}];return c==="top"?D.reverse():D}if(o){var P=m.segment,A=P.map(function(_){return t.apply(_,{position:u})});return eo(m,"discard")&&h1e(A,function(_){return!t.isInRange(_)})?null:A}return null};function Swe(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,s=e.yAxisId,u=e.shape,c=e.className,f=e.alwaysShow,m=awe(),g=XF(o),p=WF(s),y=swe();if(!m||!y)return null;ii(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var b=RR({x:g.scale,y:p.scale}),S=Vn(t),x=Vn(n),N=r&&r.length===2,T=Ewe(b,S,x,N,y,e.position,g.orientation,p.orientation,e);if(!T)return null;var C=vwe(T,2),D=C[0],P=D.x,A=D.y,_=C[1],j=_.x,L=_.y,V=eo(e,"hidden")?"url(#".concat(m,")"):void 0,B=F8(F8({clipPath:V},Fe(e,!0)),{},{x1:P,y1:A,x2:j,y2:L});return F.createElement(Nt,{className:nt("recharts-reference-line",c)},Nwe(u,B),Xn.renderCallByParent(e,K1e({x1:P,y1:A,x2:j,y2:L})))}var IR=(function(e){function t(){return uwe(this,t),fwe(this,t,arguments)}return hwe(t,e),dwe(t,[{key:"render",value:function(){return F.createElement(Swe,this.props)}}])})(F.Component);kR(IR,"displayName","ReferenceLine");kR(IR,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function T_(){return T_=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},T_.apply(this,arguments)}function Kd(e){"@babel/helpers - typeof";return Kd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kd(e)}function G8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Y8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G8(Object(n),!0).forEach(function(r){ox(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Awe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Owe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tK(r.key),r)}}function Twe(e,t,n){return t&&Owe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cwe(e,t,n){return t=Fb(t),_we(e,eK()?Reflect.construct(t,n||[],Fb(e).constructor):t.apply(e,n))}function _we(e,t){if(t&&(Kd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dwe(e)}function Dwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eK=function(){return!!e})()}function Fb(e){return Fb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fb(e)}function Rwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C_(e,t)}function C_(e,t){return C_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},C_(e,t)}function ox(e,t,n){return t=tK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tK(e){var t=jwe(e,"string");return Kd(t)=="symbol"?t:t+""}function jwe(e,t){if(Kd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pwe=function(t){var n=t.x,r=t.y,o=t.xAxis,s=t.yAxis,u=RR({x:o.scale,y:s.scale}),c=u.apply({x:n,y:r},{bandAware:!0});return eo(t,"discard")&&!u.isInRange(c)?null:c},sx=(function(e){function t(){return Awe(this,t),Cwe(this,t,arguments)}return Rwe(t,e),Twe(t,[{key:"render",value:function(){var r=this.props,o=r.x,s=r.y,u=r.r,c=r.alwaysShow,f=r.clipPathId,m=Vn(o),g=Vn(s);if(ii(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!m||!g)return null;var p=Pwe(this.props);if(!p)return null;var y=p.x,b=p.y,S=this.props,x=S.shape,N=S.className,T=eo(this.props,"hidden")?"url(#".concat(f,")"):void 0,C=Y8(Y8({clipPath:T},Fe(this.props,!0)),{},{cx:y,cy:b});return F.createElement(Nt,{className:nt("recharts-reference-dot",N)},t.renderDot(x,C),Xn.renderCallByParent(this.props,{x:y-u,y:b-u,width:2*u,height:2*u}))}}])})(F.Component);ox(sx,"displayName","ReferenceDot");ox(sx,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ox(sx,"renderDot",function(e,t){var n;return F.isValidElement(e)?n=F.cloneElement(e,t):Qe(e)?n=e(t):n=F.createElement(Z0,T_({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function __(){return __=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},__.apply(this,arguments)}function Gd(e){"@babel/helpers - typeof";return Gd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gd(e)}function Q8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function X8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q8(Object(n),!0).forEach(function(r){lx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lwe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rK(r.key),r)}}function kwe(e,t,n){return t&&Lwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iwe(e,t,n){return t=Kb(t),$we(e,nK()?Reflect.construct(t,n||[],Kb(e).constructor):t.apply(e,n))}function $we(e,t){if(t&&(Gd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vwe(e)}function Vwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nK=function(){return!!e})()}function Kb(e){return Kb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kb(e)}function Bwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D_(e,t)}function D_(e,t){return D_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},D_(e,t)}function lx(e,t,n){return t=rK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rK(e){var t=zwe(e,"string");return Gd(t)=="symbol"?t:t+""}function zwe(e,t){if(Gd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Uwe=function(t,n,r,o,s){var u=s.x1,c=s.x2,f=s.y1,m=s.y2,g=s.xAxis,p=s.yAxis;if(!g||!p)return null;var y=RR({x:g.scale,y:p.scale}),b={x:t?y.x.apply(u,{position:"start"}):y.x.rangeMin,y:r?y.y.apply(f,{position:"start"}):y.y.rangeMin},S={x:n?y.x.apply(c,{position:"end"}):y.x.rangeMax,y:o?y.y.apply(m,{position:"end"}):y.y.rangeMax};return eo(s,"discard")&&(!y.isInRange(b)||!y.isInRange(S))?null:UF(b,S)},ux=(function(e){function t(){return Mwe(this,t),Iwe(this,t,arguments)}return Bwe(t,e),kwe(t,[{key:"render",value:function(){var r=this.props,o=r.x1,s=r.x2,u=r.y1,c=r.y2,f=r.className,m=r.alwaysShow,g=r.clipPathId;ii(m===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Vn(o),y=Vn(s),b=Vn(u),S=Vn(c),x=this.props.shape;if(!p&&!y&&!b&&!S&&!x)return null;var N=Uwe(p,y,b,S,this.props);if(!N&&!x)return null;var T=eo(this.props,"hidden")?"url(#".concat(g,")"):void 0;return F.createElement(Nt,{className:nt("recharts-reference-area",f)},t.renderRect(x,X8(X8({clipPath:T},Fe(this.props,!0)),N)),Xn.renderCallByParent(this.props,N))}}])})(F.Component);lx(ux,"displayName","ReferenceArea");lx(ux,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});lx(ux,"renderRect",function(e,t){var n;return F.isValidElement(e)?n=F.cloneElement(e,t):Qe(e)?n=e(t):n=F.createElement(DR,__({},t,{className:"recharts-reference-area-rect"})),n});function aK(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],o=0;o<e.length;o+=t)r.push(e[o]);return r}function qwe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Y1e(r,n)}function Hwe(e,t,n){var r=n==="width",o=e.x,s=e.y,u=e.width,c=e.height;return t===1?{start:r?o:s,end:r?o+u:s+c}:{start:r?o+u:s+c,end:r?o:s}}function Gb(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-o)<=0}function Fwe(e,t){return aK(e,t+1)}function Kwe(e,t,n,r,o){for(var s=(r||[]).slice(),u=t.start,c=t.end,f=0,m=1,g=u,p=function(){var S=r?.[f];if(S===void 0)return{v:aK(r,m)};var x=f,N,T=function(){return N===void 0&&(N=n(S,x)),N},C=S.coordinate,D=f===0||Gb(e,C,T,g,c);D||(f=0,g=u,m+=1),D&&(g=C+e*(T()/2+o),f+=m)},y;m<=s.length;)if(y=p(),y)return y.v;return[]}function yh(e){"@babel/helpers - typeof";return yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yh(e)}function W8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W8(Object(n),!0).forEach(function(r){Gwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gwe(e,t,n){return t=Ywe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ywe(e){var t=Qwe(e,"string");return yh(t)=="symbol"?t:t+""}function Qwe(e,t){if(yh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xwe(e,t,n,r,o){for(var s=(r||[]).slice(),u=s.length,c=t.start,f=t.end,m=function(y){var b=s[y],S,x=function(){return S===void 0&&(S=n(b,y)),S};if(y===u-1){var N=e*(b.coordinate+e*x()/2-f);s[y]=b=cr(cr({},b),{},{tickCoord:N>0?b.coordinate-N*e:b.coordinate})}else s[y]=b=cr(cr({},b),{},{tickCoord:b.coordinate});var T=Gb(e,b.tickCoord,x,c,f);T&&(f=b.tickCoord-e*(x()/2+o),s[y]=cr(cr({},b),{},{isShow:!0}))},g=u-1;g>=0;g--)m(g);return s}function Wwe(e,t,n,r,o,s){var u=(r||[]).slice(),c=u.length,f=t.start,m=t.end;if(s){var g=r[c-1],p=n(g,c-1),y=e*(g.coordinate+e*p/2-m);u[c-1]=g=cr(cr({},g),{},{tickCoord:y>0?g.coordinate-y*e:g.coordinate});var b=Gb(e,g.tickCoord,function(){return p},f,m);b&&(m=g.tickCoord-e*(p/2+o),u[c-1]=cr(cr({},g),{},{isShow:!0}))}for(var S=s?c-1:c,x=function(C){var D=u[C],P,A=function(){return P===void 0&&(P=n(D,C)),P};if(C===0){var _=e*(D.coordinate-e*A()/2-f);u[C]=D=cr(cr({},D),{},{tickCoord:_<0?D.coordinate-_*e:D.coordinate})}else u[C]=D=cr(cr({},D),{},{tickCoord:D.coordinate});var j=Gb(e,D.tickCoord,A,f,m);j&&(f=D.tickCoord+e*(A()/2+o),u[C]=cr(cr({},D),{},{isShow:!0}))},N=0;N<S;N++)x(N);return u}function $R(e,t,n){var r=e.tick,o=e.ticks,s=e.viewBox,u=e.minTickGap,c=e.orientation,f=e.interval,m=e.tickFormatter,g=e.unit,p=e.angle;if(!o||!o.length||!r)return[];if(Oe(f)||Wu.isSsr)return Fwe(o,typeof f=="number"&&Oe(f)?f:0);var y=[],b=c==="top"||c==="bottom"?"width":"height",S=g&&b==="width"?wp(g,{fontSize:t,letterSpacing:n}):{width:0,height:0},x=function(D,P){var A=Qe(m)?m(D.value,P):D.value;return b==="width"?qwe(wp(A,{fontSize:t,letterSpacing:n}),S,p):wp(A,{fontSize:t,letterSpacing:n})[b]},N=o.length>=2?Dr(o[1].coordinate-o[0].coordinate):1,T=Hwe(s,N,b);return f==="equidistantPreserveStart"?Kwe(N,T,x,o,u):(f==="preserveStart"||f==="preserveStartEnd"?y=Wwe(N,T,x,o,u,f==="preserveStartEnd"):y=Xwe(N,T,x,o,u),y.filter(function(C){return C.isShow}))}var Zwe=["viewBox"],Jwe=["viewBox"],eNe=["ticks"];function Yd(e){"@babel/helpers - typeof";return Yd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yd(e)}function gd(){return gd=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},gd.apply(this,arguments)}function Z8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z8(Object(n),!0).forEach(function(r){VR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DT(e,t){if(e==null)return{};var n=tNe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tNe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oK(r.key),r)}}function rNe(e,t,n){return t&&J8(e.prototype,t),n&&J8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aNe(e,t,n){return t=Yb(t),iNe(e,iK()?Reflect.construct(t,n||[],Yb(e).constructor):t.apply(e,n))}function iNe(e,t){if(t&&(Yd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oNe(e)}function oNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iK=function(){return!!e})()}function Yb(e){return Yb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yb(e)}function sNe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R_(e,t)}function R_(e,t){return R_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},R_(e,t)}function VR(e,t,n){return t=oK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oK(e){var t=lNe(e,"string");return Yd(t)=="symbol"?t:t+""}function lNe(e,t){if(Yd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vf=(function(e){function t(n){var r;return nNe(this,t),r=aNe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return sNe(t,e),rNe(t,[{key:"shouldComponentUpdate",value:function(r,o){var s=r.viewBox,u=DT(r,Zwe),c=this.props,f=c.viewBox,m=DT(c,Jwe);return!xd(s,f)||!xd(u,m)||!xd(o,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var o=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];o&&this.setState({fontSize:window.getComputedStyle(o).fontSize,letterSpacing:window.getComputedStyle(o).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var o=this.props,s=o.x,u=o.y,c=o.width,f=o.height,m=o.orientation,g=o.tickSize,p=o.mirror,y=o.tickMargin,b,S,x,N,T,C,D=p?-1:1,P=r.tickSize||g,A=Oe(r.tickCoord)?r.tickCoord:r.coordinate;switch(m){case"top":b=S=r.coordinate,N=u+ +!p*f,x=N-D*P,C=x-D*y,T=A;break;case"left":x=N=r.coordinate,S=s+ +!p*c,b=S-D*P,T=b-D*y,C=A;break;case"right":x=N=r.coordinate,S=s+ +p*c,b=S+D*P,T=b+D*y,C=A;break;default:b=S=r.coordinate,N=u+ +p*f,x=N+D*P,C=x+D*y,T=A;break}return{line:{x1:b,y1:x,x2:S,y2:N},tick:{x:T,y:C}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,o=r.orientation,s=r.mirror,u;switch(o){case"left":u=s?"start":"end";break;case"right":u=s?"end":"start";break;default:u="middle";break}return u}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,o=r.orientation,s=r.mirror,u="end";switch(o){case"left":case"right":u="middle";break;case"top":u=s?"start":"end";break;default:u=s?"end":"start";break}return u}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.x,s=r.y,u=r.width,c=r.height,f=r.orientation,m=r.mirror,g=r.axisLine,p=kn(kn(kn({},Fe(this.props,!1)),Fe(g,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var y=+(f==="top"&&!m||f==="bottom"&&m);p=kn(kn({},p),{},{x1:o,y1:s+y*c,x2:o+u,y2:s+y*c})}else{var b=+(f==="left"&&!m||f==="right"&&m);p=kn(kn({},p),{},{x1:o+b*u,y1:s,x2:o+b*u,y2:s+c})}return F.createElement("line",gd({},p,{className:nt("recharts-cartesian-axis-line",ma(g,"className"))}))}},{key:"renderTicks",value:function(r,o,s){var u=this,c=this.props,f=c.tickLine,m=c.stroke,g=c.tick,p=c.tickFormatter,y=c.unit,b=$R(kn(kn({},this.props),{},{ticks:r}),o,s),S=this.getTickTextAnchor(),x=this.getTickVerticalAnchor(),N=Fe(this.props,!1),T=Fe(g,!1),C=kn(kn({},N),{},{fill:"none"},Fe(f,!1)),D=b.map(function(P,A){var _=u.getTickLineCoord(P),j=_.line,L=_.tick,V=kn(kn(kn(kn({textAnchor:S,verticalAnchor:x},N),{},{stroke:"none",fill:m},T),L),{},{index:A,payload:P,visibleTicksCount:b.length,tickFormatter:p});return F.createElement(Nt,gd({className:"recharts-cartesian-axis-tick",key:"tick-".concat(P.value,"-").concat(P.coordinate,"-").concat(P.tickCoord)},$u(u.props,P,A)),f&&F.createElement("line",gd({},C,j,{className:nt("recharts-cartesian-axis-tick-line",ma(f,"className"))})),g&&t.renderTickItem(g,V,"".concat(Qe(p)?p(P.value,A):P.value).concat(y||"")))});return F.createElement("g",{className:"recharts-cartesian-axis-ticks"},D)}},{key:"render",value:function(){var r=this,o=this.props,s=o.axisLine,u=o.width,c=o.height,f=o.ticksGenerator,m=o.className,g=o.hide;if(g)return null;var p=this.props,y=p.ticks,b=DT(p,eNe),S=y;return Qe(f)&&(S=y&&y.length>0?f(this.props):f(b)),u<=0||c<=0||!S||!S.length?null:F.createElement(Nt,{className:nt("recharts-cartesian-axis",m),ref:function(N){r.layerReference=N}},s&&this.renderAxisLine(),this.renderTicks(S,this.state.fontSize,this.state.letterSpacing),Xn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,o,s){var u,c=nt(o.className,"recharts-cartesian-axis-tick-value");return F.isValidElement(r)?u=F.cloneElement(r,kn(kn({},o),{},{className:c})):Qe(r)?u=r(kn(kn({},o),{},{className:c})):u=F.createElement(Vu,gd({},o,{className:"recharts-cartesian-axis-tick-value"}),s),u}}])})(R.Component);VR(vf,"displayName","CartesianAxis");VR(vf,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var uNe=["x1","y1","x2","y2","key"],cNe=["offset"];function Uu(e){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function ez(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ez(Object(n),!0).forEach(function(r){dNe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ez(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dNe(e,t,n){return t=fNe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fNe(e){var t=mNe(e,"string");return Uu(t)=="symbol"?t:t+""}function mNe(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bu(){return bu=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},bu.apply(this,arguments)}function tz(e,t){if(e==null)return{};var n=pNe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pNe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var hNe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,o=t.x,s=t.y,u=t.width,c=t.height,f=t.ry;return F.createElement("rect",{x:o,y:s,ry:f,width:u,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function sK(e,t){var n;if(F.isValidElement(e))n=F.cloneElement(e,t);else if(Qe(e))n=e(t);else{var r=t.x1,o=t.y1,s=t.x2,u=t.y2,c=t.key,f=tz(t,uNe),m=Fe(f,!1);m.offset;var g=tz(m,cNe);n=F.createElement("line",bu({},g,{x1:r,y1:o,x2:s,y2:u,fill:"none",key:c}))}return n}function gNe(e){var t=e.x,n=e.width,r=e.horizontal,o=r===void 0?!0:r,s=e.horizontalPoints;if(!o||!s||!s.length)return null;var u=s.map(function(c,f){var m=fr(fr({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return sK(o,m)});return F.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function vNe(e){var t=e.y,n=e.height,r=e.vertical,o=r===void 0?!0:r,s=e.verticalPoints;if(!o||!s||!s.length)return null;var u=s.map(function(c,f){var m=fr(fr({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return sK(o,m)});return F.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function yNe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,s=e.width,u=e.height,c=e.horizontalPoints,f=e.horizontal,m=f===void 0?!0:f;if(!m||!t||!t.length)return null;var g=c.map(function(y){return Math.round(y+o-o)}).sort(function(y,b){return y-b});o!==g[0]&&g.unshift(0);var p=g.map(function(y,b){var S=!g[b+1],x=S?o+u-y:g[b+1]-y;if(x<=0)return null;var N=b%t.length;return F.createElement("rect",{key:"react-".concat(b),y,x:r,height:x,width:s,stroke:"none",fill:t[N],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return F.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function bNe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,o=e.fillOpacity,s=e.x,u=e.y,c=e.width,f=e.height,m=e.verticalPoints;if(!n||!r||!r.length)return null;var g=m.map(function(y){return Math.round(y+s-s)}).sort(function(y,b){return y-b});s!==g[0]&&g.unshift(0);var p=g.map(function(y,b){var S=!g[b+1],x=S?s+c-y:g[b+1]-y;if(x<=0)return null;var N=b%r.length;return F.createElement("rect",{key:"react-".concat(b),x:y,y:u,width:x,height:f,stroke:"none",fill:r[N],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return F.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var xNe=function(t,n){var r=t.xAxis,o=t.width,s=t.height,u=t.offset;return aF($R(fr(fr(fr({},vf.defaultProps),r),{},{ticks:Qo(r,!0),viewBox:{x:0,y:0,width:o,height:s}})),u.left,u.left+u.width,n)},wNe=function(t,n){var r=t.yAxis,o=t.width,s=t.height,u=t.offset;return aF($R(fr(fr(fr({},vf.defaultProps),r),{},{ticks:Qo(r,!0),viewBox:{x:0,y:0,width:o,height:s}})),u.top,u.top+u.height,n)},dd={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function lK(e){var t,n,r,o,s,u,c=MR(),f=LR(),m=lwe(),g=fr(fr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:dd.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:dd.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:dd.horizontal,horizontalFill:(o=e.horizontalFill)!==null&&o!==void 0?o:dd.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:dd.vertical,verticalFill:(u=e.verticalFill)!==null&&u!==void 0?u:dd.verticalFill,x:Oe(e.x)?e.x:m.left,y:Oe(e.y)?e.y:m.top,width:Oe(e.width)?e.width:m.width,height:Oe(e.height)?e.height:m.height}),p=g.x,y=g.y,b=g.width,S=g.height,x=g.syncWithTicks,N=g.horizontalValues,T=g.verticalValues,C=iwe(),D=owe();if(!Oe(b)||b<=0||!Oe(S)||S<=0||!Oe(p)||p!==+p||!Oe(y)||y!==+y)return null;var P=g.verticalCoordinatesGenerator||xNe,A=g.horizontalCoordinatesGenerator||wNe,_=g.horizontalPoints,j=g.verticalPoints;if((!_||!_.length)&&Qe(A)){var L=N&&N.length,V=A({yAxis:D?fr(fr({},D),{},{ticks:L?N:D.ticks}):void 0,width:c,height:f,offset:m},L?!0:x);ii(Array.isArray(V),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Uu(V),"]")),Array.isArray(V)&&(_=V)}if((!j||!j.length)&&Qe(P)){var B=T&&T.length,U=P({xAxis:C?fr(fr({},C),{},{ticks:B?T:C.ticks}):void 0,width:c,height:f,offset:m},B?!0:x);ii(Array.isArray(U),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Uu(U),"]")),Array.isArray(U)&&(j=U)}return F.createElement("g",{className:"recharts-cartesian-grid"},F.createElement(hNe,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),F.createElement(gNe,bu({},g,{offset:m,horizontalPoints:_,xAxis:C,yAxis:D})),F.createElement(vNe,bu({},g,{offset:m,verticalPoints:j,xAxis:C,yAxis:D})),F.createElement(yNe,bu({},g,{horizontalPoints:_})),F.createElement(bNe,bu({},g,{verticalPoints:j})))}lK.displayName="CartesianGrid";var NNe=["layout","type","stroke","connectNulls","isRange","ref"],ENe=["key"],uK;function Qd(e){"@babel/helpers - typeof";return Qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qd(e)}function cK(e,t){if(e==null)return{};var n=SNe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SNe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function xu(){return xu=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},xu.apply(this,arguments)}function nz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function el(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nz(Object(n),!0).forEach(function(r){Xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ANe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fK(r.key),r)}}function ONe(e,t,n){return t&&rz(e.prototype,t),n&&rz(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function TNe(e,t,n){return t=Qb(t),CNe(e,dK()?Reflect.construct(t,n||[],Qb(e).constructor):t.apply(e,n))}function CNe(e,t){if(t&&(Qd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _Ne(e)}function _Ne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dK=function(){return!!e})()}function Qb(e){return Qb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qb(e)}function DNe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j_(e,t)}function j_(e,t){return j_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},j_(e,t)}function Xi(e,t,n){return t=fK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fK(e){var t=RNe(e,"string");return Qd(t)=="symbol"?t:t+""}function RNe(e,t){if(Qd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var to=(function(e){function t(){var n;ANe(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=TNe(this,t,[].concat(o)),Xi(n,"state",{isAnimationFinished:!0}),Xi(n,"id",ff("recharts-area-")),Xi(n,"handleAnimationEnd",function(){var u=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Qe(u)&&u()}),Xi(n,"handleAnimationStart",function(){var u=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Qe(u)&&u()}),n}return DNe(t,e),ONe(t,[{key:"renderDots",value:function(r,o,s){var u=this.props.isAnimationActive,c=this.state.isAnimationFinished;if(u&&!c)return null;var f=this.props,m=f.dot,g=f.points,p=f.dataKey,y=Fe(this.props,!1),b=Fe(m,!0),S=g.map(function(N,T){var C=el(el(el({key:"dot-".concat(T),r:3},y),b),{},{index:T,cx:N.x,cy:N.y,dataKey:p,value:N.value,payload:N.payload,points:g});return t.renderDotItem(m,C)}),x={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(s,")"):null};return F.createElement(Nt,xu({className:"recharts-area-dots"},x),S)}},{key:"renderHorizontalRect",value:function(r){var o=this.props,s=o.baseLine,u=o.points,c=o.strokeWidth,f=u[0].x,m=u[u.length-1].x,g=r*Math.abs(f-m),p=al(u.map(function(y){return y.y||0}));return Oe(s)&&typeof s=="number"?p=Math.max(s,p):s&&Array.isArray(s)&&s.length&&(p=Math.max(al(s.map(function(y){return y.y||0})),p)),Oe(p)?F.createElement("rect",{x:f<m?f:f-g,y:0,width:g,height:Math.floor(p+(c?parseInt("".concat(c),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var o=this.props,s=o.baseLine,u=o.points,c=o.strokeWidth,f=u[0].y,m=u[u.length-1].y,g=r*Math.abs(f-m),p=al(u.map(function(y){return y.x||0}));return Oe(s)&&typeof s=="number"?p=Math.max(s,p):s&&Array.isArray(s)&&s.length&&(p=Math.max(al(s.map(function(y){return y.x||0})),p)),Oe(p)?F.createElement("rect",{x:0,y:f<m?f:f-g,width:p+(c?parseInt("".concat(c),10):1),height:Math.floor(g)}):null}},{key:"renderClipRect",value:function(r){var o=this.props.layout;return o==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,o,s,u){var c=this.props,f=c.layout,m=c.type,g=c.stroke,p=c.connectNulls,y=c.isRange;c.ref;var b=cK(c,NNe);return F.createElement(Nt,{clipPath:s?"url(#clipPath-".concat(u,")"):null},F.createElement(Ed,xu({},Fe(b,!0),{points:r,connectNulls:p,type:m,baseLine:o,layout:f,stroke:"none",className:"recharts-area-area"})),g!=="none"&&F.createElement(Ed,xu({},Fe(this.props,!1),{className:"recharts-area-curve",layout:f,type:m,connectNulls:p,fill:"none",points:r})),g!=="none"&&y&&F.createElement(Ed,xu({},Fe(this.props,!1),{className:"recharts-area-curve",layout:f,type:m,connectNulls:p,fill:"none",points:o})))}},{key:"renderAreaWithAnimation",value:function(r,o){var s=this,u=this.props,c=u.points,f=u.baseLine,m=u.isAnimationActive,g=u.animationBegin,p=u.animationDuration,y=u.animationEasing,b=u.animationId,S=this.state,x=S.prevPoints,N=S.prevBaseLine;return F.createElement(io,{begin:g,duration:p,isActive:m,easing:y,from:{t:0},to:{t:1},key:"area-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(T){var C=T.t;if(x){var D=x.length/c.length,P=c.map(function(L,V){var B=Math.floor(V*D);if(x[B]){var U=x[B],H=Hr(U.x,L.x),G=Hr(U.y,L.y);return el(el({},L),{},{x:H(C),y:G(C)})}return L}),A;if(Oe(f)&&typeof f=="number"){var _=Hr(N,f);A=_(C)}else if(rt(f)||df(f)){var j=Hr(N,0);A=j(C)}else A=f.map(function(L,V){var B=Math.floor(V*D);if(N[B]){var U=N[B],H=Hr(U.x,L.x),G=Hr(U.y,L.y);return el(el({},L),{},{x:H(C),y:G(C)})}return L});return s.renderAreaStatically(P,A,r,o)}return F.createElement(Nt,null,F.createElement("defs",null,F.createElement("clipPath",{id:"animationClipPath-".concat(o)},s.renderClipRect(C))),F.createElement(Nt,{clipPath:"url(#animationClipPath-".concat(o,")")},s.renderAreaStatically(c,f,r,o)))})}},{key:"renderArea",value:function(r,o){var s=this.props,u=s.points,c=s.baseLine,f=s.isAnimationActive,m=this.state,g=m.prevPoints,p=m.prevBaseLine,y=m.totalLength;return f&&u&&u.length&&(!g&&y>0||!Ld(g,u)||!Ld(p,c))?this.renderAreaWithAnimation(r,o):this.renderAreaStatically(u,c,r,o)}},{key:"render",value:function(){var r,o=this.props,s=o.hide,u=o.dot,c=o.points,f=o.className,m=o.top,g=o.left,p=o.xAxis,y=o.yAxis,b=o.width,S=o.height,x=o.isAnimationActive,N=o.id;if(s||!c||!c.length)return null;var T=this.state.isAnimationFinished,C=c.length===1,D=nt("recharts-area",f),P=p&&p.allowDataOverflow,A=y&&y.allowDataOverflow,_=P||A,j=rt(N)?this.id:N,L=(r=Fe(u,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},V=L.r,B=V===void 0?3:V,U=L.strokeWidth,H=U===void 0?2:U,G=due(u)?u:{},Y=G.clipDot,J=Y===void 0?!0:Y,q=B*2+H;return F.createElement(Nt,{className:D},P||A?F.createElement("defs",null,F.createElement("clipPath",{id:"clipPath-".concat(j)},F.createElement("rect",{x:P?g:g-b/2,y:A?m:m-S/2,width:P?b:b*2,height:A?S:S*2})),!J&&F.createElement("clipPath",{id:"clipPath-dots-".concat(j)},F.createElement("rect",{x:g-q/2,y:m-q/2,width:b+q,height:S+q}))):null,C?null:this.renderArea(_,j),(u||C)&&this.renderDots(_,J,j),(!x||T)&&Zo.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:o.curPoints,prevBaseLine:o.curBaseLine}:r.points!==o.curPoints||r.baseLine!==o.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])})(R.PureComponent);uK=to;Xi(to,"displayName","Area");Xi(to,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Wu.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Xi(to,"getBaseValue",function(e,t,n,r){var o=e.layout,s=e.baseValue,u=t.props.baseValue,c=u??s;if(Oe(c)&&typeof c=="number")return c;var f=o==="horizontal"?r:n,m=f.scale.domain();if(f.type==="number"){var g=Math.max(m[0],m[1]),p=Math.min(m[0],m[1]);return c==="dataMin"?p:c==="dataMax"||g<0?g:Math.max(Math.min(m[0],m[1]),0)}return c==="dataMin"?m[0]:c==="dataMax"?m[1]:m[0]});Xi(to,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,o=e.yAxis,s=e.xAxisTicks,u=e.yAxisTicks,c=e.bandSize,f=e.dataKey,m=e.stackedData,g=e.dataStartIndex,p=e.displayedData,y=e.offset,b=t.layout,S=m&&m.length,x=uK.getBaseValue(t,n,r,o),N=b==="horizontal",T=!1,C=p.map(function(P,A){var _;S?_=m[g+A]:(_=$n(P,f),Array.isArray(_)?T=!0:_=[x,_]);var j=_[1]==null||S&&$n(P,f)==null;return N?{x:t7({axis:r,ticks:s,bandSize:c,entry:P,index:A}),y:j?null:o.scale(_[1]),value:_,payload:P}:{x:j?null:r.scale(_[1]),y:t7({axis:o,ticks:u,bandSize:c,entry:P,index:A}),value:_,payload:P}}),D;return S||T?D=C.map(function(P){var A=Array.isArray(P.value)?P.value[0]:null;return N?{x:P.x,y:A!=null&&P.y!=null?o.scale(A):null}:{x:A!=null?r.scale(A):null,y:P.y}}):D=N?o.scale(x):r.scale(x),el({points:C,baseLine:D,layout:b,isRange:T},y)});Xi(to,"renderDotItem",function(e,t){var n;if(F.isValidElement(e))n=F.cloneElement(e,t);else if(Qe(e))n=e(t);else{var r=nt("recharts-area-dot",typeof e!="boolean"?e.className:""),o=t.key,s=cK(t,ENe);n=F.createElement(Z0,xu({},s,{key:o,className:r}))}return n});function Xd(e){"@babel/helpers - typeof";return Xd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xd(e)}function jNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PNe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hK(r.key),r)}}function MNe(e,t,n){return t&&PNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LNe(e,t,n){return t=Xb(t),kNe(e,mK()?Reflect.construct(t,n||[],Xb(e).constructor):t.apply(e,n))}function kNe(e,t){if(t&&(Xd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return INe(e)}function INe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mK=function(){return!!e})()}function Xb(e){return Xb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xb(e)}function $Ne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P_(e,t)}function P_(e,t){return P_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},P_(e,t)}function pK(e,t,n){return t=hK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hK(e){var t=VNe(e,"string");return Xd(t)=="symbol"?t:t+""}function VNe(e,t){if(Xd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function M_(){return M_=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},M_.apply(this,arguments)}function BNe(e){var t=e.xAxisId,n=MR(),r=LR(),o=XF(t);return o==null?null:R.createElement(vf,M_({},o,{className:nt("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(u){return Qo(u,!0)}}))}var cx=(function(e){function t(){return jNe(this,t),LNe(this,t,arguments)}return $Ne(t,e),MNe(t,[{key:"render",value:function(){return R.createElement(BNe,this.props)}}])})(R.Component);pK(cx,"displayName","XAxis");pK(cx,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Wd(e){"@babel/helpers - typeof";return Wd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wd(e)}function zNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UNe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yK(r.key),r)}}function qNe(e,t,n){return t&&UNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HNe(e,t,n){return t=Wb(t),FNe(e,gK()?Reflect.construct(t,n||[],Wb(e).constructor):t.apply(e,n))}function FNe(e,t){if(t&&(Wd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KNe(e)}function KNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gK=function(){return!!e})()}function Wb(e){return Wb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wb(e)}function GNe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L_(e,t)}function L_(e,t){return L_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},L_(e,t)}function vK(e,t,n){return t=yK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yK(e){var t=YNe(e,"string");return Wd(t)=="symbol"?t:t+""}function YNe(e,t){if(Wd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function k_(){return k_=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},k_.apply(this,arguments)}var QNe=function(t){var n=t.yAxisId,r=MR(),o=LR(),s=WF(n);return s==null?null:R.createElement(vf,k_({},s,{className:nt("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(c){return Qo(c,!0)}}))},dx=(function(e){function t(){return zNe(this,t),HNe(this,t,arguments)}return GNe(t,e),qNe(t,[{key:"render",value:function(){return R.createElement(QNe,this.props)}}])})(R.Component);vK(dx,"displayName","YAxis");vK(dx,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function az(e){return JNe(e)||ZNe(e)||WNe(e)||XNe()}function XNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WNe(e,t){if(e){if(typeof e=="string")return I_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I_(e,t)}}function ZNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JNe(e){if(Array.isArray(e))return I_(e)}function I_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $_=function(t,n,r,o,s){var u=Ia(t,IR),c=Ia(t,sx),f=[].concat(az(u),az(c)),m=Ia(t,ux),g="".concat(o,"Id"),p=o[0],y=n;if(f.length&&(y=f.reduce(function(x,N){if(N.props[g]===r&&eo(N.props,"extendDomain")&&Oe(N.props[p])){var T=N.props[p];return[Math.min(x[0],T),Math.max(x[1],T)]}return x},y)),m.length){var b="".concat(p,"1"),S="".concat(p,"2");y=m.reduce(function(x,N){if(N.props[g]===r&&eo(N.props,"extendDomain")&&Oe(N.props[b])&&Oe(N.props[S])){var T=N.props[b],C=N.props[S];return[Math.min(x[0],T,C),Math.max(x[1],T,C)]}return x},y)}return s&&s.length&&(y=s.reduce(function(x,N){return Oe(N)?[Math.min(x[0],N),Math.max(x[1],N)]:x},y)),y},RT={exports:{}},iz;function eEe(){return iz||(iz=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(f,m,g){this.fn=f,this.context=m,this.once=g||!1}function s(f,m,g,p,y){if(typeof g!="function")throw new TypeError("The listener must be a function");var b=new o(g,p||f,y),S=n?n+m:m;return f._events[S]?f._events[S].fn?f._events[S]=[f._events[S],b]:f._events[S].push(b):(f._events[S]=b,f._eventsCount++),f}function u(f,m){--f._eventsCount===0?f._events=new r:delete f._events[m]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var m=[],g,p;if(this._eventsCount===0)return m;for(p in g=this._events)t.call(g,p)&&m.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(g)):m},c.prototype.listeners=function(m){var g=n?n+m:m,p=this._events[g];if(!p)return[];if(p.fn)return[p.fn];for(var y=0,b=p.length,S=new Array(b);y<b;y++)S[y]=p[y].fn;return S},c.prototype.listenerCount=function(m){var g=n?n+m:m,p=this._events[g];return p?p.fn?1:p.length:0},c.prototype.emit=function(m,g,p,y,b,S){var x=n?n+m:m;if(!this._events[x])return!1;var N=this._events[x],T=arguments.length,C,D;if(N.fn){switch(N.once&&this.removeListener(m,N.fn,void 0,!0),T){case 1:return N.fn.call(N.context),!0;case 2:return N.fn.call(N.context,g),!0;case 3:return N.fn.call(N.context,g,p),!0;case 4:return N.fn.call(N.context,g,p,y),!0;case 5:return N.fn.call(N.context,g,p,y,b),!0;case 6:return N.fn.call(N.context,g,p,y,b,S),!0}for(D=1,C=new Array(T-1);D<T;D++)C[D-1]=arguments[D];N.fn.apply(N.context,C)}else{var P=N.length,A;for(D=0;D<P;D++)switch(N[D].once&&this.removeListener(m,N[D].fn,void 0,!0),T){case 1:N[D].fn.call(N[D].context);break;case 2:N[D].fn.call(N[D].context,g);break;case 3:N[D].fn.call(N[D].context,g,p);break;case 4:N[D].fn.call(N[D].context,g,p,y);break;default:if(!C)for(A=1,C=new Array(T-1);A<T;A++)C[A-1]=arguments[A];N[D].fn.apply(N[D].context,C)}}return!0},c.prototype.on=function(m,g,p){return s(this,m,g,p,!1)},c.prototype.once=function(m,g,p){return s(this,m,g,p,!0)},c.prototype.removeListener=function(m,g,p,y){var b=n?n+m:m;if(!this._events[b])return this;if(!g)return u(this,b),this;var S=this._events[b];if(S.fn)S.fn===g&&(!y||S.once)&&(!p||S.context===p)&&u(this,b);else{for(var x=0,N=[],T=S.length;x<T;x++)(S[x].fn!==g||y&&!S[x].once||p&&S[x].context!==p)&&N.push(S[x]);N.length?this._events[b]=N.length===1?N[0]:N:u(this,b)}return this},c.prototype.removeAllListeners=function(m){var g;return m?(g=n?n+m:m,this._events[g]&&u(this,g)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(RT)),RT.exports}var tEe=eEe();const nEe=It(tEe);var jT=new nEe,PT="recharts.syncMouseEvents";function bh(e){"@babel/helpers - typeof";return bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bh(e)}function rEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aEe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bK(r.key),r)}}function iEe(e,t,n){return t&&aEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MT(e,t,n){return t=bK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bK(e){var t=oEe(e,"string");return bh(t)=="symbol"?t:t+""}function oEe(e,t){if(bh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sEe=(function(){function e(){rEe(this,e),MT(this,"activeIndex",0),MT(this,"coordinateList",[]),MT(this,"layout","horizontal")}return iEe(e,[{key:"setDetails",value:function(n){var r,o=n.coordinateList,s=o===void 0?null:o,u=n.container,c=u===void 0?null:u,f=n.layout,m=f===void 0?null:f,g=n.offset,p=g===void 0?null:g,y=n.mouseHandlerCallback,b=y===void 0?null:y;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=m??this.layout,this.offset=p??this.offset,this.mouseHandlerCallback=b??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var o=this.container.getBoundingClientRect(),s=o.x,u=o.y,c=o.height,f=this.coordinateList[this.activeIndex].coordinate,m=((n=window)===null||n===void 0?void 0:n.scrollX)||0,g=((r=window)===null||r===void 0?void 0:r.scrollY)||0,p=s+f+m,y=u+this.offset.top+c/2+g;this.mouseHandlerCallback({pageX:p,pageY:y})}}}])})();function lEe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e?.[0],o=e?.[1];if(r&&o&&Oe(r)&&Oe(o))return!0}return!1}function uEe(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-o,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function xK(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,s=e.endAngle,u=en(t,n,r,o),c=en(t,n,r,s);return{points:[u,c],cx:t,cy:n,radius:r,startAngle:o,endAngle:s}}function cEe(e,t,n){var r,o,s,u;if(e==="horizontal")r=t.x,s=r,o=n.top,u=n.top+n.height;else if(e==="vertical")o=t.y,u=o,r=n.left,s=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,f=t.cy,m=t.innerRadius,g=t.outerRadius,p=t.angle,y=en(c,f,m,p),b=en(c,f,g,p);r=y.x,o=y.y,s=b.x,u=b.y}else return xK(t);return[{x:r,y:o},{x:s,y:u}]}function xh(e){"@babel/helpers - typeof";return xh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xh(e)}function oz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Dy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oz(Object(n),!0).forEach(function(r){dEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dEe(e,t,n){return t=fEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fEe(e){var t=mEe(e,"string");return xh(t)=="symbol"?t:t+""}function mEe(e,t){if(xh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pEe(e){var t,n,r=e.element,o=e.tooltipEventType,s=e.isActive,u=e.activeCoordinate,c=e.activePayload,f=e.offset,m=e.activeTooltipIndex,g=e.tooltipAxisBandSize,p=e.layout,y=e.chartName,b=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!b||!s||!u||y!=="ScatterChart"&&o!=="axis")return null;var S,x=Ed;if(y==="ScatterChart")S=u,x=V0e;else if(y==="BarChart")S=uEe(p,u,f,g),x=DR;else if(p==="radial"){var N=xK(u),T=N.cx,C=N.cy,D=N.radius,P=N.startAngle,A=N.endAngle;S={cx:T,cy:C,startAngle:P,endAngle:A,innerRadius:D,outerRadius:D},x=hF}else S={points:cEe(p,u,f)},x=Ed;var _=Dy(Dy(Dy(Dy({stroke:"#ccc",pointerEvents:"none"},f),S),Fe(b,!1)),{},{payload:c,payloadIndex:m,className:nt("recharts-tooltip-cursor",b.className)});return R.isValidElement(b)?R.cloneElement(b,_):R.createElement(x,_)}var hEe=["item"],gEe=["children","className","width","height","style","compact","title","desc"];function Zd(e){"@babel/helpers - typeof";return Zd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zd(e)}function vd(){return vd=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},vd.apply(this,arguments)}function sz(e,t){return bEe(e)||yEe(e,t)||NK(e,t)||vEe()}function vEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yEe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,c=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return c}}function bEe(e){if(Array.isArray(e))return e}function lz(e,t){if(e==null)return{};var n=xEe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xEe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function wEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NEe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,EK(r.key),r)}}function EEe(e,t,n){return t&&NEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SEe(e,t,n){return t=Zb(t),AEe(e,wK()?Reflect.construct(t,n||[],Zb(e).constructor):t.apply(e,n))}function AEe(e,t){if(t&&(Zd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OEe(e)}function OEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wK=function(){return!!e})()}function Zb(e){return Zb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zb(e)}function TEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V_(e,t)}function V_(e,t){return V_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},V_(e,t)}function Jd(e){return DEe(e)||_Ee(e)||NK(e)||CEe()}function CEe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NK(e,t){if(e){if(typeof e=="string")return B_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B_(e,t)}}function _Ee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DEe(e){if(Array.isArray(e))return B_(e)}function B_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uz(Object(n),!0).forEach(function(r){Ye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ye(e,t,n){return t=EK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EK(e){var t=REe(e,"string");return Zd(t)=="symbol"?t:t+""}function REe(e,t){if(Zd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jEe={xAxis:["bottom","top"],yAxis:["left","right"]},PEe={width:"100%",height:"100%"},SK={x:0,y:0};function Ry(e){return e}var MEe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},LEe=function(t,n,r,o){var s=n.find(function(g){return g&&g.index===r});if(s){if(t==="horizontal")return{x:s.coordinate,y:o.y};if(t==="vertical")return{x:o.x,y:s.coordinate};if(t==="centric"){var u=s.coordinate,c=o.radius;return ye(ye(ye({},o),en(o.cx,o.cy,c,u)),{},{angle:u,radius:c})}var f=s.coordinate,m=o.angle;return ye(ye(ye({},o),en(o.cx,o.cy,f,m)),{},{angle:m,radius:f})}return SK},fx=function(t,n){var r=n.graphicalItems,o=n.dataStartIndex,s=n.dataEndIndex,u=(r??[]).reduce(function(c,f){var m=f.props.data;return m&&m.length?[].concat(Jd(c),Jd(m)):c},[]);return u.length>0?u:t&&t.length&&Oe(o)&&Oe(s)?t.slice(o,s+1):[]};function AK(e){return e==="number"?[0,"auto"]:void 0}var z_=function(t,n,r,o){var s=t.graphicalItems,u=t.tooltipAxis,c=fx(n,t);return r<0||!s||!s.length||r>=c.length?null:s.reduce(function(f,m){var g,p=(g=m.props.data)!==null&&g!==void 0?g:n;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var y;if(u.dataKey&&!u.allowDuplicatedCategory){var b=p===void 0?c:p;y=eb(b,u.dataKey,o)}else y=p&&p[r]||c[r];return y?[].concat(Jd(f),[uF(m,y)]):f},[])},cz=function(t,n,r,o){var s=o||{x:t.chartX,y:t.chartY},u=MEe(s,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,m=t.tooltipTicks,g=sve(u,c,m,f);if(g>=0&&m){var p=m[g]&&m[g].value,y=z_(t,n,g,p),b=LEe(r,c,g,s);return{activeTooltipIndex:g,activeLabel:p,activePayload:y,activeCoordinate:b}}return null},kEe=function(t,n){var r=n.axes,o=n.graphicalItems,s=n.axisType,u=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,m=n.dataEndIndex,g=t.layout,p=t.children,y=t.stackOffset,b=rF(g,s);return r.reduce(function(S,x){var N,T=x.type.defaultProps!==void 0?ye(ye({},x.type.defaultProps),x.props):x.props,C=T.type,D=T.dataKey,P=T.allowDataOverflow,A=T.allowDuplicatedCategory,_=T.scale,j=T.ticks,L=T.includeHidden,V=T[u];if(S[V])return S;var B=fx(t.data,{graphicalItems:o.filter(function(Q){var W,ae=u in Q.props?Q.props[u]:(W=Q.type.defaultProps)===null||W===void 0?void 0:W[u];return ae===V}),dataStartIndex:f,dataEndIndex:m}),U=B.length,H,G,Y;lEe(T.domain,P,C)&&(H=n_(T.domain,null,P),b&&(C==="number"||_!=="auto")&&(Y=Ep(B,D,"category")));var J=AK(C);if(!H||H.length===0){var q,z=(q=T.domain)!==null&&q!==void 0?q:J;if(D){if(H=Ep(B,D,C),C==="category"&&b){var K=tue(H);A&&K?(G=H,H=$b(0,U)):A||(H=i7(z,H,x).reduce(function(Q,W){return Q.indexOf(W)>=0?Q:[].concat(Jd(Q),[W])},[]))}else if(C==="category")A?H=H.filter(function(Q){return Q!==""&&!rt(Q)}):H=i7(z,H,x).reduce(function(Q,W){return Q.indexOf(W)>=0||W===""||rt(W)?Q:[].concat(Jd(Q),[W])},[]);else if(C==="number"){var te=fve(B,o.filter(function(Q){var W,ae,ge=u in Q.props?Q.props[u]:(W=Q.type.defaultProps)===null||W===void 0?void 0:W[u],Ne="hide"in Q.props?Q.props.hide:(ae=Q.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return ge===V&&(L||!Ne)}),D,s,g);te&&(H=te)}b&&(C==="number"||_!=="auto")&&(Y=Ep(B,D,"category"))}else b?H=$b(0,U):c&&c[V]&&c[V].hasStack&&C==="number"?H=y==="expand"?[0,1]:lF(c[V].stackGroups,f,m):H=nF(B,o.filter(function(Q){var W=u in Q.props?Q.props[u]:Q.type.defaultProps[u],ae="hide"in Q.props?Q.props.hide:Q.type.defaultProps.hide;return W===V&&(L||!ae)}),C,g,!0);if(C==="number")H=$_(p,H,V,s,j),z&&(H=n_(z,H,P));else if(C==="category"&&z){var ne=z,k=H.every(function(Q){return ne.indexOf(Q)>=0});k&&(H=ne)}}return ye(ye({},S),{},Ye({},V,ye(ye({},T),{},{axisType:s,domain:H,categoricalDomain:Y,duplicateDomain:G,originalDomain:(N=T.domain)!==null&&N!==void 0?N:J,isCategorical:b,layout:g})))},{})},IEe=function(t,n){var r=n.graphicalItems,o=n.Axis,s=n.axisType,u=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,m=n.dataEndIndex,g=t.layout,p=t.children,y=fx(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:m}),b=y.length,S=rF(g,s),x=-1;return r.reduce(function(N,T){var C=T.type.defaultProps!==void 0?ye(ye({},T.type.defaultProps),T.props):T.props,D=C[u],P=AK("number");if(!N[D]){x++;var A;return S?A=$b(0,b):c&&c[D]&&c[D].hasStack?(A=lF(c[D].stackGroups,f,m),A=$_(p,A,D,s)):(A=n_(P,nF(y,r.filter(function(_){var j,L,V=u in _.props?_.props[u]:(j=_.type.defaultProps)===null||j===void 0?void 0:j[u],B="hide"in _.props?_.props.hide:(L=_.type.defaultProps)===null||L===void 0?void 0:L.hide;return V===D&&!B}),"number",g),o.defaultProps.allowDataOverflow),A=$_(p,A,D,s)),ye(ye({},N),{},Ye({},D,ye(ye({axisType:s},o.defaultProps),{},{hide:!0,orientation:ma(jEe,"".concat(s,".").concat(x%2),null),domain:A,originalDomain:P,isCategorical:S,layout:g})))}return N},{})},$Ee=function(t,n){var r=n.axisType,o=r===void 0?"xAxis":r,s=n.AxisComp,u=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,m=n.dataEndIndex,g=t.children,p="".concat(o,"Id"),y=Ia(g,s),b={};return y&&y.length?b=kEe(t,{axes:y,graphicalItems:u,axisType:o,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:m}):u&&u.length&&(b=IEe(t,{Axis:s,graphicalItems:u,axisType:o,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:m})),b},VEe=function(t){var n=nl(t),r=Qo(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:rR(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Ab(n,r)}},dz=function(t){var n=t.children,r=t.defaultShowTooltip,o=ua(n,Ud),s=0,u=0;return t.data&&t.data.length!==0&&(u=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(s=o.props.startIndex),o.props.endIndex>=0&&(u=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:u,activeTooltipIndex:-1,isTooltipActive:!!r}},BEe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Xo(n&&n.type);return r&&r.indexOf("Bar")>=0})},fz=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},zEe=function(t,n){var r=t.props,o=t.graphicalItems,s=t.xAxisMap,u=s===void 0?{}:s,c=t.yAxisMap,f=c===void 0?{}:c,m=r.width,g=r.height,p=r.children,y=r.margin||{},b=ua(p,Ud),S=ua(p,wu),x=Object.keys(f).reduce(function(A,_){var j=f[_],L=j.orientation;return!j.mirror&&!j.hide?ye(ye({},A),{},Ye({},L,A[L]+j.width)):A},{left:y.left||0,right:y.right||0}),N=Object.keys(u).reduce(function(A,_){var j=u[_],L=j.orientation;return!j.mirror&&!j.hide?ye(ye({},A),{},Ye({},L,ma(A,"".concat(L))+j.height)):A},{top:y.top||0,bottom:y.bottom||0}),T=ye(ye({},N),x),C=T.bottom;b&&(T.bottom+=b.props.height||Ud.defaultProps.height),S&&n&&(T=cve(T,o,r,n));var D=m-T.left-T.right,P=g-T.top-T.bottom;return ye(ye({brushBottom:C},T),{},{width:Math.max(D,0),height:Math.max(P,0)})},UEe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},OK=function(t){var n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,s=o===void 0?"axis":o,u=t.validateTooltipEventTypes,c=u===void 0?["axis"]:u,f=t.axisComponents,m=t.legendContent,g=t.formatAxisMap,p=t.defaultProps,y=function(T,C){var D=C.graphicalItems,P=C.stackGroups,A=C.offset,_=C.updateId,j=C.dataStartIndex,L=C.dataEndIndex,V=T.barSize,B=T.layout,U=T.barGap,H=T.barCategoryGap,G=T.maxBarSize,Y=fz(B),J=Y.numericAxisName,q=Y.cateAxisName,z=BEe(D),K=[];return D.forEach(function(te,ne){var k=fx(T.data,{graphicalItems:[te],dataStartIndex:j,dataEndIndex:L}),Q=te.type.defaultProps!==void 0?ye(ye({},te.type.defaultProps),te.props):te.props,W=Q.dataKey,ae=Q.maxBarSize,ge=Q["".concat(J,"Id")],Ne=Q["".concat(q,"Id")],ce={},xe=f.reduce(function(ir,wt){var Un,Mr,di=C["".concat(wt.axisType,"Map")],Gr=Q["".concat(wt.axisType,"Id")];di&&di[Gr]||wt.axisType==="zAxis"||zu(!1,"Specifying a(n) ".concat(wt.axisType,"Id requires a corresponding ").concat(wt.axisType,"Id on the targeted graphical component ").concat((Un=te==null||(Mr=te.type)===null||Mr===void 0?void 0:Mr.displayName)!==null&&Un!==void 0?Un:""));var fi=di[Gr];return ye(ye({},ir),{},Ye(Ye({},wt.axisType,fi),"".concat(wt.axisType,"Ticks"),Qo(fi)))},ce),me=xe[q],be=xe["".concat(q,"Ticks")],de=P&&P[ge]&&P[ge].hasStack&&wve(te,P[ge].stackGroups),ie=Xo(te.type).indexOf("Bar")>=0,ze=Ab(me,be),we=[],lt=z&&lve({barSize:V,stackGroups:P,totalSize:UEe(xe,q)});if(ie){var $e,et,zn=rt(ae)?G:ae,xn=($e=(et=Ab(me,be,!0))!==null&&et!==void 0?et:zn)!==null&&$e!==void 0?$e:0;we=uve({barGap:U,barCategoryGap:H,bandSize:xn!==ze?xn:ze,sizeList:lt[Ne],maxBarSize:zn}),xn!==ze&&(we=we.map(function(ir){return ye(ye({},ir),{},{position:ye(ye({},ir.position),{},{offset:ir.position.offset-xn/2})})}))}var je=te&&te.type&&te.type.getComposedData;je&&K.push({props:ye(ye({},je(ye(ye({},xe),{},{displayedData:k,props:T,dataKey:W,item:te,bandSize:ze,barPosition:we,offset:A,stackedData:de,layout:B,dataStartIndex:j,dataEndIndex:L}))),{},Ye(Ye(Ye({key:te.key||"item-".concat(ne)},J,xe[J]),q,xe[q]),"animationId",_)),childIndex:pue(te,T.children),item:te})}),K},b=function(T,C){var D=T.props,P=T.dataStartIndex,A=T.dataEndIndex,_=T.updateId;if(!vV({props:D}))return null;var j=D.children,L=D.layout,V=D.stackOffset,B=D.data,U=D.reverseStackOrder,H=fz(L),G=H.numericAxisName,Y=H.cateAxisName,J=Ia(j,r),q=bve(B,J,"".concat(G,"Id"),"".concat(Y,"Id"),V,U),z=f.reduce(function(Q,W){var ae="".concat(W.axisType,"Map");return ye(ye({},Q),{},Ye({},ae,$Ee(D,ye(ye({},W),{},{graphicalItems:J,stackGroups:W.axisType===G&&q,dataStartIndex:P,dataEndIndex:A}))))},{}),K=zEe(ye(ye({},z),{},{props:D,graphicalItems:J}),C?.legendBBox);Object.keys(z).forEach(function(Q){z[Q]=g(D,z[Q],K,Q.replace("Map",""),n)});var te=z["".concat(Y,"Map")],ne=VEe(te),k=y(D,ye(ye({},z),{},{dataStartIndex:P,dataEndIndex:A,updateId:_,graphicalItems:J,stackGroups:q,offset:K}));return ye(ye({formattedGraphicalItems:k,graphicalItems:J,offset:K,stackGroups:q},ne),z)},S=(function(N){function T(C){var D,P,A;return wEe(this,T),A=SEe(this,T,[C]),Ye(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ye(A,"accessibilityManager",new sEe),Ye(A,"handleLegendBBoxUpdate",function(_){if(_){var j=A.state,L=j.dataStartIndex,V=j.dataEndIndex,B=j.updateId;A.setState(ye({legendBBox:_},b({props:A.props,dataStartIndex:L,dataEndIndex:V,updateId:B},ye(ye({},A.state),{},{legendBBox:_}))))}}),Ye(A,"handleReceiveSyncEvent",function(_,j,L){if(A.props.syncId===_){if(L===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(j)}}),Ye(A,"handleBrushChange",function(_){var j=_.startIndex,L=_.endIndex;if(j!==A.state.dataStartIndex||L!==A.state.dataEndIndex){var V=A.state.updateId;A.setState(function(){return ye({dataStartIndex:j,dataEndIndex:L},b({props:A.props,dataStartIndex:j,dataEndIndex:L,updateId:V},A.state))}),A.triggerSyncEvent({dataStartIndex:j,dataEndIndex:L})}}),Ye(A,"handleMouseEnter",function(_){var j=A.getMouseInfo(_);if(j){var L=ye(ye({},j),{},{isTooltipActive:!0});A.setState(L),A.triggerSyncEvent(L);var V=A.props.onMouseEnter;Qe(V)&&V(L,_)}}),Ye(A,"triggeredAfterMouseMove",function(_){var j=A.getMouseInfo(_),L=j?ye(ye({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(L),A.triggerSyncEvent(L);var V=A.props.onMouseMove;Qe(V)&&V(L,_)}),Ye(A,"handleItemMouseEnter",function(_){A.setState(function(){return{isTooltipActive:!0,activeItem:_,activePayload:_.tooltipPayload,activeCoordinate:_.tooltipPosition||{x:_.cx,y:_.cy}}})}),Ye(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),Ye(A,"handleMouseMove",function(_){_.persist(),A.throttleTriggeredAfterMouseMove(_)}),Ye(A,"handleMouseLeave",function(_){A.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};A.setState(j),A.triggerSyncEvent(j);var L=A.props.onMouseLeave;Qe(L)&&L(j,_)}),Ye(A,"handleOuterEvent",function(_){var j=mue(_),L=ma(A.props,"".concat(j));if(j&&Qe(L)){var V,B;/.*touch.*/i.test(j)?B=A.getMouseInfo(_.changedTouches[0]):B=A.getMouseInfo(_),L((V=B)!==null&&V!==void 0?V:{},_)}}),Ye(A,"handleClick",function(_){var j=A.getMouseInfo(_);if(j){var L=ye(ye({},j),{},{isTooltipActive:!0});A.setState(L),A.triggerSyncEvent(L);var V=A.props.onClick;Qe(V)&&V(L,_)}}),Ye(A,"handleMouseDown",function(_){var j=A.props.onMouseDown;if(Qe(j)){var L=A.getMouseInfo(_);j(L,_)}}),Ye(A,"handleMouseUp",function(_){var j=A.props.onMouseUp;if(Qe(j)){var L=A.getMouseInfo(_);j(L,_)}}),Ye(A,"handleTouchMove",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(_.changedTouches[0])}),Ye(A,"handleTouchStart",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&A.handleMouseDown(_.changedTouches[0])}),Ye(A,"handleTouchEnd",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&A.handleMouseUp(_.changedTouches[0])}),Ye(A,"handleDoubleClick",function(_){var j=A.props.onDoubleClick;if(Qe(j)){var L=A.getMouseInfo(_);j(L,_)}}),Ye(A,"handleContextMenu",function(_){var j=A.props.onContextMenu;if(Qe(j)){var L=A.getMouseInfo(_);j(L,_)}}),Ye(A,"triggerSyncEvent",function(_){A.props.syncId!==void 0&&jT.emit(PT,A.props.syncId,_,A.eventEmitterSymbol)}),Ye(A,"applySyncEvent",function(_){var j=A.props,L=j.layout,V=j.syncMethod,B=A.state.updateId,U=_.dataStartIndex,H=_.dataEndIndex;if(_.dataStartIndex!==void 0||_.dataEndIndex!==void 0)A.setState(ye({dataStartIndex:U,dataEndIndex:H},b({props:A.props,dataStartIndex:U,dataEndIndex:H,updateId:B},A.state)));else if(_.activeTooltipIndex!==void 0){var G=_.chartX,Y=_.chartY,J=_.activeTooltipIndex,q=A.state,z=q.offset,K=q.tooltipTicks;if(!z)return;if(typeof V=="function")J=V(K,_);else if(V==="value"){J=-1;for(var te=0;te<K.length;te++)if(K[te].value===_.activeLabel){J=te;break}}var ne=ye(ye({},z),{},{x:z.left,y:z.top}),k=Math.min(G,ne.x+ne.width),Q=Math.min(Y,ne.y+ne.height),W=K[J]&&K[J].value,ae=z_(A.state,A.props.data,J),ge=K[J]?{x:L==="horizontal"?K[J].coordinate:k,y:L==="horizontal"?Q:K[J].coordinate}:SK;A.setState(ye(ye({},_),{},{activeLabel:W,activeCoordinate:ge,activePayload:ae,activeTooltipIndex:J}))}else A.setState(_)}),Ye(A,"renderCursor",function(_){var j,L=A.state,V=L.isTooltipActive,B=L.activeCoordinate,U=L.activePayload,H=L.offset,G=L.activeTooltipIndex,Y=L.tooltipAxisBandSize,J=A.getTooltipEventType(),q=(j=_.props.active)!==null&&j!==void 0?j:V,z=A.props.layout,K=_.key||"_recharts-cursor";return F.createElement(pEe,{key:K,activeCoordinate:B,activePayload:U,activeTooltipIndex:G,chartName:n,element:_,isActive:q,layout:z,offset:H,tooltipAxisBandSize:Y,tooltipEventType:J})}),Ye(A,"renderPolarAxis",function(_,j,L){var V=ma(_,"type.axisType"),B=ma(A.state,"".concat(V,"Map")),U=_.type.defaultProps,H=U!==void 0?ye(ye({},U),_.props):_.props,G=B&&B[H["".concat(V,"Id")]];return R.cloneElement(_,ye(ye({},G),{},{className:nt(V,G.className),key:_.key||"".concat(j,"-").concat(L),ticks:Qo(G,!0)}))}),Ye(A,"renderPolarGrid",function(_){var j=_.props,L=j.radialLines,V=j.polarAngles,B=j.polarRadius,U=A.state,H=U.radiusAxisMap,G=U.angleAxisMap,Y=nl(H),J=nl(G),q=J.cx,z=J.cy,K=J.innerRadius,te=J.outerRadius;return R.cloneElement(_,{polarAngles:Array.isArray(V)?V:Qo(J,!0).map(function(ne){return ne.coordinate}),polarRadius:Array.isArray(B)?B:Qo(Y,!0).map(function(ne){return ne.coordinate}),cx:q,cy:z,innerRadius:K,outerRadius:te,key:_.key||"polar-grid",radialLines:L})}),Ye(A,"renderLegend",function(){var _=A.state.formattedGraphicalItems,j=A.props,L=j.children,V=j.width,B=j.height,U=A.props.margin||{},H=V-(U.left||0)-(U.right||0),G=eF({children:L,formattedGraphicalItems:_,legendWidth:H,legendContent:m});if(!G)return null;var Y=G.item,J=lz(G,hEe);return R.cloneElement(Y,ye(ye({},J),{},{chartWidth:V,chartHeight:B,margin:U,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),Ye(A,"renderTooltip",function(){var _,j=A.props,L=j.children,V=j.accessibilityLayer,B=ua(L,ei);if(!B)return null;var U=A.state,H=U.isTooltipActive,G=U.activeCoordinate,Y=U.activePayload,J=U.activeLabel,q=U.offset,z=(_=B.props.active)!==null&&_!==void 0?_:H;return R.cloneElement(B,{viewBox:ye(ye({},q),{},{x:q.left,y:q.top}),active:z,label:J,payload:z?Y:[],coordinate:G,accessibilityLayer:V})}),Ye(A,"renderBrush",function(_){var j=A.props,L=j.margin,V=j.data,B=A.state,U=B.offset,H=B.dataStartIndex,G=B.dataEndIndex,Y=B.updateId;return R.cloneElement(_,{key:_.key||"_recharts-brush",onChange:Oy(A.handleBrushChange,_.props.onChange),data:V,x:Oe(_.props.x)?_.props.x:U.left,y:Oe(_.props.y)?_.props.y:U.top+U.height+U.brushBottom-(L.bottom||0),width:Oe(_.props.width)?_.props.width:U.width,startIndex:H,endIndex:G,updateId:"brush-".concat(Y)})}),Ye(A,"renderReferenceElement",function(_,j,L){if(!_)return null;var V=A,B=V.clipPathId,U=A.state,H=U.xAxisMap,G=U.yAxisMap,Y=U.offset,J=_.type.defaultProps||{},q=_.props,z=q.xAxisId,K=z===void 0?J.xAxisId:z,te=q.yAxisId,ne=te===void 0?J.yAxisId:te;return R.cloneElement(_,{key:_.key||"".concat(j,"-").concat(L),xAxis:H[K],yAxis:G[ne],viewBox:{x:Y.left,y:Y.top,width:Y.width,height:Y.height},clipPathId:B})}),Ye(A,"renderActivePoints",function(_){var j=_.item,L=_.activePoint,V=_.basePoint,B=_.childIndex,U=_.isRange,H=[],G=j.props.key,Y=j.item.type.defaultProps!==void 0?ye(ye({},j.item.type.defaultProps),j.item.props):j.item.props,J=Y.activeDot,q=Y.dataKey,z=ye(ye({index:B,dataKey:q,cx:L.x,cy:L.y,r:4,fill:_R(j.item),strokeWidth:2,stroke:"#fff",payload:L.payload,value:L.value},Fe(J,!1)),tb(J));return H.push(T.renderActiveDot(J,z,"".concat(G,"-activePoint-").concat(B))),V?H.push(T.renderActiveDot(J,ye(ye({},z),{},{cx:V.x,cy:V.y}),"".concat(G,"-basePoint-").concat(B))):U&&H.push(null),H}),Ye(A,"renderGraphicChild",function(_,j,L){var V=A.filterFormatItem(_,j,L);if(!V)return null;var B=A.getTooltipEventType(),U=A.state,H=U.isTooltipActive,G=U.tooltipAxis,Y=U.activeTooltipIndex,J=U.activeLabel,q=A.props.children,z=ua(q,ei),K=V.props,te=K.points,ne=K.isRange,k=K.baseLine,Q=V.item.type.defaultProps!==void 0?ye(ye({},V.item.type.defaultProps),V.item.props):V.item.props,W=Q.activeDot,ae=Q.hide,ge=Q.activeBar,Ne=Q.activeShape,ce=!!(!ae&&H&&z&&(W||ge||Ne)),xe={};B!=="axis"&&z&&z.props.trigger==="click"?xe={onClick:Oy(A.handleItemMouseEnter,_.props.onClick)}:B!=="axis"&&(xe={onMouseLeave:Oy(A.handleItemMouseLeave,_.props.onMouseLeave),onMouseEnter:Oy(A.handleItemMouseEnter,_.props.onMouseEnter)});var me=R.cloneElement(_,ye(ye({},V.props),xe));function be(wt){return typeof G.dataKey=="function"?G.dataKey(wt.payload):null}if(ce)if(Y>=0){var de,ie;if(G.dataKey&&!G.allowDuplicatedCategory){var ze=typeof G.dataKey=="function"?be:"payload.".concat(G.dataKey.toString());de=eb(te,ze,J),ie=ne&&k&&eb(k,ze,J)}else de=te?.[Y],ie=ne&&k&&k[Y];if(Ne||ge){var we=_.props.activeIndex!==void 0?_.props.activeIndex:Y;return[R.cloneElement(_,ye(ye(ye({},V.props),xe),{},{activeIndex:we})),null,null]}if(!rt(de))return[me].concat(Jd(A.renderActivePoints({item:V,activePoint:de,basePoint:ie,childIndex:Y,isRange:ne})))}else{var lt,$e=(lt=A.getItemByXY(A.state.activeCoordinate))!==null&<!==void 0?lt:{graphicalItem:me},et=$e.graphicalItem,zn=et.item,xn=zn===void 0?_:zn,je=et.childIndex,ir=ye(ye(ye({},V.props),xe),{},{activeIndex:je});return[R.cloneElement(xn,ir),null,null]}return ne?[me,null,null]:[me,null]}),Ye(A,"renderCustomized",function(_,j,L){return R.cloneElement(_,ye(ye({key:"recharts-customized-".concat(L)},A.props),A.state))}),Ye(A,"renderMap",{CartesianGrid:{handler:Ry,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:Ry},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:Ry},YAxis:{handler:Ry},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((D=C.id)!==null&&D!==void 0?D:ff("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=Jq(A.triggeredAfterMouseMove,(P=C.throttleDelay)!==null&&P!==void 0?P:1e3/60),A.state={},A}return TEe(T,N),EEe(T,[{key:"componentDidMount",value:function(){var D,P;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(D=this.props.margin.left)!==null&&D!==void 0?D:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var D=this.props,P=D.children,A=D.data,_=D.height,j=D.layout,L=ua(P,ei);if(L){var V=L.props.defaultIndex;if(!(typeof V!="number"||V<0||V>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[V]&&this.state.tooltipTicks[V].value,U=z_(this.state,A,V,B),H=this.state.tooltipTicks[V].coordinate,G=(this.state.offset.top+_)/2,Y=j==="horizontal",J=Y?{x:H,y:G}:{y:H,x:G},q=this.state.formattedGraphicalItems.find(function(K){var te=K.item;return te.type.name==="Scatter"});q&&(J=ye(ye({},J),q.props.points[V].tooltipPosition),U=q.props.points[V].tooltipPayload);var z={activeTooltipIndex:V,isTooltipActive:!0,activeLabel:B,activePayload:U,activeCoordinate:J};this.setState(z),this.renderCursor(L),this.accessibilityManager.setIndex(V)}}}},{key:"getSnapshotBeforeUpdate",value:function(D,P){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==P.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==D.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==D.margin){var A,_;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0}})}return null}},{key:"componentDidUpdate",value:function(D){SC([ua(D.children,ei)],[ua(this.props.children,ei)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var D=ua(this.props.children,ei);if(D&&typeof D.props.shared=="boolean"){var P=D.props.shared?"axis":"item";return c.indexOf(P)>=0?P:s}return s}},{key:"getMouseInfo",value:function(D){if(!this.container)return null;var P=this.container,A=P.getBoundingClientRect(),_=eme(A),j={chartX:Math.round(D.pageX-_.left),chartY:Math.round(D.pageY-_.top)},L=A.width/P.offsetWidth||1,V=this.inRange(j.chartX,j.chartY,L);if(!V)return null;var B=this.state,U=B.xAxisMap,H=B.yAxisMap,G=this.getTooltipEventType(),Y=cz(this.state,this.props.data,this.props.layout,V);if(G!=="axis"&&U&&H){var J=nl(U).scale,q=nl(H).scale,z=J&&J.invert?J.invert(j.chartX):null,K=q&&q.invert?q.invert(j.chartY):null;return ye(ye({},j),{},{xValue:z,yValue:K},Y)}return Y?ye(ye({},j),Y):null}},{key:"inRange",value:function(D,P){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=this.props.layout,j=D/A,L=P/A;if(_==="horizontal"||_==="vertical"){var V=this.state.offset,B=j>=V.left&&j<=V.left+V.width&&L>=V.top&&L<=V.top+V.height;return B?{x:j,y:L}:null}var U=this.state,H=U.angleAxisMap,G=U.radiusAxisMap;if(H&&G){var Y=nl(H);return l7({x:j,y:L},Y)}return null}},{key:"parseEventsOfWrapper",value:function(){var D=this.props.children,P=this.getTooltipEventType(),A=ua(D,ei),_={};A&&P==="axis"&&(A.props.trigger==="click"?_={onClick:this.handleClick}:_={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var j=tb(this.props,this.handleOuterEvent);return ye(ye({},j),_)}},{key:"addListener",value:function(){jT.on(PT,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){jT.removeListener(PT,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(D,P,A){for(var _=this.state.formattedGraphicalItems,j=0,L=_.length;j<L;j++){var V=_[j];if(V.item===D||V.props.key===D.key||P===Xo(V.item.type)&&A===V.childIndex)return V}return null}},{key:"renderClipPath",value:function(){var D=this.clipPathId,P=this.state.offset,A=P.left,_=P.top,j=P.height,L=P.width;return F.createElement("defs",null,F.createElement("clipPath",{id:D},F.createElement("rect",{x:A,y:_,height:j,width:L})))}},{key:"getXScales",value:function(){var D=this.state.xAxisMap;return D?Object.entries(D).reduce(function(P,A){var _=sz(A,2),j=_[0],L=_[1];return ye(ye({},P),{},Ye({},j,L.scale))},{}):null}},{key:"getYScales",value:function(){var D=this.state.yAxisMap;return D?Object.entries(D).reduce(function(P,A){var _=sz(A,2),j=_[0],L=_[1];return ye(ye({},P),{},Ye({},j,L.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(D){var P;return(P=this.state.xAxisMap)===null||P===void 0||(P=P[D])===null||P===void 0?void 0:P.scale}},{key:"getYScaleByAxisId",value:function(D){var P;return(P=this.state.yAxisMap)===null||P===void 0||(P=P[D])===null||P===void 0?void 0:P.scale}},{key:"getItemByXY",value:function(D){var P=this.state,A=P.formattedGraphicalItems,_=P.activeItem;if(A&&A.length)for(var j=0,L=A.length;j<L;j++){var V=A[j],B=V.props,U=V.item,H=U.type.defaultProps!==void 0?ye(ye({},U.type.defaultProps),U.props):U.props,G=Xo(U.type);if(G==="Bar"){var Y=(B.data||[]).find(function(K){return b0e(D,K)});if(Y)return{graphicalItem:V,payload:Y}}else if(G==="RadialBar"){var J=(B.data||[]).find(function(K){return l7(D,K)});if(J)return{graphicalItem:V,payload:J}}else if(rx(V,_)||ax(V,_)||hh(V,_)){var q=Uxe({graphicalItem:V,activeTooltipItem:_,itemData:H.data}),z=H.activeIndex===void 0?q:H.activeIndex;return{graphicalItem:ye(ye({},V),{},{childIndex:z}),payload:hh(V,_)?H.data[q]:V.props.data[q]}}}return null}},{key:"render",value:function(){var D=this;if(!vV(this))return null;var P=this.props,A=P.children,_=P.className,j=P.width,L=P.height,V=P.style,B=P.compact,U=P.title,H=P.desc,G=lz(P,gEe),Y=Fe(G,!1);if(B)return F.createElement(q8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},F.createElement(OC,vd({},Y,{width:j,height:L,title:U,desc:H}),this.renderClipPath(),bV(A,this.renderMap)));if(this.props.accessibilityLayer){var J,q;Y.tabIndex=(J=this.props.tabIndex)!==null&&J!==void 0?J:0,Y.role=(q=this.props.role)!==null&&q!==void 0?q:"application",Y.onKeyDown=function(K){D.accessibilityManager.keyboardEvent(K)},Y.onFocus=function(){D.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return F.createElement(q8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},F.createElement("div",vd({className:nt("recharts-wrapper",_),style:ye({position:"relative",cursor:"default",width:j,height:L},V)},z,{ref:function(te){D.container=te}}),F.createElement(OC,vd({},Y,{width:j,height:L,title:U,desc:H,style:PEe}),this.renderClipPath(),bV(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(R.Component);Ye(S,"displayName",n),Ye(S,"defaultProps",ye({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),Ye(S,"getDerivedStateFromProps",function(N,T){var C=N.dataKey,D=N.data,P=N.children,A=N.width,_=N.height,j=N.layout,L=N.stackOffset,V=N.margin,B=T.dataStartIndex,U=T.dataEndIndex;if(T.updateId===void 0){var H=dz(N);return ye(ye(ye({},H),{},{updateId:0},b(ye(ye({props:N},H),{},{updateId:0}),T)),{},{prevDataKey:C,prevData:D,prevWidth:A,prevHeight:_,prevLayout:j,prevStackOffset:L,prevMargin:V,prevChildren:P})}if(C!==T.prevDataKey||D!==T.prevData||A!==T.prevWidth||_!==T.prevHeight||j!==T.prevLayout||L!==T.prevStackOffset||!xd(V,T.prevMargin)){var G=dz(N),Y={chartX:T.chartX,chartY:T.chartY,isTooltipActive:T.isTooltipActive},J=ye(ye({},cz(T,D,j)),{},{updateId:T.updateId+1}),q=ye(ye(ye({},G),Y),J);return ye(ye(ye({},q),b(ye({props:N},q),T)),{},{prevDataKey:C,prevData:D,prevWidth:A,prevHeight:_,prevLayout:j,prevStackOffset:L,prevMargin:V,prevChildren:P})}if(!SC(P,T.prevChildren)){var z,K,te,ne,k=ua(P,Ud),Q=k&&(z=(K=k.props)===null||K===void 0?void 0:K.startIndex)!==null&&z!==void 0?z:B,W=k&&(te=(ne=k.props)===null||ne===void 0?void 0:ne.endIndex)!==null&&te!==void 0?te:U,ae=Q!==B||W!==U,ge=!rt(D),Ne=ge&&!ae?T.updateId:T.updateId+1;return ye(ye({updateId:Ne},b(ye(ye({props:N},T),{},{updateId:Ne,dataStartIndex:Q,dataEndIndex:W}),T)),{},{prevChildren:P,dataStartIndex:Q,dataEndIndex:W})}return null}),Ye(S,"renderActiveDot",function(N,T,C){var D;return R.isValidElement(N)?D=R.cloneElement(N,T):Qe(N)?D=N(T):D=F.createElement(Z0,T),F.createElement(Nt,{className:"recharts-active-dot",key:C},D)});var x=R.forwardRef(function(T,C){return F.createElement(S,vd({},T,{ref:C}))});return x.displayName=S.displayName,x},qEe=OK({chartName:"PieChart",GraphicalChild:us,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:nx},{axisType:"radiusAxis",AxisComp:ex}],formatAxisMap:Rve,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),HEe=OK({chartName:"AreaChart",GraphicalChild:to,axisComponents:[{axisType:"xAxis",AxisComp:cx},{axisType:"yAxis",AxisComp:dx}],formatAxisMap:F1e});const FEe={CN:"#3b82f6",HK:"#10b981",US:"#f59e0b",EU:"#8b5cf6",SG:"#ec4899",AE:"#f97316",ALL:"#6b7280"},KEe=Array.from({length:7},(e,t)=>({day:`${t+1}日`,approved:Math.floor(Math.random()*20+5),rejected:Math.floor(Math.random()*5+1),pending:Math.floor(Math.random()*10+2)}));function Zs({title:e,value:t,icon:n,sub:r,color:o="primary",trend:s}){const u={primary:"text-primary",emerald:"text-emerald-400",amber:"text-amber-400",red:"text-red-400",purple:"text-purple-400"};return w.jsxDEV(Zt,{"data-loc":"client/src/pages/Dashboard.tsx:33",className:"border-border/50 hover:border-primary/30 transition-colors",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/Dashboard.tsx:34",className:"p-5",children:w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:35",className:"flex items-start justify-between",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:36",className:"flex-1",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:37",className:"text-xs text-muted-foreground font-medium uppercase tracking-wide",children:e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:37,columnNumber:13},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:38",className:`text-3xl font-bold mt-1 ${u[o]||u.primary}`,children:t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:38,columnNumber:13},this),r&&w.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:39",className:"text-xs text-muted-foreground mt-1",children:r},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:39,columnNumber:21},this),s&&w.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:40",className:"text-xs text-emerald-400 mt-1 flex items-center gap-1",children:[w.jsxDEV(R2,{"data-loc":"client/src/pages/Dashboard.tsx:40",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:40,columnNumber:137},this),s]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:40,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:36,columnNumber:11},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:42",className:`p-2.5 rounded-xl bg-card border border-border/50 ${u[o]||u.primary}`,children:w.jsxDEV(n,{"data-loc":"client/src/pages/Dashboard.tsx:43",className:"w-5 h-5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:43,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:42,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:35,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:34,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:33,columnNumber:5},this)}function GEe(){const{data:e,isLoading:t}=St.dashboard.stats.useQuery(),{data:n}=St.dashboard.recentActivity.useQuery();if(t)return w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:57",className:"p-6 space-y-4",children:w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:58",className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:Array.from({length:8}).map((s,u)=>w.jsxDEV(Zt,{"data-loc":"client/src/pages/Dashboard.tsx:60",className:"border-border/50 animate-pulse",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/Dashboard.tsx:61",className:"p-5 h-24"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:61,columnNumber:15},this)},u,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:60,columnNumber:13},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:58,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:57,columnNumber:7},this);const r=e,o=(r?.jurisdictionCoverage||[]).map(s=>({name:s._id,value:s.count,fill:FEe[s._id]||"#6b7280"}));return w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:75",className:"p-6 space-y-6",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:77",className:"flex items-center justify-between",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:78",children:[w.jsxDEV("h1",{"data-loc":"client/src/pages/Dashboard.tsx:79",className:"text-2xl font-bold nac-gradient-text",children:"全局态势感知"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:79,columnNumber:11},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:80",className:"text-sm text-muted-foreground mt-0.5",children:"NAC 知识引擎实时监控中心"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:80,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:78,columnNumber:9},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:82",className:"flex items-center gap-2",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:83",className:"flex items-center gap-1.5 text-xs text-emerald-400",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:84",className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:84,columnNumber:13},this),"系统运行正常"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:83,columnNumber:11},this),w.jsxDEV(lf,{"data-loc":"client/src/pages/Dashboard.tsx:87",variant:"outline",className:"text-xs border-border/50",children:[w.jsxDEV(v0,{"data-loc":"client/src/pages/Dashboard.tsx:88",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:88,columnNumber:13},this),new Date().toLocaleString("zh-CN")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:82,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:77,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:95",className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[w.jsxDEV(Zs,{"data-loc":"client/src/pages/Dashboard.tsx:96",title:"合规规则总数",value:r?.knowledgeBase?.totalRules??0,icon:yD,sub:"知识库规则条目",color:"primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:96,columnNumber:9},this),w.jsxDEV(Zs,{"data-loc":"client/src/pages/Dashboard.tsx:97",title:"活跃协议",value:r?.knowledgeBase?.activeProtocols??0,icon:xp,sub:`共 ${r?.knowledgeBase?.totalProtocols??0} 个协议`,color:"emerald"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:97,columnNumber:9},this),w.jsxDEV(Zs,{"data-loc":"client/src/pages/Dashboard.tsx:98",title:"采集器运行",value:r?.crawlers?.active??0,icon:Xy,sub:`共 ${r?.crawlers?.total??0} 个采集器`,color:"amber"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:98,columnNumber:9},this),w.jsxDEV(Zs,{"data-loc":"client/src/pages/Dashboard.tsx:99",title:"审批通过率",value:`${r?.approvals?.approvalRate??0}%`,icon:Ip,sub:`共 ${r?.approvals?.total??0} 个案例`,color:"emerald"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:99,columnNumber:9},this),w.jsxDEV(Zs,{"data-loc":"client/src/pages/Dashboard.tsx:100",title:"待人工审核",value:r?.approvals?.pending??0,icon:b0,sub:"中风险案例",color:"amber"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:100,columnNumber:9},this),w.jsxDEV(Zs,{"data-loc":"client/src/pages/Dashboard.tsx:101",title:"系统用户",value:r?.users?.total??0,icon:Bae,sub:"NAC 注册用户",color:"purple"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:101,columnNumber:9},this),w.jsxDEV(Zs,{"data-loc":"client/src/pages/Dashboard.tsx:102",title:"审计日志",value:r?.audit?.total??0,icon:Ru,sub:"不可篡改记录",color:"primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:102,columnNumber:9},this),w.jsxDEV(Zs,{"data-loc":"client/src/pages/Dashboard.tsx:103",title:"司法辖区覆盖",value:o.length,icon:Du,sub:"已覆盖辖区数量",color:"emerald"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:103,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:95,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:107",className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[w.jsxDEV(Zt,{"data-loc":"client/src/pages/Dashboard.tsx:109",className:"lg:col-span-2 border-border/50",children:[w.jsxDEV(ri,{"data-loc":"client/src/pages/Dashboard.tsx:110",className:"pb-2",children:w.jsxDEV(ai,{"data-loc":"client/src/pages/Dashboard.tsx:111",className:"text-sm font-semibold flex items-center gap-2",children:[w.jsxDEV(R2,{"data-loc":"client/src/pages/Dashboard.tsx:112",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:112,columnNumber:15},this),"审批趋势(近7天)"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:111,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:110,columnNumber:11},this),w.jsxDEV(Jt,{"data-loc":"client/src/pages/Dashboard.tsx:116",children:w.jsxDEV(z4,{"data-loc":"client/src/pages/Dashboard.tsx:117",width:"100%",height:200,children:w.jsxDEV(HEe,{"data-loc":"client/src/pages/Dashboard.tsx:118",data:KEe,children:[w.jsxDEV("defs",{"data-loc":"client/src/pages/Dashboard.tsx:119",children:w.jsxDEV("linearGradient",{"data-loc":"client/src/pages/Dashboard.tsx:120",id:"colorApproved",x1:"0",y1:"0",x2:"0",y2:"1",children:[w.jsxDEV("stop",{"data-loc":"client/src/pages/Dashboard.tsx:121",offset:"5%",stopColor:"oklch(0.65 0.18 200)",stopOpacity:.3},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:121,columnNumber:21},this),w.jsxDEV("stop",{"data-loc":"client/src/pages/Dashboard.tsx:122",offset:"95%",stopColor:"oklch(0.65 0.18 200)",stopOpacity:0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:122,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:120,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:119,columnNumber:17},this),w.jsxDEV(lK,{"data-loc":"client/src/pages/Dashboard.tsx:125",strokeDasharray:"3 3",stroke:"oklch(0.22 0.020 250)"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:125,columnNumber:17},this),w.jsxDEV(cx,{"data-loc":"client/src/pages/Dashboard.tsx:126",dataKey:"day",tick:{fontSize:11,fill:"oklch(0.60 0.015 250)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:126,columnNumber:17},this),w.jsxDEV(dx,{"data-loc":"client/src/pages/Dashboard.tsx:127",tick:{fontSize:11,fill:"oklch(0.60 0.015 250)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:127,columnNumber:17},this),w.jsxDEV(ei,{"data-loc":"client/src/pages/Dashboard.tsx:128",contentStyle:{background:"oklch(0.14 0.018 250)",border:"1px solid oklch(0.22 0.020 250)",borderRadius:"8px",fontSize:"12px"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:128,columnNumber:17},this),w.jsxDEV(to,{"data-loc":"client/src/pages/Dashboard.tsx:129",type:"monotone",dataKey:"approved",stroke:"oklch(0.65 0.18 200)",fill:"url(#colorApproved)",strokeWidth:2,name:"通过"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:129,columnNumber:17},this),w.jsxDEV(to,{"data-loc":"client/src/pages/Dashboard.tsx:130",type:"monotone",dataKey:"rejected",stroke:"oklch(0.60 0.22 25)",fill:"none",strokeWidth:2,strokeDasharray:"4 2",name:"拒绝"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:130,columnNumber:17},this),w.jsxDEV(to,{"data-loc":"client/src/pages/Dashboard.tsx:131",type:"monotone",dataKey:"pending",stroke:"oklch(0.65 0.20 50)",fill:"none",strokeWidth:2,strokeDasharray:"4 2",name:"待审"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:131,columnNumber:17},this),w.jsxDEV(wu,{"data-loc":"client/src/pages/Dashboard.tsx:132",wrapperStyle:{fontSize:"11px"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:132,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:118,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:117,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:116,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:109,columnNumber:9},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/Dashboard.tsx:139",className:"border-border/50",children:[w.jsxDEV(ri,{"data-loc":"client/src/pages/Dashboard.tsx:140",className:"pb-2",children:w.jsxDEV(ai,{"data-loc":"client/src/pages/Dashboard.tsx:141",className:"text-sm font-semibold flex items-center gap-2",children:[w.jsxDEV(Du,{"data-loc":"client/src/pages/Dashboard.tsx:142",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:142,columnNumber:15},this),"司法辖区覆盖"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:141,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:140,columnNumber:11},this),w.jsxDEV(Jt,{"data-loc":"client/src/pages/Dashboard.tsx:146",children:o.length>0?w.jsxDEV(w.Fragment,{children:[w.jsxDEV(z4,{"data-loc":"client/src/pages/Dashboard.tsx:149",width:"100%",height:140,children:w.jsxDEV(qEe,{"data-loc":"client/src/pages/Dashboard.tsx:150",children:[w.jsxDEV(us,{"data-loc":"client/src/pages/Dashboard.tsx:151",data:o,cx:"50%",cy:"50%",innerRadius:40,outerRadius:65,paddingAngle:3,dataKey:"value",children:o.map((s,u)=>w.jsxDEV(B0,{"data-loc":"client/src/pages/Dashboard.tsx:153",fill:s.fill},u,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:153,columnNumber:25},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:151,columnNumber:21},this),w.jsxDEV(ei,{"data-loc":"client/src/pages/Dashboard.tsx:156",contentStyle:{background:"oklch(0.14 0.018 250)",border:"1px solid oklch(0.22 0.020 250)",borderRadius:"8px",fontSize:"11px"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:156,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:150,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:149,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:159",className:"grid grid-cols-2 gap-1 mt-2",children:o.map(s=>w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:161",className:"flex items-center gap-1.5 text-xs",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:162",className:"w-2 h-2 rounded-full shrink-0",style:{background:s.fill}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:162,columnNumber:23},this),w.jsxDEV("span",{"data-loc":"client/src/pages/Dashboard.tsx:163",className:"text-muted-foreground",children:s.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:163,columnNumber:23},this),w.jsxDEV("span",{"data-loc":"client/src/pages/Dashboard.tsx:164",className:"font-medium ml-auto",children:s.value},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:164,columnNumber:23},this)]},s.name,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:161,columnNumber:21},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:159,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:148,columnNumber:15},this):w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:170",className:"h-[180px] flex items-center justify-center text-muted-foreground text-sm",children:"暂无数据"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:170,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:146,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:139,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:107,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:177",className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[w.jsxDEV(Zt,{"data-loc":"client/src/pages/Dashboard.tsx:179",className:"border-border/50",children:[w.jsxDEV(ri,{"data-loc":"client/src/pages/Dashboard.tsx:180",className:"pb-2",children:w.jsxDEV(ai,{"data-loc":"client/src/pages/Dashboard.tsx:181",className:"text-sm font-semibold flex items-center gap-2",children:[w.jsxDEV($ae,{"data-loc":"client/src/pages/Dashboard.tsx:182",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:182,columnNumber:15},this),"系统服务状态"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:181,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:180,columnNumber:11},this),w.jsxDEV(Jt,{"data-loc":"client/src/pages/Dashboard.tsx:186",className:"space-y-2",children:[{name:"MongoDB 知识引擎",status:r?.systemStatus?.mongodb==="connected"?"active":"error",desc:"nac_knowledge_engine"},{name:"MySQL 认证数据库",status:r?.systemStatus?.mysql==="connected"?"active":"error",desc:"nac_id"},{name:"Charter 编译服务",status:"active",desc:"charter.newassetchain.io"},{name:"CNNL 宪政服务",status:"active",desc:"cnnl.newassetchain.io"},{name:"ACC-20 审批引擎",status:"active",desc:"acc20.newassetchain.io"},{name:"GNACS 分类服务",status:"active",desc:"gnacs.newassetchain.io"}].map(s=>w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:195",className:"flex items-center justify-between py-1.5 border-b border-border/20 last:border-0",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:196",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:197",className:"text-sm font-medium",children:s.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:197,columnNumber:19},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:198",className:"text-xs text-muted-foreground",children:s.desc},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:198,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:196,columnNumber:17},this),w.jsxDEV("span",{"data-loc":"client/src/pages/Dashboard.tsx:200",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${s.status}`,children:s.status==="active"?"运行中":"异常"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:200,columnNumber:17},this)]},s.name,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:195,columnNumber:15},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:186,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:179,columnNumber:9},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/Dashboard.tsx:209",className:"border-border/50",children:[w.jsxDEV(ri,{"data-loc":"client/src/pages/Dashboard.tsx:210",className:"pb-2",children:w.jsxDEV(ai,{"data-loc":"client/src/pages/Dashboard.tsx:211",className:"text-sm font-semibold flex items-center gap-2",children:[w.jsxDEV(Xy,{"data-loc":"client/src/pages/Dashboard.tsx:212",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:212,columnNumber:15},this),"最近操作记录"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:211,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:210,columnNumber:11},this),w.jsxDEV(Jt,{"data-loc":"client/src/pages/Dashboard.tsx:216",children:n&&n.length>0?w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:218",className:"space-y-2 max-h-[280px] overflow-y-auto",children:n.slice(0,10).map((s,u)=>w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:220",className:"flex items-start gap-2 py-1.5 border-b border-border/20 last:border-0",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:221",className:"w-1.5 h-1.5 rounded-full bg-primary mt-1.5 shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:221,columnNumber:21},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:222",className:"flex-1 min-w-0",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:223",className:"text-xs font-medium truncate",children:s.action},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:223,columnNumber:23},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:224",className:"text-xs text-muted-foreground truncate",children:s.email},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:224,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:222,columnNumber:21},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:226",className:"text-xs text-muted-foreground shrink-0",children:new Date(s.timestamp).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:226,columnNumber:21},this)]},u,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:220,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:218,columnNumber:15},this):w.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:233",className:"h-[280px] flex items-center justify-center text-muted-foreground text-sm",children:"暂无操作记录"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:233,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:216,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:209,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:177,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:75,columnNumber:5},this)}function mz(e,[t,n]){return Math.min(n,Math.max(t,e))}function TK(e){const t=R.useRef({value:e,previous:e});return R.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var YEe=[" ","Enter","ArrowUp","ArrowDown"],QEe=[" ","Enter"],qu="Select",[mx,px,XEe]=CD(qu),[yf]=is(qu,[XEe,rf]),hx=rf(),[WEe,vl]=yf(qu),[ZEe,JEe]=yf(qu),CK=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:u,defaultValue:c,onValueChange:f,dir:m,name:g,autoComplete:p,disabled:y,required:b,form:S}=e,x=hx(t),[N,T]=R.useState(null),[C,D]=R.useState(null),[P,A]=R.useState(!1),_=_D(m),[j,L]=_u({prop:r,defaultProp:o??!1,onChange:s,caller:qu}),[V,B]=_u({prop:u,defaultProp:c,onChange:f,caller:qu}),U=R.useRef(null),H=N?S||!!N.closest("form"):!0,[G,Y]=R.useState(new Set),J=Array.from(G).map(q=>q.props.value).join(";");return le.jsx(lD,{...x,children:le.jsxs(WEe,{required:b,scope:t,trigger:N,onTriggerChange:T,valueNode:C,onValueNodeChange:D,valueNodeHasChildren:P,onValueNodeHasChildrenChange:A,contentId:Wi(),value:V,onValueChange:B,open:j,onOpenChange:L,dir:_,triggerPointerDownPosRef:U,disabled:y,children:[le.jsx(mx.Provider,{scope:t,children:le.jsx(ZEe,{scope:e.__scopeSelect,onNativeOptionAdd:R.useCallback(q=>{Y(z=>new Set(z).add(q))},[]),onNativeOptionRemove:R.useCallback(q=>{Y(z=>{const K=new Set(z);return K.delete(q),K})},[]),children:n})}),H?le.jsxs(XK,{"aria-hidden":!0,required:b,tabIndex:-1,name:g,autoComplete:p,value:V,onChange:q=>B(q.target.value),disabled:y,form:S,children:[V===void 0?le.jsx("option",{value:""}):null,Array.from(G)]},J):null]})})};CK.displayName=qu;var _K="SelectTrigger",DK=R.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=hx(n),u=vl(_K,n),c=u.disabled||r,f=Dt(t,u.onTriggerChange),m=px(n),g=R.useRef("touch"),[p,y,b]=ZK(x=>{const N=m().filter(D=>!D.disabled),T=N.find(D=>D.value===u.value),C=JK(N,x,T);C!==void 0&&u.onValueChange(C.value)}),S=x=>{c||(u.onOpenChange(!0),b()),x&&(u.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return le.jsx(uD,{asChild:!0,...s,children:le.jsx(pt.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":WK(u.value)?"":void 0,...o,ref:f,onClick:Ie(o.onClick,x=>{x.currentTarget.focus(),g.current!=="mouse"&&S(x)}),onPointerDown:Ie(o.onPointerDown,x=>{g.current=x.pointerType;const N=x.target;N.hasPointerCapture(x.pointerId)&&N.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(S(x),x.preventDefault())}),onKeyDown:Ie(o.onKeyDown,x=>{const N=p.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&y(x.key),!(N&&x.key===" ")&&YEe.includes(x.key)&&(S(),x.preventDefault())})})})});DK.displayName=_K;var RK="SelectValue",jK=R.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:u="",...c}=e,f=vl(RK,n),{onValueNodeHasChildrenChange:m}=f,g=s!==void 0,p=Dt(t,f.onValueNodeChange);return vr(()=>{m(g)},[m,g]),le.jsx(pt.span,{...c,ref:p,style:{pointerEvents:"none"},children:WK(f.value)?le.jsx(le.Fragment,{children:u}):s})});jK.displayName=RK;var eSe="SelectIcon",PK=R.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return le.jsx(pt.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});PK.displayName=eSe;var tSe="SelectPortal",MK=e=>le.jsx(_h,{asChild:!0,...e});MK.displayName=tSe;var Hu="SelectContent",LK=R.forwardRef((e,t)=>{const n=vl(Hu,e.__scopeSelect),[r,o]=R.useState();if(vr(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Oh.createPortal(le.jsx(kK,{scope:e.__scopeSelect,children:le.jsx(mx.Slot,{scope:e.__scopeSelect,children:le.jsx("div",{children:e.children})})}),s):null}return le.jsx(IK,{...e,ref:t})});LK.displayName=Hu;var Ja=10,[kK,yl]=yf(Hu),nSe="SelectContentImpl",rSe=Tu("SelectContent.RemoveScroll"),IK=R.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:u,side:c,sideOffset:f,align:m,alignOffset:g,arrowPadding:p,collisionBoundary:y,collisionPadding:b,sticky:S,hideWhenDetached:x,avoidCollisions:N,...T}=e,C=vl(Hu,n),[D,P]=R.useState(null),[A,_]=R.useState(null),j=Dt(t,ce=>P(ce)),[L,V]=R.useState(null),[B,U]=R.useState(null),H=px(n),[G,Y]=R.useState(!1),J=R.useRef(!1);R.useEffect(()=>{if(D)return ED(D)},[D]),ND();const q=R.useCallback(ce=>{const[xe,...me]=H().map(ie=>ie.ref.current),[be]=me.slice(-1),de=document.activeElement;for(const ie of ce)if(ie===de||(ie?.scrollIntoView({block:"nearest"}),ie===xe&&A&&(A.scrollTop=0),ie===be&&A&&(A.scrollTop=A.scrollHeight),ie?.focus(),document.activeElement!==de))return},[H,A]),z=R.useCallback(()=>q([L,D]),[q,L,D]);R.useEffect(()=>{G&&z()},[G,z]);const{onOpenChange:K,triggerPointerDownPosRef:te}=C;R.useEffect(()=>{if(D){let ce={x:0,y:0};const xe=be=>{ce={x:Math.abs(Math.round(be.pageX)-(te.current?.x??0)),y:Math.abs(Math.round(be.pageY)-(te.current?.y??0))}},me=be=>{ce.x<=10&&ce.y<=10?be.preventDefault():D.contains(be.target)||K(!1),document.removeEventListener("pointermove",xe),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",me,{capture:!0})}}},[D,K,te]),R.useEffect(()=>{const ce=()=>K(!1);return window.addEventListener("blur",ce),window.addEventListener("resize",ce),()=>{window.removeEventListener("blur",ce),window.removeEventListener("resize",ce)}},[K]);const[ne,k]=ZK(ce=>{const xe=H().filter(de=>!de.disabled),me=xe.find(de=>de.ref.current===document.activeElement),be=JK(xe,ce,me);be&&setTimeout(()=>be.ref.current.focus())}),Q=R.useCallback((ce,xe,me)=>{const be=!J.current&&!me;(C.value!==void 0&&C.value===xe||be)&&(V(ce),be&&(J.current=!0))},[C.value]),W=R.useCallback(()=>D?.focus(),[D]),ae=R.useCallback((ce,xe,me)=>{const be=!J.current&&!me;(C.value!==void 0&&C.value===xe||be)&&U(ce)},[C.value]),ge=r==="popper"?U_:$K,Ne=ge===U_?{side:c,sideOffset:f,align:m,alignOffset:g,arrowPadding:p,collisionBoundary:y,collisionPadding:b,sticky:S,hideWhenDetached:x,avoidCollisions:N}:{};return le.jsx(kK,{scope:n,content:D,viewport:A,onViewportChange:_,itemRefCallback:Q,selectedItem:L,onItemLeave:W,itemTextRefCallback:ae,focusSelectedItem:z,selectedItemText:B,position:r,isPositioned:G,searchRef:ne,children:le.jsx(E0,{as:rSe,allowPinchZoom:!0,children:le.jsx(w0,{asChild:!0,trapped:C.open,onMountAutoFocus:ce=>{ce.preventDefault()},onUnmountAutoFocus:Ie(o,ce=>{C.trigger?.focus({preventScroll:!0}),ce.preventDefault()}),children:le.jsx(Th,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:ce=>ce.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:le.jsx(ge,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:ce=>ce.preventDefault(),...T,...Ne,onPlaced:()=>Y(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:Ie(T.onKeyDown,ce=>{const xe=ce.ctrlKey||ce.altKey||ce.metaKey;if(ce.key==="Tab"&&ce.preventDefault(),!xe&&ce.key.length===1&&k(ce.key),["ArrowUp","ArrowDown","Home","End"].includes(ce.key)){let be=H().filter(de=>!de.disabled).map(de=>de.ref.current);if(["ArrowUp","End"].includes(ce.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(ce.key)){const de=ce.target,ie=be.indexOf(de);be=be.slice(ie+1)}setTimeout(()=>q(be)),ce.preventDefault()}})})})})})})});IK.displayName=nSe;var aSe="SelectItemAlignedPosition",$K=R.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=vl(Hu,n),u=yl(Hu,n),[c,f]=R.useState(null),[m,g]=R.useState(null),p=Dt(t,j=>g(j)),y=px(n),b=R.useRef(!1),S=R.useRef(!0),{viewport:x,selectedItem:N,selectedItemText:T,focusSelectedItem:C}=u,D=R.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&m&&x&&N&&T){const j=s.trigger.getBoundingClientRect(),L=m.getBoundingClientRect(),V=s.valueNode.getBoundingClientRect(),B=T.getBoundingClientRect();if(s.dir!=="rtl"){const de=B.left-L.left,ie=V.left-de,ze=j.left-ie,we=j.width+ze,lt=Math.max(we,L.width),$e=window.innerWidth-Ja,et=mz(ie,[Ja,Math.max(Ja,$e-lt)]);c.style.minWidth=we+"px",c.style.left=et+"px"}else{const de=L.right-B.right,ie=window.innerWidth-V.right-de,ze=window.innerWidth-j.right-ie,we=j.width+ze,lt=Math.max(we,L.width),$e=window.innerWidth-Ja,et=mz(ie,[Ja,Math.max(Ja,$e-lt)]);c.style.minWidth=we+"px",c.style.right=et+"px"}const U=y(),H=window.innerHeight-Ja*2,G=x.scrollHeight,Y=window.getComputedStyle(m),J=parseInt(Y.borderTopWidth,10),q=parseInt(Y.paddingTop,10),z=parseInt(Y.borderBottomWidth,10),K=parseInt(Y.paddingBottom,10),te=J+q+G+K+z,ne=Math.min(N.offsetHeight*5,te),k=window.getComputedStyle(x),Q=parseInt(k.paddingTop,10),W=parseInt(k.paddingBottom,10),ae=j.top+j.height/2-Ja,ge=H-ae,Ne=N.offsetHeight/2,ce=N.offsetTop+Ne,xe=J+q+ce,me=te-xe;if(xe<=ae){const de=U.length>0&&N===U[U.length-1].ref.current;c.style.bottom="0px";const ie=m.clientHeight-x.offsetTop-x.offsetHeight,ze=Math.max(ge,Ne+(de?W:0)+ie+z),we=xe+ze;c.style.height=we+"px"}else{const de=U.length>0&&N===U[0].ref.current;c.style.top="0px";const ze=Math.max(ae,J+x.offsetTop+(de?Q:0)+Ne)+me;c.style.height=ze+"px",x.scrollTop=xe-ae+x.offsetTop}c.style.margin=`${Ja}px 0`,c.style.minHeight=ne+"px",c.style.maxHeight=H+"px",r?.(),requestAnimationFrame(()=>b.current=!0)}},[y,s.trigger,s.valueNode,c,m,x,N,T,s.dir,r]);vr(()=>D(),[D]);const[P,A]=R.useState();vr(()=>{m&&A(window.getComputedStyle(m).zIndex)},[m]);const _=R.useCallback(j=>{j&&S.current===!0&&(D(),C?.(),S.current=!1)},[D,C]);return le.jsx(oSe,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:b,onScrollButtonChange:_,children:le.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:le.jsx(pt.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});$K.displayName=aSe;var iSe="SelectPopperPosition",U_=R.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ja,...s}=e,u=hx(n);return le.jsx(cD,{...u,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});U_.displayName=iSe;var[oSe,BR]=yf(Hu,{}),q_="SelectViewport",VK=R.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=yl(q_,n),u=BR(q_,n),c=Dt(t,s.onViewportChange),f=R.useRef(0);return le.jsxs(le.Fragment,{children:[le.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),le.jsx(mx.Slot,{scope:n,children:le.jsx(pt.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Ie(o.onScroll,m=>{const g=m.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:y}=u;if(y?.current&&p){const b=Math.abs(f.current-g.scrollTop);if(b>0){const S=window.innerHeight-Ja*2,x=parseFloat(p.style.minHeight),N=parseFloat(p.style.height),T=Math.max(x,N);if(T<S){const C=T+b,D=Math.min(S,C),P=C-D;p.style.height=D+"px",p.style.bottom==="0px"&&(g.scrollTop=P>0?P:0,p.style.justifyContent="flex-end")}}}f.current=g.scrollTop})})})]})});VK.displayName=q_;var BK="SelectGroup",[sSe,lSe]=yf(BK),uSe=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Wi();return le.jsx(sSe,{scope:n,id:o,children:le.jsx(pt.div,{role:"group","aria-labelledby":o,...r,ref:t})})});uSe.displayName=BK;var zK="SelectLabel",cSe=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=lSe(zK,n);return le.jsx(pt.div,{id:o.id,...r,ref:t})});cSe.displayName=zK;var Jb="SelectItem",[dSe,UK]=yf(Jb),qK=R.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...u}=e,c=vl(Jb,n),f=yl(Jb,n),m=c.value===r,[g,p]=R.useState(s??""),[y,b]=R.useState(!1),S=Dt(t,C=>f.itemRefCallback?.(C,r,o)),x=Wi(),N=R.useRef("touch"),T=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return le.jsx(dSe,{scope:n,value:r,disabled:o,textId:x,isSelected:m,onItemTextChange:R.useCallback(C=>{p(D=>D||(C?.textContent??"").trim())},[]),children:le.jsx(mx.ItemSlot,{scope:n,value:r,disabled:o,textValue:g,children:le.jsx(pt.div,{role:"option","aria-labelledby":x,"data-highlighted":y?"":void 0,"aria-selected":m&&y,"data-state":m?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:S,onFocus:Ie(u.onFocus,()=>b(!0)),onBlur:Ie(u.onBlur,()=>b(!1)),onClick:Ie(u.onClick,()=>{N.current!=="mouse"&&T()}),onPointerUp:Ie(u.onPointerUp,()=>{N.current==="mouse"&&T()}),onPointerDown:Ie(u.onPointerDown,C=>{N.current=C.pointerType}),onPointerMove:Ie(u.onPointerMove,C=>{N.current=C.pointerType,o?f.onItemLeave?.():N.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ie(u.onPointerLeave,C=>{C.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:Ie(u.onKeyDown,C=>{f.searchRef?.current!==""&&C.key===" "||(QEe.includes(C.key)&&T(),C.key===" "&&C.preventDefault())})})})})});qK.displayName=Jb;var hp="SelectItemText",HK=R.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,u=vl(hp,n),c=yl(hp,n),f=UK(hp,n),m=JEe(hp,n),[g,p]=R.useState(null),y=Dt(t,T=>p(T),f.onItemTextChange,T=>c.itemTextRefCallback?.(T,f.value,f.disabled)),b=g?.textContent,S=R.useMemo(()=>le.jsx("option",{value:f.value,disabled:f.disabled,children:b},f.value),[f.disabled,f.value,b]),{onNativeOptionAdd:x,onNativeOptionRemove:N}=m;return vr(()=>(x(S),()=>N(S)),[x,N,S]),le.jsxs(le.Fragment,{children:[le.jsx(pt.span,{id:f.textId,...s,ref:y}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?Oh.createPortal(s.children,u.valueNode):null]})});HK.displayName=hp;var FK="SelectItemIndicator",KK=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return UK(FK,n).isSelected?le.jsx(pt.span,{"aria-hidden":!0,...r,ref:t}):null});KK.displayName=FK;var H_="SelectScrollUpButton",GK=R.forwardRef((e,t)=>{const n=yl(H_,e.__scopeSelect),r=BR(H_,e.__scopeSelect),[o,s]=R.useState(!1),u=Dt(t,r.onScrollButtonChange);return vr(()=>{if(n.viewport&&n.isPositioned){let c=function(){const m=f.scrollTop>0;s(m)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?le.jsx(QK,{...e,ref:u,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});GK.displayName=H_;var F_="SelectScrollDownButton",YK=R.forwardRef((e,t)=>{const n=yl(F_,e.__scopeSelect),r=BR(F_,e.__scopeSelect),[o,s]=R.useState(!1),u=Dt(t,r.onScrollButtonChange);return vr(()=>{if(n.viewport&&n.isPositioned){let c=function(){const m=f.scrollHeight-f.clientHeight,g=Math.ceil(f.scrollTop)<m;s(g)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?le.jsx(QK,{...e,ref:u,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});YK.displayName=F_;var QK=R.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=yl("SelectScrollButton",n),u=R.useRef(null),c=px(n),f=R.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return R.useEffect(()=>()=>f(),[f]),vr(()=>{c().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),le.jsx(pt.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Ie(o.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(r,50))}),onPointerMove:Ie(o.onPointerMove,()=>{s.onItemLeave?.(),u.current===null&&(u.current=window.setInterval(r,50))}),onPointerLeave:Ie(o.onPointerLeave,()=>{f()})})}),fSe="SelectSeparator",mSe=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return le.jsx(pt.div,{"aria-hidden":!0,...r,ref:t})});mSe.displayName=fSe;var K_="SelectArrow",pSe=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=hx(n),s=vl(K_,n),u=yl(K_,n);return s.open&&u.position==="popper"?le.jsx(dD,{...o,...r,ref:t}):null});pSe.displayName=K_;var hSe="SelectBubbleInput",XK=R.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=R.useRef(null),s=Dt(r,o),u=TK(t);return R.useEffect(()=>{const c=o.current;if(!c)return;const f=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(f,"value").set;if(u!==t&&g){const p=new Event("change",{bubbles:!0});g.call(c,t),c.dispatchEvent(p)}},[u,t]),le.jsx(pt.select,{...n,style:{...r2,...n.style},ref:s,defaultValue:t})});XK.displayName=hSe;function WK(e){return e===""||e===void 0}function ZK(e){const t=no(e),n=R.useRef(""),r=R.useRef(0),o=R.useCallback(u=>{const c=n.current+u;t(c),(function f(m){n.current=m,window.clearTimeout(r.current),m!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(c)},[t]),s=R.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return R.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function JK(e,t,n){const o=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let u=gSe(e,Math.max(s,0));o.length===1&&(u=u.filter(m=>m!==n));const f=u.find(m=>m.textValue.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function gSe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var vSe=CK,ySe=DK,bSe=jK,xSe=PK,wSe=MK,NSe=LK,ESe=VK,SSe=qK,ASe=HK,OSe=KK,TSe=GK,CSe=YK;function mr({...e}){return w.jsxDEV(vSe,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:10,columnNumber:10},this)}function pr({...e}){return w.jsxDEV(bSe,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:22,columnNumber:10},this)}function hr({className:e,size:t="default",children:n,...r}){return w.jsxDEV(ySe,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":t,className:kt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,w.jsxDEV(xSe,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:w.jsxDEV(vD,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:45,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:44,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:34,columnNumber:5},this)}function gr({className:e,children:t,position:n="popper",align:r="center",...o}){return w.jsxDEV(wSe,{"data-loc":"client/src/components/ui/select.tsx:59",children:w.jsxDEV(NSe,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:kt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...o,children:[w.jsxDEV(_Se,{"data-loc":"client/src/components/ui/select.tsx:72"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:72,columnNumber:9},this),w.jsxDEV(ESe,{"data-loc":"client/src/components/ui/select.tsx:73",className:kt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:73,columnNumber:9},this),w.jsxDEV(DSe,{"data-loc":"client/src/components/ui/select.tsx:82"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:82,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:60,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:59,columnNumber:5},this)}function Ot({className:e,children:t,...n}){return w.jsxDEV(SSe,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:kt("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[w.jsxDEV("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:w.jsxDEV(OSe,{"data-loc":"client/src/components/ui/select.tsx:116",children:w.jsxDEV(Eae,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:117,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:116,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:115,columnNumber:7},this),w.jsxDEV(ASe,{"data-loc":"client/src/components/ui/select.tsx:120",children:t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:120,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:107,columnNumber:5},this)}function _Se({className:e,...t}){return w.jsxDEV(TSe,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:kt("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsxDEV(O2,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:151,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:143,columnNumber:5},this)}function DSe({className:e,...t}){return w.jsxDEV(CSe,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:kt("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsxDEV(vD,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:169,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:161,columnNumber:5},this)}function wh({className:e,onKeyDown:t,onCompositionStart:n,onCompositionEnd:r,...o}){const s=TD(),{onCompositionStart:u,onCompositionEnd:c,onKeyDown:f}=f9({onKeyDown:m=>{const g=m.nativeEvent.isComposing||s.justEndedComposing();m.key==="Enter"&&!m.shiftKey&&g||t?.(m)},onCompositionStart:m=>{s.setComposing(!0),n?.(m)},onCompositionEnd:m=>{s.markCompositionEnd(),setTimeout(()=>{s.setComposing(!1)},100),r?.(m)}});return w.jsxDEV("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:kt("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onCompositionStart:u,onCompositionEnd:c,onKeyDown:f,...o},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/textarea.tsx",lineNumber:53,columnNumber:5},this)}var gx="Switch",[RSe]=is(gx),[jSe,PSe]=RSe(gx),eG=R.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:u,disabled:c,value:f="on",onCheckedChange:m,form:g,...p}=e,[y,b]=R.useState(null),S=Dt(t,D=>b(D)),x=R.useRef(!1),N=y?g||!!y.closest("form"):!0,[T,C]=_u({prop:o,defaultProp:s??!1,onChange:m,caller:gx});return le.jsxs(jSe,{scope:n,checked:T,disabled:c,children:[le.jsx(pt.button,{type:"button",role:"switch","aria-checked":T,"aria-required":u,"data-state":aG(T),"data-disabled":c?"":void 0,disabled:c,value:f,...p,ref:S,onClick:Ie(e.onClick,D=>{C(P=>!P),N&&(x.current=D.isPropagationStopped(),x.current||D.stopPropagation())})}),N&&le.jsx(rG,{control:y,bubbles:!x.current,name:r,value:f,checked:T,required:u,disabled:c,form:g,style:{transform:"translateX(-100%)"}})]})});eG.displayName=gx;var tG="SwitchThumb",nG=R.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=PSe(tG,n);return le.jsx(pt.span,{"data-state":aG(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});nG.displayName=tG;var MSe="SwitchBubbleInput",rG=R.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const u=R.useRef(null),c=Dt(u,s),f=TK(n),m=GU(t);return R.useEffect(()=>{const g=u.current;if(!g)return;const p=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==n&&b){const S=new Event("click",{bubbles:r});b.call(g,n),g.dispatchEvent(S)}},[f,n,r]),le.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});rG.displayName=MSe;function aG(e){return e?"checked":"unchecked"}var LSe=eG,kSe=nG;function pz({className:e,...t}){return w.jsxDEV(LSe,{"data-loc":"client/src/components/ui/switch.tsx:11","data-slot":"switch",className:kt("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:w.jsxDEV(kSe,{"data-loc":"client/src/components/ui/switch.tsx:19","data-slot":"switch-thumb",className:kt("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/switch.tsx",lineNumber:19,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/switch.tsx",lineNumber:11,columnNumber:5},this)}const hz=["CN","HK","US","EU","SG","AE","ALL"],gz=["RealEstate","Securities","DigitalToken","Commodity","IntellectualProperty","Equipment","ALL"],LT={zh:"🇨🇳",en:"🇺🇸",ar:"🇸🇦",ja:"🇯🇵",ko:"🇰🇷",fr:"🇫🇷",ru:"🇷🇺"},kT={zh:"中文",en:"English",ar:"العربية",ja:"日本語",ko:"한국어",fr:"Français",ru:"Русский"};function ISe(){const{t:e,i18n:t}=l0(),n=t.language.split("-")[0],r=["zh","en","ar","ja","ko","fr","ru"].includes(n)?n:"zh",[o,s]=R.useState(""),[u,c]=R.useState(""),[f,m]=R.useState(""),[g,p]=R.useState(1),[y,b]=R.useState(!1),[S,x]=R.useState(null),[N,T]=R.useState(null),[C,D]=R.useState({jurisdiction:"",assetType:"",ruleName:"",description:"",required:!0,tags:"",sourceLang:"zh",autoTranslate:!0}),P=St.useUtils(),{data:A,isLoading:_,refetch:j}=St.knowledgeBase.list.useQuery({jurisdiction:o||void 0,assetType:u||void 0,status:f||void 0,page:g,pageSize:15,lang:r}),L=St.knowledgeBase.create.useMutation({onSuccess:()=>{Ft.success(e("knowledgeBase.ruleCreated","规则创建成功,AI翻译已自动生成")),b(!1),P.knowledgeBase.list.invalidate(),D({jurisdiction:"",assetType:"",ruleName:"",description:"",required:!0,tags:"",sourceLang:"zh",autoTranslate:!0})},onError:z=>Ft.error(z.message)}),V=St.knowledgeBase.toggleStatus.useMutation({onSuccess:()=>{Ft.success(e("common.statusUpdated","状态已更新")),P.knowledgeBase.list.invalidate()},onError:z=>Ft.error(z.message)}),B=St.knowledgeBase.delete.useMutation({onSuccess:()=>{Ft.success(e("common.deleted","规则已删除")),P.knowledgeBase.list.invalidate()},onError:z=>Ft.error(z.message)}),U=St.knowledgeBase.translateRule.useMutation({onSuccess:z=>{Ft.success(e("knowledgeBase.translateSuccess","AI翻译完成,已更新七种语言")),P.knowledgeBase.list.invalidate(),T(null)},onError:z=>{Ft.error(z.message),T(null)}}),H=St.knowledgeBase.migrateAllToMultiLang.useMutation({onSuccess:z=>{Ft.success(`批量翻译完成,已迁移 ${z.migratedCount} 条规则`),P.knowledgeBase.list.invalidate()},onError:z=>Ft.error(z.message)}),G=A?.items||[],Y=A?.total||0,J=Math.ceil(Y/15),q=z=>{T(z),U.mutate({id:z})};return w.jsxDEV(hD,{"data-loc":"client/src/pages/KnowledgeBase.tsx:100",children:w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:101",className:"p-6 space-y-5",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:102",className:"flex items-center justify-between",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:103",children:[w.jsxDEV("h1",{"data-loc":"client/src/pages/KnowledgeBase.tsx:104",className:"text-2xl font-bold nac-gradient-text",children:e("nav.knowledgeBase","知识库管理")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:104,columnNumber:13},this),w.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:105",className:"text-sm text-muted-foreground mt-0.5",children:e("knowledgeBase.subtitle","管理合规规则、法规条文与交易细则 — 支持七种语言")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:105,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:103,columnNumber:11},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:107",className:"flex items-center gap-2",children:[w.jsxDEV(yE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:108",children:[w.jsxDEV(bE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:109",asChild:!0,children:w.jsxDEV(yt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:110",variant:"outline",size:"sm",onClick:()=>H.mutate(),disabled:H.isPending,className:"border-border/50",children:[H.isPending?w.jsxDEV(cp,{"data-loc":"client/src/pages/KnowledgeBase.tsx:116",className:"w-4 h-4 mr-1.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:116,columnNumber:48},this):w.jsxDEV(Du,{"data-loc":"client/src/pages/KnowledgeBase.tsx:116",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:116,columnNumber:152},this),e("knowledgeBase.batchTranslate","批量AI翻译")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:110,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:109,columnNumber:15},this),w.jsxDEV(xE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:120",children:"为所有缺少多语言翻译的规则自动生成七语言版本"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:120,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:108,columnNumber:13},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:122",variant:"outline",size:"sm",onClick:()=>j(),className:"border-border/50",children:[w.jsxDEV(sf,{"data-loc":"client/src/pages/KnowledgeBase.tsx:123",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:123,columnNumber:15},this),e("common.refresh","刷新")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:122,columnNumber:13},this),w.jsxDEV(Pu,{"data-loc":"client/src/pages/KnowledgeBase.tsx:125",open:y,onOpenChange:b,children:[w.jsxDEV($p,{"data-loc":"client/src/pages/KnowledgeBase.tsx:126",asChild:!0,children:w.jsxDEV(yt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:127",size:"sm",className:"nac-gradient text-white",children:[w.jsxDEV(y0,{"data-loc":"client/src/pages/KnowledgeBase.tsx:128",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:128,columnNumber:19},this),e("knowledgeBase.addRule","新增规则")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:127,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:126,columnNumber:15},this),w.jsxDEV(Mu,{"data-loc":"client/src/pages/KnowledgeBase.tsx:131",className:"bg-card border-border/50 max-w-lg",children:[w.jsxDEV(Lu,{"data-loc":"client/src/pages/KnowledgeBase.tsx:132",children:w.jsxDEV(ku,{"data-loc":"client/src/pages/KnowledgeBase.tsx:133",children:e("knowledgeBase.createRule","新增合规规则")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:133,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:132,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:135",className:"space-y-4 mt-2",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:136",className:"grid grid-cols-2 gap-3",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:137",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/KnowledgeBase.tsx:138",className:"text-xs",children:e("knowledgeBase.jurisdiction","司法辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:138,columnNumber:23},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:139",value:C.jurisdiction,onValueChange:z=>D(K=>({...K,jurisdiction:z})),children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:140",className:"bg-input border-border/50 h-9",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:140",placeholder:"选择辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:140,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:140,columnNumber:25},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:141",className:"bg-card border-border/50",children:hz.map(z=>w.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:142",value:z,children:z},z,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:142,columnNumber:51},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:141,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:139,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:137,columnNumber:21},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:146",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/KnowledgeBase.tsx:147",className:"text-xs",children:e("knowledgeBase.assetType","资产类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:147,columnNumber:23},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:148",value:C.assetType,onValueChange:z=>D(K=>({...K,assetType:z})),children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:149",className:"bg-input border-border/50 h-9",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:149",placeholder:"选择类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:149,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:149,columnNumber:25},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:150",className:"bg-card border-border/50",children:gz.map(z=>w.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:151",value:z,children:z},z,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:151,columnNumber:49},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:150,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:148,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:146,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:136,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:156",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/KnowledgeBase.tsx:157",className:"text-xs",children:e("knowledgeBase.sourceLang","输入语言")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:157,columnNumber:21},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:158",value:C.sourceLang,onValueChange:z=>D(K=>({...K,sourceLang:z})),children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:159",className:"bg-input border-border/50 h-9",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:159"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:159,columnNumber:130},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:159,columnNumber:23},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:160",className:"bg-card border-border/50",children:Object.entries(kT).map(([z,K])=>w.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:162",value:z,children:[LT[z]," ",K]},z,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:162,columnNumber:27},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:160,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:158,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:156,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:167",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/KnowledgeBase.tsx:168",className:"text-xs",children:e("knowledgeBase.ruleName","规则名称")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:168,columnNumber:21},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:169",value:C.ruleName,onChange:z=>D(K=>({...K,ruleName:z.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:不动产登记证要求"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:169,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:167,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:171",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/KnowledgeBase.tsx:172",className:"text-xs",children:e("knowledgeBase.description","规则描述")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:172,columnNumber:21},this),w.jsxDEV(wh,{"data-loc":"client/src/pages/KnowledgeBase.tsx:173",value:C.description,onChange:z=>D(K=>({...K,description:z.target.value})),className:"bg-input border-border/50 resize-none",rows:3,placeholder:"详细描述合规要求..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:173,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:171,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:175",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/KnowledgeBase.tsx:176",className:"text-xs",children:e("knowledgeBase.tags","标签(逗号分隔)")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:176,columnNumber:21},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:177",value:C.tags,onChange:z=>D(K=>({...K,tags:z.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN, RealEstate, Document"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:177,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:175,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:179",className:"flex items-center justify-between",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:180",className:"flex items-center gap-2",children:[w.jsxDEV(pz,{"data-loc":"client/src/pages/KnowledgeBase.tsx:181",checked:C.required,onCheckedChange:z=>D(K=>({...K,required:z}))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:181,columnNumber:23},this),w.jsxDEV(Et,{"data-loc":"client/src/pages/KnowledgeBase.tsx:182",className:"text-xs",children:e("knowledgeBase.required","强制要求")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:182,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:180,columnNumber:21},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:184",className:"flex items-center gap-2",children:[w.jsxDEV(pz,{"data-loc":"client/src/pages/KnowledgeBase.tsx:185",checked:C.autoTranslate,onCheckedChange:z=>D(K=>({...K,autoTranslate:z}))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:185,columnNumber:23},this),w.jsxDEV(Et,{"data-loc":"client/src/pages/KnowledgeBase.tsx:186",className:"text-xs flex items-center gap-1",children:[w.jsxDEV(wE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:187",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:187,columnNumber:25},this),e("knowledgeBase.autoTranslate","AI自动翻译七语言")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:186,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:184,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:179,columnNumber:19},this),C.autoTranslate&&w.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:192",className:"text-xs text-muted-foreground bg-accent/30 rounded p-2",children:"🤖 创建后将自动调用AI生成:中文、英文、阿拉伯文、日文、韩文、法文、俄文七种语言版本"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:192,columnNumber:21},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:196",className:"w-full nac-gradient text-white",onClick:()=>L.mutate({...C,tags:C.tags.split(",").map(z=>z.trim()).filter(Boolean),sourceLang:C.sourceLang,autoTranslate:C.autoTranslate}),disabled:L.isPending||!C.jurisdiction||!C.assetType||!C.ruleName,children:L.isPending?w.jsxDEV(w.Fragment,{children:[w.jsxDEV(cp,{"data-loc":"client/src/pages/KnowledgeBase.tsx:207",className:"w-4 h-4 mr-1.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:207,columnNumber:25},this),"AI翻译生成中..."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:207,columnNumber:23},this):e("knowledgeBase.createRule","创建规则")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:196,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:135,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:131,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:125,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:107,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:102,columnNumber:9},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:217",className:"flex items-center gap-2 text-xs text-muted-foreground",children:[w.jsxDEV(wE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:218",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:218,columnNumber:11},this),w.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:219",children:["当前显示语言:",LT[r]," ",kT[r]," — 切换界面语言可同步切换规则显示语言"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:219,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:217,columnNumber:9},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:223",className:"border-border/50",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:224",className:"p-4",children:w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:225",className:"flex flex-wrap items-center gap-3",children:[w.jsxDEV(Cae,{"data-loc":"client/src/pages/KnowledgeBase.tsx:226",className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:226,columnNumber:15},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:227",value:o,onValueChange:z=>{s(z==="ALL_FILTER"?"":z),p(1)},children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:228",className:"w-36 bg-input border-border/50 h-8 text-sm",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:228",placeholder:e("knowledgeBase.jurisdiction","司法辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:228,columnNumber:137},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:228,columnNumber:17},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:229",className:"bg-card border-border/50",children:[w.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:230",value:"ALL_FILTER",children:e("common.all","全部辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:230,columnNumber:19},this),hz.map(z=>w.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:231",value:z,children:z},z,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:231,columnNumber:43},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:229,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:227,columnNumber:15},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:234",value:u,onValueChange:z=>{c(z==="ALL_FILTER"?"":z),p(1)},children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:235",className:"w-40 bg-input border-border/50 h-8 text-sm",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:235",placeholder:e("knowledgeBase.assetType","资产类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:235,columnNumber:137},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:235,columnNumber:17},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:236",className:"bg-card border-border/50",children:[w.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:237",value:"ALL_FILTER",children:e("common.all","全部类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:237,columnNumber:19},this),gz.map(z=>w.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:238",value:z,children:z},z,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:238,columnNumber:41},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:236,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:234,columnNumber:15},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:241",value:f,onValueChange:z=>{m(z==="ALL_FILTER"?"":z),p(1)},children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:242",className:"w-28 bg-input border-border/50 h-8 text-sm",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:242",placeholder:e("common.status","状态")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:242,columnNumber:137},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:242,columnNumber:17},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:243",className:"bg-card border-border/50",children:[w.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:244",value:"ALL_FILTER",children:e("common.all","全部状态")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:244,columnNumber:19},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:245",value:"active",children:e("common.active","已激活")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:245,columnNumber:19},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:246",value:"disabled",children:e("common.disabled","已禁用")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:246,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:243,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:241,columnNumber:15},this),w.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:249",className:"text-xs text-muted-foreground ml-auto",children:["共 ",Y," 条规则"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:249,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:225,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:224,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:223,columnNumber:9},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:255",className:"border-border/50",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:256",className:"p-0",children:_?w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:258",className:"p-8 text-center text-muted-foreground text-sm",children:[w.jsxDEV(cp,{"data-loc":"client/src/pages/KnowledgeBase.tsx:259",className:"w-6 h-6 animate-spin mx-auto mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:259,columnNumber:17},this),"加载中..."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:258,columnNumber:15},this):G.length===0?w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:262",className:"p-8 text-center",children:[w.jsxDEV(yD,{"data-loc":"client/src/pages/KnowledgeBase.tsx:263",className:"w-10 h-10 text-muted-foreground/30 mx-auto mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:263,columnNumber:17},this),w.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:264",className:"text-muted-foreground text-sm",children:e("knowledgeBase.noRules","暂无合规规则")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:264,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:262,columnNumber:15},this):w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:267",className:"overflow-x-auto",children:w.jsxDEV("table",{"data-loc":"client/src/pages/KnowledgeBase.tsx:268",className:"w-full text-sm",children:[w.jsxDEV("thead",{"data-loc":"client/src/pages/KnowledgeBase.tsx:269",children:w.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:270",className:"border-b border-border/30",children:[w.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:271",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.ruleName","规则名称")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:271,columnNumber:23},this),w.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:272",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.jurisdiction","辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:272,columnNumber:23},this),w.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:273",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.assetType","资产类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:273,columnNumber:23},this),w.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:274",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.i18nStatus","多语言")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:274,columnNumber:23},this),w.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:275",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("common.status","状态")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:275,columnNumber:23},this),w.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:276",className:"text-right p-3 text-xs font-medium text-muted-foreground",children:e("common.actions","操作")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:276,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:270,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:269,columnNumber:19},this),w.jsxDEV("tbody",{"data-loc":"client/src/pages/KnowledgeBase.tsx:279",children:G.map(z=>{const K=z._id?.toString(),te=S===K,ne=z.ruleNameI18n&&Object.keys(z.ruleNameI18n).length>=3,k=z.ruleNameI18n?Object.keys(z.ruleNameI18n).length:0;return w.jsxDEV(w.Fragment,{children:[w.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:288",className:"border-b border-border/20 hover:bg-accent/30 transition-colors",children:[w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:289",className:"p-3",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:290",className:"font-medium",children:z.displayName||z.ruleName},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:290,columnNumber:31},this),w.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:291",className:"text-xs text-muted-foreground mt-0.5 line-clamp-1",children:z.displayDescription||z.description},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:291,columnNumber:31},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:289,columnNumber:29},this),w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:293",className:"p-3",children:w.jsxDEV(lf,{"data-loc":"client/src/pages/KnowledgeBase.tsx:294",variant:"outline",className:"text-xs border-primary/30 text-primary",children:z.jurisdiction},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:294,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:293,columnNumber:29},this),w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:296",className:"p-3 text-xs text-muted-foreground",children:z.assetType},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:296,columnNumber:29},this),w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:297",className:"p-3",children:w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:298",className:"flex items-center gap-1",children:ne?w.jsxDEV(yE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:300",children:[w.jsxDEV(bE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:301",asChild:!0,children:w.jsxDEV("button",{"data-loc":"client/src/pages/KnowledgeBase.tsx:302",className:"flex items-center gap-1 text-xs text-emerald-400 hover:text-emerald-300",onClick:()=>x(te?null:K),children:[w.jsxDEV(Du,{"data-loc":"client/src/pages/KnowledgeBase.tsx:306",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:306,columnNumber:41},this),k,"/7",te?w.jsxDEV(O2,{"data-loc":"client/src/pages/KnowledgeBase.tsx:308",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:308,columnNumber:55},this):w.jsxDEV(vD,{"data-loc":"client/src/pages/KnowledgeBase.tsx:308",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:308,columnNumber:141},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:302,columnNumber:39},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:301,columnNumber:37},this),w.jsxDEV(xE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:311",children:"点击展开查看所有语言版本"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:311,columnNumber:37},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:300,columnNumber:35},this):w.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:314",className:"text-xs text-amber-400/70",children:["仅",k,"种"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:314,columnNumber:35},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:298,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:297,columnNumber:29},this),w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:318",className:"p-3",children:w.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:319",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${z.status}`,children:z.status==="active"?e("common.active","已激活"):e("common.disabled","已禁用")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:319,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:318,columnNumber:29},this),w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:323",className:"p-3",children:w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:324",className:"flex items-center justify-end gap-1",children:[w.jsxDEV(yE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:325",children:[w.jsxDEV(bE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:326",asChild:!0,children:w.jsxDEV(yt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:327",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-blue-400 hover:text-blue-300",onClick:()=>q(K),disabled:N===K,children:N===K?w.jsxDEV(cp,{"data-loc":"client/src/pages/KnowledgeBase.tsx:334",className:"w-3.5 h-3.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:334,columnNumber:41},this):w.jsxDEV(wE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:336",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:336,columnNumber:41},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:327,columnNumber:37},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:326,columnNumber:35},this),w.jsxDEV(xE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:340",children:"AI生成/补全七语言翻译"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:340,columnNumber:35},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:325,columnNumber:33},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:342",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>V.mutate({id:K,status:z.status==="active"?"disabled":"active"}),children:[w.jsxDEV(D2,{"data-loc":"client/src/pages/KnowledgeBase.tsx:347",className:"w-3.5 h-3.5 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:347,columnNumber:35},this),z.status==="active"?e("common.disable","禁用"):e("common.enable","激活")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:342,columnNumber:33},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:350",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-destructive hover:text-destructive",onClick:()=>{confirm(e("common.confirmDelete","确认删除此规则?"))&&B.mutate({id:K})},children:w.jsxDEV(Vae,{"data-loc":"client/src/pages/KnowledgeBase.tsx:355",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:355,columnNumber:35},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:350,columnNumber:33},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:324,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:323,columnNumber:29},this)]},K,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:288,columnNumber:27},this),te&&z.ruleNameI18n&&w.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:362",className:"border-b border-border/20 bg-accent/10",children:w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:363",colSpan:6,className:"px-4 py-3",children:w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:364",className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-2",children:Object.entries(z.ruleNameI18n).map(([Q,W])=>w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:366",className:"bg-card/50 rounded p-2 border border-border/30",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:367",className:"flex items-center gap-1 mb-1",children:[w.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:368",className:"text-sm",children:LT[Q]||"🌐"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:368,columnNumber:41},this),w.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:369",className:"text-xs font-medium text-muted-foreground",children:kT[Q]||Q},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:369,columnNumber:41},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:367,columnNumber:39},this),w.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:371",className:"text-xs font-medium",children:W},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:371,columnNumber:39},this),z.descriptionI18n?.[Q]&&w.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:373",className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:z.descriptionI18n[Q]},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:373,columnNumber:41},this)]},Q,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:366,columnNumber:37},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:364,columnNumber:33},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:363,columnNumber:31},this)},`${K}-i18n`,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:362,columnNumber:29},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:287,columnNumber:25},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:279,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:268,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:267,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:256,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:255,columnNumber:9},this),J>1&&w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:393",className:"flex items-center justify-center gap-2",children:[w.jsxDEV(yt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:394",variant:"outline",size:"sm",onClick:()=>p(z=>Math.max(1,z-1)),disabled:g===1,className:"border-border/50 h-8",children:e("common.prevPage","上一页")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:394,columnNumber:13},this),w.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:395",className:"text-xs text-muted-foreground",children:[g," / ",J]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:395,columnNumber:13},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:396",variant:"outline",size:"sm",onClick:()=>p(z=>Math.min(J,z+1)),disabled:g===J,className:"border-border/50 h-8",children:e("common.nextPage","下一页")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:396,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:393,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:101,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:100,columnNumber:5},this)}const $Se=["CN","HK","US","EU","SG","AE","ALL"],VSe=["regulation","trade_rule","credit","asset_document","court_judgment","tax_rule"],BSe=["realtime","hourly","daily","weekly","monthly"];function zSe(){const[e,t]=R.useState(!1),[n,r]=R.useState({name:"",jurisdiction:"",type:"external",source:"",category:"",frequency:"daily"}),[o,s]=R.useState(null),u=St.useUtils(),{data:c,isLoading:f,refetch:m}=St.crawler.list.useQuery(),{data:g}=St.crawler.logs.useQuery({crawlerId:o||void 0,limit:30}),p=St.crawler.trigger.useMutation({onSuccess:x=>{Ft.success(x.message),u.crawler.list.invalidate(),u.crawler.logs.invalidate()},onError:x=>Ft.error(x.message)}),y=St.crawler.create.useMutation({onSuccess:()=>{Ft.success("采集器创建成功"),t(!1),u.crawler.list.invalidate(),r({name:"",jurisdiction:"",type:"external",source:"",category:"",frequency:"daily"})},onError:x=>Ft.error(x.message)}),b=c||[],S=g||[];return w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:40",className:"p-6 space-y-5",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:41",className:"flex items-center justify-between",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:42",children:[w.jsxDEV("h1",{"data-loc":"client/src/pages/Crawlers.tsx:43",className:"text-2xl font-bold nac-gradient-text",children:"采集器监控"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:43,columnNumber:11},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:44",className:"text-sm text-muted-foreground mt-0.5",children:"管理内部/外部数据采集通道"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:44,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:42,columnNumber:9},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:46",className:"flex items-center gap-2",children:[w.jsxDEV(yt,{"data-loc":"client/src/pages/Crawlers.tsx:47",variant:"outline",size:"sm",onClick:()=>m(),className:"border-border/50",children:[w.jsxDEV(sf,{"data-loc":"client/src/pages/Crawlers.tsx:48",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:48,columnNumber:13},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:47,columnNumber:11},this),w.jsxDEV(Pu,{"data-loc":"client/src/pages/Crawlers.tsx:50",open:e,onOpenChange:t,children:[w.jsxDEV($p,{"data-loc":"client/src/pages/Crawlers.tsx:51",asChild:!0,children:w.jsxDEV(yt,{"data-loc":"client/src/pages/Crawlers.tsx:52",size:"sm",className:"nac-gradient text-white",children:[w.jsxDEV(y0,{"data-loc":"client/src/pages/Crawlers.tsx:52",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:52,columnNumber:113},this),"新增采集器"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:52,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:51,columnNumber:13},this),w.jsxDEV(Mu,{"data-loc":"client/src/pages/Crawlers.tsx:54",className:"bg-card border-border/50 max-w-lg",children:[w.jsxDEV(Lu,{"data-loc":"client/src/pages/Crawlers.tsx:55",children:w.jsxDEV(ku,{"data-loc":"client/src/pages/Crawlers.tsx:55",children:"新增采集器"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:55,columnNumber:73},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:55,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:56",className:"space-y-4 mt-2",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:57",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/Crawlers.tsx:58",className:"text-xs",children:"采集器名称"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:58,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/Crawlers.tsx:59",value:n.name,onChange:x=>r(N=>({...N,name:x.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:JP-FSA法规采集器"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:59,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:57,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:61",className:"grid grid-cols-2 gap-3",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:62",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/Crawlers.tsx:63",className:"text-xs",children:"司法辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:63,columnNumber:21},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/Crawlers.tsx:64",value:n.jurisdiction,onValueChange:x=>r(N=>({...N,jurisdiction:x})),children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/Crawlers.tsx:65",className:"bg-input border-border/50 h-9",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/Crawlers.tsx:65",placeholder:"选择辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:65,columnNumber:124},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:65,columnNumber:23},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/Crawlers.tsx:66",className:"bg-card border-border/50",children:$Se.map(x=>w.jsxDEV(Ot,{"data-loc":"client/src/pages/Crawlers.tsx:67",value:x,children:x},x,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:67,columnNumber:49},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:66,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:64,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:62,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:71",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/Crawlers.tsx:72",className:"text-xs",children:"采集类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:72,columnNumber:21},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/Crawlers.tsx:73",value:n.type,onValueChange:x=>r(N=>({...N,type:x})),children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/Crawlers.tsx:74",className:"bg-input border-border/50 h-9",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/Crawlers.tsx:74"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:74,columnNumber:124},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:74,columnNumber:23},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/Crawlers.tsx:75",className:"bg-card border-border/50",children:[w.jsxDEV(Ot,{"data-loc":"client/src/pages/Crawlers.tsx:76",value:"external",children:"外部采集"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:76,columnNumber:25},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/Crawlers.tsx:77",value:"internal",children:"内部监听"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:77,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:75,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:73,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:71,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:61,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:82",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/Crawlers.tsx:83",className:"text-xs",children:"数据源 URL"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:83,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/Crawlers.tsx:84",value:n.source,onChange:x=>r(N=>({...N,source:x.target.value})),className:"bg-input border-border/50 h-9",placeholder:"https://www.fsa.go.jp"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:84,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:82,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:86",className:"grid grid-cols-2 gap-3",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:87",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/Crawlers.tsx:88",className:"text-xs",children:"数据分类"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:88,columnNumber:21},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/Crawlers.tsx:89",value:n.category,onValueChange:x=>r(N=>({...N,category:x})),children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/Crawlers.tsx:90",className:"bg-input border-border/50 h-9",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/Crawlers.tsx:90",placeholder:"选择分类"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:90,columnNumber:124},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:90,columnNumber:23},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/Crawlers.tsx:91",className:"bg-card border-border/50",children:VSe.map(x=>w.jsxDEV(Ot,{"data-loc":"client/src/pages/Crawlers.tsx:92",value:x,children:x},x,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:92,columnNumber:46},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:91,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:89,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:87,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:96",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/Crawlers.tsx:97",className:"text-xs",children:"采集频率"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:97,columnNumber:21},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/Crawlers.tsx:98",value:n.frequency,onValueChange:x=>r(N=>({...N,frequency:x})),children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/Crawlers.tsx:99",className:"bg-input border-border/50 h-9",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/Crawlers.tsx:99"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:99,columnNumber:124},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:99,columnNumber:23},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/Crawlers.tsx:100",className:"bg-card border-border/50",children:BSe.map(x=>w.jsxDEV(Ot,{"data-loc":"client/src/pages/Crawlers.tsx:101",value:x,children:x},x,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:101,columnNumber:47},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:100,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:98,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:96,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:86,columnNumber:17},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/Crawlers.tsx:106",className:"w-full nac-gradient text-white",onClick:()=>y.mutate(n),disabled:y.isPending||!n.name||!n.jurisdiction||!n.source||!n.category,children:y.isPending?"创建中...":"创建采集器"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:106,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:56,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:54,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:46,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:41,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:115",className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:117",className:"lg:col-span-2 space-y-3",children:f?w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:119",className:"p-8 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:119,columnNumber:13},this):b.map(x=>w.jsxDEV(Zt,{"data-loc":"client/src/pages/Crawlers.tsx:121",className:`border-border/50 cursor-pointer transition-all hover:border-primary/30 ${o===x._id?.toString()?"border-primary/50 bg-primary/5":""}`,onClick:()=>s(x._id?.toString()),children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/Crawlers.tsx:126",className:"p-4",children:w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:127",className:"flex items-start justify-between",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:128",className:"flex-1 min-w-0",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:129",className:"flex items-center gap-2 mb-1",children:[x.type==="internal"?w.jsxDEV(zae,{"data-loc":"client/src/pages/Crawlers.tsx:130",className:"w-3.5 h-3.5 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:130,columnNumber:54},this):w.jsxDEV(Xy,{"data-loc":"client/src/pages/Crawlers.tsx:130",className:"w-3.5 h-3.5 text-amber-400"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:130,columnNumber:147},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:131",className:"font-medium text-sm truncate",children:x.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:131,columnNumber:23},this),w.jsxDEV(lf,{"data-loc":"client/src/pages/Crawlers.tsx:132",variant:"outline",className:"text-xs border-border/50 shrink-0",children:x.jurisdiction},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:132,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:129,columnNumber:21},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:134",className:"text-xs text-muted-foreground truncate",children:x.source},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:134,columnNumber:21},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:135",className:"flex items-center gap-3 mt-2 text-xs text-muted-foreground",children:[w.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:136",className:"flex items-center gap-1",children:[w.jsxDEV(v0,{"data-loc":"client/src/pages/Crawlers.tsx:136",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:136,columnNumber:110},this),x.frequency]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:136,columnNumber:23},this),w.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:137",className:"flex items-center gap-1",children:[w.jsxDEV(Ip,{"data-loc":"client/src/pages/Crawlers.tsx:137",className:"w-3 h-3 text-emerald-400"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:137,columnNumber:110},this),x.successRate,"%"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:137,columnNumber:23},this),w.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:138",children:["采集 ",x.totalCollected," 条"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:138,columnNumber:23},this),x.lastRun&&w.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:139",children:["最后运行: ",new Date(x.lastRun).toLocaleDateString("zh-CN")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:139,columnNumber:43},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:135,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:128,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:142",className:"flex items-center gap-2 ml-3 shrink-0",children:[w.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:143",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${x.status}`,children:x.status==="active"?"运行中":"已停止"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:143,columnNumber:21},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/Crawlers.tsx:146",size:"sm",variant:"outline",className:"h-7 px-2 border-border/50 hover:border-primary/50",onClick:N=>{N.stopPropagation(),p.mutate({crawlerId:x._id.toString()})},disabled:p.isPending,children:[w.jsxDEV(H5,{"data-loc":"client/src/pages/Crawlers.tsx:152",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:152,columnNumber:23},this),"触发"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:146,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:142,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:127,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:126,columnNumber:15},this)},x._id?.toString(),!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:121,columnNumber:13},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:117,columnNumber:9},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/Crawlers.tsx:162",className:"border-border/50",children:[w.jsxDEV(ri,{"data-loc":"client/src/pages/Crawlers.tsx:163",className:"pb-2",children:w.jsxDEV(ai,{"data-loc":"client/src/pages/Crawlers.tsx:164",className:"text-sm font-semibold flex items-center gap-2",children:[w.jsxDEV(Xy,{"data-loc":"client/src/pages/Crawlers.tsx:165",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:165,columnNumber:15},this),o?"采集日志":"选择采集器查看日志"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:164,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:163,columnNumber:11},this),w.jsxDEV(Jt,{"data-loc":"client/src/pages/Crawlers.tsx:169",children:S.length===0?w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:171",className:"h-60 flex items-center justify-center text-muted-foreground text-sm",children:o?"暂无日志记录":"点击左侧采集器查看日志"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:171,columnNumber:15},this):w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:175",className:"space-y-2 max-h-[500px] overflow-y-auto",children:S.map((x,N)=>w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:177",className:"border-b border-border/20 pb-2 last:border-0",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:178",className:"flex items-center gap-1.5 mb-0.5",children:[x.status==="triggered"?w.jsxDEV(H5,{"data-loc":"client/src/pages/Crawlers.tsx:179",className:"w-3 h-3 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:179,columnNumber:53},this):x.status==="success"?w.jsxDEV(Ip,{"data-loc":"client/src/pages/Crawlers.tsx:180",className:"w-3 h-3 text-emerald-400"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:180,columnNumber:52},this):w.jsxDEV(vC,{"data-loc":"client/src/pages/Crawlers.tsx:181",className:"w-3 h-3 text-red-400"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:181,columnNumber:27},this),w.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:182",className:"text-xs font-medium",children:x.action},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:182,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:178,columnNumber:21},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:184",className:"text-xs text-muted-foreground",children:x.message},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:184,columnNumber:21},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:185",className:"text-xs text-muted-foreground/50 mt-0.5",children:new Date(x.timestamp).toLocaleString("zh-CN")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:185,columnNumber:21},this)]},N,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:177,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:175,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:169,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:162,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:115,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:40,columnNumber:5},this)}function USe(){const[e,t]=R.useState(""),[n,r]=R.useState(""),[o,s]=R.useState(1),[u,c]=R.useState(!1),[f,m]=R.useState(null),[g,p]=R.useState(""),y=St.useUtils(),{data:b,isLoading:S,refetch:x}=St.approvalCase.list.useQuery({riskLevel:e||void 0,status:n||void 0,page:o,pageSize:15}),N=St.approvalCase.review.useMutation({onSuccess:()=>{Ft.success("审核意见已提交"),c(!1),p(""),m(null),y.approvalCase.list.invalidate()},onError:_=>Ft.error(_.message)}),T=b?.items||[],C=b?.total||0,D=Math.ceil(C/15),P=_=>{const L={low:{label:"低风险",cls:"risk-low"},medium:{label:"中风险",cls:"risk-medium"},high:{label:"高风险",cls:"risk-high"}}[_]||{label:_,cls:"status-inactive"};return w.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:50",className:`text-xs px-2 py-0.5 rounded-full font-medium ${L.cls}`,children:L.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:50,columnNumber:12},this)},A=_=>{const L={approved:{label:"已通过",cls:"status-active"},rejected:{label:"已拒绝",cls:"status-error"},pending_human:{label:"待人工审核",cls:"status-pending"},auto_approved:{label:"自动通过",cls:"status-active"}}[_]||{label:_,cls:"status-inactive"};return w.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:61",className:`text-xs px-2 py-0.5 rounded-full font-medium ${L.cls}`,children:L.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:61,columnNumber:12},this)};return w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:65",className:"p-6 space-y-5",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:66",className:"flex items-center justify-between",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:67",children:[w.jsxDEV("h1",{"data-loc":"client/src/pages/ApprovalCases.tsx:68",className:"text-2xl font-bold nac-gradient-text",children:"AI 审批案例"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:68,columnNumber:11},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:69",className:"text-sm text-muted-foreground mt-0.5",children:"审查AI自动审批结果,对中风险案例进行人工复核"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:69,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:67,columnNumber:9},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/ApprovalCases.tsx:71",variant:"outline",size:"sm",onClick:()=>x(),className:"border-border/50",children:[w.jsxDEV(sf,{"data-loc":"client/src/pages/ApprovalCases.tsx:72",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:72,columnNumber:11},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:71,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:66,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:77",className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[{label:"待人工审核",value:b?.pendingCount??0,icon:v0,color:"text-amber-400"},{label:"今日通过",value:b?.todayApproved??0,icon:Ip,color:"text-emerald-400"},{label:"今日拒绝",value:b?.todayRejected??0,icon:vC,color:"text-red-400"},{label:"高风险案例",value:b?.highRiskCount??0,icon:b0,color:"text-red-400"}].map(_=>w.jsxDEV(Zt,{"data-loc":"client/src/pages/ApprovalCases.tsx:84",className:"border-border/50",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/ApprovalCases.tsx:85",className:"p-4 flex items-center gap-3",children:[w.jsxDEV(_.icon,{"data-loc":"client/src/pages/ApprovalCases.tsx:86",className:`w-8 h-8 ${_.color} shrink-0`},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:86,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:87",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:88",className:`text-2xl font-bold ${_.color}`,children:_.value},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:88,columnNumber:17},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:89",className:"text-xs text-muted-foreground",children:_.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:89,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:87,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:85,columnNumber:13},this)},_.label,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:84,columnNumber:11},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:77,columnNumber:7},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/ApprovalCases.tsx:97",className:"border-border/50",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/ApprovalCases.tsx:98",className:"p-4",children:w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:99",className:"flex flex-wrap items-center gap-3",children:[w.jsxDEV(mr,{"data-loc":"client/src/pages/ApprovalCases.tsx:100",value:e,onValueChange:_=>{t(_==="ALL_FILTER"?"":_),s(1)},children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/ApprovalCases.tsx:101",className:"w-32 bg-input border-border/50 h-8 text-sm",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/ApprovalCases.tsx:101",placeholder:"风险等级"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:101,columnNumber:135},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:101,columnNumber:15},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/ApprovalCases.tsx:102",className:"bg-card border-border/50",children:[w.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:103",value:"ALL_FILTER",children:"全部风险"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:103,columnNumber:17},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:104",value:"low",children:"低风险"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:104,columnNumber:17},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:105",value:"medium",children:"中风险"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:105,columnNumber:17},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:106",value:"high",children:"高风险"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:106,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:102,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:100,columnNumber:13},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/ApprovalCases.tsx:109",value:n,onValueChange:_=>{r(_==="ALL_FILTER"?"":_),s(1)},children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/ApprovalCases.tsx:110",className:"w-36 bg-input border-border/50 h-8 text-sm",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/ApprovalCases.tsx:110",placeholder:"审批状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:110,columnNumber:135},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:110,columnNumber:15},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/ApprovalCases.tsx:111",className:"bg-card border-border/50",children:[w.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:112",value:"ALL_FILTER",children:"全部状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:112,columnNumber:17},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:113",value:"pending_human",children:"待人工审核"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:113,columnNumber:17},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:114",value:"approved",children:"已通过"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:114,columnNumber:17},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:115",value:"rejected",children:"已拒绝"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:115,columnNumber:17},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:116",value:"auto_approved",children:"自动通过"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:116,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:111,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:109,columnNumber:13},this),w.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:119",className:"text-xs text-muted-foreground ml-auto",children:["共 ",C," 个案例"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:119,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:99,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:98,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:97,columnNumber:7},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/ApprovalCases.tsx:125",className:"border-border/50",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/ApprovalCases.tsx:126",className:"p-0",children:S?w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:128",className:"p-8 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:128,columnNumber:13},this):T.length===0?w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:130",className:"p-8 text-center",children:[w.jsxDEV(T2,{"data-loc":"client/src/pages/ApprovalCases.tsx:131",className:"w-10 h-10 text-muted-foreground/30 mx-auto mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:131,columnNumber:15},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:132",className:"text-muted-foreground text-sm",children:"暂无审批案例"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:132,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:130,columnNumber:13},this):w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:135",className:"overflow-x-auto",children:w.jsxDEV("table",{"data-loc":"client/src/pages/ApprovalCases.tsx:136",className:"w-full text-sm",children:[w.jsxDEV("thead",{"data-loc":"client/src/pages/ApprovalCases.tsx:137",children:w.jsxDEV("tr",{"data-loc":"client/src/pages/ApprovalCases.tsx:138",className:"border-b border-border/30",children:[w.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:139",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"资产信息"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:139,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:140",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"辖区/类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:140,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:141",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"风险等级"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:141,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:142",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"AI 评分"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:142,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:143",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:143,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:144",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"时间"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:144,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:145",className:"text-right p-3 text-xs font-medium text-muted-foreground",children:"操作"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:145,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:138,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:137,columnNumber:17},this),w.jsxDEV("tbody",{"data-loc":"client/src/pages/ApprovalCases.tsx:148",children:T.map(_=>w.jsxDEV("tr",{"data-loc":"client/src/pages/ApprovalCases.tsx:150",className:"border-b border-border/20 hover:bg-accent/30 transition-colors",children:[w.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:151",className:"p-3",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:152",className:"font-medium text-sm",children:_.assetName||_.assetId},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:152,columnNumber:25},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:153",className:"text-xs text-muted-foreground mt-0.5 line-clamp-1",children:_.aiDecision?.summary||"AI分析中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:153,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:151,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:155",className:"p-3",children:w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:156",className:"flex flex-col gap-1",children:[w.jsxDEV(lf,{"data-loc":"client/src/pages/ApprovalCases.tsx:157",variant:"outline",className:"text-xs border-primary/30 text-primary w-fit",children:_.jurisdiction},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:157,columnNumber:27},this),w.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:158",className:"text-xs text-muted-foreground",children:_.assetType},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:158,columnNumber:27},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:156,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:155,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:161",className:"p-3",children:P(_.riskLevel)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:161,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:162",className:"p-3",children:w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:163",className:"flex items-center gap-1.5",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:164",className:"w-16 h-1.5 rounded-full bg-muted overflow-hidden",children:w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:165",className:"h-full rounded-full bg-primary",style:{width:`${_.aiScore||0}%`}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:165,columnNumber:29},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:164,columnNumber:27},this),w.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:167",className:"text-xs font-medium",children:_.aiScore||0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:167,columnNumber:27},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:163,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:162,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:170",className:"p-3",children:A(_.status)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:170,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:171",className:"p-3 text-xs text-muted-foreground",children:_.createdAt?new Date(_.createdAt).toLocaleDateString("zh-CN"):"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:171,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:174",className:"p-3",children:w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:175",className:"flex items-center justify-end gap-1",children:w.jsxDEV(yt,{"data-loc":"client/src/pages/ApprovalCases.tsx:176",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>{m(_),c(!0)},children:[w.jsxDEV(Oae,{"data-loc":"client/src/pages/ApprovalCases.tsx:181",className:"w-3.5 h-3.5 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:181,columnNumber:29},this),"审查"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:176,columnNumber:27},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:175,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:174,columnNumber:23},this)]},_._id?.toString(),!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:150,columnNumber:21},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:148,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:136,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:135,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:126,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:125,columnNumber:7},this),D>1&&w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:196",className:"flex items-center justify-center gap-2",children:[w.jsxDEV(yt,{"data-loc":"client/src/pages/ApprovalCases.tsx:197",variant:"outline",size:"sm",onClick:()=>s(_=>Math.max(1,_-1)),disabled:o===1,className:"border-border/50 h-8",children:"上一页"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:197,columnNumber:11},this),w.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:198",className:"text-xs text-muted-foreground",children:[o," / ",D]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:198,columnNumber:11},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/ApprovalCases.tsx:199",variant:"outline",size:"sm",onClick:()=>s(_=>Math.min(D,_+1)),disabled:o===D,className:"border-border/50 h-8",children:"下一页"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:199,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:196,columnNumber:9},this),w.jsxDEV(Pu,{"data-loc":"client/src/pages/ApprovalCases.tsx:204",open:u,onOpenChange:c,children:w.jsxDEV(Mu,{"data-loc":"client/src/pages/ApprovalCases.tsx:205",className:"bg-card border-border/50 max-w-2xl",children:[w.jsxDEV(Lu,{"data-loc":"client/src/pages/ApprovalCases.tsx:206",children:w.jsxDEV(ku,{"data-loc":"client/src/pages/ApprovalCases.tsx:207",className:"flex items-center gap-2",children:[w.jsxDEV(Ru,{"data-loc":"client/src/pages/ApprovalCases.tsx:208",className:"w-5 h-5 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:208,columnNumber:15},this),"人工审核 — ",f?.assetName||f?.assetId]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:207,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:206,columnNumber:11},this),f&&w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:213",className:"space-y-4 mt-2",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:214",className:"grid grid-cols-2 gap-3 text-sm",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:215",className:"bg-muted/30 rounded-lg p-3 space-y-1",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:216",className:"text-xs text-muted-foreground",children:"资产信息"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:216,columnNumber:19},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:217",className:"font-medium",children:f.assetName},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:217,columnNumber:19},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:218",className:"text-xs text-muted-foreground",children:[f.jurisdiction," · ",f.assetType]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:218,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:215,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:220",className:"bg-muted/30 rounded-lg p-3 space-y-1",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:221",className:"text-xs text-muted-foreground",children:"AI 评估"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:221,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:222",className:"flex items-center gap-2",children:[P(f.riskLevel),w.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:224",className:"text-sm font-medium",children:["评分: ",f.aiScore]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:224,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:222,columnNumber:19},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:226",className:"text-xs text-muted-foreground",children:A(f.status)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:226,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:220,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:214,columnNumber:15},this),f.aiDecision&&w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:230",className:"bg-muted/20 rounded-lg p-3",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:231",className:"text-xs font-medium text-muted-foreground mb-1.5",children:"AI 分析摘要"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:231,columnNumber:19},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:232",className:"text-sm",children:f.aiDecision.summary},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:232,columnNumber:19},this),f.aiDecision.issues?.length>0&&w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:234",className:"mt-2",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:235",className:"text-xs font-medium text-amber-400 mb-1",children:"发现问题:"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:235,columnNumber:23},this),f.aiDecision.issues.map((_,j)=>w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:237",className:"text-xs text-muted-foreground",children:["• ",_]},j,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:237,columnNumber:25},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:234,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:230,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:243",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/ApprovalCases.tsx:244",className:"text-xs",children:"审核意见"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:244,columnNumber:17},this),w.jsxDEV(wh,{"data-loc":"client/src/pages/ApprovalCases.tsx:245",value:g,onChange:_=>p(_.target.value),className:"bg-input border-border/50 resize-none",rows:3,placeholder:"请填写人工审核意见..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:245,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:243,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:253",className:"flex gap-3",children:[w.jsxDEV(yt,{"data-loc":"client/src/pages/ApprovalCases.tsx:254",className:"flex-1 bg-emerald-600 hover:bg-emerald-700 text-white",onClick:()=>N.mutate({id:f._id.toString(),decision:"approved",comment:g}),disabled:N.isPending,children:[w.jsxDEV(Ip,{"data-loc":"client/src/pages/ApprovalCases.tsx:259",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:259,columnNumber:19},this),"确认通过"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:254,columnNumber:17},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/ApprovalCases.tsx:261",className:"flex-1 bg-red-600 hover:bg-red-700 text-white",onClick:()=>N.mutate({id:f._id.toString(),decision:"rejected",comment:g}),disabled:N.isPending,children:[w.jsxDEV(vC,{"data-loc":"client/src/pages/ApprovalCases.tsx:266",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:266,columnNumber:19},this),"否决拒绝"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:261,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:253,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:213,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:205,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:204,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:65,columnNumber:5},this)}const IT=["jurisdiction","asset_type","compliance_requirement","risk_indicator"],$T={jurisdiction:"司法辖区",asset_type:"资产类型",compliance_requirement:"合规要求",risk_indicator:"风险指标"};function qSe(){const[e,t]=R.useState(!1),[n,r]=R.useState(!1),[o,s]=R.useState({keyword:"",tags:"",dimension:"",description:""}),[u,c]=R.useState({documentId:"",originalTags:"",correctedTags:"",reason:""}),f=St.useUtils(),{data:m,isLoading:g,refetch:p}=St.tagEngine.listRules.useQuery(),y=St.tagEngine.createRule.useMutation({onSuccess:()=>{Ft.success("标签规则创建成功"),t(!1),f.tagEngine.listRules.invalidate(),s({keyword:"",tags:"",dimension:"",description:""})},onError:C=>Ft.error(C.message)}),b=St.tagEngine.correctTag.useMutation({onSuccess:()=>{Ft.success("标签修正已提交,将作为训练数据"),r(!1),f.tagEngine.listRules.invalidate(),c({documentId:"",originalTags:"",correctedTags:"",reason:""})},onError:C=>Ft.error(C.message)}),S=m||[],x=S.filter(C=>C.type==="rule"),N=S.filter(C=>C.type==="correction"),T={};return IT.forEach(C=>{T[C]=x.filter(D=>D.dimension===C).length}),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:58",className:"p-6 space-y-5",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:59",className:"flex items-center justify-between",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:60",children:[w.jsxDEV("h1",{"data-loc":"client/src/pages/TagEngine.tsx:61",className:"text-2xl font-bold nac-gradient-text",children:"标签引擎治理"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:61,columnNumber:11},this),w.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:62",className:"text-sm text-muted-foreground mt-0.5",children:"管理自动化标签序列生成规则,优化AI打标模型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:62,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:60,columnNumber:9},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:64",className:"flex items-center gap-2",children:[w.jsxDEV(yt,{"data-loc":"client/src/pages/TagEngine.tsx:65",variant:"outline",size:"sm",onClick:()=>p(),className:"border-border/50",children:[w.jsxDEV(sf,{"data-loc":"client/src/pages/TagEngine.tsx:66",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:66,columnNumber:13},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:65,columnNumber:11},this),w.jsxDEV(Pu,{"data-loc":"client/src/pages/TagEngine.tsx:69",open:n,onOpenChange:r,children:[w.jsxDEV($p,{"data-loc":"client/src/pages/TagEngine.tsx:70",asChild:!0,children:w.jsxDEV(yt,{"data-loc":"client/src/pages/TagEngine.tsx:71",variant:"outline",size:"sm",className:"border-amber-500/30 text-amber-400 hover:bg-amber-500/10",children:[w.jsxDEV(C2,{"data-loc":"client/src/pages/TagEngine.tsx:72",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:72,columnNumber:17},this),"提交修正"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:71,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:70,columnNumber:13},this),w.jsxDEV(Mu,{"data-loc":"client/src/pages/TagEngine.tsx:75",className:"bg-card border-border/50 max-w-lg",children:[w.jsxDEV(Lu,{"data-loc":"client/src/pages/TagEngine.tsx:76",children:w.jsxDEV(ku,{"data-loc":"client/src/pages/TagEngine.tsx:76",children:"AI打标修正"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:76,columnNumber:74},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:76,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:77",className:"space-y-4 mt-2",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:78",className:"bg-amber-500/10 border border-amber-500/20 rounded-lg p-3 text-xs text-amber-400",children:"修正后的标签将作为高质量训练数据,用于持续优化AI打标模型的准确率。"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:78,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:81",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/TagEngine.tsx:82",className:"text-xs",children:"文档/资产 ID"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:82,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/TagEngine.tsx:83",value:u.documentId,onChange:C=>c(D=>({...D,documentId:C.target.value})),className:"bg-input border-border/50 h-9",placeholder:"文档或资产的唯一标识符"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:83,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:81,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:85",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/TagEngine.tsx:86",className:"text-xs",children:"AI原始标签(逗号分隔)"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:86,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/TagEngine.tsx:87",value:u.originalTags,onChange:C=>c(D=>({...D,originalTags:C.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN, RealEstate, ..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:87,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:85,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:89",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/TagEngine.tsx:90",className:"text-xs",children:"修正后标签(逗号分隔)"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:90,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/TagEngine.tsx:91",value:u.correctedTags,onChange:C=>c(D=>({...D,correctedTags:C.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN.Shanghai, RealEstate.Commercial, ..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:91,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:89,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:93",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/TagEngine.tsx:94",className:"text-xs",children:"修正原因"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:94,columnNumber:19},this),w.jsxDEV(wh,{"data-loc":"client/src/pages/TagEngine.tsx:95",value:u.reason,onChange:C=>c(D=>({...D,reason:C.target.value})),className:"bg-input border-border/50 resize-none",rows:2,placeholder:"说明为什么AI打标有误..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:95,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:93,columnNumber:17},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/TagEngine.tsx:97",className:"w-full bg-amber-600 hover:bg-amber-700 text-white",onClick:()=>b.mutate({documentId:u.documentId,originalTags:u.originalTags.split(",").map(C=>C.trim()).filter(Boolean),correctedTags:u.correctedTags.split(",").map(C=>C.trim()).filter(Boolean),reason:u.reason}),disabled:b.isPending||!u.documentId||!u.correctedTags,children:b.isPending?"提交中...":"提交修正"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:97,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:77,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:75,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:69,columnNumber:11},this),w.jsxDEV(Pu,{"data-loc":"client/src/pages/TagEngine.tsx:113",open:e,onOpenChange:t,children:[w.jsxDEV($p,{"data-loc":"client/src/pages/TagEngine.tsx:114",asChild:!0,children:w.jsxDEV(yt,{"data-loc":"client/src/pages/TagEngine.tsx:115",size:"sm",className:"nac-gradient text-white",children:[w.jsxDEV(y0,{"data-loc":"client/src/pages/TagEngine.tsx:115",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:115,columnNumber:115},this),"新增规则"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:115,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:114,columnNumber:13},this),w.jsxDEV(Mu,{"data-loc":"client/src/pages/TagEngine.tsx:117",className:"bg-card border-border/50 max-w-lg",children:[w.jsxDEV(Lu,{"data-loc":"client/src/pages/TagEngine.tsx:118",children:w.jsxDEV(ku,{"data-loc":"client/src/pages/TagEngine.tsx:118",children:"新增标签匹配规则"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:118,columnNumber:75},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:118,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:119",className:"space-y-4 mt-2",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:120",className:"grid grid-cols-2 gap-3",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:121",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/TagEngine.tsx:122",className:"text-xs",children:"关键词"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:122,columnNumber:21},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/TagEngine.tsx:123",value:o.keyword,onChange:C=>s(D=>({...D,keyword:C.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:上海市"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:123,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:121,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:125",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/TagEngine.tsx:126",className:"text-xs",children:"标签维度"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:126,columnNumber:21},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/TagEngine.tsx:127",value:o.dimension,onValueChange:C=>s(D=>({...D,dimension:C})),children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/TagEngine.tsx:128",className:"bg-input border-border/50 h-9",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/TagEngine.tsx:128",placeholder:"选择维度"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:128,columnNumber:126},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:128,columnNumber:23},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/TagEngine.tsx:129",className:"bg-card border-border/50",children:IT.map(C=>w.jsxDEV(Ot,{"data-loc":"client/src/pages/TagEngine.tsx:130",value:C,children:$T[C]},C,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:130,columnNumber:46},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:129,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:127,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:125,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:120,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:135",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/TagEngine.tsx:136",className:"text-xs",children:"匹配后打标(逗号分隔)"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:136,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/TagEngine.tsx:137",value:o.tags,onChange:C=>s(D=>({...D,tags:C.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN, CN.Shanghai"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:137,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:135,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:139",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/TagEngine.tsx:140",className:"text-xs",children:"规则描述"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:140,columnNumber:19},this),w.jsxDEV(wh,{"data-loc":"client/src/pages/TagEngine.tsx:141",value:o.description,onChange:C=>s(D=>({...D,description:C.target.value})),className:"bg-input border-border/50 resize-none",rows:2,placeholder:"规则用途说明..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:141,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:139,columnNumber:17},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/TagEngine.tsx:143",className:"w-full nac-gradient text-white",onClick:()=>y.mutate({keyword:o.keyword,tags:o.tags.split(",").map(C=>C.trim()).filter(Boolean),dimension:o.dimension,description:o.description}),disabled:y.isPending||!o.keyword||!o.dimension||!o.tags,children:y.isPending?"创建中...":"创建规则"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:143,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:119,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:117,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:113,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:64,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:59,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:162",className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:IT.map(C=>w.jsxDEV(Zt,{"data-loc":"client/src/pages/TagEngine.tsx:164",className:"border-border/50",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/TagEngine.tsx:165",className:"p-4 flex items-center gap-3",children:[w.jsxDEV(Dae,{"data-loc":"client/src/pages/TagEngine.tsx:166",className:"w-7 h-7 text-primary shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:166,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:167",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:168",className:"text-xl font-bold text-primary",children:T[C]??0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:168,columnNumber:17},this),w.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:169",className:"text-xs text-muted-foreground",children:$T[C]},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:169,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:167,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:165,columnNumber:13},this)},C,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:164,columnNumber:11},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:162,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:177",className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[w.jsxDEV(Zt,{"data-loc":"client/src/pages/TagEngine.tsx:179",className:"border-border/50",children:[w.jsxDEV(ri,{"data-loc":"client/src/pages/TagEngine.tsx:180",className:"pb-2",children:w.jsxDEV(ai,{"data-loc":"client/src/pages/TagEngine.tsx:181",className:"text-sm font-semibold flex items-center gap-2",children:[w.jsxDEV(_2,{"data-loc":"client/src/pages/TagEngine.tsx:182",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:182,columnNumber:15},this),"标签匹配规则 (",x.length,")"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:181,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:180,columnNumber:11},this),w.jsxDEV(Jt,{"data-loc":"client/src/pages/TagEngine.tsx:186",children:g?w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:188",className:"p-4 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:188,columnNumber:15},this):x.length===0?w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:190",className:"p-4 text-center text-muted-foreground text-sm",children:"暂无规则"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:190,columnNumber:15},this):w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:192",className:"space-y-2 max-h-[400px] overflow-y-auto",children:x.map(C=>w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:194",className:"border border-border/30 rounded-lg p-3 hover:border-primary/30 transition-colors",children:w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:195",className:"flex items-start justify-between",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:196",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:197",className:"text-sm font-medium",children:["关键词: ",w.jsxDEV("span",{"data-loc":"client/src/pages/TagEngine.tsx:197",className:"text-primary",children:C.keyword},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:197,columnNumber:111},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:197,columnNumber:25},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:198",className:"flex flex-wrap gap-1 mt-1",children:(C.tags||[]).map(D=>w.jsxDEV("span",{"data-loc":"client/src/pages/TagEngine.tsx:200",className:"text-xs px-1.5 py-0.5 rounded bg-primary/15 text-primary",children:D},D,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:200,columnNumber:29},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:198,columnNumber:25},this),w.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:203",className:"text-xs text-muted-foreground mt-1",children:$T[C.dimension]||C.dimension},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:203,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:196,columnNumber:23},this),w.jsxDEV(lf,{"data-loc":"client/src/pages/TagEngine.tsx:205",variant:"outline",className:"text-xs border-emerald-500/30 text-emerald-400 shrink-0",children:"活跃"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:205,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:195,columnNumber:21},this)},C._id?.toString(),!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:194,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:192,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:186,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:179,columnNumber:9},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/TagEngine.tsx:215",className:"border-border/50",children:[w.jsxDEV(ri,{"data-loc":"client/src/pages/TagEngine.tsx:216",className:"pb-2",children:w.jsxDEV(ai,{"data-loc":"client/src/pages/TagEngine.tsx:217",className:"text-sm font-semibold flex items-center gap-2",children:[w.jsxDEV(Nae,{"data-loc":"client/src/pages/TagEngine.tsx:218",className:"w-4 h-4 text-amber-400"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:218,columnNumber:15},this),"AI打标修正记录 (",N.length,")"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:217,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:216,columnNumber:11},this),w.jsxDEV(Jt,{"data-loc":"client/src/pages/TagEngine.tsx:222",children:N.length===0?w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:224",className:"p-4 text-center text-muted-foreground text-sm",children:"暂无修正记录"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:224,columnNumber:15},this):w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:226",className:"space-y-2 max-h-[400px] overflow-y-auto",children:N.map(C=>w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:228",className:"border border-amber-500/20 rounded-lg p-3",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:229",className:"text-xs font-medium text-muted-foreground mb-1",children:["文档: ",C.documentId]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:229,columnNumber:21},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:230",className:"flex items-center gap-2 text-xs",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:231",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:232",className:"text-muted-foreground mb-0.5",children:"原始:"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:232,columnNumber:25},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:233",className:"flex flex-wrap gap-1",children:(C.originalTags||[]).map(D=>w.jsxDEV("span",{"data-loc":"client/src/pages/TagEngine.tsx:235",className:"px-1.5 py-0.5 rounded bg-red-500/15 text-red-400",children:D},D,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:235,columnNumber:29},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:233,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:231,columnNumber:23},this),w.jsxDEV("span",{"data-loc":"client/src/pages/TagEngine.tsx:239",className:"text-muted-foreground",children:"→"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:239,columnNumber:23},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:240",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:241",className:"text-muted-foreground mb-0.5",children:"修正:"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:241,columnNumber:25},this),w.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:242",className:"flex flex-wrap gap-1",children:(C.correctedTags||[]).map(D=>w.jsxDEV("span",{"data-loc":"client/src/pages/TagEngine.tsx:244",className:"px-1.5 py-0.5 rounded bg-emerald-500/15 text-emerald-400",children:D},D,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:244,columnNumber:29},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:242,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:240,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:230,columnNumber:21},this),w.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:249",className:"text-xs text-muted-foreground mt-1.5",children:["修正者: ",C.correctedBy]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:249,columnNumber:21},this)]},C._id?.toString(),!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:228,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:226,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:222,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:215,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:177,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:58,columnNumber:5},this)}const HSe=["compliance","asset","identity","governance","settlement","oracle"];function FSe(){const[e,t]=R.useState(!1),[n,r]=R.useState(!1),[o,s]=R.useState(null),[u,c]=R.useState({name:"",type:"",version:"",endpoint:"",trigger:"",description:""}),[f,m]=R.useState({version:"",trigger:""}),g=St.useUtils(),{data:p,isLoading:y,refetch:b}=St.protocolRegistry.list.useQuery(),S=St.protocolRegistry.register.useMutation({onSuccess:()=>{Ft.success("协议注册成功"),t(!1),g.protocolRegistry.list.invalidate(),c({name:"",type:"",version:"",endpoint:"",trigger:"",description:""})},onError:A=>Ft.error(A.message)}),x=St.protocolRegistry.toggleStatus.useMutation({onSuccess:()=>{Ft.success("协议状态已更新"),g.protocolRegistry.list.invalidate()},onError:A=>Ft.error(A.message)}),N=St.protocolRegistry.updateVersion.useMutation({onSuccess:()=>{Ft.success("协议版本已更新"),r(!1),g.protocolRegistry.list.invalidate()},onError:A=>Ft.error(A.message)}),T=p||[],C=T.filter(A=>A.status==="active").length,D=T.filter(A=>A.status==="deprecated").length,P=A=>{const _={active:"status-active",disabled:"status-inactive",deprecated:"status-deprecated"},j={active:"运行中",disabled:"已停用",deprecated:"已废弃"};return w.jsxDEV("span",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:57",className:`text-xs px-2 py-0.5 rounded-full font-medium ${_[A]||"status-inactive"}`,children:j[A]||A},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:57,columnNumber:12},this)};return w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:61",className:"p-6 space-y-5",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:62",className:"flex items-center justify-between",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:63",children:[w.jsxDEV("h1",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:64",className:"text-2xl font-bold nac-gradient-text",children:"协议族注册表"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:64,columnNumber:11},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:65",className:"text-sm text-muted-foreground mt-0.5",children:"管理接入AI审批系统的所有NAC原生协议"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:65,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:63,columnNumber:9},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:67",className:"flex items-center gap-2",children:[w.jsxDEV(yt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:68",variant:"outline",size:"sm",onClick:()=>b(),className:"border-border/50",children:[w.jsxDEV(sf,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:69",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:69,columnNumber:13},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:68,columnNumber:11},this),w.jsxDEV(Pu,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:71",open:e,onOpenChange:t,children:[w.jsxDEV($p,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:72",asChild:!0,children:w.jsxDEV(yt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:73",size:"sm",className:"nac-gradient text-white",children:[w.jsxDEV(y0,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:73",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:73,columnNumber:121},this),"注册协议"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:73,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:72,columnNumber:13},this),w.jsxDEV(Mu,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:75",className:"bg-card border-border/50 max-w-lg",children:[w.jsxDEV(Lu,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:76",children:w.jsxDEV(ku,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:76",children:"注册新协议"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:76,columnNumber:81},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:76,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:77",className:"space-y-4 mt-2",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:78",className:"grid grid-cols-2 gap-3",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:79",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:80",className:"text-xs",children:"协议名称"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:80,columnNumber:21},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:81",value:u.name,onChange:A=>c(_=>({..._,name:A.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:ACC-21"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:81,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:79,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:83",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:84",className:"text-xs",children:"协议类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:84,columnNumber:21},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:85",value:u.type,onValueChange:A=>c(_=>({..._,type:A})),children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:86",className:"bg-input border-border/50 h-9",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:86",placeholder:"选择类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:86,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:86,columnNumber:23},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:87",className:"bg-card border-border/50",children:HSe.map(A=>w.jsxDEV(Ot,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:88",value:A,children:A},A,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:88,columnNumber:50},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:87,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:85,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:83,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:78,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:93",className:"grid grid-cols-2 gap-3",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:94",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:95",className:"text-xs",children:"版本号"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:95,columnNumber:21},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:96",value:u.version,onChange:A=>c(_=>({..._,version:A.target.value})),className:"bg-input border-border/50 h-9",placeholder:"1.0.0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:96,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:94,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:98",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:99",className:"text-xs",children:"服务端点"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:99,columnNumber:21},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:100",value:u.endpoint,onChange:A=>c(_=>({..._,endpoint:A.target.value})),className:"bg-input border-border/50 h-9",placeholder:"https://acc21.newassetchain.io"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:100,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:98,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:93,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:103",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:104",className:"text-xs",children:"触发条件"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:104,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:105",value:u.trigger,onChange:A=>c(_=>({..._,trigger:A.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:asset.type == 'DigitalToken'"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:105,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:103,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:107",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:108",className:"text-xs",children:"协议描述"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:108,columnNumber:19},this),w.jsxDEV(wh,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:109",value:u.description,onChange:A=>c(_=>({..._,description:A.target.value})),className:"bg-input border-border/50 resize-none",rows:2,placeholder:"协议功能说明..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:109,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:107,columnNumber:17},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:111",className:"w-full nac-gradient text-white",onClick:()=>S.mutate(u),disabled:S.isPending||!u.name||!u.type||!u.version||!u.endpoint||!u.trigger,children:S.isPending?"注册中...":"注册协议"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:111,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:77,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:75,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:71,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:67,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:62,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:125",className:"grid grid-cols-3 gap-3",children:[w.jsxDEV(Zt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:126",className:"border-border/50",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:127",className:"p-4 flex items-center gap-3",children:[w.jsxDEV(xp,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:128",className:"w-7 h-7 text-primary shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:128,columnNumber:13},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:129",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:129",className:"text-2xl font-bold text-primary",children:T.length},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:129,columnNumber:71},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:129",className:"text-xs text-muted-foreground",children:"总协议数"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:129,columnNumber:196},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:127,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:126,columnNumber:9},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:132",className:"border-border/50",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:133",className:"p-4 flex items-center gap-3",children:[w.jsxDEV(Du,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:134",className:"w-7 h-7 text-emerald-400 shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:134,columnNumber:13},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:135",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:135",className:"text-2xl font-bold text-emerald-400",children:C},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:135,columnNumber:71},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:135",className:"text-xs text-muted-foreground",children:"运行中"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:135,columnNumber:192},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:135,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:133,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:132,columnNumber:9},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:138",className:"border-border/50",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:139",className:"p-4 flex items-center gap-3",children:[w.jsxDEV(b0,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:140",className:"w-7 h-7 text-orange-400 shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:140,columnNumber:13},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:141",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:141",className:"text-2xl font-bold text-orange-400",children:D},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:141,columnNumber:71},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:141",className:"text-xs text-muted-foreground",children:"已废弃"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:141,columnNumber:195},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:141,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:139,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:138,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:125,columnNumber:7},this),y?w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:148",className:"p-8 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:148,columnNumber:9},this):T.length===0?w.jsxDEV(Zt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:150",className:"border-border/50",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:151",className:"p-8 text-center",children:[w.jsxDEV(xp,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:152",className:"w-10 h-10 text-muted-foreground/30 mx-auto mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:152,columnNumber:13},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:153",className:"text-muted-foreground text-sm",children:"暂无注册协议"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:153,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:151,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:150,columnNumber:9},this):w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:157",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:T.map(A=>w.jsxDEV(Zt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:159",className:"border-border/50 hover:border-primary/30 transition-colors",children:w.jsxDEV(Jt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:160",className:"p-4",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:161",className:"flex items-start justify-between mb-3",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:162",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:163",className:"flex items-center gap-2",children:[w.jsxDEV(xp,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:164",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:164,columnNumber:23},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:165",className:"font-semibold",children:A.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:165,columnNumber:23},this),w.jsxDEV(lf,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:166",variant:"outline",className:"text-xs border-border/50",children:["v",A.version]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:166,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:163,columnNumber:21},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:168",className:"text-xs text-muted-foreground mt-0.5",children:A.type},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:168,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:162,columnNumber:19},this),P(A.status)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:161,columnNumber:17},this),A.description&&w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:174",className:"text-xs text-muted-foreground mb-2",children:A.description},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:174,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:177",className:"bg-muted/20 rounded p-2 mb-3",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:178",className:"text-xs text-muted-foreground mb-0.5",children:"服务端点"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:178,columnNumber:19},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:179",className:"text-xs font-mono text-primary truncate",children:A.endpoint},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:179,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:177,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:182",className:"bg-muted/20 rounded p-2 mb-3",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:183",className:"text-xs text-muted-foreground mb-0.5",children:"触发条件"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:183,columnNumber:19},this),w.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:184",className:"text-xs font-mono",children:A.trigger},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:184,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:182,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:187",className:"flex items-center gap-2",children:[w.jsxDEV(yt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:188",variant:"outline",size:"sm",className:"h-7 px-2 text-xs border-border/50 flex-1",onClick:()=>{s(A),m({version:A.version,trigger:A.trigger}),r(!0)},children:[w.jsxDEV(C2,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:197",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:197,columnNumber:21},this),"更新版本"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:188,columnNumber:19},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:199",variant:"outline",size:"sm",className:"h-7 px-2 text-xs border-border/50 flex-1",onClick:()=>{const _=A.status==="active"?"disabled":A.status==="disabled"?"deprecated":"active";x.mutate({id:A._id.toString(),status:_})},disabled:x.isPending,children:[w.jsxDEV(D2,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:208",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:208,columnNumber:21},this),A.status==="active"?"停用":A.status==="disabled"?"废弃":"激活"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:199,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:187,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:160,columnNumber:15},this)},A._id?.toString(),!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:159,columnNumber:13},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:157,columnNumber:9},this),w.jsxDEV(Pu,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:219",open:n,onOpenChange:r,children:w.jsxDEV(Mu,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:220",className:"bg-card border-border/50 max-w-md",children:[w.jsxDEV(Lu,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:221",children:w.jsxDEV(ku,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:221",children:["更新协议版本 — ",o?.name]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:221,columnNumber:78},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:221,columnNumber:11},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:222",className:"space-y-4 mt-2",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:223",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:224",className:"text-xs",children:"新版本号"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:224,columnNumber:15},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:225",value:f.version,onChange:A=>m(_=>({..._,version:A.target.value})),className:"bg-input border-border/50 h-9"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:225,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:223,columnNumber:13},this),w.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:227",className:"space-y-1.5",children:[w.jsxDEV(Et,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:228",className:"text-xs",children:"新触发条件(可选)"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:228,columnNumber:15},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:229",value:f.trigger,onChange:A=>m(_=>({..._,trigger:A.target.value})),className:"bg-input border-border/50 h-9"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:229,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:227,columnNumber:13},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:231",className:"w-full nac-gradient text-white",onClick:()=>o&&N.mutate({id:o._id.toString(),version:f.version,trigger:f.trigger||void 0}),disabled:N.isPending||!f.version,children:N.isPending?"更新中...":"确认更新"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:231,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:222,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:220,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:219,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:61,columnNumber:5},this)}const VT={LOGIN:"用户登录",LOGOUT:"用户登出",CREATE_RULE:"创建规则",UPDATE_RULE:"更新规则",DELETE_RULE:"删除规则",REVIEW_CASE:"审核案例",CORRECT_TAG:"修正标签",CREATE_TAG_RULE:"创建标签规则",REGISTER_PROTOCOL:"注册协议",TOGGLE_PROTOCOL:"切换协议状态",UPDATE_PROTOCOL_VERSION:"更新协议版本",TRIGGER_CRAWLER:"触发采集器",UPDATE_CRAWLER_CONFIG:"更新采集器配置",MANAGE_USER:"管理用户"};function KSe(){const[e,t]=R.useState(""),[n,r]=R.useState(""),[o,s]=R.useState(1),{data:u,isLoading:c,refetch:f}=St.rbac.auditLogs.useQuery({action:e||void 0,page:o,pageSize:20}),{data:m,isLoading:g}=St.rbac.listUsers.useQuery({page:1,pageSize:100}),p=u?.items||[],y=u?.total||0,b=Math.ceil(y/20),S=m?.users||[],x=N=>VT[N]||N;return w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:38",className:"p-6 space-y-5",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:39",className:"flex items-center justify-between",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:40",children:[w.jsxDEV("h1",{"data-loc":"client/src/pages/AuditLog.tsx:41",className:"text-2xl font-bold nac-gradient-text",children:"权限与审计"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:41,columnNumber:11},this),w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:42",className:"text-sm text-muted-foreground mt-0.5",children:"基于角色的访问控制与不可篡改的操作审计日志"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:42,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:40,columnNumber:9},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/AuditLog.tsx:44",variant:"outline",size:"sm",onClick:()=>f(),className:"border-border/50",children:[w.jsxDEV(sf,{"data-loc":"client/src/pages/AuditLog.tsx:45",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:45,columnNumber:11},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:39,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:49",className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[w.jsxDEV(Zt,{"data-loc":"client/src/pages/AuditLog.tsx:51",className:"border-border/50",children:[w.jsxDEV(ri,{"data-loc":"client/src/pages/AuditLog.tsx:52",className:"pb-2",children:w.jsxDEV(ai,{"data-loc":"client/src/pages/AuditLog.tsx:53",className:"text-sm font-semibold flex items-center gap-2",children:[w.jsxDEV(F5,{"data-loc":"client/src/pages/AuditLog.tsx:54",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:54,columnNumber:15},this),"用户角色管理"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:53,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:52,columnNumber:11},this),w.jsxDEV(Jt,{"data-loc":"client/src/pages/AuditLog.tsx:57",children:g?w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:59",className:"p-4 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:59,columnNumber:15},this):S.length===0?w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:61",className:"p-4 text-center text-muted-foreground text-sm",children:"暂无用户"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:61,columnNumber:15},this):w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:63",className:"space-y-2 max-h-[400px] overflow-y-auto",children:S.map(N=>w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:65",className:"flex items-center justify-between p-3 border border-border/30 rounded-lg hover:border-primary/30 transition-colors",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:66",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:67",className:"text-sm font-medium",children:N.email},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:67,columnNumber:23},this),w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:68",className:"text-xs text-muted-foreground",children:N.name||"未设置姓名"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:68,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:66,columnNumber:21},this),w.jsxDEV(mr,{"data-loc":"client/src/pages/AuditLog.tsx:70",value:N.role,onValueChange:T=>{},children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/AuditLog.tsx:74",className:"w-28 bg-input border-border/50 h-7 text-xs",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/AuditLog.tsx:75"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:75,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:74,columnNumber:23},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/AuditLog.tsx:77",className:"bg-card border-border/50",children:[w.jsxDEV(Ot,{"data-loc":"client/src/pages/AuditLog.tsx:78",value:"admin",children:"管理员"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:78,columnNumber:25},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/AuditLog.tsx:79",value:"reviewer",children:"审核员"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:79,columnNumber:25},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/AuditLog.tsx:80",value:"legal",children:"法务"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:80,columnNumber:25},this),w.jsxDEV(Ot,{"data-loc":"client/src/pages/AuditLog.tsx:81",value:"viewer",children:"只读"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:81,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:77,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:70,columnNumber:21},this)]},N._id?.toString(),!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:65,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:63,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:57,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:51,columnNumber:9},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/AuditLog.tsx:92",className:"border-border/50",children:[w.jsxDEV(ri,{"data-loc":"client/src/pages/AuditLog.tsx:93",className:"pb-2",children:w.jsxDEV(ai,{"data-loc":"client/src/pages/AuditLog.tsx:94",className:"text-sm font-semibold flex items-center gap-2",children:[w.jsxDEV(Ru,{"data-loc":"client/src/pages/AuditLog.tsx:95",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:95,columnNumber:15},this),"审计统计"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:94,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:93,columnNumber:11},this),w.jsxDEV(Jt,{"data-loc":"client/src/pages/AuditLog.tsx:98",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:99",className:"grid grid-cols-2 gap-3",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:100",className:"bg-muted/20 rounded-lg p-3 text-center",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:101",className:"text-2xl font-bold text-primary",children:y},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:101,columnNumber:17},this),w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:102",className:"text-xs text-muted-foreground",children:"总操作记录"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:102,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:100,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:104",className:"bg-muted/20 rounded-lg p-3 text-center",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:105",className:"text-2xl font-bold text-emerald-400",children:S.length},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:105,columnNumber:17},this),w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:106",className:"text-xs text-muted-foreground",children:"系统用户"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:106,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:104,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:108",className:"bg-muted/20 rounded-lg p-3 text-center",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:109",className:"text-2xl font-bold text-amber-400",children:S.filter(N=>N.role==="admin").length},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:109,columnNumber:17},this),w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:110",className:"text-xs text-muted-foreground",children:"管理员"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:110,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:108,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:112",className:"bg-muted/20 rounded-lg p-3 text-center",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:113",className:"text-2xl font-bold text-blue-400",children:S.filter(N=>N.role==="reviewer").length},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:113,columnNumber:17},this),w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:114",className:"text-xs text-muted-foreground",children:"审核员"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:114,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:112,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:99,columnNumber:13},this),w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:117",className:"mt-3 bg-amber-500/10 border border-amber-500/20 rounded-lg p-3",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:118",className:"text-xs text-amber-400 font-medium flex items-center gap-1.5",children:[w.jsxDEV(Ru,{"data-loc":"client/src/pages/AuditLog.tsx:119",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:119,columnNumber:17},this),"审计日志不可篡改"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:118,columnNumber:15},this),w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:121",className:"text-xs text-muted-foreground mt-1",children:"所有关键操作均被记录,包含操作者、时间、详情,无法删除或修改。"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:121,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:117,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:98,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:92,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:49,columnNumber:7},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/AuditLog.tsx:128",className:"border-border/50",children:[w.jsxDEV(ri,{"data-loc":"client/src/pages/AuditLog.tsx:129",className:"pb-2",children:w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:130",className:"flex items-center justify-between",children:[w.jsxDEV(ai,{"data-loc":"client/src/pages/AuditLog.tsx:131",className:"text-sm font-semibold flex items-center gap-2",children:[w.jsxDEV(T2,{"data-loc":"client/src/pages/AuditLog.tsx:132",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:132,columnNumber:15},this),"操作审计日志"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:131,columnNumber:13},this),w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:134",className:"flex items-center gap-2",children:[w.jsxDEV(mr,{"data-loc":"client/src/pages/AuditLog.tsx:135",value:e,onValueChange:N=>{t(N==="ALL_FILTER"?"":N),s(1)},children:[w.jsxDEV(hr,{"data-loc":"client/src/pages/AuditLog.tsx:136",className:"w-36 bg-input border-border/50 h-7 text-xs",children:w.jsxDEV(pr,{"data-loc":"client/src/pages/AuditLog.tsx:136",placeholder:"全部操作"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:136,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:136,columnNumber:17},this),w.jsxDEV(gr,{"data-loc":"client/src/pages/AuditLog.tsx:137",className:"bg-card border-border/50",children:[w.jsxDEV(Ot,{"data-loc":"client/src/pages/AuditLog.tsx:138",value:"ALL_FILTER",children:"全部操作"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:138,columnNumber:19},this),Object.keys(VT).map(N=>w.jsxDEV(Ot,{"data-loc":"client/src/pages/AuditLog.tsx:139",value:N,children:VT[N]},N,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:139,columnNumber:56},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:137,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:135,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:142",className:"relative",children:[w.jsxDEV(Iae,{"data-loc":"client/src/pages/AuditLog.tsx:143",className:"w-3.5 h-3.5 absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:143,columnNumber:17},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/AuditLog.tsx:144",value:n,onChange:N=>{r(N.target.value),s(1)},className:"bg-input border-border/50 h-7 text-xs pl-7 w-40",placeholder:"搜索用户邮箱..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:144,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:142,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:134,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:130,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:129,columnNumber:9},this),w.jsxDEV(Jt,{"data-loc":"client/src/pages/AuditLog.tsx:154",className:"p-0",children:[c?w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:156",className:"p-6 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:156,columnNumber:13},this):p.length===0?w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:158",className:"p-6 text-center text-muted-foreground text-sm",children:"暂无审计记录"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:158,columnNumber:13},this):w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:160",className:"overflow-x-auto",children:w.jsxDEV("table",{"data-loc":"client/src/pages/AuditLog.tsx:161",className:"w-full text-sm",children:[w.jsxDEV("thead",{"data-loc":"client/src/pages/AuditLog.tsx:162",children:w.jsxDEV("tr",{"data-loc":"client/src/pages/AuditLog.tsx:163",className:"border-b border-border/30",children:[w.jsxDEV("th",{"data-loc":"client/src/pages/AuditLog.tsx:164",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"操作类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:164,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/AuditLog.tsx:165",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"操作者"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:165,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/AuditLog.tsx:166",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"详情"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:166,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/AuditLog.tsx:167",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"时间"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:167,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:163,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:162,columnNumber:17},this),w.jsxDEV("tbody",{"data-loc":"client/src/pages/AuditLog.tsx:170",children:p.map(N=>w.jsxDEV("tr",{"data-loc":"client/src/pages/AuditLog.tsx:172",className:"border-b border-border/20 hover:bg-accent/20 transition-colors",children:[w.jsxDEV("td",{"data-loc":"client/src/pages/AuditLog.tsx:173",className:"p-3",children:w.jsxDEV("span",{"data-loc":"client/src/pages/AuditLog.tsx:174",className:"text-xs px-2 py-0.5 rounded-full bg-primary/15 text-primary font-medium",children:x(N.action)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:174,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:173,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/AuditLog.tsx:178",className:"p-3",children:w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:179",className:"flex items-center gap-1.5",children:[w.jsxDEV(F5,{"data-loc":"client/src/pages/AuditLog.tsx:180",className:"w-3 h-3 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:180,columnNumber:27},this),w.jsxDEV("span",{"data-loc":"client/src/pages/AuditLog.tsx:181",className:"text-xs",children:N.userEmail},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:181,columnNumber:27},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:179,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:178,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/AuditLog.tsx:184",className:"p-3",children:w.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:185",className:"text-xs text-muted-foreground line-clamp-1",children:N.details?JSON.stringify(N.details):"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:185,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:184,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/AuditLog.tsx:189",className:"p-3",children:w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:190",className:"flex items-center gap-1 text-xs text-muted-foreground",children:[w.jsxDEV(v0,{"data-loc":"client/src/pages/AuditLog.tsx:191",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:191,columnNumber:27},this),N.createdAt?new Date(N.createdAt).toLocaleString("zh-CN"):"-"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:190,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:189,columnNumber:23},this)]},N._id?.toString(),!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:172,columnNumber:21},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:170,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:161,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:160,columnNumber:13},this),b>1&&w.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:202",className:"flex items-center justify-center gap-2 p-3 border-t border-border/20",children:[w.jsxDEV(yt,{"data-loc":"client/src/pages/AuditLog.tsx:203",variant:"outline",size:"sm",onClick:()=>s(N=>Math.max(1,N-1)),disabled:o===1,className:"border-border/50 h-7 text-xs",children:"上一页"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:203,columnNumber:15},this),w.jsxDEV("span",{"data-loc":"client/src/pages/AuditLog.tsx:204",className:"text-xs text-muted-foreground",children:[o," / ",b]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:204,columnNumber:15},this),w.jsxDEV(yt,{"data-loc":"client/src/pages/AuditLog.tsx:205",variant:"outline",size:"sm",onClick:()=>s(N=>Math.min(b,N+1)),disabled:o===b,className:"border-border/50 h-7 text-xs",children:"下一页"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:205,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:202,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:154,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:128,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:38,columnNumber:5},this)}function uu({children:e}){const[t,n]=wD(),{t:r}=l0(),o=[{path:"/",icon:Rae,label:r("nav.dashboard"),desc:r("dashboard.subtitle").slice(0,8)+"..."},{path:"/knowledge",icon:yD,label:r("nav.knowledgeBase"),desc:r("knowledgeBase.subtitle").slice(0,6)+"..."},{path:"/crawlers",icon:Lae,label:r("nav.crawlers"),desc:r("crawlers.subtitle").slice(0,6)+"..."},{path:"/approvals",icon:Tae,label:r("nav.approvalCases"),desc:r("approvals.subtitle").slice(0,6)+"..."},{path:"/tags",icon:_2,label:r("nav.tagEngine"),desc:r("tagEngine.subtitle").slice(0,6)+"..."},{path:"/protocols",icon:xp,label:r("nav.protocolRegistry"),desc:r("protocols.subtitle").slice(0,6)+"..."},{path:"/audit",icon:Ru,label:r("nav.auditLog"),desc:r("audit.subtitle").slice(0,6)+"..."}],{data:s,isLoading:u}=St.nacAuth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),c=St.nacAuth.logout.useMutation({onSuccess:()=>{n("/login"),Ft.success(r("auth.logoutSuccess"))}});if(R.useEffect(()=>{!u&&!s&&n("/login")},[u,s,n]),u)return w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:52",className:"min-h-screen bg-background flex items-center justify-center",children:w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:53",className:"flex flex-col items-center gap-3",children:[w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:54",className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:54,columnNumber:11},this),w.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:55",className:"text-sm text-muted-foreground",children:r("auth.verifying")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:55,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:53,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:52,columnNumber:7},this);if(!s)return null;const f=s;return w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:66",className:"min-h-screen bg-background flex",children:[w.jsxDEV("aside",{"data-loc":"client/src/components/AdminLayout.tsx:68",className:"w-60 shrink-0 bg-card border-r border-border/50 flex flex-col",children:[w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:70",className:"h-14 flex items-center px-4 border-b border-border/50 gap-3",children:[w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:71",className:"w-8 h-8 rounded-lg nac-gradient flex items-center justify-center shrink-0",children:w.jsxDEV(Du,{"data-loc":"client/src/components/AdminLayout.tsx:72",className:"w-4 h-4 text-white"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:72,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:71,columnNumber:11},this),w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:74",className:"overflow-hidden",children:[w.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:75",className:"text-sm font-bold nac-gradient-text leading-tight",children:r("nav.systemTitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:75,columnNumber:13},this),w.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:76",className:"text-xs text-muted-foreground",children:r("nav.systemSubtitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:76,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:74,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:70,columnNumber:9},this),w.jsxDEV("nav",{"data-loc":"client/src/components/AdminLayout.tsx:81",className:"flex-1 p-2 space-y-0.5 overflow-y-auto",children:o.map(m=>{const g=t===m.path;return w.jsxDEV(lie,{"data-loc":"client/src/components/AdminLayout.tsx:85",href:m.path,children:w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:86",className:`flex items-center gap-3 px-3 py-2.5 rounded-lg cursor-pointer transition-all
|
||
${g?"bg-primary/15 text-primary border border-primary/20":"text-muted-foreground hover:text-foreground hover:bg-accent/50"}`,children:[w.jsxDEV(m.icon,{"data-loc":"client/src/components/AdminLayout.tsx:92",className:`w-4 h-4 shrink-0 ${g?"text-primary":""}`},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:92,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:93",className:"flex-1 overflow-hidden",children:w.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:94",className:"text-sm font-medium leading-tight truncate",children:m.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:94,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:93,columnNumber:19},this),g&&w.jsxDEV(Sae,{"data-loc":"client/src/components/AdminLayout.tsx:96",className:"w-3.5 h-3.5 text-primary shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:96,columnNumber:32},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:86,columnNumber:17},this)},m.path,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:85,columnNumber:15},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:81,columnNumber:9},this),w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:104",className:"p-3 border-t border-border/50",children:w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:105",className:"flex items-center gap-2",children:[w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:106",className:"w-7 h-7 rounded-full nac-gradient flex items-center justify-center shrink-0",children:w.jsxDEV("span",{"data-loc":"client/src/components/AdminLayout.tsx:107",className:"text-xs font-bold text-white",children:(f.email||"U")[0].toUpperCase()},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:107,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:106,columnNumber:13},this),w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:111",className:"flex-1 overflow-hidden",children:[w.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:112",className:"text-xs font-medium truncate",children:f.email},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:112,columnNumber:15},this),w.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:113",className:"text-xs text-muted-foreground capitalize",children:f.role||"admin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:113,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:111,columnNumber:13},this),w.jsxDEV(yt,{"data-loc":"client/src/components/AdminLayout.tsx:115",variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-muted-foreground hover:text-destructive shrink-0",onClick:()=>c.mutate(),title:r("auth.logout"),children:w.jsxDEV(Pae,{"data-loc":"client/src/components/AdminLayout.tsx:121",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:121,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:115,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:105,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:104,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:68,columnNumber:7},this),w.jsxDEV("main",{"data-loc":"client/src/components/AdminLayout.tsx:128",className:"flex-1 overflow-auto min-w-0",children:[w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:130",className:"h-14 border-b border-border/50 flex items-center px-6 gap-3 bg-card/50 backdrop-blur-sm sticky top-0 z-10",children:[w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:131",className:"flex-1",children:o.find(m=>m.path===t)&&w.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:133",className:"text-sm font-semibold",children:o.find(m=>m.path===t)?.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:133,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:131,columnNumber:11},this),w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:138",className:"flex items-center gap-3",children:[w.jsxDEV(J9,{"data-loc":"client/src/components/AdminLayout.tsx:140",variant:"icon"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:140,columnNumber:13},this),w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:141",className:"w-px h-4 bg-border/50"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:141,columnNumber:13},this),w.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:142",className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:142,columnNumber:13},this),w.jsxDEV("span",{"data-loc":"client/src/components/AdminLayout.tsx:143",className:"text-xs text-muted-foreground",children:r("dashboard.allSystemsNormal")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:143,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:138,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:130,columnNumber:9},this),e]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:128,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:66,columnNumber:5},this)}function GSe(){return w.jsxDEV(uie,{"data-loc":"client/src/App.tsx:19",children:[w.jsxDEV(Hi,{"data-loc":"client/src/App.tsx:20",path:"/login",component:dle},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:20,columnNumber:7},this),w.jsxDEV(Hi,{"data-loc":"client/src/App.tsx:21",path:"/",component:()=>w.jsxDEV(uu,{"data-loc":"client/src/App.tsx:21",children:w.jsxDEV(GEe,{"data-loc":"client/src/App.tsx:21"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:21,columnNumber:119},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:21,columnNumber:73},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:21,columnNumber:7},this),w.jsxDEV(Hi,{"data-loc":"client/src/App.tsx:22",path:"/knowledge",component:()=>w.jsxDEV(uu,{"data-loc":"client/src/App.tsx:22",children:w.jsxDEV(ISe,{"data-loc":"client/src/App.tsx:22"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:22,columnNumber:128},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:22,columnNumber:82},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:22,columnNumber:7},this),w.jsxDEV(Hi,{"data-loc":"client/src/App.tsx:23",path:"/crawlers",component:()=>w.jsxDEV(uu,{"data-loc":"client/src/App.tsx:23",children:w.jsxDEV(zSe,{"data-loc":"client/src/App.tsx:23"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:23,columnNumber:127},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:23,columnNumber:81},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:23,columnNumber:7},this),w.jsxDEV(Hi,{"data-loc":"client/src/App.tsx:24",path:"/approvals",component:()=>w.jsxDEV(uu,{"data-loc":"client/src/App.tsx:24",children:w.jsxDEV(USe,{"data-loc":"client/src/App.tsx:24"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:24,columnNumber:128},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:24,columnNumber:82},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:24,columnNumber:7},this),w.jsxDEV(Hi,{"data-loc":"client/src/App.tsx:25",path:"/tags",component:()=>w.jsxDEV(uu,{"data-loc":"client/src/App.tsx:25",children:w.jsxDEV(qSe,{"data-loc":"client/src/App.tsx:25"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:25,columnNumber:123},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:25,columnNumber:77},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:25,columnNumber:7},this),w.jsxDEV(Hi,{"data-loc":"client/src/App.tsx:26",path:"/protocols",component:()=>w.jsxDEV(uu,{"data-loc":"client/src/App.tsx:26",children:w.jsxDEV(FSe,{"data-loc":"client/src/App.tsx:26"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:26,columnNumber:128},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:26,columnNumber:82},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:26,columnNumber:7},this),w.jsxDEV(Hi,{"data-loc":"client/src/App.tsx:27",path:"/audit",component:()=>w.jsxDEV(uu,{"data-loc":"client/src/App.tsx:27",children:w.jsxDEV(KSe,{"data-loc":"client/src/App.tsx:27"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:27,columnNumber:124},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:27,columnNumber:78},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:27,columnNumber:7},this),w.jsxDEV(Hi,{"data-loc":"client/src/App.tsx:28",path:"/404",component:W5},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:28,columnNumber:7},this),w.jsxDEV(Hi,{"data-loc":"client/src/App.tsx:29",component:W5},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:29,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:19,columnNumber:5},this)}function YSe(){return w.jsxDEV(cie,{"data-loc":"client/src/App.tsx:36",children:w.jsxDEV(fie,{"data-loc":"client/src/App.tsx:37",defaultTheme:"dark",children:w.jsxDEV(hD,{"data-loc":"client/src/App.tsx:38",children:[w.jsxDEV(Ste,{"data-loc":"client/src/App.tsx:39"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:39,columnNumber:11},this),w.jsxDEV(GSe,{"data-loc":"client/src/App.tsx:40"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:40,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:38,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:37,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:36,columnNumber:5},this)}const QSe=()=>"/login",e0=new hW,iG=e=>{!(e instanceof _p)||typeof window>"u"||!(e.message===see)||window.location.pathname!=="/login"&&(window.location.href=QSe())};e0.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;iG(t),console.error("[API Query Error]",t)}});e0.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;iG(t),console.error("[API Mutation Error]",t)}});const XSe=St.createClient({links:[SZ({url:"/api/trpc",transformer:as,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});mee.createRoot(document.getElementById("root")).render(w.jsxDEV(St.Provider,{"data-loc":"client/src/main.tsx:59",client:XSe,queryClient:e0,children:w.jsxDEV(yW,{"data-loc":"client/src/main.tsx:60",client:e0,children:w.jsxDEV(YSe,{"data-loc":"client/src/main.tsx:61"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/main.tsx",lineNumber:61,columnNumber:7},void 0)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/main.tsx",lineNumber:60,columnNumber:5},void 0)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/main.tsx",lineNumber:59,columnNumber:3},void 0));
|